Skip to content

fix(tooling): follow the project's Node runtime - #708

Merged
lastobelus merged 5 commits into
lastcode/mainfrom
lastcode/tooling-follows-engines-node
Nov 14, 2026
Merged

lastobelus merged 5 commits into
lastcode/mainfrom
lastcode/tooling-follows-engines-node

Conversation

@lastobelus

@lastobelus lastobelus commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

LastCode's merge and local CI scripts rejected Node 26.12.1 even though root engines.node already requires it. This also made the merge-lifecycle tests fail unless Node 24 came first on PATH. Fixes #665.

The runtime guard now accepts the exact version in root engines.node, with temporary support for ^24.13.1 while saved Project Actions migrate. Downstream package commands, Action declarations, installed launchers, setup examples, and pilot CI select Node 26.12.1; package tests no longer override the project runtime with Node 24. Existing Settings are unchanged. After preparation, the shared CI Action executes the target checkout's own CI command, preserving that checkout's runtime pin for both Quick and Full CI. Local package builds also select the target tag's CI runtime so older installable tags remain buildable.

Upstream's Node alignment came from https://redirect.github.com/pingdotgg/t3code/pull/23165 at ed9b7ca9c53843ea1e6b466bf7d52928d10e7db0.

Validation:

  • With the unchanged runtime guard and only the project Node available, all seven merge-lifecycle cases fail with the unsupported-runtime fixture error. With this change, all seven pass.
  • Node 26.12.1: the final changed-file gate passed formatting, lint, unused-code checks, generated-code checks, all 41 affected workspace typechecks, and 321 tests across 15 files. An additional integration run passed 65 tests, including local-CI entrypoints and Action reconciliation.
  • Node 24.13.1: 320 focused tests across 15 files passed on the rebased branch. The final target-tag runtime-selection regression also passes under both Node versions (35 tests each). The Action launch, preparation, and local-CI tests pass under both versions (86 tests each).
  • Three older-target Action runtime cases fail before the fix and pass afterward. A real-runtime fixture shows preparation on Node 26.12.1 followed by the old target guard passing on Node 24.13.1 for both Quick and Full modes.
  • The older-tag runtime regression failed before its fix and passes afterward. The merge-lock fixture now explicitly selects its disposable repository's hooks so global Git settings cannot disable its rejection checks.
  • Same-base carry validation passed for the final source commits and reproduced the exact PR tree. The commits are assigned to Build & CI, Resumable Actions, and Incubator according to their replay dependencies.
  • The saved Quick CI Action deferred to required GitHub CI because local capacity was busy; no local Quick CI receipt is claimed. The local checks above cover the identical final source tree.

Local review: 1 round with GPT-6.1 Sol (high) found the older-tag build regression, now fixed. Pre-push reviews with GPT-6.1 Terra (xhigh) approved the full diff, the Action runtime fix, and the final rebase onto the current checkpoint. Claude's writing pass was skipped because its quota was exhausted.

Implemented with Claude Opus 5.5 in the Claude Code harness and GPT-6.1 Sol in the Codex harness.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 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-14T09:15:15.221742Z 2c2dfb5 Manual request
ℹ️ 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.

@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: a873c0eba5

ℹ️ 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".

@lastobelus
lastobelus force-pushed the lastcode/tooling-follows-engines-node branch from a873c0e to 556f06d Compare November 14, 2026 08:07
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 556f06df79

ℹ️ 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".

Comment thread t3.json Resolved
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 39a2c19c66

ℹ️ 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".

Move package commands, installed launchers, CI, and setup examples to Node 26.12.1. Package builds resolve the selected tag's own CI runtime so existing installables remain buildable. Keep the pilot rejection assertion and isolate the merge-lock hook fixture from global Git settings.

Carry-Group: build-ci
Carry-Fix: #665
Carry-Upstream: https://redirect.github.com/pingdotgg/t3code/pull/23165
Carry-Observation: Runtime setup follows upstream Node alignment commit ed9b7ca; historical package tags retain their own CI runtime.
Keep Action reconciliation fixtures aligned with the downstream runtime declarations.

Carry-Group: resumable-actions
Carry-Fix: #665
Accept root engines.node exactly alongside temporary Node ^24.13.1 support, and align setup and Action declarations with Node 26.12.1.

Carry-Group: incubator
Carry-Fix: #665
Carry-Observation: These runtime and setup edits depend on definitions currently introduced or reconciled by the Incubator group, so they must replay after it. Independent packaging and CI edits remain in Build & CI, and Action reconciliation fixtures remain in Resumable Actions.
After dependency preparation, execute the target checkout's own lastcode:ci command with the requested mode. This preserves its Node pin when a shared Action targets an older checkout whose runtime guard still requires Node 24.

Cover older target runtime selection for Quick and Full CI, nested Node processes, preparation failure and CI exit propagation.

Carry-Group: incubator
Carry-Fix: #708 (comment)
Carry-Observation: The shared Action declaration is reconciled by Incubator; its runtime-selection repair and focused fixtures must replay together after that declaration.
@lastobelus
lastobelus force-pushed the lastcode/tooling-follows-engines-node branch from 39a2c19 to be506d9 Compare November 14, 2026 08:47
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: be506d96f6

ℹ️ 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".

A later metadata-only CI check suite leaves GitHub expecting CI Gate despite successful exact-head CI and a successful gate rerun. Refresh the source check suite with an unchanged tree.

Carry-Group: build-ci
Carry-Observation: This empty commit refreshes GitHub required checks; it changes no source behavior.
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 2c2dfb5494

ℹ️ 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".

