the community app can never be built at founding — IDSS submits to /api/idss/submit, Coa serves /api/submit (live 404) #1774
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#1774
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?
What happened
On the cold manual founding of
whakatohea-demo(2026-09-23), the community app was chosen at founding ("build it now") and the gateway's design act ran for ~2.5 minutes and failed. The record on the box,/srv/idss/config/idss/community-app.json:any-sync installed fine (
anysync=truein the org-config writes). The submission is what died.Cause: the two sides never agreed on the path
IDSS posts to a route that does not exist.
internal/coaclient/client.go:45-46:Coa mounts no
/api/idss/*route at all.server/src/app.ts:107-112(Matou/coa, main):Coa's integration is real and present — it just lives at
/api/submit, with the origin carried in the body, not the path:packages/schema/src/submission.ts:14,23definesSUBMISSION_ORIGINS = ['form', 'idss']and marksidssas the auto-dispatching origin ("the founding is the relationship",server/src/routes/submit.ts:22), andserver/test/submit.test.ts:192,207exercisesorigin: 'idss'end to end.Verified live, 2026-09-23:
So every community that chooses "build the app now" at founding fails, and always has. The app half of the wallet arc was proven against a fake Coa (the prototype run, #1688,
REHEARSAL_APP_AT_FOUNDING=1), andinternal/coaclient/client_test.go:68assertshttps://coa.test/api/idss/submit— the test agrees with the bug, so nothing on either side could catch it. Two correct implementations, never wired to each other.Asks
POST /api/submit, carryingorigin: "idss"in the submission body, in the multipart shapeserver/src/routes/submit.tsexpects. Coa is the surface that already exists and already has tests — IDSS is the side that should move.statusPath = "/api/idss/status/"has no counterpart either. Coa hasGET /api/operator/build/:slug(server/src/routes/operator-build.ts:17) and the control plane's own log says it "follows Coa's public status document while pending (ADR 0226)". Establish which of those is the contract before changing the client — and if no public status document is actually published, stop and report rather than inventing one.state: failedand an empty slug. Note #1677 already landed the rule that an install-failure record re-runs the design act rather than re-submitting an empty slug into a refuse-loop — check that this failure shape rides that path.Not caused by, and unrelated to, the deploy defects found on the same run (#1764, #1765): those are about closures being pushed; this is a contract mismatch that would fail on the fastest connection in the world.
Cross-repo: Matou/coa is the counterpart, but no change looks needed there.
swarm-claim host=elitebook-distributed-server-03 run=30959
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime. Investigated the real Coa (
Matou/coa, main) to establish the contract before moving IDSS. Findings + rulings:Ask 2 — the status contract is real, not fictional; I do NOT need to stop-and-report. Coa DOES publish a public, unauthenticated per-slug status document, but at
GET /c/<slug>/status.json(server/src/routes/community-page.ts), whose own comment reads "public per slug and unauthenticated — IDSS polls it for the build outcome". It is NOT/api/operator/build/:slug(that is operator-token-gated) and NOT the fictional/api/idss/status/. Its shape isStatusSchema(packages/schema/src/status.ts):state ∈ {page-ready,building,ready,failed},assets(a per-platform URL map),releaseUrl,error,autoBuildRefused— there is nodownloads_url/platformsfield. Socoaclient.Statusmoves to/c/<slug>/status.jsonand derivesPlatformsfrom theassetskeys andDownloadsURLfrom the community page.Ask 1 — the submit shape. Coa mounts
POST /api/submit(server/src/app.ts) andparseSubmissionForm(server/src/multipart.ts) expects onesubmissionform field carrying the wholeSubmissionSchemaas JSON (brand, onboarding, features, backend, origin) plus alogofile — NOT the flat fields IDSS was sending.origin:"idss"rides in that JSON body and auto-dispatches (server/test/submit.test.ts). IDSS'sfounding.CoaSubmissionseam carries no onboarding, so the coaclient adapter synthesises the minimal validonboardingblock Coa's schema requires (welcome/approval:admin/pending/infoPages) — display metadata for Coa's community page; the built app reads its real config from the community descriptor at runtime, so this is placeholder, revertible, and provable by the contract test.Two-way-door mapping decisions (revertible; pinned by
internal/coaclient/client_test.go+cmd/rehearsal-coa/coa_test.godriving the real client against the fake): a 200 acceptance carryingstatus.autoBuildRefused(Coa parks an idss submission whose backend probe failed — it never 4xxs it) is mapped to a*founding.CoaRefusal(cardfailedwith the reason), and a 409 slug-taken tocommunityapp.SlugTakenMessage.Ask 4 — no code change needed. The failed record shape (
state:failed, empty slug, nosubmitted_at) rides #1677's design-act re-run path:controlapi/communityapp.goroutes atry againon a record withSubmittedAt==""to theDesigner(re-run design), never a re-submit of the empty slug. Fixing coaclient's contract fixes the founding tail, the dashboard design twin, AND the re-submit — all three go through the onecoaclient.Submit.close-report for #1774 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
08b4e7bc71is not reachable from origin/main (not landed)envelope
close-report for #1774 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
slug-takenand the app card dead-ends at "Coa already holds a page for this name" #1805logo: 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 #1807