Registry Mirror
Skip to content

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Conformance Check Failure

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

Problem Description

scripts/check-safe-outputs-conformance.sh reported 18 safe output types in the specification with fewer than the 5 required sections (MCP Tool Schema, Operational Semantics, Configuration Parameters, Security Requirements, Required Permissions). This PR fixes the six issue/PR metadata types that share the same structure. The other 12 are left for follow-up runs, because each needs its own handler review.

Affected Components

  • Files: docs/src/content/docs/specs/safe-outputs-specification.md
  • Types fixed:
    • add_reviewer
    • assign_milestone
    • assign_to_user
    • unassign_from_user
    • set_issue_type
    • set_issue_field
  • Types still failing (not in this PR): push_to_pull_request_branch, assign_to_agent, hide_comment, create_project, update_project, create_project_status_update, update_release, upload_asset, dispatch_workflow, create_code_scanning_alert, autofix_code_scanning_alert, create_agent_session
🔍 Current vs Expected Behavior

Current Behavior

These types documented only purpose, limits, partial configuration, target authorization and permissions. They had no tool schema, no operational semantics and no security requirements. assign_milestone and assign_to_user labelled configuration as "Configuration Options", which the checker does not recognise.

Expected Behavior

Every #### Type: entry carries all five required sections.

Remediation Steps

  1. Added an abbreviated MCP Tool Schema for each type, taken from actions/setup/js/safe_outputs_tools.json.
  2. Added numbered Operational Semantics derived from each handler (add_reviewer.cjs, assign_milestone.cjs, assign_to_user.cjs, unassign_from_user.cjs, set_issue_type.cjs, set_issue_field.cjs), covering limits, target and repo validation, filters, staged mode and mutation paths.
  3. Added Security Requirements that reference the existing target-authorization IDs (ARV/ATU/UFU/SIT/SIF).
  4. Completed Configuration Parameters with options the handlers read but the spec omitted (allowed, blocked, required-labels, required-title-prefix, allowed-reviewers, allowed-team-reviewers, issue-intent) and renamed "Configuration Options" to "Configuration Parameters".

No handler or compiler code changed. The existing Target Authorization text and IDs are untouched.

Verification

Ran bash scripts/check-safe-outputs-conformance.sh:

  • REQ-002 findings dropped from 18 to 12. None of the six types fixed here appear in the output.
  • Critical and High failures: 0. Medium: 18 → 12. Low: 3, unchanged.

Not run, and why:

  • go test ./pkg/workflow could not run. The sandbox could not download the required Go 1.27.4 toolchain (TLS error from proxy.golang.org). I checked by reading safe_outputs_specification_set_issue_field_test.go that it only asserts Target Authorization text, which this PR does not change. I did not read the other spec tests that cover these types.
  • scripts/check-safe-outputs-conformance_test.sh fails with Expected no USE-001 safe-output conformance findings. It fails the same way on main without this change. The cause is the 3 existing LOW USE-001 findings (comment_memory_ledger.cjs, otlp_metrics.cjs, push_ledger_changes.cjs).

References

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

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

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

  • expires on Nov 17, 2026, 9:48 PM UTC-08:00

@pelikhan
pelikhan marked this pull request as ready for review November 17, 2026 06:04
Copilot AI adaptive review requested due to automatic review settings November 17, 2026 06:04
@pelikhan
pelikhan merged commit 1ff84cb into main Nov 17, 2026
2 checks passed
@pelikhan
pelikhan deleted the conformance/req-002-metadata-types-15256fec6ddda1c1 branch November 17, 2026 06:04
@github-actions

github-actions Bot commented Nov 17, 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 · ~2 AIC · ⌖ ~2 AIC · ⊞ 7.3K · ◷

@github-actions

github-actions Bot commented Nov 17, 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 #78649 · 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

Unresolved documentation inaccuracies misstate issue-intent metadata requirements, validation timing relative to read-only API calls, and whether field IDs bypass discovery.

4 open issues
What changed in this PR

This documentation-only PR addresses REQ-002 conformance gaps for six issue and pull request metadata safe-output types in gh-aw. Handler and compiler behavior remain unchanged; the other 12 incomplete types are deferred.

Changes:

  • Adds MCP tool schemas, operational semantics, and security requirements for the six types.
  • Expands configuration references and standardizes the “Configuration Parameters” heading.
  • Preserves existing target-authorization rules and identifiers.
File Description
docs/​src/​content/​docs/​specs/​safe-outputs-specification.md Completes required specification sections for six issue/PR metadata safe-output types.

Review effort: Balanced (adaptive)


- The pull request number MUST be derived only as described in Target Authorization (ARV-001 to ARV-005); agent-supplied numbers MUST NOT override `triggering` or fixed targets.
- Reviewer logins and team slugs MUST be sanitized and, when an allowlist is configured, MUST be rejected if absent from it.
- The reviewer count limit MUST be enforced before any API call and MUST NOT be exceeded by silently combining user and team reviewers.
- `required-title-prefix`: Title prefix the target MUST have for the operation to proceed
- `target-repo`: Cross-repository target
- `allowed-repos`: Cross-repository allowlist
- `issue-intent`: Controls whether intent metadata is forwarded (default: enabled)
**Security Requirements**:

- The target number MUST be derived only as described in Target Authorization (ATU-001 to ATU-005).
- Assignee logins MUST be sanitized and checked against `allowed` and `blocked` before any API call; `blocked` entries MUST take precedence.
```json
{
"name": "set_issue_field",
"description": "Set a single GitHub issue custom field by name and value. Use field_name for discovery by field label, or provide field_node_id to skip discovery. Does NOT support builtin issue fields such as title, body, or state.",
@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