Skip to content

mcpx: three internal/settings guard tests fail on main (compendium chapter + undeclared adapter env) #2697

Closed as not planned

Description

@dezren39

mcpx: 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).

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/normalOrdinary priority (the default)
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    on Oct 30, 2026
  2. dezren39 commented on Oct 30, 2026

    @dezren39
    MemberAuthor

    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.

  3. added
    effort/sSmall: expected under 2 hours of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 30, 2026
  4. dezren39 commented on Oct 30, 2026

    @dezren39
    MemberAuthor

    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.

  5. added
    queue/queuedHas a queued task in the Supabase agent queue
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  6. developing-today commented on Nov 3, 2026

    @developing-today
    Contributor

    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

  7. added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued task in the Supabase agent queue
    on Nov 3, 2026
  8. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  9. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  10. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  11. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  12. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  13. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  14. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions