Skip to content

feat(playbooks): guide run owners and enforce named scheduled starts - #1095

Open
BastiHu wants to merge 2 commits into
feat/playbooks-792-integrated-sol-331968a7from
feat/playbooks-793-integrated-sol-331968a7
Open

BastiHu wants to merge 2 commits into
feat/playbooks-792-integrated-sol-331968a7from
feat/playbooks-793-integrated-sol-331968a7

Conversation

@BastiHu

@BastiHu BastiHu commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #793.

Scheduled starts check only the scheduled task that initiated this turn and accept its playbook name or @Playbook reference. The stack removes cross-thread origin propagation, the peer header, person-save and directive requirements, and the scheduled revision gate.

The guidance port passed 20 server MCP, step-notice and budget tests and 15 provider guidance tests. The eval dry run constructed 250 requests. These earlier test counts predate the updated guidance. Earlier tested head · Earlier stack verification.

December re-review

Current layer commit.

New cases exercise clear and ambiguous selection in the real CLI eval runner. A dry run checks the cases and does not provide a provider score.

Historical submission and tests on earlier commits

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

In a conversation, an agent can choose and name a saved playbook that clearly fits the request. The owner guidance covers ambiguous requests, staffing changes, persona limits, approvals, cancellation, and the evidence needed to mark a run complete. Closes #793. Stacked on #1094.

Scheduled turns can start a playbook only when the configured task prompt names it. Dispatch records the literal prompt text used for that turn, with webhook substitutions masked. A later edit to the schedule or a playbook name introduced through webhook payload text cannot authorize a start.

At commit 3782bb1, check:changed against the #1091 base passed for all three new layers, including 634 tests in 38 files, 36 package typechecks, 9 React compiler cases, formatting, lint, Knip and GraphQL. Tests exercise the MCP start path for queued turns, historical scheduled messages, schedule edits, webhook-only names and empty substitutions. Context budgets were measured for the final guidance.

Live Codex, Claude and Cursor behavior and paid evaluations remain unverified pending model authorization.

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 2, 2026 1:42pm 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:L 100-499 effective changed lines (test files excluded in mixed PRs). label Nov 18, 2026
@github-actions github-actions Bot added size:XL 500-999 effective changed lines (test files excluded in mixed PRs). and removed size:L 100-499 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-793-integrated-sol-331968a7 branch from 1f9f43b to 47788df Compare November 24, 2026 11:00
@BastiHu

BastiHu commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator Author

@Jacksondr5, Scheduled starts check only the scheduled task that initiated this turn and accept its playbook name or @Playbook reference. The stack removes cross-thread origin propagation, the peer header, person-save and directive requirements, and the scheduled revision gate. The guidance port passed 20 server MCP, step-notice and budget tests and 15 provider guidance tests. The eval dry run constructed 250 requests. Live provider results and scored evals are pending. Commit · Stack-wide response and outstanding evidence.

@github-actions github-actions Bot added size:L 100-499 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 24, 2026
@Jacksondr5

Copy link
Copy Markdown
Owner
  • personaApproval doesn't exist. The start description (mcp.ts:111), playbookInstructions.ts:13 and agent-tools.md:426 tell agents to check it. The response carries personaRequestId, and nothing reports the request's state. Please name the real field, and expose whether the request is pending, approved or declined if the owner is meant to branch on it.
  • Clear-fit guidance doesn't take, so far. In fresh threads, "Write a short invented orchard release brief for the Pear Lantern harvest" with a matching saved orchard-brief got a direct answer from both Haiku and Luna, with no library lookup and no run. The ambiguous case asked correctly on both. That's one sample each, not a scored result. Please run the evals for the changed instructions, and Playbooks: owner guidance for starting, working, and finishing #793's live Codex/Claude check (Cursor can be pending).
  • agent-tools.md History line.

@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-793-integrated-sol-331968a7 branch from 82af9af to 7f82c22 Compare November 30, 2026 13:48
@BastiHu
BastiHu force-pushed the feat/playbooks-793-integrated-sol-331968a7 branch from 7f82c22 to 7a7cf49 Compare November 30, 2026 13:50
@BastiHu
BastiHu force-pushed the feat/playbooks-792-integrated-sol-331968a7 branch from f9ac88a to 6624de7 Compare December 1, 2026 19:20
@BastiHu
BastiHu force-pushed the feat/playbooks-793-integrated-sol-331968a7 branch from 05b8a3f to 43c8000 Compare December 1, 2026 19:20
@github-actions github-actions Bot added size:XL 500-999 effective changed lines (test files excluded in mixed PRs). and removed size:L 100-499 effective changed lines (test files excluded in mixed PRs). labels Dec 2, 2026
@BastiHu

BastiHu commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

Post-push playbook selection retest — 11/12 scored samples passed. Tested commit b6d140245b with the real Claude and Codex CLIs in the isolated J5 eval container. Each model ran each case three times at high effort, with the same Pear Lantern request and either one or two saved playbooks. The fixtures supplied the catalog using the provider prompt formatter from this commit. Eval cases

Owner One match — named, read and started orchard-brief Two matches — asked the person through J5 and waited
Claude Haiku (claude-haiku-5-5) 3/3 3/3
Codex Luna (gpt-6-luna) 3/3 2/3

In all six ambiguous samples the owner asked which playbook to use and started neither. In Luna’s one failed sample, it called j5_send_message with the question and expect_reply: true, but omitted to. The mock returned an open exchange addressed to undefined. This sample gives no evidence that the question reached the person’s Inbox.

Server verification. The new regression failed on the prior implementation. On this commit it verified that a human-authored request reaches the provider with the saved name and description, that the step prompt stays out of that catalog, and that a scheduled turn omits the catalog. vp run check:changed passed, including 704 tests in 46 files and typechecks for 38 packages.

Still open for #793. On this commit, a fresh human conversation in J5’s Browser panel still needs the four checks for both owners: a clear match starts and is named, an ambiguous match delivers a question the person can answer before any run starts, a scheduled task omitting the name starts no playbook, and a completed run reports its result and verification. The earlier live runs used CLI-launched owner threads at 43c8000853. Cursor remains pending as agreed.

This branch was successfully deployed

1 active deployment
Preview — b6d14024 Deployed Dec 2, 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