diff --git a/pkgs/mcpx/internal/e2e/effect_test.go b/pkgs/mcpx/internal/e2e/effect_test.go index 756d11a0b8..8141ad2e69 100644 --- a/pkgs/mcpx/internal/e2e/effect_test.go +++ b/pkgs/mcpx/internal/e2e/effect_test.go @@ -100,6 +100,12 @@ var implementedEffectProbes = map[string]string{ "protoTasks.maxPerRequestor": "TestProtoTasksMaxPerRequestorCapsUnfinishedTasksFromTheEnvironment", "protoTasks.perMinute": "TestProtoTasksPerMinuteWindowsTaskReadsFromTheEnvironment", "events.history": "TestEventsHistoryBoundsTheReplay", + "artifacts.enabled": "TestArtifactsEnabledGatesTheStore", + "artifacts.maxBytes": "TestArtifactsMaxBytesRefusesALargeArtifact", + "artifacts.quota": "TestArtifactsQuotaBoundsTheStore", + "artifacts.delivery": "TestArtifactsDeliveryInlinesTheBody", + "artifacts.inlineMaxBytes": "TestArtifactsInlineMaxBytesBoundsAnInlinedBody", + "artifacts.dir": "TestArtifactsDirReceivesTheRunsArtifacts", "preset": "TestPresetSelectsADefinedBundle", "serve.mode": "TestServeModeSelectsTheServedSurface", "presets": "TestPresetsDefinesNamedFlagBundles", @@ -195,6 +201,12 @@ var effectProbeFuncs = map[string]func(*testing.T){ "TestProtoTasksMaxPerRequestorCapsUnfinishedTasksFromTheEnvironment": TestProtoTasksMaxPerRequestorCapsUnfinishedTasksFromTheEnvironment, "TestProtoTasksPerMinuteWindowsTaskReadsFromTheEnvironment": TestProtoTasksPerMinuteWindowsTaskReadsFromTheEnvironment, "TestEventsHistoryBoundsTheReplay": TestEventsHistoryBoundsTheReplay, + "TestArtifactsEnabledGatesTheStore": TestArtifactsEnabledGatesTheStore, + "TestArtifactsMaxBytesRefusesALargeArtifact": TestArtifactsMaxBytesRefusesALargeArtifact, + "TestArtifactsQuotaBoundsTheStore": TestArtifactsQuotaBoundsTheStore, + "TestArtifactsDeliveryInlinesTheBody": TestArtifactsDeliveryInlinesTheBody, + "TestArtifactsInlineMaxBytesBoundsAnInlinedBody": TestArtifactsInlineMaxBytesBoundsAnInlinedBody, + "TestArtifactsDirReceivesTheRunsArtifacts": TestArtifactsDirReceivesTheRunsArtifacts, "TestPresetSelectsADefinedBundle": TestPresetSelectsADefinedBundle, "TestServeModeSelectsTheServedSurface": TestServeModeSelectsTheServedSurface, "TestPresetsDefinesNamedFlagBundles": TestPresetsDefinesNamedFlagBundles, @@ -1696,6 +1708,97 @@ func TestServeModeSelectsTheServedSurface(t *testing.T) { } } +// artifactScript stores one four-byte artifact and prints "done". +const artifactScript = `await artifact("n.txt", new Uint8Array([104, 105, 104, 105])); +console.log("done");` + +// runArtifactScript runs artifactScript with --json in a fresh env carrying +// env, and returns what it printed and whether it failed. +func runArtifactScript(t *testing.T, env ...string) (string, error) { + t.Helper() + e := newEnv(t, oneServer) + e.setenv(env...) + return e.try("exec", "--json", artifactScript) +} + +// TestArtifactsEnabledGatesTheStore is the effect probe for +// artifacts.enabled: a script's artifact is stored at the default and +// refused once the environment disables the store. +func TestArtifactsEnabledGatesTheStore(t *testing.T) { + if out, err := runArtifactScript(t); err != nil || !strings.Contains(out, `"name": "n.txt"`) { + t.Errorf("artifacts are on by default (err %v):\n%s", err, out) + } + if out, err := runArtifactScript(t, "MCPX_ARTIFACTS_ENABLED=false"); err == nil || !strings.Contains(out, "artifacts are disabled") { + t.Errorf("artifacts.enabled=false should refuse the artifact (err %v):\n%s", err, out) + } +} + +// TestArtifactsMaxBytesRefusesALargeArtifact is the effect probe for +// artifacts.maxBytes: four bytes fit the default and not a 2-byte limit. +func TestArtifactsMaxBytesRefusesALargeArtifact(t *testing.T) { + if out, err := runArtifactScript(t); err != nil { + t.Errorf("four bytes should fit the default artifacts.maxBytes (err %v):\n%s", err, out) + } + if out, err := runArtifactScript(t, "MCPX_ARTIFACTS_MAX_BYTES=2"); err == nil || !strings.Contains(out, "artifacts.maxBytes") { + t.Errorf("artifacts.maxBytes=2 should refuse four bytes (err %v):\n%s", err, out) + } +} + +// TestArtifactsQuotaBoundsTheStore is the effect probe for artifacts.quota: +// four bytes fit the default quota and not a 2-byte one. +func TestArtifactsQuotaBoundsTheStore(t *testing.T) { + if out, err := runArtifactScript(t); err != nil { + t.Errorf("four bytes should fit the default artifacts.quota (err %v):\n%s", err, out) + } + if out, err := runArtifactScript(t, "MCPX_ARTIFACTS_QUOTA=2"); err == nil || !strings.Contains(out, "artifacts.quota") { + t.Errorf("artifacts.quota=2 should refuse four bytes (err %v):\n%s", err, out) + } +} + +// TestArtifactsDeliveryInlinesTheBody is the effect probe for +// artifacts.delivery: the default hands back a reference only, and inline +// carries the base64 body in the result. +func TestArtifactsDeliveryInlinesTheBody(t *testing.T) { + const body = `"data": "aGloaQ=="` + if out, err := runArtifactScript(t); err != nil || strings.Contains(out, body) { + t.Errorf("the default delivery should not inline the body (err %v):\n%s", err, out) + } + if out, err := runArtifactScript(t, "MCPX_ARTIFACTS_DELIVERY=inline"); err != nil || !strings.Contains(out, body) { + t.Errorf("artifacts.delivery=inline should carry the body (err %v):\n%s", err, out) + } +} + +// TestArtifactsInlineMaxBytesBoundsAnInlinedBody is the effect probe for +// artifacts.inlineMaxBytes: with inline delivery, four bytes are inlined +// under the default bound and left as a reference under a 1-byte bound. +func TestArtifactsInlineMaxBytesBoundsAnInlinedBody(t *testing.T) { + const body = `"data": "aGloaQ=="` + if out, err := runArtifactScript(t, "MCPX_ARTIFACTS_DELIVERY=inline"); err != nil || !strings.Contains(out, body) { + t.Errorf("four bytes should inline under the default bound (err %v):\n%s", err, out) + } + out, err := runArtifactScript(t, "MCPX_ARTIFACTS_DELIVERY=inline", "MCPX_ARTIFACTS_INLINE_MAX_BYTES=1") + if err != nil || strings.Contains(out, body) || !strings.Contains(out, `"name": "n.txt"`) { + t.Errorf("artifacts.inlineMaxBytes=1 should keep the body out of the result (err %v):\n%s", err, out) + } +} + +// TestArtifactsDirReceivesTheRunsArtifacts is the effect probe for +// artifacts.dir: by default nothing lands in the directory, and naming it +// in the environment copies the run's artifact there. +func TestArtifactsDirReceivesTheRunsArtifacts(t *testing.T) { + dir := filepath.Join(t.TempDir(), "out") + e := newEnv(t, oneServer) + e.run("exec", artifactScript) + if _, err := os.Stat(filepath.Join(dir, "n.txt")); err == nil { + t.Fatal("with no artifacts.dir, nothing should be written to the directory") + } + e.setenv("MCPX_ARTIFACTS_DIR=" + dir) + e.run("exec", artifactScript) + if b, err := os.ReadFile(filepath.Join(dir, "n.txt")); err != nil || string(b) != "hihi" { + t.Errorf("artifacts.dir should receive n.txt with its body, got %q (%v)", b, err) + } +} + // 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 d5cfb4c927..0bf25d81dc 100644 --- a/pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt +++ b/pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt @@ -125,16 +125,10 @@ setting prompt.runTimeout no integration-test exercise yet; burn-down #8471 (set setting prompt.sample no integration-test exercise yet; burn-down #8471 (settings model-ai family); needs an EffectProbes entry + e2e test setting prompt.sampleTimeout no integration-test exercise yet; burn-down #8471 (settings model-ai family); needs an EffectProbes entry + e2e test setting artifacts.chunkBytes no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test -setting artifacts.delivery no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test -setting artifacts.dir no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test -setting artifacts.enabled no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test setting artifacts.gcInterval no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test setting artifacts.idleTtl no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test -setting artifacts.inlineMaxBytes no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test setting artifacts.interceptImages no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test setting artifacts.maxAge no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test -setting artifacts.maxBytes no integration-test exercise yet; burn-down #8470 (settings long-tail families); needs an EffectProbes entry + e2e test -setting artifacts.quota 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 diff --git a/pkgs/mcpx/internal/settings/effect.go b/pkgs/mcpx/internal/settings/effect.go index dca8662587..f70450fae4 100644 --- a/pkgs/mcpx/internal/settings/effect.go +++ b/pkgs/mcpx/internal/settings/effect.go @@ -101,6 +101,12 @@ var EffectProbes = map[string]string{ "protoTasks.maxPerRequestor": "TestProtoTasksMaxPerRequestorCapsUnfinishedTasksFromTheEnvironment", "protoTasks.perMinute": "TestProtoTasksPerMinuteWindowsTaskReadsFromTheEnvironment", "events.history": "TestEventsHistoryBoundsTheReplay", + "artifacts.enabled": "TestArtifactsEnabledGatesTheStore", + "artifacts.maxBytes": "TestArtifactsMaxBytesRefusesALargeArtifact", + "artifacts.quota": "TestArtifactsQuotaBoundsTheStore", + "artifacts.delivery": "TestArtifactsDeliveryInlinesTheBody", + "artifacts.inlineMaxBytes": "TestArtifactsInlineMaxBytesBoundsAnInlinedBody", + "artifacts.dir": "TestArtifactsDirReceivesTheRunsArtifacts", "preset": "TestPresetSelectsADefinedBundle", "serve.mode": "TestServeModeSelectsTheServedSurface", "presets": "TestPresetsDefinesNamedFlagBundles", @@ -166,15 +172,9 @@ var EffectExemptions = map[string]string{ "script.suffix": "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", "exec.where": "call-scoped exec behaviour with no dedicated with/without probe yet; the exec e2e tests exercise the surface only at its defaults", "deps.autoInstall": "a runtime fetch policy: its effect is which --install flag a bun run carries, observable only when a runtime actually fetches a missing package -- a network install the harness does not perform deterministically", - "artifacts.enabled": "artifact store behaviour: its effect needs artifact-producing calls plus volume or time (ttl, quota, gc) that the fake server's fixtures do not drive", - "artifacts.dir": "artifact store behaviour: its effect needs artifact-producing calls plus volume or time (ttl, quota, gc) that the fake server's fixtures do not drive", - "artifacts.delivery": "artifact store behaviour: its effect needs artifact-producing calls plus volume or time (ttl, quota, gc) that the fake server's fixtures do not drive", "artifacts.ttl": "artifact store behaviour: its effect needs artifact-producing calls plus volume or time (ttl, quota, gc) that the fake server's fixtures do not drive", "artifacts.idleTtl": "artifact store behaviour: its effect needs artifact-producing calls plus volume or time (ttl, quota, gc) that the fake server's fixtures do not drive", "artifacts.maxAge": "artifact store behaviour: its effect needs artifact-producing calls plus volume or time (ttl, quota, gc) that the fake server's fixtures do not drive", - "artifacts.maxBytes": "artifact store behaviour: its effect needs artifact-producing calls plus volume or time (ttl, quota, gc) that the fake server's fixtures do not drive", - "artifacts.quota": "artifact store behaviour: its effect needs artifact-producing calls plus volume or time (ttl, quota, gc) that the fake server's fixtures do not drive", - "artifacts.inlineMaxBytes": "artifact store behaviour: its effect needs artifact-producing calls plus volume or time (ttl, quota, gc) that the fake server's fixtures do not drive", "artifacts.chunkBytes": "artifact store behaviour: its effect needs artifact-producing calls plus volume or time (ttl, quota, gc) that the fake server's fixtures do not drive", "artifacts.gcInterval": "artifact store behaviour: its effect needs artifact-producing calls plus volume or time (ttl, quota, gc) that the fake server's fixtures do not drive", "artifacts.interceptImages": "artifact store behaviour: its effect needs artifact-producing calls plus volume or time (ttl, quota, gc) that the fake server's fixtures do not drive", @@ -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 = 152 // 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 = 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. // CheckEffectCoverage returns one violation per way the probe and // exemption maps fail to cover reg exactly: a setting with neither,