Repository navigation
refactor(cli): project APK signature, desktop application and EVM inspectors from contracts - #10603
Conversation
Codex Review Summary: ✅ CompletedThis 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 reviewed changes appear safe to merge, with no actionable issues found. SummaryMoves three inspectors to shared contract-backed CLI registration:
No actionable regressions, security issues, or stored-rule violations were found in the source review. Tests were not run during this review.
No higher dependent PR is listed in the supplied stack. Live supersession and discussion checks were unavailable because GitHub access was not authenticated. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["CLI arguments"] --> B["Contract-backed flags and positionals"]
B --> C["Resolve admitted caller paths"]
C --> D{"APK or desktop delivery?"}
D -->|Yes| E["Check delivery choices"]
E --> F["Inspect complete Evidence"]
D -->|EVM| F
F --> G["Await service cleanup"]
G --> H["Return Evidence or publish bundle and selected summary"]
Reviews (1) · Last reviewed commit: "refactor(cli): project APK signature, de..." · Reviewed by Greptile |
4897cb8 to
3c850d0
Compare
645d108 to
2319fe0
Compare
…pectors from contracts
3c850d0 to
e809764
Compare
2319fe0 to
03b354c
Compare
…pectors from contracts (#10603)
Summary
Fifth slice of plan W1, stacked on #10600 (base
refactor/cli-contract-view-delivery; retarget as the lower PRs merge). Refs #10583.It migrates three single-command families that the contract command description already supports:
inspect-apk-signature,inspect-desktop-applicationandinspect-evm-interface. Their hand-written options, view decoding and input spreads are deleted.Problem and expected behavior
Each command re-declared its contract fields as CLI options and mapped them back by hand:
inspect-apk-signaturedecoded--view, re-parsed the input and added the view kind itself.inspect-desktop-applicationspread its two limits.inspect-evm-interfacewrappedproducer_limitsin a schema copy and spreadtimeout_ms.The derived commands must keep their flags, including the snake_case
--max_entriesand--max_probe_bytes, the second positionalencoding, their help text and--schema, and their refusal messages, such asview must be a JSON APK signature selection.Change and scope
inspect-apk-signature:viewDeliverywith kindapk-signature. The handler passesdetail: "complete"to the service, as before, because the CLI delivers the summary itself.inspect-desktop-application:evidenceDelivery. The CLI keeps its snake_case option names as projection renames.inspect-evm-interface:pathandencodingare positionals, andproducer_limitsis JSON text with the sharedPRODUCER_LIMITS_HELP.detailis omitted with a reason, as before.rel/target. Theencodingenum is the first such positional.audit-release-exposure: a CLI-only--fail_onthat sets exit status 3.inspect-gpu-code-objects:object_idsandtargetsare JSON decoded at run time, not at argv parsing.inspect-il2cpp-metadata: CLI-only seed options and auxiliary caller paths.all/all_linesflag spelling a null limit.rangeflattened into--offset/--length.Contract and boundary impact
--schema: semantically identical for all three commands.--evidence_outputlast).Expected effects:
(No effect changes: the migrated commands keep their existing behavior.)
Evidence and regression coverage
registers the migrated commands).--schema --format json,--helpand 17 argv runs before and after, throughcreateCli().serve. The argv runs cover malformed and refused views, summary without--evidence_output, non-decimal and out-of-range limits, an invalidencoding, malformed and unknown-key--producer-limits, and an out-of-range timeout.--schema: semantically equal for all three commands.capability_unavailablerefusal before and after; no successful EVM run was made.Validation performed
npm run check:fast: passed.npm run knip: no findings.npm run test:focused --15 files: the source change passed all 14 files other than the parity guard (APK signature acceptance and lifecycle, desktop application CLI, EVM module contract, local-path admission, Evidence output publication, integer arguments, input-schema-required, and native artifact finalization). After the test-only fix to positional probes, the parity guard passed 132 tests.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.