Repository navigation
fix(mcp): return complete inline Evidence records - #585
Merged
Merged
Conversation
Preserve normalized_result in MCP Evidence and use the canonical envelope for advertised output contracts. Verify direct function and artifact comparison against inline records and retained session bundles. Closes #551 Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
9 tasks done
2 tasks done
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
Return complete canonical Evidence records inline, including normalized_result, and preserve direct comparison and retained bundle identity. Verified full deterministic gate, real Linux Ghidra CLI/MCP and independently installed artifact, generic package acceptance, private local samples, and targeted updates after syncing main. Closes morluto#551 Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #551.
normalized_result, in both MCP text and structured content.resultandevidence_idfields. Regenerate catalog metadata and document direct tool composition.MCP example
inspect_artifactEvidence can likewise be passed directly tocompare_artifacts. The returned records match the corresponding session bundle records.Verification
npm run check:pr: 350 files passed; 1,978 tests passed, 1 existing skip. Full run uses process-local single CPU affinity to keep existing startup tests within their unchanged deadlines.npm run check:ci: all 7 tasks passed.npm run docs:generate, generated-document checks, and commit formatting/lint hooks passed.node scripts/verify-real-ghidra.mjs: real Linux x64 Ghidra 12.1.4/JDK 21 host-format verification passed, including actual CLI/stdio MCP direct Evidence handoff. Existing switch oracle still recovers 40 cases and the default, with no switch residual unknowns.analyze_functionEvidence →compare_functions→ exact bundle-record equality passed; input unchanged. Trace: 165 nodes, 296 edges, 7 decompilations; 1 existing alias unknown retained.env -u GHIDRA_INSTALL_DIR TMPDIR=/tmp node scripts/verify-package.mjsafter the verified build: passed complete installed CLI/MCP, artifact handoff, 4-client setup/idempotence/backup/recovery/symlink checks, and exact-version update/read-only maintenance. Full 116-tool catalog available in ~2.9 seconds.Fail-before regression run: 8 failures out of 10 tests; after the fix: 10/10 passed. An initial full-run timeout in an unchanged 15-second runtime test was isolated and re-run, followed by clean full-suite runs. No deadlines or assertions were loosened.
After main added #538, resolved all four generated-file conflicts by regeneration. Incremental validation: 37/37 focused Evidence + semantic-scope tests, all four catalog/skill/product/ledger checks, and commit hooks passed. Earlier complete gate/package/Ghidra evidence above is retained; final exact-head GitHub CI is checked before merge. After upstream #584, adopted its setup support helper and removed the duplicated verifier fix; 26/26 targeted setup-support + Evidence tests passed. Final PR delta is 12 files.
Coverage
Real provider claims are limited to Linux x64 Ghidra 12.1.4 with JDK 21. The package smoke lane uses its existing controlled Hopper seam; no real Hopper, macOS, or Windows host verification is claimed. Public fixtures are generated from generic repository source.