Skip to content

[Safe Outputs Conformance] REQ-002: Complete required spec sections for 12 safe output types - #78954

Merged
pelikhan merged 1 commit into
mainfrom
conformance/req-002-type-sections-e38f585e18a70bf5
Nov 18, 2026
Merged

pelikhan merged 1 commit into
mainfrom
conformance/req-002-type-sections-e38f585e18a70bf5

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Conformance Check Failure

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

Problem Description

The conformance checker reported 12 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 leaves implementers without normative behavior for these types.

Affected Components

  • Files: docs/src/content/docs/specs/safe-outputs-specification.md
  • 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

The 12 types documented only 1-2 of the 5 required sections (typically only Required Permissions).

Expected Behavior

Each type documents all 5 sections, consistent with types such as add_labels and assign_to_user.

Remediation Steps

  1. Added an abbreviated MCP Tool Schema for each type, taken from pkg/workflow/js/safe_outputs_tools.json (and the dispatch_workflow handler message fields, which has no static tool entry).
  2. Added Operational Semantics and Security Requirements derived from the handlers in actions/setup/js/.
  3. Added Configuration Parameters where the type lacked them, using the config keys from the Go config structs and handlers. Existing sections were left unchanged.

This is a documentation-only change; no code or workflows changed.

Validation

  • bash scripts/check-safe-outputs-conformance.sh: REQ-002 now passes. Critical 0, High 0, Medium 0 (was 12), Low 3 (unchanged USE-001 findings, not addressed here).
  • make agent-report-progress-no-test: passed. It reported no Go/JS/JSON changes and no workflow recompilation needed.
  • The final make agent-report-progress (unit tests) was not run. The change is Markdown-only and there are no impacted tests.
  • Spec text was written from the handler code and schemas, not behavior tests. A maintainer should review it for accuracy, especially the push_to_pull_request_branch and dispatch_workflow semantics.

References

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

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

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

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

@pelikhan
pelikhan marked this pull request as ready for review November 18, 2026 05:48
Copilot AI adaptive review requested due to automatic review settings November 18, 2026 05:48
@pelikhan
pelikhan merged commit d6922c2 into main Nov 18, 2026
2 checks passed
@pelikhan
pelikhan deleted the conformance/req-002-type-sections-e38f585e18a70bf5 branch November 18, 2026 05:48
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated by PR Specification Reviewer for #78954 · copilot · gpt56 · ~1 AIC · ⌖ ~1 AIC · ⊞ 1.7K · ◷

@github-actions

github-actions Bot commented Nov 18, 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 · ◷

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 specification mismatches can produce invalid workflows and misrepresent supported authentication, repository authorization, and staged-mode mutation behavior.

12 open issues
What changed in this PR

This documentation-only PR addresses REQ-002 by completing the required specification sections for 12 safe output types in gh-aw.

Changes:

  • Adds MCP schema descriptions, operational semantics, and security requirements.
  • Adds missing configuration parameter sections while retaining existing permission documentation.
  • Leaves runtime code and workflows unchanged.
File Description
docs/​src/​content/​docs/​specs/​safe-outputs-specification.md Expands 12 safe output entries to cover the five required specification sections.

Review effort: Balanced (adaptive)


**Operational Semantics**:

1. **Required Message**: `message` is required on every call and is not read from git. Existing local commits keep their own commit messages.
Comment on lines +4372 to +4379
6. **Size Limit**: A patch or bundle larger than `max-patch-size` (default 4096 KB) MUST fail the item.
7. **No Changes**: When there is nothing to push, the outcome follows `if-no-changes` (`warn` by default, `error`, or `ignore`).
8. **Staged Mode**: In staged mode the handler previews the push and performs no mutation.

**Security Requirements**:

- The privileged handler MUST NOT accept concurrency-control or head-pinning parameters from the agent; the pull request head is pinned by the handler.
- Patch or bundle size MUST be validated against `max-patch-size` before it is applied.

- The owner MUST be resolved from the message or configuration; creation without an owner MUST fail.
- Temporary IDs MUST match `aw_` followed by 3 to 12 alphanumeric or underscore characters.
- Project creation requires a GitHub App token; see Required Permissions.
4. **Field Updates**: `fields` values are applied to the project item after it is added.
5. **Configured Fields and Views**: `field_definitions` and `views` from configuration are created even when the agent does not request them, and configured field definitions fill in when `create_fields` omits its own.
6. **View Validation**: A view MUST have a non-empty `name` and a `layout` of `table`, `board`, or `roadmap`.
7. **Staged Mode**: In staged mode the handler previews the update and performs no mutation.
**Configuration Parameters**:

- `max`: Operation limit
- `project`: Default project URL
Comment on lines +6036 to +6037
- `body-footer`: Deterministic body footer template
- `github-token`: Handler-level token override
Comment on lines +6167 to +6186
**MCP Tool Schema**:

```json
{
"name": "dispatch_workflow",
"description": "Dispatch an allowed workflow via workflow_dispatch.",
"inputSchema": {
"type": "object",
"required": ["workflow_name"],
"properties": {
"workflow_name": {"type": "string"},
"inputs": {"type": "object"},
"ref": {"type": "string"}
},
"additionalProperties": false
}
}
```

> **Note**: The schema above is abbreviated; the compiled tool definition also carries the `secrecy` and `integrity` provenance fields used by all safe output tools.

1. **Per-Run Limit**: Once `max` dispatches have been made, further items MUST be rejected.
2. **Workflow Allowlist**: `workflow_name` MUST appear in `workflows`; otherwise the item fails with an error that lists the allowed workflows.
3. **Repository and Ref Validation**: Cross-repository targets MUST satisfy `target-repo` and `allowed-repos`. A per-call `ref` MUST match `allowed-refs`, or the default branch when `allowed-refs` is omitted.

1. **Empty Task**: An empty or whitespace-only `body` MUST fail the item without calling the API.
2. **Repository Validation**: The target repository MUST be the configured `target-repo` (or the current repository) or appear in `allowed-repos`; otherwise the item fails.
3. **Base Branch**: `base` from configuration is used when set; otherwise the repository default branch is resolved.
- `base`: Base branch for the session
- `target-repo`: Cross-repository target
- `allowed-repos`: Cross-repo allowlist
- `body-footer`: Deterministic footer appended to the task description
@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