Skip to content

[docs] docs: unbloat safe-outputs-pull-requests reference - #77946

Merged
pelikhan merged 1 commit into
mainfrom
docs/unbloat-safe-outputs-pull-requests-5d8ec91c1712a1b0
Nov 15, 2026
Merged

pelikhan merged 1 commit into
mainfrom
docs/unbloat-safe-outputs-pull-requests-5d8ec91c1712a1b0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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.

Metric Before After Change
Words 10,667 8,258 -22.6%
Lines 864 762 -11.8%
Merge Pull Request section (words) 2,396 1,524 -36.4%

What changed

  • Merge Pull Request: merged repeated caveats (trust boundary, debug logging, audit detail) into shorter paragraphs. Every gate, policy rule, and the indeterminate-outcome contract remains.
  • Push to PR Branch: reduced signed-replay and baseline-discovery internals to behavior statements. Code-push failure options are now a bullet list.
  • Protected Files: removed the duplicate ## Protected Files and ### Protected Files heading. Merged the overlapping "What Is Protected" paragraph into one categories list. The manifest and engine tables are unchanged. The two-handler fallback-to-issue YAML is replaced by the policy text.
  • Code-Push Failure Handling: moved under Push to PR Branch. It was nested under Compile-Time Warnings, where it did not belong.
  • Repetition: removed the duplicate "Operation Types" note, repeated target: "*" restatements, and restated explanations in How it works and Destination branch.

Preserved

  • Every heading anchor that this page or other pages link to, for example #pull-request-creation-create-pull-request, #protected-files, and #policy-options.
  • All external links. The link set matches the original, plus one new internal anchor to an existing heading.
  • All Starlight admonitions (:::caution, :::note, :::tip).

Validation

  • All inbound anchors from staged-mode.md, safe-outputs.md, cross-repository.md, and glossary.md still resolve.
  • Code fences and admonitions are balanced.
  • docs/scripts/check-reading-measure.mjs passes.
  • Full astro build was not run.

Steering issue #77941 had no comments at run time, so no steering feedback was applied.

Per-section word counts
Section Before After
Pull Request Creation 2,357 1,925
Pull Request Updates 344 305
Close Pull Request 71 73
Approve Workflow Run 475 360
Merge Pull Request 2,396 1,524
PR Review Comments 159 130
Submit PR Review 327 284
Reply to PR Review Comment 151 143
Resolve PR Review Thread 192 172
Push to PR Branch (after: includes Code-Push Failure Handling) 1,618 1,617
Add Reviewer 124 125
Compile-Time Warnings 523 91
Protected Files 1,772 1,355

References: §43659596840

🗜️ Compressed by Documentation Unbloat · pi · routed: haiku55 xhigh · ~22 AIC · ⌖ ~2 AIC · ⊞ 5.7K · ◷
Comment /unbloat to run again

  • expires on Nov 16, 2026, 4:55 PM UTC-08:00

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.

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.

🟡 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.
@pelikhan
pelikhan marked this pull request as ready for review November 15, 2026 04:05
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

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.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

@pelikhan
pelikhan merged commit ed39509 into main Nov 15, 2026
14 checks passed
@pelikhan
pelikhan deleted the docs/unbloat-safe-outputs-pull-requests-5d8ec91c1712a1b0 branch November 15, 2026 09:11
@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v1.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation doc-unbloat documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants