Skip to content

refactor(ci): read the agent-ready test once, in check-admission - #16996

Merged
kyle-sexton merged 1 commit into
mainfrom
refactor/resolve-issue-agent-ready-once
Nov 18, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
refactor/resolve-issue-agent-ready-once

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: behaviour-preserving cleanup of one workflow's job conditions

Summary

work-resolve-issue.yml tests for the agent-ready field write in check-admission and then repeated the same test in five later jobs: pick-slot, resolve-issue, resolve-issue-subscription, resolve-issue-fallback and report-skip. Each of those jobs also requires a check-admission output. That output only exists when check-admission ran, and check-admission runs only on that field write. The repeated test therefore never changed a result, so this PR removes it.

Fix

  • The five job conditions keep their needs.check-admission.outputs.* tests and drop issue_field.id == 48484079 && issue_field_value.option.id == 84879220.
  • check-admission and the concurrency group keep the field test. A group cannot read job outputs.
  • One test in callers.test.mjs set a non-agent-ready option and also set proceed to 'true'. A real run cannot produce that state. The test now derives proceed from check-admission's own condition, so it still checks that a non-agent-ready option starts neither job.

Verification

  • node --test .github/actions/resolve-config/callers.test.mjs: 289 passed, 0 failed.
  • The 12 other test files that read work-resolve-issue.yml, run together: 2425 passed, 0 failed.
  • Left out: the full .github suite, because CI runs it.

Related

N/A

🤖 Generated with Claude Code

Five work-resolve-issue jobs repeated check-admission's Work status
test (field 48484079 set to agent-ready, option 84879220) beside a
check-admission output. That output exists only when check-admission
ran, and it runs only on that field write, so the repeat added nothing.
The concurrency group and check-admission keep the test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 18, 2026 01:23
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T01:24:30.425197Z a3a2226 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed a3a2226f877dcc3589f108e01a90a05f46182d83: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

This PR removes the agent-ready field test (issue_field.id == 48484079 && issue_field_value.option.id == 84879220) from five job conditions in work-resolve-issue.yml: pick-slot, resolve-issue, resolve-issue-subscription, resolve-issue-fallback and report-skip. It also updates one test in .github/actions/resolve-config/callers.test.mjs.

Trust-control check on the trusted-path workflow. I read the whole change and the admission gate it depends on.

  • check-admission still carries both the field test and the sender check. See work-resolve-issue.yml#L82-L84: github.event.issue_field.id == 48484079 && github.event.issue_field_value.option.id == 84879220 && (github.event.sender.type == 'User' || github.event.sender.id == vars.AUTOMATION_LANES_APP_SENDER_ID).
  • The workflow's only trigger is issues: [field_added] (L48-L50).
  • When check-admission is skipped, its proceed and outsider outputs (L91-L92) are empty strings. Every edited condition then evaluates false:
    • pick-slot, resolve-issue, subscription and fallback each still require proceed == 'true'.
    • report-skip's !cancelled() && (outsider == 'true' || (proceed == 'true' && ...)) is false too.
  • The removed test was therefore redundant. Nothing past the admission gate is newly reachable by a non-agent-ready field write or an untrusted sender. Re-runs replay the same event payload, so they gain nothing either.
  • The concurrency group still keys on the field test. No permissions:, token request or kill-switch read changed.

Test file. The callers.test.mjs change derives proceed from check-admission's own if:. It is a resolve-config test, not part of the broker/signer control, and it widens nothing.

No instruction-surface deletions or plugin manifest changes. No spend change: the edited conditions start the same jobs as before.

The PR context contains no embedded directives.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed a3a2226f877dcc3589f108e01a90a05f46182d83: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #16996, refactor(ci): read the agent-ready test once, in check-admission

No findings. The PR changes two files, and I read every hunk of both.

Is the cleanup behaviour-preserving? Yes.

  • The workflow's only trigger is issues: [field_added]. That trigger is at work-resolve-issue.yml#L48-L50.
  • check-admission still requires issue_field.id == 48484079 && issue_field_value.option.id == 84879220, plus the sender test. That condition is at L82-L84.
  • When check-admission is skipped, its proceed and outsider outputs are empty. So the five edited conditions still evaluate to false:
    • pick-slot
    • resolve-issue
    • resolve-issue-subscription
    • resolve-issue-fallback
    • report-skip
  • That includes the three that use !cancelled(): resolve-issue-subscription, resolve-issue-fallback and report-skip. Each still needs proceed == 'true' or outsider == 'true', and neither can hold when check-admission did not run.
  • The concurrency group keeps the field test, which is correct because a concurrency group cannot read job outputs.
  • I found no comment in the workflow that still describes the removed test.

The test change. In callers.test.mjs, the non-agent-ready case no longer hard-codes proceed: "true". It now derives proceed from check-admission's own if. So the test still fails if the field test is ever dropped from check-admission, and the guarantee it protects ("a non-agent-ready option starts neither job") is still checked from end to end. Under "Fail a change that loosens a check", this is a fixture change that makes the input realistic. The expected values are unchanged and the protected behaviour is still asserted, so it is not a loosening.

Verification. The PR's test counts (289 passed, and 2425 passed across the other 12 files) are the author's claim. I did not run any tests. I did search the repository's test files, and none of them asserts the old field test inside these five job conditions.

Closing issue. The PR closes no issue, so there are no acceptance criteria to check.

Other notes.

  • This review uses verdict fail with no consumer patterns: the prompt gave no loosened-check settings lines, and the default is fail.
  • This is a trusted path (.github/actions/resolve-config/**). The change adds no credential, permission or trigger, and only removes redundant conditions.
  • The change adds no cost.

Loosened-check verdict: fail (default; no wrapper settings lines); patterns: 0

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 3f278ce Nov 18, 2026
103 of 104 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/resolve-issue-agent-ready-once branch November 18, 2026 01:53
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant