document-archive-wears-kit: the 20260907T174810Z red is a stale-checkout replay — 96a3397c already lands the Paperless brand through the config API; verify and close #1292

Closed
opened 2026-09-07 19:01:10 +00:00 by matou-build-agent · 3 comments

The failure

Drive 20260907T174810Z (target brands) went 12/13 green and red at the last leg, document-archive-wears-kit, after 61.0s:

the live Document archive (https://document-archive.e2e-drive.idss.internal:37685) is missing kit marks [name; logo (referenced asset /logo/community-logo.svg does not fetch)] — its surface's ruled token set (DDR 0225) promises them on the card ("Carries your name & logo"); title "Paperless-ngx sign in", 0 stylesheets read

Thrown at app/tests/e2e/fixtures/brandreach.ts:481 from assertServiceWearsKit, driven by app/tests/e2e/provision-brands.live.spec.ts:119. Both wanted marks for document-archive (brandreach.ts:94-99 — wants: { name: true, accent: false, logo: true }) were absent.

The evidence, and why no heal was possible

artifacts/verdict.json pins the run to commit 001e3428. At that tree, internal/clan/paperless.go still rendered the media-path + env brand contract — git show 001e3428:internal/clan/paperless.go carries PAPERLESS_APP_TITLE/PAPERLESS_APP_LOGO at lines 92, 103, 109, 115, 234, 241-242, 266, 271, 276, dropping the logo bytes under <mediaDir>/logo/community-logo.svg and pointing the env var at them.

That contract is dead upstream, which is precisely the observed fault:

  • Paperless ≥ 2.x serves /logo/ from serve_logo, which reads ONLY the database-backed ApplicationConfiguration.app_logo and 404s for a file merely present on the media path → logo (referenced asset /logo/community-logo.svg does not fetch).
  • The sign-in template's <title> is the hard-coded "Paperless-ngx sign in" and it renders logo OR title (logo winning), so the applied name never appears in title/html → readMissingKitMarks (brandreach.ts:371-383) pushes name.

The corroborating timing: deploy-document-archive was green at 3,530,530 ms (58.8 min), the pre-fix paperless-ngx source rebuild.

This is already fixed on main. Commit 96a3397c (authored 2026-09-07 18:13:35Z) replaces the mechanism:

  • internal/clan/paperless.go:100-123 + :327-401 — a post-start document-archive-brand oneshot PATCHes /api/config/<id>/ (multipart app_title + app_logo, named with its real extension), as the module's admin via LoadCredential (:364-372). Line :299 now reads "NO PAPERLESS_APP_TITLE / PAPERLESS_APP_LOGO: the brand lands live through …"; the only remaining mentions of those env keys (:113, :299) are comments recording that the contract is gone.
  • app/tests/e2e/fixtures/brandreach.ts:451-471 — the harness reads the applied name off /api/ui_settings/ for svc.slug === 'document-archive', with a new opts.auth basic-auth header.
  • app/tests/e2e/provision-brands.live.spec.ts:259-268 — hands that leg the health check's admin identity, adminpass read off the guest per call; the literal path matches PaperlessAdminPassPath (internal/clan/paperless.go:156, asserted at internal/clan/paperless_test.go:86).

git merge-base --is-ancestor 001e3428 96a3397c holds: the drive ran the then-current main and the fix landed 24 minutes into it. The drive raced the fix.

Suspected layer

None outstanding. The defect was the clan render's Paperless brand mechanism (internal/clan/paperless.go) plus the harness's name-reading path; both are repaired at HEAD (96a3397c).

Why this was filed rather than healed

No refusal rule fired — there was simply nothing left to fix. The healer's checkout is clean at 96a3397c and no edits were made. Re-ruled here on the workstation against main: go test ./internal/clan/ → ok (18.3s); pnpm --filter app exec vitest run tests/e2e/fixtures/brandreach.test.ts → 10 passed.

Action for whoever picks this up

Verify and close — no code change. The next tick re-drives at 96a3397c or later and exercises the live-API brand path for the first time. If document-archive-wears-kit reds again at a tree containing 96a3397c, that is a genuinely new first-contact red against the config-API mechanism and should be diagnosed fresh (most likely candidates, untested against a live guest: whether the sign-in HTML emits a src=-shaped logo ref that findLogoRef (brandreach.ts:386-393) can match — the /api/ui_settings/ JSON alone will not satisfy that regex — and whether Paperless's DRF accepts the basic-auth identity on /api/ui_settings/).

drive 20260907T174810Z red at document-archive-wears-kit: the live Document archive (https://document-archive.e2e-drive.idss.internal:37685) is missing kit marks [name; logo (referenced asset /logo/community-logo.svg does not fetch)] — its surface's ruled
evidence: /home/swarm/swarm/Matou/idss/test-results/private-path/20260907T174810Z 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 `20260907T174810Z` (target `brands`) went 12/13 green and red at the last leg, `document-archive-wears-kit`, after 61.0s: > the live Document archive (https://document-archive.e2e-drive.idss.internal:37685) is missing kit marks [name; logo (referenced asset /logo/community-logo.svg does not fetch)] — its surface's ruled token set (DDR 0225) promises them on the card ("Carries your name & logo"); title "Paperless-ngx sign in", 0 stylesheets read Thrown at `app/tests/e2e/fixtures/brandreach.ts:481` from `assertServiceWearsKit`, driven by `app/tests/e2e/provision-brands.live.spec.ts:119`. Both wanted marks for `document-archive` (`brandreach.ts:94-99` — `wants: { name: true, accent: false, logo: true }`) were absent. ## The evidence, and why no heal was possible `artifacts/verdict.json` pins the run to **commit `001e3428`**. At that tree, `internal/clan/paperless.go` still rendered the media-path + env brand contract — `git show 001e3428:internal/clan/paperless.go` carries `PAPERLESS_APP_TITLE`/`PAPERLESS_APP_LOGO` at lines 92, 103, 109, 115, 234, 241-242, 266, 271, 276, dropping the logo bytes under `<mediaDir>/logo/community-logo.svg` and pointing the env var at them. That contract is dead upstream, which is precisely the observed fault: - Paperless ≥ 2.x serves `/logo/` from `serve_logo`, which reads ONLY the database-backed `ApplicationConfiguration.app_logo` and 404s for a file merely present on the media path → `logo (referenced asset /logo/community-logo.svg does not fetch)`. - The sign-in template's `<title>` is the hard-coded "Paperless-ngx sign in" and it renders logo OR title (logo winning), so the applied name never appears in `title`/`html` → `readMissingKitMarks` (`brandreach.ts:371-383`) pushes `name`. The corroborating timing: `deploy-document-archive` was green at 3,530,530 ms (58.8 min), the pre-fix paperless-ngx source rebuild. **This is already fixed on main.** Commit `96a3397c` (authored 2026-09-07 18:13:35Z) replaces the mechanism: - `internal/clan/paperless.go:100-123` + `:327-401` — a post-start `document-archive-brand` oneshot PATCHes `/api/config/<id>/` (multipart `app_title` + `app_logo`, named with its real extension), as the module's admin via `LoadCredential` (`:364-372`). Line `:299` now reads "NO PAPERLESS_APP_TITLE / PAPERLESS_APP_LOGO: the brand lands live through …"; the only remaining mentions of those env keys (`:113`, `:299`) are comments recording that the contract is gone. - `app/tests/e2e/fixtures/brandreach.ts:451-471` — the harness reads the applied name off `/api/ui_settings/` for `svc.slug === 'document-archive'`, with a new `opts.auth` basic-auth header. - `app/tests/e2e/provision-brands.live.spec.ts:259-268` — hands that leg the health check's admin identity, `adminpass` read off the guest per call; the literal path matches `PaperlessAdminPassPath` (`internal/clan/paperless.go:156`, asserted at `internal/clan/paperless_test.go:86`). `git merge-base --is-ancestor 001e3428 96a3397c` holds: **the drive ran the then-current main and the fix landed 24 minutes into it.** The drive raced the fix. ## Suspected layer None outstanding. The defect was the clan render's Paperless brand mechanism (`internal/clan/paperless.go`) plus the harness's name-reading path; both are repaired at `HEAD` (`96a3397c`). ## Why this was filed rather than healed No refusal rule fired — there was simply nothing left to fix. The healer's checkout is clean at `96a3397c` and no edits were made. Re-ruled here on the workstation against main: `go test ./internal/clan/` → ok (18.3s); `pnpm --filter app exec vitest run tests/e2e/fixtures/brandreach.test.ts` → 10 passed. ## Action for whoever picks this up Verify and close — no code change. The next tick re-drives at `96a3397c` or later and exercises the live-API brand path for the first time. If `document-archive-wears-kit` reds *again* at a tree containing `96a3397c`, that is a genuinely new first-contact red against the config-API mechanism and should be diagnosed fresh (most likely candidates, untested against a live guest: whether the sign-in HTML emits a `src=`-shaped logo ref that `findLogoRef` (`brandreach.ts:386-393`) can match — the `/api/ui_settings/` JSON alone will not satisfy that regex — and whether Paperless's DRF accepts the basic-auth identity on `/api/ui_settings/`). drive `20260907T174810Z` red at `document-archive-wears-kit`: `the live Document archive (https://document-archive.e2e-drive.idss.internal:37685) is missing kit marks [name; logo (referenced asset /logo/community-logo.svg does not fetch)] — its surface's ruled ` evidence: `/home/swarm/swarm/Matou/idss/test-results/private-path/20260907T174810Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: b19be4ada563 -->
Owner

Verified — closing. Run 20260907T174810Z fired at 17:48Z on 001e3428: the executor's tick read the queue seconds before my pause landed (Forgejo had just come back), so it raced 96a3397c by 24 min and replayed the pre-fix red exactly (58.8 min deploy = the paperless-ngx source rebuild, #1290; same two missing marks, #1291). Useful as the baseline pair for the next run.

On the two candidates flagged for the new path: the sign-in template renders <img src="{{APP_LOGO}}"> where APP_LOGO = BASE_URL + the uploaded file's logo/community-logo.<ext> → findLogoRef matches on logo; and Paperless's DRF auth classes include BasicAuthentication (the health check already rides it), so /api/ui_settings/ accepts the admin identity. Both are first-contact on the next fire — if it reds there, that is a genuinely new finding.

Next tick re-drives at 96a3397c.

**Verified — closing.** Run `20260907T174810Z` fired at 17:48Z on `001e3428`: the executor's tick read the queue seconds before my pause landed (Forgejo had just come back), so it raced `96a3397c` by 24 min and replayed the pre-fix red exactly (58.8 min deploy = the paperless-ngx source rebuild, #1290; same two missing marks, #1291). Useful as the baseline pair for the next run. On the two candidates flagged for the new path: the sign-in template renders `<img src="{{APP_LOGO}}">` where APP_LOGO = BASE_URL + the uploaded file's `logo/community-logo.<ext>` → `findLogoRef` matches on `logo`; and Paperless's DRF auth classes include BasicAuthentication (the health check already rides it), so `/api/ui_settings/` accepts the admin identity. Both are first-contact on the next fire — if it reds there, that is a genuinely new finding. Next tick re-drives at `96a3397c`.
ben closed this issue 2026-09-07 19:02:42 +00:00
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=19619
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=19619 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1292 — status success

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

envelope
{
  "issue": 1292,
  "status": "success",
  "commits": [],
  "changed_files": [],
  "tests": [
    {
      "command": "CI=true pnpm --filter app exec vitest run tests/e2e/fixtures/brandreach.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Fix is on main (96a3397c reachable from origin/main)": "HEAD = 96a3397c, tip of main; `git merge-base --is-ancestor 001e3428 96a3397c` holds, confirming the drive ran the pre-fix tree and the fix landed 24 min into the drive (stale-checkout replay)",
    "Paperless brand rides the config API, not the dead media-path/env contract": "internal/clan/paperless.go:100-123,299,327-401 — document-archive-brand oneshot PATCHes /api/config/<id>/ (multipart app_title+app_logo) via LoadCredential admin identity; only remaining PAPERLESS_APP_* mentions (:113,:299) are comments recording the contract is gone",
    "Harness reads the applied name off /api/ui_settings/ with basic auth for document-archive": "app/tests/e2e/fixtures/brandreach.ts:451-467 (ui_settings path + opts.auth Basic header); app/tests/e2e/provision-brands.live.spec.ts:259-274 (adminpass read off guest per call); internal/clan/paperless_test.go:86 asserts PaperlessAdminPassPath layout",
    "Tests green at HEAD": "brandreach.test.ts 10 passed (exit 0); go test ./internal/clan/ recorded ok on the workstation in the issue body (Go toolchain absent in this sandbox)"
  },
  "summary": "Verified issue #1292: the 20260907T174810Z red was a stale-checkout replay already repaired by 96a3397c (tip of main); no code change needed.",
  "reason": "Verify-and-close ticket — the config-API brand mechanism and the harness's /api/ui_settings/ name-read are already present at HEAD and the brandreach vitest suite passes; the drive raced the fix.",
  "blockers": [],
  "no_code_change": "The defect was already fixed on main by commit 96a3397c before this ticket was picked up; verification (git ancestry, source inspection, brandreach.test.ts 10/10 green) confirms nothing remains to fix. The next drive at 96a3397c+ exercises the live-API brand path for the first time; a fresh red there would be a genuine first-contact fault, not this replay."
}
**close-report** for #1292 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1292, "status": "success", "commits": [], "changed_files": [], "tests": [ { "command": "CI=true pnpm --filter app exec vitest run tests/e2e/fixtures/brandreach.test.ts", "exit_code": 0 } ], "criteria": { "Fix is on main (96a3397c reachable from origin/main)": "HEAD = 96a3397c, tip of main; `git merge-base --is-ancestor 001e3428 96a3397c` holds, confirming the drive ran the pre-fix tree and the fix landed 24 min into the drive (stale-checkout replay)", "Paperless brand rides the config API, not the dead media-path/env contract": "internal/clan/paperless.go:100-123,299,327-401 — document-archive-brand oneshot PATCHes /api/config/<id>/ (multipart app_title+app_logo) via LoadCredential admin identity; only remaining PAPERLESS_APP_* mentions (:113,:299) are comments recording the contract is gone", "Harness reads the applied name off /api/ui_settings/ with basic auth for document-archive": "app/tests/e2e/fixtures/brandreach.ts:451-467 (ui_settings path + opts.auth Basic header); app/tests/e2e/provision-brands.live.spec.ts:259-274 (adminpass read off guest per call); internal/clan/paperless_test.go:86 asserts PaperlessAdminPassPath layout", "Tests green at HEAD": "brandreach.test.ts 10 passed (exit 0); go test ./internal/clan/ recorded ok on the workstation in the issue body (Go toolchain absent in this sandbox)" }, "summary": "Verified issue #1292: the 20260907T174810Z red was a stale-checkout replay already repaired by 96a3397c (tip of main); no code change needed.", "reason": "Verify-and-close ticket — the config-API brand mechanism and the harness's /api/ui_settings/ name-read are already present at HEAD and the brandreach vitest suite passes; the drive raced the fix.", "blockers": [], "no_code_change": "The defect was already fixed on main by commit 96a3397c before this ticket was picked up; verification (git ancestry, source inspection, brandreach.test.ts 10/10 green) confirms nothing remains to fix. The next drive at 96a3397c+ exercises the live-API brand path for the first time; a fresh red there would be a genuine first-contact fault, not this replay." } ``` </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#1292
No description provided.