Repository navigation
Conversation
One markdown playbook per workspace and type (incident response, status page, maintenance windows, postmortem), edited under Agents > Playbooks with default templates and {{name}} variables.
The agent reads them through list_playbooks / get_playbook on Slack, dashboard chat and MCP, and writes them through update_playbook with approval. The postmortem generator uses the postmortem playbook for its structure when one exists.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ListPlaybooks, GetPlaybook, UpdatePlaybook (creates or replaces) and DeletePlaybook, addressed by type and mapped to the incidents scope group. Regenerates the proto TypeScript and the OpenAPI documents.
Adds the Playbooks reference page, lists the playbook tools in the MCP docs and points the dashboard tab's docs link at the new page.
Playbooks are keyed by a hyphenated slug instead of a type, and carry a title and description that default per slug and can be edited in place on the playbook page. The RPC API takes the slug as a string and accepts optional title and description on UpdatePlaybook.
A workspace can create playbooks under its own slugs next to the four built-in ones, from a Create playbook sheet, the RPC API or the agent. A custom slug needs a title, has no template and is capped at 20 per workspace.
Both columns are NOT NULL. A built-in slug stores its default title and description when it is first written; a custom slug must send both. Empty and null values are rejected on every surface, and the update_playbook approval card names the stored title.
create_playbook and CreatePlaybook create a custom playbook under a new slug. update_playbook and UpdatePlaybook no longer create one: an unknown custom slug is not found, while a built-in slug is still written on first use. The checks live in the createPlaybook and updatePlaybook service verbs. EventRowDate renders the empty cell itself, and the docs name the slugs that code reads by name.
The tool was registered as non-destructive, which is the flag the dashboard and Slack use to show the approval card. EventRowDate also keeps a passed className on its empty cell.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
One markdown playbook per workspace and type: "this is how we run stuff". People write them under Agents > Playbooks; the agent reads them when asked and before it drafts public text. Nothing is enforced.
incident_responsestatus_pagemaintenance_windowspostmortemHow a playbook reaches the agent:
Writes:
Empty slots change nothing: no prompt section, default postmortem prompt.
Also in here:
PropertyInputshows a tooltip with the full value when it is clipped, andQuickActionscomputes its visible items once.Evidence
playbooktable, tools or tab.After:
pnpm verifygreen. Suites on an isolated libSQL:postmortem-draft.test.tsasserts the system prompt equals the previous one without a playbook, and carries the playbook's sections plus the unchanged rules with one.packages/api/src/router/playbook.test.tssaves a value, changes only the value, reads it back.Not shown or not done:
apps/serversuite: green earlier on this branch; the last three full runs failed 4 to 7 tests, a different set each time, inslack/handler.test.tsand monitor/heartbeat RPC tests. Each file passes alone. The machine was under heavy load; needs one clean CI run.pnpm eval:mcp: not run. Two cases added;select.declare_incidentmay now picklist_playbooksfirst.Merge Danger
Door: two-way
Two additive migrations (
0099createsplaybook,0100addsvariables). No existing table or column changes.Blast Radius: agent
Ten write tools gain one sentence in their description, and both agent prompts gain a line listing the playbook tools, for every workspace. With a filled slot the prompt also gains a short section. Tool selection can shift: a model may call
list_playbooksbefore drafting.update_playbooklets the agent rewrite the rules it follows, behind the same approval card as other writes.