Skip to content

feat(scient-agent): accept any Scient Agent release that speaks our RPC - #1105

Merged
yaacovcorcos merged 4 commits into
mainfrom
claude/scient-agent-any-upstream-20261124
Nov 24, 2026
Merged

yaacovcorcos merged 4 commits into
mainfrom
claude/scient-agent-any-upstream-20261124

Conversation

@yaacovcorcos

@yaacovcorcos yaacovcorcos commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What Changed

  • Scient Agent is judged by what it speaks, not by version numbers.
    • ScientAgentTarget accepts any Scient Agent 0.1.0 or newer, on Oh My Pi 18.2.8 or newer, that offers RPC v2.
    • The product-major list (0, 1), the 2.0.0 ceiling and the Oh My Pi major list (18, 19) are gone.
    • The managed install policy drops its 2.0.0 ceiling too.
  • Threads resume forward onto any later Oh My Pi major, never back. resumesEarlierUpstreamSessions replaces the resumableUpstreamMajors list.
  • Model manifest. A new scient policy for Scient 0.6.34 and later supports >=0.1.0 with no cap. 0.6.32–0.6.33 keep <2.0.0, which matches their code.
  • "Update Scient" button. A Scient Agent release that offers only RPC protocols newer than v2 is refused with "needs a newer version of Scient". The provider status then carries requiresAppUpdate, and the banner, model picker, welcome page and provider settings show the button. It checks for, downloads or installs the app update through the existing updater, reusing the sidebar pill's download. The T3 files get only small, marked additions.

Why

The owner chooses Scient Agent's version numbers, so they shouldn't follow Oh My Pi's. Scient Agent is our own product:

  • every Scient Agent release is checked against Scient before it ships (scient-agent#83 adds a compatibility job: RPC v2, and resuming the latest release's threads);
  • a managed update is test-run before Desktop activates it.

Oh My Pi's number was only a stand-in for "speaks our protocol", which the agent reports directly. New agent features stay opt-in capabilities (hostCommands, enableSources), so an app that isn't updated keeps a working agent.

The stock Oh My Pi provider keeps its supported major.

Documentation Impact

Documentation impact: Updated — docs/internals/scient-providers.md

Platforms

Platform Expected behavior Checks run Unproven
macOS Same on all three: the check reads --runtime-info, which every build prints Server and web tests, typecheck and seam check, on macOS Live run of the button with a real update
Windows Same CI Live run
Linux Same CI Live run

Verification

All of these ran in a clean environment, not against the live profile:

  • Server: ScientAgentTarget, OmpSessionCursor, OmpProvider (a new case: the refusal sets requiresAppUpdate and the message), providerCompatibility, ModelManifest (incl. .scient), the omp folder, scientAgentManifest and managed-runtime-catalog. 405 passed.
  • Web: desktopUpdate.scient.test.ts and ProviderAppUpdateButton.browser.test.tsx, 10 passed.
  • Root pnpm run typecheck passes, as does pnpm alignment:seams:check --base origin/main.

UI Changes

The button appears only when the configured Scient Agent offers no RPC protocol this app speaks, a state no released agent produces. A browser test covers it against a mocked desktop bridge. Screenshots are not captured yet.

Review

Review: Codex high — 6 findings, 4 fixed (v1-only hint, button on the primary environment only, paired fork markers, plus the compatibility check's addon and v2 negotiation in scient-agent#83), 2 not taken (repairs on Desktops ≤0.6.31 fail under any version scheme once an OMP-19 agent is promoted; older session-format fixtures, since each release resumes the previous one's threads); recheck clean. Live test: Desktop's live suites run against this main in the Oh My Pi 19.1.1 alignment's qualification.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • Focused tests and typecheck pass on this head
  • UI: before/after screenshots, light and dark, checked against the UI checklist (or no UI change)
  • Every link a reader can follow that this PR adds was fetched and works

Model/harness: Claude Opus 5.5 (Claude Code); the button by Codex GPT-6.2 Sol, revised.

🤖 Generated with Claude Code

yaacovcorcos and others added 2 commits November 24, 2026 20:44
Scient Agent is ScientFactory's own product, checked against Scient
before each release, and a managed update is test-run before Scient
switches to it. So the server stops judging it by version numbers:

- No ceiling on the product version and no list of Oh My Pi majors.
  It still needs Scient Agent 0.1.0 or newer, on Oh My Pi 18.2.8 or
  newer, offering RPC v2.
- A thread resumes forward onto any later Oh My Pi major, never back.
- The managed install policy drops its 2.0.0 ceiling, and the model
  manifest gives Scient 0.6.34 and later an uncapped agent range;
  0.6.32 and 0.6.33 keep theirs.
- A release that offers only RPC protocols newer than v2 is refused
  with "needs a newer version of Scient", and the provider status
  carries requiresAppUpdate so the app can offer its own update.

The stock Oh My Pi provider keeps its supported major.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…newer app

When a Scient Agent release speaks none of this app's RPC protocols,
the provider's status carries requiresAppUpdate. The provider banner,
model picker, welcome page and provider settings then show an
"Update Scient" button beside the message. It checks for an app
update, downloads one that is available, or asks before restarting to
install a downloaded one, reusing the sidebar pill's download. Browser
builds, which have no updater, show only the message.

Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

This PR changes the test suite by +11 test cases (browser +3, unit +6, server +2).

New browser test files: apps/web/src/scient/desktopUpdate/ProviderAppUpdateButton.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 vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Nov 24, 2026
yaacovcorcos and others added 2 commits November 24, 2026 21:09
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rts light

The label is in every locale. The button no longer reads the managed
update policy, whose module provider views' tests replace, and its
download is its own copy of the sidebar pill's, so a provider view does
not load the sidebar pill. A refused update check still says why, from
the updater state's message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yaacovcorcos
yaacovcorcos added this pull request to the merge queue Nov 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.5 KiB 5.5 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 4.2 KiB 4.2 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.3 KiB 1.3 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 22.3 KiB 22.3 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.5 KiB 5.5 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 4.2 KiB 4.2 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.3 KiB 1.3 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 22.7 KiB 22.7 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Other scenarios

All 64 scenario measurements match main.

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

Baseline: bc7eb91 · PR result: d45f495 · 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.
Bounded compact HTTP snapshot with live cursor.

  • Codex decoded thread snapshot: 88.2 KiB
  • Claude decoded thread snapshot: 88.4 KiB

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

Merged via the queue into main with commit 97f4873 Nov 24, 2026
92 checks passed
@yaacovcorcos
yaacovcorcos deleted the claude/scient-agent-any-upstream-20261124 branch November 24, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 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