pairing T6: the pipeline tail proves the descriptor is readable from outside, then submits the app to Coa — and a refused Coa never fails a founding #1515

Closed
opened 2026-09-16 03:13:55 +00:00 by ben · 2 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).

Stories 10, 11 and 12 of the spec.

What to build

At the end of the deployment pipeline, once the stand-up has proven the stack live, founding checks that
the outside world can actually read the community's descriptor, and then submits the app to Coa on the
operator's behalf — brand from the kit, backend the community's apex, marked as coming from an IDSS
founding. Founding never waits for the build, and Mātou is never a gate: a refused, unreachable or
unreadable outcome is recorded on the app record and the founding completes exactly as it does today.

Acceptance criteria

  • After the existing outside-in door probe passes, a descriptor probe fetches
    https://<apex>/api/client-config from outside and requires version and community.aid; it reuses
    the door probe's shape (bounded attempts, injected for the seam)
  • A failed descriptor probe skips the submission, opens the record at failed with the outside could
    not read your community's details yet
    , and leaves the stand-up's steps green
  • With both probes passed, one multipart submission goes to Coa: brand (name, slug, primary and
    secondary colours, contact email), the features from S3a-APP, backend self-hosted with the apex as
    the config address, the round logo as the logo file, and the IDSS-originated marker
  • The Coa client is one injected adapter (submit, status fetch) with a scripted fake in the founding
    seam — the broker-client precedent
  • On acceptance the record stores the slug, Coa's page address and submitted-at and reads pending;
    the hand-off proceeds unchanged and founding never waits on the build
  • A refusal (name taken, probe failed, validation) records failed with Coa's reason in plain words;
    unreachable or timed out records failed with could not reach Coa; in both cases founding
    completes and no stand-up step is red
  • The private path makes no submission and opens the record at none with copy naming that the app
    needs a public address
  • The tail runs on every deploy path — the rented checklist and the own-VPS / manual deploy alike

Blocked by

Tracker: #1511, #1513, #1514

  • T2 (something to probe), T4 (the draft carries the submission), T5 (the record to write)

Task manifest

task: pipeline-tail-probe-and-submit
implements_flow: p1-founding
implements_edge: "S11 → S12 (the tail)"
seam: internal/founding orchestrator tests with a scripted fake Coa and a fake descriptor probe
depends_on: [pairing:descriptor-writer, pairing:s3a-wallet-choice-and-s3a-app, pairing:app-record]
out_of_scope: [the poll to ready, any-sync, the spaces, the dashboard twin]
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). Stories 10, 11 and 12 of the spec. ## What to build At the end of the deployment pipeline, once the stand-up has proven the stack live, founding checks that the outside world can actually read the community's descriptor, and then submits the app to Coa on the operator's behalf — brand from the kit, backend the community's apex, marked as coming from an IDSS founding. Founding never waits for the build, and Mātou is never a gate: a refused, unreachable or unreadable outcome is recorded on the app record and the founding completes exactly as it does today. ## Acceptance criteria - [ ] After the existing outside-in door probe passes, a **descriptor probe** fetches `https://<apex>/api/client-config` from outside and requires `version` and `community.aid`; it reuses the door probe's shape (bounded attempts, injected for the seam) - [ ] A failed descriptor probe skips the submission, opens the record at `failed` with *the outside could not read your community's details yet*, and leaves the stand-up's steps green - [ ] With both probes passed, one multipart submission goes to Coa: brand (name, slug, primary and secondary colours, contact email), the features from S3a-APP, backend self-hosted with the apex as the config address, the round logo as the logo file, and the IDSS-originated marker - [ ] The Coa client is one injected adapter (submit, status fetch) with a scripted fake in the founding seam — the broker-client precedent - [ ] On acceptance the record stores the slug, Coa's page address and submitted-at and reads `pending`; the hand-off proceeds unchanged and founding never waits on the build - [ ] A refusal (name taken, probe failed, validation) records `failed` with Coa's reason in plain words; unreachable or timed out records `failed` with *could not reach Coa*; in both cases founding completes and **no stand-up step is red** - [ ] The private path makes no submission and opens the record at `none` with copy naming that the app needs a public address - [ ] The tail runs on every deploy path — the rented checklist and the own-VPS / manual deploy alike ## Blocked by Tracker: #1511, #1513, #1514 - T2 (something to probe), T4 (the draft carries the submission), T5 (the record to write) ## Task manifest ```yaml task: pipeline-tail-probe-and-submit implements_flow: p1-founding implements_edge: "S11 → S12 (the tail)" seam: internal/founding orchestrator tests with a scripted fake Coa and a fake descriptor probe depends_on: [pairing:descriptor-writer, pairing:s3a-wallet-choice-and-s3a-app, pairing:app-record] out_of_scope: [the poll to ready, any-sync, the spaces, the dashboard twin] needs_human_decision: [] ```

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

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

