Repository navigation
test(cli): repair analysis-view finalization cancellation seams - #6431
Conversation
Inject interrupts through imported projection and Evidence resolution boundaries so lexical service calls cannot bypass the test. Retain exact normalized partial results, authenticated Evidence provenance and conventional signal exit codes. Assisted-by: Reimu (gensokyo-skills:reimu-incident-triage)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Low impact] The test-only changes appear safe to merge. SummaryRepairs cancellation tests by observing imported production functions rather than a same-module export.
No actionable issues or introduced security concerns were found. Tests were not rerun during this review. Whether another PR supersedes this one could not be checked because GitHub access required authentication. Reviews (1) · Last reviewed commit: "test(cli): repair analysis-view finaliza..." · Reviewed by Greptile |
Merge main e32a049, including the repaired analysis-view cancellation injection seams from morluto#6431. Preserve the existing WebSocket producer-reachability fix and its regression coverage.
Summary
Repair three consistently failing analysis-view cancellation tests on main. The tests spied on
inspectAnalysisViewValidated, but the service calls that function lexically inside its own module, bypassing the spy and never scheduling the intended interrupt.Observe the imported domain projector and Evidence resolver instead, while executing their real implementations. Assert that projection is reached exactly once when expected, and authenticate the retained partial Evidence, its complete normalized result, subject and parent link. Rename the missing-parent scenario to source-resolution failure, its actual stage. All 20 existing lifecycle scenarios remain.
Contract and boundary impact
Test-only correction at the injection boundary; no CLI/MCP, provider, Evidence, package or generated-metadata changes. Ordinary maintenance within existing authority; a maintainer scope decision is not applicable. The separate Ghidra marker failure already has #6400 and is outside this PR.
Evidence and validation
9eb829aca34be36ff112826337996f6139f82eff: main CI shard fails the same three scenarios as a local exact run (17 pass, 3 fail).npm run test:focused -- tests/process-global/commandFinalizationCancellation.test.ts tests/boundary/cli/analysisViewCli.test.ts tests/boundary/mcp/analysisViewMcp.test.ts tests/acceptance/analysisViewCallerPath.test.ts src/application/analysisView/AnalysisViewService.test.ts: 117 pass across five files. This includes built CLI subprocesses, real OS SIGINT/SIGTERM, HAR/Grafana-shaped capture inputs, Evidence bundles, caller-path preservation and an in-memory MCP SDK transport. Controlled injection establishes the finalization interleavings; it does not establish real-provider behavior.npm run check:fast, targetedoxfmt --check, targetedoxlint, andgit diff --check: pass.No new real-engine compatibility claim is made. No lifecycle scenarios, timeouts or retries were removed or relaxed. No separate issue was opened because the current main CI run above is the direct report.
Hosted validation for
a5f94a635: complete CI run passed, including all eight built shards, source tests (15,389 passed; 12 platform/prerequisite skips), report merging andCI required. The repaired lifecycle file passed all 20 tests on the runner. Greptile review passed; Codex review is still running.Author readiness
Human owner: @gensokyo-dev
Human readiness was explicitly declared by the owner in the maintenance session after reviewing this final diff and the validation above.