Skip to content

Align spec compliance checks and reject unsupported GitHub MCP controls - #78413

Merged
pelikhan merged 8 commits into
mainfrom
copilot/spdd-daily-spec-work-plan
Nov 17, 2026
Merged

pelikhan merged 8 commits into
mainfrom
copilot/spdd-daily-spec-work-plan

Conversation

@gh-aw-bot

@gh-aw-bot gh-aw-bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

The daily spec review found gaps between documented behavior, local validation, and fixture inventories. This change makes unsupported access-control fields explicit and adds checks to catch specification and fixture drift.

  • GitHub MCP access control: Reject roles and private-repos instead of silently ignoring them; document their deferred status. Record that the deprecated repos alias remains supported with no removal version scheduled.
  • Compliance checks: Verify workflow-security P1 backlog modules exist, assert the outcome corpus count matches the spec, and compare the forecast fixture table against the six files on disk.
  • Spec synchronization: Reconcile GP-01/GP-11 implementation notes and align combined blocked/integrity coverage with P5-before-P6 error selection.

For example, this configuration now fails validation rather than implying role filtering is enforced:

tools:
  github:
    roles: [write]

Copilot AI linked an issue Nov 16, 2026 that may be closed by this pull request
1 of 9 tasks
gh-aw-bot and others added 2 commits November 16, 2026 16:16
@gh-aw-bot gh-aw-bot changed the title [WIP] Update daily SPDD review findings for 2026-11-16 Align spec compliance checks and reject unsupported GitHub MCP controls Nov 16, 2026
@pelikhan
pelikhan marked this pull request as ready for review November 16, 2026 17:05
Copilot AI adaptive review requested due to automatic review settings November 16, 2026 17:05
@github-actions

Copy link
Copy Markdown
Contributor

🚀 PR Specification Reviewer has started processing this pull request

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~9 AIC · ⌖ ~2 AIC · ⊞ 6.7K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality 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.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Generated by Ponytail Reviewer for #78413 · codex · routed: gpt61 medium · ~5 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ 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 · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

@github-actions github-actions Bot 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.

What this change does: It rejects unsupported GitHub MCP controls and adds checks for specification and fixture drift.

Should fix

  1. Share the fixture inventory with the timestamp test, so adding a fixture does not require maintaining a second list. See the inline comment.

Verdict: Ship.
Lean: -8 lines possible.

Generated by ✂️ Ponytail Reviewer for #78413 · codex · routed: gpt61 medium · ~5 AIC · ⌖ ~1 AIC · ⊞ 185
Comment /ponytail to run again

sort.Strings(onDisk)
sort.Strings(documentedInReadme)

assert.Equal(t, documented, documentedInReadme,

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.

The timestamp test above keeps a separate copy of this fixture list, so adding a fixture requires updating both lists even though this check says it verifies the exercised inventory. Make TestFormal_FC_P9_TimestampOrdering iterate documentedForecastFixtures and remove its local list; the check will then cover the fixtures that test actually runs and save eight lines.

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.

Updated TestFormal_FC_P9_TimestampOrdering to iterate documentedForecastFixtures, removing the duplicate fixture inventory. Commit 8bce442.

@github-actions github-actions Bot 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.

Static review completed. I found no actionable correctness, security, performance, or maintainability issues in the changed lines. The specialist pass completed; its advisory candidates were checked and not retained. No tests were run per the static-review instructions.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K
Comment /review to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-9bd96a7e-5501-49cc-9687-cb638cfc5791","parents":[],"payload":{"id":"ldg-00178573-1e11-446b-9de1-e67b03d98a35","operation":"append","value":{"finding_count":0,"head_sha":"dc43187aed3acafeb0c3a456ba160f647fdff0f","outcome":"no_findings"}},"sha":"sha256:da36eaa5b94781178e605dd59e98a5e9477dd6f97f16dc8d451c4eebe0d2e9ca","timestamp":"2026-11-16T17:15:41.844Z","type":"ledger_append","version":1}
History

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-3b40b023-1fef-4a21-a966-275a6aed1bf0","parents":[],"payload":{"id":"ldg-35585a5c-2228-453d-96e4-b2b502f8828a","operation":"append","value":{"finding_count":1,"head_sha":"dc43187aed3ac60ebf0c3a456ba160f647fdff0f","outcome":"regression"}},"sha":"sha256:93bc39846d820935fc92c1c5b93c8ce24bea94586a86eec7b94afc5f558d96a6","timestamp":"2026-11-16T17:18:15.285Z","type":"ledger_append","version":1}
History

@github-actions github-actions Bot 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.

Skills-Based Review 🧠

Applied /diagnosing-bugs and /tdd. Verdict: the behavior change is sound and the targeted tests pass, with two non-blocking follow-ups.

Verified: go test ./pkg/workflow/ -run TestValidateGitHubGuardPolicy|TestFormal|TestParseGitHub and go test ./pkg/cli/ -run TestOutcomeConformance|TestFormal_Fixture|TestFormal_ForecastSpecSync both pass. gofmt is clean. The outcome corpus has 95 cases, matching the spec. All six P1 backlog rows match the new regex and their .tla targets exist.

📋 Key Themes and Findings

Findings

  • Inline, tools_validation_github.go:227: the new "will not enforce access control" message is unreachable from gh aw compile. The JSON schema rejects roles and private-repos first with Unknown property, so the new unit tests cover a path users never hit. The rejection itself is correct. Consider a compile-level test that checks the user-facing text.
  • Inline, specs/workflow-security/check.py:240: the P1 extraction returns nothing only when zero rows match. It can silently skip a future P1 row with a different layout. Compare the count of | P1 | lines with the extracted targets.

Positive Highlights

  • ✅ Fail-closed rejection of unsupported access-control fields, rather than silently ignoring them.
  • ✅ Spec, README, and compliance fixture docs now agree on the roles, private-repos, and repos status.
  • ✅ The forecast fixture check now compares the README table, the on-disk files, and the test list.

@copilot please address the review comments above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~9 AIC · ⌖ ~2 AIC · ⊞ 6.7K
Comment /matt to run again

Comment thread pkg/workflow/tools_validation_github.go Outdated
for _, field := range fields {
quotedFields = append(quotedFields, "'tools.github."+field+"'")
}
return fmt.Errorf("%s is not supported by the local compiler and will not enforce access control; remove the unsupported field", strings.Join(quotedFields, ", "))

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.

[/diagnosing-bugs] The new will not enforce access control message never reaches gh aw compile users. The JSON schema already rejects roles and private-repos as Unknown property (tools.github has additionalProperties: false), and the string compile API runs schema validation before validateGitHubGuardPolicy. The new unit cases do not run schema validation, so they cannot catch this.

💡 Suggested fix

Add a compile-level test that asserts this message for tools.github.roles and tools.github.private-repos, or document that the schema is the user-facing rejection and this check is defense-in-depth for programmatic callers.

@copilot please address this.

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.

Added compile-level checks for both unsupported fields supplied through relaxed imports. Normal main-workflow frontmatter is still rejected earlier by schema validation; the guard check is defense-in-depth for imported and direct callers. Commit 8bce442.

Comment thread specs/workflow-security/check.py Outdated
def check_p1_backlog_modules():
readme = (ROOT / "README.md").read_text()
targets = re.findall(
r"^\|[^|]+\|\s*P1\s*\|[^|]*\|\s*`([^`]+\.tla)`",

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.

[/tdd] The P1 extraction regex only matches a backticked .tla in the fourth column, so a future P1 row with a different layout is silently skipped. The check only fails when zero rows match. All six current | P1 | rows match, so this is a robustness gap rather than a bug.

💡 Suggested check

Also count the lines containing | P1 | and raise when that count differs from the number of extracted targets.

@copilot please address this.

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.

Every P1 row is now parsed individually; malformed target cells fail explicitly, and every listed module is checked. Focused cases cover malformed cells and a missing module. Commit 8bce442.

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

The specification change leaves the compliance README and CI pins stale, causing main-branch and hourly checks to fail with 'Spec pin drift' after merge.

4 open issues
What changed in this PR

This PR aligns gh-aw’s GitHub MCP validation and specification documentation, while adding checks to detect specification and fixture drift.

Changes:

  • Track and reject unsupported GitHub MCP access-control fields, with validation tests.
  • Check P1 model-module references, outcome corpus counts, and forecast fixture inventories.
  • Clarify deferred support, alias retention, implementation mappings, and guard-error precedence.
File Description
specs/​workflow-security/​README.md Documents the P1 backlog module check.
specs/​workflow-security/​check.py Checks referenced P1 modules before model checking.
specs/​github-mcp-access-control-compliance/​README.md Clarifies unsupported controls and combined guard-error expectations.
specs/​forecast-compliance-fixtures/​README.md Lists all six fixtures and describes synchronization checks.
scratchpad/​guard-policies-specification.md Records alias retention and updates implementation mappings.
scratchpad/​github-mcp-access-control-specification.md Refreshes field statuses, retention decisions, and implementation audit notes.
pkg/​workflow/​tools_validation_test.go Tests rejection of unsupported fields individually and together.
pkg/​workflow/​tools_validation_github.go Reports unsupported GitHub MCP access-control fields.
pkg/​workflow/​tools_types.go Stores unsupported field names for validation.
pkg/​workflow/​tools_parser.go Records unsupported keys during parsing.
pkg/​cli/​outcome_conformance_test.go Compares the outcome corpus size with the specification.
pkg/​cli/​forecast_compliance_fixtures_formal_test.go Compares the README, fixture files, and test inventory.

Review effort: Max (dynamic)

This section records the current mapping of Section 4 configuration fields to the compiler model, including fields for which no corresponding local Go entity exists.

**Last verified**: 2026-11-10
**Last verified**: 2026-11-16

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.

Updated the README and CI pins to spec-changing commit 8bce442 in follow-up commit 03cf923; the README now documents the follow-up pin procedure.

Comment on lines +237 to +248
def check_p1_backlog_modules():
readme = (ROOT / "README.md").read_text()
targets = re.findall(
r"^\|[^|]+\|\s*P1\s*\|[^|]*\|\s*`([^`]+\.tla)`",
readme,
re.MULTILINE,
)
if not targets:
raise RuntimeError("No P1 refinement backlog module targets found in README.md")
missing = [target for target in targets if not (ROOT / target).is_file()]
if missing:
raise RuntimeError(f"P1 refinement backlog references missing TLA+ modules: {', '.join(missing)}")

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.

P1 target parsing now rejects empty or malformed cells and checks every listed module; focused tests cover malformed rows and missing files. Commit 8bce442.

Comment on lines +227 to +231
for _, field := range []string{"roles", "private-repos"} {
if _, ok := configMap[field]; ok {
config.unsupportedAccessControlFields = append(config.unsupportedAccessControlFields, field)
}
}

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.

Added compile-level relaxed-import tests for both roles and private-repos, and updated the sync notes to distinguish schema rejection from imported/direct-caller validation. The PR body itself was not updated because the available tools do not expose a PR-edit operation. Commit 8bce442.

Comment thread pkg/workflow/tools_validation_github.go Outdated
Comment on lines +223 to +227
var quotedFields []string
for _, field := range fields {
quotedFields = append(quotedFields, "'tools.github."+field+"'")
}
return fmt.Errorf("%s is not supported by the local compiler and will not enforce access control; remove the unsupported field", strings.Join(quotedFields, ", "))

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.

The validation message now uses singular/plural wording consistently and includes a repository-scope YAML example labeled as separate from role/visibility filtering. Commit 8bce442.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator Author

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (pkg/cli/forecast_compliance_fixtures_formal_test.go:749): address unresolved feedback - Review comment
  3. Review (pkg/workflow/tools_validation_github.go:227): address unresolved feedback - Review comment
  4. Review (specs/workflow-security/check.py:240): address unresolved feedback - Review comment
  5. Review (scratchpad/github-mcp-access-control-specification.md:2784): address unresolved feedback - Review comment
  6. Review (specs/workflow-security/check.py:248): address unresolved feedback - Review comment
  7. Review (pkg/workflow/tools_parser.go:231): address unresolved feedback - Review comment
  8. Review (pkg/workflow/tools_validation_github.go:227): address unresolved feedback - Review comment
  9. Fix failing check conclusion (FAILURE): Check run.

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "dc43187aed3ac60ebf0c3a456ba160f647fdff0f",
  "kind": "requested",
  "schema_version": "1",
  "state": "fc5e571c8da405e732c3eefc509b8ef6ea3b653e724a1925261f7b3dad50286b",
  "work": [
    "4dbdb2862f0658d2bbb675ae53758160a060fd062f209981a1048ac5e086ec20",
    "51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf",
    "75099df605f2a750222bead85a57aa608977be198308192f1d99f0d666c00fdf",
    "9c43aa2f0475cb5b0e9548be2fa88232dcfd60a801241bf01818f75fecafa757",
    "a737a9398f3682e76c5c9c794e068462a866d6fdb8e2a6fa2bceee50f57dd223",
    "a7c3b5b20ff99d616694551b8b4cd13b47d46afc114dbb5390161401e9de6c92",
    "b3175ef3b5a3f8373a00f94b8670915f4348a1a61a3eae66e1829a4094f84a0c",
    "c6ef6ffdb88ab0800500ce5a5aee847e933e33a4a68410e78b232c80fd2e9433"
  ],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 7K · ◷
Comment /souschef to run again

gh-aw-bot and others added 2 commits November 16, 2026 18:08
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>

Copilot AI commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:...

Merged latest main; review fixes are in 8bce442 and spec pins in 03cf923. Focused tests passed. The final gate is blocked by pre-existing custom Go linter findings; the supplied reviewer run failed with report_incomplete after workflow tool permissions blocked review publication. CodeQL timed out, so it was not retried. No workflow was dispatched. The PR body could not be edited with the available tools.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator Author

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Fix failing check impacted-js-tests (FAILURE): Check run.

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "03cf92384c07755aa43a12f84ba5069bec203380",
  "kind": "requested",
  "schema_version": "1",
  "state": "f33d0b91fb9d83b9d1c558993f246453512c41bb5063be1fb05eddd51df231bd",
  "work": [
    "7fdcb480e7a98cc7e0f466a49ad1c7f7e8c5cfc22f8fbcc711724ed335220761"
  ],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 7K · ◷
Comment /souschef to run again

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

Copilot AI commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:...

make merge-main confirmed main was already integrated. Fixed the impacted JS test harness and synchronized the Dependabot workflow prompt/lock; all 18 focused tests pass. Commit: b98808b. The final gate is still blocked by existing custom Go linter findings; CodeQL timed out.

@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot review mcpg configuration and confirm changes. Remove unsupported features.

Copilot AI commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

@copilot review mcpg configuration and confirm changes. Remove unsupported features.

Confirmed: tools.github.roles and tools.github.private-repos are not supported or forwarded to MCPG; the schema rejects them and compiler validation rejects them through relaxed imports/direct callers. allowed-repos remains supported, and the deprecated repos alias remains for compatibility. Focused validation tests pass.

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:...

Merged latest main in 02dda73. The impacted JavaScript test failure was fixed in b98808b; make test-workflow-tool-contracts now passes all 41 tests. The final gate still reports the pre-existing custom Go linter findings in pkg/workflow/tools_types.go and pkg/workflow/tools_validation_github.go.

@copilot review mcpg configuration and confirm changes. Remove unsupported features.

Confirmed: tools.github.roles and tools.github.private-repos are not supported or forwarded to MCPG; the schema rejects them and compiler validation rejects them through relaxed imports/direct callers. allowed-repos remains supported, and the deprecated repos alias remains for compatibility. Focused validation tests pass.

@copilot review mcpg configuration and confirm changes. Remove unsupported features.

Confirmed: tools.github.roles and tools.github.private-repos are not supported or forwarded to MCPG; the schema rejects them and compiler validation rejects them through relaxed imports/direct callers. allowed-repos remains supported, and the deprecated repos alias remains for compatibility. Focused validation tests pass.

Copilot AI requested a review from pelikhan November 16, 2026 21:46
@pelikhan
pelikhan merged commit 3c08180 into main Nov 17, 2026
69 checks passed
@pelikhan
pelikhan deleted the copilot/spdd-daily-spec-work-plan branch November 17, 2026 01:08
@github-actions

Copy link
Copy Markdown
Contributor

🎉 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[spdd] Daily spec work plan - 2026-11-16

4 participants