close-report for #1515 — status success

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

envelope
{
  "issue": 1515,
  "status": "success",
  "commits": [
    "a1446180"
  ],
  "changed_files": [
    "STATUS.md",
    "app/helper/cmd/helper/wiring_dev.go",
    "app/helper/cmd/helper/wiring_prod.go",
    "app/helper/cmd/helper/wiring_test.go",
    "internal/brandkit/colours.go",
    "internal/coaclient/client.go",
    "internal/coaclient/client_test.go",
    "internal/descriptorprobe/prober.go",
    "internal/descriptorprobe/prober_test.go",
    "internal/founding/communityapptail.go",
    "internal/founding/communityapptail_seam_test.go",
    "internal/founding/deploy.go",
    "internal/founding/deploy_test.go",
    "internal/founding/export_test.go",
    "internal/founding/orchestrator.go",
    "internal/founding/testing/fakes.go"
  ],
  "tests": [
    {
      "command": "go test -count=1 ./internal/founding/... ./internal/coaclient/... ./internal/descriptorprobe/... ./internal/brandkit/... ./internal/communityapp/... ./app/helper/...",
      "exit_code": 0
    },
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "go build -tags dev ./app/helper/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command golangci-lint run ./internal/coaclient/... ./internal/descriptorprobe/... ./internal/founding/... ./internal/brandkit/... ./app/helper/...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "After the door probe passes, a descriptor probe fetches https://<apex>/api/client-config from outside and requires version and community.aid, reusing the door probe's shape (bounded attempts, injected for the seam)": "internal/founding/communityapptail.go probeDescriptorLive re-probes over the door budget (o.doorAttempts/doorDelay); founding.DescriptorProbe seam + real internal/descriptorprobe fetch /api/client-config and require version + community.aid (prober_test.go TestProbeDescriptor_MissingFieldIsUnreadable); seam test TestTail_PublicAcceptedRecordsPending asserts the apex was probed",
    "A failed descriptor probe skips the submission, opens the record at failed with 'the outside could not read your community's details yet', and leaves the stand-up steps green": "communityapptail.go descriptor branch; TestTail_DescriptorUnreadableRecordsFailedNoSubmit asserts no submission, state=failed with the copy, and assertStepsGreen",
    "With both probes passed, one multipart submission to Coa: brand (name, slug, primary+secondary colours, contact email), features from S3a-APP, backend self-hosted with the apex as the config address, the round logo as the logo file, and the IDSS-originated marker": "coaSubmissionFor builds the CoaSubmission (brandkit.Colours for accent+secondary, LogoCircleData decoded as the logo file, ConfigServerURL https://<apex>, Origin idss); TestTail_PublicAcceptedRecordsPending asserts every field; internal/coaclient TestSubmit_AcceptedCarriesSlugAndPage asserts the multipart wire (fields + logo part, maramataka omitted)",
    "The Coa client is one injected adapter (submit, status fetch) with a scripted fake in the founding seam — the broker-client precedent": "founding.CoaClient (Submit + Status) + WithCoaClient option; FakeCoa in internal/founding/testing; real internal/coaclient wired in wiring_prod.go, fake in wiring_dev.go — mirroring WithBroker/FakeBroker/brokerclient",
    "On acceptance the record stores the slug, Coa's page address and submitted-at and reads pending; the hand-off proceeds unchanged and founding never waits on the build": "communityapptail.go pending branch stamps slug/PageURL/SubmittedAt; TestTail_PublicAcceptedRecordsPending asserts ResolvedState==pending with all three; the tail never returns an error and the deploy rests DeployLive, so hand-off is unchanged (assertStepsGreen)",
    "A refusal (name taken, probe failed, validation) records failed with Coa's reason in plain words; unreachable/timed out records failed with 'could not reach Coa'; in both cases founding completes and no stand-up step is red": "errors.As(*CoaRefusal) → the reason verbatim, else 'could not reach Coa'; TestTail_CoaRefusalRecordsReasonStepsGreen and TestTail_CoaUnreachableRecordsCouldNotReach assert the two reasons and assertStepsGreen; internal/coaclient maps 4xx→CoaRefusal and 5xx/transport→plain error",
    "The private path makes no submission and opens the record at none with copy naming that the app needs a public address": "communityapptail.go apex=='' branch; TestTail_PrivatePathNoSubmitRecordsNone asserts no submit, no descriptor probe, ResolvedState==none with a non-empty reason",
    "The tail runs on every deploy path — the rented checklist and the own-VPS / manual deploy alike": "runCommunityAppTail is called in founding.runDeploy — the shared spine RunDeploy/DeployResume and the private journey worker all reach; the private and public seam tests both exercise it"
  },
  "summary": "The founding pipeline tail probes the community descriptor from outside and submits the app to Coa, recording every outcome on the app record — a refused, unreachable or unreadable Coa never reds a stand-up step and never delays the hand-off.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1515 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1515, "status": "success", "commits": [ "a1446180" ], "changed_files": [ "STATUS.md", "app/helper/cmd/helper/wiring_dev.go", "app/helper/cmd/helper/wiring_prod.go", "app/helper/cmd/helper/wiring_test.go", "internal/brandkit/colours.go", "internal/coaclient/client.go", "internal/coaclient/client_test.go", "internal/descriptorprobe/prober.go", "internal/descriptorprobe/prober_test.go", "internal/founding/communityapptail.go", "internal/founding/communityapptail_seam_test.go", "internal/founding/deploy.go", "internal/founding/deploy_test.go", "internal/founding/export_test.go", "internal/founding/orchestrator.go", "internal/founding/testing/fakes.go" ], "tests": [ { "command": "go test -count=1 ./internal/founding/... ./internal/coaclient/... ./internal/descriptorprobe/... ./internal/brandkit/... ./internal/communityapp/... ./app/helper/...", "exit_code": 0 }, { "command": "go build ./...", "exit_code": 0 }, { "command": "go build -tags dev ./app/helper/...", "exit_code": 0 }, { "command": "nix develop .#go-ci --command golangci-lint run ./internal/coaclient/... ./internal/descriptorprobe/... ./internal/founding/... ./internal/brandkit/... ./app/helper/...", "exit_code": 0 } ], "criteria": { "After the door probe passes, a descriptor probe fetches https://<apex>/api/client-config from outside and requires version and community.aid, reusing the door probe's shape (bounded attempts, injected for the seam)": "internal/founding/communityapptail.go probeDescriptorLive re-probes over the door budget (o.doorAttempts/doorDelay); founding.DescriptorProbe seam + real internal/descriptorprobe fetch /api/client-config and require version + community.aid (prober_test.go TestProbeDescriptor_MissingFieldIsUnreadable); seam test TestTail_PublicAcceptedRecordsPending asserts the apex was probed", "A failed descriptor probe skips the submission, opens the record at failed with 'the outside could not read your community's details yet', and leaves the stand-up steps green": "communityapptail.go descriptor branch; TestTail_DescriptorUnreadableRecordsFailedNoSubmit asserts no submission, state=failed with the copy, and assertStepsGreen", "With both probes passed, one multipart submission to Coa: brand (name, slug, primary+secondary colours, contact email), features from S3a-APP, backend self-hosted with the apex as the config address, the round logo as the logo file, and the IDSS-originated marker": "coaSubmissionFor builds the CoaSubmission (brandkit.Colours for accent+secondary, LogoCircleData decoded as the logo file, ConfigServerURL https://<apex>, Origin idss); TestTail_PublicAcceptedRecordsPending asserts every field; internal/coaclient TestSubmit_AcceptedCarriesSlugAndPage asserts the multipart wire (fields + logo part, maramataka omitted)", "The Coa client is one injected adapter (submit, status fetch) with a scripted fake in the founding seam — the broker-client precedent": "founding.CoaClient (Submit + Status) + WithCoaClient option; FakeCoa in internal/founding/testing; real internal/coaclient wired in wiring_prod.go, fake in wiring_dev.go — mirroring WithBroker/FakeBroker/brokerclient", "On acceptance the record stores the slug, Coa's page address and submitted-at and reads pending; the hand-off proceeds unchanged and founding never waits on the build": "communityapptail.go pending branch stamps slug/PageURL/SubmittedAt; TestTail_PublicAcceptedRecordsPending asserts ResolvedState==pending with all three; the tail never returns an error and the deploy rests DeployLive, so hand-off is unchanged (assertStepsGreen)", "A refusal (name taken, probe failed, validation) records failed with Coa's reason in plain words; unreachable/timed out records failed with 'could not reach Coa'; in both cases founding completes and no stand-up step is red": "errors.As(*CoaRefusal) → the reason verbatim, else 'could not reach Coa'; TestTail_CoaRefusalRecordsReasonStepsGreen and TestTail_CoaUnreachableRecordsCouldNotReach assert the two reasons and assertStepsGreen; internal/coaclient maps 4xx→CoaRefusal and 5xx/transport→plain error", "The private path makes no submission and opens the record at none with copy naming that the app needs a public address": "communityapptail.go apex=='' branch; TestTail_PrivatePathNoSubmitRecordsNone asserts no submit, no descriptor probe, ResolvedState==none with a non-empty reason", "The tail runs on every deploy path — the rented checklist and the own-VPS / manual deploy alike": "runCommunityAppTail is called in founding.runDeploy — the shared spine RunDeploy/DeployResume and the private journey worker all reach; the private and public seam tests both exercise it" }, "summary": "The founding pipeline tail probes the community descriptor from outside and submits the app to Coa, recording every outcome on the app record — a refused, unreachable or unreadable Coa never reds a stand-up step and never delays the hand-off.", "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.

Reference
Matou/idss#1515
No description provided.