You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mcpx coverage burn-down: CLI commands (inspection group) with no integration-test exercise #8463
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):
dashboard
explore
hook
interactions
logs
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.
Verdict: work kind task/small-fix · priority/normal · effort/l · kind/test (kept) — labels applied this run, plus status/triaged and queue/queued for the follow-on.
Key findings: the guard is self-verifying — it fails when an exempted feature gains a ledger row, so each exemption deletion proves its exercise landed. A logs_test.go already exists in internal/e2e, so the fix's first step is a re-measurement (full suite → fresh ledger): any of the five already recording a row needs only its exemption deleted. The exercise patterns to follow are in cliops_test.go (e.g. TestEventsStreamAsNDJSON, TestArtifactsRoundTripThroughTheCLI) with the harness in harness_test.go / guardedMain in e2e_test.go.
First step: run the full mcpx e2e suite on current main, read the fresh coverage ledger for the five features, then write the missing exercises command by command, deleting each exemption line as its row lands.
Acceptance: all five features record ledger rows (or are shown already recording by the fresh ledger), the five exemption lines are deleted, the guard passes on a full-suite run, and this issue closes per its own acceptance.
Fix packet:repo-health:v1:fix:developing-today/code:issue:8463 → enqueued as task 20154 (queue repo-health-code-pilot, status queued, priority 30).
agent-note:v1
lane: openchamber-scheduled-lane (code-h), repo-worker-code
event: parked (queue task 20154, resume after ~20 min)
state: origin/main is now ac92887; exemption lines 40-44 still list cli dashboard/explore/hook/interactions/logs.
next: re-measure with the full e2e suite, then add one integration exercise per feature in the cliops_test.go pattern and delete its exemption line as it lands. Close #8463 when the list is empty.
Claimed task 20154 and recorded the required first checkpoint with origin openchamber-scheduled-lane. Fresh state: #8463 is OPEN, no hard-stop labels, and no named PR in the packet; previous checkpoint names main ac92887 and five outstanding exemptions. Resuming the full-suite re-measurement on the laptop; labels synced to in-progress.
Picked up by repo queue worker (lane any-m, task 20154) — mcpx coverage burn-down for the inspection-group CLI commands (dashboard, explore, hook, interactions, logs).
Plan, following the landed #8462 pattern in cli_burndown_test.go:
One real integration exercise per command through the e2e harness (a successful e.run is what records the coverage-ledger row): dashboard against a live daemon; hook ls against a config that declares a hook (plus the no-hooks empty state); interactions list/search/show around a real tool call (calls record interaction traces); the log surface exercised through its logs alias spelling (the canonical log spelling is already covered — the alias key is the uncovered feature); explore driven under a pty, since it requires a terminal.
Each feature's line comes out of feature_coverage_exemptions.txt as its exercise lands; the coverage guard is the verification.
Done — fixed_merged via PR #11266 (merge sha a4a5fe6); this issue auto-closed on merge.
All five inspection-group commands now have a real integration exercise through the e2e harness, and all five lines are out of feature_coverage_exemptions.txt:
cli_inspection_burndown_test.go: dashboard (prints its live URL against a started daemon), hook (ls empty state + a config-declared hook rendering), interactions (empty history, then a proxy chat-completion turn — the surface that records interactions — read back via list, --q search and --show), logs (the log surface through its logs alias spelling: logs sql, logs --chain; the canonical log spelling was already covered, the alias key was the uncovered feature).
cli_inspection_explore_linux_test.go: explore refuses to run without a terminal and the harness runners only offer a pipe, so the exercise gives the env a runner whose stdin is a real pty (/dev/ptmx, Linux-only) with q queued as its first input; it opens on the namespace list and quits cleanly. The pty's close is registered before the env's cleanup so the daemon-stop command can still run through that runner.
Verification: the five new tests pass; with MCPX_FEATURE_COVERAGE_LEDGER pointed at a scratch file, the run's ledger contains cli rows for dashboard, explore, hook, interactions and logs; the guard's own tests pass, including TestFeatureCoverageExemptionsAreWellFormed. One environment note: on this dev laptop the suite's TestMain sweeps (#1971 leaked-process, #1992 caller-daemon) fail for pre-existing reasons — the already-landed sibling burn-down tests leak 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 20154 (lane any-m) completes as fixed_merged.
Activity
developing-today commentedon Nov 11, 2026
CODE-2524
dezren39 commentedon Nov 17, 2026
🤖 Agent note · picked up + triaged
pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txtlines 40–44 still exempt all five of this issue's features — cli dashboard, explore, hook, interactions, logs — each naming burn-down mcpx coverage burn-down: CLI commands (inspection group) with no integration-test exercise #8463. None has been burned down since the 2026-11-11 measurement (main 2b3db37: 403 required features, 152 covered, 251 exempt).task/small-fix· priority/normal · effort/l · kind/test (kept) — labels applied this run, plus status/triaged and queue/queued for the follow-on.logs_test.goalready exists in internal/e2e, so the fix's first step is a re-measurement (full suite → fresh ledger): any of the five already recording a row needs only its exemption deleted. The exercise patterns to follow are incliops_test.go(e.g. TestEventsStreamAsNDJSON, TestArtifactsRoundTripThroughTheCLI) with the harness inharness_test.go/ guardedMain ine2e_test.go.repo-health:v1:fix:developing-today/code:issue:8463→ enqueued as task 20154 (queue repo-health-code-pilot, status queued, priority 30).dezren39 commentedon Nov 17, 2026
agent-note:v1
lane: openchamber-scheduled-lane (code-h), repo-worker-code
event: parked (queue task 20154, resume after ~20 min)
state: origin/main is now ac92887; exemption lines 40-44 still list cli dashboard/explore/hook/interactions/logs.
next: re-measure with the full e2e suite, then add one integration exercise per feature in the cliops_test.go pattern and delete its exemption line as it lands. Close #8463 when the list is empty.
1 remaining item
dezren39 commentedon Nov 17, 2026
agent-note:v1
state: picked_up
task: 20154
lane: code-j (OpenChamber scheduled lane, worker repo-worker-code)
stage: claimed -> revalidation
Claimed task 20154 and recorded the required first checkpoint with origin openchamber-scheduled-lane. Fresh state: #8463 is OPEN, no hard-stop labels, and no named PR in the packet; previous checkpoint names main ac92887 and five outstanding exemptions. Resuming the full-suite re-measurement on the laptop; labels synced to in-progress.
dezren39 commentedon Nov 17, 2026
Picked up by repo queue worker (lane any-m, task 20154) — mcpx coverage burn-down for the inspection-group CLI commands (dashboard, explore, hook, interactions, logs).
Plan, following the landed #8462 pattern in
cli_burndown_test.go:e.runis what records the coverage-ledger row): dashboard against a live daemon; hooklsagainst a config that declares a hook (plus the no-hooks empty state); interactions list/search/show around a real tool call (calls record interaction traces); the log surface exercised through itslogsalias spelling (the canonicallogspelling is already covered — the alias key is the uncovered feature); explore driven under a pty, since it requires a terminal.feature_coverage_exemptions.txtas its exercise lands; the coverage guard is the verification.dezren39 commentedon Nov 17, 2026
Done — fixed_merged via PR #11266 (merge sha a4a5fe6); this issue auto-closed on merge.
All five inspection-group commands now have a real integration exercise through the e2e harness, and all five lines are out of
feature_coverage_exemptions.txt:cli_inspection_burndown_test.go: dashboard (prints its live URL against a started daemon), hook (lsempty state + a config-declared hook rendering), interactions (empty history, then a proxy chat-completion turn — the surface that records interactions — read back via list,--qsearch and--show), logs (the log surface through itslogsalias spelling:logs sql,logs --chain; the canonicallogspelling was already covered, the alias key was the uncovered feature).cli_inspection_explore_linux_test.go: explore refuses to run without a terminal and the harness runners only offer a pipe, so the exercise gives the env a runner whose stdin is a real pty (/dev/ptmx, Linux-only) withqqueued as its first input; it opens on the namespace list and quits cleanly. The pty's close is registered before the env's cleanup so the daemon-stop command can still run through that runner.Verification: the five new tests pass; with
MCPX_FEATURE_COVERAGE_LEDGERpointed at a scratch file, the run's ledger containsclirows for dashboard, explore, hook, interactions and logs; the guard's own tests pass, includingTestFeatureCoverageExemptionsAreWellFormed. One environment note: on this dev laptop the suite's TestMain sweeps (#1971 leaked-process, #1992 caller-daemon) fail for pre-existing reasons — the already-landed sibling burn-down tests leak 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 20154 (lane any-m) completes as fixed_merged.