member suspend hard-fails on a service the community never deployed: the chat reconciler wires from a DERIVED url, not a deployed module #875
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.
Blocks
Reference
Matou/idss#875
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?
Failure
Drive
20260826T043304Z(phase 2, droplet) — 24 green / 1 red / 1 skip, the samedepth as the previous run.
invite-memberis again the only red, but the failure hasmoved one reconciler further along the suspend fan-out:
#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.loginPOSTs/api/v4/users/loginand reads the session tokenout of the
Tokenresponse header. It got HTTP 200 with noTokenheader, which isnot 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):grep -iE 'matter|chat'over the unit list is emptychat.*route in Caddy — the same grep over the Caddy log is emptyYet the control plane wired the port anyway (
logs/droplet-journal.txt):productionServicePorts(control-plane/cmd/control-plane/main.go:326-333) gates thechat port on
chatBase != ""— i.e. on the URL being derivable. Under ADR 0113derivation 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,
loginreports the confusing "no session token", and thewhole suspend fails
act_failedon 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 chatmodule 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 cannothonestly act should rest, and
Catalogue.Gaps()should report it, exactly ascomposeOffboardCatalogue(whole_composition.go:457) intends: "a Nextcloud that isprovisioned 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.loginmust not read a front-door 200 as a Mattermost answer.A 200 with no
Tokenheader means this is not Mattermost, and the error should saythat 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 taketheir credential from process env at boot:
..._PASSWORD_FILE— fixed by #863IDSS_MAIL_ADMIN_PASSWORD— boot-frozenIDSS_STATIC_SITES_ADMIN_PASSWORD— boot-frozenIDSS_CODE_ADMIN_PASSWORD— boot-frozenIDSS_CHAT_ADMIN_PASSWORD— boot-frozenThe 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
port rests and the catalogue reports the un-deployed service as a gap, not an error.
chatsvc.logindistinguishes "not Mattermost" (200, noToken) from a credentialrefusal, in its message and in a test.
invite-membergoes 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 weeklylimit · resets 6pm (UTC)"), so the cycle parked #722
ready-for-humanat 04:44Z ratherthan hot-loop. Veto anytime.
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:
5466d04e4fis not reachable from origin/main (not landed)envelope
close-report for #875 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
seamgate is toothless —set -eis suspended inside seam(), so every stage but the last is unable to fail a run #871seamgate is toothless —set -eis suspended inside seam(), so every stage but the last is unable to fail a run #871RemoveNodeleavesmachines/<node>/files.nixin the config repo, so a re-used node id re-adopts a removed device's placement and S2 loses itstoggle-filesrow #1217