Commit Protocol (Standard 95)
Follow these steps to ensure every commit is high-fidelity, documented, and reaches the correct target branch.
// turbo-all
[!TIP] Modern Workflow: Use the /converge command to automate this entire protocol with high-fidelity verification.
1. Local Development (Ghost Isolation)
We treat the Local environment as our primary development sandbox.
- Spawn: At the start of a major task, the agent runs
git checkout -b ghost/[TASK_ID]-[slug]. - Persistence: All incremental commits happen on this isolated branch.
- Ghost Verification: Run
pnpm pre-flightandpnpm teston the ghost branch before any merge attempt.
2. The Gatekeepers (Verification Loop)
Before promoting from ghost to tst, the "Convergence Loop" must be executed:
- Auto-Correction:
pnpm sunrisehandles tag fixes. - Docs Fast-Track: Skips heavy audits for documentation-only changes.
- Seeding Expansion: If logic changes impact data structures (e.g., Governance weights), you MUST update or create a companion
.seed.tsscript (Standard 105). - Run:
pnpm dataseeder:[name]to provision the local sandbox. - AutoTesting: Run the domain-specific verification script.
- Run:
pnpm autotester:[name]. - Local Pre-Commit: The
.git/hooks/pre-commitscript is the final local barrier. - Staging Verification: After pushing to
stg, re-run AutoTesters against the live environment to ensure environment parity.
2. Structured Commitment
- Stage Changes:
git add . - Commit Message: Use the format
feat(domain): descriptionorfix(domain): description. - Cite relevant Standards (e.g.,
(STND-90)).
4. The Autononous Collapse (Merging)
Once a task is verified and a walkthrough.md is accepted:
- Testing Integration:
git checkout tst - Integrate:
git merge --no-ff ghost/[TASK_ID]-[slug] -m "feat(task): collapse ghost branch [TASK_ID] into tst" - Push:
git push origin tst - Staging Promotion:
git checkout stg && git merge tst --no-ff -m "chore(sync): promote tst to stg" && git push origin stg - Cleanup:
git branch -d ghost/[TASK_ID]-[slug]
5. Handover
- Update
daily_handoff_[DATE].mdwith the final merge hash and state.