Repository navigation
fix(j5): preserve personas and workers across upgrades - #920
bryantderosier merged 2 commits into
Conversation
|
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.
|
BastiHu
left a comment
There was a problem hiding this comment.
Approved as layer 2 of stack pingdotgg#921, which merges as one. Verified the reported stack review fixes against stack tip 08297aea7d02bcb07ab5d8ebac80601cfa1a5584; 145 focused tests passed across four files at that tip.
The integrated live retest of the reworked stack remains outstanding, including the previously omitted mobile, upgrade, and provider-enforcement cases.
Jacksondr5
left a comment
There was a problem hiding this comment.
Approved as part of the persona stack (#914 → #920 → #922 → #923), which merges as one, at this layer's head 420e781b58 (stack tip d11efb049e).
- Panel review: Claude Opus 5.5 and GPT-6.1-Sol. All findings are fixed and cross-checked.
- Live tests: web, the upgrade on a single test home, an old client against the new server, Android, and iOS on Jackson's iPhone. The results and screenshots are on #923.
- Jackson: approved the docs and the UI.
- Still unproven, by choice: a real Codex or Claude write refusal (startup policy and tool restrictions were confirmed) and the usage-limit skip (covered by unit tests).
- Not this stack: follow-ups found on the base commit are #929 and #930.
Approved by Claude Opus 5.5 for Jackson.
Summary
Changing persona definitions to an ordered model list and one access level would otherwise invalidate saved snapshots, interrupt existing workers, and leave older clients unable to read the library. I added compatibility for both definition shapes, preserved snapshot identity and saved worker behavior, and blocked edits that would discard fields an older editor cannot represent. Closes #777.
Stack order: this is layer 2 of stack pingdotgg#921 (#914 → #920 → #922 → #923), which merges as one. It targets
j5/776-personas-no-handoff.Evidence
node scripts/check-changed.ts j5/776-personas-no-handoff— 339 tests passed across 14 files; format, lint, GraphQL generation, and typechecks for 32 affected packages passed. The command exits unsuccessfully because both Knip checks fail as described below.resumes a pre-upgrade persona turn with its saved instructions and mapped accessexercises the actual service with a fake provider, a frozen legacy snapshot, the retained native thread, saved instructions/model/options, and mapped access after source removal.git diff --check j5/776-personas-no-handoff HEAD— passed. The committed diff matches the tested diff byte for byte.Not verified: no browser, native mobile, live server, real provider turns, paid evals, or old installed mobile binary. Remote/relay/tunnel behavior was not exercised live. No before/after UI captures. Knip cannot load Metro configuration because its SPDX download returns HTTP 403 and reports the existing unused
PASTED_TEXT_ATTACHMENT_THRESHOLD_BYTESexport inpackages/client-runtime/src/textPaste.ts; both failures were reproduced on the clean parent branch.Merge Danger
Door: one-way after someone imports a new-format definition or launches a worker from it. Reverting does not convert those stored definitions or snapshots back to the old shape. The upgrade itself performs no migration or rewrite.
Blast Radius: persona library reads/imports/edits, saved persona workers, Crew/persona launch policy resolution, and persona presentation on web, desktop, and mobile.
Older mobile builds keep reads and existing workers; edits that cannot preserve the complete definition require an updated editor. Unsupported
diagnosticandpublish-onlydefaults remain invalid for new launches. Existing assignments retain their saved policy and approved overrides.After merge: ship with #778 and #779 before changing the shared team definitions in #780. No migration command is required.
UI changes
Mobile persona Details now displays every canonical model and option, with the legacy two-model fallback for older servers. Before/after captures and the mobile pass are still outstanding; they're covered by the live re-test of the whole stack.
Live testing
Nothing ran against a live server or device. The turn-continuation proof uses a fake provider through the real turn-start service. To verify manually in isolated test state: open Settings → Agent Setup on web/desktop and mobile; view a legacy two-route persona and a new persona with three model entries/options; confirm the complete details; attempt an incompatible edit and confirm no stored bytes change; resume a worker created before the upgrade and verify its saved instructions, model, and mapped access.
Upstream impact
apps/server/src/orchestration-v2/ProviderTurnStartService.test.tsextends the existing native-resume harness with the persona compatibility test. Its case text and file-table entry are recorded inFORK.md. No upstream product behavior changes.Checklist
FORK.md(case text and file-table row) in this PRdocs/j5/product/upstream.md(no upstream product change)AGENTS.md)docs/j5/product/and user docs rewritten where this changes themGPT-6.1-Sol (high) via Codex in J5 Code.