Skip to content

refactor(targets): share the resolved target format vocabulary - #12165

Merged
morluto merged 4 commits into
mainfrom
audit/parser-target-vocabulary
Nov 19, 2026
Merged

morluto merged 4 commits into
mainfrom
audit/parser-target-vocabulary

Conversation

@morluto

@morluto morluto commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

Resolved target kind, archive and artifact target unions, live summaries, and snapshot format admission draw from one domain format table. A type assertion ties the resolved target union to the table. Adding a format to one of these consumers now starts from the same owner.

This is the resolved-target step of #7478, informed by @Entrpi's prototype and the existing artifact-reader registry. The Evidence and caller-hint follow-up is included via #12168. Evidence-only formats stay with the Evidence contract, and the explicit hint list is typed against the resolved format registry.

Contract and boundary impact

The accepted target formats and advertised CLI and MCP schemas are unchanged. A rejected snapshot can list the expected formats in the new table order. Provider policy remains with provider adapters.

Validation performed

  • 96 focused tests passed across target vocabulary, snapshot, Evidence subject, and raw input cases on Node 24.22.1.

  • npm run build:cached, npm run check:fast, and git diff --check passed.

  • Generated MCP catalog JSON and recorded per-profile catalog digests are byte-identical to current main. CLI command registration output was compared from the same builds.

  • The review follow-up checks that each existing format fixture has the canonical kind at compile time. The 43 target vocabulary tests and TypeScript typecheck passed on Node 24.22.1.

  • Updated the branch with fix(ci): keep dispatcher fixture exports aligned with runtime #12131 from main before running the full CI matrix. All 43 target vocabulary tests and TypeScript typecheck passed again on Node 24.22.1.

  • Combined head 65f8b11e32 passed 113 focused tests, npm run check:fast, and git diff --check. Builds of that head and main base 61af8abeb6 emitted byte-identical CLI command registrations, MCP catalog JSON, and per-profile catalog digests.

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.

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.

@morluto
morluto marked this pull request as ready for review November 19, 2026 02:59
@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:12:29.523519Z 65f8b11 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 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Low impact] The PR appears safe to merge; no blocking issues were found.

Summary

Moves resolved target formats and their kinds into one shared domain table while preserving accepted inputs and saved-data rules.

  • Resolved target formats and kinds come from one shared vocabulary.

No new actionable issues or security regressions found. The available origin/main history does not contain this refactor. Tests were not rerun.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  V[Shared format table] --> T[Archive and artifact target types]
  V --> S[Snapshot format checks]
  V --> L[Live target summaries]
  V --> E[Evidence format list]
  H[Four explicit caller hints] -. Must name known formats .-> V
  H --> C[CLI and MCP open contract]
Loading

Reviews (3) · Last reviewed commit: "refactor(targets): share Evidence and ex..." · Reviewed by Greptile

@morluto
morluto enabled auto-merge (squash) November 19, 2026 03:27
@morluto
morluto merged commit 10309f9 into main Nov 19, 2026
54 of 56 checks passed
@morluto
morluto deleted the audit/parser-target-vocabulary branch November 19, 2026 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant