← RisottoCONTENT HISTORY

Update to Risotto

Snapshot Nov 26, 2026 · 00:16 UTC · version 0.1.1

Collection source: downloaded plugin package.

WHAT CHANGED

First saved snapshot

No earlier snapshot is available to establish a change.

Save Risotto and check future changes in Following.

Up to 3 plugins free · no card required.

Compare saved observations

Download comparison JSON
Full technical diff · 0 changed fields
Full snapshot data
{
  "description": "Write or rewrite a runbook's conditions and content in the house style — requester samples before semantic conditions, numbered steps, tool references, access rules, forms, knowledge directives, and a terminal step. Load before hand-authoring or editing runbook conditions or content (create_runbook / update_runbook). Not needed when creating a runbook from a template, whose content is passed verbatim.",
  "included_files": [
    {
      "relative_path": "agents/openai.yaml",
      "size_in_bytes": 261
    }
  ],
  "name": "runbook-authoring",
  "skill_md_contents": "---\nname: runbook-authoring\ndescription: Write or rewrite a runbook's conditions and content in the house style — requester samples before semantic conditions, numbered steps, tool references, access rules, forms, knowledge directives, and a terminal step. Load before hand-authoring or editing runbook conditions or content (create_runbook / update_runbook). Not needed when creating a runbook from a template, whose content is passed verbatim.\nlicense: Proprietary\ncompatibility: Describes Risotto OrgRunbook semantics; the {tool:...}, {group:...}, {access-rule:...}, {form:...}, and {knowledge:...} reference syntax is resolved by the Risotto ticket agent at runtime.\nmetadata:\n  author: risotto\n  version: \"1.0\"\n---\n\nFollow this guide whenever you write or rewrite runbook `conditions` or `content` by hand. Runbooks created from templates are exempt: pass template content verbatim and keep its style untouched.\n\nA runbook has two fields that drive behavior:\n\n- **`conditions`** decide *whether* the runbook fires. For `match_type=\"semantic\"` they are embedded and matched against the requestor's actual message (hybrid keyword + semantic search, then a rerank), and at runtime the agent reads them as a guard clause.\n- **`content`** is the instruction list injected into the ticket agent's prompt after `{tool:...}` placeholders are rewritten to callable tool names.\n\n## Conditions — describe when the runbook fires\n\n- Before drafting or rewriting semantic conditions, check the conversation and any supplied ticket messages for verbatim sample requests. An operator's description of the workflow (\"notify IT when someone needs an account disabled\") is task intent, not requester text.\n- If no samples are available, ask the operator for one to three messages exactly as a requester would send them. For example: \"What would someone type to ask for this? Share one to three sample requests, using their exact words.\" Wait for their reply; draft and save the condition only after they supply a sample. One sample is enough to proceed. Reuse samples already supplied in this conversation without asking again.\n- Shape: one lead sentence describing the situation, followed by the supplied samples verbatim and short user-voice variants where useful (aim for 3–6 phrases total). Keep the samples' intent and wording, including terse commands. For example, with the sample \"disable Morgan's account today\": `The requester wants an employee's account deactivated — \"disable Morgan's account today\", \"deactivate an employee\", \"turn off their account\"`. Names and dates in a sample are examples, not match requirements.\n- When presenting the condition, quote which supplied samples it is intended to cover. If a sample is outside the agreed scope, identify it and clarify the scope before saving. Describe coverage as intended until a match test verifies it.\n- Content-only edits keep the existing conditions and need no new samples. Department and system runbooks also need no samples, as described below.\n- Write the paraphrasings in the user's voice: symptoms, what they tried, what they want (\"can't log in\", \"password isn't accepted\"). Users never write internal jargon, project codes, tool names, or admin-only terms (\"SAML IdP authentication failure\"), so those phrasings kill match quality.\n- Describe *when*, never *what to do*. Action language (\"reset their password and notify them\") belongs in `content`; conditions stay situational (\"user reports their password isn't working\").\n- Keep conditions specific. Vague catchalls (\"any access request\", \"general IT issue\") match too many tickets and crowd out more specific runbooks; when a runbook is meant to be the department default, use `match_type=\"department\"` instead.\n- Start with the predicate itself — the indexer prepends `When: ` and the dashboard labels the field \"When\", so writing a `When:` prefix yourself doubles it.\n- For `match_type=\"department\"`, conditions are advisory documentation only (matching is structural). Write a one-line description of what the department handles and move on.\n- `match_type=\"system\"` runbooks take no conditions at all — a system attaches them explicitly by `runbook_id`.\n\n## Instructions — one numbered step per conversation turn\n\n- Write `content` as a short numbered list of imperative steps: `1. Use {tool:...} to look up the requestor.` Target 4–8 steps total. A runbook that needs 12 steps is doing two jobs — split it.\n- One step = one conversation turn. Everything the agent does before yielding back to the user belongs in the same step — a step may say something AND act (\"Tell the user the reset is done, then use {tool:core_resolve} to close the request\"), and splitting that pair across two steps breaks the turn structure. Conversely, two user interactions never share a step.\n- Make every step exactly one of: a **tool call**, a **clarifying question**, a **conditional branch**, or a **terminal action**. \"Handle the issue appropriately\" is none of these — replace it with a tool call or delete it.\n- Make branches explicit numbered steps (\"3. If they are locked out, do X. 4. Otherwise, do Y.\"), never parentheticals buried inside another step.\n- Ask the user only for information no tool can fetch. When step 1 calls `{tool:core_get_user_context}`, later steps already have the requestor's email, manager, department, and profile.\n- Precede any access, credential, or destructive mutation with an explicit verification or user-confirmation step.\n- Write only about the user's situation — the numbered list already implies where the runbook starts and ends, so lifecycle narration (\"Begin by…\", \"This ends the runbook\") and turn-control claims (\"stop responding once resolved\", \"wait for the user before proceeding\") are noise the runtime ignores or misreads; signal handoff with the terminal tool call instead.\n- Restate conditions at most as a one-line header (\"When a user requests an Okta password reset:\") — repeating the full conditions block wastes tokens and makes the agent re-evaluate fit.\n\n## Tool references — the agent can only call what you wire\n\n- Reference tools only as `{tool:<uuid>}` (an org tool's `tool_id`) or `{tool:core_<name>}` (a built-in). Plain prose (\"use the password reset tool\") is never substituted — the agent sees literal text and has to guess.\n- The only valid core ids are: `core_get_user_context`, `core_handle_access`, `core_research_answer`, `core_resolve`, `core_escalate`, `core_cancel`, `core_leave_internal_comment`, `core_request_approval`. Any other `core_*` id passes through as literal text the agent cannot call.\n- A runbook may reference at most 5 custom (non-core) tools. Core tools are unlimited.\n- Pass every referenced org-tool UUID in `tool_ids` as well — a tool missing from that list silently falls through at runtime.\n- Wrap every tool reference in an instruction that states its trigger and what to do with the result: \"Use {tool:core_escalate} if you can no longer assist the user; otherwise continue to the next step.\" A bare `{tool:core_escalate}` line gives the agent a call with no *when*, *why*, or *what's next*.\n- Consume every fetched result. When a step calls `{tool:core_get_user_context}`, a later step must use what it returned (the manager, the email, the department) — otherwise drop the call. Side-effecting org tools are the exception: their value is the external write itself.\n- `core_research_answer` searches the internal knowledge base — name it explicitly instead of writing an ambiguous \"research the issue\".\n\n## Access rules — grant through the rule you mean\n\n- To grant access through one specific access rule, put the rule's chip in the grant step next to `{tool:core_handle_access}`: \"2. Use {tool:core_handle_access} to give the requester {access-rule:7c41...}.\" The chip renders as the rule's name and id. The agent grants through that rule, with its eligibility checks and approvals, and does not search the access catalog by app name.\n- Reference a rule only as `{access-rule:<rule_id>}`, with the `rule_id` from `list_access_rules`. An app named in prose (\"give them Figma access\") makes the agent search the catalog at runtime and choose a rule itself.\n- The rule must exist in the org when the runbook is saved. A token that names an unknown or deleted rule is rejected. A disabled rule can be referenced, but the agent cannot grant through it until it is enabled, so the request escalates instead.\n- When the correct rule depends on the request, give each rule its own branch (\"3. If they need to edit files, give them {access-rule:...}. 4. Otherwise, give them {access-rule:...}.\").\n- An access rule is not a tool: never put a rule id in `tool_ids`. A rule does not count toward the custom-tool limit.\n\n## Structured-input forms — collect several fields in one step\n\n- When a step needs several structured values from the requestor up front (a new-hire's name, start date, and department; the specifics of an equipment order), attach a form instead of writing a chain of clarifying questions. A single missing fact stays a plain clarifying-question step.\n- Reference a form as `{form:<uuid>}` (an org form's `form_id`). The form must already exist when the runbook is saved — a token naming an unknown form is rejected. Reuse before creating: `list_forms` shows the org's existing forms (a form may be referenced by several runbooks); if none fits, create one with `create_form`. Form responses carry the exact token as `reference_token` — copy it verbatim.\n- When `create_form` runs in the same turn as the runbook save and the form's id is not known yet, reference the form by the exact `name` passed to `create_form` — `{form:<name>}` resolves to the form's id on save, as long as the `create_form` call runs first. Never write a placeholder token (`{form:TEMP_FORM_TOKEN}` and the like are rejected).\n- Form fields are typed: `text`, `paragraph`, `email`, `url`, `number`, `date`, `datetime`, `single_select`, `multi_select` — the two select types carry a `choices` list. Mark a field `required` only when the runbook cannot proceed without it.\n- A select takes at most 100 choices, and a choice label at most 75 characters. Slack shows no more, so a form over either limit is refused. Keep each choice short, and put longer detail in the field's `help_text`.\n- Give the form token its own step wrapped in an instruction, like a tool reference: \"2. Collect the onboarding details with {form:1f2a...}.\" At runtime the token expands into field-by-field collection instructions and the agent presents the form to the requestor (an interactive form when the ticket lives in Slack).\n- Forms are not tools: never put a form id in `tool_ids`, never reference `collect_structured_input` yourself (Risotto provisions that collector automatically), and a form does not count toward the 5-custom-tool limit.\n- Consume the collected values in later steps, the same way a fetched tool result must be consumed — a form whose answers nothing uses should be dropped.\n- Editing a form with `update_form` changes it everywhere it is referenced — check `referenced_by_runbooks` on `get_form` before reshaping a shared form. After `delete_form`, update any runbook the response lists in `still_referenced_by`: their tokens render as a removed-form marker until then.\n\n## Knowledge directives — steer retrieval with a chip, never with prose\n\n- Any instruction about *which* knowledge to read is a **directive**, not a sentence: \"never use the internal wiki\", \"only answer from the HR handbook\", \"always use this policy page\". Written as prose it is inert — the runtime filters retrieval from directive records, so the agent reads the sentence and searches everything anyway. Repeating the sentence on every step makes it no more true.\n- Pass directives on the `knowledge_directives` argument of `create_runbook` / `update_runbook`, each with a `ref` you choose, and put its `{knowledge:<ref>}` chip in `content` inside the step the instruction belongs to. The chip is rewritten to the saved directive's id and is what keeps the directive alive; the chip renders as the source's name, so write the sentence around it (`Answer only from {knowledge:hr-only}.`).\n- Three modes: `exclude` (never use that source — active as soon as the runbook matches), `include` (search only the named sources), `pin` (always use one document *instead of* searching, by `source_url` or `kb_id`; `index_id` alone scopes the search to one whole source). `include` and `pin` take effect once the agent commits to the runbook.\n- One directive per instruction, in one step. A source excluded once is excluded for the whole ticket, so a second chip saying the same thing adds nothing.\n- Resolve `index_id` with `list_knowledge_sources` — never guess a source id, and never name a source in prose instead. Directives can only narrow retrieval: a source that is assistant-only (`available_to_ticket_agent: false`) or in another department is refused at save time, because the agent could not read it anyway.\n- Don't exclude a source and pin or allow it in the same runbook — `exclude` wins, so the save is refused. And `pin` replaces the search: a runbook that pins a document escalates when the answer isn't in it, so pin only when that is what you want.\n- Directives already on the runbook are not re-passed: `get_runbook` returns each one with its `{knowledge:<id>}` token — copy the token into the new `content` to keep it, leave it out to delete it.\n\n## Terminal step — end on a tool, not a trailing thought\n\n- End the runbook with `{tool:core_resolve}`, `{tool:core_escalate}`, or `{tool:core_cancel}`, wrapped in a trigger like any other tool reference (\"If the reset succeeded, confirm with the user and use {tool:core_resolve} to close the request.\"). Without one the agent drifts past the runbook into open-ended chat.\n- Department runbooks that only provide guidance may omit the terminal step.\n- A runbook that uses `{tool:core_handle_access}` may list steps after it — a custom tool, a knowledge lookup, an internal comment — and the agent runs them once the access is granted or denied, even when approvers were involved (the run pauses for the decision and continues from the outcome). End such runbooks with a terminal step like any other, and give a denial its own branch when the follow-up differs (\"5. If access was denied, tell the user the request was not approved and use {tool:core_resolve} to close the request.\").\n\n## Request Approval — tagged or runtime approvers\n\n- Use `{tool:core_request_approval}` where a step needs approval before the runbook goes on. Approvers can be tagged in the step or selected at runtime from a prior tool result.\n- For a fixed approver, use an `@` mention: a person, an IdP group, a channel or an approval policy. For the requester's manager or a role such as CFO, tag an approval policy that asks them, or use a tool that returns the required person's email. A name or role written without a tag or a tool lookup is not enough; instruct the agent to escalate instead of guessing.\n- For a runtime approver, first call a referenced tool (including a Script Tool) that returns an approver email. State which output field supplies the email, then instruct `{tool:core_request_approval}` to use that email exactly as returned. No static approver tag, new approval policy, or extra binding field is needed for this pattern. Wire the lookup tool with `{tool:<uuid>}` and include its UUID in `tool_ids`, as for any custom tool.\n- If the lookup fails or returns no valid approver email, use `{tool:core_escalate}`. Never guess an approver or proceed with the protected action.\n- When conditions pick the approvers (\"over $5k, also @Finance\"), write them in the approval step. State whether all or any must approve, and whether to ask sequentially or at once. An approval policy must be the only approver in its call.\n- The run pauses until the approvers decide. Continue with protected actions only after approval. Give a rejection its own branch and keep approver identities out of requester-facing messages.\n\n## Formatting\n\n- Plain text only inside `conditions` and `content`: no markdown bullets, bold, blockquotes, or backticks around `{tool:...}` placeholders.\n- Each numbered step starts on its own line as `1.`, `2.`, … followed by a single space and the step text. No sub-bullets, no leading indentation.\n- Conditions render as a single paragraph — no list markers.\n- Keep the title a ≤6-word summary that adds information beyond the conditions.\n\n## Worked example\n\nConditions:\n\n```\nThe user can't log in to Okta — \"forgot password\", \"locked out\", \"MFA not working\", \"SSO error\", \"password isn't accepted\".\n```\n\nContent:\n\n```\nWhen a user requests an Okta password reset:\n\n1. Ask the user what they are seeing — an Okta lockout screen, an invalid password error, or something else.\n2. Use {tool:core_research_answer} to find internal Okta password reset guidance to share with them.\n3. If they are locked out or need a reset, use {tool:550e8400-e29b-41d4-a716-446655440000} to reset their password in Okta.\n4. If the reset fails or the issue is something else, use {tool:core_escalate} to hand the ticket to a human.\n5. Tell the user the reset is done, share any relevant guidance from step 2, and use {tool:core_resolve} to close the request.\n```\n\nFour to five short steps, one turn each, every tool reference carrying its trigger, the research result consumed in the final step, and a terminal tool on every path.\n"
}

SHA-256 of public snapshot: 460831405a41dcc4eee2f2b6f0333ce7c9767f6831cf9b0f9f4621089d904ced