Repository navigation
Conversation
Co-authored-by: pelikhan <[email protected]>
|
✅ 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.
|
|
✅ Ponytail Reviewer completed successfully!
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ 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 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.
|
There was a problem hiding this comment.
🟡 Changes recommended
Rejected-PAT runs lack zero-usage accounting, which can inflate or break daily-budget scans, and the new warning causes existing compiler tests to fail.
6 open issues
Account for rejected PAT runs with zero usage · New Update admission test fixtures for the new authentication warning · New Preserve full JSON for model-unavailability classification · New Document handled PAT rejection in the evals guide · New Document the new diagnostic code in the playbook and audit reference · New Give concrete credential guidance in the authentication warning · New
What changed in this PR
This PR improves gh-aw’s non-blocking Decisions evals by distinguishing unsupported PAT authentication from generic judge failures and surfacing it in runtime diagnostics and audits.
Changes:
- Records
auth_unsupportedevidence and actionable remediation without publishing provider error bodies. - Adds audit findings scoped to the evaluated run and attempt.
- Adds compiler warnings, authentication documentation, and regression coverage.
| File | Description |
|---|---|
pkg/workflow/evals_job.go |
Warns about secret-based Copilot judge authentication. |
pkg/workflow/evals_job_test.go |
Checks warnings across authentication configurations. |
pkg/cli/audit_report_analysis.go |
Includes evals authentication findings in audit reports. |
pkg/cli/audit_finding_codes.go |
Defines the stable evals_auth_unsupported finding code. |
pkg/cli/audit_evals_auth.go |
Reads unsupported-auth status artifacts with run and attempt checks. |
pkg/cli/audit_evals_auth_test.go |
Covers artifact layouts, scoping, and ignored markers. |
docs/src/content/docs/reference/auth.mdx |
Explains that agent PAT support does not guarantee evals support. |
docs/src/content/docs/experimental/experiments.md |
Documents judge credentials, limitations, and alternatives. |
actions/setup/js/run_evals.test.cjs |
Covers unsupported-auth outcomes, cleanup, and existing integration identity. |
actions/setup/js/run_evals.cjs |
Persists and preserves unsupported-auth execution evidence. |
actions/setup/js/render_evals_summary.test.cjs |
Checks remediation summaries without answer tallies. |
actions/setup/js/evals_status.cjs |
Adds the shared auth_unsupported reason code. |
actions/setup/js/decisions_client.test.cjs |
Tests PAT rejection classification and provider-body privacy. |
actions/setup/js/decisions_client.cjs |
Introduces the unsupported-auth error and allowlisted response matching. |
Review effort: Max (auto)
| if (!(error instanceof DecisionsModelUnavailableError)) throw error; | ||
| evidence.state = EVALS_REASON_CODES.MODEL_UNAVAILABLE; | ||
| if (!(error instanceof DecisionsModelUnavailableError) && !(error instanceof DecisionsAuthUnsupportedError)) throw error; | ||
| evidence.state = error instanceof DecisionsAuthUnsupportedError ? EVALS_REASON_CODES.AUTH_UNSUPPORTED : EVALS_REASON_CODES.MODEL_UNAVAILABLE; |
| return nil, nil | ||
| } | ||
| evalsJobLog.Print("Building evals job") | ||
| c.warnEvalsAuth(data) |
| const text = (await response.text()).slice(0, 2048); | ||
| if ([400, 401, 403].includes(response.status) && text.includes("Personal Access Tokens are not supported")) { |
| if (!(error instanceof DecisionsModelUnavailableError)) throw error; | ||
| evidence.state = EVALS_REASON_CODES.MODEL_UNAVAILABLE; | ||
| if (!(error instanceof DecisionsModelUnavailableError) && !(error instanceof DecisionsAuthUnsupportedError)) throw error; | ||
| evidence.state = error instanceof DecisionsAuthUnsupportedError ? EVALS_REASON_CODES.AUTH_UNSUPPORTED : EVALS_REASON_CODES.MODEL_UNAVAILABLE; |
| AuditFindingDetectionJobFailed AuditFindingCode = "threat_detection_job_failed" | ||
| AuditFindingThreatDetected AuditFindingCode = "threat_detected" | ||
| AuditFindingEngineStepFailed AuditFindingCode = "engine_step_failed" | ||
| AuditFindingEvalsAuthUnsupported AuditFindingCode = "evals_auth_unsupported" |
| func (c *Compiler) warnEvalsAuth(data *WorkflowData) { | ||
| evalsData := c.buildEvalsDecisionData(data) | ||
| if evalsData.AI == "copilot" && !hasCopilotRequestsWritePermission(evalsData) && !usesTokenBrokerInference(evalsData) { | ||
| fmt.Fprintln(os.Stderr, console.FormatWarningMessage("evals uses the Copilot Decisions endpoint with COPILOT_GITHUB_TOKEN. This endpoint can reject personal access tokens even when the agent accepts them. Use a credential supported by Decisions, configure an OpenAI-backed evals.model, or remove evals; changing the Copilot model will not fix token rejection.")) |



Copilot’s Decisions endpoint can reject PATs that work for agent inference, but plain-text errors were reduced to opaque HTTP failures. Non-blocking evals jobs then reported only
judge_failed.auth_unsupported, persist execution evidence, and show actionable remediation without exposing provider bodies.evals_auth_unsupportedfindings from status artifacts scoped to the audited run and attempt, even when the judge step succeeds.Copilot-Integration-Id: agentic-workflowsfor Copilot requests.Rejected credentials produce no answers; evals remain non-blocking:
{"status":"not_evaluated","reason_code":"auth_unsupported"}