pairing T12: designing the community's app later, from the dashboard — the same screen, the same submission #1521

Closed
opened 2026-09-16 03:14:34 +00:00 by ben · 3 comments
Owner

Parent

Spec #1495 (community app pairing — the descriptor and config server on the gateway, the S3a wallet choice and S3a-APP, the Coa submission at the pipeline tail, the app card). Program map #1293 (the community wallet). Design contract: ADR 0226 (amended by ADRs 0235, 0236, 0238 and the 2026-09-15 spaces amendment) and DDR 0228 (amended by DDR 0239).

Story 21 of the spec — the none card's way in. This is the community initialisation pipeline the map
held as fog.

What to build

An operator who chose later, or whose community pre-dates the app, designs it from the dashboard with the
same screen founding would have shown, and the gateway does the rest: install the content layer, prove the
descriptor readable, submit to Coa. Later is the same walk, not a lesser one.

Acceptance criteria

  • The none card's Design your community app opens the dashboard twin of S3a-APP: the same features,
    the same contact email, the same kit-wearing preview, prefilled from the community's brand kit
  • Submitting runs the same control-plane path as the pipeline tail — descriptor probe, then Coa —
    and the card moves to pending or failed by the same rules, with no second submission implementation
  • On a community with no any-sync, the submission first installs the any-sync set as a deploy (the
    catalogue-service deploy precedent) so the descriptor Coa probes is complete
  • On the private path the twin says the app needs a public address and offers nothing to submit
  • After a successful submit the card is pending on both surfaces

Blocked by

