Repository navigation
feat(personas): pick any signed-in provider for persona models - #391
Conversation
Persona routes were hard-coded to Codex and Claude in the contract, the client picker, and the server's reasoning-option lookup. Routes now accept any provider driver, and the reasoning option is read from the model's own descriptors (reasoningEffort, effort, reasoning, variant, thinking). The authority gate is unchanged, so providers that cannot enforce a persona's runtime policy show the route as Blocked. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Comment |
- Show the reasoning level in persona route labels for every provider's option id. - Default new personas to Codex/Claude routes when one is signed in. - Name a missing provider alongside an unenforceable policy, so a mistyped driver is visible. - Reuse the shared reasoning option check in spawn_agent and the crew seat runtime. - Test model selection and assignment validation with variant/reasoning/thinking ids. - Narrow the user docs to providers whose models offer a reasoning setting. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
@Jacksondr5 replying here to your Teams message about this one too. Yeah, I think you're right. I went back through the gate and it's actually worse than I made it sound in the description. Between your two options I'd pick the same one you did. I think there's a decent middle though:
I'll roll that into this PR so the picker and the launch behavior ship together. Lmk if you see a problem with that. |
A persona whose runtime policy the provider can't sandbox used to show as Blocked. Now it launches in the thread's normal runtime mode and the policy reaches the agent as instructions only. Codex and Claude still get the real sandbox where they support it. Settings marks those routes "not sandboxed on this provider", and the Crew preview shows the seat's real access mode. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
@Jacksondr5 pushed this in 6dcbfdf. Personas launch on any signed-in provider now. If the provider can't sandbox the policy, it runs in the thread's normal mode with the policy as instructions, and Settings says "not sandboxed on this provider" on that route. Codex and Claude still get the sandbox where they support it. I updated the description to match. |
Review panel: Claude Opus 5.5 (lead) + GPT-6.1-SolBoth reviewers read c4f1cc3 independently and Sol tested it live on an isolated dev server with real Codex and Claude agents. 6dcbfdf landed after that: I have read its diff, and nobody on the panel has run it. Posting now, before a second test pass, because two decisions Jackson made today change the design that commit builds on. Jackson's decisions, and what they mean for 6dcbfdfRecorded in #439, with #432 linked from it:
6dcbfdf was pushed before #439 existed, and it goes the other way:
What carries over: removing the Blocked dead end is right, and so are the wider picker and the shared reasoning-option helper. The way to get there is #432 (a persona states the access it runs with, on any provider) with #439 (no appended rules; the editor shows which providers sandbox which policy), instead of a sandbox policy that silently becomes a prompt. Code findings, agreed by both reviewers (all still present at 6dcbfdf)
From the lead only:
Confirmed fine
ScreenshotsCaptured at c4f1cc3 against the merge-base, same data, viewport and theme. The provider order in the model menu flips from Codex, Claude to Claude, Codex, because the list is now sorted by label.
The other pairs (empty form, populated form, Codex and Claude model menus, reasoning menu) are under Not tested
|
A launch must carry exactly one reasoning option matching the declared route, and building a selection for a model with no reasoning select now fails loudly instead of guessing an option id. Drops the Grok example from the persona docs since its models advertise no reasoning select. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Reverts 6dcbfdf. Jackson decided in #439 that a runtime policy means only what the provider's sandbox enforces, so a persona no longer falls back to prompt rules and the thread's runtime mode on providers that can't sandbox its policy. Full-access personas are tracked in #432. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Per #439, a persona's own instructions are the whole behavior contract. The no-commit, no-PR and no-merge lines J5 appended were invisible to the author and could override what they wrote. Only the platform-tools note remains. The authority rules table now records just the workspace access each policy asks a sandbox for. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The persona catalog now carries the server's policy-to-driver table, so the web and mobile editors say under Runtime policy where the selected policy is sandboxed and which chosen routes won't launch with it. New personas default to a route on a sandboxing provider from that table instead of a hard-coded Codex/Claude preference. Older servers send no table and the editor shows nothing. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
@Jacksondr5 thanks, this was a really useful pass. I reworked the PR around #439 so it lines up with your call instead of fighting it.
On the code findings:
Grok's gone from the docs example, the description uses the template now, and there are fresh before/after screenshots in it. |
Jacksondr5
left a comment
There was a problem hiding this comment.
Review panel, round 2: Claude Opus 5.5 (lead) + GPT-6.1-Sol
Reviewed at 70f1240. Sol re-tested live on an isolated server with real Codex and Claude agents; I read the four new commits. Both reviewers agree: the rework does what #439 asked and the earlier findings are closed. Approving.
Decision from Jackson (2026-10-05): the older-client limitation is accepted as described. There are no mobile users yet, and telling people to update is fine. No guard needed.
Verified live
- Nothing launches without a sandbox. A Cursor read-only persona, a Claude workspace-write persona, and
diagnosticandpublish-onlyon Codex all show Blocked, are absent from the composer picker, and are refused from direct launch,delegate_task,@personaandspawn_agent. Crew seats for all four are refused at preview and approval with "Nothing was spawned"; none became Full access. The revert left nothing behind: diffing 06a6e18 against the parent of 6dcbfdf shows only the files 2939fd9 also changed. - The appended rules are gone. Sol captured what each provider actually received (Codex developer instructions, Claude appended system prompt): the persona's own text and the platform-tools note, with no "Selected behavior" block and no commit, PR or file rules. Same for an untouched bundled Scout.
- The sandbox is what restrains a persona. A workspace-write persona on Codex told to commit tried
git addandgit commit; both failed with a read-only.git/index.lock, and the agent reported the error. - The editor text matches what launches, for every policy, in create and edit, and updates as the policy or routes change. It is visible before saving.
- Finding 1:
[{effort: high}, {reasoningEffort: low}]is rejected for both providers; single-option assignments pass; a Crew seat with a model override, a fork of a persona thread, and a persona thread from before the change all still run. - Settings create, edit and duplicate, and composer launches on both providers at the declared model and
highreasoning. 179 focused tests pass.
Small things, not blocking
docs/j5/product/agent-personas/index.md:175says the platform-tools note is "the only addition".agentPersonaRuntime.ts:53-59also appends the handoff-artifacts section for a persona that declares artifacts, and it is in the real Scout payload. Given what #439 is about, the doc should name both.docs/user/personas.md:35says the editor "names any chosen model whose provider can't sandbox it". It names the provider ("Claude routes won't launch with this policy"), not the model.- The assignment check now requires exactly one reasoning option but not that its id is the one the model advertises, so Codex
[{effort: high}]passes. No launch path builds that, and real threads carried the right id. Fine as is; noting it so nobody relies on the check for more than it does.
Screenshots
The two in the description load and match the head. These cover the states they miss:
| State | Image |
|---|---|
| Workspace write with a Claude route | ![]() |
| Read only | ![]() |
| Publish only | ![]() |
| Saved persona, Blocked reason | ![]() |
The other policies are under pr-391/ on j5/evidence with the r2-policy- prefix.
Not tested
- A real signed-in provider other than Codex and Claude; none is installed on the review host. Those routes were exercised with hand-written YAML and unit tests, and
spawn_agentto Cursor stopped at "provider unavailable" before reaching the policy check. - Mobile was read, not run: it calls the same helpers and renders the same note. The desktop shell and remote connections were not run.
- The older-client failure was reproduced by decoding the real catalog with the old schema, not with an old build.
…the provider the editor names The agent-personas doc said the platform-tools note was the only addition, but a persona that declares handoff artifacts also gets the artifact-path section. The user doc said the editor names the model whose provider can't sandbox a policy; it names the provider. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Jacksondr5
left a comment
There was a problem hiding this comment.
Review panel (Claude Opus 5.5 lead): re-approving at 0f0f06b. The one commit since the last approval changes a sentence in each of docs/j5/product/agent-personas/index.md and docs/user/personas.md, no code. Both now match the behaviour: the product definition names the platform-tools note and the handoff-artifacts section as the two additions to a persona's instructions, and the user doc says the editor names the provider. That closes notes 1 and 2 from the round 2 review. #469 is stacked on this branch and will be reviewed as one stack with it.






