member suspend hard-fails on a service the community never deployed: the chat reconciler wires from a DERIVED url, not a deployed module #875

Closed
opened 2026-08-26 19:23:11 +00:00 by ben · 3 comments
Owner

Failure

Drive 20260826T043304Z (phase 2, droplet) — 24 green / 1 red / 1 skip, the same
depth as the previous run. invite-member is again the only red, but the failure has
moved one reconciler further along the suspend fan-out:

POST /api/v1/members/e2e-member/suspend failed: 400
{"code":"act_failed","message":"chatsvc: admin login returned no session token"}

#866's fix HELD — the Nextcloud 404-on-SPN is gone; the files reconciler converges.
The suspend now dies on the chat (Mattermost) port instead.

Root cause — the port is wired for a service this community never deployed

internal/chatsvc.Port.login POSTs /api/v4/users/login and reads the session token
out of the Token response header. It got HTTP 200 with no Token header, which is
not a Mattermost answer at all — it is the front door answering for a hostname nothing
is bound to.

The droplet's artifacts say so plainly (logs/droplet-units.txt, logs/droplet-caddy.txt):

  • no Mattermost unit on the box — grep -iE 'matter|chat' over the unit list is empty
  • no chat.* route in Caddy — the same grep over the Caddy log is empty

Yet the control plane wired the port anyway (logs/droplet-journal.txt):

msg="member offboard: chat (Mattermost) reconciler port wired over the derived chat URL"
    url=https://chat.rehearsal-b.idss.nz admin=""

