Skip to content

fix(verify): expect the current instruction schema to refuse the removed undecodable status - #11092

Merged
morluto merged 1 commit into
mainfrom
fix/verifier-phase5-schema-values
Nov 15, 2026
Merged

morluto merged 1 commit into
mainfrom
fix/verifier-phase5-schema-values

Conversation

@morluto

@morluto morluto commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Summary

npm run verify:ghidra:com failed on main with real Ghidra 12.1.4. The producer correctly reported not-in-listing for an unlisted address. The verifier then asserted that the same record, relabelled with the legacy undecodable status, still parsed. #10946 (Phase 5, inside #10861) deliberately removed undecodable together with the other values that existed only for historical native Evidence. The assertion was testing a compatibility promise that no longer exists. No linked issue.

Problem and expected behavior

  • Trigger: GHIDRA_INSTALL_DIR=<Ghidra 12.1.4> npm run verify:ghidra:com on main.
  • Failure: assert.ok(nativeInstructionSchema.safeParse({ ...unlisted, status: "undecodable" }).success).
  • Expected under the current contract: the producer's not-in-listing record parses, and a record carrying the removed undecodable status is refused.

Change and scope

  • scripts/verify-real-ghidra-com.mjs: assert that nativeInstructionSchema accepts the producer's record and refuses the relabelled one.
  • Sibling sweep for the other removed Phase 5 values and fields in scripts/: unrecorded, unknown visibility, modinfo_field_exceeds_limit, declaration_coverage unknown, type-names-v1, and Evidence bundles built without evidence_format. No other verifier or script uses them. The two verifiers that import bundles (verify-package-mcp.mjs, verify-real-ghidra-project-coverage.mjs) import bundles REA itself exported, so those bundles carry the current format.

Contribution scope: not applicable (verifier fix).

Contract and boundary impact

  • Semantic owner and earliest changed stage: nativeInstructionSchema (src/domain/native/nativeInstruction.ts); the verifier follows it.
  • Contribution scope fit and linked maintainer decision: not applicable.
  • CLI and MCP/tool-catalog contract: none.
  • Provider, bridge, target-format, or platform compatibility: none.
  • Evidence, artifact, provenance, or reconstruction contract: none (verifier only).
  • Target selection, authority, upstream behavior, and cleanup details (if applicable): none.
  • Generated metadata (docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs and skills/; edit authored instructions in .agents/skills/reverse-engineer-anything/ and never commit build outputs): none.

Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

Evidence and regression coverage

  • Tests added or updated: the real-provider verifier itself.
  • Base reproduction or other evidence: the previous W4 session observed this failure with Ghidra 12.1.4 on macOS, running the unchanged base file. The removed enum value is visible in feat(evidence)!: give Evidence bundles a format revision owned by one module #10861's diff of nativeInstruction.ts.
  • User-visible CLI/MCP output (if applicable): none.
  • Remaining proof gaps: Windows and Linux Ghidra were not run.

For evidence-bearing changes:

  • Observed, derived, and inferred claims remain distinguishable.
  • Artifact identity, source provenance, and failed attempts remain preserved.
  • Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.

Validation performed

  • GHIDRA_INSTALL_DIR=~/Applications/ghidra_12.1.4_PUBLIC npm run verify:ghidra:com (macOS, real Ghidra 12.1.4): ok: true, mocked: false, cleanup: "complete"; 62 s elapsed, 967 MB peak RSS.
  • grep over scripts/ for the removed Phase 5 values and fields: only this site matched.

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Real Hopper/Ghidra, browser, or OS coverage: real Ghidra 12.1.4 on macOS.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: none.

Author readiness

Human owner:

  • 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

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

…ved undecodable status

verify-real-ghidra-com asserted that an unlisted-address record relabelled with the legacy undecodable status still parsed. #10946 removed that value with the other historical native enum values, so the lane failed on main after a correct not-in-listing result. The verifier now checks that the producer's record parses and that the relabelled record is refused.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-15T12:11:45.291900Z
We couldn’t complete this review. Comment @codex review to try again.
7c0cae6 PR opened
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps

greptile-apps Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This verifier-only change appears safe to merge.

Summary

Updates the real-Ghidra COM verifier to follow the current instruction contract.

  • The real-Ghidra check accepts current statuses and rejects the removed one.

Reviews (1) · Last reviewed commit: "fix(verify): expect the current instruct..." · Reviewed by Greptile

@morluto
morluto merged commit c813adb into main Nov 15, 2026
7 checks passed
@morluto
morluto deleted the fix/verifier-phase5-schema-values branch November 15, 2026 12:19
@morluto morluto added area: domain Domain logic, errors, and pure functions bug Something isn't working labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: domain Domain logic, errors, and pure functions bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant