Skip to content

test(native): verify real PE and DOS entry views - #2216

Merged
N0zoM1z0 merged 7 commits into
mainfrom
feat/native-view-verification-20261012
Oct 12, 2026
Merged

N0zoM1z0 merged 7 commits into
mainfrom
feat/native-view-verification-20261012

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Native paged delivery needs real-artifact evidence before expanding the WASM summary approach. Record public ShareX native PE and FreeDOS DOS MZ entry workflows, including a small PE function where four retained facets cost more bytes than its complete dossier. Continues #2016; the broader issue stays open.

Problem and expected behavior

A smaller individual reply does not establish a cheaper complete investigation. Verify identical source facts and identities through actual Ghidra/MCP and real Codex CLI, retain failed calls and unknowns, and measure the complete question before recommending another API change.

Change and scope

Add two digest-pinned shipped inputs and question templates, extract the existing jq native experiment into a shared native helper, and add an explicit entry-views verification mode. In that new mode, keep selected facts separate from original Evidence reference maps at the producing boundary; preserve both runs' provenance in comparison reports. Preserve the existing jq entry/main call sequence. Extend the grader to compare exact values for equivalent native answer representations and reject changed units/ranges/identity/load metadata.

Curated findings: native entry-view checkpoint. Detailed JSON, binaries, model transcripts and credentials remain outside Git.

Contract and boundary impact

  • Semantic owner and earliest changed stage: experiment driver and its answer grader; no production semantics change.
  • CLI and MCP/tool-catalog contract: none. Existing tool names, accepted inputs, complete defaults and schemas are unchanged.
  • Provider, bridge, target-format, or platform compatibility: no provider code changes. Actual Ghidra 12.1.4 on Linux inspects shipped Windows PE and original compressed DOS MZ.
  • Evidence, artifact, provenance, or reconstruction contract: no production changes. Facets are checked against original producer facts, target digest, parent ID and distinct view IDs. Unknown/static/packed-target limitations remain explicit.
  • Process execution, authorization, cleanup, or containment impact: existing serial one-CPU/4 GiB hard memory scopes; default auto-analysis, ephemeral session close, unchanged target bytes, copied-profile cleanup. No target execution.
  • Generated metadata, package, or installation impact: none; no generated outputs or release metadata committed.

Evidence and regression coverage

  • Tests added or updated: reproducible experimental native workflows and exact-value grading; sixteen focused CLI producer/comparator regression cases. Different run-specific references compare successfully, while item/coverage/limitations/unknown differences remain failures; reused parent/facet/summary IDs are rejected, and the DOS load-image source is retained for its metadata and derived entry seed. A stale verified load image is rejected before procedure lookup and the session is closed. Completed DOS load-image observations and their reported source IDs are required for a load-image grade; missing/failed/unreferenced sources or wrong observed target/entry are rejected. These negative cases are synthetic grader fixtures, not real-provider/resource measurements. No production behavior change.

  • Executed evidence: both public SDK workflows; three actual Codex CLI trials (gpt-5.6-terra, high; PE twice, DOS once). Selected facts/references/lifecycle checks match original observations.

  • Existing driver regression: replay actual recorded jq entry and entry/main replies, preserving selected facts/profile and 4/12-call ordering. Replay actual PE/DOS replies against the committed extracted helper with exact answer/9/10-call agreement. These are replays, not fresh provider runs.

  • User-visible CLI/MCP output: unchanged; experimental notes include real response sizes and complete task costs.

  • Remaining proof gaps: Linux static inspection is not Windows runtime/OS coverage; compressed DOS entry analysis is not editor logic or COM coverage; final cgroup closeout counters are unverified. No overall native speedup or resource-qualified performance win is claimed.

  • 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

  • Public measure.mjs --native-question entry-views --schemas selected — PE/DOS exact selected-fact and Evidence checks pass; native summary refusal recorded separately.
  • agent-trial.py + review-model.py --domain native — three real model answers match selected facts and cleanup; strict overall grades remain unverified because final resource counters are unavailable. Raw first grader failures and equivalent-representation regrades are preserved.
  • Five grader negative probes — reject wrong text unit, returned length, inclusive range end, containing-procedure display and load segment, without re-running models.
  • npm run test:focused -- tests/boundary/cli/nativeEfficiencyComparison.test.ts — sixteen cases pass; final focused check 2.9 s, sampled family peak about 215 MiB. The old producer reproduces the false fact differences; the duplicate-ID recording port is also rejected; corrected recorded PE/DOS and jq replays preserve facts/references/order. All three original real transcripts were regraded with the observed-source checks and preserve selected facts/lifecycle outcomes; resource final-counter uncertainty remains unchanged. No providers or models rerun for these review fixes.
  • node --check, Python py_compile, formatting and git diff --check — pass.
  • npm run check:fast — both tasks pass; cold gate 112.6 s, sampled peak about 3 GiB with memory.high events, explicitly excluded from performance claims. Initial pre-push gate then passed from cache. After adding the focused regression, the required pre-push type/lint gate passed cold in 113.1 s and the identity follow-up in 110.2 s DOS-source follow-up in 110.1 s, digest follow-up in 115.1 s and source-binding follow-up in 109.5 s; its memory.high events remain excluded from performance claims.

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Real provider scope: actual Ghidra 12.1.4 Linux; two specific shipped artifacts, no Hopper/IDA or Windows runtime claim.
  • Package/release metadata impact: none; no release or deployment.
  • Containment review: original digests verified before/after; session close and profile removal confirmed. SDK/model last-observed event counters are zero but final counters are unknown, never substituted with zeros.
  • Known REA issue: advertised native summary is rejected. Both SDK and PE agents reproduced it; logged in the requested /tmp handoff for team repair. This PR does not fix it.

Review checklist

  • This PR addresses a concrete agreed investigation.
  • One focused outcome and Conventional Commit title.
  • Related issue linked and remains open.
  • Relevant observable behavior and meaningful grading failures checked.
  • Owning experiment docs/inputs updated; generated metadata not affected.
  • Representative public workflow observations recorded; product output unchanged.
  • Final diff checked for credentials, unrelated cleanup and unsupported claims.

N0zoM1z0 and others added 2 commits October 12, 2026 14:26
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Accept explicitly equivalent native answer representations while preserving exact source facts and unknown resource qualification. Keep detailed receipts outside Git.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@N0zoM1z0 N0zoM1z0 self-assigned this Oct 12, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 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-12T15:43:52.265385Z aada535 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b74b9b79ab

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Keep original parent and derived IDs in run-specific provenance, compare selected facts exactly, and preserve existing jq answer arrays.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ba5cf12bfa

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Check the distinct-reference verification claim across all selected facets and the optional summary without re-running providers or models.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0e92a5da28

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Preserve the load-image Evidence reference alongside the reported facts and derived entry seed; existing jq reference arrays remain unchanged.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4e149fbee1

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Reject stale verified load-image facts before deriving an entry address, retain the original source reference, and verify session cleanup with a focused recording-port regression.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aada535dea

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Check derived view identities against all earlier producer references. Grade DOS load-image claims only from completed, referenced producer responses, including their actual target and entry identity. Focused synthetic negative transcripts and original real transcript regrades verify the boundary without model reruns.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@N0zoM1z0 N0zoM1z0 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final review of head 0667f7cb7c85f134311c7470ff4ee99ef9cc45f4: all CI checks in run 38273269072 completed successfully. Sixteen focused regressions pass; recorded public PE/DOS and legacy jq replies retain exact selected facts and references, and the original three model transcripts pass selected fact/source/lifecycle checks after regrading. Reviewed the final producer/comparator/grader boundary changes and full file scope: production CLI/MCP contracts/defaults are unchanged, raw receipts remain private, and documented native size regressions/resource uncertainty remain explicit. The six substantive review findings are resolved. The latest automated review was unavailable due the bot usage limit; this final review does not claim an additional bot review. Ready for the maintainer-authorized normal merge; #2016 remains open.

@N0zoM1z0
N0zoM1z0 merged commit 1770f38 into main Oct 12, 2026
32 checks passed
@N0zoM1z0
N0zoM1z0 deleted the feat/native-view-verification-20261012 branch October 12, 2026 16:04
@morluto morluto added area: tests Test suite and verification area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 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 area: tests Test suite and verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants