sandcastle: #82 commit post-publish status.json writes via GitPublisher (GOTCHAS 14) #83

Merged
matou-build-agent merged 1 commit from agent/issue-82 into main 2026-08-31 10:51:18 +00:00

closes #82

Post-publish status writes (resend, future phase-3 transitions) now go through GitPublisher.publishStatus(slug, state) — add/commit status: <slug> <state>, pull --rebase, push, same retry/serialisation as publish(slug). resend commits every status write so the matou checkout stays clean and the coa role's force:false git pull is unblocked. GOTCHAS 14 fixed.

closes #82 Post-publish status writes (resend, future phase-3 transitions) now go through GitPublisher.publishStatus(slug, state) — add/commit `status: <slug> <state>`, pull --rebase, push, same retry/serialisation as publish(slug). resend commits every status write so the matou checkout stays clean and the coa role's force:false git pull is unblocked. GOTCHAS 14 fixed.
sandcastle: #82 — commit post-publish status.json writes via GitPublisher (GOTCHAS 14)
All checks were successful
ci / seam (pull_request) Successful in 46s
cd9533f274
Post-publish status writes (resend, future phase-3 transitions) rewrote
communities/<slug>/status.json in place without committing, dirtying the matou
checkout and blocking the coa role's `force: false` git pull (GOTCHAS 14).

Deliverable option 1 (server-side, the ticket's preferred): add
GitPublisher.publishStatus(slug, state) — `git add communities/<slug>/status.json
&& git commit -m "status: <slug> <state>" && pull --rebase && push`, sharing the
same retry loop and single serialisation chain as publish(slug). resend now calls
it after every patchStatus (both the success and send-failure paths), so the
checkout is left clean.

Files:
- server/src/git-publisher.ts: publishStatus + shared commit()/serialise() helpers;
  noopPublisher gains publishStatus.
- server/src/cli/resend.ts: patch then publishStatus; deps now include publisher.
- server/test/git-publisher.test.ts: publishStatus add/commit/retry + cross-method
  serialisation (fake git).
- server/test/resend.test.ts: asserts publishStatus called on success and failure;
  real-git test proves `git status --short` clean and origin/main carries the
  `status: <slug> <state>` commit.
- server/test/submit.test.ts: publisher stubs gain publishStatus.
- docs/GOTCHAS.md 14: marked Fixed, points at the fix.
- STATUS.md: milestone log entry.

Out of scope (own tickets): build dispatch and the phase-3 states themselves.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
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
Matou/coa!83
No description provided.