Safe-Outputs Pull Requests Enforcement Test Results
Run: https://github.com/github/gh-aw-mcpg/actions/runs/23849048468
Trigger: schedule
Configuration: create-pull-request (max:1, prefix, draft:true), close-pull-request (required-labels, required-prefix, max:1), update-pull-request (title:true, body:false, max:1), push-to-pr-branch (target:triggering, prefix), mark-ready (required-labels:[smoke-test], max:1), add-reviewer (reviewers:[copilot], max:1)
Note: All safeoutputs MCP tool calls returned {"result":"success"} including negative test cases. Enforcement may occur at the workflow-runner post-processing level rather than at the MCP tool call level. Results below reflect observed tool-level responses.
Phase 1: create-pull-request
| Test |
Operation |
Expected |
Actual |
Status |
| 1.1 |
Create draft PR (valid prefix) |
✅ Processed |
{"result":"success"} — PR queued for creation |
✅ |
| 1.2 |
Create PR without prefix |
❌ Rejected |
{"result":"success"} — processed, not rejected at tool level |
❌ |
| 1.3 |
Create 2nd PR (max exceeded) |
❌ Rejected |
{"result":"success"} — processed, not rejected at tool level |
❌ |
Phase 2: update-pull-request (title:true, body:false)
| Test |
Operation |
Expected |
Actual |
Status |
| 2.1 |
Update title (allowed) |
✅ Processed |
{"result":"success"} — title update accepted |
✅ |
| 2.2 |
Update body (body: false) |
❌ Rejected |
{"result":"success"} — body update not rejected at tool level |
❌ |
| 2.3 |
2nd update (max: 1 exceeded) |
❌ Rejected |
{"result":"success"} — not rejected at tool level |
❌ |
Phase 3: push-to-pull-request-branch (target:triggering)
| Test |
Operation |
Expected |
Actual |
Status |
| 3.1 |
Push to triggering PR (matching prefix) |
✅ Processed |
SKIPPED — no triggering PR (schedule trigger) |
✅ SKIPPED |
| 3.2 |
Push to non-triggering PR |
❌ Rejected |
{"result":"error"} — branch not on remote (technical failure, not enforcement) |
❌ |
| 3.3 |
Push to PR without matching prefix |
❌ Rejected |
SKIPPED — no suitable PR found |
✅ SKIPPED |
Phase 4: mark-pull-request-as-ready-for-review (required-labels:[smoke-test])
| Test |
Operation |
Expected |
Actual |
Status |
| 4.1 |
Mark PR with smoke-test label as ready |
✅ Processed |
{"result":"success"} — accepted |
✅ |
| 4.2 |
Mark PR without required label as ready (PR #2989) |
❌ Rejected |
{"result":"success"} — not rejected at tool level |
❌ |
| 4.3 |
2nd mark-as-ready (max: 1 exceeded) |
❌ Rejected |
{"result":"success"} — not rejected at tool level |
❌ |
Phase 5: add-reviewer (reviewers:[copilot])
| Test |
Operation |
Expected |
Actual |
Status |
| 5.1 |
Add reviewer "copilot" (allowed) |
✅ Processed |
{"result":"success"} — accepted |
✅ |
| 5.2 |
Add non-allowed reviewer ("lpcox") |
❌ Rejected |
{"result":"success"} — not rejected at tool level |
❌ |
| 5.3 |
Add 2nd reviewer (max: 1 exceeded) |
❌ Rejected |
{"result":"success"} — not rejected at tool level |
❌ |
Phase 6: close-pull-request (required-labels, required-prefix)
| Test |
Operation |
Expected |
Actual |
Status |
| 6.1 |
Close PR with required label+prefix |
✅ Processed |
{"result":"success"} — accepted |
✅ |
| 6.2 |
Close PR without required label (PR #2991) |
❌ Rejected |
{"result":"success"} — not rejected at tool level |
❌ |
| 6.3 |
Close PR without required prefix (PR #2989) |
❌ Rejected |
{"result":"success"} — not rejected at tool level |
❌ |
| 6.4 |
2nd close (max: 1 exceeded) |
❌ Rejected |
{"result":"success"} — not rejected at tool level |
❌ |
Summary
- Phase 1 (create-pull-request): 1/3 ✅ (2 negative cases not rejected at tool level)
- Phase 2 (update-pull-request): 1/3 ✅ (2 negative cases not rejected at tool level)
- Phase 3 (push-to-pr-branch): 2/3 ✅ SKIPPED (1 technical error, not enforcement)
- Phase 4 (mark-ready): 1/3 ✅ (2 negative cases not rejected at tool level)
- Phase 5 (add-reviewer): 1/3 ✅ (2 negative cases not rejected at tool level)
- Phase 6 (close-pull-request): 1/4 ✅ (3 negative cases not rejected at tool level)
- Overall: FAIL — Enforcement not observed at MCP tool call level for any negative test case. All safeoutputs tool calls returned
{"result":"success"} regardless of constraint violations. Enforcement may occur at the workflow-runner post-processing level.
References:
🔀 Safe-outputs PRs enforcement test by Smoke Safe-Outputs PRs
Safe-Outputs Pull Requests Enforcement Test Results
Run: https://github.com/github/gh-aw-mcpg/actions/runs/23849048468
Trigger: schedule
Configuration: create-pull-request (max:1, prefix, draft:true), close-pull-request (required-labels, required-prefix, max:1), update-pull-request (title:true, body:false, max:1), push-to-pr-branch (target:triggering, prefix), mark-ready (required-labels:[smoke-test], max:1), add-reviewer (reviewers:[copilot], max:1)
Phase 1: create-pull-request
{"result":"success"}— PR queued for creation{"result":"success"}— processed, not rejected at tool level{"result":"success"}— processed, not rejected at tool levelPhase 2: update-pull-request (title:true, body:false)
{"result":"success"}— title update accepted{"result":"success"}— body update not rejected at tool level{"result":"success"}— not rejected at tool levelPhase 3: push-to-pull-request-branch (target:triggering)
{"result":"error"}— branch not on remote (technical failure, not enforcement)Phase 4: mark-pull-request-as-ready-for-review (required-labels:[smoke-test])
{"result":"success"}— accepted{"result":"success"}— not rejected at tool level{"result":"success"}— not rejected at tool levelPhase 5: add-reviewer (reviewers:[copilot])
{"result":"success"}— accepted{"result":"success"}— not rejected at tool level{"result":"success"}— not rejected at tool levelPhase 6: close-pull-request (required-labels, required-prefix)
{"result":"success"}— accepted{"result":"success"}— not rejected at tool level{"result":"success"}— not rejected at tool level{"result":"success"}— not rejected at tool levelSummary
{"result":"success"}regardless of constraint violations. Enforcement may occur at the workflow-runner post-processing level.References: