Skip to content

perf(reverse): add retained GDB and objdump summaries - #5614

Merged
gensokyo-dev merged 2 commits into
mainfrom
perf/5584-command-output-summary-20261020
Oct 20, 2026
Merged

gensokyo-dev merged 2 commits into
mainfrom
perf/5584-command-output-summary-20261020

Conversation

@gensokyo-dev

@gensokyo-dev gensokyo-dev commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #5584.

Large GDB/objdump replies repeat command output in normalized/raw forms and GDB stream groupings. Explicit detail: "summary" retains the complete parent and returns existing facts with less duplication. Default complete Evidence and its identity remain compatible.

GDB keeps every ordered MI record, correlated result and completion/exit facts; objdump keeps opaque stdout/stderr and digest-change facts. Both preserve source parameters, provenance, partial/unknown semantics and nullable subjects. CLI and MCP reuse the existing analysis-view projection; CLI saves a nonoverwriting complete bundle. The domain owns one shared fact codec. No new tool, protocol decoder, live cache or command authority.

Validation:

  • Latest-head CI static checks pass all 8 tasks, including full typecheck; package build passes. Local strict checks of affected boundaries/transitive source, six standard static tasks, three delivery-oracle regressions, and docs/5 README checks pass. Resource-stopped local full typechecks are not reported as passes.

  • 383 focused tests across 14 files, including SDK/Ajv schemas, GDB cancellation/queues/ownership/cleanup, nine CLI publication regressions and 54 neighboring model-artifact tests; rebuilt and repeated after rebasing onto main@7d6f90485.

  • Real GDB 13.1/objdump 2.40 on installed Bash: all 239/15,428 selected function bytes match independently mapped ELF ranges. CLI default Evidence matches baseline; summary exports, overwrite rejection and a durable caller PTY are verified.

  • Actual Codex 0.163 client with all 210 schemas: completed small/large whole-request JSON token proxies 605,133 → 580,070 / 1,269,405 → 1,091,290, including replays and compaction. Local deterministic SSE, no AI inference/usage/quality claim. Small task is slower; retained bundles grow. Default-budget incomplete baseline is excluded from gains.

  • Resource-guarded runs verify payload exit/cleanup, CPU and peak family memory, with zero OOM events. Reproduction and full tradeoffs / receipt.

Real Rizin/Cutter and GUI workflows remain unverified. Their semantics are unchanged. The final integrated 211-tool catalog and real GDB/objdump/client entrypoints were revalidated; original performance numbers remain pinned to the 210-tool cohort. Remaining source/platform CI jobs were still queued at the final merge decision; the owner explicitly authorized a verified bypass.

Author readiness

Human owner: @gensokyo-dev

The owner dictated these declarations and authorized initial review and merge in this session.

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T17:11:04.839969Z 7269605 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Medium impact] The PR appears safe to merge; no new actionable issues were found.

Summary

Adds opt-in GDB and objdump summaries while keeping complete source Evidence available.

  • GDB and objdump can return retained summaries of command output.
  • CLI commands can save full Evidence and return a smaller summary.
  • Experiment records show command-summary output and client-input tradeoffs.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Run GDB or objdump] --> B[Complete Evidence]
  B --> C{Requested detail}
  C -->|Complete| D[Return original Evidence]
  C -->|MCP summary| E[Retain complete parent]
  C -->|CLI summary| F[Save complete bundle without replacement]
  E --> G[Project command summary]
  F --> G
  G --> H[Return summary with parent identity]
Loading

Reviews (3) · Last reviewed commit: "test(reverse): harden summary delivery v..." · Reviewed by Greptile

@gensokyo-dev
gensokyo-dev force-pushed the perf/5584-command-output-summary-20261020 branch from 94965db to 7269605 Compare October 20, 2026 17:07
@gensokyo-dev

Copy link
Copy Markdown
Collaborator Author

Final validation for 726960566389097737ebf636acdaf656ff150334: main refresh preserves both model-artifact and command views; 383 tests/14 files pass, plus strict affected-source typechecking, six static tasks, docs/5 README checks, three Python acceptance regressions, real GDB/objdump SDK workflows, and actual Codex delivery with all 211 tools. Native instruction bytes remain exact and complete parents are exported after cleanup. Refreshed package SHA-256: e2214f0b29d7d64dca87c9cfe368b110bfe4cd1f8296d12e59da81a90a7b8122. Original paired measurements are unchanged.

Latest-head CI static checks pass all 8 tasks, including full typecheck; CI package build and both automated reviews pass (Codex no findings, Greptile 5/5). Local full-typecheck resource stops remain recorded, not passes.

Source/platform jobs remain queued and are not claimed as passed. The owner explicitly authorized bypass for a verified PR; proceeding with that permission after the validations above. Real Rizin/Cutter/GUI coverage remains unavailable. No co-author trailer is included.

@gensokyo-dev
gensokyo-dev merged commit 17f581f into main Oct 20, 2026
35 of 40 checks passed
@gensokyo-dev
gensokyo-dev deleted the perf/5584-command-output-summary-20261020 branch October 20, 2026 17:20
@github-actions github-actions Bot mentioned this pull request Oct 20, 2026
3 tasks done
kangyishuai pushed a commit to kangyishuai/rea that referenced this pull request Oct 20, 2026
…ansition-view

Resolve the inspect_analysis_view description conflict with main's
retained GDB and objdump summaries (morluto#5614). The description keeps main's
text and adds this branch's capture_browser_scenario additions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@morluto morluto added performance Performance regressions, scaling limits, and bounded-resource work provider: gdb Analysis provider / engine: gdb provider: objdump Analysis provider / engine: objdump area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior performance Performance regressions, scaling limits, and bounded-resource work provider: gdb Analysis provider / engine: gdb provider: objdump Analysis provider / engine: objdump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Compact command replies with retained complete GDB/objdump Evidence

2 participants