Skip to content

mcpx coverage burn-down: CLI commands (inspection group) with no integration-test exercise #8463

Closed

Description

@dezren39

What

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.

Activity

  1. added
    kind/testTest coverage, test infrastructure, or test-only fixes
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    on Nov 11, 2026
  2. developing-today commented on Nov 11, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up + triaged

  4. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    status/triagedTriaged and routed (see agent note)
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 17, 2026
  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    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.

  6. 1 remaining item

  7. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 17, 2026
  8. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    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.

  9. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    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.
  10. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insepic/mcpx-platformReprioritization program epic (2026-11-12)kind/testTest coverage, test infrastructure, or test-only fixespriority/normalOrdinary priority (the default)status/triagedTriaged and routed (see agent note)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions