Repository navigation
test: fail any lane workflow that does not emit the lane-outcome record - #857
Conversation
report-lane-outcome now writes the lane-outcome record, the marker `lane-outcome ` and one JSON object, after each annotation's first sentence and before any free text, so the runner's 4,096-character cut never reaches it. The record is written when the new lane-id input and a credential that maps to a kind are both present; otherwise the legacy tokens stand alone with a warning naming what is missing. A new handoff input marks a key leg that handed off, written as a notice. docs/lane-outcome.md documents the contract (format, fields, outcome mapping, limit classes, emitter rule, compatibility rules) and schemas/lane-outcome.v1.schema.json is its JSON Schema 2020-12. Intake triage passes lane-id at both report calls. The legacy key=value tokens are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The legacy tokens and the lane-outcome record now serialize one facts object, each gate applied once, and the step's two closures are one. A test holds the schema to the emitter's patterns, closed sets and limits, and turns are bounded to the six digits the schema allows. The contract's key-leg example is now what v1 emits, the tests read the examples from docs/lane-outcome.md, and the doc points to the schema for patterns and limits. Only a half-wired caller (exactly one of lane-id and credential set) gets the missing-record warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A caller that passes only a credential is not wired for the record yet and stays silent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Legacy tokens are built as on main in every branch, the turn cap applies to the record only, handoff changes the level only with a record, and the record follows the first sentence in the incomplete and validation-skip messages. A pin test holds the no-lane-id output to main's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the code has them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Eight 100-character ids keep the sentence before the record short, so the runner's 4,096-character cut never reaches the record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The review lanes take credential-name (default CLAUDE_CODE_OAUTH_TOKEN) and fallback-credential-name, pass the slot that ran and a lane-id to report-lane-outcome, and write the first attempt's usage-limit record as a handoff notice when the fallback runs. Intake's key leg now reports on a handoff with the launcher's handoff flag, and the status line names the credential of the leg it reports, in legacy tokens only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The credential token sits before the semicolon, and the line is byte-identical to main's without one. The README inputs table gains credential-name and fallback-credential-name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…writes two records - A caller with lane-id gets a notice on handoff "true" even when no record can be written; with no lane-id the level is unchanged. - MAX_MODELS is exported and the RECORD_MAX_MODELS alias is gone. - The intake status step's secret-name regex is held equal to CREDENTIAL_PATTERN by a test, and its suffix has its own variable. - README, workflow comments and the handoff input say whichever attempt hands off writes its own handoff record; credential-name says when its default is right. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A job running anthropics/claude-code-action or run-claude-cli must carry a report-lane-outcome step that sets credential and lane-id. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A job running anthropics/claude-code-action or run-claude-cli must carry a report-lane-outcome step that sets credential and lane-id. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e-cli without a report Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…tter-check # Conflicts: # .github/scripts/claude-review-outcome-wiring.test.cjs # .github/scripts/intake-triage-legs.test.cjs # docs/lane-outcome.md
|
Claude finished @kyle-sexton's task in 4m 46s —— View job Code review: lane-outcome emitter check
No findings. This PR adds What I checked:
Caveat: I could not execute claude-lane-summary: lane=claude-review sha=d7fee9e4b037303c9651997410f305c0f58a9d88 run=39790337413 |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 1m 17s —— View job Security review
No security issues found. This PR adds only a test file ( No claude-lane-summary: lane=claude-security-review sha=d7fee9e4b037303c9651997410f305c0f58a9d88 run=39790337413 |
|
claude-security-review has reviewed this pull request through d7fee9e; a later push is reviewed from there. |
|
claude-review has reviewed this pull request through d7fee9e; a later push is reviewed from there. |
…contracts (#843) Refs: melodic-software/claude-code-account-rotation#288 ## Summary Registers the ci-workflows v0.61.0 tag (`164c2809f6150429b6f24d4a2777bb377af953d9`) contracts for `intake-triage.yml`, `pr-review.yml` and `pr-review-security.yml`, in the same shape as #842 did for v0.60.0. ## Fix - `components/runner-policy/policy.json`: three entries keyed `@164c2809…`, verbatim copies of the `@82ca5ca…` (v0.60.0) entries, each placed right after its v0.60.0 entry. - `components/runner-policy/README.md`: a v0.61.0 sign-off paragraph after the v0.60.0 one. - `components/runner-policy/runner-policy.test.mjs`: `REPINE_LANE_SHA_V0_61_0` and a test that the three v0.61.0 contracts equal their v0.60.0 entries and that exactly three v0.61.0 contracts exist. v0.61.0 is v0.60.0 plus melodic-software/ci-workflows#856 and melodic-software/ci-workflows#857 (`git log 82ca5ca..164c280`). In `git diff 82ca5ca 164c280`: - `intake-triage.yml`: no change to `workflow_call` inputs, secrets, job permissions or `runs-on`; only steps, job outputs and the status job change. - `pr-review.yml` and `pr-review-security.yml`: each adds two optional inputs, `credential-name` (default `CLAUDE_CODE_OAUTH_TOKEN`) and `fallback-credential-name` (default empty). Callers do not pass them, so `allowedInputs` stays as at v0.60.0. Secrets, permissions and routing are unchanged. ## Verification - `npm run test:runner-policy`: 328 tests, 328 pass, 0 fail, including the new v0.61.0 test. - Adding `credential-name` to the new `pr-review` entry made the new test fail (1 fail); the file was then restored. - `npm run lint:runner-policy`: `Runner policy passed.` - biome (`components/biome/biome.json`) on `components/runner-policy`, markdownlint, typos, editorconfig-checker and gitleaks: clean (lefthook pre-commit also passed). ## Related - #842 (v0.60.0 registration this copies) - melodic-software/ci-workflows#856 - melodic-software/ci-workflows#857 - melodic-software/claude-code-account-rotation#288 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… run (#309) Refs: #288 ## Summary Adds the first real lane-outcome annotation to `LaneOutcomeTests`. It is from claude-code-plugins check run [119996073843](https://github.com/melodic-software/claude-code-plugins/actions/runs/39827904468/job/119996073843), the review lane on [claude-code-plugins#9074](melodic-software/claude-code-plugins#9074), which runs ci-workflows [v0.61.0](https://github.com/melodic-software/ci-workflows/releases/tag/v0.61.0). The message was read back through `GET /repos/{owner}/{repo}/check-runs/{id}/annotations` and pasted verbatim. ## Fix - `LaneOutcomeTests.ARealReviewLaneAnnotationIsReadFromItsJsonRecord`. The real message's legacy tokens and its JSON record carry the same class and credential. The test rewrites the legacy `class=` token, then asserts that the parser still returns the record's `skipped-validation`. This proves the JSON path read it. What the real annotation settles (release 2.4.0 plan, Phase 8 open questions): - A record written by `report-lane-outcome` reaches the check-run annotations API intact, with the marker mid-line and free text after the JSON. - This message has no newline between the sentence and the marker, and the parser reads it. ## Verification - `dotnet test --project tests/ClaudeCodeAccountRotation.Core.Tests -c Release --filter-class "*LaneOutcomeTests"`: 34 succeeded, 0 failed. - `dotnet format --verify-no-changes` on the file: clean. `eng/check-no-machine-paths.sh`: clean. ## Related - [ci-workflows#856](melodic-software/ci-workflows#856), [#857](melodic-software/ci-workflows#857), [claude-code-plugins#9074](melodic-software/claude-code-plugins#9074) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Refs: melodic-software/architecture#7
Refs: melodic-software/claude-code-account-rotation#288
Summary
A test that fails CI when a ci-workflows lane stops emitting the lane-outcome record (
docs/lane-outcome.md). A lane job is any job with a step that usesanthropics/claude-code-actionor.github/actions/run-claude-cli. Each lane job must have, in the same job, areport-lane-outcomestep, and every such step must setcredentialandlane-id. A literallane-idmust match the record'sLANE_ID_PATTERN. Enforcement in consumer repositories is out of scope and tracked in architecture#7.Fix
.github/scripts/lane-outcome-emitters.test.cjs: scans every.github/workflows/*.ymlwith the sharedworkflow-yaml.cjsparser and reusesLANE_ID_PATTERNfromreport-lane-outcome/classify.cjs.intake-triage.ymlclaudeandsubscription,pr-review.ymlclaude,pr-review-security.ymlclaude), so a detection regex that stops matching fails instead of passing on zero lanes..github/scripts/fixtures/lane-outcome-emitters/cover: no report step, an emptycredential, an emptylane-id, a second report step missinglane-id,run-claude-cliwith no report, an invalid literallane-id, and two passing shapes.Verification
node --test .github/scripts/*.test.cjs: 579 pass, 0 fail at d7fee9e (after merging main at 8dd0857).node --test .github/actions/*/*.test.cjs: 143 pass, 0 fail.npx @biomejs/biome@2.5.11 ci --error-on-warnings .github/scripts: clean.Related
🤖 Generated with Claude Code