Skip to content

feat(workspace): upgrade a member made from a template from its own lock - #3085

Merged
lex00 merged 1 commit into
mainfrom
ws-upgrade-scopes
Oct 1, 2026
Merged

lex00 merged 1 commit into
mainfrom
ws-upgrade-scopes

Conversation

@lex00

@lex00 lex00 commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Closes #2550. Part 1 was #2610.

What it adds

  • chant workspace upgrade <member> from the workspace root. A member made by chant init --from <template> <dir> keeps its lock in its own directory. The command finds the member in chant.workspace.json by name or directory and runs the whole upgrade from that directory. A member with no lock is refused with the reason (it was not made from a template). A scope the root's lock holds is used as written, so a root lock that records a member's subtree also works.
  • The gate (workspace-upgrade/<member>) and the proposal branch (chant/upgrade/<member>) use the member's name, so two members never share a gate. The proposeWorkspaceUpgrade activity goes through the same resolution.
  • An upgrade refuses a patch that changes a path outside its scope and its lock.
  • Scopes made by init --template stay refused, now with the reason: no versioned source to fetch, and the merge base is the render of the chant version that wrote it.
  • ws-072 records the choice (the member's own lock, not a scope per member in one root lock).
  • Tests: unit tests for member, directory name, no-lock member, root-lock scope and the --template refusal; an e2e case through the real CLI and ledger; a reference-workspace case that makes a member in a copy and checks resolution.

Acceptance list

Gates

level0-goldens, reference-workspace, the workspace and activity unit tests, typecheck (31 baselined, no regressions), check-lexicons tier 1, docs prose ratchet and diataxis check.

@lex00
lex00 merged commit 8569401 into main Oct 1, 2026
10 checks passed
@lex00
lex00 deleted the ws-upgrade-scopes branch October 1, 2026 03:29
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.

workspace: migrations and chant workspace upgrade (phase 5)

1 participant