fix(missions): stop titling commits "phase phase work"
ci / gates (push) Failing after 5s
ci / rust (push) Skipped
ci / frontend (push) Skipped
ci / e2e (push) Skipped
ci / publish (push) Skipped

Mission 019fc4e0 pushed "clawmates: phase phase work" — the iteration
marker was interpolated into a slot whose default already said "phase".
A rerun read correctly ("pass 2 phase work"), so only the common case was
wrong. Cosmetic, but it lands in the operator's git history under their
own name now that delivery commits as them.

Subject is now "clawmates: phase work" and "clawmates: phase work
(pass 2)". The test covers both, since the bug lived only in the branch
the previous shape did not exercise.

Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
Omar Sobh
2026-08-02 16:56:29 -07:00
co-authored by Claude Opus 5
parent ddab8e35f5
commit 9bdc3cd89b
2 changed files with 38 additions and 3 deletions
+3 -3
View File
@@ -529,7 +529,7 @@ pub async fn commit_phase_work(
// the author line carries a person's name: without it, autonomous
// work would be indistinguishable from hand-written commits in
// `git log`. Keep it on any change to this message.
"clawmates: {} phase work\n\
"clawmates: phase work{}\n\
\n\
Mission: {mission_id}\n\
Phase: {phase_id}\n\
@@ -537,9 +537,9 @@ pub async fn commit_phase_work(
Committed by the ClawMates delivery pipeline from the agents' \
working tree. Authored by agents, not by the named committer.",
if iteration > 0 {
format!("pass {}", iteration + 1)
format!(" (pass {})", iteration + 1)
} else {
"phase".to_string()
String::new()
}
);
git(repo, &["commit", "--no-verify", "-m", &message]).await?;