Conversation
Add checks for requirements introduced in spec versions 1.17.0–1.19.0: - TYPE-001: merge_pull_request handler existence and default branch protection - TYPE-002: comment_memory memory_id validation and scan bounds - TYPE-003: comment_memory not exposed as agent MCP tool - TYPE-004: create-issue auto-injection for workflows without safe-outputs Updates script version comment from 1.16.0 to 1.19.0. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
Hey One thing that would strengthen this further:
If you'd like a hand, you can assign this prompt to your coding agent:
|
pelikhan
approved these changes
May 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates the Safe Outputs conformance checker script to align with specification changes in versions 1.17.0, 1.18.0, and 1.19.0.
Specification Changes Reviewed
The spec file
docs/src/content/docs/reference/safe-outputs-specification.mdwas added at v1.19.0 (commit ff0acb2). The conformance script was previously at version 1.16.0. Three versions of spec changes required new checks:merge_pull_requestsafe output typecomment_memorysafe output typecreate-issueauto-injection when nosafe-outputs:section present📋 Script Updates & Testing Details
Script Updates
New Checks Added
merge_pull_requesthandler existence and default branch protection (spec Section 7.3, v1.17.0) — verifies handler exists, checksisDefaultfor default branch refusal, validates policy gate checks, and mergeability verificationcomment_memorymemory ID validation (spec Section 7.3, v1.18.0) — verifies[A-Za-z0-9_-]+pattern enforcement, scan page bounding, and body sanitization before upsertcomment_memorynot exposed as agent MCP tool (spec Section 7.3, v1.18.0) — verifies the type is not registered as an agent-editable tool (file-based sync must be used instead)create-issueauto-injection for workflows withoutsafe-outputs:(spec Section 4.3, v1.19.0) — verifies auto-injection logic exists in compiler and suppression logic for non-builtin outputsChecks Modified
1.16.0to1.19.0Testing
All 4 new checks pass:
Script syntax validated:
bash -n scripts/check-safe-outputs-conformance.shpasses.Related Files
docs/src/content/docs/reference/safe-outputs-specification.mdscripts/check-safe-outputs-conformance.sh