From 0882803b3888507289497ce0e4408e96c6d366f7 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 18:15:29 +0000 Subject: [PATCH] test(mcpx): probe eight logging.* settings A daemon logs to a fresh directory and `mcpx run` runs a script that logs at debug and info. level, format and source change what stderr shows; dir, include, maxLines, maxBytes and keep change the durable JSONL log. Pin 146 -> 138. Refs #8473 Co-Authored-By: Claude Opus 5.5 --- pkgs/mcpx/internal/e2e/effect_test.go | 159 ++++++++++++++++++ .../e2e/feature_coverage_exemptions.txt | 8 - pkgs/mcpx/internal/settings/effect.go | 18 +- 3 files changed, 168 insertions(+), 17 deletions(-) diff --git a/pkgs/mcpx/internal/e2e/effect_test.go b/pkgs/mcpx/internal/e2e/effect_test.go index 8141ad2e69..1c8334d670 100644 --- a/pkgs/mcpx/internal/e2e/effect_test.go +++ b/pkgs/mcpx/internal/e2e/effect_test.go @@ -100,6 +100,14 @@ var implementedEffectProbes = map[string]string{ "protoTasks.maxPerRequestor": "TestProtoTasksMaxPerRequestorCapsUnfinishedTasksFromTheEnvironment", "protoTasks.perMinute": "TestProtoTasksPerMinuteWindowsTaskReadsFromTheEnvironment", "events.history": "TestEventsHistoryBoundsTheReplay", + "logging.level": "TestLoggingLevelShowsDebugRecords", + "logging.format": "TestLoggingFormatRendersJSON", + "logging.source": "TestLoggingSourceAddsTheCallSite", + "logging.dir": "TestLoggingDirHoldsTheDurableLog", + "logging.include": "TestLoggingIncludeChoosesTheAmbientBlocks", + "logging.maxLines": "TestLoggingMaxLinesRotatesTheFile", + "logging.maxBytes": "TestLoggingMaxBytesRotatesTheFile", + "logging.keep": "TestLoggingKeepPrunesRotatedFiles", "artifacts.enabled": "TestArtifactsEnabledGatesTheStore", "artifacts.maxBytes": "TestArtifactsMaxBytesRefusesALargeArtifact", "artifacts.quota": "TestArtifactsQuotaBoundsTheStore", @@ -201,6 +209,14 @@ var effectProbeFuncs = map[string]func(*testing.T){ "TestProtoTasksMaxPerRequestorCapsUnfinishedTasksFromTheEnvironment": TestProtoTasksMaxPerRequestorCapsUnfinishedTasksFromTheEnvironment, "TestProtoTasksPerMinuteWindowsTaskReadsFromTheEnvironment": TestProtoTasksPerMinuteWindowsTaskReadsFromTheEnvironment, "TestEventsHistoryBoundsTheReplay": TestEventsHistoryBoundsTheReplay, + "TestLoggingLevelShowsDebugRecords": TestLoggingLevelShowsDebugRecords, + "TestLoggingFormatRendersJSON": TestLoggingFormatRendersJSON, + "TestLoggingSourceAddsTheCallSite": TestLoggingSourceAddsTheCallSite, + "TestLoggingDirHoldsTheDurableLog": TestLoggingDirHoldsTheDurableLog, + "TestLoggingIncludeChoosesTheAmbientBlocks": TestLoggingIncludeChoosesTheAmbientBlocks, + "TestLoggingMaxLinesRotatesTheFile": TestLoggingMaxLinesRotatesTheFile, + "TestLoggingMaxBytesRotatesTheFile": TestLoggingMaxBytesRotatesTheFile, + "TestLoggingKeepPrunesRotatedFiles": TestLoggingKeepPrunesRotatedFiles, "TestArtifactsEnabledGatesTheStore": TestArtifactsEnabledGatesTheStore, "TestArtifactsMaxBytesRefusesALargeArtifact": TestArtifactsMaxBytesRefusesALargeArtifact, "TestArtifactsQuotaBoundsTheStore": TestArtifactsQuotaBoundsTheStore, @@ -1799,6 +1815,149 @@ func TestArtifactsDirReceivesTheRunsArtifacts(t *testing.T) { } } +// loggedRun starts a daemon with env and its durable log in a fresh +// directory, then `mcpx run`s a script that logs at debug and at info. It +// returns the run's stderr, the log directory, and the daemon.start record. +func loggedRun(t *testing.T, env ...string) (stderr, dir, start string) { + t.Helper() + e := newEnv(t, oneServer) + dir = filepath.Join(t.TempDir(), "logs") + e.setenv(append([]string{"MCPX_LOGGING_DIR=" + dir}, env...)...) + e.run("ls") + script := filepath.Join(e.dir, "logged.ts") + mustWrite(t, script, `log.debug("debug-line"); log.info("info-a"); log.info("info-b"); log.info("info-c");`) + _, stderr, err := e.split("run", script) + if err != nil { + t.Fatalf("run: %v\n%s", err, stderr) + } + for _, f := range logFiles(t, dir) { + b, _ := os.ReadFile(filepath.Join(dir, f)) + for _, line := range strings.Split(string(b), "\n") { + if strings.Contains(line, `"event":"daemon.start"`) { + start = line + } + } + } + return stderr, dir, start +} + +// logFiles lists the JSONL files in a log directory. +func logFiles(t *testing.T, dir string) []string { + t.Helper() + ents, _ := os.ReadDir(dir) + var out []string + for _, ent := range ents { + if strings.HasSuffix(ent.Name(), ".jsonl") { + out = append(out, ent.Name()) + } + } + return out +} + +// TestLoggingLevelShowsDebugRecords is the effect probe for logging.level: +// a script's debug record is hidden at the default level and shown at debug. +func TestLoggingLevelShowsDebugRecords(t *testing.T) { + if se, _, _ := loggedRun(t); strings.Contains(se, "debug-line") || !strings.Contains(se, "info-a") { + t.Errorf("the default logging.level should show info and hide debug:\n%s", se) + } + if se, _, _ := loggedRun(t, "MCPX_LOGGING_LEVEL=debug"); !strings.Contains(se, "debug-line") { + t.Errorf("logging.level=debug should show the debug record:\n%s", se) + } +} + +// TestLoggingFormatRendersJSON is the effect probe for logging.format: the +// default renders a script's record as text, and json renders it as JSON. +func TestLoggingFormatRendersJSON(t *testing.T) { + const asJSON = `"msg":"info-a"` + if se, _, _ := loggedRun(t); strings.Contains(se, asJSON) || !strings.Contains(se, "info-a") { + t.Errorf("the default logging.format should render text:\n%s", se) + } + if se, _, _ := loggedRun(t, "MCPX_LOGGING_FORMAT=json"); !strings.Contains(se, asJSON) { + t.Errorf("logging.format=json should render the record as JSON:\n%s", se) + } +} + +// TestLoggingSourceAddsTheCallSite is the effect probe for logging.source: +// a script's record carries no source location at the default, and does +// at logging.source=debug. +func TestLoggingSourceAddsTheCallSite(t *testing.T) { + if se, _, _ := loggedRun(t); strings.Contains(se, "source.file=") { + t.Errorf("the default logging.source should add no call site:\n%s", se) + } + if se, _, _ := loggedRun(t, "MCPX_LOGGING_SOURCE=debug"); !strings.Contains(se, "source.file=") { + t.Errorf("logging.source=debug should add the call site:\n%s", se) + } +} + +// TestLoggingDirHoldsTheDurableLog is the effect probe for logging.dir: the +// durable log lands in the directory the environment names, and nowhere +// in it before then. +func TestLoggingDirHoldsTheDurableLog(t *testing.T) { + dir := filepath.Join(t.TempDir(), "logs") + e := newEnv(t, oneServer) + e.run("ls") + if got := logFiles(t, dir); len(got) != 0 { + t.Fatalf("with no logging.dir, nothing should be logged to %s: %v", dir, got) + } + e2 := newEnv(t, oneServer) + e2.setenv("MCPX_LOGGING_DIR=" + dir) + e2.run("ls") + if got := logFiles(t, dir); len(got) == 0 { + t.Errorf("logging.dir should hold the daemon's durable log") + } +} + +// TestLoggingIncludeChoosesTheAmbientBlocks is the effect probe for +// logging.include: daemon.start carries host but not network facts at the +// default, none at "none", and network ones too at "all". +func TestLoggingIncludeChoosesTheAmbientBlocks(t *testing.T) { + if _, _, start := loggedRun(t); !strings.Contains(start, `"host.name"`) || strings.Contains(start, `"net.`) { + t.Errorf("the default logging.include should carry host and not network facts:\n%s", start) + } + if _, _, start := loggedRun(t, "MCPX_LOGGING_INCLUDE=none"); start == "" || strings.Contains(start, `"host.name"`) { + t.Errorf("logging.include=none should drop the host block:\n%s", start) + } + if _, _, start := loggedRun(t, "MCPX_LOGGING_INCLUDE=all"); !strings.Contains(start, `"net.`) { + t.Errorf("logging.include=all should add the network block:\n%s", start) + } +} + +// TestLoggingMaxLinesRotatesTheFile is the effect probe for +// logging.maxLines: the default keeps one file, and one line per file +// rotates into several. +func TestLoggingMaxLinesRotatesTheFile(t *testing.T) { + if _, dir, _ := loggedRun(t); len(logFiles(t, dir)) != 1 { + t.Errorf("the default logging.maxLines should keep one file: %v", logFiles(t, dir)) + } + if _, dir, _ := loggedRun(t, "MCPX_LOGGING_MAX_LINES=1"); len(logFiles(t, dir)) < 3 { + t.Errorf("logging.maxLines=1 should rotate into several files: %v", logFiles(t, dir)) + } +} + +// TestLoggingMaxBytesRotatesTheFile is the effect probe for +// logging.maxBytes: the default keeps one file, and a 10-byte bound +// rotates into several. +func TestLoggingMaxBytesRotatesTheFile(t *testing.T) { + if _, dir, _ := loggedRun(t); len(logFiles(t, dir)) != 1 { + t.Errorf("the default logging.maxBytes should keep one file: %v", logFiles(t, dir)) + } + if _, dir, _ := loggedRun(t, "MCPX_LOGGING_MAX_BYTES=10"); len(logFiles(t, dir)) < 3 { + t.Errorf("logging.maxBytes=10 should rotate into several files: %v", logFiles(t, dir)) + } +} + +// TestLoggingKeepPrunesRotatedFiles is the effect probe for logging.keep: +// rotating every line keeps many rotated files at the default, and at most +// one besides the live file at keep=1. +func TestLoggingKeepPrunesRotatedFiles(t *testing.T) { + if _, dir, _ := loggedRun(t, "MCPX_LOGGING_MAX_LINES=1"); len(logFiles(t, dir)) < 3 { + t.Errorf("the default logging.keep should keep several rotated files: %v", logFiles(t, dir)) + } + if _, dir, _ := loggedRun(t, "MCPX_LOGGING_MAX_LINES=1", "MCPX_LOGGING_KEEP=1"); len(logFiles(t, dir)) > 2 { + t.Errorf("logging.keep=1 should prune to one rotated file: %v", logFiles(t, dir)) + } +} + // 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 0bf25d81dc..cca1018e6b 100644 --- a/pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt +++ b/pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt @@ -78,15 +78,7 @@ setting plugin.instructions no integration-test exercise yet; burn-down #8472 (s setting plugin.remember no integration-test exercise yet; burn-down #8472 (settings plugin family); needs an EffectProbes entry + e2e test setting plugin.toolTiming no integration-test exercise yet; burn-down #8472 (settings plugin family); needs an EffectProbes entry + e2e test setting plugin.tools no integration-test exercise yet; burn-down #8472 (settings plugin family); needs an EffectProbes entry + e2e test -setting logging.dir no integration-test exercise yet; burn-down #8467 (settings core-paths family); needs an EffectProbes entry + e2e test -setting logging.format no integration-test exercise yet; burn-down #8467 (settings core-paths family); needs an EffectProbes entry + e2e test -setting logging.include no integration-test exercise yet; burn-down #8467 (settings core-paths family); needs an EffectProbes entry + e2e test -setting logging.keep no integration-test exercise yet; burn-down #8467 (settings core-paths family); needs an EffectProbes entry + e2e test -setting logging.level no integration-test exercise yet; burn-down #8467 (settings core-paths family); needs an EffectProbes entry + e2e test setting logging.maxAge no integration-test exercise yet; burn-down #8467 (settings core-paths family); needs an EffectProbes entry + e2e test -setting logging.maxBytes no integration-test exercise yet; burn-down #8467 (settings core-paths family); needs an EffectProbes entry + e2e test -setting logging.maxLines no integration-test exercise yet; burn-down #8467 (settings core-paths family); needs an EffectProbes entry + e2e test -setting logging.source no integration-test exercise yet; burn-down #8467 (settings core-paths family); needs an EffectProbes entry + e2e test setting logging.trace no integration-test exercise yet; burn-down #8467 (settings core-paths family); needs an EffectProbes entry + e2e test setting logstore.followBacklog no integration-test exercise yet; burn-down #8467 (settings core-paths family); needs an EffectProbes entry + e2e test setting output.color no integration-test exercise yet; burn-down #8467 (settings core-paths family); needs an EffectProbes entry + e2e test diff --git a/pkgs/mcpx/internal/settings/effect.go b/pkgs/mcpx/internal/settings/effect.go index f70450fae4..0f2550d784 100644 --- a/pkgs/mcpx/internal/settings/effect.go +++ b/pkgs/mcpx/internal/settings/effect.go @@ -101,6 +101,14 @@ var EffectProbes = map[string]string{ "protoTasks.maxPerRequestor": "TestProtoTasksMaxPerRequestorCapsUnfinishedTasksFromTheEnvironment", "protoTasks.perMinute": "TestProtoTasksPerMinuteWindowsTaskReadsFromTheEnvironment", "events.history": "TestEventsHistoryBoundsTheReplay", + "logging.level": "TestLoggingLevelShowsDebugRecords", + "logging.format": "TestLoggingFormatRendersJSON", + "logging.source": "TestLoggingSourceAddsTheCallSite", + "logging.dir": "TestLoggingDirHoldsTheDurableLog", + "logging.include": "TestLoggingIncludeChoosesTheAmbientBlocks", + "logging.maxLines": "TestLoggingMaxLinesRotatesTheFile", + "logging.maxBytes": "TestLoggingMaxBytesRotatesTheFile", + "logging.keep": "TestLoggingKeepPrunesRotatedFiles", "artifacts.enabled": "TestArtifactsEnabledGatesTheStore", "artifacts.maxBytes": "TestArtifactsMaxBytesRefusesALargeArtifact", "artifacts.quota": "TestArtifactsQuotaBoundsTheStore", @@ -143,15 +151,7 @@ var EffectExemptions = map[string]string{ "pool.idleTimeout": "daemon pool timing bound: its effect is when the daemon gives up or reaps, observable only with a stalled upstream and a timing assertion the harness does not make deterministically", "pool.callTimeout": "daemon pool timing bound: its effect is when the daemon gives up or reaps, observable only with a stalled upstream and a timing assertion the harness does not make deterministically", "pool.startTimeout": "daemon pool timing bound: its effect is when the daemon gives up or reaps, observable only with a stalled upstream and a timing assertion the harness does not make deterministically", - "logging.format": "log pipeline bound or rendering choice: its effect appears only across log volume, rotation, or time, none of which a single harness run produces deterministically", - "logging.level": "log pipeline bound or rendering choice: its effect appears only across log volume, rotation, or time, none of which a single harness run produces deterministically", - "logging.source": "log pipeline bound or rendering choice: its effect appears only across log volume, rotation, or time, none of which a single harness run produces deterministically", - "logging.dir": "log pipeline bound or rendering choice: its effect appears only across log volume, rotation, or time, none of which a single harness run produces deterministically", - "logging.include": "log pipeline bound or rendering choice: its effect appears only across log volume, rotation, or time, none of which a single harness run produces deterministically", - "logging.maxBytes": "log pipeline bound or rendering choice: its effect appears only across log volume, rotation, or time, none of which a single harness run produces deterministically", - "logging.maxLines": "log pipeline bound or rendering choice: its effect appears only across log volume, rotation, or time, none of which a single harness run produces deterministically", "logging.maxAge": "log pipeline bound or rendering choice: its effect appears only across log volume, rotation, or time, none of which a single harness run produces deterministically", - "logging.keep": "log pipeline bound or rendering choice: its effect appears only across log volume, rotation, or time, none of which a single harness run produces deterministically", "script.runtime": "script launcher pipeline: its effect needs a runtime, profile, or launcher fixture exercising that exact stage, which the harness script fixtures do not yet provide", "script.imports": "static import resolution is covered by deterministic internal/preflight graph tests; the e2e harness has no Deno graph fixture yet", "script.importsOnMissing": "missing-package policies are covered by deterministic internal/preflight resolver tests; the e2e harness has no Deno graph fixture yet", @@ -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 = 146 // 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 = 138 // 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,