@lastobelus
lastobelus merged commit 217eac9 into lastcode/main Nov 14, 2026
25 checks passed
@lastobelus
lastobelus deleted the lastcode/tooling-follows-engines-node branch November 14, 2026 11:42
lastobelus added a commit that referenced this pull request Nov 15, 2026
PRs give no signal when they grow LastCode's in-place edits to upstream files. That growth is what makes checkpoint rebases conflict, and right now nobody sees it until a rebase hurts.

Part of #720.

## What changed

A new reporting step in the Lint job prints an **Upstream-owned line changes** table to the log and the job summary:

| Comparison | Measures |
| --- | --- |
| This PR | lines added/deleted from PR base to head |
| Whole fork | lines added/deleted from the pinned upstream commit to head |

- **Which files count:** only paths that exist at the pinned upstream commit, `merge-base(PR base, origin/main)`. Fork-only files never count.
- **How:** endpoint comparisons with `git diff --numstat --no-renames`. Binary files are excluded. Moving an upstream file to a fork-only path counts as a deletion.
- **Cost:** reuses Lint's existing full-history checkout, with no extra fetch.
- **Never blocks:** no threshold or gate. The step runs with `continue-on-error`, and if the comparison can't be resolved it prints "unavailable" instead.

## Proof

- Matches a direct path-restricted `git diff --numstat` on real PRs:
  - #708: This PR +26 / -28; whole fork +158,190 / -25,331
  - #702: This PR +0 / -18; whole fork +153,798 / -24,594
  - #700 (fork-only): +0 / -0
- A subdirectory invocation regression failed before `ls-tree --full-tree` and passes after the fix.
- Real-Git tests cover replayed and merge ancestry, renames, deletions, binaries, unusual paths, reverts, and the non-blocking error path.
- `check:changed` passed: format, lint, knip, 41 affected typechecks, tests.
- Quick CI passed on final head `6059683f631877765e539d7db581babba9ef41cf` against base `217eac9e1863a9819e5d99efc97392c0c7b8d5c5`.

Local review: 2 rounds with GPT-6.1 Terra (xhigh) and Claude Opus 5.5 (high), not clean: Terra approved the final diff; Opus completed round 1 but its round-2 recheck was unavailable due to weekly quota. Every accepted finding is fixed. The PR description received the Opus writing pass.

Review decisions: keep the owner's literal base-to-head endpoint metric rather than substitute a synthetic merge result; the report prints its comparison SHAs. Rare invalid-UTF-8 path aliasing and fixture sensitivity to global Git signing settings remain optional follow-ups.

Implemented by GPT-6.1 Sol (xhigh) in the Codex harness.

Carry-Source-Ref: refs/lastcode/carry-sources/pr-724/6059683f631877765e539d7db581babba9ef41cf
Carry-Source-Base: 217eac9
Carry-Source-Head: 6059683
lastobelus added a commit that referenced this pull request Nov 15, 2026
## Problem

The carry-set ELI5 still described the August proposal, not the carry replay that has been the production path since 2026-09-05. The glossary and nightly workflow kept rollout-era lines: carry tooling "does not yet replace the nightly replay", files shared by several groups go to Incubator, a post-publication carry check that in fact runs only after historical-mode publications, and retirement criteria for historical replay. Refs #720.

## Change

- **ELI5** (`doc/design/2026-08-29__downstream-carry-set-eli5.html`): rewritten to describe carry replay as built. Each commit names its group with a `Carry-Group` trailer. A publication folds the PR squashes merged since the last one into six group commits on the old nightly, then replays only those six onto the new nightly with `rerere` off. It also covers the deferred-promotion exception to the tree check, conflict recovery, historical rollback, and what changed from the proposal.
- **Glossary**: describes the current carry set; the group order now includes Build & CI; a fix that edits lines a later group changed must move to that group; carry replay has no path ownership; the ELI5 link no longer says "proposal".
- **Nightly workflow**: the shadow check runs only after historical-mode publications; historical replay is an explicit rollback, not a pending retirement; `--reconstruct` only reproduces the bootstrap generation; the dashboard's replayed-commit count is normally 6.

## Scope

Documentation only, no behaviour change. Tracks #720 without closing it. The smoke gate description in the nightly workflow is left to another PR.

## Verification

- Checked each claim against `scripts/lastcode-carry-*.ts`, `scripts/lastcode-checkpoint.ts`, `scripts/lastcode-merge.ts`, the manifest and published tags. This covered contribution counts (2,256 in total, 1,015 in Incubator, 122 of 252 Upstream bugfixes without `Carry-Upstream`), `Fork-Commits-Rebased: 6` on every carry checkpoint tag, the first carry tag at 2026-09-05 18:23 PT, checkpoint 4449 folding #671–#688, checkpoint 3717's cross-base compile, and the trailers on #708 and #671.
- Corrected three errors in the rewrite before review: PR #708's groups, a claim that Incubator work can be retagged out, and the "carry patch" wording.
- `check:changed`: typecheck (41 packages) and the context-budget test pass, and formatting passes after `vp fmt`. The HTML tags are balanced.
- Quick CI deferred to GitHub because local capacity was busy, so there is no local receipt.

Local review: 3 rounds with GPT-6.1 Terra (xhigh) and Claude Opus 5.5 (xhigh), approved. Final-round nits were fixed afterwards.

Written with Claude Opus 5.5 in the Claude Code harness. Reviewed with GPT-6.1 Terra in Codex and Claude Opus 5.5.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Carry-Source-Ref: refs/lastcode/carry-sources/pr-725/a1e38bf562fb6faa8738a13d219d20f9925c657b
Carry-Source-Base: 99486a3
Carry-Source-Head: a1e38bf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lastcode-merge-lifecycle.test.ts fails locally unless Node 24 is first on PATH

1 participant