Summary
You can pick any signed-in provider for a persona's model now, not just Codex and Claude. A persona still only launches where the provider's sandbox enforces its runtime policy (#439), and the editor tells you which providers that is.
publish-only/diagnosticstay blocked, and Crew seats don't silently get Full access.validateAgentPersonaAssignmentrequires exactly one reasoning option that matches the route.spawn_agentalso picks up the shared reasoning-id helper, soreasoning/thinkingmodels work there.Evidence
Same models and policy on both sides (Workspace write, Claude primary, Codex fallback):
After:
Tests:
vp test runoverapps/server/src/j5/agents,CrewLaunchService,crewSeatRuntime,mcp/handlersandpackages/client-runtime/src/j5passes.tsc --noEmitis clean for contracts, client-runtime, server, web and mobile.Merge Danger
Door: two-way
No migrations. Stored definitions and snapshots decode unchanged, and reverting puts the old picker and prompt rules back.
Blast Radius: clients
An older web, desktop or mobile build fails to decode the whole persona catalog once any persona is saved with a driver other than Codex or Claude. I'm accepting that and disclosing it here (@Jacksondr5, shout if you want a guard). New launches no longer get the appended rules, so personas that relied on them need those limits in their own instructions. Older servers send no
policyEnforcement, so the editor just shows no note.Claude Opus 5.5 via Claude Code
🤖 Generated with Claude Code