Skip to content

fix: correct stale 1 MB default for safe-outputs max-patch-size in schema and derived files#39999

Merged
pelikhan merged 1 commit into
mainfrom
copilot/review-docs-max-patch-size
Jun 18, 2026
Merged

fix: correct stale 1 MB default for safe-outputs max-patch-size in schema and derived files#39999
pelikhan merged 1 commit into
mainfrom
copilot/review-docs-max-patch-size

Conversation

Copilot AI commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

PR #39118 raised the max-patch-size default from 1024 KB to 4096 KB in the runtime code, but main_workflow_schema.json was not updated — leaving schema descriptions, the "default" annotation, and all derived files claiming the old 1 MB default.

Changes

  • pkg/parser/schemas/main_workflow_schema.json — Updated descriptions and "default" value from 10244096 for three fields:
    • safe-outputs.max-patch-size
    • safe-outputs.create-pull-request.max-patch-size
    • safe-outputs.push-to-pull-request-branch.max-patch-size
  • docs/public/editor/autocomplete-data.json — Regenerated from schema.
  • docs/src/content/docs/reference/frontmatter-full.md — Regenerated from schema.

No code logic changed; everything else (safe_outputs_config.go, handler registry, .github/aw/ instruction files, narrative reference docs) was already correct.

…ze in schema and derived files

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title fix: enforce consistent 4096 KB default for safe-outputs max-patch-size fix: correct stale 1 MB default for safe-outputs max-patch-size in schema and derived files Jun 18, 2026
Copilot AI requested a review from pelikhan June 18, 2026 06:19
@pelikhan pelikhan marked this pull request as ready for review June 18, 2026 06:25
Copilot AI review requested due to automatic review settings June 18, 2026 06:25
@pelikhan pelikhan merged commit ea47a28 into main Jun 18, 2026
@pelikhan pelikhan deleted the copilot/review-docs-max-patch-size branch June 18, 2026 06:25

Copilot AI 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.

Pull request overview

This PR updates the workflow frontmatter JSON schema to reflect the current safe-outputs.max-patch-size default (4096 KB / 4 MB) and regenerates schema-derived documentation artifacts so the published reference materials align with runtime behavior.

Changes:

  • Updated safe-outputs.max-patch-size schema description and default from 10244096 (KB), and updated the per-output override descriptions to match.
  • Regenerated the full frontmatter reference doc from the updated schema.
  • Regenerated the editor autocomplete dataset from the schema.
Show a summary per file
File Description
pkg/parser/schemas/main_workflow_schema.json Updates max-patch-size descriptions and the schema default to 4096 KB.
docs/public/editor/autocomplete-data.json Regenerated editor autocomplete data from the schema (includes additional schema-sync deltas).
docs/src/content/docs/reference/frontmatter-full.md Regenerated reference frontmatter template comments to reflect the 4096 KB default.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 3/3 changed files
  • Comments generated: 2

Comment on lines 9842 to +9847
"max-patch-size": {
"type": "integer",
"description": "Maximum allowed size for git patches in kilobytes (KB). Defaults to 1024 KB (1 MB). If patch exceeds this size, the job will fail.",
"description": "Maximum allowed size for git patches in kilobytes (KB). Defaults to 4096 KB (4 MB). If patch exceeds this size, the job will fail.",
"minimum": 1,
"maximum": 10240,
"default": 1024
"default": 4096
Comment on lines 545 to +553
"models": {
"type": "object",
"desc": "Named model alias definitions with ordered fallback lists, resolved recursively by AWF."
"desc": "Custom model pricing data in the same structure as models.json.",
"children": {
"providers": {
"type": "object",
"desc": "Provider-keyed map of model pricing data."
}
}
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.

3 participants