Repository navigation
perf(frida): add retained summaries for session status - #5661
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. |
|
Final local verification for
Qualified native cases verify the controlled spawn's birthtime/cgroup, script digest, contiguous 2,963-export capture, parent/view metadata, and natural target exit. Payload-exit counters confirm zero limit/OOM events and drained descendants; final whole-scope counters remain unknown after teardown. Full data remains available through the exact parent ID and complete export. Long-lived/saturated queues and remote-device performance remain unmeasured. The integrated test gate exposed a pre-existing module-mock preload assumption after the shared-service import. That one cancellation test now owns an isolated process and proves the mocked read ran. An existing lifecycle metadata case timed out when projects competed on one CPU; the serial gate passed with unchanged timeouts. Failed attempts remain separate from completed results. Inspector has a separate real-REA application qualification (776 scripts matched by concurrent native hash/length metadata) and the bundled CLI/MCP verifier passed. ADB is unavailable on this host. The additional bundled Frida verifier's functional success had an unverified payload cleanup receipt and is excluded from qualified resource results. These limits and exact pins are in the audit record. |
[Medium impact] The PR appears safe to merge; the previous documentation issue is fixed and no new blocking issue was found. SummaryAdds optional Frida status summaries while retaining complete observations. Default replies keep their existing payloads.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A["frida_session_status"] --> B["Read live session"]
B --> C["Complete Evidence"]
C --> D["Retain parent"]
D --> E["Return summary and parent ID"]
D --> F["get_evidence_bundle: metadata discovery"]
D --> G["export_evidence_bundle: complete messages"]
Reviews (2) · Last reviewed commit: "docs(frida): clarify retained message re..." · Reviewed by Greptile |
|
@codex review |
|
The Source-tests failure is reproduced on untouched PR base
The original Source CI log reports those same eight IDA assertions (12,386 other tests passed). This is baseline evidence, not a passing check. Per the authorized scope, I am leaving that unrelated failure unchanged. The valid review correction is in |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
|
Final head The previous head passed full CI Static checks. Source CI's eight IDA retryability failures reproduce on the untouched base, as recorded above. Latest repeat CI remains queued/cancelled in part; it is not being described as fully green. With the human owner's explicit authorization to bypass verified baseline/queue blockers, proceeding with the checked-head squash merge. |
…ansition-view Resolve the inspect_analysis_view description conflict with main's Frida session-status summaries (morluto#5661). The description keeps main's text and adds this branch's capture_browser_scenario additions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
Repeated state checks replay all queued Frida messages. A real libc export capture contains 2,963 exports in 50 messages: each complete status reply is about 463 KB.
Add optional
frida_session_status(detail="summary")to return session identity/state, scripts, retained message count and truncation, with the complete parent retained. Omitted/complete detail preserves existing Evidence and payloads. Fixes #5640.Change and boundary impact
process-globallane. The new shared-service import exposed its module preload assumption; cancellation precedence remains tested, including proof that the mocked read ran.Executed evidence
1629266e3(8 failures, 25 passes inIdaOperationFailures.test.ts). This is an unrelated baseline failure; it is not reported as a passing check. Reproduction record.npm run check:fast— passed (full typecheck and lint; guarded retry after a host-memory stop).cl100k_basecompact-JSON estimation, not actual model usage. Default-budget complete JSON is truncated; that incomplete baseline is excluded from gains.Measurements, native inputs, failed attempts, resource accounting and reproduction.
Small observations cost more with the summary wrapper. No general latency/CPU improvement is established; full messages still consume retained memory and the derived record grows the bundle. Long-lived/saturated queues, remote Frida and real ADB devices are unqualified. Inspector has separate real-application/native-metadata qualification, with its limits recorded; its existing projection is unchanged. The additional bundled Frida verifier's payload cleanup was unverified and is excluded from qualified resource results.
Author readiness
Human owner: @gensokyo-dev
The following owner declarations are transcribed at the human owner's explicit standing instruction in this session.
Before merge
type(scope): outcome.