GeezerVison is showing github.com — Follow upstream: rebase onto v0.1.14-nightly.20261127.5345 (draft) by scuttletoby · Pull Request #1138 · scuttletoby/t3code
Conversation
scuttletoby
commented
Nov 27, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Follow upstream: rebase the series onto v0.1.14-nightly.20261127.5345 (draft, do not merge)
Recommendation first: this branch is the fork's series rebased by hand onto upstream's newest nightly. It is ready to review, but it lands only after three owner decisions (below). Then the follow order further down. main is not moved, no fork-follow run was started, nothing was released.
Decisions the owner needs (before main moves)
- The schema check refuses the series (blocker for fork-follow too). Upstream's
persistence/Migrations.ts now imports @t3tools/shared/databaseMigrationLog, which does import type { DatabaseMigrationProgress } from "@t3tools/contracts". fork-schema-check.cjs follows type-only imports on purpose (its test pins import type into the closure), so contracts/src/server.ts and everything it imports (settings.ts, forkSettings.ts, editor.ts, 17 fork-changed contracts files) count as schema code. Guarded files went from 142 to 200. A type-only import is erased at compile time and cannot change the schema.
- Recommendation: the check stops following
import type / export type (and type-only names in import { type X }). The check itself must not be changed by an ordinary PR (CHECK_FILES), so this is the owner's change.
- Until then, every follow from now on fails at this check.
- Seam raises (fork-follow lowers, never raises; each one is upstream's doing):
apps/server/src/mcp/McpHttpServer.ts pending 10 → 14: upstream's milestone-events block put the fork's tool layer and comment into new hunks.
apps/server/src/orchestration-v2/ThreadLaunchService.test.ts pending 84 → 93: the fork's held-preparation test now provides upstream's new launch dependencies.
apps/server/src/server.ts lost lines 7 → 8: upstream's runtime layer chain has 20 steps, Effect's pipe limit, so the fork's two steps share a step with the upstream line below each (2 upstream lines re-indented, none changed).
- Default taken, open to veto: upstream's file-link Download replaces the fork's. Upstream feat(web): download files from the Files panel and chat file links pingdotgg/t3code#43833 added "Download" to the chat file-link menu, with the same prop name (
onDownload) as the fork's "Download to this device". I kept upstream's and dropped the fork's entry and code (feat(web): file links open remotely, full size, download from their menu #17), and the fork's improvement to it (File link download says which machine and path it checked when the file is missing #1044, "not found on at "). Fewer seam lines, no double entry. File links can name the environment that holds the file #1048's environment-named links still download from the named environment (they set onDownload to undefined and use their own click). If wanted, a follow-up can give upstream's download the File link download says which machine and path it checked when the file is missing #1044 message.
Why fork-follow has not run since 11-21
- The daily cron has never fired. All 13 runs of
fork-follow.yml since it was added are workflow_dispatch; there is no schedule event in its history at all. Over the same days the other fork crons (Fork CI re-run, Fork CI release, fleet sweep, secret sweep, Windows tests) fire on schedule every day.
- fork-follow is one of the two workflows something keeps switching off (Owner question: who switches off fork-tests every 20 minutes? (2-minute security-log look) #517, ~72 times a day; the keep-on service turns them back on within seconds). It is the only one of the two with a cron. GitHub skips a scheduled run of a workflow that is disabled at that moment, and may drop the schedule when a workflow is disabled and re-enabled; I could not prove which from here (no audit log access).
- It would have failed anyway: the first patch (fork: the server and CLI update from the desktop app's repository #1) conflicts (upstream deleted
docs/operations/release.md), and fork-follow cannot resolve conflicts; after that, the schema check above.
- The last success (11-21 20:30Z, run 44946638590) was a hand-started
release of the hand rebase onto v0.1.12 (Fork cannot follow upstream #792). The branch move was skipped because main already held the series.
Conflicts and how each was resolved (23)
Each keeps upstream's change and the fork's feature unless it says otherwise.
- fork: the server and CLI update from the desktop app's repository #1 release repository:
docs/operations/release.md modify/delete. Upstream docs: prune internal and operations docs and enforce them in review pingdotgg/t3code#41330 pruned the operations docs; the fork had added one line. Took upstream's deletion.
- fork: delete four outside-started upstream workflows and keep them deleted #14 removed workflows:
mobile-eas-preview-fork.yml, mobile-fingerprint-label.yml, thread-transfer-report.yml (and later issue-vouch.yml) modify/delete. They are listed in fork-removed-workflows.txt, so they were deleted, as fork-follow does.
- feat(web): file links open remotely, full size, download from their menu #17 file links (6 files). The download decision is decision 3. Other hunks:
editor.ts: upstream's folder ?windowId=_blank plus the fork's line/column and parsesToItself.
index.css: upstream's user-select: text plus the fork's -webkit-touch-callout: none.
- Imports in
remoteOpen.test.ts and ChatMarkdown.tsx.
MarkdownFileLink.tsx: upstream's shared-tooltip chip with the fork's long-press handlers.
- Browser test: upstream's tests kept beside the fork's, with the fork's download half removed.
- Auto-update: server updates itself when quiet #5 auto-update:
serverRuntimeStartup.ts imports (upstream renamed its startup-access helpers).
serverSettings.ts: upstream moved the file decode into a new pure decodeSettingsFile(), so the fork's renameRetiredAutoUpdateKeys() call moved there.
- feat(waits): agent tools to register, list and cancel waits (part 4, off by default) #103 waits tools,
McpHttpServer.ts: upstream added layerMilestoneEvents and webhook transport before layer; layer merges both sides.
- feat(waits): check and unit judges, outage wake cap (part 5, off by default) #106 waits judges,
environment/handlers.test.ts: both sides added a test at the same place; kept both.
- fork: read-only report command (go-live kit PR 2) #172 go-live report,
serverSettings.ts: the load path takes upstream's decodeSettingsFile(). forkReport.ts uses the fork's parseSettingsFileText and settingsFileLegacyKeysUnreadable beside it. The fork's decodeSettingsFileText is used only by tests now; it stays because it is the last user of upstream's decodePersistedServerSettingsExit, and removing it needs new seam lines (owner review).
- Fork default pin: one row per fork setting, #51 fix, #44 test, sync runbook #171 default pin: the unreadable-file fallback moved into upstream's
decodeSettingsFile(); the fork's automaticUpdates: false moved with it.
- fork: serve --hold-work (go-live kit PR 1) #175
serve --hold-work:
config.ts: both options kept.
Scheduler.ts imports; Scheduler.test.ts: both tests kept.
- Upstream turned the one-off auto-pull into
autoPullEnabledProjects (at boot and every fetch interval). The fork's held-from-boot check moved inside it, so a held server pulls at neither.
- hold-work: a held server does not start T3 Connect; tests for every hold (#190) #313 hold-work Connect,
server.ts: upstream added ProviderHostPathWatcher next to the fork's wrapped AgentAwarenessRelay; kept both.
- server: fork service layers in one fork file (server.ts fork lines down); handoff contract files are fork files #384 fork layers file: the same line as 10.
- feat(server): Claude threads apply their MCP profile's outside servers #528 Claude MCP profile,
ClaudeAdapterV2.ts query options: upstream's agentFeedback and the fork's mcpProfileOptions, both kept.
- Refuse a narrowed MCP profile at turn start on a provider that cannot apply it #679 MCP profile turn check,
server.ts: upstream added MilestoneHub and merged LayoutCommandApprovalWrites into the task-folders line. (Final shape: see the fixes commit.)
- MCP profiles: a broken settings.json or a launch never widens a thread to all (#681) #694 MCP profile launch:
project/handlers.ts imports.
- Agent slots: every route that starts an agent goes through the slot gate (#706) #710 slot routes: the same imports again.
- Model policy: check agents' model picks on the server, mark picks outside it in Settings (#731) #747 model policy:
thread/handlers.ts: upstream's refuseAgentModePick first, then the fork's model policy check.
serverSettings.ts: the fork's modelPolicy fallback joined upstream's fallback.
- Model policy: log the unparseable-settings warning through the server's logger (#768) #777 model policy warning:
afterLoadFailure had become an Effect, but upstream's decode is pure. modelPolicyFile.ts now exports a pure afterLoadFailure plus warnAfterLoadFailure, which the load calls in its failure branch, so the warning still goes through the server's logger.
- fix(acp,cursor): a turn's cached provider thread is settled, so late updates cannot mark it busy #909 settled ACP thread,
AcpAdapterV2.test.ts: upstream fix(acp): a late session update no longer marks a stopped thread active pingdotgg/t3code#40629 fixed the same ACP symptom and added the same assertion; took upstream's line. The fork's settle-time lines in the ACP and Cursor adapters stay (upstream does not cover Cursor). The ACP half may now be redundant.
- MCP profiles: T3 tool groups on T3's MCP server, for every provider #827 MCP tool groups:
McpHttpServer.ts: upstream's block with the fork's comment; layer merges layerMilestoneEvents and the fork's tool filter.
McpToolExposure.ts: upstream's search filter now also skips TOOL_CALL and disabled tools; the fork's searchableT3Tool filter follows it.
- MCP profiles: follow-ups for Codex and the T3 tool rule (#812, #814, #918) #961:
layer again (McpT3ToolFilter → McpT3ToolRule).
- fix(#975): usage pacing follow-ups: unknown-key warning, logged load, window list in Settings #1003 logged settings load. The fork had made the load an Effect (
fork/settingsFileRead.ts decodeSettingsFile, same name as upstream's new function), so dropped intervals and lenient fields log through the server's logger.
- Upstream's pure function stays. It now reads through the fork's
decodeSettingsFileSilently (renames, dropped intervals; one changed upstream line).
- The load first runs the fork's new
logSettingsFileRead() in its fiber for the warnings (the file is read twice at boot).
- This also restores the interval dropping on the load path, which upstream's new function had bypassed since an earlier auto-merged fork commit.
- File link download says which machine and path it checked when the file is missing #1044 download error names machine/path: it improves the fork's download, which 3 dropped. Its download code (
forkFetchMarkdownFile, forkMarkdownFileDownload.ts and its test) is dropped; its seam ceiling drop is kept. range-diff shows it as rewritten.
- File links can name the environment that holds the file #1048 environment-named file links,
forkMarkdownFileLinkActions.ts: the fork's side, minus the dropped download functions and their imports.
Fixes commit (fork: fixes for upstream v0.1.14-nightly.20261127.5345)
Fork code that upstream broke without a conflict, found by the type check, lint and tests:
server.ts: upstream's runtime layer chain grew to 20 steps (Effect's pipe limit). With the fork's two steps it took 22 and typed as never, which made 231 errors across the server. Each fork step now shares a step with its upstream neighbour: same layers, same order.
ClaudeAdapterV2.ts: openQueryRuntime now yields { program, querySession }, so the MCP profile check taps querySession.
WaitPrJudge.ts: handles upstream's new PullRequestRepositoryInvalidError. Without it, the judge returned undefined for a wait whose repository is written with its host.
- Fork tests provide upstream's new dependencies, as upstream's own tests do:
ProviderRegistry, FeedbackStore, LayoutCommandApprovalWrites, workflows, FeatureFlags, ProjectSetupScriptRunner, BackgroundPolicy, the projection store, a tool inputSchema, an async spawn resolver.
- Test expectations:
- An untranslated-copy exception with nothing left to except is removed.
Tests (each answers a question)
-
Is a wait for a repository written with its host refused with upstream's message instead of crashing the judge? New test in WaitPrJudge.test.ts. Red without the WaitPrJudge.ts case (judge returns undefined), green with it (21/21).
-
Do the fork's settings, scheduler, startup, hold-work, MCP profile, remote delegation, waits, launch, facts and asset tests still pass on upstream's code? All of these pass:
| Test file |
Passed |
serverSettings.test.ts |
81 |
serverSettings.forkDefaults.test.ts |
10 |
serverSettings.forkIntervals.test.ts |
19 |
serverSettings.forkSettings.test.ts |
41 |
Scheduler.test.ts |
6 |
environment/handlers.test.ts |
3 |
project/handlers.test.ts |
24 |
cli/config.test.ts |
20 |
serverRuntimeStartup tests |
9 + 1 + 3 |
claudeMcpProfile tests |
57 + 14 |
remoteMcpProfile.test.ts |
26 |
remoteReplyRead.test.ts |
5 |
remoteCompletionDelivery.test.ts |
7 |
remoteDelegationAbortSafe.test.ts |
9 |
delegateOwnOptions.test.ts |
37 |
factsCommand.test.ts |
12 |
pullRequestWatchSlot.test.ts |
10 |
environmentFileLinkAsset.test.ts |
1 |
waits.test.ts |
17 |
OrchestratorMcpService activity / slotGate / usageGate |
12 / 30 / 34 |
Web unit: forkMarkdownFileLinkMenu.test.ts, remoteOpen.test.ts, forkEnvironmentFileLink.test.ts |
59 |
packages/contracts (all) |
603 |
-
Not run here, CI must run them. The test machine's sandbox lets a process bind only a fixed port range, so these time out or fail to connect on a random local port:
McpHttpServer.test.ts (11 tests)
forkReport.test.ts --activity (1 test)
holdWork.boot.test.ts
peer/RemoteDelegation.test.ts
peer/PeerForwarding.test.ts
ChatMarkdown.permissions.browser.test.tsx needs a browser, which the machine lacks.
-
Type check: server, web, evals, provider-pi and scripts are clean. Lint and format are clean on every file the resolutions and fixes touch. The seam check (--from-upstream --after-rebase) passes. The schema check fails as described in decision 1.
How to land it (with the open PRs)
Order:
- Owner decisions 1-3. For decision 1, a check change lands on main first; then this series is rebased once more so it carries that change.
- Drain the merge queue, then pause it (auto-merge off, or the queue stopped) so main holds still. Note main's head
M. Cherry-pick every commit in git log --reverse <series' old main base>..M (read at that moment, not from this list) onto the series, as delegate prepare: merge, install and baseline tests by script before an agent starts #1076 was.
- Push the series as
fork-follow/candidate. This needs a token with the workflow scope; the test machine's token cannot push workflow changes. Run fork tests on it: gh workflow run fork-tests.yml --ref main -f ref=fork-follow/candidate. The workflow runs from main and checks out its ref input; a run started with --ref on another branch fails fork_checks_ran. It must be fully green before main moves. Then move main, keeping the old series as a tag:
git push origin M:refs/tags/fork-follow/pre-v0.1.14-nightly.20261127.5345-<M12>
git push origin <candidate>:refs/tags/fork-follow/synced/<candidate>, with the full 40-character sha, which is all fork-fleet.py matches (before main moves, as fork-follow-push.sh advance does: main's push run then stays on GitHub-hosted runners, per fork-fleet.json)
git push --force-with-lease=main:M origin <candidate>:refs/heads/main
- Start fork-follow once (
gh workflow run fork-follow.yml). With the same base it plans release: it builds, publishes, and disables the upstream workflows the push started. If a newer nightly exists by then, it plans rebase; that may conflict again, but on a day of upstream changes, not six.
- Rebase the open PRs, each stack as a stack. A PR on main:
git rebase --onto main <merge-base with old main M> <branch>. A PR on another PR's branch: git rebase --onto <rebased parent> <parent's old tip> <branch>, after its parent (or git rebase --update-refs --onto main <merge-base with M> <top branch> for the whole stack). Rebasing each layer on main alone would copy the parent's commits into the child. Skip a branch already on the new main (git merge-base --is-ancestor main <branch>). Two stacks have diverged (the child no longer holds the parent's tip): Armed PR sweep: judge, one-request sweep, once-per-head wakes, wait_list rows (#880 rows 1-3) #1117 → Armed PR sweep settings panel and pressure-note fork-ci action (#880 rows 4, 6) #1123 and Issues opens Waiting on you: the seam lines and the ownerQuestionsPage setting (#887 row 3) #1105 → Waiting on you: the recommendation and an answer box (#887 row 5) #1115. For those, rebase the parent first, then the child with --onto <rebased parent> <merge-base of child and parent's old tip>, so only the child's own commits move. Then push --force-with-lease per branch, fork:merge-ready PRs first. Read the stack list from the open PRs' base branches at that moment; the list here is from the dry run. Stacks at the dry run: fork seams: announce the model policy backstop lines in ThreadManagementService.ts (#876 M4) #1128 → Model policy backstop: check an agent's dispatched thread commands once (#876 M4) #1129 → model-guard: leave the T3 server's routes to T3 once its managed policy locks modelPolicy (#876 M7) #1133, Armed PR sweep: judge, one-request sweep, once-per-head wakes, wait_list rows (#880 rows 1-3) #1117 → Armed PR sweep settings panel and pressure-note fork-ci action (#880 rows 4, 6) #1123, fork seams: announce the calm sidebar's web lines (#878 CAL3, CAL4) #1120 → Calm sidebar part 3: web sidebar, role badge, thread menu Role, Settings (#878 CAL3, CAL4) #1122, Issues opens Waiting on you: the seam lines and the ownerQuestionsPage setting (#887 row 3) #1105 → Waiting on you: the recommendation and an answer box (#887 row 5) #1115, seams: announce the .t3code/issues.json lines in IssueService.ts (#887 row 2) #1107 → Issues: a project's .t3code/issues.json names its repositories (#887 row 2) #1112, fork seams: announce the files viewer hook for file links on another environment (#1046) #1102 → File links on another environment preview media and open in the files viewer (#1046) #1110, and the Work panel ones (feat(fork): work panel part 1, CI for a thread and the repo queue line (#1136) #1142, feat(fork): work panel part 2, the capacity bar and usage left (#1136) #1145). The dry run (pr-rebase-dryrun.sh, git merge-tree only, no branch changed) on today's 51 open PRs:
- 36 rebase cleanly.
- 5 conflict only because of the follow: Placement P1: the receiving machine paces a delegated task from a link #1081 (
project/handlers.ts imports), Handoff: Hand off now, the waiting chip, and a mode for role threads (#877 HO5, HO6) #1088 / Playtest F5: the thread chip with an End button (#889) #1099 / Calm sidebar CAL3, CAL4: role rows on top, Other threads, the Thread role menu and Settings (#878) #1100 (ChatView.tsx, Sidebar.tsx, useThreadActionMenu.ts, which upstream reworked), File links on another environment preview media and open in the files viewer (#1046) #1110 (forkMarkdownFileLinkActions.ts, decision 3).
- 10 already conflict with today's main: stacked PRs on
FORK_CHANGES.md (fork: account order, so delegated work leaves a spent account (#881) #1109, Issues: a project's .t3code/issues.json names its repositories (#887 row 2) #1112, Waiting on you: the recommendation and an answer box (#887 row 5) #1115, Calm sidebar part 3: web sidebar, role badge, thread menu Role, Settings (#878 CAL3, CAL4) #1122, Armed PR sweep settings panel and pressure-note fork-ci action (#880 rows 4, 6) #1123, Playtest F5: thread chip with End (#889) #1126, Model policy backstop: check an agent's dispatched thread commands once (#876 M4) #1129) and the old carry PRs Desktop: download updates in the background and install on quit (parked for upstream #17588) #40, fix(web): no-project drafts follow load balancing (carry upstream #31049, parked) #43, fix(provider-core): npm provider updates into a prefix the server can't write stay manual (carry upstream #30302) #525.
- Turn the queue back on.
Reviews after the rebase. pr_queue.holds() and the head check (which imports it) accept only the head a lens read, or a 2-parent clean merge of the base into it. A rebased head has one parent, so every lens read is lost; an override for head <sha> is the owner's, not ours. A new lens on the rebased head is no new round (rounds count different own changes, and a pure replay has the same one). Lens reads that are the head today, and so lose a valid review: #1087, #1089, #1119, #1135, #1137, #1139. Older reads (#1081, #1084, #1085, #1095, #1096, #1099, #1108, #1122, #1134) need a new lens after their next push anyway. The smallest safe way to keep them is a fork-ci change of its own (merge path, two reviewers), not this PR: holds() also accepts a head whose tree is byte for byte git merge-tree --write-tree --merge-base <merge-base of the read and O> <P> <read>, where P is the head's parent on the base and O is a commit named by a config tag pattern (here fork-follow/pre-*, read from the base commit). That is the same check the queue makes for a merge update, done against the old base.
Staying caught up
- Make the daily run actually run. Do not rely on fork-follow's own cron while Owner question: who switches off fork-tests every 20 minutes? (2-minute security-log look) #517 keeps switching it off. A schedule that does fire (Fork CI re-run or the fleet sweep) can start it with
gh workflow run fork-follow.yml; GITHUB_TOKEN with actions: write may dispatch.
- Fix Owner question: who switches off fork-tests every 20 minutes? (2-minute security-log look) #517 itself: the remaining suspect is the Claude GitHub App's access to the repository.
- Smaller, more frequent follows. Daily, about 250-300 upstream commits, which is a few conflicts at most per run. A failing run opens its issue, and the hand rebase happens the same day, before PRs pile up on the old base.
- The schema check fix (decision 1) is needed for any follow to pass again.
- Fold-ups that would cut future conflicts:
serverSettings.ts: the fork's load lines are now three small seams.
McpHttpServer.ts: the layer line is shared every time either side adds a layer.
server.ts: upstream's pipe is at the 20-step limit. A fork step there should wrap an existing step, never add one.
State question: what happens when the follow runs again, stops half-way, or meets existing state
- Runs again before main moves: the plan finds the old series on v0.1.12 and rebases from scratch. The first patch (fork: the server and CLI update from the desktop app's repository #1) conflicts, the run fails and opens or updates the "Fork cannot follow upstream" issue. Nothing is pushed and main is untouched (each failure path says "The series was left as it is").
- Runs again after main moves: the base is v0.1.14. Same newest nightly:
release (or none once released). Newer nightly: rebase onto it, or advance if a published fork release already has the rebased tree.
- Stops half-way:
- The rebase happens in the run's own checkout. Nothing is pushed until the plan finishes, so a run that dies mid-rebase leaves the repository as it was.
- The pushes are separate steps: candidate first, then the branch move with a lease and a backup tag. If the run stops after the candidate push, main is untouched and the candidate branch holds the result. The next run either re-plans from main or, if a release of that tree was published, advances to it.
- A hand step done half-way is covered the same way:
--force-with-lease=main:M refuses to move main if anyone merged meanwhile, and the old series stays as a tag.
- A
stage result (release workflows differ) pushes the candidate and stops on purpose; its report gives the move commands.
- Meets existing state:
- Open PRs: the follow does not touch them; they need the rebase in step 5.
- A newer upstream nightly: handled as above. This branch can also be rebased again onto it before main moves; it is 56 commits behind upstream's default branch today.
- The stale
fork-follow/candidate (at 7910eaab87, from 11-21) is force-pushed over by the next candidate push (fork-follow-push.sh candidate) and deleted by cleanup. Old follow/v0.1.10-* branches and fork-follow/pre-* tags are not touched by the follow and can be deleted by hand.
Part of #854. Refs #517, #792.
Fix round (2026-11-27, 90047c2db)
One new commit on the series, after the lens reviews:
fork-release.yml stages vite-manifest.release.json before the bundle upload, as release.yml does (fix(release): preserve the web asset manifest pingdotgg/t3code#42806); without it the CLI archive smoke test fails on the missing .vite/manifest.json. The release-workflow test now checks that every step release.yml runs between building and uploading the bundle is in fork-release.yml (it fails on the old file).
- The stage report (
fork-follow.sh) and step 3 above tag the candidate fork-follow/synced/<sha> before main moves.
fork-follow.yml deletes a leftover fork-follow/candidate on release too, not only on none.
__fork-report gives a file the load ignores the load's whole fallback (fail-closed model policy, approval-required mode and the rest), not only automaticUpdates: false. The test against the server's own load now compares where each fork feature is on and automaticUpdates, and has a legacy-keys case; it fails on the old code.
- The schema check commit now also follows
import { type A } (not erased under verbatimModuleSyntax) and code without semicolons (fork schema check: stop following type-only imports and exports #1140's fix round).
- Not changed: the load reads
settings.json twice (once for the fork's log, once in upstream's line). The decode uses one read; only the log can see an older file if it changes at boot. A single read changes upstream's line, a new seam line for the owner.
- Checked: seam check passes and lowers nothing, schema check passes (157 guarded), server type check clean, 272 server tests of the changed files pass,
fork-follow.test.sh 187 ok, release-workflow test 33 ok.
Refresh (2026-11-27)
The owner approved decisions 1-4 on 2026-11-27. The series is now 532 commits on the same tag (500305e14):
Series CI fixes (2026-11-27, 9c28e9041, 0713e2046)
The series' fork-tests run had six red jobs. Each is fixed at its cause:
- Upstream drift: upstream's CI added two test steps. The fork now builds the CLI single-executable in the build job, as upstream does, and the record is saved again (
fork-tests-drift.cjs and --windows exit 0).
workflow-credentials.test.cjs (upstream's release check) reads mobile-eas-preview-fork.yml, a workflow the fork deletes. It is now listed in fork-ci-tests.txt and runs in "Test release checks". The step before it puts back upstream's copy (.github/fork-upstream-mobile-eas-preview-fork.yml, from the tag) and the step after it takes it out again.
- Tool groups, fork code follows upstream: upstream added the T3 tools
t3_feedback and t3_workflow, which had no group, so no profile could keep them. Two new groups, feedback and workflows. t3_workflow's open input and value are reviewed: they stay in the workflow store and never reach settings.
t3_thread_launch options, test follows upstream: upstream now checks a launch's options against the model list before the fork's model policy runs. The fork's hook was already after upstream's model check, so the fork code stays. On a launch that runs here, upstream refuses an option the model list does not describe, in every mode. A launch sent to a linked machine still gets the policy's own refusal.
- Chip menu key, test follows upstream: upstream's keydown handler now opens the menu and cancels the key, so a browser sends no second
contextmenu. The test still sent its own contextmenu after the key and counted two opens. Now it sends only the key and checks that the key is cancelled.
handoffOwner server.ts check, test follows the new shape: upstream's runtime pipe reached Effect's 20-step limit, so the fork's first step now sits in a flow(. The wiring itself is unchanged: still first, on the mergeAll that holds the idle compaction worker. The check now reads the pipe's first step, skipping comments and the flow( line.
- Secret scan (107 gitleaks hits): no change needed. The hits are in upstream's own test files. Push scans (main, branches and tags) leave out upstream's history. The PR scan covers the head minus the base, so the hits show up only on a PR based on this series while main is still the old series. Once main moves, each PR's range is only its own commits. The push scan of
9c28e9041 passed.
- Checked locally: each changed test file passes (server fork MCP profile and option tests: 351 + 108;
personOnlySettings 20; handoffOwner 36; the chip test 19 in the browser; contracts mcpProfile 42; web profile settings 11 + 10). The server type check is clean, and lint and format are clean. fork-contracts.test.py (790), fork-owned-paths.test.py (52) and fork-ci-tests.test.cjs (75) also pass.
Candidate CI fixes (2026-11-27, 6f9f40300, a03d46a45, 5ff57f798)
6f9f40300: the chip menu-key test was shortened to fit its seam ceiling, which is now lowered (241 to 238). No ceiling was raised.
a03d46a45, processRunner stdin. The fork code follows upstream, in part. Upstream's new test expects a stdin error when a command exits 0 without reading a real stdin. The fork's closed-stdin catch hid that error. Now a closed stdin is ignored only when nothing went unread (an empty stdin, which the handoff command gives) or the child failed with its own non-zero exit code. Upstream's test and the fork's closed-stdin tests both pass, plus two new fork cases (exit 0 with a real stdin is an error; an empty stdin is not).
5ff57f798, hold-work boot test. The test follows upstream. Upstream renamed the analytics host setting from T3CODE_POSTHOG_HOST to T3CODE_TELEMETRY_HOST. The test still set the old name, so the server it boots sent its startup heartbeat to the real host, never to the test's fake relay, and the normal-boot wait never ended (the shard hit its 20-minute limit). Nothing else in the repo uses the old names.
- Local checks: processRunner, closed-stdin and handoff tests (299 pass, run three times), server typecheck, fmt and lint, the seam check, and fork-tests drift.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
scuttletoby
added a commit
that referenced
this pull request
Nov 27, 2026
A type-only import is erased at compile time, so it cannot change the
database schema. The check followed them on purpose, so upstream's
`import type` in databaseMigrationLog pulled contracts/src/server.ts and
everything it imports into the schema closure (142 -> 200 guarded files),
and every follow failed.
Now `import type`, `export type` and a clause whose names all carry
`type` are not followed. In `import { type A, B }` only B is followed.
`import type from "x"` (a default import named `type`) and
`import { type as t }` (the value `type`, renamed) are still followed.
Side-effect imports are still followed.
Owner decision 1 of #1138 (2026-11-27).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Lens state: not safe
Reviewed head: 500305e1405a3d2510067c7827e77749d27fe8e9 (base 4c72563d949f, v0.1.14-nightly.20261127.5345; compared against main at 89ac2e839a11).
blocker: .github/workflows/fork-release.yml omits upstream pingdotgg#42806 (25bbfb34c)'s "Stage web asset manifest" step, so Step 4 (gh workflow run fork-follow.yml) will fail smoke-cli-archive.ts on Linux and Windows after main has already been force-moved in Step 3. apps/web/vite.config.ts writes apps/server/dist/client/.vite/manifest.json, actions/upload-artifact skips hidden files by default, .github/workflows/release-desktop.yml (called by fork-release.yml with cli_archive: true) expects apps/server/dist/client/vite-manifest.release.json to restore .vite/manifest.json, and scripts/smoke-cli-archive.ts now fails when client/.vite/manifest.json is missing. Fix: mirror release.yml's Stage web asset manifest step in fork-release.yml before Upload JS bundle. Verified with git show 500305e14:scripts/smoke-cli-archive.ts | sed -n '100,115p', git show 500305e14:.github/workflows/release.yml | sed -n '604,613p', and git show 500305e14:.github/workflows/fork-release.yml | sed -n '238,247p' (no vite-manifest or include-hidden-files).
major: Step 3 of "How to land it" moves main without first tagging refs/tags/fork-follow/synced/<candidate>, violating the fleet trust boundary (.github/fork-fleet.json: upstream code runs on GitHub-hosted runners only). .github/scripts/fork-follow-push.sh (cmd_advance) pushes refs/tags/fork-follow/synced/<sha> before refs/heads/main, and Step 4 plans release (not advance) once main is on v0.1.14, so the tag is never created later either. Verified by running .github/scripts/fork-fleet.py's refused() for a push to refs/heads/main at 500305e1405a3d2510067c7827e77749d27fe8e9 against .github/fork-fleet.json: returns None (routes to self-hosted fleet) without the tag, vs refusing with commit 500305e1405a was pushed by the upstream sync (tag refs/tags/fork-follow/synced/...) once tagged. Fix: add git push origin <candidate>:refs/tags/fork-follow/synced/<candidate> before the main force-push in Step 3 (and in .github/scripts/fork-follow.sh's stage_report).
major: Step 5's rebase command (git rebase --onto main <merge-base with old main M> <branch>) diverges stacked PRs when run on upper layers after rebasing their base branch. There are 6 open stacks (7 non-main-based PRs: #1128 -> #1129 -> #1133, #1117 -> #1123, #1120 -> #1122, #1105 -> #1115, #1107 -> #1112, #1102 -> #1110; two, #1117 -> #1123 and #1105 -> #1115, already have base_is_ancestor=no). Reproducing Step 5 verbatim on a clean 2-branch stack (pr1 -> pr2) after force-moving main gives git merge-base --is-ancestor pr1 pr2 exit 1 (pr1 commits replayed with new SHAs in pr1..pr2), duplicating the parent PR's commits in the child PR's diff or conflicting against its base branch. Fix: rebase upper stack layers with git rebase --onto <rebased-parent> <old-parent-tip> <branch> (or git rebase --update-refs --onto main <merge-base with old main M> <top-branch>).
major: PRs in flight lose their head_check / pr-queue review state on Step 5's rebase, which the landing plan does not account for. fork-ci/actions/pr-queue/pr_queue.py's holds() only accepts head == reviewed_head or a 2-parent clean merge of base into reviewed_head matching git merge-tree --write-tree; a 1-parent rebase onto a rewritten main returns False. Currently 18 open PRs carry read at: lens comments (gh pr list --state open --json number,comments ...); after Step 5 every one of them will fail head_check until re-reviewed or given an owner override for head <new-sha> comment. Any un-rebased PR updated by merge after main moves shares merge-base dd941b9c3 (v0.1.12) and pulls 532 rebased fork commits against the old series.
minor: apps/server/src/serverSettings.ts (loadSettingsFromDisk) calls yield* readRawConfig twice (once in logSettingsFileRead, once in decodeSettingsFile), parsing/decoding settings.json three times at boot and opening a minor TOCTOU window if the file changes between reads; binding const raw = yield* readRawConfig; once avoids it.
minor: Because Step 4 runs action=release (not none or advance), .github/workflows/fork-follow.yml's Delete a leftover candidate branch step (if: action == 'none') will not clean up fork-follow/candidate pushed in Step 3 until a later none/rebase run or manual delete.
minor: apps/server/src/golive/forkReport.ts (readSettings) still uses { ...managed.defaults, automaticUpdates: false } on unreadable settings.json (carried from main), omitting modelPolicy: ForkPolicy.afterLoadFailure(...) and upstream's conservative fallbacks now in serverSettings.ts's decodeSettingsFile.
State question
- User database and migrations (safe): The fork adds zero migrations and zero diffs under
apps/server/src/persistence/ or packages/shared/src/databaseMigrationLog.ts (git diff 4c72563d949f..500305e14 -- apps/server/src/persistence/ is empty; node .github/scripts/fork-schema-check.cjs 4c72563d949f 500305e14 passes across 157 guarded / 961 changed files). Nothing is renumbered, dropped, or doubled beside upstream's new migrations 106–119 (all additive tables, indexes, or nullable/defaulted columns) and 075's json_valid guard. A SQLite database written by current main (89ac2e839) upgrades cleanly.
- Settings files, defaults, contracts, stored formats (safe): All fork contract schemas (
forkSettings.ts, forkDefaults.ts, modelPolicy.ts, waitFor.ts, mcpProfile.ts, handoff.ts, reviewRules.ts, placement.ts, playtest.ts, usagePacing.ts, threadRoles.ts, assistant.ts, stopFinishedChildren.ts) and fork state files (fork-held-wakes.json, lens-children.json, scheduled-task-mcp-profiles.json, run-records/runs.jsonl) are unchanged from main (89ac2e839). Upstream's settings.ts additions (htmlPreviewWidth, agentFeedback, workflowsEnabled, workflowSkippedRunsKept, UsageLimitSourceConfig widening to "cliproxy" | "http") all have decoding defaults and do not collide with fork keys; decodeSettingsFile preserves retired key renames, unusable-interval dropping, automaticUpdates: false, and fail-closed modelPolicy.
- Re-running, stopping half-way, existing state (not safe as written):
- Before
main moves: Safe — fork-follow rebases locally and fails before pushing; candidate push overwrites the stale fork-follow/candidate (7910eaab87) without touching main; --force-with-lease=main:M aborts if main moved.
- After
main moves: Not safe yet — (1) without fork-follow/synced/<candidate> pushed first, main's push run goes to the self-hosted fleet; (2) Step 4's fork-release.yml fails smoke-cli-archive.ts on missing .vite/manifest.json, leaving main moved with no publishable release until patched; (3) fork-release.sh handles half-way/rerun safety cleanly (remove-drafts + refuse_published + refuse_older), and fork-follow.yml disables upstream workflows (mobile-eas-*-build.yml are workflow_call-only; existing upstream workflows are already disabled_manually).
- PRs in flight: Pause
fork-pr-queue before Step 3 (if paused mid-update with a leftover state-file, finish_plan() fails closed and leaves that PR disarmed with a comment). Rebase stacks parent-to-child using each parent's old tip, and expect re-review or owner override for head for reviewed PRs before re-enabling the queue.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
scuttletoby
added a commit
that referenced
this pull request
Nov 27, 2026
A type-only import is erased at compile time, so it cannot change the
database schema. The check followed them on purpose, so upstream's
`import type` in databaseMigrationLog pulled contracts/src/server.ts and
everything it imports into the schema closure (142 -> 200 guarded files),
and every follow failed.
Now `import type`, `export type` and a clause whose names all carry
`type` are not followed. In `import { type A, B }` only B is followed.
`import type from "x"` and `import type , { B } from "x"` (a default
import named `type`) and `import { type as t }` (the value `type`,
renamed) are still followed. Side-effect imports are still followed.
In code without semicolons, a clause never runs into the next
statement's `import` or `export`.
Owner decision 1 of #1138 (2026-11-27).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
lens: code · reviewer: Claude Opus 5.5 · read at: 500305e
blocker: none
major: none
minor: fork-schema-check.cjs (a9ec8d8) treats import { type A } from "x" (every brace name marked type) as type-only and does not follow it. With verbatimModuleSyntax: true (tsconfig.base.json) that form is NOT erased: tsc 6.0.3 emits import {} from "x" and oxc emits import "x", so x's top-level code still runs, like a side-effect import. Only import type { A } / export type are erased. Fix: follow a clause whose names are all inline type (keep skipping import type), and correct the "erased at compile time" wording; move the typeNames.ts / typeNamesExport.ts cases in the test to the followed list.
minor: decodeSettingsFileText in apps/server/src/serverSettings.ts is now used only by tests (forkIntervals, forkSettings, claudeMcpProfile tests); the load path uses decodeSettingsFile → decodeSettingsFileSilently. PR body item 7 says forkReport uses it, but forkReport.ts uses decodeSettingsFileSilently. Those tests check a twin of the load decode (the forkIntervals service-load test does cover the real path). Either point those tests at decodeSettingsFile and drop the export, or fix the body.
minor: at boot the settings file is read twice (once for logSettingsFileRead, once for decodeSettingsFile). Already noted in the body; a write between the two reads would log one version and load the other. Harmless today, worth one read later.
What I checked
git range-diff of old main against the rebased series: 41 ! entries. Most change only context; the content changes match the body's 23 resolutions. Checked in detail: retired auto-update key renames (now in decodeSettingsFile), the server layer merges (milestone events, fork tools, MCP tool rule), the settings-load failure fallback (automaticUpdates: false, ForkPolicy.afterLoadFailure plus warnAfterLoadFailure), the held-from-boot check inside autoPullEnabledProjects, ProviderHostPathWatcher kept, the server.ts layer chain, the AcpAdapterV2 status assertion now taken from upstream, the deleted workflows, and silent decode with load logging. No lost fork behaviour, no clobbered upstream behaviour, no doubled code, no wrong imports found.
- Commit "fork: fixes for upstream …" (30eb1fd): the
flow(...) regrouping in server.ts provides the same layers in the same order as before, only in fewer pipe steps. checkMcpProfile is tapped on the session, and PullRequestRepositoryInvalidError maps to permanent. Test edits are real upstream changes, not weakening: folder links gain ?windowId=_blank (upstream buildRemoteOpenUrl adds it when !isFile, and the fork's file-link caller passes isFile: true), afterPosition starts at 0 to match upstream's remote reply read, and the facts resolver is async.
- File links: upstream's Download stays (owner-approved), the fork's remote-editor link props sit beside it, and environment file links set
onDownload: undefined and download from the named environment.
Run on this head (locally, single files)
- Server: WaitPrJudge, remoteReplyRead, serverSettings.forkIntervals, serverSettings.forkDefaults, ThreadLaunchService, McpHttpServer tests: 188 passed.
- Web: forkMarkdownFileLinkMenu, remoteOpen, forkEnvironmentFileLink tests: 59 passed. Contracts editor test: 26 passed.
node --test .github/scripts/fork-schema-check.test.cjs: 0 failed.
- Repo typecheck: 44/44 packages successful (suggestions only).
- Lint + format of the 456 changed TS/TSX files: no errors, formatting clean; one warning (
no-unmodified-loop-condition in ProjectionStore.ts) is upstream code.
- CI on this head: Secret scan green; both Fork checks runs and the schema check were cancelled, so CI has no typecheck/lint/test result for 500305e yet. A Fork checks run must finish green before main moves.
State question
- Runs again: the rebase is a fixed commit series; force-moving main twice to the same sha changes nothing. A newer upstream nightly needs a fresh rebase, not a replay of this one.
- Stops half-way: if the force-move of main fails, main stays at the old sha and nothing is half-applied. Open fork PRs based on old main will show the whole upstream jump in their diff until rebased; old main should be kept as a tag or branch to rebase from (
--onto).
- Old/empty/bad settings file: an empty or unparseable file takes the failure fallback (defaults,
automaticUpdates: false, model policy from afterLoadFailure, one warning). A file with old auto-update keys is renamed on decode. Bad intervals are dropped and logged (covered by the forkIntervals service test). readServerSettingsFromDisk uses the same decode, so the CLI and the server agree.
- Existing database: upstream migrations run as upstream ships them; I did not prove that no fork file in the schema closure changed. That is the "No database schema changes" check's job, and it was cancelled on this head, so it must finish green too.
🤖 Generated with Claude Code
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
scuttletoby
added a commit
that referenced
this pull request
Nov 27, 2026
A type-only import is erased at compile time, so it cannot change the
database schema. The check followed them on purpose, so upstream's
`import type` in databaseMigrationLog pulled contracts/src/server.ts and
everything it imports into the schema closure (142 -> 200 guarded files),
and every follow failed.
Now `import type ...` and `export type ...` are not followed. In
`import { type A, B }` only B is followed. A clause with no value name
(`import { type A }`, `export { type A } from`, `import {}`) is followed
whole, like a side-effect import: verbatimModuleSyntax keeps it as
`import {} from "x"`, which runs x. `import type from "x"` and
`import type , { B } from "x"` (a default import named `type`) and
`import { type as t }` (the value `type`, renamed) are still followed.
In code without semicolons, a clause never runs into the next
statement's `import` or `export`.
Owner decision 1 of #1138 (2026-11-27).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
scuttletoby
added a commit
that referenced
this pull request
Nov 27, 2026
A type-only import is erased at compile time, so it cannot change the
database schema. The check followed them on purpose, so upstream's
`import type` in databaseMigrationLog pulled contracts/src/server.ts and
everything it imports into the schema closure (142 -> 200 guarded files),
and every follow failed.
Now `import type ...` and `export type ...` are not followed. In
`import { type A, B }` only B is followed. A clause with no value name
(`import { type A }`, `export { type A } from`, `import {}`) is followed
whole, like a side-effect import: verbatimModuleSyntax keeps it as
`import {} from "x"`, which runs x. `import type from "x"` and
`import type , { B } from "x"` (a default import named `type`) and
`import { type as t }` (the value `type`, renamed) are still followed.
In code without semicolons, a clause never runs into the next
statement's `import` or `export`.
Owner decision 1 of #1138 (2026-11-27).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Fix round (head 90047c2db77e4db73398466720a587c96b37f76a, one new commit on top of the series)
State lens:
- blocker, web asset manifest: fixed.
fork-release.yml stages vite-manifest.release.json as release.yml does. A new test checks that every step release.yml runs between building and uploading the bundle is also in fork-release.yml; it fails on the old file.
- major, synced tag: fixed. Step 3 and
fork-follow.sh's stage report tag fork-follow/synced/<candidate> before main moves (with a test).
- major, stacks: fixed in step 5. Each stack is rebased as a stack (
--onto <rebased parent> <parent's old tip>, or --update-refs on the top branch). feat(fork): work panel part 1, CI for a thread and the repo queue line (#1136) #1142 and feat(fork): work panel part 2, the capacity bar and usage left (#1136) #1145 are added to the list.
- major, lens reads: right. A rebased head has one parent, and
holds() accepts only the read head or a 2-parent clean merge, so every lens read is lost. An override is the owner's. A new lens is no new round, because a replay has the same own change. The body lists the 6 PRs whose current review this costs, and proposes a separate fork-ci change that accepts a byte-equal 3-way replay against a fork-follow/pre-* base. That change is not made here.
- minor, leftover candidate on
release: fixed (with a test).
- minor, forkReport fallback: fixed. The report now gives an ignored file the load's whole fallback, fail-closed model policy included. The test against the server's own load compares where each feature is on, and fails on the old code.
- minor, double read: not changed, on purpose. The decode already uses one read; only the fork's warning log reads the file a second time. Reading once means changing upstream's line
decodeSettingsFile(yield* readRawConfig, managed), which is a new seam line (lost 5 → 6) that needs the owner's review. The worst case is a boot log that describes the file as it was a moment earlier.
Code lens:
import { type A } is followed (with a test), in fork schema check: stop following type-only imports and exports #1140 and in this series.
decodeSettingsFileText: the body was wrong; forkReport.ts uses parseSettingsFileText and settingsFileLegacyKeysUnreadable, not it. Body fixed. The function stays. It is the last user of upstream's decodePersistedServerSettingsExit (the fork's read replaced upstream's own use), so removing it leaves that const unused. Using it anywhere else changes listed seam lines, which is owner review again.
Checks on the head:
- seam check passes and lowers nothing;
- schema check passes (157 guarded files);
- server typecheck is clean;
- the changed files' 272 server tests pass;
fork-follow.test.sh 187 ok, release-workflow test 33 ok.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
lens: state · reviewer: Gemini 4 Neon · read at: 90047c2
blocker: node .github/scripts/fork-tests-drift.cjs exits 1 on 90047c2db, so both Phase 3's candidate gate (fork-tests.yml) and Step 4's release (fork-follow.yml -> fork-release.yml -> tests -> Workflow lint and upstream drift) will fail red, and every PR after main moves will fail CI until fixed. Upstream's ci.yml added step "Build CLI single-executable" in job build and changed step "Test release checks" in job test (adding .github/scripts/workflow-credentials.test.cjs), while .github/fork-tests-upstream.json was not updated. Note also that node --test .github/scripts/workflow-credentials.test.cjs fails on this head (ENOENT on .github/workflows/mobile-eas-preview-fork.yml, which .github/fork-removed-workflows.txt deletes), so blindly adding it to fork-tests.yml breaks test shard 1. Fix: port "Build CLI single-executable" into .github/workflows/fork-tests.yml (or explicitly decline it), skip/adapt workflow-credentials.test.cjs with the reason, and record .github/fork-tests-upstream.json with node .github/scripts/fork-tests-drift.cjs --record. (Windows drift check --windows passes.)
major: Step 3's candidate test command (gh workflow run fork-tests.yml --ref fork-follow/candidate) fails twice: .github/workflows/fork-tests.yml requires workflow_dispatch.inputs.ref (required: true), so omitting -f ref=fork-follow/candidate fails dispatch; and even with -f ref=fork-follow/candidate, running fork-tests.yml on --ref fork-follow/candidate instead of main makes fork_checks_ran exit 1 (reproduced locally with .github/scripts/fork-checks-ran.py: a workflow_dispatch run of .github/workflows/fork-tests.yml on refs/heads/fork-follow/candidate puts its fork-ci-result on that commit ... dispatch fork-tests.yml on main with ref=<branch>), failing fork-ci-result. Fix: use gh workflow run fork-tests.yml --ref main -f ref=fork-follow/candidate.
minor: Step 2's cherry-pick cutoff (106c78ffdb) and Step 5's stack list are stale: 90047c2db already includes #1079 (89ac2e839), 7 newer PRs have merged to main (89ac2e839..9a7a45864d), #1102 is already merged (#1110 now targets main), and #1139 is the base of #1139 -> #1142 -> #1145. Cherry-picking 89ac2e839..9a7a45864d onto 90047c2db applies cleanly and passes both fork-schema-check.cjs and fork-seam-check.cjs.
minor: Step 5's rebase commands have two state hazards: (1) re-running git rebase --onto main <merge-base with M> <branch> on a branch already rebased onto new main computes merge-base dd941b9c3 (v0.1.12) and tries to replay ~2,038 commits (the whole upstream jump + fork series); guard each branch with git merge-base --is-ancestor main <branch> && continue; (2) git rebase --update-refs --onto main <merge-base with M> <top branch> leaves non-ancestor parents unmoved on diverged stacks (#1117 -> #1123 and #1105 -> #1115 currently have parent_is_ancestor=no, 2 commits diverged), duplicating old parent commits in the child—rebase those parent-first, then child onto rebased parent.
minor: Step 3 writes git push origin <candidate>:refs/tags/fork-follow/synced/<candidate> without stating that <candidate> must be the full 40-character lowercase commit SHA. fork-fleet.py's made_by_the_sync() checks only refs/tags/fork-follow/synced/<40-hex>; pushing a branch name or short SHA succeeds in git but leaves made_by_the_sync() returning None (routing main's push run onto the self-hosted fleet).
minor: Upstream has already tagged v0.1.14-nightly.20261127.5359 past this branch's 5345 base, so Step 4 (gh workflow run fork-follow.yml) will plan rebase onto .5359 rather than release of .5345 (rebased cleanly locally: 533/533 commits, 0 conflicts). Note that if a future Step 4 rebase failed during plan before fork-follow.sh writes own_workflows, neither sweep_plan nor report's sweep runs; here all existing upstream workflows are already disabled_manually and the two new ones (mobile-eas-preview-build.yml, mobile-eas-production-build.yml) are workflow_call-only.
Round 1 verification (500305e14..90047c2db)
- round 1, fixed:
.github/workflows/fork-release.yml adds Stage web asset manifest before Upload JS bundle (matching release.yml), and .github/scripts/fork-release-workflow.test.py checks every step between Build JS bundle and Upload JS bundle (passes 33 ok on 90047c2db, fails on 500305e14).
- round 1, fixed:
.github/scripts/fork-follow.sh (stage_report) and PR Step 3 push refs/tags/fork-follow/synced/<sha> before moving main, covered by .github/scripts/fork-follow.test.sh.
- round 1, fixed: Step 5 updated to rebase stacks parent-to-child (see minor above for stale entries and diverged stacks).
- round 1, fixed: PR body documents the lens-read invalidation on rebased PRs and the 6 affected PRs.
- round 1, fixed:
.github/workflows/fork-follow.yml runs fork-follow-push.sh cleanup on action == 'none' || action == 'release', safely deleting a leftover fork-follow/candidate (and no-oping if absent) without affecting release, which checks out main's SHA.
- round 1, fixed:
apps/server/src/golive/forkReport.ts matches serverSettings.ts's decodeSettingsFile fallback (including fail-closed afterLoadFailure), with expanded assertions and a legacy-keys case in forkReport.test.ts.
- round 1, fixed (code lens):
.github/scripts/fork-schema-check.cjs follows import { type A }, stops clauses at import/export in semicolon-free code, and handles import type , { B } (53/53 tests pass; fork-schema-check.cjs 4c72563d949f HEAD passes on 157 guarded / 961 changed files).
- round 1, kept: double
readRawConfig in serverSettings.ts intentionally left unchanged to avoid adding a seam line.
State question (Phase 3 main move)
- Runs again: Re-running Step 3 after
main already moved is safe on the git refs: fork-follow/pre-* and fork-follow/synced/<40-sha> tag pushes to the same commits are no-ops, and --force-with-lease=main:M refuses to move main again. Re-running Step 4 (fork-follow.yml) is safe (none once released, or release/rebase cleanly). Re-running Step 5 without skipping branches already descending from new main is not idempotent (see minor above: merge-base with old M falls back to v0.1.12 and replays ~2,038 commits).
- Stops half-way:
- After candidate push, before tags/
main: Safe — main is untouched; next candidate push overwrites fork-follow/candidate.
- After
pre-* and/or synced/<40-sha> tags, before main push: Safe — tags are inert until main points to <candidate>; re-running finishes cleanly.
- After
main push, before tags (wrong order): Unsafe for fleet isolation — main's push triggers fork-tests.yml immediately, so tagging synced/<40-sha> after the push is too late for the first attempt; keep Step 3's tag-before-main order strictly.
- After
main push, before Step 4 or Step 5: main sits at <candidate> with both tags and the queue paused, but on 90047c2db Step 4's release will fail on the upstream drift blocker above until fixed. Leaving the queue paused until Step 5 finishes prevents bad 2-parent merges across the v0.1.12 -> v0.1.14 rewrite.
- Meets existing, old, or empty state:
- PRs merged to
main meanwhile: --force-with-lease=main:M refuses the move if main advanced past M. Seven PRs (89ac2e839..9a7a45864d) have already landed and cherry-pick cleanly onto 90047c2db with schema and seam checks green.
- Leftover
fork-follow/candidate branch: Currently at 7910eaab87; Step 3 force-pushes over it, and Step 4 (action == 'none' || action == 'release', or advance) deletes it via fork-follow-push.sh cleanup (no-op if already absent).
- Empty stack list: Safe — Step 5 rebases every
main-based PR directly onto main with no stack ordering step needed.
🤖 Generated with Claude Code
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Main holds this series now. Main moved to 9921016f1d9dc50f0c7eb242c32cd8a2f75a2e8d: this branch's head 5ff57f798 plus the 17 commits main had gained since the series began, after a fully green fork-tests run on that candidate (https://github.com/scuttletoby/t3code/actions/runs/46084922290). GitHub marked this pull request merged by itself, because main now contains its head. The old main is kept as the tag fork-follow/pre-v0.1.14-nightly.20261127.5345-f3ed74c75979.
🤖 Generated with Claude Code
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
scuttletoby
added a commit
that referenced
this pull request
Nov 28, 2026
A type-only import is erased at compile time, so it cannot change the
database schema. The check followed them on purpose, so upstream's
`import type` in databaseMigrationLog pulled contracts/src/server.ts and
everything it imports into the schema closure (142 -> 200 guarded files),
and every follow failed.
Now `import type ...` and `export type ...` are not followed. In
`import { type A, B }` only B is followed. A clause with no value name
(`import { type A }`, `export { type A } from`, `import {}`) is followed
whole, like a side-effect import: verbatimModuleSyntax keeps it as
`import {} from "x"`, which runs x. `import type from "x"` and
`import type , { B } from "x"` (a default import named `type`) and
`import { type as t }` (the value `type`, renamed) are still followed.
In code without semicolons, a clause never runs into the next
statement's `import` or `export`.
Owner decision 1 of #1138 (2026-11-27).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|