Skip to content

fix(lane-transcripts): start pull from the job's partial export - #17075

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/lane-pull-loads-without-outcome-lib
Nov 18, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/lane-pull-loads-without-outcome-lib

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: a regression found right after the change that caused it merged.

Summary

The scheduled lane transcript pull crashes at startup on current main. This restores it.

Fix

Verification

  • A new test copies exactly the job's exported paths to a temp directory and starts the puller from there. It fails without this fix with ERR_MODULE_NOT_FOUND and passes with it.
  • node --test scripts/lane-transcripts/pull.test.mjs: 55 passed, 0 failed.
  • Left out: a run of the scheduled job on its host.

Related

🤖 Generated with Claude Code

The scheduled job exports only this directory and two lane-output
actions, so the top-level import of the lane-outcome reader crashed every
pull at startup. pull-outcomes now loads the reader when it runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 18, 2026 06:22
@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-18T06:24:13.902366Z f88287d 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 f88287dffe8db13846a05441d3ab5eb6886ab9e4; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread scripts/lane-transcripts/pull.mjs Resolved
@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: fix(lane-transcripts): start pull from the job's partial export

The change swaps the top-level import { readRecord } from .github/scripts/lib/lane-outcome.mjs for a createRequire(import.meta.url)(...) call inside copyRunOutcomes. With that, pull and the other subcommands start again when only scripts/lane-transcripts and the two lane-output actions are present. I checked the mechanism and it holds:

  • lane-outcome.mjs has no imports and no top-level await, so loading it synchronously through require works on Node 24, the version the repo's workflows use.
  • The new test copies exactly the three exported directories and runs query from there. It would catch the top-level import coming back.

I ran nothing. The PR's verification (55 tests passed, and a failure without the fix) is the author's claim and I did not check it.

Blocking finding (inline): the fix moves the crash to a later point instead of removing it. pull-outcomes runs in the same daily unit right after pull (the scripts/lane-transcripts/README.md "Daily task" section). It still needs lane-outcome.mjs, and the export does not include that file. So every pull-outcomes pass that finds a lane run now fails. Its error is recorded as the generic kind Error rather than ERR_MODULE_NOT_FOUND. The new test only exercises query, so it cannot catch this.

No closing issue: the PR says it fixes a regression from #17046. There are no acceptance criteria to check and no embedded instructions in the PR text.

Loosened-check verdict: fail (the wrapper gave no verdict or patterns, so the default applies; this change loosens no check).

Verifier dropped 0 of 1 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #17075

No security issues found.

This PR fixes a crash at startup. It changes two files, scripts/lane-transcripts/pull.mjs and scripts/lane-transcripts/pull.test.mjs, and I read every hunk of both.

  • pull.mjs: the top-level import of readRecord from .github/scripts/lib/lane-outcome.mjs is now a call inside copyRunOutcomes, through createRequire(import.meta.url). The module is fixed in the code, not built from input, so there is no path or module injection. copyRunOutcomes still runs every record through the same readRecord before copying it, so record checking is unchanged. lane-outcome.mjs is a trusted path, but this PR does not change it; only the time it loads moves.
  • pull.test.mjs: the new test copies three directories from this repository to a temp directory and runs pull.mjs query there with process.execPath. The command and arguments are fixed, nothing comes from outside, and no credentials are involved.

Neither file matches a trusted-path glob, and the PR touches no trust control: the trusted-trigger check, the lane token, the kill switch, merge holds and lane-output sealing are all unchanged. It also changes no plugin manifest, workflow or instruction file. The PR description contains no embedded instructions to the lane.

This is the first review of this PR by this lane, not a blocking-only one.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 32802bf Nov 18, 2026
138 of 142 checks passed
@kyle-sexton
kyle-sexton deleted the fix/lane-pull-loads-without-outcome-lib branch November 18, 2026 07:13
@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