Repository navigation
fix(cli): advertise required CLI selector choices - #6759
gensokyo-dev merged 376 commits into
Conversation
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. |
[Low impact] The PR appears safe to merge; no blocking issues remain. SummaryThe PR adds selector-choice guidance to CLI descriptions without changing accepted inputs or handler checks.
Reviews (5) · Last reviewed commit: "test(cli): bound selector rejection case..." · Reviewed by Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 32ae0a8181
ℹ️ 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".
This reverts commit 56eca648d. The equivalent completed two-client measurement increased elapsed and CPU time, so compiler sharing has not established a benefit.
|
Follow-up in
An initial combined run hit the existing 30-second rejection-case budget; an isolated base run passed in 18.7 s, and the updated-head case later passed in 26.8 s. The structural cause was 12 external CLI invocations sharing one test deadline. That test is now six command-specific cases with the same 12 calls and assertions; no timeout was increased and no semantic case was removed. All 38 tests passed under default budgets, with those cases taking at most 5.7 s. Full For scope: this is an ordinary discovery-guidance correction; input schemas keep their optional alternatives and handlers are unchanged. There is no new capability or authority requiring a separate maintainer decision. The original author readiness declaration is retained. A constructed three-command discovery→selector-validation task (missing targets/invalid PID, no backend admission) used 9 calls on main versus 6 when the caller followed the new metadata: 2,674/2,273 estimated request/reply tokens, 37.68/32.08 elapsed seconds, 26.13/14.82 CPU-seconds and sampled family peak 441/438 MiB. Both used two allowed CPUs, fresh processes and warm filesystem. This illustrates the avoided validation retry; it is not an observed LLM error-rate or backend-performance measurement. Raw discovery outputs, all calls/replies and coverage limits were retained locally. |
|
CI run 40026612762 is complete with failure. I pinned the actual checkout, rather than relying on the PR branch’s earlier main merge: the CI test merge is Every reported test failure reproduced on that clean actual CI base, with identical failure titles:
Commands: The other seven shards were cancelled by fail-fast; they did not pass. Portable tests and CI required failed as aggregates. Static checks, package build, bundled Windows native controls and Linux native package baseline passed. Latest Codex review has no actionable findings, Greptile passed, and both old coordinate-guidance threads are resolved with executed CLI evidence. Independent default-budget selector/schema/help/manifest/Frida validation passed all 38 tests and full |
gensokyo-dev
left a comment
There was a problem hiding this comment.
Reviewed final head 5642451561add410b5dbb149e73be548975bd41b. The discovery correction preserves the existing selector-validation owner and accepted inputs. Mandatory choices remain visible in each independently emitted args/options schema; equal-selector guidance excludes source-file offsets, whose own description retains the separate coordinate meaning. Frida’s exactly-one-script guard remains before target admission.
The follow-up avoids repeating unnecessary explanation and removes a deadline-sharing representation in the touched selector rejection test: one 12-invocation case became six command-specific cases with the same 12 calls and assertions. No global timeout was increased and no semantic coverage was removed. All 38 relevant default-budget schema/help/manifest/AJV/CLI/Frida tests and full npm run check passed. The exact equal-text address/file-offset case was executed through the compiled CLI; both old review threads are resolved. Detailed output-token estimates, constructed workflow measurements and their limits are in the body/follow-up; no backend or actual LLM-token verification is claimed.
Main advanced to f470350528ffdfd3f1ec800ffafbf24ae5c7b593; I integrated the unchanged PR there (tree 4cf499db919559f0aad1e3e337e56a365d02da34) and reran the same 38 tests plus full check successfully. I found no remaining directly related cleanup.
CI run 40026612762 completed with 13 test failures; every failure title reproduced on the actual clean CI checkout base f4179f511fc78f14d422c42408ecff7336a8d1eb, confirmed from test-merge e46f4bb89dbee89362a343ef1c820548574f97f8 parents. The other seven shards were cancelled by fail-fast and did not pass. Static/build/native-package checks and automated reviews succeeded. Approval records the code review and executed validation above; it does not relabel failed/cancelled CI checks.
|
Final verification for reviewed head CI run 40026612762 completed with 13 test failures, all reproduced on actual clean CI base Static checks, package build, Windows native controls, Linux native package baseline, PR title/readiness and Greptile passed. Updated Codex review has no actionable findings. Both coordinate-guidance threads are resolved with exact compiled CLI checks and no directly related cleanup remains. Applying the maintainer’s explicit authorization to bypass proven pre-existing/unrelated CI failures and merge this exact reviewed head. Failed and cancelled checks remain recorded as such. |
gensokyo-dev
left a comment
There was a problem hiding this comment.
Reviewed the reconciled final diff against main bcd18d28. The missing rule belongs to discovery metadata: separate args/options schemas cannot inherit the command description. Shared selector guidance now lives with the selector owner, covers the new inspect-native-api consumer, and preserves the actual handler and schema admission rules, including source-file-offset coordinate separation. Current main path routing and canonical bounds are retained. The affected CLI tests now assign process budgets per command while preserving all requests/assertions and default deadlines. All 48 targeted tests, typecheck, lint/module boundaries, metadata, architecture guards and touched-file formatting passed. The full-check formatting failures and knip unused export reproduce on clean main; CI for this head remains pending. No related cleanup remains in the touched guidance ownership. This is an AI-assisted technical review and does not assert a new human review.
|
Final CI attribution for head The CI checkout is merge
Static checks, build, documentation, website checks, Windows native controls, Ghidra bridge compilation and the remaining completed conformance lanes passed. Seven other portable shards were cancelled by fail-fast, not passed. The aggregate All 48 targeted discovery/selector/Frida tests passed locally at the final head with default budgets. Typecheck, lint/module boundaries, metadata, architecture guards and all seven changed-file formatting checks passed. Initial full local check failures on integration base The description has been rewritten for the final seven-command/shared-owner scope and current benchmark pins. Original author initial readiness is preserved. Final technical review: 5634947383. User authorization permits bypass for proven unrelated/main failures; using it for merge with these validation gaps recorded. No new human review is asserted. |
|
Verified actual squash-merge commit |
Summary
Fixes #6467. Advertise required selector alternatives in schema, help and the full LLM manifest for seven binary-analysis commands, including
inspect-native-api, plus Frida’s exactly-one-script-source rule.Problem and expected behavior
Separate args/options schemas omit the command description. Optional alternatives must explain their required choice while admitting named-only calls. Main partially covered six commands during review; the new
inspect-native-apicaller and positional fields still lacked this guidance.Change and scope
Keep selector guidance with its shared resolver; put the choice on independently consumed fields and agreement details on commands. Decompile distinguishes
--file-offsetused alone. Preserve handlers, accepted inputs, current main’s path routing and canonical bounds. Split existing multi-command process tests by command with identical requests/assertions and unchanged deadlines. AI-assisted contribution.Follow the contribution scope.
Unresolved scope, authority, side effects, or required verification block
integration. Link the required maintainer scope decision for new providers or
capabilities involving target execution, injection, mutation, or protection
recovery; ordinary fixes within existing boundaries may state "not applicable".
Draft PRs may leave the scope decision pending and the readiness and merge checklists
unchecked. Maintainers can help resolve open questions.
Contract and boundary impact
docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): No authored/generated catalog or install change.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
bcd18d28lacks required-choice metadata forinspect-native-api; executed schema-guided caller needs one additional rejected request.rea inspect-native-api --schema --jsonnow describes both alternatives as “Supply at least one of the positional address or --procedure.” Frida fields say “Provide exactly one of --script or --script-file.”For evidence-bearing changes:
Not applicable: this changes discovery guidance; no Evidence contract changes.
Validation performed
Head
b944d42e1, integrated with mainbcd18d28; Node 24.22.1/npm 11.16.0:npm run test:focused -- tests/boundary/cli/analysisSelectorCli.test.ts tests/boundary/cli/cliInputSchemaRequired.test.ts tests/boundary/cli/fridaCli.test.ts— 48 passed with default budgets.npm run typecheck,npm run lint:built,npm run metadata:check,npm run verify:architecture-guardsandoxfmt --threads=2 --checkon all seven changed files — passed.npm run check— blocked by six pre-existing formatting failures; subsequentnpm run knipalso reports an existing unused export. Both failures reproduced unchanged on clean mainbcd18d28; no unrelated files changed.bcd18d28versusb944d42e1: 9→8 calls, 3,009→2,920 tokenx-estimated argument/reply tokens, 28.18→25.68 s elapsed, 22.62→20.30 CPU-s, sampled family peak 455→451 MiB. Two allowed CPUs, fresh processes, warm filesystem; one observation each, no OS-cold samples. Actual model tokens, prompting/protocol overhead and backend costs are unmeasured. These are constructed caller measurements, not a model-performance claim.1252f17f0and its main CI run; seven portable shards were cancelled. Static/build/docs and other completed conformance checks passed. Aggregate gate is pending at the time of this update. Exact job links and failure comparisons. Authorized bypass applies only to these proven baseline failures. The earlier local formatting/knip problems onbcd18d28were fixed by newer main; actual CI static checks pass.Compatibility, safety, and release
Breaking changes or migration steps: None.
Real Hopper/Ghidra, browser, or OS coverage: Linux CLI only; provider execution unnecessary for metadata changes.
Package or release metadata impact: None.
Security, privacy, process, or containment review: Input acceptance and handlers unchanged.
Author readiness
Human owner: @mvanhorn
Before merge
type(scope): outcome.Post-merge verification at
9dde3fd6: all 48 targeted tests passed again, and the constructed four-command discovery/selector workflow completed with all 8 calls/assertions passing. This verifies the actual merged runtime, not only the PR branch.