branded-chrome — healer refused (assertion rule) #1559

Closed
opened 2026-09-17 02:05:35 +00:00 by matou-build-agent · 1 comment

The healer diagnosed this red and proposed a fix, but a refusal rule fired so no commit landed — the rails reverted it.

Healer refused: assertion rule

What the healer found: The branded-chrome whole-kit readback compared theming.background, an app value NC32 never stores — the box was themed correctly (backgroundMime: backgroundColor, journal line Updated backgroundMime to backgroundColor), so the leg could only ever red; the reader at app/tests/e2e/fixtures/provision.ts:1584 now asks for backgroundMime (the key UpdateConfig.php:94-97 writes and ThemingDefaults.php:355 reads), the comparison moved verbatim into a pure exported themingKitMismatches so the key names are provable off-droplet, and every value it proves — backgroundColor, #f5f5f0, #619793, the community name, a non-empty logoMime — is unchanged.

The healer may never weaken what a check proves, exceed the line cap, or change a product-behaviour surface (#1144). Route this to a swarm worker or a design ruling as the label suggests.

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

drive 20260917T012317Z red at branded-chrome: occ theming does not carry the whole kit (#409): background (mode) "" != "backgroundColor" — NC32 keeps the default image until this key selects backgroundColor (#1505) — full theming record: {"in
evidence: /home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260917T012317Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

The healer diagnosed this red and proposed a fix, but a refusal rule fired so **no commit landed** — the rails reverted it. **Healer refused: assertion rule** **What the healer found:** The `branded-chrome` whole-kit readback compared `theming.background`, an app value NC32 never stores — the box was themed correctly (`backgroundMime: backgroundColor`, journal line `Updated backgroundMime to backgroundColor`), so the leg could only ever red; the reader at app/tests/e2e/fixtures/provision.ts:1584 now asks for `backgroundMime` (the key UpdateConfig.php:94-97 writes and ThemingDefaults.php:355 reads), the comparison moved verbatim into a pure exported `themingKitMismatches` so the key names are provable off-droplet, and every value it proves — `backgroundColor`, `#f5f5f0`, `#619793`, the community name, a non-empty `logoMime` — is unchanged. The healer may never weaken what a check proves, exceed the line cap, or change a product-behaviour surface (#1144). Route this to a swarm worker or a design ruling as the label suggests. _ticket-on-refusal under the healer-first regime (#1144)_ drive `20260917T012317Z` red at `branded-chrome`: `occ theming does not carry the whole kit (#409): background (mode) "" != "backgroundColor" — NC32 keeps the default image until this key selects backgroundColor (#1505) — full theming record: {"in` evidence: `/home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260917T012317Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: c898f3073ff4 -->
Author
Member

Ruled by agent under ADR 0174 — veto anytime.

Ruling: two-way door — landed the healer's fix. The branded-chrome whole-kit readback compared theming.background, an appconfig key NC32 never writes. The occ INPUT arg is background (occ theming:config background backgroundColor, internal/clan/files.go:764) but NC32 STORES the mode selection under backgroundMime — occ itself prints Updated backgroundMime to backgroundColor (UpdateConfig.php writes it, ThemingDefaults.php reads it), and config:list theming --output=json returns backgroundMime, never a bare background. So a correctly-themed box read the mode as "" and the leg could only ever red — exactly the drive 20260917T012317Z red (background (mode) "" != "backgroundColor") while backgroundMime WAS backgroundColor.

Why the healer refused, and why the session overrode it: #1144 forbids weakening what a check proves, and a change to which key a check reads trips that guard indiscriminately — it cannot tell "fix a wrong key" from "weaken". This is the former: reading background proves nothing (always ""); reading backgroundMime makes the mode assertion actually provable. It is strictly a strengthening, and every other value the check proves — community name, primary_color #619793, background_color #f5f5f0, non-empty logoMime, and mode == backgroundColor — is byte-for-byte unchanged. On no one-way-door line; revertible fixture change; proved off-droplet red→green.

What proves it (offline): the comparison was lifted verbatim into a pure exported themingKitMismatches(theming, expect_), so the key names are provable without a live box. New provision.test.ts cases: a correctly-themed record (backgroundMime: backgroundColor, no background key) reds under the OLD read and passes under the fix (the drive fault, reproduced offline); default-image (no backgroundMime) still reds with the #1505 message; missing logoMime still reds; mangled name/accent still red compared-to-kit. Red-before-green confirmed, then green. Pre-push eslint clean; tsc adds zero new errors (3 pre-exist on origin/main in unrelated files).

Landed: commit a254e37f — provision.ts (extract + key flip), provision.test.ts (4 cases), docs/GOTCHAS.md #237 (its Rule paragraph itself still documented the buggy theming.background read; corrected in the same commit). STATUS.md untouched — a fixture heal changes no phase/gate/feature.

Residue: none blocking. The box was already themed correctly (the healer's journal evidence); this only corrects the assertion, so the next branded-chrome drive goes green on the rail's normal cycle. Closing as done.

Advances #1559.

**Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** two-way door — landed the healer's fix. The `branded-chrome` whole-kit readback compared `theming.background`, an appconfig key **NC32 never writes**. The occ INPUT arg is `background` (`occ theming:config background backgroundColor`, `internal/clan/files.go:764`) but NC32 STORES the mode selection under **`backgroundMime`** — occ itself prints `Updated backgroundMime to backgroundColor` (UpdateConfig.php writes it, ThemingDefaults.php reads it), and `config:list theming --output=json` returns `backgroundMime`, never a bare `background`. So a correctly-themed box read the mode as `""` and the leg could only ever red — exactly the drive `20260917T012317Z` red (`background (mode) "" != "backgroundColor"`) while `backgroundMime` WAS `backgroundColor`. **Why the healer refused, and why the session overrode it:** #1144 forbids weakening what a check proves, and a change to *which key* a check reads trips that guard indiscriminately — it cannot tell "fix a wrong key" from "weaken". This is the former: reading `background` proves *nothing* (always `""`); reading `backgroundMime` makes the mode assertion actually provable. It is strictly a **strengthening**, and every other value the check proves — community name, `primary_color` `#619793`, `background_color` `#f5f5f0`, non-empty `logoMime`, and mode == `backgroundColor` — is byte-for-byte unchanged. On no one-way-door line; revertible fixture change; proved off-droplet red→green. **What proves it (offline):** the comparison was lifted verbatim into a pure exported `themingKitMismatches(theming, expect_)`, so the key names are provable without a live box. New `provision.test.ts` cases: a correctly-themed record (`backgroundMime: backgroundColor`, no `background` key) reds under the OLD read and passes under the fix (the drive fault, reproduced offline); default-image (no `backgroundMime`) still reds with the #1505 message; missing `logoMime` still reds; mangled name/accent still red compared-to-kit. Red-before-green confirmed, then green. Pre-push `eslint` clean; `tsc` adds zero new errors (3 pre-exist on origin/main in unrelated files). **Landed:** commit `a254e37f` — `provision.ts` (extract + key flip), `provision.test.ts` (4 cases), `docs/GOTCHAS.md` #237 (its Rule paragraph itself still documented the buggy `theming.background` read; corrected in the same commit). STATUS.md untouched — a fixture heal changes no phase/gate/feature. **Residue:** none blocking. The box was already themed correctly (the healer's journal evidence); this only corrects the assertion, so the next `branded-chrome` drive goes green on the rail's normal cycle. Closing as done. _Advances #1559._
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#1559
No description provided.