Repository navigation
[Safe Outputs Conformance] REQ-002: Complete spec sections for pull request review safe output types - #78288
Conversation
|
✅ 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.
|
|
✅ PR Specification Reviewer completed successfully! PR Specification 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.
|
There was a problem hiding this comment.
🟡 Changes recommended
The documentation describes an unsupported per-type mentions setting and an empty allowed-events list as valid configuration, though both cause workflow validation or compilation to fail.
2 open issues
What changed in this PR
This documentation-only PR addresses REQ-002 for four pull request review safe outputs in gh-aw, completing their required specification sections. The remaining 18 output types are left for follow-up PRs.
Changes:
- Adds abbreviated MCP tool schemas for all four review output types.
- Documents missing operational semantics, configuration parameters, and security requirements.
- Adds target authorization rules for creating comments, submitting reviews, and replying to review comments.
| File | Description |
|---|---|
docs/src/content/docs/specs/safe-outputs-specification.md |
Completes specification sections for four pull request review safe outputs; runtime handlers remain unchanged. |
Review effort: Balanced (dynamic)
| - `required-labels`: Labels that must ALL be present on the pull request for the comment to be processed | ||
| - `required-title-prefix`: Title prefix that the pull request MUST have for the comment to be processed | ||
| - `commit-id`: Commit SHA to which the review is attributed | ||
| - `mentions`: Mention-resolution policy applied to the body |
| - `target`: `"triggering"` (default), `"*"` (request MUST include `pull_request_number`), or a fixed pull request number | ||
| - `target-repo`: Cross-repository target | ||
| - `allowed-repos`: Cross-repo allowlist | ||
| - `allowed-events`: Restrict permitted review events (empty or omitted permits all) |
|
🎉 This pull request is included in a new release. Release: |

Conformance Check Failure
Check ID: REQ-002
Severity: MEDIUM
Category: Specification
Problem Description
The daily conformance run reported 22 safe output types with fewer than the 5 required spec sections (MCP Tool Schema, Operational Semantics, Configuration Parameters, Security Requirements, Required Permissions). This PR fixes the four pull request review types, which form one coherent group. The remaining 18 are left for follow-up PRs.
Affected Components
docs/src/content/docs/specs/safe-outputs-specification.mdactions/setup/js/create_pr_review_comment.cjsactions/setup/js/submit_pr_review.cjsactions/setup/js/reply_to_pr_review_comment.cjsactions/setup/js/resolve_pr_review_thread.cjs🔍 Current vs Expected Behavior
Current Behavior
create_pull_request_review_comment(1/5),submit_pull_request_review(1/5),reply_to_pull_request_review_comment(2/5) andresolve_pull_request_review_thread(3/5) lacked some of the required sections.Expected Behavior
Each type documents all five sections, as
add_labelsandremove_labelsdo.Remediation Steps
pkg/workflow/js/safe_outputs_tools.json) to all four types.allowed-events,commit-id, own-PR fallback, supersede, staged mode).targethandling in each handler.Verification
Ran
bash scripts/check-safe-outputs-conformance.shand compared before and after:Not run:
go test ./pkg/workflowcould not run here because the Go toolchain download was blocked by a TLS error in the sandbox, so the spec-linked Go tests were not executed. Only the spec Markdown changed.scripts/check-safe-outputs-conformance_test.shfails onExpected no USE-001 safe-output conformance findings. That is the two existing LOW USE-001 findings (comment_memory_ledger.cjs,push_ledger_changes.cjs), unrelated to this change.References
🤖 Generated with [Claude Code]((claude.com/redacted)