Repository navigation
fix(j5): personas stop owing a handoff file - #914
Conversation
A persona run no longer gets artifact instructions, an end-of-run file check or a reminder turn, and a Crew seat's first turn no longer names a file it owes. The Captain's finish notice reports how the run ended and carries the seat's reply instead of handoff lines. Old definitions with artifact fields still load (the fields stay in the server schema so snapshot digests keep matching), and old threads keep the handoff status they recorded, read-only. Closes #776 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Pick a seat's reply by turn-item order so providers that finalize messages with the same timestamp still report the last one, and never cut the reply in the middle of a surrogate pair. Reword the old-handoff chip text and comments that still described the reminder and refresh signal, and drop the remaining doc passages (Crews, persona contract, runbook) that promised a declared output file. Co-Authored-By: Claude Sonnet 5.5 <[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.
|
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
BastiHu
left a comment
There was a problem hiding this comment.
Approved as layer 1 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 72fb125c17 (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
Every persona run was told to write a handoff file, and at least five of the 11 team personas also say "don't create a file", so runs got contradictory instructions and an extra reminder turn when the file never showed up. Personas shouldn't own deliverables: the brief or Playbook step says what to produce, the persona says how to work. Closes #776.
<seat_obligation>on Crew seats. The queue was in memory, so anything queued at the upgrade just goes away; a reminder that was already sent stays as a normal message.getAgentHandoffsRPC and chips stay, read-only. I deleted the delete-reconcile step (nothing recomputes the state) and the refresh subscription, so chips fetch once.outputArtifact,inputArtifactsorartifactsstill loads. The three fields stay in the server schema, becausedefinitionDigesthashes the decoded definition andreadSnapshotrejects a snapshot whose digest differs. I checked a pinned digest on old and new code and it matches.outputArtifactis gone from the catalog entry,j5_list_personasand the client persona model. A file a brief or Playbook step asks for still goes throughj5_write_artifactand the Artifacts page, untouched.personas.md,artifacts.md, the persona contract,crews.md,agent-tools.md, the glossary, the runbook andFORK.md.Out of scope, per the issue: the YAML shape (#777–#779) and the team definition wording (#780).
Evidence
vp run check:changed→ format, lint, graphql and typecheck pass; tests: 20 files, 303 passed.cd apps/server && vp test run src/j5/a2a/CrewSeatFinishNotifier.test.ts→ 8 passedb997f65b…, computed onj5/mainand on this branch).cd apps/server && vp test run src/j5/agents/agentPersonaLibrary.test.ts→ 54 passedvp test run src/j5/agents/agentPersonaLibrary.test.ts(apps/server),vp test run src/j5/agentPersonas.test.ts(packages/client-runtime)Not verified: no live run with real agents, no browser or mobile pass, and no paid evals (the persona instructions, the Crew first turn and the finish notice all changed text).
knipfails in my sandbox: it can't loadapps/mobile/metro.config.js(SPDX download got HTTP 403) and flagsPASTED_TEXT_ATTACHMENT_THRESHOLD_BYTESintextPaste.ts, which this PR doesn't touch. I haven't checked what an older client that still subscribes to the removed refresh RPC does (just that request failing vs the connection).Merge Danger
Door: two-way. A revert restores the code. I don't write or migrate any data, and the table stays.
Blast Radius: persona runs, Crew seat first turns, the Captain's finish notices and the persona chip on old threads.
subscribeAgentHandoffRefreshesfails that request until it updates or reloads.After merge: nothing.
Upstream impact
J5 lines removed from
apps/server/src/server.ts(the observer wrapper now wraps only the artifact observer),apps/server/src/ws.ts(the refreshes plumbing) andpackages/client-runtime/src/rpc/client.ts(the subscription tag). I updated the matchingFORK.mdcases. Nothing here changes what upstream's product does.Checklist
FORK.md(case text and file-table row) in this PRdocs/j5/product/upstream.md(none needed)AGENTS.md)docs/j5/product/and user docs rewritten where this changes themClaude Sonnet 5.5 via Claude Code (J5 Code).
🤖 Generated with Claude Code