Repository navigation
fix(contracts)!: return structured workflow failures - #87
Merged
Merged
Conversation
Replace prose-encoded partial failures in batch decompilation, call graphs, and named xref lookup with discriminated structured results. BREAKING CHANGE: batch_decompile, get_call_graph, and find_xrefs_to_name now return structured discriminated output shapes.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
fix(contracts)!: return structured workflow failures
DrAbdulmalek
pushed a commit
to DrAbdulmalek/rea
that referenced
this pull request
Oct 26, 2026
…morluto#87 (morluto#101) * feat(cookbook): extend nonpe-format-cookbook with 52 rules (AW-DC) for Issue morluto#87 * feat(cookbook): add 6 semantic-enhancement rules (DD-DI) per issue morluto#87 feedback * feat(cookbook): edge-case hardening (DJ-DN) + inline enhancements from practitioner research
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.
Description
Enhanced workflows currently encode partial failures in prose, forcing callers to parse strings and making normal name-resolution misses indistinguishable from provider errors. This change returns exact discriminated results and makes native cancellation classification deterministic.
batch_decompilereturns orderedok/erroritems plustotal,succeeded, andfailedcounts. Empty input returns zero counts.get_call_graphgives every node an explicit status and projects failures as{ tag, message, details }.find_xrefs_to_nameresolves exact names through the exhaustively paged Hopper name inventory and returnsresolvedorunresolvedwith the stablename_not_foundreason.AnalysisErrorTagvariants and excludes causes and local paths.AnalysisCancelledErrorbefore operation dispatch or subprocess work.The MCP inventory remains 68 tools.
Type of Change
Review Order
src/contracts/toolOutputSchemas.tsandsrc/domain/errors.tsfor the public variants and exhaustive error projection.src/application/EnhancedTools.tsandsrc/domain/hopperValues.tsfor workflow behavior and exact-name resolution.src/native/NativeMacOSProvider.tsfor cancellation-first classification.Testing Performed
npm run typecheck)npm run lint)npm test) — 54 files, 345 tests; coverage thresholds passednpm run verify:hopper) — unavailable because this host has no Hopper installationnpm run verify:hopper:linux) — unavailable because this host has no Hopper installation or desktop runtimenpm run verify:package) — packaged CLI and 68-tool target-free MCP smoke passednpm pack --dry-run— 135 package filesorigin/main— clean after fixing exact-name resolution and not-found classificationTool Contract Impact
This is an intentional breaking output-shape change for
batch_decompile,get_call_graph, andfind_xrefs_to_name. No tools are added or removed. Callers must consume the new discriminants instead of parsing error strings.Related Issues
Closes #23.
Closes #53.
Breaking Change
batch_decompile,get_call_graph, andfind_xrefs_to_namenow return structured discriminated output shapes; their previous prose-encoded shapes are not retained.