community app: Try again after an INSTALL failure is a dead end — it re-submits a record that has no slug, and it never re-runs the any-sync install it failed at #1677

Closed
opened 2026-09-21 03:34:28 +00:00 by ben · 2 comments
Owner

What happened (rehearsal gateway, drive 20260921T024810Z, the #1522 fake-Coa prototype)

  1. A steward pressed Design your community app. The any-sync install failed (#1673's third wall, since fixed 439315a3), so the record went failed — honestly: "the community content layer could not be installed yet — please try again shortly", with a Try again button.
  2. The install was then repaired on the box (all seven any-sync units running). The steward pressed Try again.
  3. Five seconds later: community-app re-submitted slug="" state=failed, reason "the submission carried no slug" (Coa's own refusal — the fake Coa the gateway was pointed at). Pressing again gives the same answer forever.

Why

descriptorResubmitter.Resubmit (control-plane/cmd/control-plane/communityapp_poll.go) rebuilds the submission with Slug: rec.Slug. A record that failed BEFORE it ever submitted — an install failure, a descriptor-probe failure — has no slug (and no submitted_at, no page_url), so Coa refuses it every time. The design path (communityapp_design.go) has the slug — it reads it from the community identity (id.Slug).

And the slug is the smaller half. Try again re-SUBMITS; it never re-INSTALLS. The re-submit path skips the any-sync install and the descriptor probe entirely. Fill in the slug alone and a community whose content layer never installed would be submitted to Coa anyway — an app built against a gateway with no any-sync network behind it.

So the message "please try again shortly" on an install failure promises something Try again cannot do.

What to build

Try again must resume from WHERE the attempt failed:

  • a record that never submitted (no submitted_at) → re-run the design act's own path: ensure any-sync is installed (idempotent — a no-op when it is up), probe the descriptor, THEN submit. The slug and name come from the community identity, exactly as the design act reads them.
  • a record that did submit and Coa later failed the build → today's re-submit (slug from the record), unchanged.
  • the design's toggles/contact email: the re-submit comment says they "live in the founding draft" and the twin "will carry the full-fidelity re-design". For a record designed from the DASHBOARD they were posted to this control plane — persist them with the record so a retry rebuilds the same app, not the identity-only minimum.

Also seen in the same run (small, same surface)

After the design dialog closes, the Overview's app card is not re-read: it stays data-status="none" ("not yet designed") until the page is reloaded, then shows the failure. The dialog's submit should refresh the card (or the card should poll while a design is in flight — the install takes minutes).

Acceptance

  • Seam: a record failed at install, with the install now healthy → Try again ends pending with ONE submission carrying the community's slug; with the install still broken → failed with the install reason, and NOTHING is sent to Coa.
  • Seam: a record failed by Coa after a real submission → re-submit as today.
  • The card reflects the outcome without a reload.
  • GOTCHAS entry: a retry must resume from the failed step, not from the last step.

Blocks the pairing legs' refuse/retry assertions (#1522). Found by Ben's session.

## What happened (rehearsal gateway, drive `20260921T024810Z`, the #1522 fake-Coa prototype) 1. A steward pressed **Design your community app**. The any-sync install failed (#1673's third wall, since fixed `439315a3`), so the record went `failed` — honestly: *"the community content layer could not be installed yet — please try again shortly"*, with a **Try again** button. 2. The install was then repaired on the box (all seven any-sync units running). The steward pressed **Try again**. 3. Five seconds later: `community-app re-submitted slug="" state=failed`, reason **"the submission carried no slug"** (Coa's own refusal — the fake Coa the gateway was pointed at). Pressing again gives the same answer forever. ## Why `descriptorResubmitter.Resubmit` (`control-plane/cmd/control-plane/communityapp_poll.go`) rebuilds the submission with `Slug: rec.Slug`. A record that failed BEFORE it ever submitted — an install failure, a descriptor-probe failure — has no slug (and no `submitted_at`, no `page_url`), so Coa refuses it every time. The design path (`communityapp_design.go`) has the slug — it reads it from the community identity (`id.Slug`). And the slug is the smaller half. **Try again re-SUBMITS; it never re-INSTALLS.** The re-submit path skips the any-sync install and the descriptor probe entirely. Fill in the slug alone and a community whose content layer never installed would be submitted to Coa anyway — an app built against a gateway with no any-sync network behind it. So the message "please try again shortly" on an install failure promises something Try again cannot do. ## What to build Try again must resume from WHERE the attempt failed: - a record that never submitted (no `submitted_at`) → re-run the design act's own path: ensure any-sync is installed (idempotent — a no-op when it is up), probe the descriptor, THEN submit. The slug and name come from the community identity, exactly as the design act reads them. - a record that did submit and Coa later failed the build → today's re-submit (slug from the record), unchanged. - the design's toggles/contact email: the re-submit comment says they "live in the founding draft" and the twin "will carry the full-fidelity re-design". For a record designed from the DASHBOARD they were posted to this control plane — persist them with the record so a retry rebuilds the same app, not the identity-only minimum. ## Also seen in the same run (small, same surface) After the design dialog closes, the Overview's app card is not re-read: it stays `data-status="none"` ("not yet designed") until the page is reloaded, then shows the failure. The dialog's submit should refresh the card (or the card should poll while a design is in flight — the install takes minutes). ## Acceptance - Seam: a record failed at install, with the install now healthy → Try again ends `pending` with ONE submission carrying the community's slug; with the install still broken → `failed` with the install reason, and NOTHING is sent to Coa. - Seam: a record failed by Coa after a real submission → re-submit as today. - The card reflects the outcome without a reload. - GOTCHAS entry: a retry must resume from the failed step, not from the last step. Blocks the pairing legs' refuse/retry assertions (#1522). Found by Ben's session.

swarm-claim host=bens-mac-04 run=28904
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=28904 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1677 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1677,
  "status": "success",
  "commits": [
    "82ca9743573eaf8ad03fe6fdca7d29ecd6f8176f"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/main.go",
    "dashboard/src/components/DashboardComposition.vue",
    "dashboard/src/components/shell/OverviewSurface.vue",
    "dashboard/tests/unit/dashboardComposition.test.ts",
    "dashboard/tests/unit/overviewCommunityApp.test.ts",
    "docs/GOTCHAS.md",
    "internal/communityapp/design.go",
    "internal/communityapp/record.go",
    "internal/controlapi/communityapp.go",
    "internal/controlapi/communityapp_design.go",
    "internal/controlapi/communityapp_poll_integration_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci --command go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go vet ./internal/communityapp/... ./internal/controlapi/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go test ./internal/communityapp/... ./internal/controlapi/...",
      "exit_code": 0
    },
    {
      "command": "pnpm vitest run tests/unit/overviewCommunityApp.test.ts tests/unit/dashboardComposition.test.ts tests/unit/navigatorDialog.test.ts",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p dashboard/tsconfig.json --noEmit",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Seam: a record failed at install, install now healthy -> Try again ends pending with ONE submission carrying the community's slug": "internal/controlapi/communityapp.go (SubmittedAt==\"\" routes through the Designer, not the Resubmitter); TestResubmit_PreSubmitFailureResumesTheDesignAct asserts designer.Calls==1, resubmitter.calls==0, view pending with slug 'whakatohea'",
    "Seam: install still broken -> failed with the install reason, and NOTHING is sent to Coa": "TestResubmit_PreSubmitFailureStillBrokenSendsNothing asserts resubmitter.calls==0, view failed with the install reason and submitted_at empty",
    "Seam: a record failed by Coa after a real submission -> re-submit as today": "failedRec() now carries submitted_at; TestResubmit_AcceptedMovesToPending / _SlugTaken still route through the resubmitter unchanged",
    "The card reflects the outcome without a reload": "OverviewSurface watches communityAppRefreshKey (re-reads the record); DashboardComposition bumps it on design-app dialog close. overviewCommunityApp.test.ts 're-reads the card when the design dialog closes' + dashboardComposition.test.ts bump/no-bump tests; the Try again action already repaints via resubmit() (existing)",
    "GOTCHAS entry: a retry must resume from the failed step, not from the last step": "docs/GOTCHAS.md #302"
  },
  "summary": "Try again now resumes from where the attempt failed — a never-submitted (install/probe-failure) record re-runs the design act instead of re-submitting an empty slug into a Coa refuse-loop; the twin's choices are persisted and the overview card refreshes on dialog close.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1677 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1677, "status": "success", "commits": [ "82ca9743573eaf8ad03fe6fdca7d29ecd6f8176f" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/main.go", "dashboard/src/components/DashboardComposition.vue", "dashboard/src/components/shell/OverviewSurface.vue", "dashboard/tests/unit/dashboardComposition.test.ts", "dashboard/tests/unit/overviewCommunityApp.test.ts", "docs/GOTCHAS.md", "internal/communityapp/design.go", "internal/communityapp/record.go", "internal/controlapi/communityapp.go", "internal/controlapi/communityapp_design.go", "internal/controlapi/communityapp_poll_integration_test.go" ], "tests": [ { "command": "nix develop .#go-ci --command go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go vet ./internal/communityapp/... ./internal/controlapi/...", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go test ./internal/communityapp/... ./internal/controlapi/...", "exit_code": 0 }, { "command": "pnpm vitest run tests/unit/overviewCommunityApp.test.ts tests/unit/dashboardComposition.test.ts tests/unit/navigatorDialog.test.ts", "exit_code": 0 }, { "command": "npx vue-tsc -p dashboard/tsconfig.json --noEmit", "exit_code": 0 } ], "criteria": { "Seam: a record failed at install, install now healthy -> Try again ends pending with ONE submission carrying the community's slug": "internal/controlapi/communityapp.go (SubmittedAt==\"\" routes through the Designer, not the Resubmitter); TestResubmit_PreSubmitFailureResumesTheDesignAct asserts designer.Calls==1, resubmitter.calls==0, view pending with slug 'whakatohea'", "Seam: install still broken -> failed with the install reason, and NOTHING is sent to Coa": "TestResubmit_PreSubmitFailureStillBrokenSendsNothing asserts resubmitter.calls==0, view failed with the install reason and submitted_at empty", "Seam: a record failed by Coa after a real submission -> re-submit as today": "failedRec() now carries submitted_at; TestResubmit_AcceptedMovesToPending / _SlugTaken still route through the resubmitter unchanged", "The card reflects the outcome without a reload": "OverviewSurface watches communityAppRefreshKey (re-reads the record); DashboardComposition bumps it on design-app dialog close. overviewCommunityApp.test.ts 're-reads the card when the design dialog closes' + dashboardComposition.test.ts bump/no-bump tests; the Try again action already repaints via resubmit() (existing)", "GOTCHAS entry: a retry must resume from the failed step, not from the last step": "docs/GOTCHAS.md #302" }, "summary": "Try again now resumes from where the attempt failed — a never-submitted (install/probe-failure) record re-runs the design act instead of re-submitting an empty slug into a Coa refuse-loop; the twin's choices are persisted and the overview card refreshes on dialog close.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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/idss#1677
No description provided.