Repository navigation
Align daily specification findings - #76900
Conversation
Co-authored-by: gh-aw-bot <[email protected]>
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ PR Specification Reviewer completed successfully! Commit pushed:
|
|
✅ Ponytail Reviewer completed successfully!
|
|
✅ 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.
|
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: 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.
|
There was a problem hiding this comment.
What this change does: It aligns specification wording and telemetry names with the implementation, and moves detailed compatibility history into the changelog.
Should fix:
- The compatibility table repeats the same value across 68 rows. Grouping contiguous versions into four ranges preserves the gaps and makes future updates easier. Otherwise, readers and maintainers must scan many identical entries.
Verdict: Ship.
Lean: -64 lines possible.
Generated by ✂️ Ponytail Reviewer for #76900 · codex · routed: gpt61 medium · ~4 AIC · ⌖ ~1 AIC · ⊞ 181
Comment /ponytail to run again
|
|
||
| | Versions | Minimum gh-aw | | ||
| |---|---:| | ||
| | `1.0.99` | Unreleased | |
There was a problem hiding this comment.
These rows repeat the same compatibility value 68 times, making the table longer to maintain; group the contiguous versions into ranges (1.0.60–1.0.99, 1.0.44–1.0.57, 1.0.40–1.0.43, and 1.0.29–1.0.38) to remove 64 lines while preserving the gaps.
|
Thanks
If you'd like help adding test coverage, you can assign this prompt to your agent:
|
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Found three actionable documentation correctness issues: lockdown semantics are weakened without a matching runtime contract, GP-10 and GP-S002 disagree on warning strength, and the changelog range drops version 1.0.20. Please resolve these inconsistencies before merge.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~5 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
| The MCP Gateway MUST evaluate access in this order: | ||
|
|
||
| 1. `lockdown: true` takes absolute precedence and denies the invocation; `allowed-repos` and `min-integrity` MUST NOT be evaluated. | ||
| 1. `lockdown: true` takes absolute precedence and restricts access to the triggering repository. Guard-policy fields MUST NOT be evaluated for authorization while lockdown is active. |
There was a problem hiding this comment.
This changes lockdown from an unconditional deny into repository-scoped access without documenting or demonstrating a matching runtime contract, which can silently permit operations that min-integrity or user policies previously blocked.
💡 Preserve an explicit, versioned runtime decision
The repository only compiles and forwards the lockdown setting; enforcement is external. Before changing this normative behavior, link the gateway contract/version that implements repository-only lockdown, or retain the deny semantics until that runtime change is deployed and tested. Otherwise the specification can advertise weaker protections than the deployed gateway enforces.
| **GP-09**: Implementations SHOULD emit a debug-level log message when a guard policy is derived, identifying the source `allowed-repos` value and the resulting `accept` list. | ||
|
|
||
| **GP-10**: When `lockdown: true` is set in the same workflow, implementations MUST treat `lockdown` as taking absolute precedence. Guard policy fields (`allowed-repos`, `min-integrity`) MUST NOT widen access beyond the single triggering repository when lockdown is active. The compiler SHOULD emit a warning when both `lockdown: true` and guard policy fields are present. | ||
| **GP-10**: When `lockdown: true` is set in the same workflow, the MCP Gateway MUST restrict access to the triggering repository and MUST ignore guard-policy fields (`allowed-repos`, `min-integrity`) for authorization. Those fields MUST NOT widen access or independently deny an invocation to the triggering repository. The compiler MUST continue validating configured fields and SHOULD emit a warning when lockdown and guard-policy fields are both present. Compiler validation and warning behavior are implemented in `pkg/workflow/tools_validation_github.go`. |
There was a problem hiding this comment.
GP-10 says the compiler SHOULD warn for this conflict, but GP-S002 below says it MUST warn, leaving conformance and test expectations contradictory.
💡 Use one normative strength in both rules
Make GP-10 and GP-S002 use the same MUST/SHOULD wording, and keep the implementation reference aligned with that choice. A compiler can otherwise conform to one rule while violating the other.
| | 1.0.25–1.0.23 | Added CTR-025 and mapping-only audit updates. | | ||
| | 1.0.22 | Added suppression and optimizer-failure requirements. | | ||
| | 1.0.20–1.0.15 | Added CTR-022, CTR-023, and CTR-021. | | ||
| | 1.0.21–1.0.15 | Added CTR-022, CTR-023, and CTR-021. | |
There was a problem hiding this comment.
This range drops version 1.0.20 from the history table, so CTR-022/023/021 no longer has a mapping for that release despite the stated goal of retaining detailed history.
💡 Keep 1.0.20 covered
Restore the original 1.0.20–1.0.15 range, or add a separate 1.0.20 row with its correct mapping. Please verify the full version sequence before merging so this maintenance edit does not erase historical coverage.
There was a problem hiding this comment.
🟡 Changes recommended
The specification has two unresolved normative inconsistencies: GP-10 conflicts with GP-S002 on the warning’s requirement and fields, and the MUST warning requirement is not met for configurations rejected before warning emission.
2 open issues
What changed in this PR
This pull request reconciles specification documents with current implementation behavior across outcome telemetry, guard-policy semantics, threat-detection history, and AWF configuration metadata.
Changes:
- Standardizes safe-output outcome attributes under the
gh-aw.outcome.*namespace. - Aligns guard-policy validation, lockdown requirements, test references, and version metadata.
- Condenses the threat-detection compatibility table while preserving detailed history in its changelog and updates the AWF configuration date.
| File | Description |
|---|---|
| specs/safe-output-outcome-evaluation.md | Standardizes outcome attribute names and retains the existing formal-model references. |
| specs/compiler-threat-detection-spec.md | Replaces verbose compatibility details with concise version mappings. |
| specs/compiler-threat-detection-changelog.md | Preserves detailed threat-detection version history and corrects version-range metadata. |
| specs/awf-config-sources-spec.md | Updates the last-modified date to match the latest changelog entry. |
| scratchpad/guard-policies-specification.md | Aligns guard-policy validation, lockdown semantics, test references, and specification version metadata. |
Review effort: Lite (auto)
| **GP-09**: Implementations SHOULD emit a debug-level log message when a guard policy is derived, identifying the source `allowed-repos` value and the resulting `accept` list. | ||
|
|
||
| **GP-10**: When `lockdown: true` is set in the same workflow, implementations MUST treat `lockdown` as taking absolute precedence. Guard policy fields (`allowed-repos`, `min-integrity`) MUST NOT widen access beyond the single triggering repository when lockdown is active. The compiler SHOULD emit a warning when both `lockdown: true` and guard policy fields are present. | ||
| **GP-10**: When `lockdown: true` is set in the same workflow, the MCP Gateway MUST restrict access to the triggering repository and MUST ignore guard-policy fields (`allowed-repos`, `min-integrity`) for authorization. Those fields MUST NOT widen access or independently deny an invocation to the triggering repository. The compiler MUST continue validating configured fields and SHOULD emit a warning when lockdown and guard-policy fields are both present. Compiler validation and warning behavior are implemented in `pkg/workflow/tools_validation_github.go`. |
| When `lockdown: true` is present on the same workflow, the MCP Gateway MUST restrict access to the triggering repository and MUST ignore guard-policy fields (`allowed-repos`, `min-integrity`, `blocked-users`, `trusted-users`, `approval-labels`) for authorization. Those fields MUST NOT widen access or independently deny an invocation to the triggering repository. The compiler MUST continue validating configured fields. | ||
|
|
||
| **Shared precedence rule**: `lockdown: true` takes absolute precedence over `allowed-repos`, including non-empty allowlists, and over `min-integrity`; implementations MUST ignore those guard-policy fields for authorization while lockdown is active and MUST NOT allow them to widen access beyond the triggering repository. | ||
| The compiler MUST emit a warning when lockdown and guard-policy fields are both configured. `validateGitHubGuardPolicy()` implements the validation and warning behavior in `pkg/workflow/tools_validation_github.go`. |
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Reviewed head b1aaa39. Blocking: the compiler threat-detection specification replaces detailed minimum-binary mappings with mostly Unreleased rows and drops historical descriptions, violating Section 2 version traceability. Restore all prior mappings and preserve complete history; see the inline comment. Queued specification updates: safe-output outcome version 1.0.4 for the intentional gh-aw.outcome naming correction and AWF metadata date 2026-11-11, commit 78da903. Static review only; tests not run. Guard-policy scratchpad is non-authoritative and was not edited.
Generated by PR Specification Reviewer for #76900 · copilot · gpt50 · ~6 AIC · ⌖ ~3 AIC · ⊞ 1.6K
Comment /review-specs to run again
|
|
||
| | Versions | Minimum gh-aw | | ||
| |---|---:| | ||
| | `1.0.99` | Unreleased | |
There was a problem hiding this comment.
Blocking: Section 2 requires every version to retain its minimum compatible binary mapping, while the detailed history belongs in the changelog. This replacement changes the historical rows to mostly Unreleased (for example, the prior 1.0.43 row mapped to v0.87.9) and removes their per-version descriptions, so it loses compatibility and traceability rather than merely making the table concise. Preserve every existing minimum-binary mapping; move descriptions only if the changelog retains the complete history.
There was a problem hiding this comment.
Skills-Based Review
Applied /grill-with-docs against the guard-policy and threat-detection specs. Requesting changes on one security-relevant semantic change and two correctness issues.
📋 Key Themes and Highlights
Blocking
- Lockdown semantics changed from deny to restrict (
scratchpad/guard-policies-specification.mdline 144). Lockdown is a security boundary, so this needs explicit sign-off and a 0.2.0 change-log entry. - Conflicting normative level for the lockdown warning: GP-10 says SHOULD warn while GP-S002 says MUST. Make them agree and match the implementation.
- Removal tracker is not valid: issue #44357 is closed and is a daily spec work plan, not a repos-alias removal tracker.
Non-blocking
- Extra blank line after GP-S002 's See also line.
- The compatibility table condensation dropped the 1.0.29 row description, and the changelog has no dedicated 1.0.29 row.
Verified
- ✅
ghaw.outcome.*togh-aw.outcome.*rename is complete. No stale references remain in the repo. - ✅
TestValidateGitHubGuardPolicy,TestValidateGitHubGuardPolicyLockdownWarning, andTestValidateReposScopeexist as cited. - ✅ The GP-11 claim that omitted
allowed-reposwithmin-integritydefaults to"all"matchestools_validation_github.go. - ✅ The 1.0.21 range fix removes the overlap with the 1.0.22 row.
- ✅ Condensing the compatibility table while keeping detail in the changelog matches the PR body.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again
| The MCP Gateway MUST evaluate access in this order: | ||
|
|
||
| 1. `lockdown: true` takes absolute precedence and denies the invocation; `allowed-repos` and `min-integrity` MUST NOT be evaluated. | ||
| 1. `lockdown: true` takes absolute precedence and restricts access to the triggering repository. Guard-policy fields MUST NOT be evaluated for authorization while lockdown is active. |
There was a problem hiding this comment.
[/grill-with-docs] This changes lockdown from denying an invocation to restricting it to the triggering repository. That is a security-boundary semantic change, not a wording fix. Please confirm it is intended and record it explicitly in the 0.2.0 change log, since the PR body only asks to align behavior.
💡 Why it matters
Line 148 also replaces the emergency security stop phrasing with emergency scope restriction. Readers relying on lockdown as a hard stop will now see a scope restriction instead. If deny behavior is still intended, revert this paragraph and keep GP-10 and GP-S002 aligned to it.
@copilot please address this.
| **GP-09**: Implementations SHOULD emit a debug-level log message when a guard policy is derived, identifying the source `allowed-repos` value and the resulting `accept` list. | ||
|
|
||
| **GP-10**: When `lockdown: true` is set in the same workflow, implementations MUST treat `lockdown` as taking absolute precedence. Guard policy fields (`allowed-repos`, `min-integrity`) MUST NOT widen access beyond the single triggering repository when lockdown is active. The compiler SHOULD emit a warning when both `lockdown: true` and guard policy fields are present. | ||
| **GP-10**: When `lockdown: true` is set in the same workflow, the MCP Gateway MUST restrict access to the triggering repository and MUST ignore guard-policy fields (`allowed-repos`, `min-integrity`) for authorization. Those fields MUST NOT widen access or independently deny an invocation to the triggering repository. The compiler MUST continue validating configured fields and SHOULD emit a warning when lockdown and guard-policy fields are both present. Compiler validation and warning behavior are implemented in `pkg/workflow/tools_validation_github.go`. |
There was a problem hiding this comment.
[/grill-with-docs] The normative level for the lockdown warning conflicts. GP-10 now says the compiler SHOULD warn, but GP-S002 at line 540 says MUST. Use one level in both places and make sure the implementation matches it.
@copilot please address this.
|
|
||
| ### Version 0.2.0 | ||
|
|
||
| - Records `repos` as a deprecated alias for `allowed-repos`; issue [#44357](https://github.com/github/gh-aw/issues/44357) tracks removal. |
There was a problem hiding this comment.
[/grill-with-docs] Issue #44357 is closed, and its body is a daily spec work plan, not a removal tracker for the repos alias. Pointing the deprecation note at it does not satisfy the removal-tracker requirement for version 0.2.0. Link the real tracker, or open one and reference it here.
@copilot please address this.
| The compiler MUST emit a warning when lockdown and guard-policy fields are both configured. `validateGitHubGuardPolicy()` implements the validation and warning behavior in `pkg/workflow/tools_validation_github.go`. | ||
|
|
||
| See also: [github-mcp-access-control-specification.md §9.5.1](github-mcp-access-control-specification.md#951-precedence-rule). | ||
|
|
There was a problem hiding this comment.
Nit: two blank lines remain here after the See also line, left over from the removed warning sentence. Remove one.
@copilot please address this.
| | `1.0.32` | `v0.87.9` | | ||
| | `1.0.31` | `v0.87.9` | | ||
| | `1.0.30` | `v0.87.9` | | ||
| | `1.0.29` | `v0.87.9` | |
There was a problem hiding this comment.
[/grill-with-docs] The condensed compatibility table keeps the version-to-binary mapping, but the 1.0.29 row lost its description (CTR-004 Playwright renderer mapping). The changelog only has a broad 1.0.30–1.0.27 row mentioning CTR-001, CTR-004, and CTR-006 mapping synchronization, so the 1.0.29 detail is no longer recoverable. Add a dedicated 1.0.29 changelog row.
@copilot please address this.
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "b312531996aeb81d12082b992ed63de61e839b09",
"kind": "requested",
"schema_version": "1",
"state": "999c9ff94fa3b80422bf679d463ada63b5b3643080285399ff67e9598df28425",
"work": [
"37892b983192ba277eb7f40c6b638a8b3ba899799ddcd5032797c99480a38ed9",
"4c19614233ed027f0ac71c8d688c9b4e92511223f9f542933bedb438891f55d3",
"5964618fe2986d7dd8df2478341c677c1c1f835e38eb567f45330438343621a0",
"6dce6993b30be7183117af6e61a9c74a9678693ee727308ff58a6ddf91d81384",
"716ec598b6c2f1217d9c2cd1ac4a4238b8ed8e5b6a769ad9bad1c9a1ec6a7098",
"74ced0d6f64470b7f1a20ddeea08d85db6e87244562d3bfd2423d0d165c94d35",
"83992fe003400f35018076a43f93d5ecec5570ea0850de45c492027ead5b886f",
"bda641747d4c1c21c14b700f1942c5ab5191d02d9e666633ffddacb72ece0605",
"d30b841daa0a62777e3d64390e583f478fced2c0d466f738ee4de2f3af4af980",
"e89e7ee84588e9281b0945dd096707e375ea4a595c935ce94998c27302603996"
],
"workflow": "pr-sous-chef"
}
|
Co-authored-by: gh-aw-bot <[email protected]>
|
🎉 This pull request is included in a new release. Release: |

Resolve the spec review’s broken test reference and contradictions between documented requirements and implementation. Align telemetry naming and version-history metadata while preserving the existing formal-model links.
gh-aw.outcome.*.min-integrityis required and align lockdown behavior across the evaluation order, GP-10, and GP-S002. Reference the existing repo-scope test and align version0.2.0with the deprecation note and removal tracker.