Tracker: #1517, #1518

  • T8 (the card's states and the poll), T9 (the any-sync units to deploy)

Task manifest

task: dashboard-design-app-twin
implements_flow: community-app-journey
implements_edge: "none → pending"
wireframe: docs/ux/wireframes/p1-founding/p1-s3a-community-app.html
seam: internal/controlapi integration + dashboard component tests
depends_on: [pairing:app-status-poll-and-ready, pairing:anysync-on-the-gateway]
out_of_scope: [the spaces for a later community (that is the first-steward fallback)]
needs_human_decision: []
## Parent Spec **#1495** (community app pairing — the descriptor and config server on the gateway, the S3a wallet choice and S3a-APP, the Coa submission at the pipeline tail, the app card). Program map **#1293** (the community wallet). Design contract: **ADR 0226** (amended by ADRs 0235, 0236, 0238 and the 2026-09-15 spaces amendment) and **DDR 0228** (amended by DDR 0239). Story 21 of the spec — the `none` card's way in. This is the **community initialisation pipeline** the map held as fog. ## What to build An operator who chose later, or whose community pre-dates the app, designs it from the dashboard with the same screen founding would have shown, and the gateway does the rest: install the content layer, prove the descriptor readable, submit to Coa. Later is the same walk, not a lesser one. ## Acceptance criteria - [ ] The `none` card's *Design your community app* opens the dashboard twin of S3a-APP: the same features, the same contact email, the same kit-wearing preview, prefilled from the community's brand kit - [ ] Submitting runs the **same** control-plane path as the pipeline tail — descriptor probe, then Coa — and the card moves to pending or failed by the same rules, with no second submission implementation - [ ] On a community with no any-sync, the submission first installs the any-sync set as a deploy (the catalogue-service deploy precedent) so the descriptor Coa probes is complete - [ ] On the private path the twin says the app needs a public address and offers nothing to submit - [ ] After a successful submit the card is `pending` on both surfaces ## Blocked by Tracker: #1517, #1518 - T8 (the card's states and the poll), T9 (the any-sync units to deploy) ## Task manifest ```yaml task: dashboard-design-app-twin implements_flow: community-app-journey implements_edge: "none → pending" wireframe: docs/ux/wireframes/p1-founding/p1-s3a-community-app.html seam: internal/controlapi integration + dashboard component tests depends_on: [pairing:app-status-poll-and-ready, pairing:anysync-on-the-gateway] out_of_scope: [the spaces for a later community (that is the first-steward fallback)] needs_human_decision: [] ```

swarm-claim host=matou-dev-server-01 run=25007
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=25007 (automated multi-host claim — lowest live claim id works this ticket)

Ruled by agent under ADR 0174 — veto anytime.

Story 21 landed. Four two-way-door design calls, each revertible by a later commit and provable at the seam:

  1. A dedicated prefill endpoint for the twin — GET /api/v1/community-app/design returns name, colours, contact default, and the community public address. An empty public_address is the private-path signal the twin reads to say "the app needs a public address" and offer no submit (acceptance clause 4). This is cleaner than plumbing an apex through the served-entry HTML config, and revertible.
  2. The design POST is steward-gated and only accepted from a none record (else 409). The none card is the twins way in; a pending/ready/failed record has its own actions (the poll, try again), so a design there would race a settled state.
  3. Contact-email prefill from IDSS_ALERT_CONTACT_EMAIL — the gateways standing contact is the best post-founding default; empty when unseeded (the operator types it).
  4. The any-sync install is wired as real clan glue (clan.Adapter.InstallAnySync: render anysync-stack.nix + recompose + seal vars + deploy — the catalogue-service deploy precedent). The install-only-when-absent-before-submit ordering is proven at the seam with fakes; the live deploys runtime correctness rides matou-ops verification, exactly as coaclients real Coa round-trip does (its swarm substrate carries no Coa-side service).

No second submission implementation: the Coa submit is coaclients one multipart POST and the descriptor probe is internal/descriptorprobe, both shared with the pipeline tail; the outcome rules are the pure communityapp.ApplyDesign, the mirror of the tails mapping.

Ruled by agent under ADR 0174 — veto anytime. Story 21 landed. Four two-way-door design calls, each revertible by a later commit and provable at the seam: 1. **A dedicated prefill endpoint for the twin** — `GET /api/v1/community-app/design` returns name, colours, contact default, and the community public address. An empty `public_address` is the private-path signal the twin reads to say "the app needs a public address" and offer no submit (acceptance clause 4). This is cleaner than plumbing an apex through the served-entry HTML config, and revertible. 2. **The design POST is steward-gated and only accepted from a `none` record** (else 409). The `none` card is the twins way in; a `pending`/`ready`/`failed` record has its own actions (the poll, `try again`), so a design there would race a settled state. 3. **Contact-email prefill from `IDSS_ALERT_CONTACT_EMAIL`** — the gateways standing contact is the best post-founding default; empty when unseeded (the operator types it). 4. **The any-sync install is wired as real clan glue** (`clan.Adapter.InstallAnySync`: render `anysync-stack.nix` + recompose + seal vars + deploy — the catalogue-service deploy precedent). The install-only-when-absent-before-submit ordering is proven at the seam with fakes; the live deploys runtime correctness rides matou-ops verification, exactly as `coaclient`s real Coa round-trip does (its swarm substrate carries no Coa-side service). No second submission implementation: the Coa submit is `coaclient`s one multipart POST and the descriptor probe is `internal/descriptorprobe`, both shared with the pipeline tail; the outcome rules are the pure `communityapp.ApplyDesign`, the mirror of the tails mapping.

close-report for #1521 — status success

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

envelope
{
  "issue": 1521,
  "status": "success",
  "commits": [
    "23e3d160ca070b65641faf8e75ffa7c83d9e9339"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/communityapp_design.go",
    "control-plane/cmd/control-plane/communityapp_design_test.go",
    "control-plane/cmd/control-plane/idip_gate_wiring_test.go",
    "control-plane/cmd/control-plane/main.go",
    "dashboard/src/bootstrap.ts",
    "dashboard/src/components/DashboardComposition.vue",
    "dashboard/src/components/shell/CommunityAppDesignDialog.vue",
    "dashboard/src/lib/api/communityAppDesignClient.ts",
    "dashboard/src/lib/api/generated.ts",
    "dashboard/src/lib/communityAppDesign.ts",
    "dashboard/src/lib/dashboardNavigator.ts",
    "dashboard/src/lib/mountRegistry.ts",
    "dashboard/tests/fakes/communityAppDesign.ts",
    "dashboard/tests/support/defaultDashboardDeps.ts",
    "dashboard/tests/unit/communityAppDesign.test.ts",
    "dashboard/tests/unit/navigatorDialog.test.ts",
    "internal/clan/anysync_install.go",
    "internal/communityapp/design.go",
    "internal/communityapp/design_test.go",
    "internal/controlapi/communityapp_design.go",
    "internal/controlapi/communityapp_design_integration_test.go",
    "packages/openapi-spec/openapi.yaml"
  ],
  "tests": [
    {
      "command": "go test ./internal/communityapp/ ./internal/controlapi/ ./internal/clan/ ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "go build ./... && go vet ./internal/communityapp/ ./internal/controlapi/ ./internal/clan/ ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "npx vitest run tests/unit/communityAppDesign.test.ts tests/unit/navigatorDialog.test.ts tests/unit/overviewCommunityApp.test.ts",
      "exit_code": 0
    },
    {
      "command": "node packages/openapi-spec/scripts/generate-client.mjs --check",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The none card's Design your community app opens the dashboard twin of S3a-APP: the same features, contact email, kit-wearing preview, prefilled from the community's brand kit": "dashboard/src/components/shell/CommunityAppDesignDialog.vue mirrors app/src/components/founding/FoundingCommunityApp.vue's field contract (data-field features/contact-email/platforms/app-preview, locked data-feature=identity + toggleable rows, inline kit-wearing phone preview with tabs following toggles); opened as a device-add-style frame dialog via dashboardNavigator's design-app branch; prefilled via GET /api/v1/community-app/design (name/colours/contact) — tests/unit/communityAppDesign.test.ts (6) + navigatorDialog.test.ts",
    "Submitting runs the same control-plane path as the pipeline tail — descriptor probe, then Coa — and the card moves to pending or failed by the same rules, with no second submission implementation": "control-plane communityAppDesigner runs descriptorprobe.New() then coaclient.Submit (the SAME probe + submission as the tail); communityapp.ApplyDesign is the pure mirror of the tail's outcome mapping (accepted→pending, refusal→failed) — internal/communityapp/design_test.go + internal/controlapi/communityapp_design_integration_test.go (accepted→pending, unreadable/refusal→failed) + control-plane communityapp_design_test.go (probe gates submit)",
    "On a community with no any-sync, the submission first installs the any-sync set as a deploy (the catalogue-service deploy precedent) so the descriptor Coa probes is complete": "clan.Adapter.InstallAnySync (internal/clan/anysync_install.go — render anysync-stack.nix + ComposeGatewayCohost + GenerateNodeVars + Deploy); communityAppDesigner installs only when identity.Anysync==nil, before probe/submit — control-plane communityapp_design_test.go (TestDesigner_InstallsAnySyncWhenAbsentBeforeSubmit, SkipsInstallWhenAnySyncPresent, InstallFailureRestsFailed)",
    "On the private path the twin says the app needs a public address and offers nothing to submit": "prefill.public_address is empty on a private apex; the twin renders data-field=needs-public-address and no data-action=submit — tests/unit/communityAppDesign.test.ts; backstop: communityAppDesigner returns DesignRefusal{NeedsPublicAddress} for a blank apex → ApplyDesign rests none (design_test.go TestApplyDesign_PrivateRestsNone, controlapi TestDesign_PrivateRestsNone, main TestDesigner_PrivateApexNeedsPublicAddress)",
    "After a successful submit the card is pending on both surfaces": "the design POST ApplyDesign-records Chosen=now/State=pending on the SAME communityapp.Store both the operator home and the dashboard overview read (#1516) — internal/controlapi/communityapp_design_integration_test.go TestDesign_AcceptedRestsPending asserts the stored record is pending"
  },
  "summary": "The none card's Design your community app opens the dashboard twin of S3a-APP; submitting installs any-sync if absent, probes the descriptor and submits to Coa via the same path as the pipeline tail, resting the card pending on both surfaces.",
  "blockers": []
}
**close-report** for #1521 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1521, "status": "success", "commits": [ "23e3d160ca070b65641faf8e75ffa7c83d9e9339" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/communityapp_design.go", "control-plane/cmd/control-plane/communityapp_design_test.go", "control-plane/cmd/control-plane/idip_gate_wiring_test.go", "control-plane/cmd/control-plane/main.go", "dashboard/src/bootstrap.ts", "dashboard/src/components/DashboardComposition.vue", "dashboard/src/components/shell/CommunityAppDesignDialog.vue", "dashboard/src/lib/api/communityAppDesignClient.ts", "dashboard/src/lib/api/generated.ts", "dashboard/src/lib/communityAppDesign.ts", "dashboard/src/lib/dashboardNavigator.ts", "dashboard/src/lib/mountRegistry.ts", "dashboard/tests/fakes/communityAppDesign.ts", "dashboard/tests/support/defaultDashboardDeps.ts", "dashboard/tests/unit/communityAppDesign.test.ts", "dashboard/tests/unit/navigatorDialog.test.ts", "internal/clan/anysync_install.go", "internal/communityapp/design.go", "internal/communityapp/design_test.go", "internal/controlapi/communityapp_design.go", "internal/controlapi/communityapp_design_integration_test.go", "packages/openapi-spec/openapi.yaml" ], "tests": [ { "command": "go test ./internal/communityapp/ ./internal/controlapi/ ./internal/clan/ ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "go build ./... && go vet ./internal/communityapp/ ./internal/controlapi/ ./internal/clan/ ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "npx vitest run tests/unit/communityAppDesign.test.ts tests/unit/navigatorDialog.test.ts tests/unit/overviewCommunityApp.test.ts", "exit_code": 0 }, { "command": "node packages/openapi-spec/scripts/generate-client.mjs --check", "exit_code": 0 } ], "criteria": { "The none card's Design your community app opens the dashboard twin of S3a-APP: the same features, contact email, kit-wearing preview, prefilled from the community's brand kit": "dashboard/src/components/shell/CommunityAppDesignDialog.vue mirrors app/src/components/founding/FoundingCommunityApp.vue's field contract (data-field features/contact-email/platforms/app-preview, locked data-feature=identity + toggleable rows, inline kit-wearing phone preview with tabs following toggles); opened as a device-add-style frame dialog via dashboardNavigator's design-app branch; prefilled via GET /api/v1/community-app/design (name/colours/contact) — tests/unit/communityAppDesign.test.ts (6) + navigatorDialog.test.ts", "Submitting runs the same control-plane path as the pipeline tail — descriptor probe, then Coa — and the card moves to pending or failed by the same rules, with no second submission implementation": "control-plane communityAppDesigner runs descriptorprobe.New() then coaclient.Submit (the SAME probe + submission as the tail); communityapp.ApplyDesign is the pure mirror of the tail's outcome mapping (accepted→pending, refusal→failed) — internal/communityapp/design_test.go + internal/controlapi/communityapp_design_integration_test.go (accepted→pending, unreadable/refusal→failed) + control-plane communityapp_design_test.go (probe gates submit)", "On a community with no any-sync, the submission first installs the any-sync set as a deploy (the catalogue-service deploy precedent) so the descriptor Coa probes is complete": "clan.Adapter.InstallAnySync (internal/clan/anysync_install.go — render anysync-stack.nix + ComposeGatewayCohost + GenerateNodeVars + Deploy); communityAppDesigner installs only when identity.Anysync==nil, before probe/submit — control-plane communityapp_design_test.go (TestDesigner_InstallsAnySyncWhenAbsentBeforeSubmit, SkipsInstallWhenAnySyncPresent, InstallFailureRestsFailed)", "On the private path the twin says the app needs a public address and offers nothing to submit": "prefill.public_address is empty on a private apex; the twin renders data-field=needs-public-address and no data-action=submit — tests/unit/communityAppDesign.test.ts; backstop: communityAppDesigner returns DesignRefusal{NeedsPublicAddress} for a blank apex → ApplyDesign rests none (design_test.go TestApplyDesign_PrivateRestsNone, controlapi TestDesign_PrivateRestsNone, main TestDesigner_PrivateApexNeedsPublicAddress)", "After a successful submit the card is pending on both surfaces": "the design POST ApplyDesign-records Chosen=now/State=pending on the SAME communityapp.Store both the operator home and the dashboard overview read (#1516) — internal/controlapi/communityapp_design_integration_test.go TestDesign_AcceptedRestsPending asserts the stored record is pending" }, "summary": "The none card's Design your community app opens the dashboard twin of S3a-APP; submitting installs any-sync if absent, probes the descriptor and submits to Coa via the same path as the pipeline tail, resting the card pending on both surfaces.", "blockers": [] } ``` </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.

Reference
Matou/idss#1521
No description provided.