Skip to content

fix(ci): remove exports orphaned by checkpoint carries - #702

Merged
lastobelus merged 2 commits into
lastcode/mainfrom
lastcode/checkpoint-unused-exports
Nov 14, 2026
Merged

lastobelus merged 2 commits into
lastcode/mainfrom
lastcode/checkpoint-unused-exports

Conversation

@lastobelus

@lastobelus lastobelus commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Checkpoint carries replaced the callers of two upstream helpers but left their exports behind. Knip reports both as unused, which blocks CI on lastcode/main and PR #700.

Remove installedAgentDeviceEntry and selectionInOneCodeBlock. The repair changes no active caller and keeps each deletion in its owning carry group.

Proof: reproduced both knip failures on main; the changed-file checks and Quick CI pass on this repair, including 32 tests and the React compiler check. Same-base carry compilation reproduces the exact repair tree.

Local review: 1 round with gpt-6.1-terra (xhigh), approved.

Implemented with GPT-6.1 Sol through the Codex harness in T3 Code.

Carry-Group: upstream-bugfixes

Carry-Observation: LocalDeviceHost uses installedAgentDevice to retire recorded daemon versions; the earlier entry-only lookup has no callers.
Carry-Group: incubator

Carry-Observation: The carried composer shortcuts no longer call selectionInOneCodeBlock, leaving its upstream export unused.
@lastobelus
lastobelus marked this pull request as ready for review November 14, 2026 00:01
@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-14T00:03:25.348181Z a212eb5 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.

@lastobelus
lastobelus merged commit e2591e9 into lastcode/main Nov 14, 2026
37 of 52 checks passed
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
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.

1 participant