You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mcpx: TestNoPackageRedeclaresADefault red on clean main — mcpauth/failover + testsupport constants bypass defaults.json #8270
TestNoPackageRedeclaresADefault (pkgs/mcpx/internal/defaults/guard_test.go) is red on clean main — verified 2026-11-10 by lane code-b (task 13050) with all local changes stashed: go test ./internal/defaults/ -run TestNoPackageRedeclaresADefault FAILs identically on the untouched tree.
The guard flags constants that belong in internal/defaults/defaults.json (and, where user-tunable, the settings registry):
Same bug class as #3085 (closed; that instance was execsvc/progspec constants). This is a new instance in mcpauth/testsupport, not a reopen: the flagged literals are different sites. The mcpx main-broken tracker is #2534.
Fix shape
Move the failover timing constants into defaults.json (+ settings registry if user-tunable), name them for what they bound (minted-token refresh skew, iat backdate, token lifetime, session TTL), and disposition the two testsupport literals per the guard's own rules (move, or record why testsupport is exempt in the guard if that is the ruling).
Released to the queue under Drew's 2026-11-13 unblock-all order (main chat, 23:53 CT). Task(s) 15293 moved from blocked/parked to queued in the fleet unblock-all pass (worker main-unblock-all-2026-11-13). Dependency gates still recorded on a task remain recorded — the dependency checker will re-block it if a gate is genuinely unmet.
Fresh verification (2026-11-14): ran the guard on a clean worktree of current main (e202485e71): go test ./internal/defaults/ -run TestNoPackageRedeclaresADefaultFAILS. The flagged set has grown since filing — the four mcpauth/failover.go sites from the issue are all still there, plus new offenders the guard now catches:
internal/cli/adapter_import.go:685 and internal/cli/adapter_import_parse.go:444 — context.WithTimeout(..., 10*time.Second) (import timeout)
plus the issue's original testsupport sites: internal/testsupport/eramcp/main.go:226 (time.After(2 * time.Second)) and internal/testsupport/seed/seed.go:89 (the 1<<63 int64 mask)
Fix shape (unchanged, now wider): move the four failover timings into internal/defaults/defaults.json named for what they bound (refresh skew 5m, iat backdate 60s, token lifetime 9m, session TTL 60s) + settings registry if user-tunable; give every other site the same treatment or an allowlist entry in the guard with a written reason, per the guard's own rules (note the allowlist keys on exact matched text, so a bare 10*time.Second exemption would be too broad — the cli/testsweep sites need real defaults or narrowly-reasoned entries). The seed 1<<63 mask is arithmetic (int64 sign mask), the strongest allowlist candidate.
Routing: prepared as a small_fix packet scoped to exactly these 11 sites; this triage lane verified the failure but did not start the edit — it spans 6 files in 5 packages and deserves a single uninterrupted pass with the full mcpx suite, not a lane-slice.
Fresh check (2026-11-14): task 15293 triaged mcpx: TestNoPackageRedeclaresADefault red on clean main — mcpauth/failover + testsupport constants bypass defaults.json #8270 minutes ago (13:49Z) and verified the failure — TestNoPackageRedeclaresADefault red on clean main; the fix scope is exactly 11 sites across 6 files in 5 packages (mcpauth/failover + testsupport constants bypassing defaults.json), each needing a real default via the settings registry or a narrowly-reasoned allowlist entry in the guard (the seed 1<<63 mask is arithmetic — the strongest allowlist candidate). Task 15293's correction note records that its follow-on enqueue deduped against this task under the canonical fix key — task 16869 IS the fix packet, and the 11-site scope in the triage note is its input.
Why parked, not started: the triage explicitly scoped this as a single uninterrupted pass with the full mcpx suite; this claim arrived in the last hour of the shift, and a half-finished 6-file edit would leave the tree worse than a clean park. No code changes were made by this lane.
Reproduced on current main (3b4cb17): go test ./internal/defaults/ -run TestNoPackageRedeclaresADefault fails with exactly the 11 sites from task 15293's triage.
Fix implemented on branch queue/16869-8270-defaults-guard (commit bb22e74, 9 files): the four mcpauth/failover timings and the testsupport timings are new mcpauth / testsupport sections in internal/defaults/defaults.json (data, not settings — the JWT values are protocol-bound by GitHub's ten-minute App JWT cap, the same reasoning the defaults package already uses for files/git); the two cli import-probe timeouts join the cli section as cli.importTimeout; the daemon script-view wait joins the daemon section as daemon.scriptWaitDelay; the seed 1<<63 is allowlisted in the guard with its written reason (int64 sign mask — arithmetic, not a size or policy value).
Verified so far: go build ./... pass; internal/defaults suite green (guard included); internal/mcpauth and internal/testsupport suites pass. The six internal/cli failures (plugin declared twice, parity/manual drift) are PRE-EXISTING on clean main at 3b4cb17 — verified in a pristine worktree — and are not touched by this change.
Activity
developing-today commentedon Nov 10, 2026
CODE-2461
dezren39 commentedon Nov 14, 2026
Released to the queue under Drew's 2026-11-13 unblock-all order (main chat, 23:53 CT). Task(s) 15293 moved from blocked/parked to queued in the fleet unblock-all pass (worker
main-unblock-all-2026-11-13). Dependency gates still recorded on a task remain recorded — the dependency checker will re-block it if a gate is genuinely unmet.dezren39 commentedon Nov 14, 2026
🤖 Agent note · triaged — still red on current main; offender set has grown from 6 to 11 sites
e202485e71):go test ./internal/defaults/ -run TestNoPackageRedeclaresADefaultFAILS. The flagged set has grown since filing — the fourmcpauth/failover.gosites from the issue are all still there, plus new offenders the guard now catches:internal/cli/adapter_import.go:685andinternal/cli/adapter_import_parse.go:444—context.WithTimeout(..., 10*time.Second)(import timeout)internal/daemon/scriptview.go:29—const scriptWaitDelay = 2 * time.Secondinternal/testsupport/sweep.go:113—leftoverGracePeriod = 10 * time.Second;:115—leftoverPollInterval = 100 * time.Millisecondinternal/testsupport/eramcp/main.go:226(time.After(2 * time.Second)) andinternal/testsupport/seed/seed.go:89(the1<<63int64 mask)internal/defaults/defaults.jsonnamed for what they bound (refresh skew 5m, iat backdate 60s, token lifetime 9m, session TTL 60s) + settings registry if user-tunable; give every other site the same treatment or an allowlist entry in the guard with a written reason, per the guard's own rules (note the allowlist keys on exact matched text, so a bare10*time.Secondexemption would be too broad — the cli/testsweep sites need real defaults or narrowly-reasoned entries). The seed1<<63mask is arithmetic (int64 sign mask), the strongest allowlist candidate.small_fixpacket scoped to exactly these 11 sites; this triage lane verified the failure but did not start the edit — it spans 6 files in 5 packages and deserves a single uninterrupted pass with the full mcpx suite, not a lane-slice.dezren39 commentedon Nov 14, 2026
🤖 Agent note · correction to the triage note above (task 15293)
dezren39 commentedon Nov 14, 2026
Agent note — task 16869 parked with the fix scope verified (lane any-b)
TestNoPackageRedeclaresADefaultred on clean main; the fix scope is exactly 11 sites across 6 files in 5 packages (mcpauth/failover + testsupport constants bypassingdefaults.json), each needing a real default via the settings registry or a narrowly-reasoned allowlist entry in the guard (the seed1<<63mask is arithmetic — the strongest allowlist candidate). Task 15293's correction note records that its follow-on enqueue deduped against this task under the canonical fix key — task 16869 IS the fix packet, and the 11-site scope in the triage note is its input.dezren39 commentedon Nov 14, 2026
Agent note — task 16869 in progress (lane any-b)
go test ./internal/defaults/ -run TestNoPackageRedeclaresADefaultfails with exactly the 11 sites from task 15293's triage.queue/16869-8270-defaults-guard(commit bb22e74, 9 files): the four mcpauth/failover timings and the testsupport timings are newmcpauth/testsupportsections in internal/defaults/defaults.json (data, not settings — the JWT values are protocol-bound by GitHub's ten-minute App JWT cap, the same reasoning the defaults package already uses for files/git); the two cli import-probe timeouts join the cli section ascli.importTimeout; the daemon script-view wait joins the daemon section asdaemon.scriptWaitDelay; the seed1<<63is allowlisted in the guard with its written reason (int64 sign mask — arithmetic, not a size or policy value).go build ./...pass; internal/defaults suite green (guard included); internal/mcpauth and internal/testsupport suites pass. The six internal/cli failures (plugin declared twice, parity/manual drift) are PRE-EXISTING on clean main at 3b4cb17 — verified in a pristine worktree — and are not touched by this change.dezren39 commentedon Nov 14, 2026
Agent note — task 16869 done as superseded; #8270 closes (lane any-b)
go test ./internal/defaults/ -run TestNoPackageRedeclaresADefaultpasses. The guard is green on clean main, so mcpx: TestNoPackageRedeclaresADefault red on clean main — mcpauth/failover + testsupport constants bypass defaults.json #8270's acceptance holds and its block on task 15117 / issue fleet-stalling: main mcpx test failures block clean PR checks (run 43191539255) #8900 is cleared. mcpx: TestNoPackageRedeclaresADefault red on clean main — mcpauth/failover + testsupport constants bypass defaults.json #8270 closes on PR mcpx: clear TestNoPackageRedeclaresADefault — 11 sites dispositioned (#8720, task 16870) #10065's evidence.