Skip to content

feat(gc) 1/4: schema, markers, logical removals (#42-#45) - #697

Closed
mengmengmengqiang wants to merge 1 commit into
layerfs_v2_0_0from
gc-part1b-schema-removals
Closed

mengmengmengqiang wants to merge 1 commit into
layerfs_v2_0_0from
gc-part1b-schema-removals

Conversation

@mengmengmengqiang

Copy link
Copy Markdown
Contributor

Part 1 of 4 of the LayerFS 2.0 GC implementation (stacked PR; base layerfs_v2_0_0).

  • schema/markers: branch_retired, layer_stack_retired, path_removed, project_epoch, gc_intent, gc_op, gc_dead, history_serial/next_history_serial, trace_salt; SQLite + PostgreSQL additive steps.
  • contract/port: HistoryCatalog methods, typed NameTaken/Removed/Busy/Capacity errors.
  • removals: branch.remove, project.delete, project.remove_file core markers/filters/path grammar/whiteouts.
  • tests for the above.

Stacked: PR 2 (#46-#47) is based on this branch. See PR body of the final part for total evidence.

@mengmengmengqiang
mengmengmengqiang force-pushed the gc-part1b-schema-removals branch from 7f140fe to 477088a Compare November 15, 2026 23:54
@mengmengmengqiang

Copy link
Copy Markdown
Contributor Author

LayerFS workspace test (snapshot split-l1, T5 completion): 26/26 removal/schema tests pass (project_delete 5, path_removal 3, sqlite_publication 13, old_format_open 2, store-service project_delete 1, sdk_path_removal 2). The snapshot itself had one workspace-compile gap: layerfs-daemon Snap initializer was missing serial; fixed on this branch (commit 477088a) and cargo check --workspace now passes. Some later tests (branch_removal, branch_remove, sdk_path_reads) only exist from part 2 onward and were intentionally skipped.

@mengmengmengqiang

Copy link
Copy Markdown
Contributor Author

Superseded by the rebuilt 10-PR stacked GC series:

The new series is stacked bottom-up on layerfs_v2_0_0; each PR is based on the previous branch. Closing this PR to keep a single review series.

@mengmengmengqiang
mengmengmengqiang deleted the gc-part1b-schema-removals branch November 16, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant