Repository navigation
fix(mcp): qualify retained Evidence view guidance - #8377
Conversation
[Low impact] The PR appears safe to merge; no blocking issue was found. SummaryQualifies retained Evidence guidance so
No new actionable issues or security concerns were found. No runtime checks were run during this review. Supersession could not be verified because GitHub access required authentication. Reviews (5) · Last reviewed commit: "style(test): format CLI help default ann..." · Reviewed by Greptile |
Codex Review Summary: ✅ CompletedThis 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. |
…ery-view-guidance # Conflicts: # src/contracts/sessionToolContracts.ts
Refreshing get_evidence_bundle help onto current main keeps detail=links and says inspect_analysis_view applies only to a compatible parent.
Summary
Evidence discovery recommends
inspect_analysis_vieweven for records whose operation has no supported view. Qualify that handoff and direct callers to selected-record retrieval or complete bundle export. Related: #8549.Change and scope
The
get_evidence_bundlecatalog description and MCP guide now limit view guidance to supported parent operations. They retain the currentdetail: "records"contract from merged #8528 for exact-record retrieval, and explain bundle export for portable handoffs or oversized records. No provider, schema, target authority, or lifecycle changes; a new scope decision is not applicable.Evidence and regression coverage
The real-provider observations below were collected before the latest main merge; they have not been rerun on the merged head.
xrefs,procedure_references, andread_bytesEvidence from an owned unexecuted Mach-O and imported it into fresh target-free MCP servers. In compact and full output-schema profiles, each exact-IDdetail: "records"selection preserved the original complete record and identified it as historical and non-importable;inspect_analysis_viewcorrectly refused each unsupported parent. The selected target remained unchanged.analyze_functionview and real Ghidra/Kuna export paths were exercised on the earlier branch; the latest change preserves those paths. Individual selected records remain subject to MCP delivery budgets.Validation performed
An earlier hosted static check failed on
tests/boundary/cli/cliHelpDefaultAnnotations.test.ts, an unrelated formatting defect fixed by style(test): format CLI help default annotations #9280. The branch now includes that fix andnpm run format:checkpassed; new hosted CI is pending.After merging main
0ecf3a4cbf, Node 24.22.1 focused Vitest runs: Ghidra Evidence MCP and record selection suites passed 17 tests. The prior CI shard failure came from an obsolete Ghidra Evidence wording assertion, which current main corrects. Full CI and real-provider workflows were not rerun after this merge.The following checks were performed on the prior head
59dacad9a1:npm run docs:check— passed, including nine README consistency checks.npm run check:fast— passed.Real Ghidra stdio MCP record-selection, catalog and unsupported-view controls — passed in both output-schema profiles.
Prettier on touched files and
git diff --check— passed.Compatibility, safety, and release
Guidance only; no schema, dependency, installer or target-execution change. A selected record is historical and is not an importable bundle.
Author readiness
Human owner:
Before merge
type(scope): outcome.