Repository navigation
feat(id-store): per-scope location index from signed sidecars + tombstones (A9115, #10255) - #12925
Merged
Merged
Conversation
…tones (A9115-complete-harvest, #10255) New location_index module: a rebuildable per-scope projection folded from validated complete signed sidecars (A9114) and signed stale/delete tombstones defined here, in the A9114 envelope discipline. Every visible assertion in a complete sidecar view is harvested (typed R2/Laptop/Drive locators from #10200); absence never erases — only a signed tombstone transitions fresh/unverified to stale/deleted, delete wins over stale, and a later assertion revives. Events fold in a total order (snapshot generation, then tombstone basis+sequence); the ScopeCursor is the scope epoch, and rebuild from any arrival order equals the incremental fold. Crate-root export stays with 9110-02; the model test includes the module by path, per the sibling pattern. Oracle: cargo test -p id-store --test location_index_model — 7 passed, 0 failed (3 seeds x 140 generated ops vs an independent reference model, rebuild-from-shuffled equality, byte-exact persistence round-trip, rejection classes).
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. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 19 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slice A9115-complete-harvest for #10255 (design A-9115.2, S3.26–S3.38). Native blockers #9083, #10160, #10200, #10242 all closed — preflight recorded on the issue.
What lands (2 new files, +0/-0 elsewhere):
pkgs/id/crates/id-store/src/location_index.rs—LocationIndex: a rebuildable per-scope (namespace + tenant) projection folded from validated complete signed sidecars (sidecar_snapshot, Encode complete signed metadata snapshot records #10242) and signed stale/delete tombstones (LocationTombstoneV1, defined here in the A9114 envelope discipline: canonical body + detached Ed25519 over the domain-framed preimage; tombstone ID = envelope ID of the complete signed record).locationskey) is inserted — no opt-in omission (S3.29). Assertions re-commit namespace/tenant/signer and must equal the signed body's. Locators areTypedLocator(Define typed R2, laptop and Drive location values #10200) in canonical tagged form.stored_unverifiedassertions harvest asunverified, never as proof of content (A-9115.1); others asfresh.stale/deleted; delete wins over stale (a stale after a delete is absorbed); a later assertion revives.generation_mismatch/parent_mismatch/basis_ahead/out_of_order);ScopeCursorexposes the scope epoch.rebuildsorts any arrival order into the same fold (S3.27/S3.28). Canonical-CBOR persistence with provenance intact.sidecar_snapshotpattern.pkgs/id/crates/id-store/tests/location_index_model.rs— the declared oracle as an independent reference-model fold.Verification (laptop,
nix developin pkgs/id):cargo test -p id-store --test location_index_model→ 7 passed / 0 failed, run twice (before and after rustfmt; both new files fmt-clean — pre-existing fmt drift in sibling files untouched). Includes 3 seeds × 140 generated operations compared against the model after every event, rebuild-from-shuffled equality, byte-exact persistence round-trip, and the rejection-class table.Refs #10255 (closes on merge via the issue's done record).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.