Skip to content

test(ghidra): consolidate session authority checks - #13367

Merged
morluto merged 2 commits into
mainfrom
test/campaign-ghidra-handshake-authority
Nov 22, 2026
Merged

morluto merged 2 commits into
mainfrom
test/campaign-ghidra-handshake-authority

Conversation

@morluto

@morluto morluto commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Changes

  • Check the imported language, compiler and image base with one positive handshake and independent wrong values under the same authenticated identity.
  • Author allowed bridge methods independently of the receiver. Exercise duplicate or displaced methods without changing the list length, excess duplicate methods, and each database edit in otherwise valid Windows and existing-project read-only handshakes.
  • Isolate the existing-project marker, unknown analysis completeness and timeout requirements. Keep typed refusal and independent PDB and policy shape checks.
  • Remove the redundant capability-set allocation. Exact list length and membership of every required method already exclude duplicates. Remove an unused admission argument at the handshake parser while retaining the admission diagnostics.

Four fewer cases and 32 fewer test lines.

Validation

  • Six exact suites passed 469 tests, including the controlled socket and child lifecycle suite. npm run check:fast passed.
  • Nine controls caught wrong capability count or membership, false read-only or mutation authority, unbound project identity, wrong completion or timeout facts, forced rejection of a valid run, and lost image-base commitment.
  • The socket and child fixtures exercised the production TypeScript boundary. No real Ghidra or native Windows process ran.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T09:29:28.606830Z 45c57e6 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 Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable defects remain.

Summary

Consolidates Ghidra handshake tests and removes two redundant pieces of production code.

  • Handshake tests group authority checks around one shared session fixture.
  • Ghidra handshake parsing skips an extra capability-set pass.

Reviews (3) · Last reviewed commit: "test(ghidra): surface typed handshake er..." · Reviewed by Greptile

Comment thread src/ghidra/GhidraSessionValues.test.ts Resolved
@morluto
morluto force-pushed the test/campaign-ghidra-handshake-authority branch from 4c6c07e to 45c57e6 Compare November 22, 2026 09:28
@morluto

morluto commented Nov 22, 2026

Copy link
Copy Markdown
Owner Author

@greptileai review this PR at its current head 45c57e6aa9e37e47e5af41cc8a9af33ec67f66b4.

@morluto
morluto enabled auto-merge (squash) November 22, 2026 09:36
@morluto
morluto merged commit 6050e08 into main Nov 22, 2026
41 of 42 checks passed
@morluto
morluto deleted the test/campaign-ghidra-handshake-authority branch November 22, 2026 09:43
@morluto morluto added area: tests Test suite and verification provider: ghidra Analysis provider / engine: ghidra labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suite and verification provider: ghidra Analysis provider / engine: ghidra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant