Repository navigation
Conversation
The IDA compatibility profiles expose no segment enumeration tool, so binary_overview failed provider selection: list_documents was not declared (blocking document resolution) and list_segments was a hard requirement no profile can satisfy. - Declare and implement list_documents: an IDA session binds exactly one target, reported through the bound input path like Ghidra reports its single imported Program. - Mark list_segments optional in the binary_overview requirements so providers without that facet keep the tool available; the composed output omits segments/segment_count (unobserved) instead of failing, mirroring the existing capability-unavailable degradation. - Document the optional fields in the tool contract. Closes morluto#2460
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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 72e469890f
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@greptileai review |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f60fab62af
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8c87b46a79
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Review findings addressed at their producing boundaries and consumers. Latest changes were reviewed from source; tests and provider runs were skipped at the maintainer's request. Findings requiring separate decisions or verification remain open. The authored skill retained the old blanket statement that IDA binary_overview was unavailable. Updated the owned .agents source to describe the admitted public document identity and procedure/string counts, with omitted segment/image-base fields explicitly unobserved. The captured-main merge also reconciles document inventory with headless-only containment through one admittedDocument owner and one dispatch/capability entry; attached/native public document listing remains covered by source assertions. Source validation: inspected the producing boundary and affected consumers, applied targeted formatting with two threads, and passed git diff --check. Tests, builds, lint, typechecks, provider workloads, and CI reruns were not run, as explicitly requested. No duplicate document-identity representation remains. skills/ is ignored generated output; packaged regeneration was not run because its generator requires built dist modules and builds are explicitly disabled. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e22c4436fd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open. Source coverage now checks production CLI/MCP |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f8b5880660
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open. Addressed: Parse binary overviews as workflow evidence. The reported trigger was: For every IDA profile, |
| enhanced( | ||
| "binary_overview", | ||
| "Return native-binary metadata, every segment with its length, and exhaustive procedure/string counts. When every provider-reported segment agrees on an analysis image base, return it as image_base so callers can relate provider addresses to their loader coordinates. Use search_procedures, list_procedures, or analyze_function directly when you already know which procedure to inspect.", | ||
| "Return native-binary metadata, every segment with its length, and exhaustive procedure/string counts. When every provider-reported segment agrees on an analysis image base, return it as image_base so callers can relate provider addresses to their loader coordinates. Providers without a segment-enumeration facet omit segments and segment_count instead of failing; treat the missing fields as unobserved, not as an empty binary. Use search_procedures, list_procedures, or analyze_function directly when you already know which procedure to inspect.", |
There was a problem hiding this comment.
Description mixes facts with advice
The updated binary_overview description still tells callers when to use other tools. The repository guide requires descriptions to explain the contract, not prompting strategy. Remove the final “Use…” sentence and keep the explanation of missing segment fields. This requirement must be satisfied before merging.
| "Return native-binary metadata, every segment with its length, and exhaustive procedure/string counts. When every provider-reported segment agrees on an analysis image base, return it as image_base so callers can relate provider addresses to their loader coordinates. Providers without a segment-enumeration facet omit segments and segment_count instead of failing; treat the missing fields as unobserved, not as an empty binary. Use search_procedures, list_procedures, or analyze_function directly when you already know which procedure to inspect.", | |
| "Return native-binary metadata, every segment with its length, and exhaustive procedure/string counts. When every provider-reported segment agrees on an analysis image base, return it as image_base so callers can relate provider addresses to their loader coordinates. Providers without a segment-enumeration facet omit segments and segment_count instead of failing; treat the missing fields as unobserved, not as an empty binary.", |
Context Used: docs/agents/mcp-tooling.md (source)
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/contracts/enhancedToolContracts.ts
Line: 65
Comment:
**Description mixes facts with advice**
The updated `binary_overview` description still tells callers when to use other tools. The repository guide requires descriptions to explain the contract, not prompting strategy. Remove the final “Use…” sentence and keep the explanation of missing segment fields. This requirement must be satisfied before merging.
```suggestion
"Return native-binary metadata, every segment with its length, and exhaustive procedure/string counts. When every provider-reported segment agrees on an analysis image base, return it as image_base so callers can relate provider addresses to their loader coordinates. Providers without a segment-enumeration facet omit segments and segment_count instead of failing; treat the missing fields as unobserved, not as an empty binary.",
```
**Context Used:** docs/agents/mcp-tooling.md ([source](https://github.com/morluto/preference/blob/main/docs/agents/mcp-tooling.md))
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 997023ee41
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| .optional(), | ||
| segment_count: z.number().int().min(0).optional(), |
There was a problem hiding this comment.
Correlate the optional segment fields
When an overview is validated or its advertised JSON Schema is consumed, making these properties independently optional admits segments without segment_count and vice versa (and also permits image_base when the entire segment facet is absent). #binaryOverview and the updated public description define only two states—both segment fields present, or all segment-derived fields omitted—so malformed Evidence can pass the named contract and clients must handle states REA never produces; express the facet as a correlated union/dependency, with image_base only in the present branch.
AGENTS.md reference: AGENTS.md:L31-L31
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 476614785e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| /** Fail when one CLI workflow leaves a new owned workspace behind. */ | ||
| export const assertNoNewIdaWorkspaces = (before, after) => | ||
| assert.deepEqual( | ||
| [...after].filter((name) => !before.has(name)).sort(), |
There was a problem hiding this comment.
Other sessions cause false failures
The cleanup check treats every new rea-ida-* entry in the shared root as a leak from this CLI run. If another headless session creates a workspace while the overview runs, verification fails even when its own session cleaned up correctly. This can happen with the default tmpdir() root.
Give the verifier a private root and pass it to the child, or check only workspaces owned by that child.
Prompt To Fix With AI
This is a comment left during a code review.
Path: scripts/lib/ida-verifier-workspaces.mjs
Line: 19
Comment:
**Other sessions cause false failures**
The cleanup check treats every new `rea-ida-*` entry in the shared root as a leak from this CLI run. If another headless session creates a workspace while the overview runs, verification fails even when its own session cleaned up correctly. This can happen with the default `tmpdir()` root.
Give the verifier a private root and pass it to the child, or check only workspaces owned by that child.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 70f20f4d87
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| /** Fail when one CLI workflow leaves a new owned workspace behind. */ | ||
| export const assertNoNewIdaWorkspaces = (before, after) => | ||
| assert.deepEqual( | ||
| [...after].filter((name) => !before.has(name)).sort(), |
There was a problem hiding this comment.
Correlate cleanup entries with the CLI run
When another headless REA process creates a workspace under the same root during cliOverview—especially the shared tmpdir() default selected in scripts/verify-real-ida.mjs—this set difference treats that unrelated rea-ida-* directory as a leak and fails verify:ida even though the reviewed CLI run cleaned up. Prefix plus timing is not ownership proof; isolate this invocation in a unique root or correlate entries with an identity emitted by its child before asserting cleanup.
AGENTS.md reference: AGENTS.md:L19-L19
Useful? React with 👍 / 👎.
Share tagged readiness observations, retain partial provider facts, authenticate bridge identity, bound diagnostics, and preserve cancellation and lost-session reasons. Fail closed for unparsed MIPS ABI attributes and macOS saved Hopper databases without a script-capable bridge route. Reviewed fixes: #2010, #2108, #2513, #2695, #2731, #2771, #2828, #2867, #2868, #2870, #2880, #2919, #2945, #2961, #2981, #2998, #3000, #3002. Validation: 285 focused source/boundary tests passed. Real Ghidra, IDA, Linux Hopper, and Windows provider runs were not repeated. BREAKING CHANGE: MIPS targets with unresolved GNU ABI attributes and saved Hopper databases on macOS are refused rather than advertised as supported.
Preserve XML and Interface Builder identity at their parsing boundary, retain usable Objective-C slots with precise coverage, and keep native trace failures distinct from absence. Add caller-selected Interface Builder summaries backed by complete retained Evidence, and preserve comparison limitations. Reviewed fixes: #1969, #2088, #2108, #2513, #2639, #2684, #2731, #2759, #2875, #2888, #2889, #2970, #2971, #3002. Validation: relevant native/domain focused lane passed 142 tests; earlier Interface Builder/MCP checks passed 24 tests. Real native UI and Ghidra producer coverage was not repeated.
Use one named input-schema projection for clients and catalog identity, preserve dialect declarations, and bound compact schema depth. Keep canonical SDK output validation when output advertisements are disabled. Release request-owned state on cancellation and carry upstream limitations through composed workflows. Preserve doctor full-output envelopes and validate navigation facts at their owner. Reviewed fixes: #2088, #2108, #2513, #2684, #2693, #2695, #2836, #2864, #2868, #2877, #2933, #2998, #3002, #3015. Validation: focused schema, SDK output-validation, context, and workflow tests passed; no schema dialect or canonical output validation was relaxed.
|
TL;DR: Main already has the fix for #2460, built a different way. Main lacks three parts: the real-IDA verifier checks, one test change and one skill paragraph. Those parts pass on Node 24 and 26 with the PR's fake IDA server. Main passes with them added. I tested head 70f20f4 as pushed. GitHub says it conflicts with main 70cd4cb. IDA is a paid, closed-source tool and is not installed here. Every run used the PR's own fake IDA server and tests. What main already hasMain commits 80de314, 55dd21a and d4bd65c name #2513 as a reviewed fix.
Of 18 files, 7 are in main in substance, 4 are test files main also changed, and 7 are not in main. Results
Main plus the PR's verifier passes on the fake IDA server. So main's overview already works from the command line and over MCP with no segment tool. The new count-mismatch case fails in the phase the test expects. Two small gaps remain on main:
Not run
Thanks, Jackzigen, for the fix and the verifier work. A small rebase with just the missing parts might be all that is left. Test setup
CommandsEach run sat under nice and a 6 GB memory cap, with HOME and TMPDIR in a throwaway folder. No test file called setup or doctor. The head command named these 8 files: 🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
Compared this PR with main Main already supports the overview capability/schema and admitted document identity across IDA profiles. The distinct contribution still missing is the real verifier's public CLI overview, CLI/MCP inventory comparison and headless-workspace leak oracle. Please rebase/split around that verification scope and retain the corrected workflow-envelope interpretation: rea-workflow Evidence has nested upstream IDA facts and raw_result:null, so it should not be validated as direct-provider Evidence. Existing source corrections are useful, but neither main's general CI nor this source audit establishes execution against an actual IDA build. Keep that verification gap explicit. PR head reviewed: |
|
Closing this — it looks superseded by #2374: main now reports the admitted IDA program through |
Summary
binary_overviewfailed for every IDA configuration because provider selection could not be satisfied:list_documentswas not declared by the IDA adapter, soresolveAnalysisDocumentfell back tocurrent_document, which the IDA compatibility profiles also do not expose — document resolution failed before any analysis ran.list_segmentswas a hard requirement, but none of the three upstream IDA MCP profiles expose a segment enumeration tool, so no IDA configuration could ever satisfy the composed requirement.Changes
list_documents(IdaProviderCapabilities/IdaOperationRunner/IdaSessionClient): an IDA session binds exactly one target, so the adapter reports the bound input identity — the observed attached-input path, or the headless workspace input path — the same way Ghidra reports its single imported Program.list_segmentsoptional in thebinary_overviewrequirements (CapabilityInventory): requirement entries may end with?; optional facets do not block provider selection.EnhancedTools#binaryOverview): whenlist_segmentsreports capability-unavailable, the tool still returnsdocument/procedure_count/string_countand omitssegments/segment_count(unobserved), mirroring the existing degradation in#findXrefs. Every other segment failure still propagates.segmentsandsegment_countare optional in the output schema; the tool description now states that missing segment fields mean the provider lacks that facet, not that the binary has no segments.Design notes
I considered the two directions raised in the issue:
list_segmentsa lie: no upstream profile can enumerate segments, so the adapter would have to synthesize or fail at run time. Rejected.Testing
src/ida/BinaryOverviewRequirement.test.ts(co-located with the adapter per repo convention):list_documents;binary_overviewrequirements are satisfied whenlist_segments?is absent;provider_missing.test:fast: 426 files / 5528 tests passing.tsc --noEmit,lint,format:check,knip,metadata:check,verify:module-boundaries,verify:architecture-guardsall clean.Closes #2460
Summary by CodeRabbit