whakapapa-wears-kit red on first contact: the brand PUT answered 200 with the applied keys, but the Gramps Web door serves the DEFAULT title *and* default palette — the frontend's read of frontend.* was never verified (the "deferred clan-lab driv… #1317

Closed
opened 2026-09-08 07:50:43 +00:00 by matou-build-agent · 2 comments

The failure

Drive 20260908T065505Z (drive 8, #1277, on 04237af3): 17 legs green, red at whakapapa-wears-kit (artifacts/legs.json, artifacts/verdict.json → firstRedLeg: whakapapa-wears-kit). This is the whakapapa port's first contact with this leg — deploy-whakapapa (16.8 min) and whakapapa-healthy both went green for the first time, so #1313's readiness gate and #1316's 404-is-absent fix both held.

the live Genealogy (https://whakapapa.e2e-drive.idss.internal:35855) is missing kit marks [name]
— its surface's ruled token set (DDR 0225) promises them on the card ("Carries your name & colours");
title "Gramps Web", 4 stylesheets read, html starts
"<!DOCTYPE html><html lang=\"en\" data-theme=\"light\" style=\"--md-sys-color-primary-palette-key-color: #946f63;
  --md-sys-color-secondary-palette-key-color: #137cc2; --md-sys-color-tertiary-palette-key-col"

Leg time 62002 ms — the 60 s waitForFunction(document.title.includes('E2E Drive')) at app/tests/e2e/fixtures/brandreach.ts:511-519 ran to its full ceiling. The 4 stylesheets read proves the door sub-fetch path itself is healthy (the b19be4ada563 Node-side-resolver fault is not in play).

The carrier demonstrably fired — server-side

logs/guest-grampsweb.log:110-116:

07:32:48 gateway systemd[1]: Starting Apply the community brand kit to the running Gramps Web (whakapapa port, DDR 0225)...
07:32:48 gateway whakapapa-brand-start[14850]: curl: (22) The requested URL returned error: 429
07:32:51 gateway whakapapa-brand-start[14865]: {"frontend.appTitle":"E2E Drive","frontend.primaryColor":"#619793","frontend.secondaryColor":"#52807d"}
07:32:51 gateway systemd[1]: Finished Apply the community brand kit to the running Gramps Web (whakapapa port, DDR 0225).

Read against the render (internal/clan/whakapapa.go:563-583):

  • The 429 is Gramps Web's own flask-limiter on the first POST /api/token/; the 30×2 s retry loop (whakapapa.go:564-571) absorbed it and the second attempt got a token. No the owner sign-in returned no token line — so the loop worked as designed. Not the fault, recorded so the next reader does not chase it.
  • The JSON at 07:32:51 is the response body of curl -fsS -X PUT "$api/trees/-/config" (whakapapa.go:579-583) — the only thing that unit writes to stdout at that point (--data "$body" is input; jq -n output is captured by $()). With -f set and no the tree-config PUT failed (continuing) line and a clean Finished, the PUT answered 2xx and round-tripped the three applied keys.
  • The compiled artifact is correct: state/clan-config/idss/brand/svc-whakapapa/whakapapa-brand.conf = appTitle=E2E Drive / primaryColor=#619793 / secondaryColor=#52807d.
  • Image pin is right for the theming API: ghcr.io/gramps-project/grampsweb@sha256:d37a3e… = 26.5.2 (internal/clan/whakapapa.go:88-117), confirmed in the podman lines at logs/guest-grampsweb.log:100-102. DDR 0225's ≥ 26.5 precondition is met.

…and reached nothing on the served surface

The served <html> carries --md-sys-color-primary-palette-key-color: #946f63 / --md-sys-color-secondary-palette-key-color: #137cc2 — Gramps Web's stock Material key colours, not the applied #619793/#52807d. So the anonymous SPA rendered neither the name nor the colours: it loaded no tree config, rather than a wrong one. Screenshot at artifacts/brand/whakapapa.png (20 KB, taken before the throw per #658).

The suspected layer — two candidates the run's evidence cannot separate

Both halves of this carrier were shipped on an admission that the wire was unverified. internal/clan/whakapapa.go:522-523:

"The exact wire (the tree-config PUT body) is confirmed on the deferred clan-lab drive; the shape — PUT the three keys as the owner — is the contract."

The deferred drive is this one — the identical sentence in the owner-bootstrap render is what GOTCHAS #187 was written about. The drive side made the matching assumption, app/tests/e2e/fixtures/brandreach.ts:62-66:

"whakapapa carries name + accent through ONE carrier (PUT /api/trees/-/config, #1269): the SPA titles itself from that applied config, so the name-in-title check proves the whole carrier fired"

One of these two is falsified, and this run cannot say which:

(a) Harness layer — the drive reads a door that can never carry the mark. Gramps Web is a private genealogy app; /api/trees/-/config is tree-level state the oneshot itself needed a bearer token to write. If the frontend only fetches it after sign-in, an anonymous visitor gets the stock title and stock palette forever — exactly what was observed. This is the GOTCHAS #183 / Paperless class, already precedented in this same file: brandreach.ts:543-548 reads document-archive's applied name off /api/ui_settings/ with the health check's identity, and the research table row was annotated "name visible signed-in" (docs/research/2026-09-04-catalogue-service-theming-capability.md:34).

(b) Product layer — the carrier writes keys the frontend never reads. A 2xx that echoes the request is not proof of consumption; the key names / scope (frontend.appTitle vs. a differently-scoped setting, - vs. the GRAMPSWEB_TREE tree) may be wrong. This is the GOTCHAS #187 class — an assumed upstream argument/wire shape that returned success and did nothing.

What a worker needs to do

  1. Read the pinned upstream source (gramps-web / gramps-web-api at 26.5.2, digest sha256:d37a3e5af6d8f64b7668b6fac3165da1437f1266d18155f80eba01bc53e2dc25) and answer one question: does the frontend read frontend.appTitle / frontend.primaryColor / frontend.secondaryColor before authentication, or only for a signed-in session? Check the tree-config resource's auth decorator and the frontend's appState/api fetch order. Do not infer from the drive — inferring from a dry-run is what GOTCHAS #183 was written about.
  2. If (a): re-site the read the Paperless way — give whakapapa an authenticated extra read of the tree config (or sign the door context in) in assertServiceWearsKit (brandreach.ts:549-566). The owner credential is available to the drive exactly as document-archive's is (app/tests/e2e/provision-brands.live.spec.ts:262-268): GRAMPSWEB_OWNER_PASSWORD in /run/secrets/vars/whakapapa-secrets/env (internal/clan/whakapapa.go:76-78, the #863 read-per-call shape). The tree-config read needs a bearer token first (POST /api/token/), so fetchThroughDoor's static-header shape needs a small extension. Note the 429 above — any drive-side token POST wants the same retry tolerance the oneshot has. Correct the whakapapa row in docs/research/2026-09-04-catalogue-service-theming-capability.md the way the Paperless row was corrected, and fix the now-false claim at brandreach.ts:62-66.
  3. If (b): fix the wire in renderWhakapapaBrand (internal/clan/whakapapa.go:524-586) and make the oneshot verify its effect rather than trust the 2xx — the #187 rule ("a bootstrap that cannot fail cannot be trusted to have succeeded") applies verbatim to a carrier that cannot fail.
  4. Append a GOTCHAS entry either way; DDR 0225's ruled token set for svc:whakapapa (name · accent · accent-hover) is not in question — only the mechanism and where the drive reads it, the same scope the Paperless correction (96a3397c) landed under ADR 0174.

Why the healer refused

Not a rule-1 or rule-2 refusal in itself — the run's evidence cannot name the defective line. Separating (a) from (b) needs the pinned upstream source (no network access on this workstation) or a live Gramps Web (a paid box), and the two candidates land in different layers with different fixes. Guessing (a) and re-siting the read would risk masking a real carrier defect on a leg that has never been green, changing what the check proves on nothing better than an inference — the precise trap that produced #1311, #1313 and #1316 on this same port over the last four drives. The prior analogous work (96a3397c) was likewise landed by a worker who diagnosed "against the pinned upstream source", not by an in-lane heal.

No edits were made; the working tree is clean at 04237af3.

drive 20260908T065505Z red at whakapapa-wears-kit: the live Genealogy (https://whakapapa.e2e-drive.idss.internal:35855) is missing kit marks [name] — its surface's ruled token set (DDR 0225) promises them on the card ("Carries your name & colours");
evidence: /home/swarm/swarm/Matou/idss/test-results/private-path/20260908T065505Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The failure Drive `20260908T065505Z` (drive 8, #1277, on `04237af3`): **17 legs green, red at `whakapapa-wears-kit`** (`artifacts/legs.json`, `artifacts/verdict.json` → `firstRedLeg: whakapapa-wears-kit`). This is the whakapapa port's **first contact with this leg** — `deploy-whakapapa` (16.8 min) and `whakapapa-healthy` both went green for the first time, so #1313's readiness gate and #1316's 404-is-absent fix both held. ``` the live Genealogy (https://whakapapa.e2e-drive.idss.internal:35855) is missing kit marks [name] — its surface's ruled token set (DDR 0225) promises them on the card ("Carries your name & colours"); title "Gramps Web", 4 stylesheets read, html starts "<!DOCTYPE html><html lang=\"en\" data-theme=\"light\" style=\"--md-sys-color-primary-palette-key-color: #946f63; --md-sys-color-secondary-palette-key-color: #137cc2; --md-sys-color-tertiary-palette-key-col" ``` Leg time 62002 ms — the 60 s `waitForFunction(document.title.includes('E2E Drive'))` at `app/tests/e2e/fixtures/brandreach.ts:511-519` ran to its full ceiling. The `4 stylesheets read` proves the door sub-fetch path itself is healthy (the `b19be4ada563` Node-side-resolver fault is not in play). ## The carrier demonstrably fired — server-side `logs/guest-grampsweb.log:110-116`: ``` 07:32:48 gateway systemd[1]: Starting Apply the community brand kit to the running Gramps Web (whakapapa port, DDR 0225)... 07:32:48 gateway whakapapa-brand-start[14850]: curl: (22) The requested URL returned error: 429 07:32:51 gateway whakapapa-brand-start[14865]: {"frontend.appTitle":"E2E Drive","frontend.primaryColor":"#619793","frontend.secondaryColor":"#52807d"} 07:32:51 gateway systemd[1]: Finished Apply the community brand kit to the running Gramps Web (whakapapa port, DDR 0225). ``` Read against the render (`internal/clan/whakapapa.go:563-583`): - The **429** is Gramps Web's own flask-limiter on the first `POST /api/token/`; the 30×2 s retry loop (`whakapapa.go:564-571`) absorbed it and the second attempt got a token. No `the owner sign-in returned no token` line — so the loop worked as designed. **Not the fault**, recorded so the next reader does not chase it. - The JSON at 07:32:51 is the **response body** of `curl -fsS -X PUT "$api/trees/-/config"` (`whakapapa.go:579-583`) — the only thing that unit writes to stdout at that point (`--data "$body"` is input; `jq -n` output is captured by `$()`). With `-f` set and **no** `the tree-config PUT failed (continuing)` line and a clean `Finished`, the PUT answered **2xx and round-tripped the three applied keys**. - The compiled artifact is correct: `state/clan-config/idss/brand/svc-whakapapa/whakapapa-brand.conf` = `appTitle=E2E Drive` / `primaryColor=#619793` / `secondaryColor=#52807d`. - Image pin is right for the theming API: `ghcr.io/gramps-project/grampsweb@sha256:d37a3e…` = 26.5.2 (`internal/clan/whakapapa.go:88-117`), confirmed in the podman lines at `logs/guest-grampsweb.log:100-102`. DDR 0225's `≥ 26.5` precondition is met. ## …and reached nothing on the served surface The served `<html>` carries `--md-sys-color-primary-palette-key-color: #946f63` / `--md-sys-color-secondary-palette-key-color: #137cc2` — Gramps Web's **stock** Material key colours, not the applied `#619793`/`#52807d`. So the anonymous SPA rendered **neither the name nor the colours**: it loaded *no* tree config, rather than a wrong one. Screenshot at `artifacts/brand/whakapapa.png` (20 KB, taken before the throw per #658). ## The suspected layer — two candidates the run's evidence cannot separate Both halves of this carrier were shipped on an admission that the wire was unverified. `internal/clan/whakapapa.go:522-523`: > *"The exact wire (the tree-config PUT body) is confirmed on the deferred clan-lab drive; the shape — PUT the three keys as the owner — is the contract."* The deferred drive is this one — the identical sentence in the owner-bootstrap render is what GOTCHAS #187 was written about. The drive side made the matching assumption, `app/tests/e2e/fixtures/brandreach.ts:62-66`: > *"whakapapa carries name + accent through ONE carrier (`PUT /api/trees/-/config`, #1269): **the SPA titles itself from that applied config**, so the name-in-title check proves the whole carrier fired"* One of these two is falsified, and this run cannot say which: **(a) Harness layer — the drive reads a door that can never carry the mark.** Gramps Web is a private genealogy app; `/api/trees/-/config` is tree-level state the oneshot itself needed a bearer token to write. If the frontend only fetches it *after* sign-in, an anonymous visitor gets the stock title and stock palette forever — exactly what was observed. This is the **GOTCHAS #183 / Paperless class**, already precedented in this same file: `brandreach.ts:543-548` reads document-archive's applied name off `/api/ui_settings/` with the health check's identity, and the research table row was annotated *"name visible signed-in"* (`docs/research/2026-09-04-catalogue-service-theming-capability.md:34`). **(b) Product layer — the carrier writes keys the frontend never reads.** A 2xx that echoes the request is not proof of consumption; the key names / scope (`frontend.appTitle` vs. a differently-scoped setting, `-` vs. the `GRAMPSWEB_TREE` tree) may be wrong. This is the **GOTCHAS #187 class** — an assumed upstream argument/wire shape that returned success and did nothing. ## What a worker needs to do 1. **Read the pinned upstream source** (gramps-web / gramps-web-api at 26.5.2, digest `sha256:d37a3e5af6d8f64b7668b6fac3165da1437f1266d18155f80eba01bc53e2dc25`) and answer one question: *does the frontend read `frontend.appTitle` / `frontend.primaryColor` / `frontend.secondaryColor` before authentication, or only for a signed-in session?* Check the tree-config resource's auth decorator and the frontend's `appState`/`api` fetch order. **Do not infer from the drive** — inferring from a dry-run is what GOTCHAS #183 was written about. 2. **If (a):** re-site the read the Paperless way — give `whakapapa` an authenticated extra read of the tree config (or sign the door context in) in `assertServiceWearsKit` (`brandreach.ts:549-566`). The owner credential is available to the drive exactly as document-archive's is (`app/tests/e2e/provision-brands.live.spec.ts:262-268`): `GRAMPSWEB_OWNER_PASSWORD` in `/run/secrets/vars/whakapapa-secrets/env` (`internal/clan/whakapapa.go:76-78`, the #863 read-per-call shape). The tree-config read needs a bearer token first (`POST /api/token/`), so `fetchThroughDoor`'s static-header shape needs a small extension. Note the 429 above — any drive-side token POST wants the same retry tolerance the oneshot has. Correct the whakapapa row in `docs/research/2026-09-04-catalogue-service-theming-capability.md` the way the Paperless row was corrected, and fix the now-false claim at `brandreach.ts:62-66`. 3. **If (b):** fix the wire in `renderWhakapapaBrand` (`internal/clan/whakapapa.go:524-586`) and make the oneshot **verify its effect** rather than trust the 2xx — the #187 rule ("a bootstrap that cannot fail cannot be trusted to have succeeded") applies verbatim to a carrier that cannot fail. 4. Append a GOTCHAS entry either way; DDR 0225's ruled token set for `svc:whakapapa` (name · accent · accent-hover) is **not** in question — only the mechanism and where the drive reads it, the same scope the Paperless correction (`96a3397c`) landed under ADR 0174. ## Why the healer refused Not a rule-1 or rule-2 refusal in itself — **the run's evidence cannot name the defective line.** Separating (a) from (b) needs the pinned upstream source (no network access on this workstation) or a live Gramps Web (a paid box), and the two candidates land in different layers with different fixes. Guessing (a) and re-siting the read would risk masking a real carrier defect on a leg that has **never been green**, changing what the check proves on nothing better than an inference — the precise trap that produced #1311, #1313 and #1316 on this same port over the last four drives. The prior analogous work (`96a3397c`) was likewise landed by a worker who diagnosed "against the pinned upstream source", not by an in-lane heal. No edits were made; the working tree is clean at `04237af3`. drive `20260908T065505Z` red at `whakapapa-wears-kit`: `the live Genealogy (https://whakapapa.e2e-drive.idss.internal:35855) is missing kit marks [name] — its surface's ruled token set (DDR 0225) promises them on the card ("Carries your name & colours");` evidence: `/home/swarm/swarm/Matou/idss/test-results/private-path/20260908T065505Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: d4b300ff4894 -->
Author
Member

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

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

close-report for #1317 — status success

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

envelope
{
  "issue": 1317,
  "status": "success",
  "commits": [
    "03bb1f87"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/brandreach.test.ts",
    "app/tests/e2e/fixtures/brandreach.ts",
    "app/tests/e2e/provision-brands.live.spec.ts",
    "docs/GOTCHAS.md",
    "docs/research/2026-09-04-catalogue-service-theming-capability.md"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/e2e/fixtures/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Read the pinned upstream and answer whether the frontend reads frontend.appTitle/primaryColor/secondaryColor before auth or only signed-in": "Answered against pinned gramps-web v26.5.2 + gramps-web-api: ONLY signed-in. GrampsJs.js _setReady->_loadTreeConfig runs only after an authenticated /api/metadata/ succeeds; both MetadataResource and TreeConfigResource are ProtectedResource (jwt_required). An anon metadata GET 401s -> LOADING_STATE_UNAUTHORIZED -> tree config never loaded -> stock 'Gramps Web' title + DEFAULT palette. Documented in the research doc detail section + GOTCHAS #190.",
    "It is (a) harness layer: re-site the read the Paperless way": "Confirmed candidate (a). assertServiceWearsKit now reads whakapapa's name via fetchGrampsTreeConfigText (POST /api/token/ with 429 tolerance, then GET /api/trees/-/config with the bearer, through the door), gated on opts.auth; the spec hands whakapapa the owner credential (user 'owner', GRAMPSWEB_OWNER_PASSWORD from /run/secrets/vars/whakapapa-secrets/env, #863 read-per-call). fetchThroughDoor extended with method+body for the token POST. brandreach.ts:62-66 false 'SPA titles itself' claim corrected. Research whakapapa row corrected the Paperless way (96a3397c precedent).",
    "Append a GOTCHAS entry": "docs/GOTCHAS.md #190 appended (a 200 PUT is not proof the mark reaches the served surface; where the surface is private, read it as the owner)."
  },
  "summary": "whakapapa-wears-kit now reads the applied name as the owner because Gramps Web's applied config is readable only signed-in (verified against pinned upstream, candidate (a)); GOTCHAS #190.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1317 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1317, "status": "success", "commits": [ "03bb1f87" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/brandreach.test.ts", "app/tests/e2e/fixtures/brandreach.ts", "app/tests/e2e/provision-brands.live.spec.ts", "docs/GOTCHAS.md", "docs/research/2026-09-04-catalogue-service-theming-capability.md" ], "tests": [ { "command": "npx vitest run tests/e2e/fixtures/", "exit_code": 0 } ], "criteria": { "Read the pinned upstream and answer whether the frontend reads frontend.appTitle/primaryColor/secondaryColor before auth or only signed-in": "Answered against pinned gramps-web v26.5.2 + gramps-web-api: ONLY signed-in. GrampsJs.js _setReady->_loadTreeConfig runs only after an authenticated /api/metadata/ succeeds; both MetadataResource and TreeConfigResource are ProtectedResource (jwt_required). An anon metadata GET 401s -> LOADING_STATE_UNAUTHORIZED -> tree config never loaded -> stock 'Gramps Web' title + DEFAULT palette. Documented in the research doc detail section + GOTCHAS #190.", "It is (a) harness layer: re-site the read the Paperless way": "Confirmed candidate (a). assertServiceWearsKit now reads whakapapa's name via fetchGrampsTreeConfigText (POST /api/token/ with 429 tolerance, then GET /api/trees/-/config with the bearer, through the door), gated on opts.auth; the spec hands whakapapa the owner credential (user 'owner', GRAMPSWEB_OWNER_PASSWORD from /run/secrets/vars/whakapapa-secrets/env, #863 read-per-call). fetchThroughDoor extended with method+body for the token POST. brandreach.ts:62-66 false 'SPA titles itself' claim corrected. Research whakapapa row corrected the Paperless way (96a3397c precedent).", "Append a GOTCHAS entry": "docs/GOTCHAS.md #190 appended (a 200 PUT is not proof the mark reaches the served surface; where the surface is private, read it as the owner)." }, "summary": "whakapapa-wears-kit now reads the applied name as the owner because Gramps Web's applied config is readable only signed-in (verified against pinned upstream, candidate (a)); GOTCHAS #190.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#1317
No description provided.