Skip to content

[Safe Outputs Conformance] REQ-002: Complete spec sections for pull request review safe output types - #78288

Merged
pelikhan merged 1 commit into
mainfrom
docs/req-002-pr-review-types-93c8137960953a82
Nov 16, 2026
Merged

pelikhan merged 1 commit into
mainfrom
docs/req-002-pr-review-types-93c8137960953a82

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

  • Files: docs/src/content/docs/specs/safe-outputs-specification.md
  • Handlers (read to keep the prose accurate; unchanged):
    • actions/setup/js/create_pr_review_comment.cjs
    • actions/setup/js/submit_pr_review.cjs
    • actions/setup/js/reply_to_pr_review_comment.cjs
    • actions/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) and resolve_pull_request_review_thread (3/5) lacked some of the required sections.

Expected Behavior

Each type documents all five sections, as add_labels and remove_labels do.

Remediation Steps

  1. Added an abbreviated MCP Tool Schema (taken from pkg/workflow/js/safe_outputs_tools.json) to all four types.
  2. Added Operational Semantics and Configuration Parameters, written from the handler code (validation order, buffering, allowed-events, commit-id, own-PR fallback, supersede, staged mode).
  3. Added Security Requirements to all four types.
  4. Added Target Authorization rules CRC-001..004, SPR-001..004 and RRC-001..004. These match the existing target handling in each handler.

Verification

Ran bash scripts/check-safe-outputs-conformance.sh and compared before and after:

  • REQ-002 findings dropped from 22 to 18, and the four types above no longer appear.
  • Medium failures went from 22 to 18. Low failures stayed at 2 (USE-001, not touched).
  • Critical and high failures stayed at 0.

Not run:

  • go test ./pkg/workflow could 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.sh fails on Expected 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

  • Safe Outputs Specification: docs/src/content/docs/specs/safe-outputs-specification.md
  • Conformance Checker: scripts/check-safe-outputs-conformance.sh
  • Run ID: 43811667799

🤖 Generated with [Claude Code]((claude.com/redacted)

Generated by ✅ Daily Safe Outputs Conformance Checker · claude · routed: sonnet55 high · ~46 AIC · ⌖ ~2 AIC · ⊞ 5.8K · ◷

  • expires on Nov 16, 2026, 9:47 PM UTC-08:00

@pelikhan
pelikhan marked this pull request as ready for review November 16, 2026 15:09
Copilot AI adaptive review requested due to automatic review settings November 16, 2026 15:09
@pelikhan
pelikhan merged commit 0a94d0a into main Nov 16, 2026
2 checks passed
@pelikhan
pelikhan deleted the docs/req-002-pr-review-types-93c8137960953a82 branch November 16, 2026 15:09
@github-actions

github-actions Bot commented Nov 16, 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.3K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

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.

Generated by PR Specification Reviewer for #78288 · copilot · gpt56 · ~1 AIC · ⌖ ~2 AIC · ⊞ 1.6K · ◷

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 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)
@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v1.3.1

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants