Skip to content

Personas: runs stop owing a handoff file #776

Closed

Description

@bryantderosier

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-61 appends the artifact section from agentPersonaArtifacts.ts (agentPersonaArtifactInstructions) on a persona's first turn.
  • Observer and reminders: agentHandoffObserver.ts, agentHandoffNudgeQueue.ts, agentHandoffNudgeWorker.ts, plus agentHandoffStore.ts, agentHandoffRefreshes.ts, and agentHandoffArtifactDelete.ts, all in apps/server/src/j5/agents/.
  • Finish notices: apps/server/src/j5/a2a/CrewSeatFinishNotifier.ts adds handoff lines (written, missing, unavailable, size, digest). CrewLaunchService.ts imports agentHandoffArtifactPath.
  • Chips: packages/client-runtime/src/j5/agentPersonas.ts:629-636 builds the "pending" and "missing" labels. On web they render in AgentHandoffChip.tsx, AgentIdentityChip.tsx, and AgentPersonaAssignmentControl.tsx. On mobile they render in AgentPersonaAssignmentControls.tsx. FleetPage.tsx, ArtifactsPage.tsx, and crewNotices.logic.ts read handoff state too.
  • Listings: agentPersonaRouting.ts:198-200 puts outputArtifact on the catalog entry that j5_list_personas and the clients read.
  • Contracts: BUILT_IN_AGENT_ARTIFACT_IDS, AgentHandoffStatus, AgentHandoff, and the getAgentHandoffs / subscribeAgentHandoffRefreshes RPCs in packages/contracts/src/j5/agentPersona.ts.
  • Docs: docs/j5/user/personas.md has 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_artifact and 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, or artifacts still 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.md no longer describes handoff artifacts or reminders. The persona contract in docs/j5/product/agent-personas/index.md is 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

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

  1. added
    enhancement
    on Oct 29, 2026
  2. added a commit that references this issue on Nov 6, 2026
    be11251
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions