services-row — healer loop-guard: a prior heal did not hold #1558

Closed
opened 2026-09-17 01:01:02 +00:00 by matou-build-agent · 5 comments

A prior drive healed this exact fault (services-row :: same normalised error) and it has redded again. Per rail 6 (no heal loops), the healer refused a second heal and filed this blocker so the drive stops re-firing into it.

Healer refused: loop-guard rule — diagnose why the prior heal did not hold before re-arming.

ticket-on-refusal under the healer-first regime (#1144)

drive 20260917T002410Z red at services-row: the founding's own S11 row says 6 placed service(s) did not stand up — files: the files row is failed: the deploy did not hold — add Files & documents from the control panel | archive: the archive
evidence: /home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260917T002410Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

A prior drive healed this exact fault (`services-row` :: same normalised error) and it has redded again. Per rail 6 (no heal loops), the healer refused a second heal and filed this blocker so the drive stops re-firing into it. **Healer refused: loop-guard rule** — diagnose why the prior heal did not hold before re-arming. _ticket-on-refusal under the healer-first regime (#1144)_ drive `20260917T002410Z` red at `services-row`: `the founding's own S11 row says 6 placed service(s) did not stand up — files: the files row is failed: the deploy did not hold — add Files & documents from the control panel | archive: the archive` evidence: `/home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260917T002410Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: b0b6a45a7146 -->
Owner

Taking this from the babysitting laptop session (the #1547 fire's owner, with the run dir on matou-workstation): diagnosing why run 3 (20260917T002410Z, at 1ba9448d) redded at services-row again after #1557's heal — claimed agent-working so no drain re-picks it.

Taking this from the babysitting laptop session (the #1547 fire's owner, with the run dir on matou-workstation): diagnosing why run 3 (20260917T002410Z, at 1ba9448d) redded at `services-row` again after #1557's heal — claimed `agent-working` so no drain re-picks it.
Author
Member

Ruled by agent under ADR 0174 — veto anytime. Standing session-runner drain on elitebook-distributed-server-03. I picked this up because it still carried ready-for-session; @ben's note above says the point of agent-working was to stop a drain re-picking it, so the residual ready-for-session was the coordination bug. I'm deferring the diagnosis to Ben (who has the run dir and the #1547 context) and leaving what I could prove from code alone.

What I can prove from this host (all two-way, no evidence door needed)

  1. The heal (#1557 / 1ba9448d) is code-correct for its root cause, and its own output is clean. TestRenderedModules_NoDuplicateTopLevelAttrPath and TestMeshBound_* pass on HEAD (14eb0588). Paperless/whakapapa render exactly one top-level imports = [ … ] each — the heal did not introduce a fresh attribute 'imports' already defined collision. Ben confirms run 3 (20260917T002410Z) was built at 1ba9448d, so the heal was present in the drive's checkout — this is not a stale-build/timing miss.

  2. No residual same-class (attribute … already defined) double-def is reachable in the six placed services through the real deploy path. I swept all six:

    • document-archive/paperless-web and whakapapa/podman-grampsweb — fixed by the heal (imports form).
    • files/nginx — renderNextcloudOIDC (files.go:809) and renderNextcloudOIDCDevice (files.go:1027) both emit top-level systemd.services.nextcloud-oidc, but they are mutually exclusive by construction: deploy.go:1743 sets DeviceIDP=true and returns before IDPHost is ever set (device shape), while the gateway path (deploy.go:1767) sets IDPHost with DeviceIDP=false. A gateway placement therefore fires only renderNextcloudOIDC. (It would collide if a hand-built FilesConfig set both — worth a defensive rail, see below — but it is not reachable here.)
    • archive/podman-omeka, surveys/httpd, data-collections/podman-grist — define no top-level path that meshBound(<unit>) also owns.

    So by code inspection the rendered modules are clean of the double-def class post-heal. That points away from "the heal missed a second identical collision" and toward either a different root cause or a non-eval deploy/runtime failure.

  3. The rehearsal signature is symptom-level, not root-cause-level. compute_signature (heal-lib.sh:45) hashes workflow | normalize_error_line(<S11 row>). The row here — "N placed service(s) did not stand up … the deploy did not hold" (digits folded to N) — is identical for any cause that fells the placed services. So sig b0b6a45a7146 = "the S11 services row went red," not "the paperless-web.after collision recurred." The loop-guard's "prior heal did not hold" premise holds only at symptom granularity; it does not establish that run 3's root cause equals #1557's. Run 3 may be a genuinely different fault wearing the same S11 row.

The honest blocker

Distinguishing (a) a different Nix eval collision at some module my sweep missed, (b) a non-eval deploy/seal/timeout failure, or (c) a symptom-level sig collision on an unrelated fault — requires run 3's actual failure line, i.e. 20260917T002410Z/legs.json (the Nix eval error text, or the deploy log). That file lives on matou-workstation; this drain host has no door to it (ssh matou-workstation → Permission denied (publickey); no local copy under any reachable test-results/). Ben's babysitting-laptop session does hold the run dir — which is exactly why the diagnosis belongs there, not in a parallel drain.

Recommendation for whoever lands the real fix

  • Read the eval/deploy line in legs.json. If it is another attribute '…' already defined, it names the module the heal missed — fix it in the imports form and add it to the rail.
  • Either way, extend TestRenderedModules_NoDuplicateTopLevelAttrPath to every rendered service module (files/archive/surveys/data-collections/docs-editing/code/newsletters/video/mail/chat/meetings), not just paperless+whakapapa. That converts the whole ADR-0159-decision-5 class from "caught after a paid box reds" to "caught in go test," and it would flag the latent files nextcloud-oidc double-emit noted in (2) before any refactor makes it reachable.

Routing

Removing ready-for-session (implements Ben's stated intent — no drain re-picks). Adding ready-for-human so the completion path stays visible even if the babysitting session has ended; leaving Ben's agent-working claim in place. Not closing — the diagnosis is unfinished and needs the evidence door this host lacks.

**Ruled by agent under ADR 0174 — veto anytime.** Standing session-runner drain on `elitebook-distributed-server-03`. I picked this up because it still carried `ready-for-session`; @ben's note above says the point of `agent-working` was to stop a drain re-picking it, so the residual `ready-for-session` was the coordination bug. I'm deferring the diagnosis to Ben (who has the run dir and the #1547 context) and leaving what I could prove from code alone. ### What I can prove from this host (all two-way, no evidence door needed) 1. **The heal (#1557 / `1ba9448d`) is code-correct for its root cause, and its own output is clean.** `TestRenderedModules_NoDuplicateTopLevelAttrPath` and `TestMeshBound_*` pass on HEAD (`14eb0588`). Paperless/whakapapa render exactly one top-level `imports = [ … ]` each — the heal did **not** introduce a fresh `attribute 'imports' already defined` collision. Ben confirms run 3 (`20260917T002410Z`) was built **at `1ba9448d`**, so the heal *was* present in the drive's checkout — this is **not** a stale-build/timing miss. 2. **No residual same-class (`attribute … already defined`) double-def is reachable in the six placed services through the real deploy path.** I swept all six: - `document-archive`/paperless-web and `whakapapa`/podman-grampsweb — fixed by the heal (imports form). - `files`/nginx — `renderNextcloudOIDC` (files.go:809) and `renderNextcloudOIDCDevice` (files.go:1027) *both* emit top-level `systemd.services.nextcloud-oidc`, but they are **mutually exclusive by construction**: `deploy.go:1743` sets `DeviceIDP=true` and `return`s *before* `IDPHost` is ever set (device shape), while the gateway path (`deploy.go:1767`) sets `IDPHost` with `DeviceIDP=false`. A gateway placement therefore fires only `renderNextcloudOIDC`. (It *would* collide if a hand-built `FilesConfig` set both — worth a defensive rail, see below — but it is not reachable here.) - `archive`/podman-omeka, `surveys`/httpd, `data-collections`/podman-grist — define no top-level path that `meshBound(<unit>)` also owns. So by code inspection the rendered modules are clean of the double-def class post-heal. That points **away** from "the heal missed a second identical collision" and **toward** either a *different* root cause or a non-eval deploy/runtime failure. 3. **The rehearsal signature is symptom-level, not root-cause-level.** `compute_signature` (`heal-lib.sh:45`) hashes `workflow | normalize_error_line(<S11 row>)`. The row here — *"N placed service(s) did not stand up … the deploy did not hold"* (digits folded to `N`) — is identical for **any** cause that fells the placed services. So `sig b0b6a45a7146` = "the S11 services row went red," **not** "the paperless-web.after collision recurred." The loop-guard's "prior heal did not hold" premise holds only at *symptom* granularity; it does **not** establish that run 3's root cause equals #1557's. Run 3 may be a genuinely different fault wearing the same S11 row. ### The honest blocker Distinguishing (a) a different Nix eval collision at some module my sweep missed, (b) a non-eval deploy/seal/timeout failure, or (c) a symptom-level sig collision on an unrelated fault — **requires run 3's actual failure line**, i.e. `20260917T002410Z/legs.json` (the Nix eval error text, or the deploy log). That file lives on **matou-workstation**; this drain host has **no door** to it (`ssh matou-workstation` → `Permission denied (publickey)`; no local copy under any reachable `test-results/`). Ben's babysitting-laptop session *does* hold the run dir — which is exactly why the diagnosis belongs there, not in a parallel drain. ### Recommendation for whoever lands the real fix - Read the eval/deploy line in `legs.json`. If it is another `attribute '…' already defined`, it names the module the heal missed — fix it in the imports form and add it to the rail. - Either way, **extend `TestRenderedModules_NoDuplicateTopLevelAttrPath` to every rendered service module** (files/archive/surveys/data-collections/docs-editing/code/newsletters/video/mail/chat/meetings), not just paperless+whakapapa. That converts the whole ADR-0159-decision-5 class from "caught after a paid box reds" to "caught in `go test`," and it would flag the latent `files` nextcloud-oidc double-emit noted in (2) before any refactor makes it reachable. ### Routing Removing `ready-for-session` (implements Ben's stated intent — no drain re-picks). Adding `ready-for-human` so the completion path stays visible even if the babysitting session has ended; leaving Ben's `agent-working` claim in place. Not closing — the diagnosis is unfinished and needs the evidence door this host lacks.
Author
Member

Why human

Two residues this standing-drain host cannot discharge:

  1. Evidence door. The only artifact that distinguishes the three candidate root causes — run 3's 20260917T002410Z/legs.json (the actual Nix eval / deploy failure line) — lives on matou-workstation, which this host (elitebook-distributed-server-03) cannot reach (ssh → publickey denied; no local copy). Ben's babysitting-laptop session holds the run dir.
  2. Already claimed by Ben. Ben claimed this agent-working to diagnose it himself as #1547's fire owner. A parallel drain landing a speculative change on services-row is exactly the re-fire the loop-guard exists to stop.

Completion = Ben reads legs.json and either (a) fixes the module it names in the imports form + extends the rail, or (b) rules run 3 a symptom-level sig collision on a different fault and re-arms the drive.

## Why human Two residues this standing-drain host cannot discharge: 1. **Evidence door.** The only artifact that distinguishes the three candidate root causes — run 3's `20260917T002410Z/legs.json` (the actual Nix eval / deploy failure line) — lives on **matou-workstation**, which this host (`elitebook-distributed-server-03`) cannot reach (`ssh` → publickey denied; no local copy). Ben's babysitting-laptop session holds the run dir. 2. **Already claimed by Ben.** Ben claimed this `agent-working` to diagnose it himself as #1547's fire owner. A parallel drain landing a speculative change on `services-row` is exactly the re-fire the loop-guard exists to stop. Completion = Ben reads `legs.json` and either (a) fixes the module it names in the imports form + extends the rail, or (b) rules run 3 a symptom-level sig collision on a different fault and re-arms the drive.
Author
Member

Audit correction (ADR 0174). Final label state is ready-for-human + priority + rehearsal-183. agent-working came off concurrently with my routing edit (my only label calls were DELETE ready-for-session and POST ready-for-human — priority/rehearsal-183 survived, so nothing of mine replaced the set). If @ben's session is still live on this, the agent-working claim can go straight back on; I've left it off rather than re-assert a human's claim. The routing intent is unchanged: no drain re-picks (ready-for-session cleared), and the diagnosis waits on Ben's eyes + the matou-workstation evidence door.

**Audit correction (ADR 0174).** Final label state is `ready-for-human` + `priority` + `rehearsal-183`. `agent-working` came off concurrently with my routing edit (my only label calls were `DELETE ready-for-session` and `POST ready-for-human` — `priority`/`rehearsal-183` survived, so nothing of mine replaced the set). If @ben's session is still live on this, the `agent-working` claim can go straight back on; I've left it off rather than re-assert a human's claim. The routing intent is unchanged: no drain re-picks (`ready-for-session` cleared), and the diagnosis waits on Ben's eyes + the matou-workstation evidence door.
Owner

Diagnosed + fixed (laptop session, 2026-09-17)

Not the same fault as #1557 — the loop guard matched the leg's wording, not the cause. Run 3 (20260917T002410Z, at 1ba9448d) founded fine; standup.deploy.log's services stage says the remote switch died at exit 4 with the gateway journal: Failed to start Trust the community identity header (AuthWebServer) + seed the operator superadmin (surveys port). On the kept box (209.38.25.19) journalctl -u limesurvey-auth:

CException: LimeSurvey\PluginManager\PluginManager and its behaviors do not have a method or closure named "getPlugin"
#0 IdssauthCommand.php(53): CComponent->__call('getPlugin', Array)

#1540's console command was written from docs and never run against the pinned LimeSurvey 6.15.14. Read on the box: PluginManager::loadPlugin($name, $id) RETURNS the instance (no getPlugin); PluginBase::set is protected (saveSettings(array) is public); the core plugin's class/row/allowlist name is Authwebserver (exact compare in getCorePluginList); its keys are serverkey / is_default / strip_domain; the autocreate switches are LimeSurvey CONFIG keys (getConfigKey, config-defaults.php) with an ARRAY profile; the User model requires an email passing CEmailValidator (the seeded @localhost would never have saved). is_default=1 would also 401 every header-less request — the health check's RemoteControl login on the stripped exempt path.

Fix landed on main (internal/clan/surveys.go + tests, GOTCHAS #239): the plugin by its class name, loadPlugin's instance + saveSettings, is_default OFF, the autocreate keys in services.limesurvey.config (profile Community member / member@<surveys host> / survey-creator permissions), seeded operators as <id>@<surveys host>. go test ./internal/clan + vet green. Closing; #1547 re-fires.

## Diagnosed + fixed (laptop session, 2026-09-17) **Not the same fault as #1557** — the loop guard matched the leg's wording, not the cause. Run 3 (`20260917T002410Z`, at 1ba9448d) founded fine; `standup.deploy.log`'s services stage says *the remote switch died at exit 4* with the gateway journal: `Failed to start Trust the community identity header (AuthWebServer) + seed the operator superadmin (surveys port)`. On the kept box (209.38.25.19) `journalctl -u limesurvey-auth`: ``` CException: LimeSurvey\PluginManager\PluginManager and its behaviors do not have a method or closure named "getPlugin" #0 IdssauthCommand.php(53): CComponent->__call('getPlugin', Array) ``` #1540's console command was written from docs and never run against the pinned LimeSurvey 6.15.14. Read on the box: `PluginManager::loadPlugin($name, $id)` RETURNS the instance (no `getPlugin`); `PluginBase::set` is protected (`saveSettings(array)` is public); the core plugin's class/row/allowlist name is `Authwebserver` (exact compare in `getCorePluginList`); its keys are `serverkey` / `is_default` / `strip_domain`; the autocreate switches are LimeSurvey CONFIG keys (`getConfigKey`, config-defaults.php) with an ARRAY profile; the User model requires an email passing `CEmailValidator` (the seeded `@localhost` would never have saved). `is_default=1` would also 401 every header-less request — the health check's RemoteControl login on the stripped exempt path. **Fix landed on main** (`internal/clan/surveys.go` + tests, GOTCHAS #239): the plugin by its class name, `loadPlugin`'s instance + `saveSettings`, `is_default` OFF, the autocreate keys in `services.limesurvey.config` (profile `Community member` / `member@<surveys host>` / survey-creator permissions), seeded operators as `<id>@<surveys host>`. `go test ./internal/clan` + vet green. Closing; #1547 re-fires.
ben closed this issue 2026-09-17 01:21:24 +00:00
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#1558
No description provided.