Repository navigation
Description
Item 1 of 11 in the Personas v2: simpler specialists milestone. This one ships first, on its own.
The problem
Every persona in the team library declares an output file (outputArtifact), and at least five of the 11 also say "do not create a file" in their instructions. So every run gets contradictory instructions, and when the file never shows up, the agent gets an extra reminder turn asking for it. On top of that, the Captain's finish notices, the persona chips, and the listings all carry handoff state nobody acts on.
Personas shouldn't own deliverables. The assignment (a brief or a Playbook step) says what to produce. The persona just says how to work.
Where this sits
Decision 8 of the Personas v2 proposal (updated 27 Oct after Bastian's review): the persona-output obligation goes away completely, not just the observer. It's first because it's a live defect and doesn't depend on anything else in the milestone.
What we already have
Everything that makes up the obligation today:
- Instructions:
apps/server/src/j5/agents/agentPersonaRuntime.ts:58-61appends the artifact section fromagentPersonaArtifacts.ts(agentPersonaArtifactInstructions) on a persona's first turn. - Observer and reminders:
agentHandoffObserver.ts,agentHandoffNudgeQueue.ts,agentHandoffNudgeWorker.ts, plusagentHandoffStore.ts,agentHandoffRefreshes.ts, andagentHandoffArtifactDelete.ts, all inapps/server/src/j5/agents/. - Finish notices:
apps/server/src/j5/a2a/CrewSeatFinishNotifier.tsadds handoff lines (written, missing, unavailable, size, digest).CrewLaunchService.tsimportsagentHandoffArtifactPath. - Chips:
packages/client-runtime/src/j5/agentPersonas.ts:629-636builds the "pending" and "missing" labels. On web they render inAgentHandoffChip.tsx,AgentIdentityChip.tsx, andAgentPersonaAssignmentControl.tsx. On mobile they render inAgentPersonaAssignmentControls.tsx.FleetPage.tsx,ArtifactsPage.tsx, andcrewNotices.logic.tsread handoff state too. - Listings:
agentPersonaRouting.ts:198-200putsoutputArtifacton the catalog entry thatj5_list_personasand the clients read. - Contracts:
BUILT_IN_AGENT_ARTIFACT_IDS,AgentHandoffStatus,AgentHandoff, and thegetAgentHandoffs/subscribeAgentHandoffRefreshesRPCs inpackages/contracts/src/j5/agentPersona.ts. - Docs:
docs/j5/user/personas.mdhas a "Handoff artifacts" section. Its Crews paragraph also describes declared reports and the reminder.
Proposal
- New runs: no artifact instructions, no observer, and no reminder turn.
- Old threads: they keep whatever handoff state they already recorded, and the chip still renders from it. Nothing recomputes that state.
- Old definitions: YAML that still has artifact fields loads fine, and the fields are ignored.
- Requested files: a file that a brief or Playbook step asks for still gets written with
j5_write_artifactand shows up on the Artifacts page, like any other requested work.
Acceptance criteria
- A persona run that starts after the upgrade gets no artifact section in its instructions, on Codex and on Claude.
- A persona run that ends without writing a file gets no reminder turn.
- The handoff observer, its reminder queue, and its worker are deleted. Reminders still queued at the upgrade are dropped with the queue. A reminder that was already sent stays as an ordinary message.
- A Crew member's finish notice reports how the run ended and the member's reply, with no handoff lines.
- Runs that start after the upgrade show no "pending" or "missing" chip on web, desktop, or mobile.
- Old threads still show the handoff state they recorded, read-only.
-
j5_list_personas, the catalog RPC, and the client persona model no longer carry the output file. - Old YAML with
outputArtifact,inputArtifacts, orartifactsstill loads. The fields are ignored, and the definition's digest doesn't change because of it. - A brief or Playbook step that asks for a file still gets it written and shown on the Artifacts page.
-
docs/j5/user/personas.mdno longer describes handoff artifacts or reminders. The persona contract indocs/j5/product/agent-personas/index.mdis rewritten where it defines them. - Focused tests cover: a new run with no artifact section, a finish notice with no handoff lines, old YAML with artifact fields loading, and an old thread's recorded chip still rendering.
Out of scope
- Changing the persona YAML shape. That's Personas: old personas and running workers survive the upgrade #777–Personas: three access levels #779.
- Editing the team definitions to drop their artifact wording. That's Personas: update the 11 team personas (monorepo PR) #780.
Open question
Should the stored handoff rows, and the RPCs that read them, stay forever just so old chips render? Or should a later release drop them, along with the chips on old threads? I'd keep the read path for now and revisit when we drop the old contract fields.
Activity
fix(j5): personas stop owing a handoff file (#914)