Destroying a community never frees its name on Coa — Coa has no release door, so re-founding under the same name is refused slug-taken and the app card dead-ends at "Coa already holds a page for this name" #1805
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1805
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?
Proven (cold manual founding #2 of
whakatohea-demo, 2026-09-23)The founding completed and handed off at ~17:40; the community-app card reports the build failed. Coa's public status document for the slug, read tonight:
16 September — that is the first Whakatōhea Demo's submission (founded 09-16, torn down this morning and again this afternoon via broker
release+subdomains/offboard). Coa still holds the name.https://coa.matou.nz/c/whakatohea-demorenders the parked "A whakawhanaungatanga session comes before your build" page from that week-old submission.server/src/routes/submit.ts:36—if (await deps.store.exists(slug)) return c.json({ error: 'slug-taken', slug }, 409)— runs BEFORE the auto-dispatch branch, so an IDSS-originated re-submission of a held slug is refused 409 regardless of origin or probe. The app client maps a 4xx to aCoaRefusal; the tail rests the card atfailedwithSlugTakenMessage= "Coa already holds a page for this name" (internal/communityapp/poll.go:202), and by spec that refusal offers no Try again (#1742) — the card points at Coa and stops.Coa's router (
server/src/app.ts:107-114) mountshealth,validate-backend,submit,build-complete,build-upload,operator/buildand/c. There is no route that releases, deletes or offboards a slug. The only way to free a name today is a hand edit of Coa's community store onmatou-prod.The Destroy-community design does not cover it: DDR 0274 has zero mentions of Coa; spec #1784, the broker LEAVE act #1785 ("release every rental, free the name") and the live proof #1793 ("destroy … then re-found under the same name") likewise. #1785 frees the name on the broker; the same name stays held on Coa, so #1793's re-found will hit exactly this 409 on its Coa leg.
(The teardown recipe in this run's notes — decrypt the claim secret,
gateways/release,subdomains/offboard,subdomains/available— is the same shape: broker only.)Inferred — one thing I could not read
The card's exact reason text on Ben's screen. Everything above holds regardless; if the card says something other than "Coa already holds a page for this name", say so on this ticket and the diagnosis of today's symptom narrows differently (the gap itself stands).
What this needs
Coa: a release door.
POST /api/release(orDELETE /c/:slug) that removes a community's store entry and unpublishes its page, authenticated by something the community can prove it holds. The natural credential is the same one the broker uses forrelease/offboard— the community's claim secret (ADR 0135) — which Coa can verify by asking the broker, or Coa mints its own per-submission secret returned in thePOST /api/submitanswer and the app seals it as a var. Either way a stranger cannot free someone else's app page. Lives inMatou/coa.IDSS: the destroy act calls it. DDR 0274's act (
internal/controlapi/destroy.go, #1786) and the app-side backstop (#1792) add a Coa leg after the broker leave: best-effort, non-fatal (ADR 0100 — Coa is never a gate, DDR 0228 §3), its outcome shown on DC6 next toname-freed("app page released" / "Coa still holds the app page — Matou can free it"). The 09-16 residue on Coa is the counter-example the proof needs.Spec + design. DDR 0274 / #1784 gain the Coa leg; #1793's live proof adds "and Coa's status.json for the name is 404 before the re-found".
A way out when the name is stuck anyway. Today the slug-taken card has no Try again by design (#1742) because the spec assumes the name is genuinely someone else's. When it is the operator's own residue, freed by Matou's hand, the card needs a re-submit path — otherwise the only recovery is founding under a different name. Smallest fix: the slug-taken card offers "Check again", which re-submits (the #1677 resume) once Coa's
status.jsonfor the slug answers 404.To unblock THIS run (hand step, Ben or Matou on
matou-prod)Remove the
whakatohea-demoentry from Coa's community store and republish, then confirmGET /c/whakatohea-demo/status.json→ 404. Until (4) exists there is no product path to re-submit from the card, so the re-submit is a handPOST /api/submitwith the same form the tail built (coaSubmissionFor,communityapptail.go) — or found under a different name.Relates to: #1781, #1784, #1785, #1786, #1792, #1793, #1742, #1677, #1774 (the first Coa failure this morning was the path; this is what was underneath it), #1495, DDR 0274, DDR 0228, ADR 0135, ADR 0100.
Ruled by agent under ADR 0174 — veto anytime
Ruling: category
bug(kept), stateneeds-design. Notready-for-agent.Why
needs-design(missing-design gate). The design contract this bug would be built against does not exist yet — verified, not assumed:grep -in coa docs/adr/0274-*.md→ nothing). The whole Destroy-community design (spec #1784, broker LEAVE #1785, live proof #1793) frees the name on the broker only; the Coa leg is undesigned.Matou/coa), which isn't in this tree, so a swarm worker here cannot build it regardless.SlugTakenMessagetoday has no Try-again by design, #1742).So the design tier must produce the contract (Coa leg in DDR 0274, DC6 outcome, the "Check again" flow, and the release-door credential model) before any implementation. That's
needs-designby definition, notready-for-agent.Why this is a two-way door. The ruling is a label change on an open issue, reverted by a later edit, and provable by the greps above (the absent Coa content in DDR 0274, the absent Coa leg in
internal/controlapi/destroy.go,Matou/coabeing a separate repo). It is not on the one-way-door list — I am routing the work, not approving anything irreversible.What proves it:
grep -in coa docs/adr/0274-*.md→ no matchgrep -in coa internal/controlapi/destroy.go→ no match (the landed act frees the name on the broker, not on Coa)internal/communityapp/poll.go:254—SlugTakenMessageconfirmed; the card dead-ends as describedMatou/coaserver/src/routes/submit.ts/server/src/app.tsnot present in this tree (separate repo)Residue the design phase must surface (not decided here):
whakatohea-demoresidue from Coa's store onmatou-prodand republishing tostatus.json→ 404 is a production op flagged in the body for Ben/Matou; triage does not action it.No redundancy or prior-rejection match: the Coa release door is unbuilt (not already-implemented), and
.out-of-scope/holds nothing resembling it.Correction on today's symptom (the gap in this ticket stands unchanged): the founding-time and Try-again failures were NOT the 409 — they were Coa's 400 validation on the logo. The community's brand-kit logo is a JPEG and Coa accepts only SVG/PNG (
multipart.ts:21), andsubmit.tsparses the form (line 26) BEFORE the slug check (line 36), so the 409 was never reached. Gateway record:reason: "Coa could not validate the submission: logo". Filed as its own ticket (the next number after this comment). The 09-16 residue on Coa was real and was released by hand tonight (git rm communities/whakatohea-demo, pushed;status.json→ 404) — it would have been the NEXT wall.logo: the client labels the logo partapplication/octet-stream(mw.CreateFormFile) and Coa validates the part's Content-Type, not the bytes — a PNG kit fails exactly like the JPEG one; fix the part header, then … #1806anysyncblock omitsid(the any-sync network-configuration id) — Coa's ClientConfigSchema refuses the backend probe, every IDSS-originated build is withheld at page-ready, and matou-app's client would start with an empty id #1807Ruled by Ben, 2026-09-24 — option A → ADR 0276 (
117d075b): Coa frees a name on the community's own claim secret, verified through a new brokerPOST /v1/subdomains/verify. Coa side filed as Matou/coa#148. This ticket is now the IDSS side, ready for an agent: (1) brokerPOST /v1/subdomains/verify {host}+ Bearer → 204/403/404, reveals nothing else; (2) the destroy act's Coa leg AFTER the broker leave on both surfaces (controlapi/destroy.go#1786, app backstop #1792), best-effort, non-fatal (ADR 0100), outcome on DC6 besidename-freed("app page released" / "Coa still holds the app page — Matou can free it"); (3) the slug-taken card gains Check again (re-submit oncestatus.jsonfor the slug answers 404); (4)rehearsal-coagains the release door and refuses without a valid secret; (5) #1793's live proof asserts Coa'sstatus.jsonis 404 before the re-found. DDR 0274 / spec #1784 gain the Coa leg in the same change.mintPresetInviteonto the preset CARD but left the guard test pinning the pre-#1796... input+.check()—app/tests/e2e/fixtures/idip.test.ts:462#1812swarm-claim host=matou-dev-server-01 run=31563
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1805 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
Renumbered (2026-09-24, main
54cdc2ce): the Coa name-release ADR this ticket ruled had been minted as 0276, the same number as DDR 0276 an App report rides the broker (ruled 2026-09-21). It is now ADR 0278 —docs/adr/0278-coa-frees-a-community-name-on-the-communitys-own-claim-secret-verified-through-the-broker.md— and everyADR 0276citation in code comments, ADR 0274, the wkt-demo spec and STATUS.md reads 0278. Wherever a comment on this ticket says "ADR 0276", read ADR 0278. No behaviour change (Go comments only).