Skip to content

[Safe Outputs Conformance] REQ-002: Complete required spec sections for comment_memory, merge_pull_request, create_check_run - #75328

Merged
pelikhan merged 1 commit into
mainfrom
fix/req-002-security-requirements-93b6f933f1f32ed6
Nov 6, 2026
Merged

pelikhan merged 1 commit into
mainfrom
fix/req-002-security-requirements-93b6f933f1f32ed6

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Conformance Check Failure

Check ID: REQ-002
Severity: MEDIUM
Category: Specification

Problem Description

The daily conformance run reported 35 MEDIUM REQ-002 findings (safe output types missing required spec sections). This PR fixes the three types that were each missing exactly one section, where the content is derivable from existing spec text and handler code.

Affected Components

  • comment_memory: missing MCP Tool Schema
  • merge_pull_request: missing Security Requirements
  • create_check_run: missing Security Requirements

File: docs/src/content/docs/specs/safe-outputs-specification.md

Remediation Implemented

  1. comment_memory: added an MCP Tool Schema section stating that the type is not exposed as an agent-callable tool (matches the existing Tool Exposure Model).
  2. merge_pull_request: added Security Requirements consolidating existing normative rules (SHA binding, review evidence, protected-branch refusal, revalidation, MPR-001..005, audit constraints). No new behavior was introduced. The Decision Audit paragraph is unchanged.
  3. create_check_run: added Security Requirements based on actions/setup/js/create_check_run.cjs (name only from frontmatter, sanitization, 256/65535 length limits, same-repo only, target rules, SHA fetched from Pulls API, staged-mode no-API behavior).

Verification

Ran bash scripts/check-safe-outputs-conformance.sh after the change: Critical 0, High 0, Medium 35 → 32. The three types above no longer appear in the REQ-002 failures. No code tests were run, since this is a docs-only change.

Remaining

32 REQ-002 findings remain (many types missing 3-5 sections) plus 1 LOW USE-001 (model_attribution.cjs). These need per-type handler review and are left for follow-up PRs.

References

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

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

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

  • expires on Nov 6, 2026, 9:46 PM UTC-08:00

@pelikhan
pelikhan marked this pull request as ready for review November 6, 2026 06:55
Copilot AI adaptive review requested due to automatic review settings November 6, 2026 06:55
@pelikhan
pelikhan merged commit 07d23c9 into main Nov 6, 2026
2 checks passed
@pelikhan
pelikhan deleted the fix/req-002-security-requirements-93b6f933f1f32ed6 branch November 6, 2026 06:55
@github-actions

github-actions Bot commented Nov 6, 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 from PR Specification Reviewer · gpt56 · ~1 AIC · ⌖ ~1 AIC · ⊞ 1.6K · ◷

Generated by PR Specification Reviewer for #75328

@github-actions

github-actions Bot commented Nov 6, 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.

Generated from Test Quality Sentinel · routed: gpt56 max · ~2 AIC · ⌖ ~1 AIC · ⊞ 6.3K · ◷

🧪 Test quality analysis by Test Quality Sentinel

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 specification still contains two active documentation inconsistencies: it overstates agent control of the check-run name and makes the Pulls API requirement unconditional despite staged execution intentionally bypassing it.

2 open issues
What changed in this PR

This documentation-only pull request completes missing specification sections for three safe outputs, reducing REQ-002 conformance findings without changing runtime behavior.

Changes:

  • Added the MCP Tool Schema declaration for comment_memory.
  • Added security requirements for merge_pull_request.
  • Added security requirements for create_check_run, including sanitization, repository targeting, SHA resolution, and staged-mode behavior.
File Description
docs/​src/​content/​docs/​specs/​safe-outputs-specification.md Adds the missing conformance sections for comment_memory, merge_pull_request, and create_check_run.

Review effort: Lite (auto)


**Security Requirements**:

- The check run name MUST come only from workflow frontmatter configuration; the handler MUST NOT accept a name from the agent.
- Config-level `output.title` and `output.summary` fallbacks MUST be sanitized and bounded identically to agent-supplied values.
- The check run MUST be created only in the current repository; cross-repository targets are not supported.
- Pull request targeting MUST follow the standard target rules. Agent-supplied `pull_request_number` (and its aliases) MUST be honored only when `target` is `"*"`.
- When `target` is configured, the head SHA MUST be fetched from the Pulls API at execution time rather than trusted from the event payload.
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v1.2.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