Skip to content

fix(ghidra): make checkpoint workflows discoverable - #9246

Merged
gensokyo-dev merged 3 commits into
mainfrom
fix/ghidra-checkpoint-discovery
Nov 7, 2026
Merged

gensokyo-dev merged 3 commits into
mainfrom
fix/ghidra-checkpoint-discovery

Conversation

@gensokyo-dev

@gensokyo-dev gensokyo-dev commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Agents could not discover the existing opt-in Ghidra checkpoint workflow and reported editable persistence as unavailable. Tool descriptions and the default session summary now expose the setting, restart requirement, automatic open/close lifecycle, and actual initial/restored analysis origin. Follow-up to #9236; context #8165.

Change and scope

  • Update shared CLI/MCP guidance and the existing provider limitations. No new tool, public field, dependency or runtime setting switch.
  • Report an initial checkpoint only after confirmed startup; preserve the verified packed path/digest when restored. Before startup or after close, origin remains unconfirmed.
  • Explain the last-successful-save window and distinguish Program metadata from investigation Evidence/Unknown history.
  • Remove prose-only checkpoint tests and the execution-keyword heuristic/exception list, which misclassified “Start with summary” as execution. Keep canonical effect, annotation, ownership and real lifecycle checks. Remove the formatter and fixture scaffolding introduced solely for wording tests.

Scope is ordinary discoverability/provenance within the existing owned-checkpoint boundary. No new target execution, executable writes, client configuration changes, mutation authority, release, tag or version bump. Existing checkpoint format/platform restrictions remain unchanged.

Executed validation

  • Final npm run test:focused -- (9 effects/provider/lifecycle/MCP/catalogue/schema files): 445 passed. npm run check:fast: passed. npm run docs:check: passed, including 9 consistency tests.
  • Existing real verifier: node scripts/verify-real-ghidra-checkpoints.mjs — all 13 CLI/MCP scenarios passed, including cross-process edits, repeated opens, concurrent-owner refusal, identity mismatch and corrupt-state recovery. The relevant runtime/contracts are byte-identical to the tested affad1be2 version: 139.143 s elapsed, 216.345 s local CPU, 1,359.566 MiB sampled process-family peak; no remaining owned descendants.
  • Actual local Codex CLI 0.165.0 (gpt-6.1-sol, xhigh), three isolated sessions, real Ghidra 12.1.4/JDK 21 on Linux x64. Prompts supplied the goal, not the setting or implementation; no source/skill access. Disabled mode found the setting/restart; enabled mode saved edits and reopened to verify; a fresh agent recovered a renamed function and a comment absent from its prompt without loading a query snapshot. Target unchanged; clean shutdowns. Test prompts/runners/traces stay outside the repository.
Observed agent task costs
Scenario MCP calls Input tokens (cached) Output Elapsed / local CPU Sampled family peak RSS
Disabled setup discovery 4 273,575 (238,720) 680 39.249 / 7.955 s 888.738 MiB
Save edits and reopen 11 537,615 (492,032) 2,262 102.905 / 45.049 s 1,801.031 MiB
Fresh-agent restoration 8 481,580 (437,376) 1,430 71.931 / 25.645 s 1,420.223 MiB

Baseline c07ab4b99, same disabled task: incorrect setup advice, 5 calls, 392,580 input / 352,128 cached / 2,603 output tokens; 82.920 elapsed / 9.416 local CPU s, 1,016.688 MiB peak. All final status requests used summary. Whole-turn usage; individual runs, not a universal reliability/speedup claim. Four-core affinity; Ghidra two active processors and 1536 MiB heap. RSS sampled every 250 ms: shared pages may count twice; brief/reparented children may be missed. Model-service CPU unmeasured. One fixture/model and seven native/session MCP tools; no new real macOS/Windows coverage. Agent-visible wording is unchanged since these runs.

Author readiness

Human owner: @gensokyo-dev (author exempt under CONTRIBUTING.md).

  • 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.

Before merge

  • Concrete problem and related work linked; existing authority boundaries retained.
  • Focused Conventional Commit outcome; owning contracts/docs updated.
  • Meaningful lifecycle/identity checks retained; wording assertions and unnecessary scaffolding removed.
  • Executed evidence and its limits recorded; no credentials, generated outputs or test prompts committed.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build, CI, packaging, and publishing bug Something isn't working provider: ghidra Analysis provider / engine: ghidra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants