Repository navigation
Extract shared PR safe-output defaults - #77050
Conversation
Co-authored-by: gh-aw-bot <[email protected]>
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
✅ PR Specification Reviewer completed successfully! Commit pushed:
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: 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 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.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: 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.
|
There was a problem hiding this comment.
Static review completed. I found no actionable correctness, performance, security, or maintainability issues in the changed lines. Tests were not run per the review-only constraints.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Reviewed PR head 83feb10.
Applicable contract: docs/src/content/docs/specs/safe-outputs-specification.md v1.29.23, GP2a (steer) and Pull Request Extensions. The extraction preserves the existing handler/security guarantees and explicit local overrides, including steer:false exceptions.
Queued specification synchronization on the same-repository PR branch (commit beb8b76): v1.29.24 documents imported safe-output precedence, preserves the built-in steer:false and draft:true handler defaults, and documents create-pull-request.expires. No blocking conformance finding identified. This was a static review; tests and conformance scripts were not run per review policy.
Generated by PR Specification Reviewer for #77050 · copilot · gpt50 · ~6 AIC · ⌖ ~2 AIC · ⊞ 1.6K
Comment /review-specs to run again
There was a problem hiding this comment.
🟡 Changes recommended
The migration unintentionally changes existing PR draft and expiration behavior, while shorthand configurations fail to inherit the new defaults.
3 open issues
What changed in this PR
This PR centralizes repeated pull-request safe-output settings in gh-aw workflows, addressing #77041. It also extends compiler import merging so omitted PR settings can inherit shared defaults while explicit local values take precedence.
Changes:
- Adds a shared component for steering, expiration, and draft defaults.
- Migrates workflow configurations, retaining explicit overrides and updating selected generated locks.
- Adds merge tests for inherited defaults and local precedence.
| File | Description |
|---|---|
pkg/workflow/safe_outputs_import_test.go |
Tests default inheritance and local precedence. |
pkg/workflow/imports.go |
Adds inheritance for omitted PR expiration and draft settings. |
.github/workflows/weekly-safe-outputs-spec-review.md |
Imports defaults; retains seven-day expiration. |
.github/workflows/weekly-safe-outputs-spec-review.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/weekly-editors-health-check.md |
Imports shared PR defaults. |
.github/workflows/weekly-blog-post-writer.md |
Imports defaults; retains seven-day expiration. |
.github/workflows/update-astro.md |
Replaces repeated settings with shared defaults. |
.github/workflows/unbloat-docs.md |
Removes local steering and expiration settings. |
.github/workflows/unbloat-docs.lock.yml |
Updates generated workflow hashes. |
.github/workflows/tidy.md |
Replaces three repeated defaults with an import. |
.github/workflows/tidy.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/technical-doc-writer.md |
Replaces repeated PR defaults with an import. |
.github/workflows/spec-enforcer.md |
Imports defaults; retains three-day expiration. |
.github/workflows/spec-enforcer.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/smoke-project.md |
Imports shared defaults instead of local steering. |
.github/workflows/shared/pr-safe-output-defaults.md |
Defines shared steering, expiration, and draft settings. |
.github/workflows/refiner.md |
Imports shared defaults; removes repeated settings. |
.github/workflows/purelock.md |
Imports shared defaults instead of local steering. |
.github/workflows/poem-bot.md |
Replaces three repeated defaults with an import. |
.github/workflows/poem-bot.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/linter-miner.md |
Imports shared defaults instead of local steering. |
.github/workflows/layout-spec-maintainer.md |
Replaces three repeated defaults with an import. |
.github/workflows/layout-spec-maintainer.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/jsweep.md |
Imports defaults; explicitly disables steering. |
.github/workflows/jsweep.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/instructions-janitor.md |
Replaces three repeated defaults with an import. |
.github/workflows/instructions-janitor.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/hourly-ci-cleaner.md |
Replaces repeated settings with shared defaults. |
.github/workflows/go-logger.md |
Replaces three repeated defaults with an import. |
.github/workflows/go-logger.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/glossary-maintainer.md |
Replaces three repeated defaults with an import. |
.github/workflows/github-mcp-tools-report.md |
Replaces repeated PR defaults with an import. |
.github/workflows/github-mcp-tools-report.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/functional-pragmatist.md |
Imports shared defaults instead of local steering. |
.github/workflows/evoskill-evolver.md |
Imports shared defaults instead of local steering. |
.github/workflows/eslint-miner.md |
Imports shared defaults instead of local steering. |
.github/workflows/duplicate-code-detector.md |
Imports defaults; explicitly disables steering. |
.github/workflows/dictation-prompt.md |
Replaces three repeated defaults with an import. |
.github/workflows/dictation-prompt.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/developer-docs-consolidator.md |
Replaces three repeated defaults with an import. |
.github/workflows/daily-yamllint-fixer.md |
Imports defaults; retains seven-day expiration. |
.github/workflows/daily-yamllint-fixer.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/daily-workflow-updater.md |
Imports defaults; retains one-day expiration. |
.github/workflows/daily-workflow-updater.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/daily-trajectory-grader-implementer.md |
Imports defaults; retains draft and expiration overrides. |
.github/workflows/daily-trajectory-grader-implementer.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/daily-safeoutputs-git-simulator.md |
Imports defaults; retains draft and expiration overrides. |
.github/workflows/daily-safeoutputs-git-simulator.lock.yml |
Adds generated import wiring and updates hashes. |
.github/workflows/daily-safe-output-optimizer.md |
Imports defaults; explicitly disables steering. |
.github/workflows/daily-safe-output-integrator.md |
Imports defaults; retains three-day expiration. |
.github/workflows/daily-safe-output-integrator.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/daily-go-test-stubs-aider.md |
Imports defaults; explicitly disables steering. |
.github/workflows/daily-go-test-parallelizer.md |
Imports shared defaults instead of local steering. |
.github/workflows/daily-go-test-parallelizer.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/daily-documentation-diagram.md |
Adds shared defaults import. |
.github/workflows/daily-doc-updater.md |
Imports defaults; retains one-day expiration. |
.github/workflows/daily-doc-healer.md |
Imports defaults; retains three-day expiration. |
.github/workflows/daily-declarative-engine-improver.md |
Imports shared defaults instead of local steering. |
.github/workflows/daily-declarative-engine-improver.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/daily-compiler-threat-spec-optimizer.md |
Imports defaults; retains seven-day expiration. |
.github/workflows/daily-compiler-threat-spec-optimizer.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/daily-community-attribution.md |
Imports defaults; retains one-day expiration. |
.github/workflows/daily-code-debt-aider.md |
Replaces three repeated defaults with an import. |
.github/workflows/daily-code-debt-aider.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/daily-cli-performance.md |
Imports defaults; explicitly disables steering. |
.github/workflows/daily-caveman-optimizer.md |
Imports defaults; retains three-day expiration. |
.github/workflows/daily-architecture-diagram.md |
Imports defaults; retains seven-day expiration. |
.github/workflows/daily-agent-of-the-day-blog-writer.md |
Imports defaults; retains seven-day expiration. |
.github/workflows/daily-agent-of-the-day-blog-writer.lock.yml |
Updates generated imports, prompt wiring, and hashes. |
.github/workflows/cloclo.md |
Replaces repeated settings with shared defaults. |
.github/workflows/cli-version-checker.md |
Imports defaults; explicitly disables steering. |
.github/workflows/ci-coach.md |
Replaces repeated settings with shared defaults. |
.github/workflows/avenger.md |
Replaces repeated settings with shared defaults. |
.github/workflows/archivx-agentic-workflows-analyzer.md |
Imports defaults; retains thirty-day expiration. |
Review effort: Balanced (auto)
| safe-outputs: | ||
| steer: true | ||
| create-pull-request: | ||
| expires: 2d |
| steer: true | ||
| create-pull-request: | ||
| expires: 2d | ||
| draft: false |
| if _, exists := config[key]; exists { | ||
| if setutil.Contains(topDefinedTypes, key) { | ||
| if key == "create-pull-request" && topRawSafeOutputs != nil { | ||
| if localConfig, ok := topRawSafeOutputs[key].(map[string]any); ok { |
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs and /tdd. Requesting changes: the shared defaults alter compiled output in 18 workflows, which contradicts the PR body claim that existing behavior is preserved.
📋 Key Themes & Highlights
Key Themes
- Unintended
draft: false: 15 workflows never setdraft. Their compiled configs previously fell back to the JS defaulttrueand now emit"draft":false, so PRs open ready-for-review. - New 48h expiry:
daily-documentation-diagram,daily-go-test-stubs-aider, andrefinergainexpires: 48where none existed. - Test gap: no case covers a local handler that omits
draftwith no imported value.
Positive Highlights
- ✅ Import precedence logic keeps explicit local
expires/draftvalues. - ✅
steeris unchanged across all compiled locks. - ✅
unbloat-docsis not a regression:daily-pr-basesuppliessteerandexpires.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~14 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again
| steer: true | ||
| create-pull-request: | ||
| expires: 2d | ||
| draft: false |
There was a problem hiding this comment.
[/diagnosing-bugs] Behavior change: draft: false now applies to every migrated PR handler. In the compiled locks, 15 workflows (for example avenger, cloclo, ci-coach, smoke-project) never set draft, so they previously emitted no draft key and the JS default true applied. They now emit "draft":false, which opens PRs as ready-for-review. The PR body says existing behavior is preserved, so this conflicts with that claim.
💡 Suggested fix
Keep draft out of the shared file, or set it only in workflows that already set draft: false locally. If the move to non-draft is intentional, state it in the PR description and update the affected workflows.
@copilot please address this.
There was a problem hiding this comment.
Added draft: true to the 15 migrated handlers that previously omitted it and regenerated their locks, preserving the runtime draft default. Commit ad30705.
There was a problem hiding this comment.
Preserved draft behavior with local draft: true overrides for the affected workflows and regenerated their locks in ad30705.
| safe-outputs: | ||
| steer: true | ||
| create-pull-request: | ||
| expires: 2d |
There was a problem hiding this comment.
[/diagnosing-bugs] This adds a 48-hour expiry where none existed. In the compiled locks, daily-documentation-diagram, daily-go-test-stubs-aider, and refiner previously had no expires on create-pull-request and now emit expires: 48, so their PRs will auto-close. Confirm this is intended, or scope expires to workflows that already set it.
@copilot please address this.
There was a problem hiding this comment.
Added expires: false to the three migrated handlers that previously omitted expiration. Updated the PR expiration schema to allow false, matching existing parser support, and regenerated their locks. Commit ad30705.
There was a problem hiding this comment.
Added expires: false to the migrated workflows that previously omitted expiration and regenerated their locks in ad30705.
| require.NoError(t, err) | ||
| require.NotNil(t, result.CreatePullRequests) | ||
| assert.Equal(t, 48, result.CreatePullRequests.Expires) | ||
| assert.Equal(t, strPtr("false"), result.CreatePullRequests.Draft) |
There was a problem hiding this comment.
[/tdd] The test covers fill-in and local-precedence, but not the case this PR changes: a local handler that omits draft with no imported draft. Add a case asserting Draft stays nil so the JS default still applies, since this is the path that flips 15 workflows.
@copilot please address this.
There was a problem hiding this comment.
Added regression coverage confirming Draft remains nil when the local handler omits it and imported settings provide no draft. The focused test passes. Commit ad30705.
There was a problem hiding this comment.
Nil shorthand values are now treated as empty local configs for inherited defaults; added regression coverage in a9bc645 (with the assertion lint adjustment in 7006c53).
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "611bc9704af05e7b8452b2bc7cc59acde9063a09",
"kind": "requested",
"schema_version": "1",
"state": "ebe84be7583c2a24497d80b9100010e762f124c41ab3a02eba75914d5671d028",
"work": [
"183af4c693b85fb75c9a4014f30cf273214621b49bde77d59b85819e6839b925",
"41867db6810c72c08178c0841c6f342d73e47ffd951716385299cdc6af922ab4",
"64e170dc07e961aef597358d921134869ca726c1773ef146d8d284f5e29bcfcf"
],
"workflow": "pr-sous-chef"
}
|
…xtract-shared-pr-safe-output-defaults Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
|
Category: refactor
|
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "ad30705fcdf034ffb0fff24da6e64a233763fa83",
"kind": "requested",
"schema_version": "1",
"state": "430bd717596f33692bc772e84c24652e9a72bdd93f3a7b8fadeed8b83b114ed7",
"work": [],
"workflow": "pr-sous-chef"
}
|
…xtract-shared-pr-safe-output-defaults # Conflicts: # .github/workflows/archivx-agentic-workflows-analyzer.lock.yml # .github/workflows/avenger.lock.yml # .github/workflows/ci-coach.lock.yml # .github/workflows/cli-version-checker.lock.yml # .github/workflows/cloclo.lock.yml # .github/workflows/daily-agent-of-the-day-blog-writer.lock.yml # .github/workflows/daily-architecture-diagram.lock.yml # .github/workflows/daily-caveman-optimizer.lock.yml # .github/workflows/daily-cli-performance.lock.yml # .github/workflows/daily-code-debt-aider.lock.yml # .github/workflows/daily-community-attribution.lock.yml # .github/workflows/daily-compiler-threat-spec-optimizer.lock.yml # .github/workflows/daily-declarative-engine-improver.lock.yml # .github/workflows/daily-doc-healer.lock.yml # .github/workflows/daily-doc-updater.lock.yml # .github/workflows/daily-documentation-diagram.lock.yml # .github/workflows/daily-go-test-parallelizer.lock.yml # .github/workflows/daily-go-test-stubs-aider.lock.yml # .github/workflows/daily-safe-output-integrator.lock.yml # .github/workflows/daily-safe-output-optimizer.lock.yml # .github/workflows/daily-safeoutputs-git-simulator.lock.yml # .github/workflows/daily-trajectory-grader-implementer.lock.yml # .github/workflows/daily-workflow-updater.lock.yml # .github/workflows/daily-yamllint-fixer.lock.yml # .github/workflows/developer-docs-consolidator.lock.yml # .github/workflows/dictation-prompt.lock.yml # .github/workflows/duplicate-code-detector.lock.yml # .github/workflows/eslint-miner.lock.yml # .github/workflows/evoskill-evolver.lock.yml # .github/workflows/functional-pragmatist.lock.yml # .github/workflows/github-mcp-tools-report.lock.yml # .github/workflows/glossary-maintainer.lock.yml # .github/workflows/go-logger.lock.yml # .github/workflows/hourly-ci-cleaner.lock.yml # .github/workflows/instructions-janitor.lock.yml # .github/workflows/jsweep.lock.yml # .github/workflows/layout-spec-maintainer.lock.yml # .github/workflows/linter-miner.lock.yml # .github/workflows/poem-bot.lock.yml # .github/workflows/purelock.lock.yml # .github/workflows/refiner.lock.yml # .github/workflows/smoke-project.lock.yml # .github/workflows/spec-enforcer.lock.yml # .github/workflows/technical-doc-writer.lock.yml # .github/workflows/tidy.lock.yml # .github/workflows/unbloat-docs.lock.yml # .github/workflows/update-astro.lock.yml # .github/workflows/weekly-blog-post-writer.lock.yml # .github/workflows/weekly-editors-health-check.lock.yml # .github/workflows/weekly-safe-outputs-spec-review.lock.yml Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
Triage
|
|
🎉 This pull request is included in a new release. Release: |

PR workflows repeated
steer: true,expires: 2d, anddraft: false. This change centralizes those defaults while preserving workflow-specific settings and existing behavior.shared/pr-safe-output-defaults.mdwith the three common keys; migrate 50 eligible workflows and leave source-managed workflows untouched.expiresanddraftwhen a local PR handler omits them; explicit local values take precedence. Preserve disabled steering where it was previously off.