[Commit-model M4] Implement stage commit (D1 + D5) #103
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Commit implement output as commit #1; empty ⇒ hard failure (D1 + D5).
Changes
src/implement/services/runImplementStage.ts: after the agent session,captureDiffAgainstBase(runGit, repoRoot, base)→implementation.diff; if!hasStagedOrUncommittedChanges⇒ throw hard failure (agent did no work) → orchestrator writeserror.jsonand aborts; elsegit add -- . ':(exclude).pi-loop'thengit commitwithbuildStageCommitMessage(key, summary, 1).Tests: non-empty ⇒ diff written, add+commit with
Pi-Loop-Stage: 1; empty ⇒ hard failure, no commit,error.jsonpath exercised.Exit: implement always leaves exactly one stage-1 commit or fails fast.
Plan:
docs/implementation-plan-commit-model.md§M4. Design:docs/design-commit-model.md.pi-loop opened and merged a pull request for this issue: #117