Skip to content

Update native structured-output support and engine capability guidance - #993

Merged
pelikhan merged 3 commits into
mainfrom
copilot/update-structured-outputs-support
Nov 29, 2026
Merged

pelikhan merged 3 commits into
mainfrom
copilot/update-structured-outputs-support

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Align structured-output integration with current engine documentation: Copilot, Codex, and Anthropic expose native schema enforcement; Gemini CLI, DeepSeek Harness, and Pi remain prompt-driven.

  • Anthropic: Use the stable jsonSchemaOutputFormat helper while retaining the beta tool runner. Enable primitive enums without type; preserve composition checks and unsupported-schema fallbacks.
  • Regression coverage: Check per-turn schema isolation in Copilot/Codex, Anthropic schema compatibility and error propagation, and Gemini/Pi repair behavior.
  • Documentation: Refresh the six-engine capability matrix, provider restrictions, and official references. Distinguish response envelopes and typed tool arguments from native final-output enforcement.

pelikhan and others added 2 commits November 29, 2026 17:37
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@pelikhan pelikhan changed the title Update structured-output support against current engine documentation Update native structured-output support and engine capability guidance Nov 29, 2026
@pelikhan
pelikhan marked this pull request as ready for review November 29, 2026 20:59
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~6 AIC · ⌖ ~2 AIC · ⊞ 5.7K · history

@github-actions

Copy link
Copy Markdown
Contributor

Correction to my review

One item in my review is wrong. I said <output_schema> was not produced by skills/rig/rig.ts. It is: tag("output_schema", ...) at skills/rig/rig.ts:2783 emits it, so the Gemini and Pi prompt assertions are consistent with the code. Otherwise the review stands: the tests and typecheck still need a CI run, because the local npm ci failed on a self-signed certificate.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~6 AIC · ⌖ ~2 AIC · ⊞ 5.7K · history
Comment /matt to run again

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Skills-Based Review 🧠

Applied the /tdd and /codebase-design lenses. Verdict: COMMENT. Tests and typecheck could not be run in this runner, so this is a static review.

📋 Findings and verification notes

Verification gap

  • npm ci fails with DEPTH_ZERO_SELF_SIGNED_CERT on both the default registry and the 1ES feed. NODE_USE_SYSTEM_CA=1 and --use-system-ca did not resolve it. Please confirm npm run typecheck and npm test pass in CI.

Items to confirm

  • src/engines/gemini.test.ts and src/engines/pi.test.ts assert the prompt contains <output_schema>. A search of skills/rig/rig.ts found no match for that tag, so confirm where it is produced.

Checked and consistent

  • Versions in skills/rig/engines.md match package.json: Copilot SDK 2.0.0, Anthropic SDK 1.8.0, Codex SDK 0.169.0, Pi 1.5.2.
  • Cited APIs exist upstream: jsonSchemaOutputFormat, Copilot per-send responseSchema, and Codex outputSchema.
  • The Anthropic transform keeps primitive enums (including null) without a type and closes object schemas, which matches the new supportsStructuredSchema enum branch.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~6 AIC · ⌖ ~2 AIC · ⊞ 5.7K
Comment /matt to run again

@pelikhan

Copy link
Copy Markdown
Collaborator Author

@copilot fix ci failures

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copilot AI commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

@copilot fix ci failures

Fixed in 1020d4d. Removed duplicated engine guidance, reducing the file from 14,012 to 11,862 bytes under the unchanged 12,000-byte CI limit. Capabilities and official references are retained. Budget/link checks, lint, and secret scanning pass; local Vitest remains blocked by npm feed DNS failures.

@pelikhan
pelikhan merged commit d5f51c9 into main Nov 29, 2026
4 checks passed
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.

2 participants