Repository navigation
dir-sim: licences as DR64 planes over a version's users - #2105
AdaWorldAPI wants to merge 5 commits into
Conversation
license::LicensePlanes builds, from ogar-az's decoded licence and subscribedSkus pages, at most 64 licence-state codes per tenant (sku, direct|group, state), each one bit plane over the version's user ordinals, plus a read plane. Holder and state queries are Quack filters over those resident planes. Not read (absent, null, or not on a page) stays apart from read-none; two paths to one SKU are one holder; a 65th code is refused (TooManyStates), never merged; unknown or repeated users and repeated SKUs are refused; capacity is held as the decoded exact i64 counts beside the planes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMNZqKXSaeb9g2ypywF
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMNZqKXSaeb9g2ypywF
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 00e1ecb736
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…aught in either order
…irsim-license-dr64 # Conflicts: # .claude/board/STATUS_BOARD.md
…license-dr64 dir-sim: licences as DR64 planes over a version's users
…ept with the planes Gate 0 of D-DIRSIM-LICENSE-DT64-1 (corrections to #2105): code index = (sku, via, state) order with a stable predicate IRI per code; the decoded pages are owned as evidence (paths with assignedByGroup, effective SKUs kept separate); coverage from @odata.nextLink; the planes record their version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This PR wires the licence pages decoded by OGAR #380 (
ogar_az::license) into dir-sim, which owns the source lanes. This is the first slice of the API ↔ DT64 wiring.Shape
The operator set the tile widths: licence states fit one DR64 tile, and DR512 is reserved for users per OU per group.
MAX_LICENSE_STATES = 64licence-state codes. A code is a(sku, via: Direct|Group, state)triple.enabled,consumed, …) is kept beside the planes as the exact decodedi64counts. It is not stored as lane values.Rules, each pinned by a test
null, or when the user appears on no page. That is never the same as "read, none".not_read_is_not_noneholders,holder_count). The two paths stay two codes.two_paths_are_one_holderOther. A disabled path still holds the SKU; the planes don't decide entitlement.states_stay_apart_and_unknown_text_is_keptTooManyStates, never dropped or merged. 64 codes fit.a_65th_state_is_refused_and_64_fitunknown_or_repeated_entries_are_refusedcapacity_is_held_exact_beside_the_planesEach disable run was done with the change committed first, and the file was restored afterwards.
Not in this PR
LaneSourcebinding over these planes is the next slice.Checks:
cargo test --manifest-path crates/lance-graph-dir-sim/Cargo.tomlpasses (290 tests, 0 failed), andcargo clippy --all-targets -D warningsis clean. The board has a newD-DIRSIM-LICENSE-DR64row.Generated by Claude Code