Repository navigation
feat(gc): LayerFS 2.0 GC implementation (#41, #42–#52) - #696
Closed
mengmengmengqiang wants to merge 1 commit into
Closed
mengmengmengqiang wants to merge 1 commit into
mengmengmengqiang wants to merge 1 commit into
Conversation
Implements the frozen 2.0 GC spec (#41/#42-#52): marker-based branch/project/path removal, admission (gc_intent), mark/closure (kept_node, object closure, keptWaste, live-heads digest), SQLite and PostgreSQL compaction (Phase M/A/B/C, install fence, crash/kill recovery), §11 report + store.status, metrics, API/MCP/CLI/SDK (76 calls), SQLite/PG tests, ext4 CI harness, capacity model (50GB measured), runbook/rollout docs.
mengmengmengqiang
force-pushed
the
gc-2.0-gc-implementation
branch
from
November 15, 2026 23:34
3c0a358 to
b4d446f
Compare
7 tasks done
This was referenced Nov 15, 2026
Closed
Closed
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.
Summary
Implements the frozen LayerFS 2.0 GC spec (#41, sub-issues #42–#52).
branch_retired,layer_stack_retired,path_removed),project_epoch,gc_intent,gc_op,gc_dead,kept_node,history_serial/next_history_serial,trace_salt; SQLite + PostgreSQL additive stepsbranch.remove(marker, NameTaken, fork syntax, doctor),project.delete(home/worker, sidecar, retry),project.remove_file(visibility-only whiteouts, path grammar, frontier)gc_intent,MountsActive/Busy/Unresolved, PG advisory keys, project-epoch writer fencekeptWaste, live-heads digestgc_op/gc_dead, scratch schema, swap, totals, standby/lost replystore.statusop/phases (SQLite + PG), bounded metrics/SLOTest evidence
layerfs-persistence271,layerfs-store-service214,layerfs-store59 = 544 passed, 0 failed, 18 ignored.sqlite_compact20,sqlite_compact_crash23 (9 real-process SIGKILL + 8 CLI process-kill arms),sqlite_compact_fixtures1,sqlite_compact_matrix1,sqlite_compact_capacity1.postgresql_compact20,postgresql_status3 + control 1,postgresql_compact_fixtures5,postgresql_doctor_physical16,postgresql_position_columns4,postgresql_open_check3,postgresql_diagnostic9,postgresql_doctor_access10; PG matrix 73 passed.cargo clippy -p layerfs-persistence -p layerfs-store-service --all-targets --features postgresql --no-deps -- -D warningsexits 0.core/docs/issues/project-41/gc-acceptance-matrix.md).CI note
The base
layerfs_v2_0_0only triggersci.ymlon pushes tomain;pull_requestworkflows live on the base branch, so this PR shows no checks. The newstore-ext4.ymllane (quick on PR, full + PostgreSQL 17 on schedule/dispatch) will run after merge. Local evidence above was produced with the same ext4/PG-17 setup.Known limitations
branch.publishexpected-base CAS is separate PR fix(publish): refuse stale-base publishes with expected-base CAS (#691) #692; issue SQLite compaction peak_temp_bytes under-reports the rollback journal #695 documents the peak-temp receipt gap fixed here.store.compact.Related
branch.publishstale-base guardbranch.publishaccepts a stale base and overwritesmain(lost update) #691, SQLite compaction peak_temp_bytes under-reports the rollback journal #695core/docs/issues/project-41/(spec, implementation report, matrix, runbook, capacity model, rollout)Sub-issues
Tracks #42–#52 (implementation mapping):
gc_intent/gc_op/gc_dead, additive migrationsbranch.removemarker/NameTaken/fork syntax/doctorproject.deletemarker, home/worker path, sidecar, retryproject.remove_filepath grammar, whiteouts, frontier, read/stat/list/globgc_intent, MountsActive/Busy/Unresolved), epoch fencekept_node, object/pack closure, keptWaste, digest)store.status, metrics/SLO