Repository navigation
feat(ci): carry the read runner's leg transcript to a clean upload job - #16805
Conversation
The read runner's run job stays exempt from uploading. It now gzips the
leg's execution file, scans it, and seals it with the checked sealer copy
(.lane-seal) to the lane transcript key, carried as four job-output chunks.
A new transcript job, with no checkout, no secret, no environment and
permissions {}, checks the bundle framing and uploads the bare record as
lane-transcript-<activity>[-subscription|-fallback][-rung-up]-<attempt>,
the name the puller lists.
A transcript over 286720 gzipped bytes, or one the credential scan blocks,
is carried as a transcript_omitted marker, never cut; the puller stores it
as an `omitted` row with its reason and size. The cap keeps the run job's
outputs, with the five carry chunks and api-failures, under GitHub's 1 MB
per job.
The artifact retention check gains a sealed-upstream list for a plaintext
family whose upload job receives ciphertext an earlier job scanned and
sealed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e4b2c9d998
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
GitHub caps a job's outputs at 1 MB without saying how a character is counted, and the runner's TemplateMemory counts strings at two bytes a character. The transcript stage step now budgets that worst case at run time: 500,000 characters less the carry's actual sealed length, the api-failures bound (65,600) and 8,192 for the other outputs. It seals the transcript only within that room, capped at 286,720 gzipped bytes, seals a too-large marker naming the smaller cap when the transcript does not fit, and carries nothing when the room cannot hold even a marker. The carry to the scan job is never reduced. The budget test now counts two bytes a character and runs the stage step across carry sizes from empty to the five-chunk maximum. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lane run report
Failed GitHub API calls
|
|
claude-security-review reviewed Security review: PR #16805, incremental (da3c67b → 415e4d3)This review covers only the changes since da3c67b. This lane already reviewed an earlier head, so it reports only CRITICAL and IMPORTANT findings ( I read every hunk of both files in I found no security issues in this push. The isolation check is now stricterThe earlier finding on A listed
This push only narrows what passes. The one place the expression scope accepts something the old whole-job match rejected is a The new tests match the code:
Below the blocking-only bar (not counted)The non-greedy match stops at the first Other checks
critical-findings: 0 |
|
claude-review reviewed Code review (incremental, blocking only): 415e4d3 counts every
|
Head code shares RUNNER_TEMP, so the transcript stage step trusted a
publish-gate.mjs copy it could rewrite, and wrote the key file before
that copy ran. The copy step now records the gate's SHA-256 from the base
before the head checkout. The stage step checks the gate copy against that
hash before the scan, and again inside the scan process right before it
imports it. It writes the key file from LANE_TRANSCRIPT_PUBLIC_KEY only
after the scan, then re-checks the .lane-seal action.yml and seal.mjs
against their base hashes and the key file against the variable, right
before the seal step. A mismatch carries nothing.
check-artifact-retention accepts an unscanned plaintext upload only from a
job listed in sealed-upstream that holds no checkout, no secret, no
environment and permissions {}; every other job is checked as before.
Closes #16809
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The isolation check matched only `secrets.` dot access, so index access
(`secrets['X']`, `secrets["X"]`) and the whole context (`toJSON(secrets)`,
a bare `secrets`) let a listed job pass as holding no secret. A listed job
now holds a secret when any `${{ }}` expression in it names the secrets
context, in env, with or anywhere else, or when it sets a `secrets:` key
such as `secrets: inherit`. The word outside an expression is not a
reference.
Refs: #16809
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #16809
This carries out the owner's 2026-11-17 decision on lane transcripts for the read runner's agent legs; the earlier exemption decision is recorded on #7676.
Summary
The read runner's run job (
act-key,act-token,act-fallback, which the implement lane and the other read-runner activities use) uploaded no transcript, because an upload there would run after code the model can rewrite while it holds the runtime token. The run job still uploads nothing. It now seals each leg's transcript to the lane transcript key and passes it out as job outputs. A newtranscriptjob, with no checkout, no secret andpermissions: {}, uploads that record under the artifact name the puller lists.Measured before building (basis: the repository's
actions/artifacts?name=listing and downloadedskill-reply-*act-turns.jsonfiles, read 2026-11-17):model-subscriptionp50 266,826 B, max 373,121 B (n=5);sweep-areas-subscription206,960 to 242,070 B (n=2); code-reviewsubscriptionp50 37,766 B, p90 132,073 B, max 277,677 B (n=100).Fix
publish-gatecopy, and seals it with the.lane-sealsealer tovars.LANE_TRANSCRIPT_PUBLIC_KEY. Every file the seal trusts comes from the base and is checked right before use:publish-gate.mjsis copied inseal-copybefore the head checkout, with its SHA-256 recorded. It is checked before the scan, and again inside the scan process right before the import..lane-seal/action.ymlandseal.mjsare checked against theirseal-copyhashes at the end of the stage step, immediately before the seal.<activity>[-subscription|-fallback][-rung-up], and leaves as four job-output chunks. Both new steps arecontinue-on-error. Neither touchesact-outcomeor the carry to the scan job.TemplateMemory.CalculateBytescountsvalue.Length * sizeof(Char), so the budget assumes two bytes a character: 500,000 characters, less the carry's actual sealed length, 65,600 forapi-failuresand 8,192 for the other outputs. The transcript gets only what is left, so the carry to the scan job is never reduced. When nothing is left, not even a marker is carried. A transcript over the cap, or one the scan blocks, is sealed as a one-messagetranscript_omittedmarker carrying its reason, size and cap. It is never truncated. The puller stores a marker as anomittedrow withomitted_reasonandomitted_bytes. A leg that hands off still has its transcript uploaded, because the transcript job does not depend on the scan job.transcript.json.gzrecord) and uploads the bare record, kept 7 days, uncompressed, with no overwrite.TRANSCRIPT_JOB_IDSlists each read-runner activity and leg, with-rung-upfor address-feedback and fix-ci. The lane-transcripts contract and the puller README document the marker.check-artifact-retentiongains asealed-upstreamlist, the exemption Artifact-retention check rejects an upload sealed and scanned in an upstream job #16809 specifies. Aplaintextfamily can then be uploaded with no scan step only by a listed job that holds no checkout, no secret, no environment andpermissions: {}. Every other job is checked as before. Tests cover the listed pass, the unlisted fail, and listed jobs with a checkout, a secret or a token permission failing.Verification
node --test --test-concurrency=4oncallers.test.mjsandpull.test.mjs: 327/327 pass, including the new tests listed here.openRecordunder the job-id each leg produces, and the artifact name matches that job-id.model-rung..mjstest files, 1,468/1,468 pass.check-artifact-retention.test.sh41/41 pass, and 7 workflow shell suites all pass.check-artifact-retention.sh --checkis clean.actionlintandzizmor --offlineonpr-run-activity-read.ymlreport no findings..githubsuite. CI runs it, and the machine allows one at a time.pr-run-activity-write.yml#run, which stays exempt and is out of scope.Related
.lane-sealsealer copy that this change reuses.🤖 Generated with Claude Code