Repository navigation
feat(scient-agent): accept any Scient Agent release that speaks our RPC - #1105
Conversation
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>
|
This PR changes the test suite by +11 test cases (browser +3, unit +6, server +2). New browser test files: Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing. |
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>
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 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.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
What Changed
ScientAgentTargetaccepts any Scient Agent 0.1.0 or newer, on Oh My Pi 18.2.8 or newer, that offers RPC v2.resumesEarlierUpstreamSessionsreplaces theresumableUpstreamMajorslist.>=0.1.0with no cap. 0.6.32–0.6.33 keep<2.0.0, which matches their code.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:
compatibilityjob: RPC v2, and resuming the latest release's threads);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.mdPlatforms
--runtime-info, which every build printsVerification
All of these ran in a clean environment, not against the live profile:
ScientAgentTarget,OmpSessionCursor,OmpProvider(a new case: the refusal setsrequiresAppUpdateand the message),providerCompatibility,ModelManifest(incl..scient), theompfolder,scientAgentManifestandmanaged-runtime-catalog. 405 passed.desktopUpdate.scient.test.tsandProviderAppUpdateButton.browser.test.tsx, 10 passed.pnpm run typecheckpasses, as doespnpm 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
mainin the Oh My Pi 19.1.1 alignment's qualification.Checklist
Model/harness: Claude Opus 5.5 (Claude Code); the button by Codex GPT-6.2 Sol, revised.
🤖 Generated with Claude Code