Skip to content

Fenced reference-aware graph garbage collection #10253

Done

Description

@dezren39

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

Activity

  1. developing-today commented on Nov 14, 2026

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

    @dezren39
    MemberAuthor

    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 blocked with --blocked-by-issue naming all four, blocker: "waiting on native issue blockers"). Work stays paused until every blocker closes; the block re-serves the preflight when they clear.

  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · already done — task 19188 (lane code-b)

  4. added
    priority/normal
    effort/m
    on Nov 17, 2026
  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    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.

  6. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    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.

  7. removed their assignment
    on Nov 20, 2026
  8. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    Preflight/triage only — no implementation performed. Fresh blocker revalidation:

  9. 9 remaining items

  10. added
    app/id
    on Nov 29, 2026
  11. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    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); no app/*/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/normal retained — matches the work's urgency as evidenced on the issue; no band change in this pass.

  12. removed
    queue/blocked
    on Nov 30, 2026
  13. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    🤖 P0.4a stale-edge prune — Felix lane 0640-PA, 2026-11-30 (Refs #17071)

  14. removed
    status/blocked
    on Nov 30, 2026
  15. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    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/blocked label cleared since no open blockers remain.

  16. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    🤖 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. Plus pkgs/id/crates/id-store/tests/graph_gc_fencing.rs with 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).

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

    app/ideffort/mepic/id-programkind/enhancementprimary-parent/id-programpriority/normalstray-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions