Skip to content

Update GitHub MCP access-control spec pin and fetch full validation history - #75989

Merged
pelikhan merged 5 commits into
mainfrom
copilot/avengerfix-mcp-spec-pin-92e14f20a02aa85a
Nov 8, 2026
Merged

pelikhan merged 5 commits into
mainfrom
copilot/avengerfix-mcp-spec-pin-92e14f20a02aa85a

Conversation

Copilot AI commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

The spec-pin CI check uses an outdated pin, and shallow checkout history makes git log report the checkout boundary rather than the specification’s last-touching commit.

  • Pin synchronization: Update the README and CI pins to 34f03fba65c7bf34c1c03654b3c03900b7597a39; document that both must change together.
  • Reliable history: Set fetch-depth: 0 on the validation job’s checkout, retaining persist-credentials: false.
  • Regression coverage: Assert full-history checkout and consistency between the CI pin and both documented pins.

Copilot AI changed the title [WIP] [avenger] Update GitHub MCP access-control spec pin Update GitHub MCP access-control spec pin and fetch full validation history Nov 8, 2026
Copilot AI requested a review from pelikhan November 8, 2026 22:04
@pelikhan
pelikhan marked this pull request as ready for review November 8, 2026 22:49
Copilot AI adaptive review requested due to automatic review settings November 8, 2026 22:49
@github-actions

github-actions Bot commented Nov 8, 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.

Generated from Test Quality Sentinel · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 7.2K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

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 from Design Decision Gate 🏗️ · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 8.6K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ 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 from PR Specification Reviewer · gpt56 · ~2 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 1.7K · ◷

Generated by PR Specification Reviewer for #75989

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail 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 from Ponytail Reviewer · routed: gpt61 medium · ~3 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 181 · ◷

Generated by Ponytail Reviewer for #75989

@github-actions

github-actions Bot commented Nov 8, 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

@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.

Reviewed the changed workflow pin, documentation synchronization, and regression coverage. I found no actionable correctness or regression issues in the changed lines. Static review only; tests were not run per review instructions.

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

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.

🟢 Approval recommended

The reviewed updates cover pin synchronization, complete-history checkout, and regression coverage, while the supplied review status records no remaining active issues.

No open issues 🎉

What changed in this PR

Updates the GitHub MCP access-control specification pin, ensures validation fetches complete Git history, and adds regression coverage for checkout configuration and pin consistency.

Changes:

  • Synchronizes the specification pin across CI and both README references.
  • Sets fetch-depth: 0 while retaining persist-credentials: false.
  • Adds contract tests for checkout history and pin consistency.
  • Adds index-search.md to the agentic-workflows skill index.

This pull request requires changes.

File Summary Review note
specs/​github-mcp-access-control-compliance/​README.md Updates the pinned specification commit and synchronization guidance. —
scripts/​workflow-tool-contracts.test.cjs Verifies checkout configuration and consistency between CI and documented pins. Moderate: The checkout assertion is not scoped to the actions/checkout step, so an unrelated step could satisfy the test while the validation checkout regresses to shallow history.
.github/​workflows/​ci.yml Uses the updated specification pin and fetches complete history for validation. —
.github/​skills/​agentic-workflows/​SKILL.md Adds index-search.md to the guidance file index. —

Review effort: Lite (auto)

@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 /tdd and /codebase-design, with no blocking issues. The fetch-depth: 0 change, the pin update, and the new regression test are consistent. I checked the new pin 34f03fba65c7bf34c1c03654b3c03900b7597a39 against the GitHub API, and the new test passes on a clean export of this head. Skills were selected from the diff directly; the triage agent was not invoked.

📋 Key Themes & Highlights

Key Themes

  • Test structure: Job slicing and test placement could be more robust (see inline comments).
  • Pin sync: CI and README pins match, and the README now documents that both must change together.

Positive Highlights

  • ✅ persist-credentials: false is retained alongside fetch-depth: 0.
  • ✅ The regression test covers both checkout depth and pin consistency.
  • ✅ The index-search.md reference resolves to a tracked file.

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


