Skip to content

feat(playbooks): require the named persona for a step - #1094

Open
BastiHu wants to merge 1 commit into
feat/playbooks-794-sol-331968a7from
feat/playbooks-792-integrated-sol-331968a7
Open

BastiHu wants to merge 1 commit into
feat/playbooks-794-sol-331968a7from
feat/playbooks-792-integrated-sol-331968a7

Conversation

@BastiHu

@BastiHu BastiHu commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #792.

One grouped Inbox request records an environment Owner’s picks by named persona for the active run. Handoffs check the required persona. Migration 072 stores the run-level data. Per-step tokens, the staffing-launch ledger and the renewal flow were removed.

The persona port passed 272 tests spanning store, MCP, Crew launch, permissions, migrations, context budget and delegation. Earlier tested head · Earlier stack verification.

Before and after

Before After
Persona before Persona after

December re-review

Current layer commit.

Grouped persona request before approval

Both Slate steps require the reviewer persona. This capture at 05b8a3f359 shows the open “Playbook persona picks” card, the reviewer access warning, and the Approve and Decline controls. Draft is still step 1 of 2 and blocked.

Open grouped reviewer persona approval card

Original evidence comment.

Historical submission and tests on earlier commits

The following records the original submission. The December re-review section above tracks current evidence.

A step that names a saved persona now requires a holder running that persona. Start reports unavailable and limited personas up front. If the first step lacks an eligible holder, the run stays open so the owner can assign one. Closes #792. Stacked on #1093.

Limited personas produce one request showing the model or access limits an environment Owner can lift. The approval applies to the named persona definitions within that run. Ordinary work checkpoints have their own approvals. An unrelated step edit preserves the persona grant, and reviewer independence still applies.

The integrated commit 280c250 passed check:changed against #1093, including 348 tests in 20 files, 36 package typechecks, and both selected React compiler cases. Coverage includes wrong-holder refusal, assignment recovery, grouped approvals, permissions, reviewer selection and migration 067 after migration 066. Live model acceptance remains outstanding.

Implemented by a J5 Crew using GPT-6.2 Sol through Codex.

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Dec 1, 2026 7:21pm UTC

Request Review

@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Nov 18, 2026
@github-actions github-actions Bot added the size:XL 500-999 effective changed lines (test files excluded in mixed PRs). label Nov 18, 2026
@github-actions github-actions Bot added size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). and removed size:XL 500-999 effective changed lines (test files excluded in mixed PRs). labels Nov 18, 2026
@BastiHu
BastiHu requested a review from Jacksondr5 November 23, 2026 16:15
@Jacksondr5

Copy link
Copy Markdown
Owner

Direction for the whole stack, before the full review, is in this comment on #1086. We'll review once the stack is rebased onto j5/main after #1205.

@BastiHu
BastiHu force-pushed the feat/playbooks-792-integrated-sol-331968a7 branch from 2cb9bb4 to 8f2a3b3 Compare November 24, 2026 11:00
@BastiHu
BastiHu force-pushed the feat/playbooks-794-sol-331968a7 branch from 79386a8 to 1f343c4 Compare November 24, 2026 11:00
@BastiHu

BastiHu commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator Author

@Jacksondr5, One grouped Inbox request records an environment Owner’s picks by named persona for the active run. Handoffs check the required persona. Migration 065 stores the run-level data. Per-step tokens, the staffing-launch ledger and the renewal flow were removed. The persona port passed 272 tests spanning store, MCP, Crew launch, permissions, migrations, context budget and delegation. Commit · Stack-wide response and outstanding evidence.

@github-actions github-actions Bot added size:XL 500-999 effective changed lines (test files excluded in mixed PRs). and removed size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). labels Nov 24, 2026
@Jacksondr5

Copy link
Copy Markdown
Owner
  • "Blocked" gets a second meaning. persona_block_reason feeds the Blocked flag (PlaybookStore.ts:1410). Playbooks: progress shows the current step #791 says both flags come only from open requests. Please derive both flags from open Exchanges only; the start statuses and the delivery state already report an unstaffed step. The AC6 text in playbooks.md needs the same change.
  • Required personas are checked twice. Assessment uses two write transactions plus a "requirements changed" branch that can't trigger, because the steps are fixed and the store serializes mutations. Please assess once before the transaction, then commit once.
  • Compatibility code: drop the requiredPersonas === null re-checks. They only serve runs started on an intermediate merge.
  • Docs (nit):
    • docs/j5/user/personas.md:104: "keeps its seat and its steps". Seats no longer own steps.
    • docs/j5/user/playbooks.md:113: keeping the step id keeps the holder, except when a changed required persona reassigns it.
    • Playbook Author's "the persona that should do it" now means a required persona.
  • agent-tools.md History line.
  • Evidence: the grouped persona request card, and Blocked for an unstaffed first step.

@BastiHu
BastiHu force-pushed the feat/playbooks-794-sol-331968a7 branch from 25d0f59 to 99ac588 Compare November 30, 2026 13:48
@BastiHu
BastiHu force-pushed the feat/playbooks-792-integrated-sol-331968a7 branch from 4dd6f23 to 1508c91 Compare November 30, 2026 13:48
@BastiHu
BastiHu force-pushed the feat/playbooks-792-integrated-sol-331968a7 branch from 1508c91 to 32dc380 Compare November 30, 2026 13:50
@BastiHu
BastiHu force-pushed the feat/playbooks-794-sol-331968a7 branch from 99ac588 to 09b0de9 Compare November 30, 2026 13:50
@github-actions github-actions Bot added size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). size:XL 500-999 effective changed lines (test files excluded in mixed PRs). and removed size:XL 500-999 effective changed lines (test files excluded in mixed PRs). size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). labels Nov 30, 2026
@BastiHu
BastiHu force-pushed the feat/playbooks-792-integrated-sol-331968a7 branch from 32dc380 to f9ac88a Compare November 30, 2026 16:15
@BastiHu
BastiHu force-pushed the feat/playbooks-794-sol-331968a7 branch from 09b0de9 to b06f504 Compare November 30, 2026 16:15
@BastiHu

BastiHu commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator Author

Grouped persona request before approval

Both Slate steps require the reviewer persona. This capture at 05b8a3f359 shows the open “Playbook persona picks” card, the reviewer access warning, and the Approve and Decline controls. Draft is still step 1 of 2 and blocked.

Open grouped reviewer persona approval card

@BastiHu
BastiHu force-pushed the feat/playbooks-794-sol-331968a7 branch from b06f504 to 9d3126c Compare December 1, 2026 19:20
@BastiHu
BastiHu force-pushed the feat/playbooks-792-integrated-sol-331968a7 branch from f9ac88a to 6624de7 Compare December 1, 2026 19:20

This branch was successfully deployed

1 active deployment
Preview — 6624de72 Deployed Dec 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL 500-999 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants