Skip to content

Index every valid visible sidecar location with tombstone reconciliation #10255

Closed

Description

@dezren39

Problem and goal

Build a rebuildable per-scope index from all authorized visible complete sidecar locations; model stale/delete tombstones and reconciliation cursor.

Version and design basis

Version: V2. Settled design: https://github.com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-addressing/versioned-design.md#9115--existence-acknowledgements-location-harvester-privacy (section: #9115 — Existence acknowledgements, location harvester, privacy).
Tier: crucial.
Statement IDs: S3.26, S3.27, S3.28, S3.29, S3.30, S3.31, S3.32, S3.33, S3.34, S3.35, S3.36, S3.37, S3.38
Enables: Fresh location queries with explicit completeness and version lineage.

Scope and ownership

Parent: #9115 (native component/meta parent).

  • pkgs/id/crates/id-store/src/location_index.rs (new; owner: A9115-complete-harvest)
  • pkgs/id/crates/id-store/tests/location_index_model.rs (new; owner: A9115-complete-harvest)
    Hard dependencies (native blockers): A9114-sidecar-snapshot — Requires complete scoped signed sidecar snapshot record with payload/envelope IDs, parent and generation from A9114-sidecar-snapshot.; A9115-locator-types — Requires typed R2/Laptop/Drive locator variants with required scope fields from A9115-locator-types.; 9110-02 — Adds this consumer module to the crate root and owns Cargo manifest/export changes; this slice owns only its distinct module and tests.; 9083 — Consumes the authenticated tenant/scope context contract; this slice does not define tenancy.
    Soft sequencing (not blockers): 9084 — Coordinate the reference/copy adapter seam before integration; this slice makes no reference-versus-copy decision.

Test / evidence first

Create or validate pkgs/id/crates/id-store/tests/location_index_model.rs first. Proposed command: cargo test -p id-store --test location_index_model
Oracle: model — expected Rebuilt index equals fold of validated signed sidecars and tombstones at scope epoch.; verifier: Generate the listed operations against the specified state/reference model and compare every resulting state and error..

Done and rollback

Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: not applicable.
Rollback: Disable the affected acknowledgement or derived location-index writer/query; preserve signed receipts, sidecars and tombstones so the projection can be rebuilt without losing evidence.

Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Agent note — task 17095 preflight recorded (lane any-a): A9115-complete-harvest native blockers #9083 + #10160 + #10200 + #10242 OPEN — task self-blocked

    Native-blocker preflight (fresh, 2026-11-14T17:55Z):

    Result: the blocker gate is NOT clear. Per the packet's mandatory preflight instruction, no implementation was performed and task 17095 is self-blocked as a broker dependency block on #9083 + #10160 + #10200 + #10242; the broker returns it to the pool automatically when all four close, and the preflight then re-runs fresh.

  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — task 19190 (lane code-c)

  4. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/highImportant and time-sensitive
    on Nov 17, 2026
  5. 7 remaining items

  6. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: oc-code-05 · worker repo-worker-code · queue task 17095
    kind: picked up
    at: 2026-11-20T18:14Z
    summary: Claimed mandatory preflight task 17095. Fresh GitHub checks: #10255 OPEN; blockers #9083, #10200, and #10242 remain OPEN; #10160 is CLOSED. Performing required no-implementation dependency preflight.

  7. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 20, 2026
  8. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: oc-code-05 · worker repo-worker-code · queue task 17095
    kind: blocked
    at: 2026-11-20T18:15Z
    summary: Native-blocker preflight for slice A9115-complete-harvest re-verified fresh: #9083 OPEN, #10160 CLOSED, #10200 OPEN, #10242 OPEN. No implementation performed. Task self-blocked with blocked-by-issue on the three open blockers; returns to the pool when all close.

  9. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Agent note — native-blocker preflight re-run (2026-11-23).

    Fresh GitHub checks: #9083 CLOSED (2026-11-23T03:07:11Z), #10160 CLOSED (2026-11-14T18:20:30Z), #10200 CLOSED (2026-11-23T03:48:52Z), and #10242 CLOSED (2026-11-23T04:23:52Z). The mandatory native-blocker preflight therefore PASSES. This task remains preflight-only: no implementation or production rollout was performed; the approved A9115-complete-harvest slice may proceed through its own implementation task and oracle.

  10. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Agent note — claim + preflight (Lane EV, archer, queue task 21119).

    Fresh GitHub checks this pass: #10255 OPEN; all four native blockers CLOSED — #9083, #10160, #10200, #10242. The mandatory native-blocker preflight PASSES (independently re-run by agent-next-02 at 2026-11-23T04:32Z on task 17095; re-verified here).

    Proceeding within the approved scope only: new pkgs/id/crates/id-store/src/location_index.rs + pkgs/id/crates/id-store/tests/location_index_model.rs, oracle cargo test -p id-store --test location_index_model (rebuilt index equals fold of validated signed sidecars and tombstones at scope epoch). No production rollout.

  11. added a commit that references this issue on Nov 23, 2026
  12. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Done — slice A9115-complete-harvest landed and verified. Closing as completed.

    Preflight: all four native blockers closed (#9083, #10160, #10200, #10242), re-verified fresh this pass.

    Landed: PR #12925, merged 39bc39648e63396e0dc7408e1d6949095fd15420 — exactly the slice's two owned files:

    • pkgs/id/crates/id-store/src/location_index.rs (59,626 B on main) — LocationIndex, a rebuildable per-scope projection folded from validated complete signed sidecars and signed LocationTombstoneV1 records (A9114 envelope discipline). Every visible assertion harvested (no opt-in omission); absence erases nothing — only a signed tombstone moves a location to stale/deleted, delete wins over stale, later assertion revives; total fold order (snapshot generation, tombstone basis+sequence) with the ScopeCursor as scope epoch; rebuild from any arrival order equals the incremental fold. No crate-root/manifest changes (export stays with 9110-02; test includes the module by path, per the sidecar pattern).
    • pkgs/id/crates/id-store/tests/location_index_model.rs (24,784 B on main) — the declared oracle as an independent reference-model fold.

    Verification: the issue's exact oracle command, cargo test -p id-store --test location_index_model in nix develop (pkgs/id, laptop worktree off origin/main): 7 passed / 0 failed, run twice (before and after rustfmt; both new files fmt-clean). Coverage: genesis harvest of all locator kinds/classes, absence-erases-nothing, tombstone discipline (delete wins, stale-after-delete absorbed, re-assertion revives, tombstone-before-assertion), the rejection-class table (generation/parent/scope/signer/basis/out-of-order/signature), 3 seeds × 140 generated operations compared against the model after every event, rebuild-from-shuffled equality, and byte-exact persistence round-trip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mMedium: expected under 1 day of workpriority/highImportant and time-sensitivequeue/blockedQueue or user escalation statestatus/blockedQueue or user escalation statestatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions