Skip to content

refactor(targets): share Evidence and explicit format vocabulary - #12168

Merged
morluto merged 2 commits into
audit/parser-target-vocabularyfrom
audit/parser-evidence-target-formats
Nov 19, 2026
Merged

morluto merged 2 commits into
audit/parser-target-vocabularyfrom
audit/parser-evidence-target-formats

Conversation

@morluto

@morluto morluto commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Summary

Derive persisted Evidence's resolved target formats from the target registry. Keep the Evidence-only formats in the Evidence contract and retain historical enum positions so the published catalog stays identical.

Move the explicit target-format choices next to the target registry and check that each choice is a declared format. The open-target input contract still owns runtime validation. The DOS COM reader owns only COM validation.

Follow-up to #12165 and #7478. The missing GameCube DOL projection in #7290 illustrates the divergence that an independent target list can cause.

Validation performed

  • 113 tests passed across the target-format vocabulary, open-target inputs, raw binaries, Evidence subjects and bundles, and snapshots.
  • npm run check:fast and npm run build:cached passed.
  • cmp against the refactor(targets): share the resolved target format vocabulary #12165 build confirmed that the generated CLI registrations, MCP catalog and per-profile catalog digests were byte-identical.
  • Tests exercised schema admission and retained Evidence. Real provider execution was outside the verification scope.

The ordering preserves REA's serialized catalog. JSON Schema defines enum validity by membership, and Zod accepts an ordered readonly string sequence for enum construction. JSON Schema validation · Zod enums

Author readiness

Human owner: @morluto

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

@morluto
morluto marked this pull request as ready for review November 19, 2026 03:03
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 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-19T03:04:33.735798Z 145536e Draft marked ready
ℹ️ 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 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Low impact] The refactor appears safe to merge; no blocking issue was found.

Summary

This refactor shares target-format names while preserving existing saved Evidence and caller choices. No actionable correctness or security issues were found.

  • Evidence subjects now derive target formats without changing the catalog order.
  • Open-target format choices now come from the target registry.

Reviews (1) · Last reviewed commit: "Merge commit '479db6eda58a9102359ea430e5..." · Reviewed by Greptile

@morluto
morluto merged commit 65f8b11 into audit/parser-target-vocabulary Nov 19, 2026
1 check passed
@morluto
morluto deleted the audit/parser-evidence-target-formats branch November 19, 2026 03:10
morluto added a commit that referenced this pull request Nov 19, 2026
* refactor(targets): share the resolved target format vocabulary

* test(targets): verify each format kind at compile time

* refactor(targets): share Evidence and explicit format vocabulary (#12168)
@morluto morluto added the area: evidence Evidence, artifacts, and reconstruction label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant