T-1SSY-cleanup-on-fail-works-under-pass
Status: closed/done · Impact: low · Complexity: small
ensure_ready_mutate.ts and /sdlc:task-work disagree on how the
--cleanup-on-fail flag composes with --mode pass, so the invocation
/sdlc:task-work Step 5a documents does not run verbatim. This gap was
surfaced by the post-mortem of T-77ST-git-hooks-lefthook in
git@github.com:sksizer/markdown-contract.git. Close it so the readiness
gate call in the skill prose works as written.
ensure_ready_mutate.ts exits 2 (“only meaningful with —mode fail”) when —cleanup-on-fail is passed under —mode pass, but /sdlc:task-work Step 5a documents passing —commit-on main —cleanup-on-fail together on the readiness-gate call. Fix so the documented invocation works verbatim: either task-work passes —cleanup-on-fail only on the fail path, or ensure_ready_mutate.ts accepts-and-ignores it under —mode pass.
— from the post-mortem of
T-77ST-git-hooks-lefthook
TBD — receiver to fill before promoting from planning/draft.
Proposed
Section titled “Proposed”TBD — receiver to fill before promoting from planning/draft.
Approach
Section titled “Approach”TBD — receiver to fill before promoting from planning/draft.
Files to touch
Section titled “Files to touch”TBD — receiver to fill before promoting from planning/draft.
Acceptance criteria
Section titled “Acceptance criteria”TBD — receiver to fill before promoting from planning/draft.
Out of scope
Section titled “Out of scope”- none
Dependencies
Section titled “Dependencies”- none
Discovery context
Section titled “Discovery context”Spawned by /sdlc:spawn-task-pr on 2026-07-04 UTC from
T-77ST-git-hooks-lefthook in
git@github.com:sksizer/markdown-contract.git.