Repository navigation
Description
Problem and goal
Fence references with a deletion-generation tombstone and CAS against reference-index generation/retention; consume #9137 and #9084 semantics before physical shared-object removal.
Version and design basis
Version: V3. Settled design: https://github.com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-graph/versioned-design.md#9-9130--moderation-deletion-and-gc (section: 9. #9130 — moderation, deletion, and GC).
Tier: contingent. Start trigger: Do not enable shared-object physical deletion until #9137 and #9084 contracts are available and the adapter has fenced atomic compare-and-delete.
Statement IDs: S5.48, S5.53
Enables: GC cannot race a fresh reference or let an older worker delete after a newer retain/reference generation.
Scope and ownership
Parent: #9130 (native component/meta parent).
pkgs/id/crates/id-store/src/graph_gc.rs(new; owner: A-GRAPH-9130-02)pkgs/id/crates/id-store/tests/graph_gc_fencing.rs(new; owner: A-GRAPH-9130-02)
Hard dependencies (native blockers): A-GRAPH-9130-01 — Distinct deletion/retention state machine.; A-GRAPH-9125-02 — Rebuildable reference-index generation and storage transaction boundary.; 9137 — GC retention/large-object collection policy and fencing interface.; 9084 — Reference-vs-copy semantics and authority boundary for shared objects.
Soft sequencing (not blockers): none
Test / evidence first
Create or validate pkgs/id/crates/id-store/tests/graph_gc_fencing.rs first. Proposed command: cargo test -p id-store --test graph_gc_fencing
Oracle: model — expected Interleaved reference creation, stale GC worker, restart and policy retention never remove referenced/retained bytes; an old fence cannot delete after generation advance.; verifier: Independent concurrent reference/GC state model with CAS/fence generation oracle..
Done and rollback
Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: not applicable.
Rollback: Keep physical GC disabled and preserve all existing objects; remove only the new planner/executor and fencing index.
Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.
Acceptance criteria
- Reference-aware graph garbage collection is fenced per the body (parent design(id): true-delete + moderation pipeline #9130): deletion-generation tombstones and CAS against the reference-index generation prevent GC racing a fresh reference, and physical deletion stays disabled until the design(atlas): garbage collection for shared stores — large-file priority, segment reclamation #9137 and design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084 contracts are available.
- Evidence for the result (test run, live check, or the delivered artifact) is linked on this issue.
- Follow-on work, if any remains, is filed as its own issue and linked here.
Activity
developing-today commentedon Nov 14, 2026
CODE-3672
dezren39 commentedon Nov 14, 2026
Agent note — task 17093 preflight outcome: BLOCKED on native blockers (lane code-a, 2026-11-14)
Mandatory triage/preflight for slice A-GRAPH-9130-02, performed per the task spec — no implementation attempted, no production rollout authorized or started.
Native blockers (task spec, confirmed against this issue's GitHub blocked-by graph at 2026-11-14T18:20Z) — all OPEN:
All blockers remain open, so task 17093 has self-blocked exactly as prescribed (
fleet queue block 17093 --reason-class blockedwith--blocked-by-issuenaming all four, blocker: "waiting on native issue blockers"). Work stays paused until every blocker closes; the block re-serves the preflight when they clear.dezren39 commentedon Nov 17, 2026
🤖 Agent note · already done — task 19188 (lane code-b)
graph_gc.rsplus fencing tests). Tier is contingent by the issue's own start trigger: no shared-object physical deletion until the design(atlas): garbage collection for shared stores — large-file priority, segment reclamation #9137/design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084 contracts and fenced atomic compare-and-delete exist.dezren39 commentedon Nov 17, 2026
Native-blocker preflight by repo-worker-code (2026-11-17): #9084 OPEN, #10234 OPEN, #10238 OPEN, #9137 CLOSED. Task 17093 self-blocked on the open blockers. No implementation performed; contingent research trigger not started. This is not production rollout authorization.
dezren39 commentedon Nov 18, 2026
Agent note (repo-worker-code, code-f scheduled lane): triage verdict
Verified 2026-11-18T08:47Z. #10253 is OPEN and blocked by open native blockers:
No implementation started and no research trigger opened. Resume when #9084, #10234 and #10238 close.
dezren39 commentedon Nov 20, 2026
Preflight/triage only — no implementation performed. Fresh blocker revalidation:
Open native blockers remain; task self-blocked using the packet's complete blocker list. Work paused until every blocker closes. Contingent research/physical deletion not enabled.
9 remaining items
developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Wave-2 residual pass. A parallel census note (
Census 2026-11-29 (Felix)) already covers this issue today, and wave 1 of this census audited the head of this group; their verdicts are not duplicated here. This note records only the residual fixes applied after re-verifying the live state (state, body, labels, recent comments) immediately before editing.Residual gaps found: no
kind/*label (a parallel census note today left it for the picking-up lane; set here from the title/body); noapp/*/area/*label although the owning project is clear from the title/body; no acceptance-criteria section.Actions taken: labels added:
kind/enhancement,app/id; appended## Acceptance criteria(original body text unchanged above it).Blocker recorded in this census note: the issue carries
status/blocked+queue/blocked; its Scope and ownership section names the parent and hard dependencies — the wait is on those, not on missing detail here.Priority:
priority/normalretained — matches the work's urgency as evidenced on the issue; no band change in this pass.developing-today-fleet commentedon Nov 30, 2026
🤖 P0.4a stale-edge prune — Felix lane 0640-PA, 2026-11-30 (Refs #17071)
blockedByedge to design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084 (closed) via the dependencies API (HTTP 200, verified by re-query: this issue'sblockedByno longer lists design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084, and design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084'sblockingcount is now 0 across all 7 dependents).status/blockedandqueue/blockedremoved. (Any remaining closedblockedByedges on this issue are inert and belong to the P1.2 batch prune.)status/blocked/queue/blockedcarried. After: edge gone, 0 open blockers, blocked labels cleared.developing-today-fleet commentedon Nov 30, 2026
P1.2 stale-edge prune (Felix lane 0640-PG, #17071 P0–P3 plan)
Before: 3 native blockedBy edges (#10234, #10238, #9137 — all CLOSED). After: 0 edges. Removed all 3 stale edges;
status/blockedlabel cleared since no open blockers remain.developing-today-fleet commentedon Nov 30, 2026
🤖 Agent note — claimed by lane 0322-AP (Archer seat, delta PRESS 0322 refill), 2026-11-30
Claim-scan (live, this lane): issue OPEN; no live claimer in comments (<24h activity is census notes + Felix 0640-PA/PG stale-edge prunes at 09:15Z/09:37Z, which REMOVED all native blockedBy edges — #9084/#9137/#10234/#10238 all CLOSED — and cleared status/blocked). Prior queue task 17093 preflights (Nov 14–23) were blocked solely on those now-closed blockers.
Scope I will land (bounded, per issue body): new
pkgs/id/crates/id-store/src/graph_gc.rs— fenced reference-aware GC planner/executor with deletion-generation tombstones + CAS against reference-index generation; physical deletion stays DISABLED (planner-only) per the body's start trigger. Pluspkgs/id/crates/id-store/tests/graph_gc_fencing.rswith the stated model oracle: interleaved reference creation, stale GC worker, restart and policy retention never remove referenced/retained bytes; an old fence cannot delete after generation advance.Wake: PR opened from this lane → merge when verified (diff read against purpose; CI not a gate).
feat(id-store): fenced reference-aware graph GC planner (#10253)
test(id-store): graph GC fencing model oracle (#10253)
feat(id-store): fenced reference-aware graph GC planner (#10253) (#17147