test("MCP access-control spec validation uses full history and matching documented pins", () => {
const workflow = fs.readFileSync(path.join(__dirname, "..", ".github", "workflows", "ci.yml"), "utf8");
const job = workflow.split(" validate-mcp-access-control-spec-pin:\n")[1]?.split("\n test-race:")[0];

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 job boundary is sliced on the hardcoded test-race: header. An inserted job before test-race would be included in the slice, so the fetch-depth assertion could pass on another job's checkout. Slicing on the next job header is more robust, and I checked that it returns the identical block on this head.

💡 Suggested change
const job = workflow.split("  validate-mcp-access-control-spec-pin:\n")[1]?.split((n/redacted)  [a-z][a-z0-9-]*:\n/)[0];

@copilot please address this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 493bddd. The validation job now ends at the next job header, including IDs with underscores or hyphens, and the history/credential assertions are scoped to its checkout step. Added negative regression cases for another step and an inserted job. All 21 focused workflow tests pass.

assert.equal(handler({ kind: "shell", fullCommandText: command }).kind, expected, command);
}

test("MCP access-control spec validation uses full history and matching documented pins", () => {

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.

[/codebase-design] This CI-config assertion sits in workflow-tool-contracts.test.cjs, which covers tool permission contracts. scripts/release-workflows.test.cjs already reads and parses .github/workflows/ci.yml, so someone looking for CI pin or checkout checks would look there first. Moving this test next to it keeps related workflow assertions together. This is a placement suggestion, not a blocker.

@copilot please address this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 493bddd. Moved the spec-pin and checkout regression coverage to scripts/release-workflows.test.cjs alongside the existing CI assertions, reusing its loaded CI source. The focused workflow tests and final validation gate pass.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

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 (scripts/workflow-tool-contracts.test.cjs:28): [/tdd] The job boundary is sliced on the hardcoded test-race: header. An inserted job before test-race would be included in the slice, so the fetch-depth assertion could pass on another job's checkout. Slicing on the next job header is more robust, and I checked that it returns the identical block on this head. - Update GitHub MCP access-control spec pin and fetch full validation history #75989 (comment)
  3. Review (scripts/workflow-tool-contracts.test.cjs:26): [/codebase-design] This CI-config assertion sits in workflow-tool-contracts.test.cjs, which covers tool permission contracts. scripts/release-workflows.test.cjs already reads and parses .github/workflows/ci.yml, so someone looking for CI pin or checkout checks would look there first. Moving this test next to it keeps related workflow assertions together. This is a placement suggestion, not a blocker. - Update GitHub MCP access-control spec pin and fetch full validation history #75989 (comment)
  4. Fix failing check JS Tests (shard 7/8) (FAILURE): https://github.com/github/gh-aw/actions/runs/42532124492/job/128888491504.
  5. Fix failing check JS Tests (shard 7/8) (FAILURE): https://github.com/github/gh-aw/actions/runs/42528331004/job/128876872749.

Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI.

Sous-chef requested-head: e41ca00
Sous-chef requested-work: 47f188a12b316525c2202f4f75b82185d76be0a140c0f99eae185cf2b7d8acb1 4dcc5c8629d6e5339e4386be123efa942b25e1a0f72d28d2b03cbcbbb0062436 aa9f0ba6f8c30e8ff1e9f613a0db2776417c7e1357151c5d2049b7d64431ac2e
Sous-chef requested-state: f62218b4d1f0c3e683887fefee89288c38513e07846097e65d2ecc529f360162

Generated by 👨🍳 PR Sous Chef · pi · haiku45 · ~14 AIC · ⌖ ~18 AIC · ⊞ 1.2K · ◷
Comment /souschef to run again

Copilot AI commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

@copilot

Copilot assignment requested for the following outstanding work:...

Assignment running.

  1. Update this branch with the latest main using make merge-main, resolving conflicts and preserving the intended changes.
  2. Make the spec-pin test isolate the validation job and its checkout.
  3. Move the CI pin and checkout assertions to scripts/release-workflows.test.cjs.
  4. Investigate and fix JS Tests (shard 7/8) in runs 42532124492 and 42528331004.

Sous-chef requested-head: e41ca00
Sous-chef requested-work: 47f188a12b316525c2202f4f75b82185d76be0a140c0f99eae185cf2b7d8acb1 4dcc5c8629d6e5339e4386be123efa942b25e1a0f72d28d2b03cbcbbb0062436 aa9f0ba6f8c30e8ff1e9f613a0db2776417c7e1357151c5d2049b7d64431ac2e
Sous-chef requested-state: f62218b4d1f0c3e683887fefee89288c38513e07846097e65d2ecc529f360162

I will validate locally, reply to addressed threads, and stop when only CI or human review remains. I will not merge the PR or trigger CI.

@pelikhan
pelikhan merged commit 4f7b22a into main Nov 8, 2026
58 of 60 checks passed
@pelikhan
pelikhan deleted the copilot/avengerfix-mcp-spec-pin-92e14f20a02aa85a branch November 8, 2026 23:37
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.2

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.

[avenger] Update GitHub MCP access-control spec pin

4 participants