productionServicePorts (control-plane/cmd/control-plane/main.go:326-333) gates the
chat port on chatBase != "" — i.e. on the URL being derivable. Under ADR 0113
derivation only proves the community has an apex; it says nothing about whether the
chat module is in the community's deployed set. Phase 2's destination is founding +
Nextcloud (#722's own title) — chat is not provisioned on this journey, and never was.

So the fan-out reaches a port pointed at a hostname with no service behind it, the front
door returns a 200 HTML page, login reports the confusing "no session token", and the
whole suspend fails act_failed on the strength of a service the operator never asked for.

The empty admin="" in that log line is the same absence from the other side: no chat
module deployed means no chat admin credential exported, so even the identity is blank.

Two things to fix

1. Gate each reconciler port on the DEPLOYED module set, not on URL derivability.
docsEditingBase's neighbours already have the right vocabulary — a port that cannot
honestly act should rest, and Catalogue.Gaps() should report it, exactly as
composeOffboardCatalogue (whole_composition.go:457) intends: "a Nextcloud that is
provisioned but not yet wired here is an honest gap the catalogue reports rather than a
silent all-clear"
. The inverse case — wired but not provisioned — has no gate today.
The deployed set is knowable at compose time (the gateway render inputs already drive
EnableGatewayNextcloudExport's surface).

2. chatsvc.login must not read a front-door 200 as a Mattermost answer.
A 200 with no Token header means this is not Mattermost, and the error should say
that rather than implying a credential problem. Same hardening as #561's combined-output
discipline: assert the shape of the answer, not just the status.

Class note — this is the fourth of five identical wires

#863 converted only the Nextcloud port to a lazy per-call credential
(IDSS_NEXTCLOUD_ADMIN_PASSWORD_FILE). Its four siblings in the same function still take
their credential from process env at boot:

line service credential
266 files (Nextcloud) ..._PASSWORD_FILE — fixed by #863
276 mail (Stalwart) IDSS_MAIL_ADMIN_PASSWORD — boot-frozen
285 static-sites IDSS_STATIC_SITES_ADMIN_PASSWORD — boot-frozen
317 code (Forgejo) IDSS_CODE_ADMIN_PASSWORD — boot-frozen
327 chat (Mattermost) IDSS_CHAT_ADMIN_PASSWORD — boot-frozen

The deployed-set gate above makes the boot-frozen credential unreachable on a community
that never deployed the service — but on one that DOES deploy chat or code later in its
life, #863's exact 401 returns. Fix the gate first (it is what reds the drive); carry the
lazy-resolver shape across the remaining three ports in the same pass so the drive does
not walk into them one green leg at a time.

Acceptance

  • A community with only files deployed suspends a member without touching chat; the chat
    port rests and the catalogue reports the un-deployed service as a gap, not an error.
  • chatsvc.login distinguishes "not Mattermost" (200, no Token) from a credential
    refusal, in its message and in a test.
  • The remaining reconciler ports resolve their admin secret per call, as Nextcloud does.
  • Phase-2 drive invite-member goes green.

Evidence

test-results/drive-droplet/20260826T043304Z/ on the workstation —
artifacts/verdict.json, artifacts/legs.json, logs/droplet-journal.txt,
logs/droplet-units.txt, logs/droplet-caddy.txt.

Filed by the watch under ADR 0174 — the drive's own reporter could not file it: the
Claude weekly limit was hit mid-run (logs/reporter-claude.out: "You've hit your weekly
limit · resets 6pm (UTC)"), so the cycle parked #722 ready-for-human at 04:44Z rather
than hot-loop. Veto anytime.

## Failure Drive `20260826T043304Z` (phase 2, droplet) — **24 green / 1 red / 1 skip**, the same depth as the previous run. `invite-member` is again the only red, but the failure has moved one reconciler further along the suspend fan-out: ``` POST /api/v1/members/e2e-member/suspend failed: 400 {"code":"act_failed","message":"chatsvc: admin login returned no session token"} ``` **#866's fix HELD** — the Nextcloud 404-on-SPN is gone; the files reconciler converges. The suspend now dies on the *chat* (Mattermost) port instead. ## Root cause — the port is wired for a service this community never deployed `internal/chatsvc.Port.login` POSTs `/api/v4/users/login` and reads the session token out of the `Token` response header. It got **HTTP 200 with no `Token` header**, which is not a Mattermost answer at all — it is the front door answering for a hostname nothing is bound to. The droplet's artifacts say so plainly (`logs/droplet-units.txt`, `logs/droplet-caddy.txt`): - **no Mattermost unit** on the box — `grep -iE 'matter|chat'` over the unit list is empty - **no `chat.*` route** in Caddy — the same grep over the Caddy log is empty Yet the control plane wired the port anyway (`logs/droplet-journal.txt`): ``` msg="member offboard: chat (Mattermost) reconciler port wired over the derived chat URL" url=https://chat.rehearsal-b.idss.nz admin="" ``` `productionServicePorts` (`control-plane/cmd/control-plane/main.go:326-333`) gates the chat port on `chatBase != ""` — i.e. on the URL being **derivable**. Under ADR 0113 derivation only proves *the community has an apex*; it says nothing about whether the chat module is in the community's deployed set. Phase 2's destination is founding + **Nextcloud** (#722's own title) — chat is not provisioned on this journey, and never was. So the fan-out reaches a port pointed at a hostname with no service behind it, the front door returns a 200 HTML page, `login` reports the confusing "no session token", and the whole suspend fails `act_failed` on the strength of a service the operator never asked for. The empty `admin=""` in that log line is the same absence from the other side: no chat module deployed means no chat admin credential exported, so even the identity is blank. ## Two things to fix **1. Gate each reconciler port on the DEPLOYED module set, not on URL derivability.** `docsEditingBase`'s neighbours already have the right vocabulary — a port that cannot honestly act should **rest**, and `Catalogue.Gaps()` should report it, exactly as `composeOffboardCatalogue` (`whole_composition.go:457`) intends: *"a Nextcloud that is provisioned but not yet wired here is an honest gap the catalogue reports rather than a silent all-clear"*. The inverse case — **wired but not provisioned** — has no gate today. The deployed set is knowable at compose time (the gateway render inputs already drive `EnableGatewayNextcloudExport`'s surface). **2. `chatsvc.login` must not read a front-door 200 as a Mattermost answer.** A 200 with no `Token` header means *this is not Mattermost*, and the error should say that rather than implying a credential problem. Same hardening as #561's combined-output discipline: assert the shape of the answer, not just the status. ## Class note — this is the fourth of five identical wires #863 converted **only** the Nextcloud port to a lazy per-call credential (`IDSS_NEXTCLOUD_ADMIN_PASSWORD_FILE`). Its four siblings in the same function still take their credential from process env at boot: | line | service | credential | |---|---|---| | 266 | files (Nextcloud) | `..._PASSWORD_FILE` — **fixed by #863** | | 276 | mail (Stalwart) | `IDSS_MAIL_ADMIN_PASSWORD` — boot-frozen | | 285 | static-sites | `IDSS_STATIC_SITES_ADMIN_PASSWORD` — boot-frozen | | 317 | code (Forgejo) | `IDSS_CODE_ADMIN_PASSWORD` — boot-frozen | | 327 | chat (Mattermost) | `IDSS_CHAT_ADMIN_PASSWORD` — boot-frozen | The deployed-set gate above makes the boot-frozen credential *unreachable* on a community that never deployed the service — but on one that DOES deploy chat or code later in its life, #863's exact 401 returns. Fix the gate first (it is what reds the drive); carry the lazy-resolver shape across the remaining three ports in the same pass so the drive does not walk into them one green leg at a time. ## Acceptance - A community with only files deployed suspends a member without touching chat; the chat port rests and the catalogue reports the un-deployed service as a gap, not an error. - `chatsvc.login` distinguishes "not Mattermost" (200, no `Token`) from a credential refusal, in its message and in a test. - The remaining reconciler ports resolve their admin secret per call, as Nextcloud does. - Phase-2 drive `invite-member` goes green. ## Evidence `test-results/drive-droplet/20260826T043304Z/` on the workstation — `artifacts/verdict.json`, `artifacts/legs.json`, `logs/droplet-journal.txt`, `logs/droplet-units.txt`, `logs/droplet-caddy.txt`. *Filed by the watch under ADR 0174 — the drive's own reporter could not file it: the Claude weekly limit was hit mid-run (`logs/reporter-claude.out`: "You've hit your weekly limit · resets 6pm (UTC)"), so the cycle parked #722 `ready-for-human` at 04:44Z rather than hot-loop. Veto anytime.*

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

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

close-report for #875 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit 5466d04e4f is not reachable from origin/main (not landed)
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
  • changed_files: 'control-plane/cmd/control-plane/main.go' is not in the diff of the claimed commits
  • changed_files: 'control-plane/cmd/control-plane/offboard_catalogue_test.go' is not in the diff of the claimed commits
  • changed_files: 'control-plane/cmd/control-plane/whole_composition.go' is not in the diff of the claimed commits
  • changed_files: 'docs/GOTCHAS.md' is not in the diff of the claimed commits
  • changed_files: 'internal/chatsvc/chatsvc.go' is not in the diff of the claimed commits
  • changed_files: 'internal/chatsvc/chatsvc_test.go' is not in the diff of the claimed commits
  • changed_files: 'internal/clan/deployedservices.go' is not in the diff of the claimed commits
  • changed_files: 'internal/clan/deployedservices_test.go' is not in the diff of the claimed commits
  • changed_files: 'internal/codesvc/codesvc.go' is not in the diff of the claimed commits
  • changed_files: 'internal/mailsvc/mailsvc.go' is not in the diff of the claimed commits
  • changed_files: 'internal/memberorbit/memberorbit.go' is not in the diff of the claimed commits
  • changed_files: 'internal/memberorbit/memberorbit_test.go' is not in the diff of the claimed commits
  • changed_files: 'internal/staticsitessvc/staticsitessvc.go' is not in the diff of the claimed commits
envelope
{
  "issue": 875,
  "status": "success",
  "commits": [
    "5466d04e4fa6da4576fa180e1864f5e8530ec707"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/main.go",
    "control-plane/cmd/control-plane/offboard_catalogue_test.go",
    "control-plane/cmd/control-plane/whole_composition.go",
    "docs/GOTCHAS.md",
    "internal/chatsvc/chatsvc.go",
    "internal/chatsvc/chatsvc_test.go",
    "internal/clan/deployedservices.go",
    "internal/clan/deployedservices_test.go",
    "internal/codesvc/codesvc.go",
    "internal/mailsvc/mailsvc.go",
    "internal/memberorbit/memberorbit.go",
    "internal/memberorbit/memberorbit_test.go",
    "internal/staticsitessvc/staticsitessvc.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/clan/ ./internal/memberorbit/ ./internal/chatsvc/ ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go test ./internal/codesvc/ ./internal/mailsvc/ ./internal/staticsitessvc/ ./internal/nextcloud/ ./internal/member/... ./internal/provision/... ./internal/rescue/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./internal/chatsvc/ ./internal/codesvc/ ./internal/mailsvc/ ./internal/staticsitessvc/ ./internal/memberorbit/ ./internal/clan/ ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c golangci-lint run (touched packages)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A community with only files deployed suspends a member without touching chat; the chat port rests and the catalogue reports the un-deployed service as a gap, not an error": "clan.ReadDeployedServices reads which <slug>.nix landed in a machine dir (internal/clan/deployedservices.go); memberorbit.Catalogue.WithDeployedSet gates the DisableCredentials/EnableCredentials/Deployed fan-out and reports a wired-but-undeployed expected service via Gaps() (internal/memberorbit/memberorbit.go); composeOffboardCatalogue wires it from the config repo (whole_composition.go). Proven by TestComposeOffboardCatalogue_DeployedSetGatesUndeployedPorts (offboard_catalogue_test.go — files.nix present, chat a gap) and TestCatalogue_DeployedSetRestsUndeployedPorts (memberorbit_test.go — chat DisableCredentials never called, chat a gap, suspend succeeds).",
    "chatsvc.login distinguishes 'not Mattermost' (200, no Token) from a credential refusal, in its message and in a test": "internal/chatsvc/chatsvc.go login() returns 'not Mattermost (a front-door answer for a hostname with no chat service bound)' on 200-with-no-Token, and keeps 'check the admin credential' on non-200. Proven by TestPort_LoginRejectsFrontDoor200 and TestPort_LoginReportsCredentialRefusal (chatsvc_test.go).",
    "The remaining reconciler ports resolve their admin secret per call, as Nextcloud does": "mail/static-sites/code/chat gain NewWithSecretResolver + SecretFromFile (per-call func() string); main.go's lazyAdminSecret reads ..._PASSWORD_FILE fresh per call (boot-fallback ..._PASSWORD env). Proven by TestPort_SecretResolvedPerCall (chatsvc_test.go — a credential materialised after construction is honoured on the next call).",
    "Phase-2 drive invite-member goes green": "The deployed-set gate rests the chat port when chat.nix is absent, so the suspend fan-out no longer POSTs login to chat.<apex> and never reads the front-door 200 as act_failed; the drive's suspend converges files alone. Verified at the seam by the tests above (the live drive is the loop-closer, not runnable from the sandbox)."
  },
  "summary": "Member suspend rests reconciler ports on the DEPLOYED module set (not URL derivability), chatsvc.login names a front-door 200 as not-Mattermost, and mail/static-sites/code/chat carry #863's per-call admin-secret resolver.",
  "blockers": []
}
**close-report** for #875 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit 5466d04e4fa6da4576fa180e1864f5e8530ec707 is not reachable from origin/main (not landed) - changed_files: 'STATUS.md' is not in the diff of the claimed commits - changed_files: 'control-plane/cmd/control-plane/main.go' is not in the diff of the claimed commits - changed_files: 'control-plane/cmd/control-plane/offboard_catalogue_test.go' is not in the diff of the claimed commits - changed_files: 'control-plane/cmd/control-plane/whole_composition.go' is not in the diff of the claimed commits - changed_files: 'docs/GOTCHAS.md' is not in the diff of the claimed commits - changed_files: 'internal/chatsvc/chatsvc.go' is not in the diff of the claimed commits - changed_files: 'internal/chatsvc/chatsvc_test.go' is not in the diff of the claimed commits - changed_files: 'internal/clan/deployedservices.go' is not in the diff of the claimed commits - changed_files: 'internal/clan/deployedservices_test.go' is not in the diff of the claimed commits - changed_files: 'internal/codesvc/codesvc.go' is not in the diff of the claimed commits - changed_files: 'internal/mailsvc/mailsvc.go' is not in the diff of the claimed commits - changed_files: 'internal/memberorbit/memberorbit.go' is not in the diff of the claimed commits - changed_files: 'internal/memberorbit/memberorbit_test.go' is not in the diff of the claimed commits - changed_files: 'internal/staticsitessvc/staticsitessvc.go' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 875, "status": "success", "commits": [ "5466d04e4fa6da4576fa180e1864f5e8530ec707" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/main.go", "control-plane/cmd/control-plane/offboard_catalogue_test.go", "control-plane/cmd/control-plane/whole_composition.go", "docs/GOTCHAS.md", "internal/chatsvc/chatsvc.go", "internal/chatsvc/chatsvc_test.go", "internal/clan/deployedservices.go", "internal/clan/deployedservices_test.go", "internal/codesvc/codesvc.go", "internal/mailsvc/mailsvc.go", "internal/memberorbit/memberorbit.go", "internal/memberorbit/memberorbit_test.go", "internal/staticsitessvc/staticsitessvc.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/clan/ ./internal/memberorbit/ ./internal/chatsvc/ ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go test ./internal/codesvc/ ./internal/mailsvc/ ./internal/staticsitessvc/ ./internal/nextcloud/ ./internal/member/... ./internal/provision/... ./internal/rescue/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./internal/chatsvc/ ./internal/codesvc/ ./internal/mailsvc/ ./internal/staticsitessvc/ ./internal/memberorbit/ ./internal/clan/ ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c golangci-lint run (touched packages)", "exit_code": 0 } ], "criteria": { "A community with only files deployed suspends a member without touching chat; the chat port rests and the catalogue reports the un-deployed service as a gap, not an error": "clan.ReadDeployedServices reads which <slug>.nix landed in a machine dir (internal/clan/deployedservices.go); memberorbit.Catalogue.WithDeployedSet gates the DisableCredentials/EnableCredentials/Deployed fan-out and reports a wired-but-undeployed expected service via Gaps() (internal/memberorbit/memberorbit.go); composeOffboardCatalogue wires it from the config repo (whole_composition.go). Proven by TestComposeOffboardCatalogue_DeployedSetGatesUndeployedPorts (offboard_catalogue_test.go — files.nix present, chat a gap) and TestCatalogue_DeployedSetRestsUndeployedPorts (memberorbit_test.go — chat DisableCredentials never called, chat a gap, suspend succeeds).", "chatsvc.login distinguishes 'not Mattermost' (200, no Token) from a credential refusal, in its message and in a test": "internal/chatsvc/chatsvc.go login() returns 'not Mattermost (a front-door answer for a hostname with no chat service bound)' on 200-with-no-Token, and keeps 'check the admin credential' on non-200. Proven by TestPort_LoginRejectsFrontDoor200 and TestPort_LoginReportsCredentialRefusal (chatsvc_test.go).", "The remaining reconciler ports resolve their admin secret per call, as Nextcloud does": "mail/static-sites/code/chat gain NewWithSecretResolver + SecretFromFile (per-call func() string); main.go's lazyAdminSecret reads ..._PASSWORD_FILE fresh per call (boot-fallback ..._PASSWORD env). Proven by TestPort_SecretResolvedPerCall (chatsvc_test.go — a credential materialised after construction is honoured on the next call).", "Phase-2 drive invite-member goes green": "The deployed-set gate rests the chat port when chat.nix is absent, so the suspend fan-out no longer POSTs login to chat.<apex> and never reads the front-door 200 as act_failed; the drive's suspend converges files alone. Verified at the seam by the tests above (the live drive is the loop-closer, not runnable from the sandbox)." }, "summary": "Member suspend rests reconciler ports on the DEPLOYED module set (not URL derivability), chatsvc.login names a front-door 200 as not-Mattermost, and mail/static-sites/code/chat carry #863's per-call admin-secret resolver.", "blockers": [] } ``` </details>

close-report for #875 — status success

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

envelope
{
  "issue": 875,
  "status": "success",
  "commits": [
    "5466d04e4fa6da4576fa180e1864f5e8530ec707"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/main.go",
    "control-plane/cmd/control-plane/offboard_catalogue_test.go",
    "control-plane/cmd/control-plane/whole_composition.go",
    "docs/GOTCHAS.md",
    "internal/chatsvc/chatsvc.go",
    "internal/chatsvc/chatsvc_test.go",
    "internal/clan/deployedservices.go",
    "internal/clan/deployedservices_test.go",
    "internal/codesvc/codesvc.go",
    "internal/mailsvc/mailsvc.go",
    "internal/memberorbit/memberorbit.go",
    "internal/memberorbit/memberorbit_test.go",
    "internal/staticsitessvc/staticsitessvc.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/clan/ ./internal/memberorbit/ ./internal/chatsvc/ ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go test ./internal/codesvc/ ./internal/mailsvc/ ./internal/staticsitessvc/ ./internal/nextcloud/ ./internal/member/... ./internal/provision/... ./internal/rescue/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./internal/chatsvc/ ./internal/codesvc/ ./internal/mailsvc/ ./internal/staticsitessvc/ ./internal/memberorbit/ ./internal/clan/ ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c golangci-lint run (touched packages)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A community with only files deployed suspends a member without touching chat; the chat port rests and the catalogue reports the un-deployed service as a gap, not an error": "clan.ReadDeployedServices reads which <slug>.nix landed in a machine dir (internal/clan/deployedservices.go); memberorbit.Catalogue.WithDeployedSet gates the DisableCredentials/EnableCredentials/Deployed fan-out and reports a wired-but-undeployed expected service via Gaps() (internal/memberorbit/memberorbit.go); composeOffboardCatalogue wires it from the config repo (whole_composition.go). Proven by TestComposeOffboardCatalogue_DeployedSetGatesUndeployedPorts (offboard_catalogue_test.go — files.nix present, chat a gap) and TestCatalogue_DeployedSetRestsUndeployedPorts (memberorbit_test.go — chat DisableCredentials never called, chat a gap, suspend succeeds).",
    "chatsvc.login distinguishes 'not Mattermost' (200, no Token) from a credential refusal, in its message and in a test": "internal/chatsvc/chatsvc.go login() returns 'not Mattermost (a front-door answer for a hostname with no chat service bound)' on 200-with-no-Token, and keeps 'check the admin credential' on non-200. Proven by TestPort_LoginRejectsFrontDoor200 and TestPort_LoginReportsCredentialRefusal (chatsvc_test.go).",
    "The remaining reconciler ports resolve their admin secret per call, as Nextcloud does": "mail/static-sites/code/chat gain NewWithSecretResolver + SecretFromFile (per-call func() string); main.go's lazyAdminSecret reads ..._PASSWORD_FILE fresh per call (boot-fallback ..._PASSWORD env). Proven by TestPort_SecretResolvedPerCall (chatsvc_test.go — a credential materialised after construction is honoured on the next call).",
    "Phase-2 drive invite-member goes green": "The deployed-set gate rests the chat port when chat.nix is absent, so the suspend fan-out no longer POSTs login to chat.<apex> and never reads the front-door 200 as act_failed; the drive's suspend converges files alone. Verified at the seam by the tests above (the live drive is the loop-closer, not runnable from the sandbox)."
  },
  "summary": "Member suspend rests reconciler ports on the DEPLOYED module set (not URL derivability), chatsvc.login names a front-door 200 as not-Mattermost, and mail/static-sites/code/chat carry #863's per-call admin-secret resolver.",
  "blockers": []
}
**close-report** for #875 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 875, "status": "success", "commits": [ "5466d04e4fa6da4576fa180e1864f5e8530ec707" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/main.go", "control-plane/cmd/control-plane/offboard_catalogue_test.go", "control-plane/cmd/control-plane/whole_composition.go", "docs/GOTCHAS.md", "internal/chatsvc/chatsvc.go", "internal/chatsvc/chatsvc_test.go", "internal/clan/deployedservices.go", "internal/clan/deployedservices_test.go", "internal/codesvc/codesvc.go", "internal/mailsvc/mailsvc.go", "internal/memberorbit/memberorbit.go", "internal/memberorbit/memberorbit_test.go", "internal/staticsitessvc/staticsitessvc.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/clan/ ./internal/memberorbit/ ./internal/chatsvc/ ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go test ./internal/codesvc/ ./internal/mailsvc/ ./internal/staticsitessvc/ ./internal/nextcloud/ ./internal/member/... ./internal/provision/... ./internal/rescue/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./internal/chatsvc/ ./internal/codesvc/ ./internal/mailsvc/ ./internal/staticsitessvc/ ./internal/memberorbit/ ./internal/clan/ ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c golangci-lint run (touched packages)", "exit_code": 0 } ], "criteria": { "A community with only files deployed suspends a member without touching chat; the chat port rests and the catalogue reports the un-deployed service as a gap, not an error": "clan.ReadDeployedServices reads which <slug>.nix landed in a machine dir (internal/clan/deployedservices.go); memberorbit.Catalogue.WithDeployedSet gates the DisableCredentials/EnableCredentials/Deployed fan-out and reports a wired-but-undeployed expected service via Gaps() (internal/memberorbit/memberorbit.go); composeOffboardCatalogue wires it from the config repo (whole_composition.go). Proven by TestComposeOffboardCatalogue_DeployedSetGatesUndeployedPorts (offboard_catalogue_test.go — files.nix present, chat a gap) and TestCatalogue_DeployedSetRestsUndeployedPorts (memberorbit_test.go — chat DisableCredentials never called, chat a gap, suspend succeeds).", "chatsvc.login distinguishes 'not Mattermost' (200, no Token) from a credential refusal, in its message and in a test": "internal/chatsvc/chatsvc.go login() returns 'not Mattermost (a front-door answer for a hostname with no chat service bound)' on 200-with-no-Token, and keeps 'check the admin credential' on non-200. Proven by TestPort_LoginRejectsFrontDoor200 and TestPort_LoginReportsCredentialRefusal (chatsvc_test.go).", "The remaining reconciler ports resolve their admin secret per call, as Nextcloud does": "mail/static-sites/code/chat gain NewWithSecretResolver + SecretFromFile (per-call func() string); main.go's lazyAdminSecret reads ..._PASSWORD_FILE fresh per call (boot-fallback ..._PASSWORD env). Proven by TestPort_SecretResolvedPerCall (chatsvc_test.go — a credential materialised after construction is honoured on the next call).", "Phase-2 drive invite-member goes green": "The deployed-set gate rests the chat port when chat.nix is absent, so the suspend fan-out no longer POSTs login to chat.<apex> and never reads the front-door 200 as act_failed; the drive's suspend converges files alone. Verified at the seam by the tests above (the live drive is the loop-closer, not runnable from the sandbox)." }, "summary": "Member suspend rests reconciler ports on the DEPLOYED module set (not URL derivability), chatsvc.login names a front-door 200 as not-Mattermost, and mail/static-sites/code/chat carry #863's per-call admin-secret resolver.", "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#875
No description provided.