Skip to content

Use GitHub Decisions and grouped diffs for CI suite selection - #78262

Merged
pelikhan merged 2 commits into
mainfrom
pelikhan/ci-front-door-performance
Nov 16, 2026
Merged

pelikhan merged 2 commits into
mainfrom
pelikhan/ci-front-door-performance

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

Why

The CI front door kept all eight suites in every observed PR run because its custom decision endpoint was unset. Large patches, especially generated workflow locks, also forced full-suite fallback before selection could help.

Changes

  • Reuse the existing GitHub Decisions client with gpt-6-luna-decisions and the built-in workflow token. Scope copilot-requests: write to CGO's checkout selector; keep other jobs and CJS restricted.
  • Batch five named safe-to-omit predicates into one bounded request. Preserve mandatory suites, the 0.9 confidence threshold, no retries or redirects, and all-suite fallback for missing credentials, uncertain answers, or failures.
  • Exclude .lock.yml files before reading patches. Retain filenames in separate JavaScript (.js/.cjs), Go (.go), and other groups, each with an independent 8,000-byte patch budget. Partial snippets are explicitly marked; incomplete inventories still fail open.
  • Update contributor and offline researcher guidance, regenerate workflow metadata, and cover large diffs and the narrowed permission exception.

Validation

  • make fmt
  • node --test scripts/ci-front-door.test.cjs scripts/ci-front-door-researcher.test.cjs
  • bash scripts/check-cgo-cjs-workflow-purity_test.sh
  • bash scripts/check-cgo-cjs-workflow-purity.sh
  • npx --no-install vitest run decisions_client.test.cjs from actions/setup/js
  • python3 scripts/check-instruction-prefixes.py .github/workflows/ci-front-door-researcher.md
  • make recompile
  • make agent-report-progress

Also checked grouped summaries against a real large firewall update commit. No live inference request or workflow dispatch was performed.

Authenticate with the workflow token, summarize JavaScript, Go, and other changes independently, and exclude generated workflow locks while preserving fail-open selection.

Co-authored-by: Copilot App <[email protected]>
@pelikhan
pelikhan marked this pull request as ready for review November 16, 2026 04:57
Copilot AI adaptive review requested due to automatic review settings November 16, 2026 04:57
@github-actions

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills...

@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 · ~6 AIC · ⌖ ~2 AIC · ⊞ 1.5K · ◷

@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

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

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

🏗️ ADR gate enforced by Design Decision Gate 🏗️ · pi · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 8.6K · ◷

@github-actions

github-actions Bot commented Nov 16, 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 by Ponytail Reviewer for #78262 · codex · routed: gpt61 medium · ~7 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

Comment thread scripts/ci-front-door.cjs Resolved
Comment thread .github/workflows/cgo.yml Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-c18e1a9a-f87a-49c5-9cef-2e7c0eb38608","parents":[],"payload":{"id":"ldg-75e02f76-a73a-4475-b20f-89ca66e7c977","operation":"append","value":{"finding_count":0,"head_sha":"4563227b86a2e56fbf770036be84af446b59346a","outcome":"incomplete"}},"sha":"sha256:556a4c3c446bce88371ea9b8963cd1ed9b40ab47ebf7f5e72486ee6ee6892e69","timestamp":"2026-11-16T05:04:58.382Z","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.

Found one blocking security issue: the new write-scoped token is exposed to PR-controlled selector code in the checkout job. The inline comment explains the attack path and required isolation. Static review only; repository tests were not run per review instructions.

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

Comment thread .github/workflows/cgo.yml Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-ce8e1ac1-7c1f-4e0f-a29e-51bb0b483fc8","parents":[],"payload":{"id":"ldg-ec953508-2e96-4db5-a449-01d451d7829f","operation":"append","value":{"finding_count":1,"head_sha":"4563227b86a2e56fbf770036be84af446b59346a","outcome":"findings"}},"sha":"sha256:e18a4f1a4f29533cb22dc587114998dc0e674acbfef54e193039992eca8cc68d","timestamp":"2026-11-16T05:07:59.949Z","type":"ledger_append","version":1}
History

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

