feat: stamp scaffold provenance as a Cella-Base trailer, drop .cella/base#12
Merged
Conversation
…base Record the upstream commit a scaffold was created from as a `Cella-Base: <sha>` trailer on the initial commit instead of writing a committed .cella/base file. The trailer rides in git history, so it travels with push/clone, needs no worktree metadata, and is read by the sync CLI (cella-cli) to bootstrap the first merge-base; when it is absent or stale, cella-cli falls back to tree-similarity inference. The .cella/base file was never read by the current sync CLI, so this also removes dead scaffolding. Co-Authored-By: Claude Fable 5 <[email protected]>
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
Record the upstream commit a scaffold was created from as a
Cella-Base: <sha>trailer on the initial commit, and drop the committed.cella/basefile — which the current sync CLI never read.The trailer rides in git history, so it travels with push/clone (a teammate cloning the fork before its first sync still bootstraps), needs no worktree metadata, and puts provenance where it belongs:
git log. cella-cli reads it from the root commit to bootstrap the first merge-base, falling back to tree-similarity inference when it is absent or stale (see companion PR cellajs/cella-cli#4).downloadGithubTemplatereturns the cloned HEAD SHA again;create()stamps it as the trailer (Initial commit\n\nCella-Base: <sha>)Initial commit, as before — cella-cli's inference now covers them (they previously could not sync at all)src/utils/write-scaffold-base.tsdeleted; no.cella/directory is writtenTests
github:cellajs/cellascaffold) asserts the trailer is present on the root commit and no.cella/directory exists; 33 tests pass, tsc/biome clean.🤖 Generated with Claude Code