Skip to content

chore(fork): absorb upstream through cbdf35f2f0 (DO NOT MERGE) - #710

Closed
lukemaj wants to merge 61 commits into
proof-base/709from
candidate/709
Closed

lukemaj wants to merge 61 commits into
proof-base/709from
candidate/709

Conversation

@lukemaj

@lukemaj lukemaj commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What: DO NOT MERGE. Proof PR for absorbing upstream pingdotgg/t3code through cbdf35f2f0 (420 commits) into the Chromeria fork stack, for #709; head is consolidated candidate C.
Why: Daily absorption keeps the fork current; this PR runs exact-head CI on C with upstream's native ancestry (base proof-base/709 = T).
So what: The coordinator adds the agent-context-increase label (growth is upstream's own plus 133 bytes of merged tool text), runs exact-head reviews, and does the guarded landing. Merging or squashing this PR would discard upstream history.

Identities

SHA
B (absorbed upstream) 70b052904b1010e2046cb151e090973e759893dc
T (target, base proof-base/709) cbdf35f2f0bcee887abc7736236293a67658a45e
S0 (live main at freeze; unchanged since) 6477a380f9906c920ab594b5a72ef91a012c3fd2
S (integrated source, branch integration/709) 5fe1fe3097f4823d1ecc9cdab54a788915b681f2
C (candidate, branch candidate/709, this head) 545bec4e9922f4bcaba00b2d5d7099a089017cb1

Proof on C

Overlap decisions

Original report and per-row decisions are on #709 (report parts 1-6, decisions parts 1-4). 1392 rows: 213 keyword-only (keep ours, upstream verbatim); 1031 path rows where every surviving upstream line survives in S (merge both); 148 rows (42 commit/file pairs) adjudicated by hand. Decisions worth review:

  • MCP wait budgets (upstream #15622): keep ours. delegate_task waits keep the fork's 4 min default, other waits 10 min, max 60 min, forwarded waits in 50 s chunks. Upstream's completionWake on timeout and its separate secret-request constants are kept. Flag: upstream shortened waits for MCP client timeouts.
  • Grok steering (upstream #36422): keep ours for explicit Steer and urgent restart. Grok keeps interrupt-restart; routine auto follow-ups already queue, so upstream's regression test covers auto. Upstream-deleted message_steering/grok_transcript.ndjson restored for fork tests (registered under urgent-steering-interruption).
  • First message on thread.create (upstream #36682/#35710): merge both. Adopted in create_threads and t3_thread_launch unless a fork execution purpose is set, which still dispatches the first message separately. Fork replay and attachment-claim checks accept a claim that carried its message.
  • Webhook URLs (upstream #27716): adopt upstream. Lists and updates never return a URL; fork tests take it from creation or assert task identity.
  • Follow-ups (upstream #36411): keep ours. Fork follow-ups rerun the original task; upstream's hold on awaited background work is honored; held-run fallback added for idle sync.
  • Turn start (upstream #14424, #34639): merge both. Both failStartingRun (upstream) and settleUnstartedRun (fork) exist; authority denials fail before execution; a failed cut-in's held root is not interrupted again; urgent replacement whose Stop times out still fails with "Message not delivered".
  • T3 Connect discovery (upstream #29788): merge both. Upstream's registration check replaces the fork's unconditional refresh and also runs on application-active-probe.
  • Preview desktop unload (upstream ed101ef): merge both. Tests open desktop tabs as a person because fork agent tabs are server pages; the agent variant is dropped (the fork forbids that state).
  • add/add test files: upstream CloudEnvironmentConnectList.browser.test.tsx and IntegrationsSettings.browser.test.tsx kept; fork tests moved to .routes. and .mirror. siblings (registry updated). Upstream WSL connect-list fixture uses an addable tunnel link (registered carried edit).

Not carried / notes

  • Agent context budget: mcpToolListJsonBytes 252171 → 253528 (+1357; upstream's own tool-list growth B→T is +1224). Needs the agent-context-increase label.
  • Evals: skipped by user decision (lukemaj/promachos#42).

browser doc: no user-visible change

Elon record

  • Requirements and who asked: chore(fork): absorb upstream through cbdf35f2f0 on 14 November #709 coordinator brief (user's standing daily absorption authority): replay S0's stack onto T preserving every fork behavior, consolidate to one commit per owner, prove on exact C.
  • Deleted: scoped model evals (lukemaj/promachos#42); local repo-wide sweeps (CI shards ran the suites).
  • Bottleneck: semantic conflict resolution in orchestration, adapters, preview and peer files, then exact-head CI.
  • Checked myself: identities via git merge-base/rev-list, per-file 3-way merge counts, consolidation and fork-check exit codes on C, CI job logs for every failure fixed.

Refs #709

🤖 Generated with Claude Code

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XXL labels Nov 14, 2026
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

This PR changes the test suite by +2540 test cases (browser +46, unit +666, server +1828).

New browser test files: apps/mobile/src/features/browser/preview-stream.browser.test.ts, apps/web/src/components/ScheduledCommandNotifications.browser.test.tsx, apps/web/src/components/chat/RemotePendingRequest.browser.test.tsx, apps/web/src/components/chat/ThreadRelationshipsControl.agents.browser.test.tsx, apps/web/src/components/chat/V2LifecycleRow.remote.browser.test.tsx, apps/web/src/components/cloud/CloudEnvironmentConnectList.routes.browser.test.tsx, apps/web/src/components/device/DeviceDiscovery.browser.test.tsx, apps/web/src/components/device/deviceStreamSession.browser.test.ts, apps/web/src/components/featureMap/featureMap.mermaid.browser.test.tsx, apps/web/src/components/settings/ColorPicker.browser.test.tsx, apps/web/src/components/settings/ForkPageHeadings.browser.test.tsx, apps/web/src/components/settings/ForkSearchResultMarks.browser.test.tsx, apps/web/src/components/settings/IntegrationsSettings.mirror.browser.test.tsx, apps/web/src/components/settings/PrismSettings.list.browser.test.tsx, apps/web/src/components/settings/SpectrumSettings.browser.test.tsx, apps/web/src/components/ui/menu.focus.browser.test.tsx, apps/web/src/state/previewStream.browser.test.tsx.
Each browser test file costs CI seconds of module loading before its first test runs; a unit test costs milliseconds.

Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing.

@github-actions github-actions Bot added the 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. label Nov 14, 2026
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

ℹ️ No successful main baseline artifact is available yet. This run establishes the initial measurement.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire — 5.0 KiB — 6.8 KiB ✅
Codex Thread snapshot wire — 3.8 KiB — 4.9 KiB ✅
Codex Live turn WebSocket wire — 1.2 KiB — 2.0 KiB ✅
Codex Live turn WebSocket decoded — 21.5 KiB — 24.4 KiB ✅
Codex Live turn messages — 1 — 8 ✅
Claude Total thread wire — 5.0 KiB — 6.8 KiB ✅
Claude Thread snapshot wire — 3.8 KiB — 4.9 KiB ✅
Claude Live turn WebSocket wire — 1.2 KiB — 2.0 KiB ✅
Claude Live turn WebSocket decoded — 21.9 KiB — 24.4 KiB ✅
Claude Live turn messages — 1 — 8 ✅

Other scenarios

No main baseline exists yet for these 64 scenario measurements.

All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded — 10.5 KiB — 12.7 KiB ✅
Codex short turn resume WebSocket messages — 2 — 2 ✅
Codex long turn running, cold open HTTP decoded — 281.7 KiB — 302.7 KiB ✅
Codex long turn running, cold open rows — 75 — 75 ✅
Codex long turn running, history page HTTP decoded — 92.4 KiB — 107.4 KiB ✅
Codex long turn running, history page rows — 75 — 75 ✅
Codex long turn finished, cold open HTTP decoded — 381.5 KiB — 410.2 KiB ✅
Codex long turn finished, cold open rows — 151 — 151 ✅
Codex long turn finished, socket cold open WebSocket decoded — 381.6 KiB — 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages — 2 — 2 ✅
Codex long turn finished, socket cold open rows — 151 — 151 ✅
Codex long turn finished, work page HTTP decoded — 186.2 KiB — 200.2 KiB ✅
Codex long turn finished, work page rows — 150 — 150 ✅
Codex idle thread resume WebSocket decoded — 65 B — 200 B ✅
Codex idle thread resume WebSocket messages — 1 — 1 ✅
Codex fleet shell snapshot HTTP decoded — 45.8 KiB — 53.7 KiB ✅
Codex fleet shell snapshot rows — 27 — 27 ✅
Codex fleet shell subscribe WebSocket decoded — 65 B — 200 B ✅
Codex fleet shell subscribe WebSocket messages — 1 — 1 ✅
Codex fleet shell resume check HTTP decoded — 18 B — 100 B ✅
Codex fleet shell resume check rows — 0 — 0 ✅
Codex stale shell reload HTTP decoded — 45.8 KiB — 53.7 KiB ✅
Codex stale shell reload rows — 27 — 27 ✅
Codex stale shell resume WebSocket decoded — 140 B — 400 B ✅
Codex stale shell resume WebSocket messages — 2 — 2 ✅
Codex stale todo list cold open HTTP decoded — 72.4 KiB — 83.0 KiB ✅
Codex stale todo list cold open rows — 75 — 75 ✅
Codex stale todo list cold open nodes — 2 — 4 ✅
Codex stale todo list cold open subagents — 2 — 4 ✅
Codex stale todo list cold open plans — 1 — 2 ✅
Codex stale todo list cold open providerTurns — 1 — 2 ✅
Codex stale todo list cold open checkpoints — 1 — 2 ✅
Claude short turn resume WebSocket decoded — 10.6 KiB — 12.7 KiB ✅
Claude short turn resume WebSocket messages — 2 — 2 ✅
Claude long turn running, cold open HTTP decoded — 283.3 KiB — 302.7 KiB ✅
Claude long turn running, cold open rows — 75 — 75 ✅
Claude long turn running, history page HTTP decoded — 93.4 KiB — 107.4 KiB ✅
Claude long turn running, history page rows — 75 — 75 ✅
Claude long turn finished, cold open HTTP decoded — 384.2 KiB — 410.2 KiB ✅
Claude long turn finished, cold open rows — 151 — 151 ✅
Claude long turn finished, socket cold open WebSocket decoded — 384.3 KiB — 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages — 2 — 2 ✅
Claude long turn finished, socket cold open rows — 151 — 151 ✅
Claude long turn finished, work page HTTP decoded — 188.1 KiB — 200.2 KiB ✅
Claude long turn finished, work page rows — 150 — 150 ✅
Claude idle thread resume WebSocket decoded — 66 B — 200 B ✅
Claude idle thread resume WebSocket messages — 1 — 1 ✅
Claude fleet shell snapshot HTTP decoded — 46.4 KiB — 53.7 KiB ✅
Claude fleet shell snapshot rows — 27 — 27 ✅
Claude fleet shell subscribe WebSocket decoded — 66 B — 200 B ✅
Claude fleet shell subscribe WebSocket messages — 1 — 1 ✅
Claude fleet shell resume check HTTP decoded — 18 B — 100 B ✅
Claude fleet shell resume check rows — 0 — 0 ✅
Claude stale shell reload HTTP decoded — 46.4 KiB — 53.7 KiB ✅
Claude stale shell reload rows — 27 — 27 ✅
Claude stale shell resume WebSocket decoded — 140 B — 400 B ✅
Claude stale shell resume WebSocket messages — 2 — 2 ✅
Claude stale todo list cold open HTTP decoded — 73.4 KiB — 83.0 KiB ✅
Claude stale todo list cold open rows — 75 — 75 ✅
Claude stale todo list cold open nodes — 2 — 4 ✅
Claude stale todo list cold open subagents — 2 — 4 ✅
Claude stale todo list cold open plans — 1 — 2 ✅
Claude stale todo list cold open providerTurns — 1 — 2 ✅
Claude stale todo list cold open checkpoints — 1 — 2 ✅

Baseline: unavailable · PR result: 545bec4 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

Fork-owner: direction
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: glossary
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: data-foundation
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: branding
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: query-interrupt-retry
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: partial-clone-remotes
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: macos-temp-realpath-tests
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: secret-store-atomic-create
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: launcher-test-fixtures
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: legacy-terminal-labels
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: login-shell-capture
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: grok-reasoning-effort
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: grok-background-command-end
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: provider-auto-update
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: bounded-stored-event-replay
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: settings-mark
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: thread-people
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: issues-browse
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: issues-links
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: issues-status
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: issues-open-links
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: no-project-sidebar
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: rejected-connect-link
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: paired-session-renewal
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: network-routes
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: thread-tool-policy
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: thread-parent-crumbs
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: feature-map
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: menu-escape-focus
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: preview-chrome-identity
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: chrome-login-mirror
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: usable-secret-requests
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: outside-agent-oauth-grants
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: preview-credential-fill
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: preview-chrome-for-testing
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: agent-web-research
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: remote-secret-requests
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: preview-tab-settlement
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: page-subscriptions
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: tool-instructions
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: stacked-merge-worktree-cleanup
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: project-restore-guard
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
Fork-owner: fork-maintenance
Fork-source: 5fe1fe3
Fork-base: cbdf35f
Fork-registry: 5fe1fe3
@lukemaj lukemaj added the agent-context-increase Maintainer-approved agent context budget increase label Nov 15, 2026
@lukemaj

lukemaj commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

Review (web/desktop) of 545bec4

Verdict: PASS. No blocking findings in apps/web or apps/desktop. Every fork hunk from B..S0 is still in T..C, and the few that differ only follow upstream renames.

Method

  • git diff --name-status B S0 and T C over apps/web apps/desktop: same file set (304 vs 305). The only differences are the two flagged add/add test moves.
  • For each fork-touched file, I compared the sorted +/- line multiset of git diff B S0 with git diff T C. 296 files are identical. The 8 that differ were read in full:
    • apps/web/src/state/entities.ts:437: the fork's remote-relationship shells now read upstream's quietThreadAtom (renamed from threadAtom) and keep upstream's quietThreadShellAtom mapping for local shells. Remote subagent shells are still appended with cached identity. ThreadStructure still carries subagents, so remote children still resolve.
    • entities.remoteRelationships.test.ts and ThreadRelationshipsControl.agents.browser.test.tsx: the mocks follow the same rename (quietThreadAtom, quietThreadShellAtom, useQuietThreadProjection).
    • state/issues.ts and issues/useIssueRowThreads.ts: error is now query.error?.message ?? null, adapting to upstream's query error type. The behavior is unchanged.
    • cloud/CloudEnvironmentConnectList.tsx:204: merge both. The fork's isAddableRelayEnvironment gate and upstream's !desktopLocalIds.has(...) WSL exclusion both apply.
  • Desktop identity: md.toolbox.chromeria appears in the same 5 files in S0 and C (scripts/build-desktop-artifact.ts:68). apps/desktop fork hunks are unchanged, including the Chrome identity wiring in apps/desktop/src/preview/Manager.ts on top of upstream's reworked attach path.

Flagged decisions

  • Preview desktop unload (ed101ef): sound. Upstream's registerBeforeClose and unload in apps/server/src/preview/{Manager,ServerBrowser}.ts are present. The fork delta in those files differs from S0 only by reindentation around upstream's new blocks. closePreviewSession.ts is upstream verbatim, since the fork never touched it. In ServerBrowser.test.ts the desktop tab is opened by a person, and the agent variant is dropped. That is consistent with the fork rule that agent tabs are server pages, so the dropped case is unreachable in the fork, not lost coverage.
  • add/add test moves: IntegrationsSettings.mirror.browser.test.tsx is byte-identical to S0's IntegrationsSettings.browser.test.tsx. CloudEnvironmentConnectList.routes.browser.test.tsx equals S0's fork file plus an entry: { target: new BearerConnectionTarget(...) } on the saved fixture, which upstream's saved-environment shape needs. Both siblings are registered in docs/fork-features.md (lines 2668 and 3117).
  • WSL connect-list fixture: sound. In upstream's CloudEnvironmentConnectList.browser.test.tsx:45 the fixture moves from t3_relay to cloudflare_tunnel. With the fork's addable gate, a t3_relay row is hidden whatever its WSL status, so the upstream assertion would pass vacuously. The tunnel fixture makes it exercise the desktopLocalIds exclusion.
  • Manifest naming (fix(web): installed web app manifest names itself Chromeria #662): preserved. apps/web/public/manifest.webmanifest names Chromeria. Upstream's index.html change, a theme storage key, does not touch naming, and <title>Chromeria</title> stays.
  • Prism Colors (fix(web): Prism Colors save on pick; drop capacity and jobs sections #543): ColorList.tsx, ColorPicker.tsx, PrismSettings.tsx, settingsSearch.ts and the tests have a fork delta identical to S0. Upstream's new connect-device-approval search entry sits alongside the removed Prism capacity and jobs entries without conflict.

Browser guide line: true for this area. The fork resolutions in preview and browser code are reindentation, renames and test-fixture changes. The only behavior change is upstream's own desktop-unload fix, which the fork guide does not describe.

Findings

  • None blocking.
  • Non-blocking: I ran no tests locally and relied on green exact-head CI on C for the browser and unit suites.

@lukemaj

lukemaj commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

Review (mobile/shared/stack) of 545bec4

Verdict: PASS. No blocking or non-blocking defects found in scope (apps/mobile, packages/client-runtime, packages/shared, scripts/fork-*, docs, .github, stack model).

Stack model on exact C 545bec4e9922f4bcaba00b2d5d7099a089017cb1

Fork behavior preserved (mobile and shared)

Line-level interdiff of git diff B S0 vs git diff T C over the area paths: same 228 files plus the one new carried test edit; only 7 files differ, all correct resolutions:

  • apps/mobile/src/features/settings/SettingsScheduledTasksRouteScreen.tsx: purpose onChange now uses an updater setDraft((current) => …), matching upstream's switch to functional draft updates.
  • SettingsScheduledTasksRouteScreen.test.tsx: mocks ExecutionPurposePicker/spectrumReportAction and sets an unscoped purpose so upstream's new save path passes the fork's purpose gate. (Mocked module lands in a later owner commit; allowed, docs/fork.md:46.)
  • packages/client-runtime/src/relay/discovery.ts: fork relist on application-active-probe kept on top of upstream's shouldRelistAccountAfterWakeup (active, active-long, focused) via requestRegistrationCheck, matching the chore(fork): absorb upstream through cbdf35f2f0 on 14 November #709 "merge both" decision; listedSession change carried in both diffs. Tests adapted.
  • client-runtime/src/device/screenshot.test.ts: fixture grows to a complete PNG for upstream's stricter check. connection/supervisor.test.ts: drops an import upstream no longer needs.
  • docs/fork-features.md, scripts/fork-upstream-edits.txt: registry rows above only.
  • No upstream B→T line is removed by C in these paths (no new - lines in the interdiff). CI workflows (.github) fork hunks identical.

Native change

C's native delta vs T is only apps/mobile/app.config.ts, chromeria.ts, chromeria.test.ts, vite.config.ts; chromeria.ts/chromeria.test.ts byte-identical to S0, app.config.ts hunk identical to S0's (Chromeria identity via resolveChromeriaMobileIdentity over the production variant). The Native Change label comes from upstream B→T (composer editor Swift, libghostty-vt .so, enriched-markdown tgz), not fork edits.

Versions

git diff T C -- '**/package.json' package.json: 7 package.json files touched, no "version" line changed.

Focused proof (checkout of C, pnpm 12.14.0 frozen install)

  • apps/mobile: vp test run chromeria.test.ts src/features/settings/SettingsScheduledTasksRouteScreen.test.tsx src/features/threads: 46 files, 372 tests passed.
  • packages/client-runtime: vp test run src/relay/discovery.test.ts src/device/screenshot.test.ts src/connection/supervisor.test.ts src/state/runtime.test.ts: 4 files, 151 tests passed.

Not checked: device run of the mobile app; server/web areas beyond the #655 carry check (other reviewers).

@lukemaj

lukemaj commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

Review (server/provider) of 545bec4

Verdict: PASS. I found no blocking defect in the server and provider area. One flagged overlap decision rests on a wrong premise and needs a user decision; it does not regress live main.

Scope: apps/server, packages/contracts, packages/provider-*, packages/effect-*, packages/shared, exact head 545bec4e9922f4bcaba00b2d5d7099a089017cb1.

Method

  • Dropped fork lines: for every file in git diff B S0 in scope, I listed the fork-added lines that do not appear verbatim in C. 31 files had such lines, and I read each one against C. Every case is a rename or refactor onto upstream's shape, or a deliberate overlap decision. Examples: settleBeforeStart became settleRunBeforeStart, shared by failStartingRun and settleUnstartedRun. Receipt checks moved into AttachmentStaging.consumerAccepted. settlementAwaitsSubagents became settlementAwaitsWork. Fork preview authorize is still threaded through ServerBrowserPage.
  • Reverted upstream lines: I ran the same scan on git diff B T. 27 files had upstream-added lines missing from C. Every missing hunk maps to a chore(fork): absorb upstream through cbdf35f2f0 on 14 November #709 decision: wait budgets, Grok, follow-up wake re-tag, attachment uploadUrl text. Otherwise upstream's behavior is present in the fork's shape. For example, OpenCode #24701 and #36523 admission and launch tracking are present, and Stop during an active turn is covered by the run-level subagent cascade in RunExecutionService. EffectWorker startRun, failStartingRun, cannotSettleRun, Prism canRouteRelatedSubagent(status, origin) and RemoteDelegation.runStatus are all present.
  • I ran no tests locally because the worktree has no install. I relied on exact-head CI on C: 24 checks pass, and review/independent is pending this review.

Flagged decisions

  • MCP wait budgets (#15622): sound as a keep-ours. C has delegate wait 4 min, other waits 10 min, max 60 min, and forwarded waits in FORWARDED_WAIT_CHUNK_MS = 50_000 (apps/server/src/mcp/OrchestratorMcpService.ts:190-195, apps/server/src/peer/PeerForwarding.ts:72-76). Upstream's completionWake: "always" on timeout and its separate secret constants are kept (:2052, :2376, :3361). These values match B and S0, so nothing regresses.
  • Grok steering (#36422): see finding 1.
  • First message on thread.create (#36682/#35710): sound. threadCreateInitialMessage runs the same dispatchMessage as message.dispatch (apps/server/src/orchestration-v2/Orchestrator.ts:922-940, :17090). The fork's purpose path still dispatches separately (apps/server/src/mcp/OrchestratorMcpService.ts:4174, apps/server/src/orchestration-v2/ThreadLaunchService.ts:1611-1616). Replay accepts a carried message only when the run exists (ThreadLaunchService.ts:466-469). Attachment ownership falls back to the thread.create receipt plus a message carrying the claimed id (apps/server/src/assets/AttachmentStaging.ts:58-88). launchThread still claims attachments before launch. A client thread.create cannot inject initialMessage because ThreadManagementService.ts:99-104 strips it.
  • Webhook URLs (#27716): sound. The contract and the schedule_task text say only creation returns the URL. Settings still copies existing URLs (ScheduledTasksSettings.tsx).
  • Follow-ups (#36411): sound. Upstream's delegatedTaskAwaitsWork (background work) replaces the fork's subagent-only check at every site. Upstream's wake re-tag onto the latest follow-up is deliberately left out. The held-run fallback (Orchestrator.ts:16795-16800) only syncs idle/pending when a run is not terminal (:16330-16341), so it cannot settle a task early.
  • Turn start (#14424, #34639): sound. Both settle paths exist and share settleRunBeforeStart guarded by writeIfRunCurrent(expectedStatus: "starting") (apps/server/src/orchestration-v2/ProviderTurnStartService.ts:354-440). Bare mixed-history refusal now reports through run execution, and its test was adapted (ProviderTurnStartService.bare.test.ts:636-645).
  • T3 Connect discovery (#29788): this is client-runtime only and outside this area. I did not review it.

Agent context budget

Confirmed. mcpToolListJsonBytes went from 252171 to 253528 (+1357). Upstream's own growth B to T is 48566 to 49790 (+1224), which leaves 133 bytes from fork merges. Those come from three edited descriptions: schedule_task merged with upstream's webhook text, t3_attachment_prepare_upload merging uploadUrl with the fork's uploadOrigin, and the background-wait text. All three are small merged descriptions; no tool was added.

Findings

  1. apps/server/src/orchestration-v2/CommandPolicy.test.ts:385-386 with packages/provider-grok/src/server/adapter.ts:111 (non-blocking, decision needed).
    • Defect: the PR body says "routine auto follow-ups already queue, so upstream's regression test covers auto." That is true only for agent sends. A human's plain Enter while a turn runs sends deliveryIntent: "steer" by default: followUpBehavior defaults to "steer" (packages/contracts/src/settings.ts:535-537), and resolveComposerDispatchMode returns it (packages/client-runtime/src/state/composerDispatch.ts:13-15). Grok inherits supportsSteeringByInterruptRestart: true (packages/provider-acp/src/server/adapter.ts:779), so resolveMessageDispatchIntent keeps steer_active.
    • Failure scenario: a Grok turn is running a foreground tool, for example a test run. The user types a follow-up and presses Enter. T3 interrupt-restarts the turn and the tool is killed. That is upstream #27014, which #36422 fixed by covering both auto and steer; the fork test drops steer.
    • Severity: this matches S0's behavior, so it is not a regression. The overlap decision is based on a wrong premise, though. The user should choose between keeping interrupt-restart for every human Steer on Grok, or adopting upstream's flag and keeping restart only for urgent restart. Either way, the chore(fork): absorb upstream through cbdf35f2f0 on 14 November #709 decision text should be corrected.

No other findings. Unchecked: client-runtime T3 Connect discovery, and model evals (skipped per lukemaj/promachos#42).

Reviewed with Claude Opus 5.5 (Claude Code), read-only.

@lukemaj

lukemaj commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

Landed via the guarded path as live main 545bec4e99 (see #709); closing the DO NOT MERGE proof PR.

@lukemaj lukemaj closed this Nov 15, 2026
@lukemaj
lukemaj deleted the candidate/709 branch November 15, 2026 02:15
@lukemaj

lukemaj commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

Agent work on this PR

Estimated cost $98.06 · 1,467 responses · 19 sessions · 4.8 h wall time (whole sessions)

Model Responses Tokens Estimated cost
claude-opus-5-5 (claude, medium) 1,467 302,799,284 $98.06

Flags: 2 large tool outputs · 4 repeated commands

Coverage notes (window 14 Nov 23:25 to 15 Nov 04:16 Warsaw)

Details: snapshot, prices, coverage, counters
  • Task toolboxmd/chromeria#710: outcome unknown (recorded acceptance only; a finished process never implies it).
  • Proof: chore(fork): absorb upstream through cbdf35f2f0 (DO NOT MERGE) #710
  • Snapshot ade5246225bb45370c03acaa6eaa1dfaa616ed367195e7ea4c45cdf6246d1e2c, records up to 2026-11-15 03:16 UTC.
  • 19 sessions on claude; AgentsMD 17.4.6.
  • Totals reconcile with the measured sessions: yes. Evidence complete: yes.
  • Prices: list-price estimate from T3 local rate table (path withheld) as of 2026-11-08, schedule 41ee98103a7e65eabaf3a4bf10d10256c167880d7f9bbfbb8aa5f81e64a128ea. Unknown prices stay unknown, never zero.
    • T3 LiteLLM rate table when present; bundled schedule covers the rest.
    • Model price sources: T3 local rate table (path withheld).
  • Harness-reported cost: none reported.
  • Usage totals are not billing. Subscription spending is separate and is never posted as spend.
  • Crashed runs are counted separately: 0.

Token counters by model (native counter semantics; never added across semantics):

  • claude-opus-5-5 (claude, medium), claude counters: input excludes cache, output includes thinking: input 2,956; cache-read 299,110,980; cache-write 2,956,542; output 728,806; reasoning 203,518; harness total 302,799,284.

Generated tokens (reasoning and other output are disjoint; other output includes code, tool calls and replies):

Model Reasoning Other output Reasoning share Split known for
claude-opus-5-5 (claude, medium) 203,518 525,288 27.9% 1,467 of 1,467

Usage by work phase (this task's own responses):

Phase Model Responses Input Cache read Cache write Output Reasoning Total Priced part
unclassified claude-opus-5-5 (claude, medium) 1467 2,956 299,110,980 2,956,542 728,806 203,518 302,799,284 $98.062476

Recorded activity by phase (observations, not separate token bills):

Phase Tool calls MCP results Reads Skill invocations File changes Failed tool results
unclassified 1471 0 7 2 5 33

Selected rates (USD per million tokens). These rates value the report at the selected schedule date; they do not establish historical prices or subscription spending.

Model Input tier Input Cache read Cache write Other output Reasoning
claude-opus-5-5 all 4 0.2 5m: 5; 1h: 8 20 20

Other output and reasoning are priced without double counting inclusive native output. Missing rates remain unknown.

Local measurement from native records; usage totals are not billing. Updated in place by agent-observer publish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-context-increase Maintainer-approved agent context budget increase 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. size:XXL vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant