Repository navigation
[docs] docs: unbloat safe-outputs-pull-requests reference - #77946
Conversation
Condense verbose prose in the pull-request safe outputs reference without changing behavior or removing any documented option. Remove the duplicate 'Protected Files' heading, merge the overlapping 'What Is Protected' content, and keep every heading slug referenced from other pages.
There was a problem hiding this comment.
🟡 Changes recommended
The documentation omits the PR-head validation fallback for unsigned bundles and incorrectly implies that required-check app authentication also covers deployment checks.
2 open issues
What changed in this PR
Condenses gh-aw’s pull-request safe-output reference to reduce repetition and improve navigation. No runtime code changes are included.
Changes:
- Shortens merge-policy, push, and review-operation descriptions.
- Consolidates protected-file guidance and removes redundant examples.
- Moves code-push failure handling under Push to PR Branch.
| File | Description |
|---|---|
docs/src/content/docs/reference/safe-outputs-pull-requests.md |
Streamlines reference text and reorganizes failure-handling and protected-file sections. |
Review effort: Balanced (dynamic)
|
|
||
| For unsigned bundle pushes, the handler recognizes the exact pinned base tip by default. If the base branch has advanced past an ancestor already included in the bundle, that older-ancestor size baseline is opt-in: set `allow-merged-base-baseline: true` under `safe-outputs.push-to-pull-request-branch`. Without it, validation uses the PR-head baseline; a related patch-size error points to the opt-in. This setting only enables bounded metadata/REST discovery and does not fetch base objects or enable history recovery. | ||
| For unsigned bundle pushes, the handler validates against the exact pinned base tip. Older-ancestor baselines are opt-in through `allow-merged-base-baseline: true` under `safe-outputs.push-to-pull-request-branch`. That setting enables only bounded metadata discovery. It does not fetch base objects or enable history recovery. |
|
|
||
| **Protected files**: Before evaluation completes and again before merging or a staged preview, the handler reads the target PR's complete changed-file list from GitHub. Added, modified, deleted, and renamed files are checked, including both paths of a rename. The protected set, engine-specific files, top-level dot-folder protection, default `CHANGELOG.md` exception, per-handler exclusions, and repository-wide `aw.json` exclusions are the same as `create-pull-request`. Protection applies to the target PR's changes relative to its base, not unrelated historical changes on either branch. | ||
| **Check producers**: `required-check-apps` maps each required name to a positive GitHub App ID. Every observed check with that name must come from that app, including during final revalidation. Without a mapping, names alone do not authenticate the producer. Several workflows can share an app, so protect CI workflow definitions from the acting agent. Unknown names and invalid IDs are rejected at compile time. The compiler grants `checks: read` even without `required-checks`, because branch requirements are discovered at runtime. |
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🎉 This pull request is included in a new release. Release: |

Summary
Condenses one file:
docs/src/content/docs/reference/safe-outputs-pull-requests.md. Option names, defaults, YAML examples, tables, and documented behavior are unchanged.What changed
## Protected Filesand### Protected Filesheading. Merged the overlapping "What Is Protected" paragraph into one categories list. The manifest and engine tables are unchanged. The two-handlerfallback-to-issueYAML is replaced by the policy text.target: "*"restatements, and restated explanations in How it works and Destination branch.Preserved
#pull-request-creation-create-pull-request,#protected-files, and#policy-options.:::caution,:::note,:::tip).Validation
staged-mode.md,safe-outputs.md,cross-repository.md, andglossary.mdstill resolve.docs/scripts/check-reading-measure.mjspasses.astro buildwas not run.Steering issue #77941 had no comments at run time, so no steering feedback was applied.
Per-section word counts
References: §43659596840