[Commit-model M6] Remediate stage commit (D1 + D5) #105

Closed
opened 2026-08-01 02:22:30 +00:00 by david · 1 comment
Owner

Commit remediate output as commit #2; empty ⇒ skip (D1 + D5).

Changes

  • src/remediate/services/runRemediateStage.ts: captureDiffAgainstBase(runGit, repoRoot, base)final.diff (cumulative implement + remediate); if hasStagedOrUncommittedChangesgit add + git commit with buildStageCommitMessage(key, summary, 3), else skip (normal); preserve remainingFindings / wellFormed behavior.

Tests: changes present ⇒ add+commit with Pi-Loop-Stage: 3; no changes ⇒ no commit, stage still succeeds, final.diff written.

Exit: remediate commits only real changes; no-op passes are clean.

Plan: docs/implementation-plan-commit-model.md §M6. Design: docs/design-commit-model.md.

Commit remediate output as commit #2; empty ⇒ skip (D1 + D5). **Changes** - `src/remediate/services/runRemediateStage.ts`: `captureDiffAgainstBase(runGit, repoRoot, base)` → `final.diff` (cumulative implement + remediate); if `hasStagedOrUncommittedChanges` ⇒ `git add` + `git commit` with `buildStageCommitMessage(key, summary, 3)`, else skip (normal); preserve `remainingFindings` / `wellFormed` behavior. **Tests**: changes present ⇒ add+commit with `Pi-Loop-Stage: 3`; no changes ⇒ no commit, stage still succeeds, `final.diff` written. **Exit**: remediate commits only real changes; no-op passes are clean. Plan: `docs/implementation-plan-commit-model.md` §M6. Design: `docs/design-commit-model.md`.
david closed this issue 2026-08-01 06:01:24 +00:00
Author
Owner

pi-loop opened and merged a pull request for this issue: #119

pi-loop opened and merged a pull request for this issue: https://git.excelera.net/david/pi-loop/pulls/119
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
david/pi-loop#105
No description provided.