Shared-client changes can bypass selector conformance tests, while quoted job headers can cause the purity check to incorrectly allow copilot-requests: write in other jobs.

2 open issues
What changed in this PR

Moves CI Front Door to GitHub Decisions so CGO can omit unaffected optional suites while preserving mandatory checks and all-suite fallback.

Changes:

  • Uses one authenticated, bounded request with five safe-to-omit predicates.
  • Excludes generated workflow locks and gives JavaScript, Go, and other patches independent budgets.
  • Narrows inference permissions and updates tests, contributor guidance, and offline researcher instructions.
File Description
scripts/​ci-front-door.test.cjs Covers Decisions authentication, response validation, grouped diffs, and fallback.
scripts/​ci-front-door.cjs Integrates the shared Decisions client and workflow token.
scripts/​ci-front-door-researcher.test.cjs Checks updated authentication, offline, and summary contracts.
scripts/​ci-front-door-evaluate.cjs Adapts recorded-response evaluation to the token option.
scripts/​ci-front-door-diff.cjs Excludes locks and produces bounded, grouped patch summaries.
scripts/​check-cgo-cjs-workflow-purity.sh Allows inference writes only for CGO’s checkout selector.
scripts/​check-cgo-cjs-workflow-purity_test.sh Tests selector-only and workflow-wide permission rules.
CONTRIBUTING.md Documents authentication, grouped summaries, and fallback behavior.
.github/​workflows/​ci-front-door-researcher.md Updates offline research guidance and evaluation gates.
.github/​workflows/​ci-front-door-researcher.lock.yml Refreshes generated body and admission hashes.
.github/​workflows/​cgo.yml Supplies the workflow token and job-scoped inference permission.
.github/​ci/​decision-prompt.txt Defines conservative predicate handling for grouped evidence.

Review effort: Max (dynamic)

Comment on lines +173 to +175
job_match = re.match(r"^ ([A-Za-z0-9_-]+):\s*$", without_comment)
if job_match:
job_name = job_match.group(1)
Comment thread scripts/ci-front-door.cjs
const path = require("node:path");
const https = require("node:https");
const { summarizeDiff } = require("./ci-front-door-diff.cjs");
const { invokeDecisions } = require("../actions/setup/js/decisions_client.cjs");
Run credential-bearing selection from the trusted PR base in a dedicated least-privilege job, consume PR checkouts only as Git evidence, and intersect model omissions with a conservative deterministic path policy.

Co-authored-by: Copilot App <[email protected]>
@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #78262 (comment):

This announces the Matt Pocock review starting and requests no code change; it is not evidence of approval.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #78262 (comment):

No change is needed for this review progress notice. The subsequent token-isolation finding is addressed separately in this batch.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #78262 (comment):

The Test Quality Sentinel identifies no specific test change, so no code change is needed for this status. Its no-action result is not treated as proof of test completeness or successful validation.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #78262 (comment):

This specification-review startup notice contains no actionable feedback, so no code change is needed. It does not establish specification compliance.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #78262 (comment):

The Design Decision Gate supplies no ADR requirement or requested change here. Its no-action status is not treated as proof that architectural review or publication was completed.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #78262 (comment):

The Ponytail Reviewer requests no fix, so no code change is needed for this status. Successful workflow completion is not treated as PR approval or completed code validation.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Regarding #78262 (comment):

This ledger records an incomplete specification review despite a finding count of zero. It supplies no actionable code request and is not treated as specification approval.

Comment thread scripts/ci-front-door.cjs
model: DECISIONS_MODEL,
input: [
{ role: "developer", content: input.prompt },
{ role: "user", content: JSON.stringify({ diff_summary: input.diff_summary, suite_catalog: input.suite_catalog }) },
@pelikhan
pelikhan merged commit 145f18b into main Nov 16, 2026
99 checks passed
@pelikhan
pelikhan deleted the pelikhan/ci-front-door-performance branch November 16, 2026 05:37
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.0

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.

3 participants