Repository navigation
fix(evals): send Copilot integration identity to Decisions - #75859
Conversation
Relates to #75637 Co-authored-by: Copilot App <[email protected]>
Add a CJS integration job that calls the Decisions client with synthetic evidence and copilot-requests: write. Keep inference permission limited to CJS and retain repository-write and secret restrictions. Co-authored-by: Copilot App <[email protected]>
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: 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.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: 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 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.
|
|
✅ 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: 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.
|
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.
Static review completed. I found one actionable workflow-lifecycle issue: cleanup-cache should wait for decisions-integration before deleting the shared checkout cache and completing the aggregate job. The live test design and provider-header changes otherwise look consistent from the changed-line review; no tests were run per review instructions.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~2 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /tdd and /codebase-design. No blocking issues; three non-blocking suggestions are inline.
📋 Key Themes & Highlights
Key Themes
- Live test flakiness: the required CJS job asserts
probability >= 0.9on one sample from a stochastic model. - Provider gating: the header is keyed on the exact string
github-copilot, whileresolve_model_alias.cjstreats it as one of several aliases. Latent today because Go emits only that value. - Purity exemption scope: the
cjs.ymlexemption matches the basename rather than the repository path.
Positive Highlights
- ✅ Header is sent only when
integrationIdis set, so OpenAI and generic callers are unchanged. I confirmed this with a fake-fetch check. - ✅ Purity guard keeps
contents: writeand PAT secrets rejected for CJS, with regression tests (8/8 passing locally). - ✅ The fork-PR guard on the new job matches the existing pattern.
- ✅ The changeset, README, and
evals.mdupdates describe the behavior.
Not verified
- The live Decisions call needs a Copilot-enabled token, so I did not run it. I checked the workflow YAML from
HEAD, not the working tree, which has an unrelated uncommitted edit tocjs.yml.
@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 · ⊞ 5.4K
Comment /matt to run again
There was a problem hiding this comment.
🟡 Changes recommended
Dependabot PRs still pass the job condition, but their read-only GITHUB_TOKEN causes the live request to fail, introducing unrelated CJS check failures.
1 open issue
What changed in this PR
This PR aligns standalone Copilot Decisions evals with the firewall’s integration identity while preserving Bearer authentication and leaving OpenAI requests unchanged. It does not establish PAT support or address the authentication diagnostics in #75637.
Changes:
- Add an optional integration identity to the Decisions client and supply it for Copilot evals.
- Add unit coverage and a live integration job using the built-in Actions token.
- Update the workflow purity guard, documentation, and patch changeset.
| File | Description |
|---|---|
scripts/check-cgo-cjs-workflow-purity.sh |
Allow Copilot inference permissions in CJS workflows. |
scripts/check-cgo-cjs-workflow-purity_test.sh |
Cover the permission exception and retained restrictions. |
actions/setup/README.md |
Document the integration header and live test. |
actions/setup/js/scripts/test_decisions_client.cjs |
Add a live synthetic predicate test. |
actions/setup/js/run_evals.test.cjs |
Verify provider-specific header selection. |
actions/setup/js/run_evals.cjs |
Supply the integration identity for Copilot evals. |
actions/setup/js/decisions_client.test.cjs |
Test optional header handling and unchanged authentication. |
actions/setup/js/decisions_client.cjs |
Accept and send the optional integration header. |
.github/workflows/cjs.yml |
Add the live Decisions integration job. |
.github/aw/evals.md |
Explain provider-specific integration identity behavior. |
.changeset/patch-evals-copilot-integration-id.md |
Record the client fix as a patch release. |
Review effort: Balanced (auto)
Normalize Copilot provider aliases, restrict the inference permission exemption to the CJS workflow, and use a categorical live smoke assertion. Co-authored-by: Copilot App <[email protected]>
|
For the Code Quality Reviewer notice, no code change was needed because the notice contains no separate change request. The actionable inline feedback was handled separately, rather than treating this completion status as correctness evidence. |
|
For the Skills Reviewer notice, no code change was needed because the notice contains no separate change request. Its reported model and routing metadata are not being treated as correctness or scope-acceptance evidence. |
|
For the Specification Reviewer notice, no code change was needed because the notice contains no separate change request. Its completion status is not being treated as proof that all required work or publication checks passed. |
|
For the Ponytail Reviewer notice, no code change was needed because the notice contains no separate change request. A successful reported_no_action outcome is not being treated as verification of all required work or publication checks. |
|
For the Design Decision Gate notice, no code change was needed because this status message contains no concrete change request. Its reported_no_action outcome is not being treated as design acceptance or completion evidence. |
|
For the Test Quality Sentinel notice, no code change was needed because the notice contains no separate change request. Its reported_no_action outcome is not being treated as proof of adequate coverage or publication readiness. |
|
Left the reviewer-managed Comment Memory unchanged because this note requests no edits. Its saved review metadata is historical context, not proof that the associated feedback has been addressed. |
Keep the live API check on runs with a write-capable job token, preserving fork exclusions and documenting the restriction. Co-authored-by: Copilot App <[email protected]>
|
🎉 This pull request is included in a new release. Release: |

Summary
Standalone Copilot Decisions evals already use Bearer authentication but omit the integration identity that gh-aw-firewall sends. Add
Copilot-Integration-Id: agentic-workflowsto align these requests with the firewall's default.The reusable Decisions client accepts an optional
integrationId; the evals runtime supplies it only for Copilot, using shared normalization forgithub-copilot,copilot, andgithubwhile preserving usage attribution. OpenAI and generic callers remain unchanged unless explicitly opted in. Documentation and a patch changeset describe the behavior.Add a CJS integration job using only the built-in Actions token with
copilot-requests: write. It makes one synthetic choice request through the real client and requires a namedbasket_fruitanswer of typechoicewith valueapples. This is an API/authentication/protocol smoke check, not statistical model-quality evaluation; it has no confidence threshold or retries. Missing credentials, API errors, and incorrect or malformed answers fail the test. Fork PRs are excluded; repository-write permissions and PAT secrets remain prohibited. The purity guard exempts only.github/workflows/cjs.yml, with regressions rejecting same-basename impostors. Cache cleanup already waits for this job.Relates to #75637
Validation
make fmt-cjs,make lint-cjs, andmake agent-report-progresspassed for the original client fix; all 83 targeted JavaScript tests passed.make agent-report-progress-no-test. Actionlint introduced no new diagnostics; the workflow retains eight existing shellcheck info diagnostics.4c2be18cc2076f2a37e8f0258c298026a4ae413b: CJS integration job. Runner logs confirmCopilotRequests: write, one passing predicate test, and zero failures. The job usedgithub.token, not a PAT.12ac2baad7005985d75134b0b4ef2abaacf0a7c5passed formatting, lint, typechecking,make agent-report-progress-no-test, 86 client/runtime tests, nine purity regressions, and the current workflow guard. The revised smoke assertion also passed eight mocked-fetch success/failure cases. The original live result validates the earlier predicate revision, not the revised categorical assertion; no new live result is claimed here.Scope and limitations
This validates the client and integration identity with a Copilot-enabled Actions job token. Live PAT acceptance remains unverified; the test does not establish PAT support or prove that omission of the integration header caused the original rejection. Separate unsupported-authentication diagnostics from #75637 remain out of scope.
One original live synthetic Decisions request ran through PR-triggered CI. Review fixes were pushed normally; no additional workflow dispatch was performed.