Repository navigation
docs(internals): codify the per-session worktree/branch lifecycle - #257
Conversation
Every session that commits/branches/pushes now works in its OWN worktree under .claude/worktrees/<slug>/, branched off fresh origin/main; the main tree stays on main (only one worktree can hold it, B7). Codified in the candy/charly-internals manifest (B1 step 0, B4 "Worktree hygiene", B7), the agents references (worktree-lifecycle ownership + "Standalone sessions"), and the rulebooks (CLAUDE.md Key Rules + AGENTS.md "Hard Cutover by Default"). Cross-repo producer->consumer: plugins PR #155 + docs PRs #45/#46 (regenerated from these manifest edits) landed first; this commit carries both gitlink bumps (plugins@7c9c3415, docs@a99b5e66). Also gitignores the untracked .claude/hooks/__pycache__/ Python bytecode. Assisted-by: Claude Code deepseek-v4-flash:cloud (documentation reviewed)
pr-validator — APPROVED ✅Change class: docs-only (cross-repo: plugins → docs → superproject, producer→consumer) Head SHA validated: Checklist
Phase 1b — documentation scrutiny
Gitlink verification (re-derived, not taken from the body)
Comments consideredNone — the PR carried no comments. Cross-PR interactions consideredNone open in opencharly/charly, opencharly/plugins, or opencharly/docs. DecisionPASS. The PR is a documentation-only change class validated against the non-runtime standards, all of which I re-ran myself and confirmed green at zero warnings. The manifest edits regenerate idempotently (marketplace drift + docs drift both no-op), the gitlinks point at the verified merged producer commits, and the R5 sweep confirms the old authoring flow survives only as prohibition/caution text. Proceeding to finalize the merge-time CalVer, squash-merge, and tag. Assisted-by: Claude Code deepseek-v4-flash:cloud (documentation reviewed) |
Assisted-by: Claude Code deepseek-v4-flash:cloud (documentation reviewed)
pr-validator — merge outcome
Assisted-by: Claude Code deepseek-v4-flash:cloud (documentation reviewed) |
Summary of changes
The per-session worktree/branch lifecycle is now codified end-to-end. This commit is the superproject leg of a cross-repo docs cutover: it carries the source-of-truth manifest edits in
candy/charly-internals/charly.yml, the equivalent mandates in the harness rulebooks (CLAUDE.mdKey Rules +AGENTS.md"Hard Cutover by Default"), the housekeeping.gitignoreaddition, the CHANGELOG narrative, and the gitlink bumps pointing both submodules at their merged upstream commits.The rule now codified: every session works in its OWN worktree under
.claude/worktrees/<slug>/, branched off freshorigin/main; the main tree stays onmain— created at session start, removed (worktree + branch) after the PR lands, so parallel sessions never collide on one checkout.Edits in this repo:
candy/charly-internals/charly.yml— the manifest source of truth for the two skills:.claude/worktrees/<slug>/, branched off freshorigin/main; the main tree stays onmain), and Step 1's sync-before-start now usesgit worktree add … -b feat/<slug> origin/maininstead ofgit switch -cin the shared main tree. B4 "Worktree hygiene" is expanded into the full per-session create → work → land → remove lifecycle with the exact commands and the MERGED-state gate for removal. B7 states the one-worktree-per-session rule and that the main tree stays onmain.CLAUDE.md— new Key Rules bullet carrying the equivalent mandate with a/charly-internals:git-workflow(B1 step 0, B4 "Worktree hygiene", B7) detail pointer.AGENTS.md— "Hard Cutover by Default" extended with the same mandate + detail pointer..gitignore— the untracked.claude/hooks/__pycache__/Python bytecode is now gitignored.CHANGELOG/2026.999.9999.md— the cutover narrative (placeholder CalVer; the pr-validator finalizes it at merge).plugins+docsgitlinks — bumped to the MERGED upstream commits:plugins@7c9c3415(PR docs: fix CHANGELOG H1 headings to use CalVer version #155) anddocs@a99b5e66(PR docs(hooks): record the ceded boundary for merge-family index mutators #45 + the follow-up PR chore(box/cachyos): bump gitlink — charly-cachyos is no longer a check bed #46 adding the docs per-repo CHANGELOG entry).The submodule legs (regenerated from these manifest edits, never hand-edited) landed first, producer→consumer:
pluginsPR #155 anddocsPR #45 (+ follow-up #46), each validated and merged by a freshpr-validator.Change class
docs-only (cross-repo: plugins → docs → superproject, producer→consumer).
How R10-tested — exact gate, commands, and pasted output
task docs:sync/task skills:sync(both runtask :build:binaryfirst);bin/charly versionreports2026.225.0157.charly docs generate(880 pages) andcharly marketplace generate --rootproduced exactly the 4 changed pages / 4 changed skill files, and re-running each is a byte-for-byte no-op (proven by the two submodule pr-validators independently, and bytask docs:drift/task skills:driftstage-1 idempotency on the committed tree).Attribution tier
documentation reviewed— the entire diff is regenerated documentation + rulebook mandates + a docs-only gitlink bump. No code/config behavior touched.Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)/charly-internals:skills(skill authoring — regenerate from the candy manifest, never hand-edit generated files) and/charly-internals:git-workflow(the B1/B4/B7 text being changed); the source edits were made in the superproject'scandy/charly-internals/charly.ymland regenerated intoplugins+docsby their generators.charly box validateexit 0, zero warnings; regeneration is a no-op (idempotent) on the committed sources..claude/hooks/__pycache__/untracked dir surfaced during this cutover is handled by the.gitignorepattern added here; nothing else surfaced.git switch -c feat/<slug>authoring flow are fully replaced by the session-worktree flow in the same change; no transitional/dual-mode doc remains. A grep for the removed authoring lines returns only the new prohibition.origin/mainpin (detached HEAD == origin/main verified), committed with the intended files, and pushed without force. The gitlink bumps point at the MERGED squash commits (verified viagh pr view <n> --json mergeCommit), per B2 step 3.task docs:sync;charly version=2026.225.0157; no new runtime OS deps..cueedit).sdkchange.CHANGELOG/2026.999.9999.md(the cutover narrative; the pr-validator finalizes the CalVer). The submodule legs each carried their OWN per-repo CHANGELOG entry (every plugins + docs landing stages one, per each repo's standing convention):pluginsPR docs: fix CHANGELOG H1 headings to use CalVer version #155 anddocsPR docs(hooks): record the ceded boundary for merge-family index mutators #45/chore(box/cachyos): bump gitlink — charly-cachyos is no longer a check bed #46. All repos tag at merge underv<YYYY.DDD.HHMM>per the standing rule.Assisted-by: Claude Code deepseek-v4-flash:cloud (documentation reviewed)