Skip to content

feat(id-store): fenced reference-aware graph GC planner (#10253) - #17147

Merged
developing-today-fleet[bot] merged 2 commits into
mainfrom
lane/0322-ap-10253-graph-gc
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 2 commits into
mainfrom
lane/0322-ap-10253-graph-gc

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #10253 (slice A-GRAPH-9130-02).

What

  • New pkgs/id/crates/id-store/src/graph_gc.rs: the fencing core for reference-aware graph GC. The reference index carries two generation counters (index + deletion); every destructive step must present a Fence (the generation pair observed at plan time) and execution compare-and-swaps it against the current pair — any fresh reference, removed reference, retention pin, or new tombstone in between voids the plan with GcError::StaleFence.
  • Two-phase deletion: an unreferenced object first takes a deletion-generation tombstone; a plan may list it collectable only after the retention policy's generation distance past the tombstone AND minimum tombstone age are both met. A fresh reference clears the tombstone.
  • Physical deletion stays disabled (PHYSICAL_DELETION_ENABLED = false, execute CAS-validates then refuses with PhysicalDeletionDisabled), per the issue's start trigger — the planner is the deliverable; the storage compare-and-delete adapter follows once 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 are wired to real storage. Rollback is therefore trivial: every object is preserved.
  • New pkgs/id/crates/id-store/tests/graph_gc_fencing.rs: the issue's stated model oracle — interleaved reference creation, stale GC worker, restart (clone = persisted-state reload), and policy retention — plus a 400-step deterministic interleaving checked against an independent state model after every step. The module is included by path, following the graph_index pattern (crate-root wiring is slice 9110-09).

Premise

The Nov preflights blocked this slice on #9084/#9137/#10234/#10238. All four are now CLOSED and Felix lanes 0640-PA/PG pruned the stale native blockedBy edges today (verified live by lane 0322-AP claim-scan, claim comment on #10253).

Verification

Lane 0322-AP (Archer seat, delta PRESS 0322 refill).


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 32b1411b-a97e-4e5b-a1b9-f9aad81847b6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@developing-today-fleet
developing-today-fleet Bot merged commit 98e07e1 into main Nov 30, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the lane/0322-ap-10253-graph-gc branch November 30, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fenced reference-aware graph garbage collection

0 participants