Founding with "build our app now" can never submit to Coa on the IDIP path — the tail waits for a community AID that does not exist until after hand-off #1699
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#1699
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 happens
A founder picks IDIP and leaves the wallet choice on its preselected Option 1 — build our community app now. Founding then:
The route can never succeed. It is the DEFAULT choice on the IDIP path.
Evidence
Debug IDIP fire
20260921T192808Z(elitebook-03,4d906f1d, the newREHEARSAL_APP_AT_FOUNDING=1variant — the first time this route has been driven anywhere).deploy-takeoverred at its 25-minute ceiling on the frame above. On the kept box at that moment:systemctl is-system-running=running, no jobs, the control plane listening, all sevenpodman-anysync-*containersactive running— nothing was wrong with the gateway. The descriptor read from outside:Cause
internal/founding/deploy.gorunsrunCommunityAppTailBEFORE it setsds.Outcome = DeployLive. The tail'sprobeDescriptorLivewaits for the descriptor to carryversionANDcommunity.aid(internal/descriptorprobe/prober.go:cfg.Version != "" && cfg.Community.AID != "") —doorProbeDefaultAttempts = 120×doorProbeDefaultDelay = 5s, plus each probe's own HTTP time.On the IDIP path the community AID does not exist yet at that point: it is incepted by the identity ceremony in the renderer, on the hand-off screen, AFTER deploy-live (
RecordCommunityIdentity,internal/founding/communityidentity.go). So the probe can only ever time out; the tail then recordsfailedand skips the Coa submission (spec #1495 story 10's branch), and the operator has been held on a screen that says the gateway is still coming up for the whole budget.The "later" route works (proven: #1688) only because the operator presses Design your community app long after the ceremony.
Fix direction
Run the community-app tail when the community identity is RECORDED (the second
RecordCommunityIdentitycall — the registry set), not inside the gateway deploy. Deploy-live stops waiting on it; the submission happens the moment the descriptor can truthfully carrycommunity.aid. Coa stays "never a gate".Acceptance
pendingat the operator home once the ceremony is done.REHEARSAL_APP_AT_FOUNDING=1variant goes green throughapp-pending-at-handoff.Blocks #1522 (its own route). Filed from wayfinder map #1293.
Ruled by agent under ADR 0174 — veto anytime.
Ruling:
ready-for-agentCategory:
bug· State:ready-for-agent(keepingpriority).Claim verified against the tree at
4d906f1dThe cause holds up exactly as filed:
internal/founding/deploy.go:795callso.runCommunityAppTail(...)and onlydeploy.go:797setsds.Outcome = DeployLive— the tail runs before deploy-live, as reported.internal/founding/communityapptail.go:216gates the Coa submission onprobeDescriptorLive, andinternal/descriptorprobe/prober.go:117returnscfg.Version != "" && cfg.Community.AID != ""— so the probe cannot pass until the community AID exists.RecordCommunityIdentity(internal/founding/communityidentity.go:78) on the hand-off screen, after deploy-live. The probe therefore always times out, andcommunityapptail.gowritesStateFailedwith the reason "the outside could not read your community's details yet" — the exact card text in the report. Confirmed.Why this is a two-way door
The fix is a reordering of backend founding logic (move the app tail from inside the gateway deploy to the point where the community identity is recorded). It is revertible by a later commit and is provable by an existing-style seam test — the one named in the acceptance criteria. It is not on the one-way-door list (no credentials, no security-posture widening, no member-facing trust accept, no data destruction, no spend).
What proves it
DeployLivewith no probe and no submission; recording the community then probes and submits (exactly once; a resume does not submit twice).REHEARSAL_APP_AT_FOUNDING=1→app-pending-at-handoff, AC5) rides the next IDIP fire, as with the sibling app legs.For the agent
Ben's issue body is already a complete brief — cause, fix direction, and acceptance criteria are all present and verified. No missing design contract (the
pendingcard, operator home and control panel already ship) and no human-decision residue, so the missing-design and human-decision gates both pass. Ship the code + seam test; append the GOTCHAS entry (AC6) in the same commit.swarm-claim host=bens-mac-04 run=29518
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1699 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
Live result of the first fix (
7b6b9d28) — half rightFour debug fires on the app-at-founding route (
…202157Z,…211802Z,…215039Z,…222438Z): every one reacheddeploy-takeovergreen (the ten-minute hold is gone), recorded the community identity, and founding made exactly one Coa submission with the whole shape. That half is proven.The second half is not fixed. Fire
…222438Z, on the kept gateway:Founding's tail saves the app record into the laptop's config repo (
communityapp.NewConfigRepoStore(clan.OpenConfigRepo(clanConfigRepoPath()))). Originally the tail ran inside the deploy, BEFORE founding's finish hands the config repo to the gateway, so the record travelled with it. Now the tail (correctly) runs after the identity ceremony — which is AFTER the hand-over — so the record is written to a repo the gateway no longer reads. Coa holds a submission; the gateway's card says not designed yet, never polls, and would let the operator submit a second time.The laptop's repo cannot simply be pushed again: the gateway's copy has moved on (the identity record is written gateway-side).
The decision this needs (Ben)
Who submits to Coa when the app is chosen at founding?
{slug, page_url, submitted_at}after Coa accepts, and the gateway's record opens atpendingand its poll follows. Smallest change; keeps spec #1495's "the pipeline tail submits".POST /api/v1/community-app/design) — the SAME path Design your community app takes, proven green by #1688. One submission path instead of two; the record is born on the gateway. Bigger behavioural change: the laptop's Coa client and the founding tail's probe/submit become dead code on the IDIP path.Recommendation: X. It deletes a second implementation of the same act, and the path it reuses already has a record green. Y is the fallback if founding must stay the submitter.