Skip to content

feat(lane-funding): add an EVALS role with no lanes yet - #18820

Merged
kyle-sexton merged 1 commit into
mainfrom
feat/evals-catalog-role
Nov 24, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
feat/evals-catalog-role

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Refs: #18828

First half of spec #18828 (owner-decisions.md#L410); #18818 is the second half and closes it.

Summary

The account rotation tool's Assign to role lists the roles in .github/lane-funding.json on main. This adds the EVALS role (EVALS_CLAUDE_CODE_OAUTH_TOKEN, EVALS_CLAUDE_API_KEY, keyed) with no lanes, so the owner can assign an account to it from main before #18818 moves the eval workflows to those secrets. Eval runs never stop for a missing credential, and the tool never reads a feature branch.

Fix

  • .github/lane-funding.json: new evals role, lanes: [].
  • .github/lane-funding.schema.json: lanes may be empty; evals category.
  • callers.test.mjs: only evals may hold no lanes; a keyed role with no lanes skips the run-claude-cli check.

Loosened checks

Authorized by spec #18828, items 1 and 2, which cite owner-decisions.md#L410 (owner, verbatim: "The rest of these, let's go with recommendations." and "I'd rather do it through the tool"):

  • .github/lane-funding.schema.json: lanes drops minItems: 1. The rotation tool assigns only roles the catalog on main lists, so EVALS must be listed before any lane reads its secrets. Bounded by the exact LANELESS_ROLES = ["evals"] assertion.
  • callers.test.mjs: the keyed-role run-claude-cli assertion skips a keyed role with no lanes, for the same reason and under the same bound.

Verification

  • node --test over callers.test.mjs and sync-credential-legs.test.mjs: 317 of 317 pass.
  • node scripts/sync-credential-legs.mjs --check: clean.
  • No workflow reads the new secrets; nothing runs differently.

Related

🤖 Generated with Claude Code

The account rotation tool lists the roles in this catalog. Adding the
EVALS role first lets the owner assign its token and key from main before
the eval workflows move to EVALS_* (melodic-software/architecture#235), so
eval runs never stop for lack of a credential. A role with no lanes is
allowed only for evals, and stays keyed.

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

chatgpt-codex-connector Bot commented Nov 24, 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-24T16:22:45.554665Z eac7a04 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 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.

claude-review: 1 inline finding(s) on eac7a04ef486ccd4b60643407ccc615de3a86594; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #18820, add an EVALS role with no lanes yet

This PR adds a keyed evals role with lanes: [] to .github/lane-funding.json. To let that pass, it relaxes the schema (lanes may now be empty, and evals becomes a valid category) and narrows the role test so the run-claude-cli check only applies to roles that have lanes. A new exact-match assertion (LANELESS_ROLES = ["evals"]) allows only evals to have no lanes, which keeps the change small. Two other readers of the catalog handle an empty lanes array correctly: scripts/sync-credential-legs.mjs:96 (flatMap) and laneLegs/catalogLanes in callers.test.mjs.

No closing issue: the PR body links melodic-software/architecture#235 and #18818 only as context, so there are no acceptance criteria to check. The PR context contained no embedded instructions.

Blocking

  • Fail a change that loosens a check. The schema validator and the role test now accept a keyed role with no lanes, and the PR body has no ## Loosened checks section. Details are in the inline comment on callers.test.mjs:2719.

Other findings

  • The funding contract doc is now out of date. The schema's own description names docs/conventions/pr-pipeline/README.md ("Funding") as the contract, and that doc now contradicts the catalog:
    • It says "There are seven" roles and lists them (README.md#L3941). The catalog now has eight, including evals.
    • It says "only a role with such a lane is keyed" (README.md#L3956-L3957). evals is keyed with no lane.
    • Fix: update that section (and its CHANGELOG, if this convention keeps one) to describe a role held assignable with no lanes, as the schema's keyed/lanes descriptions now do.

Spend

None. No workflow reads EVALS_* yet, so nothing runs differently.

Advisory and manifest lines (1)
  • Loosened checks would be marked: fail (default: the prompt had no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. The prompt also had no loosened_check_decision_record: line, so the citation requirement was not checked.

Verifier dropped 0 of 2 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

I read all three changed files in full: .github/lane-funding.json, .github/lane-funding.schema.json and .github/actions/resolve-config/callers.test.mjs.

What changed. The catalog gets a new evals role. It is keyed, names EVALS_CLAUDE_CODE_OAUTH_TOKEN / EVALS_CLAUDE_API_KEY and has lanes: []. The schema drops minItems: 1 on lanes and adds evals to the category enum. The test now allows only evals to have no lanes, and it skips the run-claude-cli check for a keyed role with no lanes.

Trust-boundary check.

  • Readers of the catalog: besides tests and docs, only scripts/sync-credential-legs.mjs reads .github/lane-funding.json. It looks up lanes with funding.roles.flatMap((role) => role.lanes.map(...)) (sync-credential-legs.mjs#L96). A role with no lanes adds nothing to that lookup, so no workflow or job gets a new credential leg.
  • Token broker: resolve-config's broker code does not read the catalog. Inside .github/actions/resolve-config/ it appears only in callers.test.mjs. Token scope, lane slots and activity grants are unchanged.
  • New secrets: no workflow in the diff reads the new EVALS_* secrets. Adding a catalog entry exposes no secret, makes no new actor trusted and lets no untrusted text reach a lane.
  • Loosened checks: the schema and test changes only allow an empty lanes array. LANELESS_ROLES = ["evals"] limits that to this one role. Neither change affects who is trusted or what a lane may do.

Trusted-path, plugin-manifest and instruction-surface checks did not apply: no changed file matches a TRUSTED PATHS glob, none is a plugin manifest, and none is a standing instruction file. Nothing here costs money: no workflow uses the new role yet.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 8d23ef9 Nov 24, 2026
129 of 132 checks passed
@kyle-sexton
kyle-sexton deleted the feat/evals-catalog-role branch November 24, 2026 17:53
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 24, 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