From 7ef37faa00c5b1e5051f42f2321b847df7c4e6a3 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 19:42:13 +0000 Subject: [PATCH] test(mcpx): probe daemon.inline, autostart.bin/args/logTail and daemon.watchConfig (#8473 chain 42) - daemon.inline: by default ls leaves a daemon that a later ls reaches with autostart off; with inline=always the ls answers in process and leaves nothing to reach. - autostart.bin: a missing executable makes the spawn rung fail on its exec. - autostart.args: a flag the daemon does not define makes the spawned daemon exit with its complaint in the excerpt. - autostart.logTail: an 8-byte tail cuts that excerpt to its end. - daemon.watchConfig: a hand edit to the config is picked up by the next ls when watching, and not with watching off. Drops five exemptions; the pin goes from 97 to 92. Refs #8473 Co-Authored-By: Claude Opus 5.5 --- pkgs/mcpx/internal/e2e/effect_test.go | 121 ++++++++++++++++++ .../e2e/feature_coverage_exemptions.txt | 5 - pkgs/mcpx/internal/settings/effect.go | 12 +- 3 files changed, 127 insertions(+), 11 deletions(-) diff --git a/pkgs/mcpx/internal/e2e/effect_test.go b/pkgs/mcpx/internal/e2e/effect_test.go index 32fd3909ff..3a99617d71 100644 --- a/pkgs/mcpx/internal/e2e/effect_test.go +++ b/pkgs/mcpx/internal/e2e/effect_test.go @@ -101,6 +101,11 @@ var implementedEffectProbes = map[string]string{ "protoTasks.maxPerRequestor": "TestProtoTasksMaxPerRequestorCapsUnfinishedTasksFromTheEnvironment", "protoTasks.perMinute": "TestProtoTasksPerMinuteWindowsTaskReadsFromTheEnvironment", "events.history": "TestEventsHistoryBoundsTheReplay", + "daemon.inline": "TestDaemonInlineAlwaysAnswersWithoutASocketFromTheEnvironment", + "autostart.bin": "TestAutostartBinChoosesTheDaemonExecutableFromTheEnvironment", + "autostart.args": "TestAutostartArgsReplaceTheDaemonCommandLineFromTheEnvironment", + "autostart.logTail": "TestAutostartLogTailBoundsTheFailureExcerptFromTheEnvironment", + "daemon.watchConfig": "TestDaemonWatchConfigPicksUpAHandEditFromTheEnvironment", "daemon.inlineStartTimeout": "TestDaemonInlineStartTimeoutBoundsTheInProcessStartFromTheEnvironment", "daemon.probeTimeout": "TestDaemonProbeTimeoutDecidesWhetherASiblingDaemonIsReportedFromTheEnvironment", "daemon.warmTimeout": "TestDaemonWarmTimeoutBoundsTheStartupWarm", @@ -251,6 +256,11 @@ var effectProbeFuncs = map[string]func(*testing.T){ "TestProtoTasksMaxPerRequestorCapsUnfinishedTasksFromTheEnvironment": TestProtoTasksMaxPerRequestorCapsUnfinishedTasksFromTheEnvironment, "TestProtoTasksPerMinuteWindowsTaskReadsFromTheEnvironment": TestProtoTasksPerMinuteWindowsTaskReadsFromTheEnvironment, "TestEventsHistoryBoundsTheReplay": TestEventsHistoryBoundsTheReplay, + "TestDaemonInlineAlwaysAnswersWithoutASocketFromTheEnvironment": TestDaemonInlineAlwaysAnswersWithoutASocketFromTheEnvironment, + "TestAutostartBinChoosesTheDaemonExecutableFromTheEnvironment": TestAutostartBinChoosesTheDaemonExecutableFromTheEnvironment, + "TestAutostartArgsReplaceTheDaemonCommandLineFromTheEnvironment": TestAutostartArgsReplaceTheDaemonCommandLineFromTheEnvironment, + "TestAutostartLogTailBoundsTheFailureExcerptFromTheEnvironment": TestAutostartLogTailBoundsTheFailureExcerptFromTheEnvironment, + "TestDaemonWatchConfigPicksUpAHandEditFromTheEnvironment": TestDaemonWatchConfigPicksUpAHandEditFromTheEnvironment, "TestDaemonInlineStartTimeoutBoundsTheInProcessStartFromTheEnvironment": TestDaemonInlineStartTimeoutBoundsTheInProcessStartFromTheEnvironment, "TestDaemonProbeTimeoutDecidesWhetherASiblingDaemonIsReportedFromTheEnvironment": TestDaemonProbeTimeoutDecidesWhetherASiblingDaemonIsReportedFromTheEnvironment, "TestDaemonWarmTimeoutBoundsTheStartupWarm": TestDaemonWarmTimeoutBoundsTheStartupWarm, @@ -2902,6 +2912,117 @@ func TestDaemonProbeTimeoutDecidesWhetherASiblingDaemonIsReportedFromTheEnvironm } } +// TestDaemonInlineAlwaysAnswersWithoutASocketFromTheEnvironment is the +// effect probe for daemon.inline. By default ls auto-starts a daemon that +// outlives the command, so a later ls with autostart off still answers. +// With daemon.inline=always the client skips the socket and spawn rungs +// and answers from an in-process daemon: the ls lists demo, and nothing +// is left running for the later ls to reach. +func TestDaemonInlineAlwaysAnswersWithoutASocketFromTheEnvironment(t *testing.T) { + leftRunning := func(inline bool) bool { + e := newEnv(t, oneServer) + if inline { + e.setenv("MCPX_DAEMON_INLINE=always") + } + if out := e.run("ls"); !strings.Contains(out, "demo") { + t.Fatalf("ls should list demo (inline %v):\n%s", inline, out) + } + e.unsetenv("MCPX_DAEMON_INLINE") + e.setenv("MCPX_DAEMON_AUTOSTART=false") + _, err := e.try("ls") + return err == nil + } + if !leftRunning(false) { + t.Fatalf("oracle: by default ls should leave a daemon that a later ls reaches with autostart off") + } + if leftRunning(true) { + t.Fatalf("with daemon.inline=always the ls should leave no daemon behind") + } +} + +// autostartFailure runs ls with autostart settings that keep the daemon +// from coming up and returns the failure the client prints. +func autostartFailure(t *testing.T, env ...string) string { + t.Helper() + e := newEnv(t, oneServer) + e.setenv(append([]string{"MCPX_AUTOSTART_CONNECT_TIMEOUT=2s"}, env...)...) + out, err := e.try("ls") + if err == nil { + t.Fatalf("ls should fail to start a daemon with %v; got:\n%s", env, out) + } + return out +} + +// TestAutostartBinChoosesTheDaemonExecutableFromTheEnvironment is the +// effect probe for autostart.bin. The default starts this binary as the +// daemon and ls answers; naming an executable that does not exist makes +// the spawn rung fail on exec of that path. +func TestAutostartBinChoosesTheDaemonExecutableFromTheEnvironment(t *testing.T) { + if out := newEnv(t, oneServer).run("ls"); !strings.Contains(out, "demo") { + t.Fatalf("oracle: with the default autostart.bin ls should list demo:\n%s", out) + } + missing := filepath.Join(t.TempDir(), "no-such-mcpx") + out := autostartFailure(t, "MCPX_AUTOSTART_BIN="+missing) + if !strings.Contains(out, "fork/exec "+missing) { + t.Fatalf("the spawn rung should fail on exec of autostart.bin, got:\n%s", out) + } +} + +// TestAutostartArgsReplaceTheDaemonCommandLineFromTheEnvironment is the +// effect probe for autostart.args. The default arguments start a daemon; +// replacing them with a flag the daemon command does not define makes +// the spawned process exit, and its own complaint about the flag is in +// the log excerpt the client prints. +func TestAutostartArgsReplaceTheDaemonCommandLineFromTheEnvironment(t *testing.T) { + if out := newEnv(t, oneServer).run("ls"); !strings.Contains(out, "demo") { + t.Fatalf("oracle: with the default autostart.args ls should list demo:\n%s", out) + } + out := autostartFailure(t, "MCPX_AUTOSTART_ARGS=daemon,--no-such-flag") + if !strings.Contains(out, "flag provided but not defined: -no-such-flag") { + t.Fatalf("the daemon started with the replaced arguments should refuse the flag, got:\n%s", out) + } +} + +// TestAutostartLogTailBoundsTheFailureExcerptFromTheEnvironment is the +// effect probe for autostart.logTail. A daemon that will not start has +// the end of its log shown; by default the excerpt holds the daemon's +// whole complaint, and with an 8-byte tail only the last 8 bytes of it. +func TestAutostartLogTailBoundsTheFailureExcerptFromTheEnvironment(t *testing.T) { + bad := "MCPX_AUTOSTART_ARGS=daemon,--no-such-flag" + if out := autostartFailure(t, bad); !strings.Contains(out, "flag provided but not defined") { + t.Fatalf("oracle: the default excerpt should hold the daemon's complaint, got:\n%s", out) + } + out := autostartFailure(t, bad, "MCPX_AUTOSTART_LOG_TAIL=8") + if strings.Contains(out, "flag provided but not defined") { + t.Fatalf("with autostart.logTail=8 the excerpt should be cut to its last 8 bytes, got:\n%s", out) + } + if !strings.Contains(out, "ch-flag") { + t.Fatalf("the 8-byte excerpt should be the end of the complaint, got:\n%s", out) + } +} + +// TestDaemonWatchConfigPicksUpAHandEditFromTheEnvironment is the effect +// probe for daemon.watchConfig. A running daemon serving demo has its +// configuration rewritten by hand to alpha and beta. Watching (the +// default), the next ls lists the new servers without a refresh; with +// watching off, it still lists demo. +func TestDaemonWatchConfigPicksUpAHandEditFromTheEnvironment(t *testing.T) { + edited := func(extra ...string) string { + e := newEnv(t, oneServer) + e.setenv(append([]string{"MCPX_DAEMON_REAP_INTERVAL=100ms"}, extra...)...) + e.run("ls") + mustWrite(t, filepath.Join(e.dir, ".mcpx.json"), strings.ReplaceAll(twoVisibleServers, "FAKE", e.fake)) + time.Sleep(1200 * time.Millisecond) // past the edit's mtime second and a few reap ticks + return e.run("ls") + } + if out := edited(); !strings.Contains(out, "beta") { + t.Fatalf("oracle: watching, the hand edit should be picked up, got:\n%s", out) + } + if out := edited("MCPX_DAEMON_WATCH_CONFIG=false"); strings.Contains(out, "beta") || !strings.Contains(out, "demo") { + t.Fatalf("with daemon.watchConfig=false the hand edit should not be picked up, got:\n%s", out) + } +} + // TestDaemonAddressIsReachableFromTheEnvironment is the effect probe // for daemon.address (#8468 chain 1). The exemption it replaced said // a bind address is a network identity the harness cannot vary diff --git a/pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt b/pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt index bc7731f16c..e089d486df 100644 --- a/pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt +++ b/pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt @@ -20,7 +20,6 @@ cli supervise no integration-test exercise yet; burn-down #8461 (cli daemon grou cli upgrade no integration-test exercise yet; burn-down #8461 (cli daemon group) setting daemon.endpoint no integration-test exercise yet; burn-down #8468 (settings daemon family); needs an EffectProbes entry + e2e test setting daemon.idleExit no integration-test exercise yet; burn-down #8468 (settings daemon family); needs an EffectProbes entry + e2e test -setting daemon.inline no integration-test exercise yet; burn-down #8468 (settings daemon family); needs an EffectProbes entry + e2e test setting daemon.inlineStartPoll no integration-test exercise yet; burn-down #8468 (settings daemon family); needs an EffectProbes entry + e2e test setting daemon.leaseTTL no integration-test exercise yet; burn-down #8468 (settings daemon family); needs an EffectProbes entry + e2e test setting daemon.port no integration-test exercise yet; burn-down #8468 (settings daemon family); needs an EffectProbes entry + e2e test @@ -32,7 +31,6 @@ setting daemon.takeoverTimeout no integration-test exercise yet; burn-down #8468 setting daemon.tsnet.hostname no integration-test exercise yet; burn-down #8468 (settings daemon family); needs an EffectProbes entry + e2e test setting daemon.tsnetUpTimeout no integration-test exercise yet; burn-down #8468 (settings daemon family); needs an EffectProbes entry + e2e test setting daemon.warm no integration-test exercise yet; burn-down #8468 (settings daemon family); needs an EffectProbes entry + e2e test -setting daemon.watchConfig no integration-test exercise yet; burn-down #8468 (settings daemon family); needs an EffectProbes entry + e2e test setting http.idleConnTimeout no integration-test exercise yet; burn-down #8469 (settings http-transport family); needs an EffectProbes entry + e2e test setting http.idleConns no integration-test exercise yet; burn-down #8469 (settings http-transport family); needs an EffectProbes entry + e2e test setting http.remoteIdleConns no integration-test exercise yet; burn-down #8469 (settings http-transport family); needs an EffectProbes entry + e2e test @@ -98,10 +96,7 @@ setting artifacts.idleTtl no integration-test exercise yet; burn-down #8470 (set setting artifacts.maxAge no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test setting artifacts.ttl no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test setting autonomy.max no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test -setting autostart.args no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test -setting autostart.bin no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test setting autostart.idleExit no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test -setting autostart.logTail no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test setting autostart.pollInterval no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test setting deps.autoInstall no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test setting events.reconnect no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test diff --git a/pkgs/mcpx/internal/settings/effect.go b/pkgs/mcpx/internal/settings/effect.go index 88793d3c3f..52676351b9 100644 --- a/pkgs/mcpx/internal/settings/effect.go +++ b/pkgs/mcpx/internal/settings/effect.go @@ -101,6 +101,11 @@ var EffectProbes = map[string]string{ "protoTasks.maxPerRequestor": "TestProtoTasksMaxPerRequestorCapsUnfinishedTasksFromTheEnvironment", "protoTasks.perMinute": "TestProtoTasksPerMinuteWindowsTaskReadsFromTheEnvironment", "events.history": "TestEventsHistoryBoundsTheReplay", + "daemon.inline": "TestDaemonInlineAlwaysAnswersWithoutASocketFromTheEnvironment", + "autostart.bin": "TestAutostartBinChoosesTheDaemonExecutableFromTheEnvironment", + "autostart.args": "TestAutostartArgsReplaceTheDaemonCommandLineFromTheEnvironment", + "autostart.logTail": "TestAutostartLogTailBoundsTheFailureExcerptFromTheEnvironment", + "daemon.watchConfig": "TestDaemonWatchConfigPicksUpAHandEditFromTheEnvironment", "daemon.inlineStartTimeout": "TestDaemonInlineStartTimeoutBoundsTheInProcessStartFromTheEnvironment", "daemon.probeTimeout": "TestDaemonProbeTimeoutDecidesWhetherASiblingDaemonIsReportedFromTheEnvironment", "daemon.warmTimeout": "TestDaemonWarmTimeoutBoundsTheStartupWarm", @@ -210,7 +215,6 @@ var EffectExemptions = map[string]string{ "daemon.port": "daemon lifecycle, binding, or timing: its effect is a bound, an interval, or a network identity the isolated harness cannot vary deterministically", "daemon.endpoint": "daemon lifecycle, binding, or timing: its effect is a bound, an interval, or a network identity the isolated harness cannot vary deterministically", "daemon.tsnet.hostname": "daemon lifecycle, binding, or timing: its effect is a bound, an interval, or a network identity the isolated harness cannot vary deterministically", - "daemon.inline": "daemon lifecycle, binding, or timing: its effect is a bound, an interval, or a network identity the isolated harness cannot vary deterministically", "daemon.roots": "configured upstream roots only affect an upstream roots/list request; the e2e harness does not yet issue that server request, while daemon hook and mcpclient unit tests cover settings conversion and the response path", "output.color": "only the interactive browser (tui) renders colour; no non-interactive surface the harness drives can show a with/without difference", "proto.elicitationPerMinute": "daemon proto rate limit: its effect appears only when an upstream server exceeds the per-minute elicitation bound, a flood the e2e harness's fake server does not drive deterministically; the limiter itself is covered by internal/mcpclient and internal/daemon ratelimit tests", @@ -245,11 +249,8 @@ var EffectExemptions = map[string]string{ "http.idleConns": "HTTP server bound (body limits, timeouts, buffers): its effect needs oversized bodies, idle connections, or time passage a single run does not produce", "http.remoteIdleConns": "HTTP server bound (body limits, timeouts, buffers): its effect needs oversized bodies, idle connections, or time passage a single run does not produce", "http.idleConnTimeout": "HTTP server bound (body limits, timeouts, buffers): its effect needs oversized bodies, idle connections, or time passage a single run does not produce", - "autostart.bin": "client autostart mechanics: the harness itself depends on these to start daemons, so varying them per-test would fight the fixture", - "autostart.args": "client autostart mechanics: the harness itself depends on these to start daemons, so varying them per-test would fight the fixture", "autostart.idleExit": "the harness itself sets this (a 60s backstop) for every env; a with/without probe would have to wait out a daemon's idle exit", "autostart.pollInterval": "client autostart mechanics: the harness itself depends on these to start daemons, so varying them per-test would fight the fixture", - "autostart.logTail": "client autostart mechanics: the harness itself depends on these to start daemons, so varying them per-test would fight the fixture", "search.semantic": "semantic search needs an embeddings backend fixture the harness does not provide", "elicit.pendingLimit": "elicitation flow: its effect needs an interactive client answering (or not answering) inside that window; ask fixtures cover the flow, not this bound", "logstore.followBacklog": "log store surface: its effect needs stored log volume beyond what one harness run writes", @@ -262,7 +263,6 @@ var EffectExemptions = map[string]string{ "embeddings.model": "embeddings backend: needs a live embeddings service or a wasm model fixture the harness does not provide", "embeddings.wasmPath": "embeddings backend: needs a live embeddings service or a wasm model fixture the harness does not provide", "daemon.warm": "daemon lifecycle, binding, or timing: its effect is a bound, an interval, or a network identity the isolated harness cannot vary deterministically", - "daemon.watchConfig": "daemon lifecycle, binding, or timing: its effect is a bound, an interval, or a network identity the isolated harness cannot vary deterministically", "daemon.leaseTTL": "daemon lifecycle, binding, or timing: its effect is a bound, an interval, or a network identity the isolated harness cannot vary deterministically", "daemon.socketProbeTimeout": "daemon lifecycle, binding, or timing: its effect is a bound, an interval, or a network identity the isolated harness cannot vary deterministically", "daemon.takeoverTimeout": "daemon lifecycle, binding, or timing: its effect is a bound, an interval, or a network identity the isolated harness cannot vary deterministically", @@ -290,7 +290,7 @@ var EffectExemptions = map[string]string{ // EffectExemptionPin is the ratchet: the exemption count at the time // the guard landed. It may only ever be lowered, and only in the PR // that removes an exemption by adding the probe that replaces it. -const EffectExemptionPin = 97 // Shrunk 2026-11-18 (#8473 chain 41): daemon.inlineStartTimeout and daemon.probeTimeout gained probes. Earlier shrunk 2026-11-18 (#8473 chain 40): daemon.warmTimeout, autostart.connectTimeout and autostart.pingTimeout gained probes. Earlier shrunk 2026-11-18 (#8473 chain 39): pool.callTimeout, pool.startTimeout and daemon.refreshTimeout gained probes. Earlier shrunk 2026-11-18 (#8473 chain 38): doctor.timeout and registry.timeout gained probes that set a bound no request can meet. Earlier shrunk 2026-11-18 (#8473 chain 37): completion.maxValues gained a probe once the fake server could answer completions. Earlier shrunk 2026-11-18 (#8473 chain 36): catalog.instructions gained a probe once the fake server could serve instructions. Earlier shrunk 2026-11-18 (#8473 chain 35): the five plumbing source and launcher switches gained probes. Earlier shrunk 2026-11-18 (#8473 chain 34): artifacts.chunkBytes, script.launcher and paths.placeholders gained probes. Earlier shrunk 2026-11-18 (#8473 chain 33): artifacts.interceptImages and plumbing.indexOnQuery gained probes. Earlier shrunk 2026-11-18 (#8473 chain 32): plumbing.validatePaths and script.language gained probes. Earlier shrunk 2026-11-18 (#8473 chain 31): logging.trace and exec.where gained probes. Earlier shrunk 2026-11-18 (#8473 chain 30): paths.adapters and paths.apis gained declaration-file probes. Earlier shrunk 2026-11-18 (#8473 chain 29): script.runtime, runtimeOrder, permissions, profiles and runtimes gained node-backed probes. Earlier shrunk 2026-11-18 (#8473 chain 28): script.before, onSuccess, onError and suffix gained a run-phase probe. Earlier shrunk 2026-11-18 (#8473 chain 27): hooks, hooks.timeout, daemon.ui and daemon.uiDir gained probes. Earlier shrunk 2026-11-18 (#8473 chain 26): logging.level, format, source, dir, include, maxLines, maxBytes and keep gained durable-log probes. Earlier shrunk 2026-11-18 (#8473 chain 25): artifacts.enabled, maxBytes, quota, delivery, inlineMaxBytes and dir gained script-artifact probes. Earlier shrunk 2026-11-18 (#8473 chain 24): preset and serve.mode gained probes. Earlier shrunk 2026-11-18 (#8473 chain 23): presets gained a --preset probe. Earlier shrunk 2026-11-18 (#8473 chain 22): catalog.budget and catalog.bias gained `mcpx catalog` probes. Earlier shrunk 2026-11-18 (#8473 chain 21): catalog.pinnedTools and retention.maxTools gained reactive-session probes. Earlier shrunk 2026-11-18 (#8473 chain 20): diagnose.history and diagnose.preflight gained schema-churn probes. Earlier shrunk 2026-11-18 (#8473 chain 19): events.history gained a trimmed-replay probe. Earlier shrunk 2026-11-18 (#8473 chain 18): protoTasks.maxTTL, maxPerRequestor and perMinute gained task-store probes. Earlier shrunk 2026-11-18 (#8473 chain 17): tasks.ttl and tasks.resultWait gained /v1 task probes. Earlier shrunk 2026-11-18 (#8473 chain 16): recipes.minScore, matchMargin and limit gained recipe probes. Earlier shrunk 2026-11-18 (#8473 chain 15): logstore.queryLimit gained a /v1/log probe. Earlier shrunk 2026-11-18 (#8473 chain 14): completion.perMinute and completion.serverPerMinute gained 429 probes. Earlier shrunk 2026-11-18 (#8473 chain 13): mcp.pageSize and mcp.passthrough gained tools/list probes. Earlier shrunk 2026-11-18 (#8473 chain 12): exec.timeout (now read by local runs), exec.maxOutputBytes and exec.output gained probes. Earlier shrunk 2026-11-18 (#8473 chain 11): spec.first and spec.lenient mapped to their existing revision-policy probes, spec.precedence gained one. Earlier shrunk 2026-11-18 (#8473 chain 10): protoMessages.taskAfter and protoTasks.pollInterval gained task probes. Earlier shrunk 2026-11-18 (#8473 chain 9): protoMessages.listMaxAge and readMaxAge gained cache-hint probes. Earlier shrunk 2026-11-18 (#8473 chain 8): proto.native gained an asked-client probe. Earlier shrunk 2026-11-18 (#8473 chain 7): proto.mcpPath and proto.serveMCP gained mount probes. Earlier shrunk 2026-11-18 (#8473 chain 6): proto.sessionIdle gained a reaped-session probe. Earlier shrunk 2026-11-18 (#8473 chain 5): proto.stateTTL gained a late-resume probe. Earlier shrunk 2026-11-18 (#8473 chain 4): proto.askTimeout gained a held-request probe. Earlier shrunk 2026-11-18 (#8473 chain 3): proto.askTTL gained a /v1/ask deadline probe. Earlier shrunk 2026-11-18 (#8473 chain 2): proto.askRounds gained a two-round MCP e2e probe. Earlier shrunk 2026-11-18 (#8468 chain 2): daemon.autostart gained its probe. Earlier shrunk 2026-11-17: (#8467 settings core-paths burn-down) paths.plugins gained its probe. Earlier shrunk 2026-11-17: (#8469) 14 http.* and transport.* settings gained their probes. Earlier shrunk 2026-11-17: (#8470 burn-down) stats.top gained its probe. Earlier shrunk 2026-11-17 (#8467 settings core-paths burn-down): paths.cache gained its probe. Earlier shrunk 2026-11-17 (#8467 settings core-paths burn-down): paths.scripts gained its probe. Earlier shrunk 2026-11-17 (#8468 chain 1): daemon.address gained its probe. Earlier shrunk 2026-11-17 (#8473 chain 1): proto.askPoll gained its probe. Deliberate +1 (2026-11-14, #1917 remainder shepherd of PR #7818) for script.language: covered by deterministic internal/runner tests (TestEffectiveScriptLanguage, TestExplicitPythonLanguageRunsInlineSnippet); the e2e harness script fixtures are TypeScript-only. Earlier deliberate +3 (2026-11-09, #2716) for proto.elicitationPerMinute, proto.samplingPerMinute and proto.samplingSessionPerMinute: daemon rate limits whose effect needs an over-limit sampling/elicitation flood no e2e fixture drives deterministically; the limiter is covered by internal/mcpclient and internal/daemon ratelimit tests. Earlier deliberate raises: +1 for daemon.roots and +8 for model.*: model settings are covered by internal/model and daemon unit tests; settings-driven e2e probes are not yet present. Deliberate +1 (2026-11-03, #1925 slice 3) for sampling.answerLocally: same model-layer coverage, daemon unit tests in internal/daemon/sampling_local_test.go. Deliberate +1 (2026-11-03, #5242) for plugin.disabledTools: read by the opencode plugin host (JS side); the Go e2e harness does not drive the plugin host, the same basis as every other plugin.* exemption. Deliberate +5 (2026-11-04, #1915 stage 2): import graph, missing, dynamic, cross-project and network policies are covered by deterministic internal/preflight tests, but the e2e harness has no isolated Deno graph fixture yet. Deliberate +2 (2026-11-05, #1911): checker error and unsupported-runtime policies are covered by deterministic internal/preflight stub-runtime tests; the e2e harness has no isolated Deno checker fixture. +const EffectExemptionPin = 92 // Shrunk 2026-11-18 (#8473 chain 42): daemon.inline, autostart.bin, autostart.args, autostart.logTail and daemon.watchConfig gained probes. Earlier shrunk 2026-11-18 (#8473 chain 41): daemon.inlineStartTimeout and daemon.probeTimeout gained probes. Earlier shrunk 2026-11-18 (#8473 chain 40): daemon.warmTimeout, autostart.connectTimeout and autostart.pingTimeout gained probes. Earlier shrunk 2026-11-18 (#8473 chain 39): pool.callTimeout, pool.startTimeout and daemon.refreshTimeout gained probes. Earlier shrunk 2026-11-18 (#8473 chain 38): doctor.timeout and registry.timeout gained probes that set a bound no request can meet. Earlier shrunk 2026-11-18 (#8473 chain 37): completion.maxValues gained a probe once the fake server could answer completions. Earlier shrunk 2026-11-18 (#8473 chain 36): catalog.instructions gained a probe once the fake server could serve instructions. Earlier shrunk 2026-11-18 (#8473 chain 35): the five plumbing source and launcher switches gained probes. Earlier shrunk 2026-11-18 (#8473 chain 34): artifacts.chunkBytes, script.launcher and paths.placeholders gained probes. Earlier shrunk 2026-11-18 (#8473 chain 33): artifacts.interceptImages and plumbing.indexOnQuery gained probes. Earlier shrunk 2026-11-18 (#8473 chain 32): plumbing.validatePaths and script.language gained probes. Earlier shrunk 2026-11-18 (#8473 chain 31): logging.trace and exec.where gained probes. Earlier shrunk 2026-11-18 (#8473 chain 30): paths.adapters and paths.apis gained declaration-file probes. Earlier shrunk 2026-11-18 (#8473 chain 29): script.runtime, runtimeOrder, permissions, profiles and runtimes gained node-backed probes. Earlier shrunk 2026-11-18 (#8473 chain 28): script.before, onSuccess, onError and suffix gained a run-phase probe. Earlier shrunk 2026-11-18 (#8473 chain 27): hooks, hooks.timeout, daemon.ui and daemon.uiDir gained probes. Earlier shrunk 2026-11-18 (#8473 chain 26): logging.level, format, source, dir, include, maxLines, maxBytes and keep gained durable-log probes. Earlier shrunk 2026-11-18 (#8473 chain 25): artifacts.enabled, maxBytes, quota, delivery, inlineMaxBytes and dir gained script-artifact probes. Earlier shrunk 2026-11-18 (#8473 chain 24): preset and serve.mode gained probes. Earlier shrunk 2026-11-18 (#8473 chain 23): presets gained a --preset probe. Earlier shrunk 2026-11-18 (#8473 chain 22): catalog.budget and catalog.bias gained `mcpx catalog` probes. Earlier shrunk 2026-11-18 (#8473 chain 21): catalog.pinnedTools and retention.maxTools gained reactive-session probes. Earlier shrunk 2026-11-18 (#8473 chain 20): diagnose.history and diagnose.preflight gained schema-churn probes. Earlier shrunk 2026-11-18 (#8473 chain 19): events.history gained a trimmed-replay probe. Earlier shrunk 2026-11-18 (#8473 chain 18): protoTasks.maxTTL, maxPerRequestor and perMinute gained task-store probes. Earlier shrunk 2026-11-18 (#8473 chain 17): tasks.ttl and tasks.resultWait gained /v1 task probes. Earlier shrunk 2026-11-18 (#8473 chain 16): recipes.minScore, matchMargin and limit gained recipe probes. Earlier shrunk 2026-11-18 (#8473 chain 15): logstore.queryLimit gained a /v1/log probe. Earlier shrunk 2026-11-18 (#8473 chain 14): completion.perMinute and completion.serverPerMinute gained 429 probes. Earlier shrunk 2026-11-18 (#8473 chain 13): mcp.pageSize and mcp.passthrough gained tools/list probes. Earlier shrunk 2026-11-18 (#8473 chain 12): exec.timeout (now read by local runs), exec.maxOutputBytes and exec.output gained probes. Earlier shrunk 2026-11-18 (#8473 chain 11): spec.first and spec.lenient mapped to their existing revision-policy probes, spec.precedence gained one. Earlier shrunk 2026-11-18 (#8473 chain 10): protoMessages.taskAfter and protoTasks.pollInterval gained task probes. Earlier shrunk 2026-11-18 (#8473 chain 9): protoMessages.listMaxAge and readMaxAge gained cache-hint probes. Earlier shrunk 2026-11-18 (#8473 chain 8): proto.native gained an asked-client probe. Earlier shrunk 2026-11-18 (#8473 chain 7): proto.mcpPath and proto.serveMCP gained mount probes. Earlier shrunk 2026-11-18 (#8473 chain 6): proto.sessionIdle gained a reaped-session probe. Earlier shrunk 2026-11-18 (#8473 chain 5): proto.stateTTL gained a late-resume probe. Earlier shrunk 2026-11-18 (#8473 chain 4): proto.askTimeout gained a held-request probe. Earlier shrunk 2026-11-18 (#8473 chain 3): proto.askTTL gained a /v1/ask deadline probe. Earlier shrunk 2026-11-18 (#8473 chain 2): proto.askRounds gained a two-round MCP e2e probe. Earlier shrunk 2026-11-18 (#8468 chain 2): daemon.autostart gained its probe. Earlier shrunk 2026-11-17: (#8467 settings core-paths burn-down) paths.plugins gained its probe. Earlier shrunk 2026-11-17: (#8469) 14 http.* and transport.* settings gained their probes. Earlier shrunk 2026-11-17: (#8470 burn-down) stats.top gained its probe. Earlier shrunk 2026-11-17 (#8467 settings core-paths burn-down): paths.cache gained its probe. Earlier shrunk 2026-11-17 (#8467 settings core-paths burn-down): paths.scripts gained its probe. Earlier shrunk 2026-11-17 (#8468 chain 1): daemon.address gained its probe. Earlier shrunk 2026-11-17 (#8473 chain 1): proto.askPoll gained its probe. Deliberate +1 (2026-11-14, #1917 remainder shepherd of PR #7818) for script.language: covered by deterministic internal/runner tests (TestEffectiveScriptLanguage, TestExplicitPythonLanguageRunsInlineSnippet); the e2e harness script fixtures are TypeScript-only. Earlier deliberate +3 (2026-11-09, #2716) for proto.elicitationPerMinute, proto.samplingPerMinute and proto.samplingSessionPerMinute: daemon rate limits whose effect needs an over-limit sampling/elicitation flood no e2e fixture drives deterministically; the limiter is covered by internal/mcpclient and internal/daemon ratelimit tests. Earlier deliberate raises: +1 for daemon.roots and +8 for model.*: model settings are covered by internal/model and daemon unit tests; settings-driven e2e probes are not yet present. Deliberate +1 (2026-11-03, #1925 slice 3) for sampling.answerLocally: same model-layer coverage, daemon unit tests in internal/daemon/sampling_local_test.go. Deliberate +1 (2026-11-03, #5242) for plugin.disabledTools: read by the opencode plugin host (JS side); the Go e2e harness does not drive the plugin host, the same basis as every other plugin.* exemption. Deliberate +5 (2026-11-04, #1915 stage 2): import graph, missing, dynamic, cross-project and network policies are covered by deterministic internal/preflight tests, but the e2e harness has no isolated Deno graph fixture yet. Deliberate +2 (2026-11-05, #1911): checker error and unsupported-runtime policies are covered by deterministic internal/preflight stub-runtime tests; the e2e harness has no isolated Deno checker fixture. // CheckEffectCoverage returns one violation per way the probe and // exemption maps fail to cover reg exactly: a setting with neither,