Repository navigation
fix(call-path): preserve relationship coverage from analysis - #2001
Merged
morluto merged 1 commit intoOct 12, 2026
Merged
Conversation
Forward observed relationship coverage into function Evidence and use its typed completeness when searching call paths. Preserve contextual limitations, legacy fallback, provenance, and unknown outcomes. Avoid argument-spread exhaustion on large valid limitation lists. Cover the public MCP producer/consumer chain, metadata tampering, terminal and unreachable coverage, and large-list capacity. Related to morluto#1964; separate get_call_graph and trace_call_path work is not included. AI-assisted with Hermes (Nous Research).
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. |
3 tasks done
Owner
|
@khanukov, thank you for preserving relationship coverage from function analysis into Evidence and using that validated metadata for call-path completeness. The public MCP producer-to-consumer tests also pin down the important distinction between contextual limitations and incomplete relationship coverage. Welcome to REA! |
This was referenced Oct 12, 2026
[Bug] build_call_path can no longer establish not_found from headless IDA Evidence after #1544
#2322
Closed
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
Addresses the
build_call_pathfollow-up discussed in #1964. Preserve observed relationship coverage whenanalyze_functioncreates Evidence, and use that digest-validated coverage when deciding whether the supplied call-path search is exhaustive.AI-assisted contribution prepared with Hermes (Nous Research). This PR does not claim to resolve the separate
get_call_graphortrace_call_pathwork, and intentionally does not close the whole issue.Problem and expected behavior
Two stages lost or ignored the existing completeness contract:
AnalysisExecution.relationshipCoveragewhen creating Evidence.build_call_pathtreated every generic provider/dossier limitation as incomplete relationship coverage, while explicit partial/unknown coverage without generic limitations could produce a falsenot_found.For the supplied reachable observations, complete relationship coverage remains exhaustive even with unrelated contextual limitations. Partial/unknown coverage remains non-exhaustive and retains its structured reasons. Missing metadata keeps the existing conservative legacy behavior. None of these results establishes absence across the entire binary.
Change and scope
relationship_coverageown call-path completeness; preserve generic limitations, structured reasons, citations and unresolved questions.RangeErroron large schema-valid inputs without adding arbitrary graph/schema caps.analyze_function → build_call_pathproducer/consumer chain, legacy cases and coverage tampering.No provider implementation, Evidence schema/identity algorithm,
get_call_graph,trace_call_path, or unrelated capability changes.Contract and boundary impact
executeFunctionAnalysisEvidencepreserves observed metadata; the existing call-path domain consumer interprets it.Evidence and regression coverage
Tests added or updated: real public MCP producer-chain cases for complete+context, partial/unknown without generic limitations, both legacy cases, provenance, unknown ledger and tampering; domain cases for found paths, terminal/unreachable coverage and large limitation lists. The existing 20,000-node chain remains covered.
Base reproduction or other evidence: new call-path regressions failed against the exact affected base. Before forwarding metadata, three public producer-chain scenarios failed semantically. Before iterative accumulation, 1,000,000 structured reasons and independently 1,000,000 distinct generic reasons reproduced
RangeErrorin the Vitest worker. The originally reported 150,000-entry standalone case also passes after the fix; that smaller case did not reproduce the crash under Vitest's larger worker stack and is not described as RED evidence.User-visible CLI/MCP output: executed fixture-backed producer/consumer checks returned
status: "not_found", search_scope: { exhaustive: true }for complete+context; partial/unknown returnedstatus: "unknown", search_scope: { exhaustive: false }with their original reasons. Public MCP regressions assert the same fields and citations.Remaining proof gaps: no live proprietary provider or platform verification; full deterministic suite/coverage is CI-owned per
CONTRIBUTING.mdand was not run locally.Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Validation performed
All repository execution used an offline, credential-free Linux sandbox with pinned Node 24.18.0 / npm 11.16.0.
npm run test:focused -- src/domain/callPath.test.ts src/domain/evidence.test.ts tests/boundary/mcp/investigationAnalysisMcp.test.ts tests/boundary/mcp/toolSchemaValidity.test.ts tests/boundary/mcp/enhancedTools.01-lists-the-complete-target-open.test.ts tests/boundary/mcp/enhancedTools.06-rejects-incomplete-function-dossiers-at.test.ts— 69 tests / 6 files passed.npm run check— passed; 810 existing warnings, zero errors; no warning locations in the four changed files.npm run verify:test-discovery— passed.npm run build:cached— passed.node scripts/rea.mjs --help— passed (CLI smoke, not a live analysis claim).unknownwithout crashing.git diff --cached --checkand added-line security scan — passed.RangeErrorfailures; the unmodified snapshot passed again.Reviewed source base:
6395e8d3007d5ee453477460e7ee1c51cff76be0.Staged binary-diff SHA-256:
82bd4b64ff1f1ecf9dfeb7840eb0a73c070ef8d250a464d2b9e69f2c5ee78ba0.Compatibility, safety, and release
Review checklist
type(scope): outcome.