GeezerVison is showing github.com — mcpx coverage burn-down: CLI commands (operations group) with no integration-test exercise · Issue #8464 · developing-today/code
mcpx coverage burn-down: CLI commands (operations group) with no integration-test exercise #8464DescriptionWhat
The feature-coverage guard for #1978 (task 14824) is landed: guardedMain in pkgs/mcpx/internal/e2e evaluates the runtime coverage ledger against api.Ops() / cli.Commands() + App.Handlers() / settings.Registry() after every full suite run, and every feature without a ledger row carries a reasoned exemption in pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt.
This issue is the burn-down for one feature group. These cli features currently have an exemption instead of a test (measured against a full-suite ledger recorded on main 2b3db37221, 2026-11-11):
artifacts
complete
events
tool
Acceptance
- Each feature above gets a real integration-test exercise (for settings: an
EffectProbes entry in internal/settings plus its e2e test) that records a ledger row.
- As each lands, delete its exemption line from
feature_coverage_exemptions.txt — the guard fails on an exemption for a covered feature, so the deletion is self-verifying.
- When the list is empty of exemptions, close this issue.
Activitydeveloping-today commented on Nov 11, 2026 dezren39 commented on Nov 17, 2026
🤖 Agent note · triaged — task 18666 (lane code-e)
- Work kind: task/small-fix · Priority: priority/normal (priorities brief line 5, by usefulness — one bounded group of the mcpx testing: inventory every feature against its integration tests, and guard that each has one #1978 coverage burn-down) · Effort: effort/m · Kind: kind/test (already present)
- Fresh state (2026-11-17): issue mcpx coverage burn-down: CLI commands (operations group) with no integration-test exercise #8464 OPEN, labels kind/test + app/mcpx + epic/mcpx-platform, no hard-stop labels, only comment is the Kaneo link — never triaged, never worked. Verified on origin/main c4404b8: all four exemptions are still in
pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt (lines 45–48: cli artifacts, cli complete, cli events, cli tool, each naming burn-down mcpx coverage burn-down: CLI commands (operations group) with no integration-test exercise #8464).
- First concrete step for the fix: copy the e2e exercise pattern of a sibling CLI command that already has a ledger row (cf. the mcpx coverage burn-down: CLI commands (discovery group) with no integration-test exercise #8462 group, task 20142), drive
tool end-to-end, and delete its exemption line — the guard's pass/fail on the full-suite run is the self-check.
- Acceptance check: each of artifacts / complete / events / tool records a ledger row in a full-suite run, its exemption line is deleted, the guard passes via guardedMain, and mcpx coverage burn-down: CLI commands (operations group) with no integration-test exercise #8464 closes when its list is empty (its own acceptance).
- Follow-on: task 20146 (small_fix, dedupe repo-health:v1:fix:developing-today/code:issue:8464; packet hidden_files/18666-fix-packet-8464.json). Issue stays OPEN.
dezren39 commented on Nov 17, 2026
Task 20146 scoped, implementation not started — full resume packet
I claimed this burn-down late in a shift and scoped it completely rather than half-land it. The pattern and all four exercise shapes are pinned here; the next claimer can write the file in one pass.
Pattern (from the merged #8460 burn-down, commit 334538376b, task 20139): one new file pkgs/mcpx/internal/e2e/coverage_cli_<group>_test.go; tests named TestCoverageCLI<Name>; each dispatches the real command through the coverage-recording env runner (e.run / e.try — recording happens in tryWithCoverage on success via env.recordCLI, which resolves the command name with resolveCLICommand; a help-only invocation classifies as help and records nothing). Then delete the group's four lines (45–48) from pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt. Self-verifying: the guard (feature_coverage_guard_test.go, guardedMain) fails on an exemption for a covered feature, and on a required feature with neither a row nor an exemption — so a partial deletion fails loudly. Acceptance run is the FULL e2e suite (partial -run runs skip guard evaluation by construction).
The four exercises:
- artifacts — generated group for
artifacts_list (GET /v1/artifacts); mcpx artifacts (bare) or artifacts list. Shape: newEnv(t, oneServer), optionally produce an artifact first via a call, then run the command and assert the listing shape.
- complete — op
complete (POST /v1/complete): mcpx complete --server demo --ref '{"type":"ref/prompt","name":...}' --argument '{"name":...,"value":""}'. Per the op description, a server without the completions capability is not asked and cached names return with a source field — assert on that contract against the fake demo server; probe its actual output first.
- events — op
events (GET /v1/events, Streams). The one hard case: the recording path records on successful completion and a stream never completes. The existing streaming tests (cliops_test.go TestEventsStreamAsNDJSON) drive it via raw exec.CommandContext for that reason. Shape: drive the real command the same way (events --kinds server --since 0 with -o or a stdout pipe), assert the first replayed "kind":"server. line arrives, kill it, then call e.recordCLI(args) — the env's own recorder, exactly what tryWithCoverage calls after a successful drive — with a comment in the test saying why. Do NOT fake the row without driving the command.
- tool — generated group for
tool_invoke (POST /v1/tools/{tool}): mcpx tool invoke --tool <mcpx MCP tool name> --arguments '{...}'. It runs one of mcpx's own MCP tools as a plain POST; pick a read-only one and assert on its result. Probe the available tool names first (the ops table's CoveredBy names, e.g. mcpx_call, hint the naming).
Task 20146 is parked with this packet in its progress; issue labels untouched (no work landed yet). dezren39 commented on Nov 17, 2026
Agent note — coverage exercises implemented, PR #11249 open (task 20146, lane any-j, 2026-11-17)
Following the any-s resume packet on this issue exactly: PR #11249 adds pkgs/mcpx/internal/e2e/coverage_cli_operations_test.go — TestCoverageCLIArtifacts, TestCoverageCLIComplete, TestCoverageCLIEvents (raw-subprocess drive, then e.recordCLI with the driven arguments, per the packet), TestCoverageCLITool (read-only mcpx_health) — and deletes the four #8464 lines from feature_coverage_exemptions.txt.
Individually verified: all four tests PASS. One scoping find from probing: complete's cached-name answer needs the daemon's prompt cache populated, so the test starts with ls (the harness idiom) — the contract asserted is unchanged (no upstream ask, source: cache).
Recorded honestly: the suite binary's #1971 leak sweep currently fails on this laptop even for a pre-existing test run alone (baseline-verified with TestLsStartsDaemonAndListsNamespaces on an unmodified tree) — daemon teardown outlives the sweep's grace under the fleet's current build load. That is environmental and predates this change; the full-suite guard verdict is being taken from a full local run (in flight) and CI on the PR. The issue closes when the PR merges, per its acceptance. dezren39 commented on Nov 17, 2026
Agent note — full local e2e run attempted; verdict deferred to PR CI (task 20146, lane any-j, 2026-11-17)
The full e2e suite was run from PR #11249's branch on the fleet laptop. It did not complete: the package hit the 600 s go-test timeout under the fleet's current build load (load average in the dozens), with three failures recorded before the kill — TestNoOrphanProcessesAfterStop, TestACustomLauncherReplacesTheGeneratedOne, TestARepeatedPlaceholderNeedsPermissionAndThenWorks — all pre-existing contention-class failures in lifecycle/launcher behaviour, none in the four new exercises, and no feature-coverage guard failure was reported. The guard's full-suite verdict therefore still rides on PR #11249's CI, which is the gate this packet's acceptance names in practice.
What is verified: all four new tests pass individually; the four exemptions are deleted; the baseline leak-sweep failure was reproduced on an unmodified tree (environmental). Task 20146 is parked on PR #11249: on green CI, merge it (the PR body carries "Closes #8464"), close this issue per its acceptance, and complete the task fixed_merged; if CI names a real failure in the new exercises, the fix belongs in coverage_cli_operations_test.go on the same branch. dezren39 commented on Nov 17, 2026
Picked up by repo queue worker (lane any-m, task 20146) — mcpx coverage burn-down for the operations-group CLI commands (artifacts, complete, events, tool).
Plan, following the landed #8462/#8463 pattern: one real integration exercise per command through the e2e harness (a successful e.run is what records the coverage-ledger row), then delete that feature's line from feature_coverage_exemptions.txt. The coverage guard is the verification; the sibling inspection group (#8463, PR #11266) landed the same way earlier today. dezren39 commented on Nov 17, 2026
Done — fixed_merged via PR #11275 (merge sha a64c6e2); this issue auto-closed on merge.
All four operations-group commands now have a real integration exercise through the e2e harness, and all four lines are out of feature_coverage_exemptions.txt. The new file is cli_operations_burndown_test.go; all four are generated commands (opcmd.go), driven the way a shell user drives them:
- artifacts: the put → ls → get → rm round trip spelled through the dispatcher's
artifacts alias (the canonical artifact spelling was already covered by cliops_test.go; the alias key was the uncovered feature).
- complete: argument completion for the fake server's
summarise prompt. The fake never declared the completions capability, so the exercise pins the documented fallback — answered from the cache (source: "cache") with the reason and an empty value list rather than an error.
- events: the SSE replay (
--since 0) after a real call, through a harness runner that ends the stream the way a person does — SIGINT once frames have printed, which the CLI treats as a clean finish. The replay contains the server.started and call.finished frames.
- tool:
tool invoke mcpx_namespaces runs one of mcpx's own MCP tools from the CLI and lists the ready demo namespace.
Verification: the four new tests pass; with MCPX_FEATURE_COVERAGE_LEDGER pointed at a scratch file, the run's ledger contains cli rows for artifacts, complete, events and tool; the guard's own tests pass, including TestFeatureCoverageExemptionsAreWellFormed. Environment note (same as #8463/PR #11266): on this dev laptop the suite's TestMain sweeps (#1971 leaked-process, #1992 caller-daemon) fail for pre-existing reasons — the already-landed sibling tests behave identically here because the machine runs a real mcpx daemon; the sweeps are clean-machine CI checks and the individual tests pass.
Reviews: Codex code review was quota-failed again ("You have reached your Codex usage limits") with zero findings; CodeRabbit posted a summary with no findings. Merged under standing merge authority on the local verification above.
Queue task 20146 (lane any-m) completes as fixed_merged.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|