GeezerVison is showing github.com — mcpx: three internal/settings guard tests fail on main (compendium chapter + undeclared adapter env) · Issue #2697 · developing-today/code
mcpx: three internal/settings guard tests fail on main (compendium chapter + undeclared adapter env) #2697Labels app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item Descriptionmcpx: three internal/settings guard tests fail on main (compendium chapter + undeclared adapter env)
Found by queue task 3277 (lane E, 2026-10-30); verified unrelated to that task's change and present on main e616aef:
$ cd pkgs/mcpx && go test ./internal/settings/ -count=1
--- FAIL: TestEveryDocumentHasAChapter
compendium_test.go:160: docs/testing/feature-inventory.md is not in the compendium manifest
(the inventory doc landed in PR #2667 / #1978 without a compendium chapter or a role+reason entry)
--- FAIL: TestNoUndeclaredEnvRead
consumed_test.go:224: internal/daemon/routes_settings.go:906 reads MCPX_ADAPTER_DECLARATION_SHA256, which no setting and no ScriptEnv entry declares
--- FAIL: TestTheScriptEnvironmentIsWhatTheCodeSets
scriptenv_test.go:118: MCPX_ADAPTER_DECLARATION_SHA256 is set by cli (internal/cli/adapter.go:436) and ScriptEnv does not declare it
(the env var arrived with the adapter work in PR #2647, queue 3258 / #1962)
Fixes: give docs/testing/feature-inventory.md a chapter in docs/compendium.manifest.json (or a role and a reason), and declare MCPX_ADAPTER_DECLARATION_SHA256 in ScriptEnv (it is a value a parent process hands the daemon) or wherever the guard's own instructions point. Small, mechanical, and they un-red the settings package on main.
Companion main-red: #2695 (TestMatrix/authsplit).
Acceptance criteria
go test ./internal/settings/ -count=1 passes on clean main (TestEveryDocumentHasAChapter, TestNoUndeclaredEnvRead, TestTheScriptEnvironmentIsWhatTheCodeSets).
docs/testing/feature-inventory.md has a compendium chapter (or a role+reason entry) in docs/compendium.manifest.json.
MCPX_ADAPTER_DECLARATION_SHA256 is declared in ScriptEnv (or at the declaration site the guard prescribes).
Activitydezren39 commented on Oct 30, 2026 Scope note (same author, minutes later): the compendium-chapter failure is the class already tracked by #2552 — treat that part as covered there (feature-inventory.md is one more page for its list, noted on #2552). This issue's unique remainder is the undeclared MCPX_ADAPTER_DECLARATION_SHA256 env read/set (TestNoUndeclaredEnvRead + TestTheScriptEnvironmentIsWhatTheCodeSets), which no open issue covers. dezren39 commented on Oct 30, 2026 Intake review
Fleet monitor intake pass (2026-10-30 run). An ## Acceptance criteria section was appended to the body this pass (original body preserved verbatim above it). Labels normalised: status/needs-triage, effort/s, meta/enriched (kind/bug, priority/normal, app/mcpx were already present).
Still live: verified by the filer on clean main e616aef3; no merged PR since filing (2026-10-30T11:01Z) adds the compendium chapter or declares MCPX_ADAPTER_DECLARATION_SHA256.
Overlap warning: #2716 (filed 36 minutes later by a different lane's verification) rolls up these same settings failures plus the conformance failures — see the cross-link there. The settings fix should land once and close the settings half of both issues; #2695 covers the conformance TestMatrix half.
Notes / risks: small and mechanical, as the filer says — but note TestNoUndeclaredEnvRead also fires on internal/daemon/routes_settings.go:906 reading the same variable, so the declaration site must satisfy both the ScriptEnv guard and the consumed-settings guard, not just one.
Suggested approach: one small branch: compendium chapter (or role+reason) for docs/testing/feature-inventory.md + the env declaration; run the settings package tests in CI on the PR. developing-today commented on Nov 3, 2026 agent-note:v1
state: triaged (coverage pass)
Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
Found via: coverage pass 2026-11-03 dezren39 commented on Nov 3, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 3, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 4, 2026 dezren39 commented on Nov 4, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 4, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 4, 2026 dezren39 commented on Nov 4, 2026 🤖 Agent note · triaged
- Agent: queue worker (
repo-worker-code), OpenChamber scheduled lane aea12c82-c5af-4e5a-9b66-f8e360f87177
- Task: 7959 · repo-health-code-pilot (triage)
- Verified: on current main
ef55926de2c3481591ad69c6a576bd504a792204, go test ./internal/settings/ -count=1 still fails. The originally named docs/testing/feature-inventory.md is no longer among the missing compendium entries; the current missing files are TESTING.md and three docs/changes/* pages. The MCPX_ADAPTER_DECLARATION_SHA256 read/setter mismatch still reproduces. The package also reports unrelated plugin-setting, effect-probe, and stale environment-doc failures outside this issue’s original scope.
- Routing: the compendium backlog overlaps mcpx docs: 13 pages missing from compendium.manifest.json — TestEveryDocumentHasAChapter red on main #2552 (OPEN, currently
queue/claimed; no parallel manifest edit made). The adapter ScriptEnv mismatch is already tracked in mcpx: internal/settings (scriptenv) and internal/conformance (TestAuthSplit, TestMatrix) failing on clean main #2716 (OPEN). No matching open PR was found. The original page omission is fixed and the remaining env work is covered by mcpx: internal/settings (scriptenv) and internal/conformance (TestAuthSplit, TestMatrix) failing on clean main #2716, so this issue is superseded; the broader main-red failures remain tracked for their existing follow-ups.
- Links: mcpx docs: 13 pages missing from compendium.manifest.json — TestEveryDocumentHasAChapter red on main #2552, mcpx: internal/settings (scriptenv) and internal/conformance (TestAuthSplit, TestMatrix) failing on clean main #2716
MetadataMetadataapp/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item DevelopmentNo branches or pull requestsIssue actions
|