Repository navigation
[Safe Outputs Conformance] REQ-002: Complete required spec sections for comment_memory, merge_pull_request, create_check_run - #75328
Conversation
|
✅ 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.
|
|
✅ 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.
|
There was a problem hiding this comment.
🟡 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. |
|
🎉 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 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 Schemamerge_pull_request: missing Security Requirementscreate_check_run: missing Security RequirementsFile:
docs/src/content/docs/specs/safe-outputs-specification.mdRemediation Implemented
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).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.create_check_run: added Security Requirements based onactions/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.shafter 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
🤖 Generated with [Claude Code]((claude.com/redacted)