server: post-publish status.json writes (resend, phase-3 transitions) must be committed — they dirty the host checkout and block the coa role's git pull (GOTCHAS 14) #82
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/coa#82
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Plan
Phase 3 follow-up from the #39 smoke (GOTCHAS 14). Decision context: ADR 0003 (the server commits
communities/<slug>/tomain).Problem
make resend SLUG=…(serverresend) rewritescommunities/<slug>/status.jsonin place (updatedAt) but does not commit or push it. The host checkout onmatouis then dirty and thecoarole'sansible.builtin.gittask (force: false, deliberately — it must never discard a submission) fails with Local modifications exist in the destination. Every future status transition (phase-3 build states) has the same shape.Deliverable (pick one, state the choice in the PR)
GitPublisher—git add communities/<slug>/status.json && git commit -m "status: <slug> <state>" && pull --rebase && push, same retry/serialisation aspublish(slug).resendand the phase-3 transitions call it. Test with the stubbedexeclikegit-publisher.test.ts.coarole updates the checkout withpull --rebase --autostashsemantics instead of failing (still neverforce).Acceptance
resend,git status --shortin the checkout is clean andorigin/maincarries the status commit authoredcoa-server.coarole re-runs green onmatouimmediately after aresend.docs/GOTCHAS.md14 updated to point at the fix.depends_on
out_of_scope
Build dispatch and the phase-3 states themselves (their own tickets).
Ruled by agent under ADR 0174 (two-way-door doctrine) — veto anytime
Ruling:
ready-for-agent. post-publish status.json writes must be committed (GOTCHAS 14) — option 1 (server-side GitPublisher) is stated preferred.Why this is a two-way door: it is revertible by a later commit or label change, and provable by the tests the plan specifies — which never reach the real network, send real mail, dispatch a real build or provision a real tenant. It is not on the one-way-door list: the credential bytes, real GitHub dispatch/release and live coa-shared tenant are already carved out into the human ticket #79 and the session tickets #80/#81; env-gated defaults keep the wired code inert (noop/static, 503/unconfigured) until those land.
What proves it: option 1 is proven by a stubbed-
exectest likegit-publisher.test.ts(same retry/serialisation aspublish(slug)); the host re-run acceptance is a deploy-time check owned by the phase-3 deploy ticket (#81), not this PR.The ticket body is a complete agent brief (Deliverable / Acceptance / depends_on). The native Forgejo dependency links already mirror the plan's graph, so the swarm ready-list filter holds this ticket until its blockers close.
swarm-claim host=matou-dev-server-01 run=1253
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #82 — status
success✅ close-report gates passed — every claim verified against the PR head; PR #83 (#83) is green and was merged (agent-after-green); the issue closed via
closes #82.envelope