agent-completion-discipline
Agent Completion Discipline — Commit Before Summary
Section titled “Agent Completion Discipline — Commit Before Summary”COMMIT BEFORE YOU SUMMARIZE. Any agent that made edits MUST commit + push BEFORE composing a summary: pathspec commit (never a separate git add + git commit), push, open the PR, report the URL. A pushed branch is not delivered work; no PR → say so. Never commit to the default branch regardless, even under a batching instruction. A no-commit brief overrides the commit step for that turn.
The delivery channel differs by spawn shape: native sub-agent / Workflow agent() / worktree-isolated async agent return their final text as the task result; a routed hop has no SendMessage (its final message IS delivery); a team teammate’s only channel IS SendMessage. Send before going idle. The final message IS the report — full constant-shape sections, never “see my previous message”; an earlier message is not delivery.
Force-push safety is the pre-push hook’s, not an agent’s judgment. Never end a turn with a live run_in_background/Monitor call: wait in-turn. No OS-detached process: background work is session-owned. After a crash: native → SendMessage; routed → spawn FRESH.
Full order, budget checkpoint, stop-marker handling: skills/t1k-team/references/agent-completion-discipline.md.