@introspection-ai/recipes 0.50.0 → 0.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/README.md +3 -3
  2. package/dist/api/api-bindings.d.ts +3 -0
  3. package/dist/api/api-bindings.d.ts.map +1 -0
  4. package/dist/api/api-bindings.js +2 -0
  5. package/dist/api/api-bindings.js.map +1 -0
  6. package/dist/api/session.d.ts +1 -0
  7. package/dist/api/session.d.ts.map +1 -1
  8. package/dist/api-bindings.d.ts +101 -0
  9. package/dist/api-bindings.d.ts.map +1 -0
  10. package/dist/api-bindings.js +406 -0
  11. package/dist/api-bindings.js.map +1 -0
  12. package/dist/channels/arguments.d.ts +116 -0
  13. package/dist/channels/arguments.d.ts.map +1 -0
  14. package/dist/channels/arguments.generated.d.ts +15 -0
  15. package/dist/channels/arguments.generated.d.ts.map +1 -0
  16. package/dist/channels/arguments.generated.js +181 -0
  17. package/dist/channels/arguments.generated.js.map +1 -0
  18. package/dist/channels/arguments.js +8 -0
  19. package/dist/channels/arguments.js.map +1 -0
  20. package/dist/channels/module.d.ts +5 -0
  21. package/dist/channels/module.d.ts.map +1 -1
  22. package/dist/channels/module.js +10 -5
  23. package/dist/channels/module.js.map +1 -1
  24. package/dist/channels/tools.d.ts.map +1 -1
  25. package/dist/channels/tools.js +22 -59
  26. package/dist/channels/tools.js.map +1 -1
  27. package/dist/channels/types.d.ts +5 -0
  28. package/dist/channels/types.d.ts.map +1 -1
  29. package/dist/child/session.d.ts +5 -0
  30. package/dist/child/session.d.ts.map +1 -1
  31. package/dist/child/session.js +2 -0
  32. package/dist/child/session.js.map +1 -1
  33. package/dist/clock.d.ts +80 -0
  34. package/dist/clock.d.ts.map +1 -0
  35. package/dist/clock.js +169 -0
  36. package/dist/clock.js.map +1 -0
  37. package/dist/command-parameters.d.ts +37 -5
  38. package/dist/command-parameters.d.ts.map +1 -1
  39. package/dist/command-parameters.js +73 -11
  40. package/dist/command-parameters.js.map +1 -1
  41. package/dist/connector-tools.d.ts +18 -0
  42. package/dist/connector-tools.d.ts.map +1 -1
  43. package/dist/connector-tools.js +49 -6
  44. package/dist/connector-tools.js.map +1 -1
  45. package/dist/documents/module.d.ts.map +1 -1
  46. package/dist/documents/module.js +1 -3
  47. package/dist/documents/module.js.map +1 -1
  48. package/dist/documents/tools.d.ts.map +1 -1
  49. package/dist/documents/tools.js +3 -3
  50. package/dist/documents/tools.js.map +1 -1
  51. package/dist/egress.d.ts +23 -0
  52. package/dist/egress.d.ts.map +1 -0
  53. package/dist/egress.js +36 -0
  54. package/dist/egress.js.map +1 -0
  55. package/dist/issues/index.d.ts +7 -0
  56. package/dist/issues/index.d.ts.map +1 -0
  57. package/dist/issues/index.js +4 -0
  58. package/dist/issues/index.js.map +1 -0
  59. package/dist/issues/module.d.ts +38 -0
  60. package/dist/issues/module.d.ts.map +1 -0
  61. package/dist/issues/module.js +114 -0
  62. package/dist/issues/module.js.map +1 -0
  63. package/dist/issues/tool.d.ts +95 -0
  64. package/dist/issues/tool.d.ts.map +1 -0
  65. package/dist/issues/tool.js +479 -0
  66. package/dist/issues/tool.js.map +1 -0
  67. package/dist/issues/types.d.ts +280 -0
  68. package/dist/issues/types.d.ts.map +1 -0
  69. package/dist/issues/types.js +79 -0
  70. package/dist/issues/types.js.map +1 -0
  71. package/dist/mcp/cli/command-context.d.ts +20 -1
  72. package/dist/mcp/cli/command-context.d.ts.map +1 -1
  73. package/dist/mcp/cli/command-context.js.map +1 -1
  74. package/dist/mcp/cli/core.d.ts +0 -2
  75. package/dist/mcp/cli/core.d.ts.map +1 -1
  76. package/dist/mcp/cli/core.js +9 -33
  77. package/dist/mcp/cli/core.js.map +1 -1
  78. package/dist/mcp/cli/handshake-retry.d.ts +5 -0
  79. package/dist/mcp/cli/handshake-retry.d.ts.map +1 -0
  80. package/dist/mcp/cli/handshake-retry.js +32 -0
  81. package/dist/mcp/cli/handshake-retry.js.map +1 -0
  82. package/dist/mcp/daemon/index.js +3 -4
  83. package/dist/mcp/daemon/index.js.map +1 -1
  84. package/dist/mcp/pi-client.d.ts +2 -0
  85. package/dist/mcp/pi-client.d.ts.map +1 -1
  86. package/dist/mcp/pi-client.js +5 -1
  87. package/dist/mcp/pi-client.js.map +1 -1
  88. package/dist/mcp/pi-mcp-runtime.d.ts +25 -0
  89. package/dist/mcp/pi-mcp-runtime.d.ts.map +1 -0
  90. package/dist/mcp/pi-mcp-runtime.js +215 -0
  91. package/dist/mcp/pi-mcp-runtime.js.map +1 -0
  92. package/dist/mcp/pi-runtime.d.ts +7 -0
  93. package/dist/mcp/pi-runtime.d.ts.map +1 -0
  94. package/dist/mcp/pi-runtime.js +26 -0
  95. package/dist/mcp/pi-runtime.js.map +1 -0
  96. package/dist/mcp-chunks/chunk-3UVHZECT.js +31 -0
  97. package/dist/mcp-chunks/{chunk-PO2SOBEN.js → chunk-CGJ2XOSF.js} +43 -35
  98. package/dist/mcp-chunks/{chunk-GTETFUPQ.js → chunk-IMG2JMBS.js} +8 -8
  99. package/dist/mcp-chunks/{chunk-UFV6SVQG.js → chunk-LQKMNWDE.js} +2 -2
  100. package/dist/mcp-chunks/{chunk-S2F7DDP5.js → chunk-QUDOU7MQ.js} +1 -1
  101. package/dist/mcp-chunks/{cli-IYD7Y7MO.js → cli-BM23ZXPJ.js} +54 -54
  102. package/dist/mcp-chunks/{client-5MNBV3Z7.js → client-RKTAKDAY.js} +7 -7
  103. package/dist/mcp-chunks/{daemon-command-V3B3EMXD.js → daemon-command-VU6WTFCJ.js} +8 -8
  104. package/dist/mcp-chunks/{generate-cli-runner-PW5WJ7KI.js → generate-cli-runner-JAAPSWGX.js} +12 -12
  105. package/dist/mcp-chunks/{generated-daemon-runtime-3C4NWGAU.js → generated-daemon-runtime-LX4L2X7Z.js} +8 -8
  106. package/dist/mcp-chunks/pi-mcp-runtime-GHDEPXUL.js +1231 -0
  107. package/dist/mcp-chunks/{runtime-RMI3XCYJ.js → runtime-T63YI7TC.js} +6 -6
  108. package/dist/mcp-chunks/{serve-command-UF5SVREV.js → serve-command-75P4VBJ6.js} +7 -7
  109. package/dist/mcp-daemon.js +21 -19
  110. package/dist/mcp-run-worker.js +11 -10
  111. package/dist/pi-extension.d.ts +3 -0
  112. package/dist/pi-extension.d.ts.map +1 -1
  113. package/dist/pi-extension.js +82 -18
  114. package/dist/pi-extension.js.map +1 -1
  115. package/dist/productivity/arguments.d.ts +298 -0
  116. package/dist/productivity/arguments.d.ts.map +1 -0
  117. package/dist/productivity/arguments.generated.d.ts +28 -0
  118. package/dist/productivity/arguments.generated.d.ts.map +1 -0
  119. package/dist/productivity/arguments.generated.js +489 -0
  120. package/dist/productivity/arguments.generated.js.map +1 -0
  121. package/dist/productivity/arguments.js +10 -0
  122. package/dist/productivity/arguments.js.map +1 -0
  123. package/dist/productivity/http.d.ts.map +1 -1
  124. package/dist/productivity/http.js +12 -22
  125. package/dist/productivity/http.js.map +1 -1
  126. package/dist/productivity/index.d.ts +1 -1
  127. package/dist/productivity/index.d.ts.map +1 -1
  128. package/dist/productivity/index.js +1 -1
  129. package/dist/productivity/index.js.map +1 -1
  130. package/dist/productivity/module.d.ts +15 -2
  131. package/dist/productivity/module.d.ts.map +1 -1
  132. package/dist/productivity/module.js +24 -21
  133. package/dist/productivity/module.js.map +1 -1
  134. package/dist/productivity/tools.d.ts +6 -0
  135. package/dist/productivity/tools.d.ts.map +1 -1
  136. package/dist/productivity/tools.js +64 -224
  137. package/dist/productivity/tools.js.map +1 -1
  138. package/dist/productivity/types.d.ts +2 -0
  139. package/dist/productivity/types.d.ts.map +1 -1
  140. package/dist/productivity/types.js.map +1 -1
  141. package/dist/recipe/agent.d.ts +40 -10
  142. package/dist/recipe/agent.d.ts.map +1 -1
  143. package/dist/recipe/agent.js +209 -30
  144. package/dist/recipe/agent.js.map +1 -1
  145. package/dist/recipe/companions.d.ts +2 -1
  146. package/dist/recipe/companions.d.ts.map +1 -1
  147. package/dist/recipe/companions.js +11 -9
  148. package/dist/recipe/companions.js.map +1 -1
  149. package/dist/recipe/manifest.generated.d.ts +4 -1
  150. package/dist/recipe/manifest.generated.d.ts.map +1 -1
  151. package/dist/recipe/manifest.generated.js +5 -2
  152. package/dist/recipe/manifest.generated.js.map +1 -1
  153. package/dist/recipe/package.d.ts +28 -3
  154. package/dist/recipe/package.d.ts.map +1 -1
  155. package/dist/recipe/package.js +155 -1
  156. package/dist/recipe/package.js.map +1 -1
  157. package/dist/recipe/providers.d.ts +62 -0
  158. package/dist/recipe/providers.d.ts.map +1 -0
  159. package/dist/recipe/providers.js +95 -0
  160. package/dist/recipe/providers.js.map +1 -0
  161. package/dist/recipe/resolve.d.ts +7 -3
  162. package/dist/recipe/resolve.d.ts.map +1 -1
  163. package/dist/recipe/resolve.js +7 -2
  164. package/dist/recipe/resolve.js.map +1 -1
  165. package/dist/run-controller.d.ts +6 -0
  166. package/dist/run-controller.d.ts.map +1 -1
  167. package/dist/run-controller.js +2 -0
  168. package/dist/run-controller.js.map +1 -1
  169. package/dist/search/egress.d.ts +12 -0
  170. package/dist/search/egress.d.ts.map +1 -0
  171. package/dist/search/egress.js +24 -0
  172. package/dist/search/egress.js.map +1 -0
  173. package/dist/search/http.d.ts +16 -0
  174. package/dist/search/http.d.ts.map +1 -0
  175. package/dist/search/http.js +75 -0
  176. package/dist/search/http.js.map +1 -0
  177. package/dist/search/index.d.ts +10 -0
  178. package/dist/search/index.d.ts.map +1 -0
  179. package/dist/search/index.js +5 -0
  180. package/dist/search/index.js.map +1 -0
  181. package/dist/search/mcp.d.ts +58 -0
  182. package/dist/search/mcp.d.ts.map +1 -0
  183. package/dist/search/mcp.js +84 -0
  184. package/dist/search/mcp.js.map +1 -0
  185. package/dist/search/module.d.ts +28 -0
  186. package/dist/search/module.d.ts.map +1 -0
  187. package/dist/search/module.js +49 -0
  188. package/dist/search/module.js.map +1 -0
  189. package/dist/search/tool.d.ts +101 -0
  190. package/dist/search/tool.d.ts.map +1 -0
  191. package/dist/search/tool.js +518 -0
  192. package/dist/search/tool.js.map +1 -0
  193. package/dist/search/types.d.ts +257 -0
  194. package/dist/search/types.d.ts.map +1 -0
  195. package/dist/search/types.js +63 -0
  196. package/dist/search/types.js.map +1 -0
  197. package/dist/session.d.ts +21 -1
  198. package/dist/session.d.ts.map +1 -1
  199. package/dist/session.js +132 -43
  200. package/dist/session.js.map +1 -1
  201. package/dist/test-utils.d.ts +2 -0
  202. package/dist/test-utils.d.ts.map +1 -1
  203. package/dist/test-utils.js +3 -1
  204. package/dist/test-utils.js.map +1 -1
  205. package/dist/tool-search.d.ts +9 -0
  206. package/dist/tool-search.d.ts.map +1 -1
  207. package/dist/tool-search.js +23 -0
  208. package/dist/tool-search.js.map +1 -1
  209. package/dist/tools/bridge.d.ts +44 -0
  210. package/dist/tools/bridge.d.ts.map +1 -0
  211. package/dist/tools/bridge.js +106 -0
  212. package/dist/tools/bridge.js.map +1 -0
  213. package/dist/tools/cli.d.ts +20 -0
  214. package/dist/tools/cli.d.ts.map +1 -0
  215. package/dist/tools/cli.js +246 -0
  216. package/dist/tools/cli.js.map +1 -0
  217. package/dist/tools/entry.d.ts +2 -0
  218. package/dist/tools/entry.d.ts.map +1 -0
  219. package/dist/tools/entry.js +3 -0
  220. package/dist/tools/entry.js.map +1 -0
  221. package/dist/tools/shell.d.ts +12 -0
  222. package/dist/tools/shell.d.ts.map +1 -0
  223. package/dist/tools/shell.js +50 -0
  224. package/dist/tools/shell.js.map +1 -0
  225. package/dist/tuning/tpe.d.ts +112 -0
  226. package/dist/tuning/tpe.d.ts.map +1 -0
  227. package/dist/tuning/tpe.js +286 -0
  228. package/dist/tuning/tpe.js.map +1 -0
  229. package/docs/README.md +4 -1
  230. package/docs/channels/README.md +10 -0
  231. package/docs/documents/README.md +20 -19
  232. package/docs/host-api.md +10 -0
  233. package/docs/issues/README.md +183 -0
  234. package/docs/mcp-configuration.md +67 -2
  235. package/docs/pi-extension.md +5 -0
  236. package/docs/productivity/README.md +8 -3
  237. package/docs/providers.md +321 -0
  238. package/docs/recipe-format.md +103 -32
  239. package/docs/search/README.md +818 -0
  240. package/package.json +33 -10
  241. package/skills/documents/SKILL.md +2 -1
  242. package/skills/search/SKILL.md +72 -0
  243. package/dist/mcp-chunks/{auth-command-M7TQE3AL.js → auth-command-UYFOGGQR.js} +6 -6
  244. package/dist/mcp-chunks/{call-command-7LD7UEFK.js → call-command-6U5BNDR7.js} +17 -17
  245. package/dist/mcp-chunks/{chunk-PSE442BC.js → chunk-36D4FILJ.js} +26 -26
  246. package/dist/mcp-chunks/{config-command-6DXILFNO.js → config-command-ZSPJI34E.js} +10 -10
  247. package/dist/mcp-chunks/{emit-ts-command-NDCDFDRM.js → emit-ts-command-SY4LQE4S.js} +3 -3
  248. package/dist/mcp-chunks/{inspect-cli-command-4MGF5CPP.js → inspect-cli-command-JPX4ON6N.js} +4 -4
  249. package/dist/mcp-chunks/{resource-command-SRFQQROJ.js → resource-command-DUY4SVE5.js} +4 -4
@@ -96,7 +96,7 @@ Recipe MUST contain at least one agent.
96
96
  name: agent
97
97
  description: Produce a sourced research brief.
98
98
  ai:
99
- model: <provider>/<model> # one Pi has credentials for: pi --list-models
99
+ model: <provider>/<model> # one Pi has credentials for: pi --list-models
100
100
  thinking_level: high
101
101
  options:
102
102
  max_tokens: 4096
@@ -285,7 +285,10 @@ object holding a command allowlist per tool. A second provider is refused.
285
285
  {
286
286
  "pi": {
287
287
  "productivity": [
288
- { "provider": "microsoft", "tools": { "mail": ["search", "read", "draft"] } }
288
+ {
289
+ "provider": "microsoft",
290
+ "tools": { "mail": ["search", "read", "draft"] }
291
+ }
289
292
  ]
290
293
  }
291
294
  }
@@ -352,6 +355,7 @@ suggest: true
352
355
  description: Redline a contract against our playbook
353
356
  argument-hint: "[contract]"
354
357
  ---
358
+
355
359
  Redline ${1:-the attached contract} against the playbook. Today is {{today}}.
356
360
  ```
357
361
 
@@ -474,8 +478,7 @@ dependencies from its lockfile, and nothing is fetched at run time. A check
474
478
  run without `node_modules` cannot see dependency skills, so a skill an agent
475
479
  selects that is not in the Recipe is a warning there rather than an error.
476
480
 
477
- Document profiles use a different path. A Recipe such as
478
- [`introspection-org/recipe-redlining`](https://github.com/introspection-org/recipe-redlining)
481
+ Document profiles use a different path. A Recipe that reviews redlines, say,
479
482
  selects a profile in `pi.documents`, from a pinned docx package or the host
480
483
  default (see [First-party packages](#first-party-packages)); the `documents`
481
484
  tool delivers the core `documents` skill and that profile itself, for agents
@@ -490,20 +493,20 @@ Besides Pi's own tools (`read`, `bash`, `edit`, `write`, `grep`, `find`,
490
493
  `ls`), Recipes provides these built-in tools, available only to an agent that
491
494
  lists them in `tools`:
492
495
 
493
- | Tool | What it does |
494
- | --- | --- |
495
- | `ask_user_question` | Asks the user one to four multiple-choice questions and waits for the answers; the user can always type their own answer. Works in Pi's terminal, on pause/resume hosts and headless. See [Interactions](interactions.md#the-built-in-ask_user_question-tool). |
496
- | `show_artifact` | Shows a markdown file the agent wrote (a brief, test cases, a report) in a panel on the right of Pi's terminal, and adds `/recipe view`; Esc closes it. Elsewhere it returns the file's path as text. See [Pi extension](pi-extension.md#artifact-panel). |
497
- | `review_artifacts` | Asks the user to review several markdown files the agent wrote, one decision per file (approve, or request changes saying what to change). In Pi's terminal each file shows in the artifact panel; other hosts render their own review. See [Pi extension](pi-extension.md#reviewing-several-files). |
498
- | `introspection_open` | Asks the person to open an Introspection page (install GitHub or Slack, add a connector, connect their own account, set up sign-in, connect a Runtime's MCP server, look at a Runtime or task) and, with `wait: true`, pauses until they are done. In Pi's terminal it runs the Introspection CLI's loopback; pause/resume hosts render a card. See [Interactions](interactions.md#the-built-in-introspection_open-tool). |
496
+ | Tool | What it does |
497
+ | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
498
+ | `ask_user_question` | Asks the user one to four multiple-choice questions and waits for the answers; the user can always type their own answer. Works in Pi's terminal, on pause/resume hosts and headless. See [Interactions](interactions.md#the-built-in-ask_user_question-tool). |
499
+ | `show_artifact` | Shows a markdown file the agent wrote (a brief, test cases, a report) in a panel on the right of Pi's terminal, and adds `/recipe view`; Esc closes it. Elsewhere it returns the file's path as text. See [Pi extension](pi-extension.md#artifact-panel). |
500
+ | `review_artifacts` | Asks the user to review several markdown files the agent wrote, one decision per file (approve, or request changes saying what to change). In Pi's terminal each file shows in the artifact panel; other hosts render their own review. See [Pi extension](pi-extension.md#reviewing-several-files). |
499
501
  | `introspection_open` | Asks the person to open an Introspection page (install GitHub or Slack, add a connector, connect their own account, set up sign-in, connect a Runtime's MCP server, look at a Runtime or task) and, with `wait: true`, pauses until they are done. In Pi's terminal it runs the Introspection CLI's loopback; pause/resume hosts render a card. See [Interactions](interactions.md#the-built-in-introspection_open-tool). |
502
+ | `today` | Returns the current date, weekday and time, with the time zone and its UTC offset: the person's, or, with `time_zone`, another zone's. It reads the session's clock (see [Current date](#current-date)). |
500
503
 
501
504
  ```yaml
502
505
  tools: [read, bash, ask_user_question, show_artifact]
503
506
  ```
504
507
 
505
- If a Recipe extension registers its own `ask_user_question`, the host keeps
506
- the Recipe's tool and does not register the built-in one. This exception to
508
+ If a Recipe extension registers its own `ask_user_question` or `today`, the
509
+ host keeps the Recipe's tool and does not register the built-in one. This exception to
507
510
  the rule below lets a Recipe migrate from its own question tool without a
508
511
  coordinated release; new Recipes list the built-in tool instead.
509
512
 
@@ -528,6 +531,70 @@ catalog of a required server declared `"discovery": "defer"`.
528
531
  See [MCP configuration](mcp-configuration.md) for the complete authored and
529
532
  binding grammar.
530
533
 
534
+ `tools` takes two forms. A list names the tools the agent may call, each
535
+ declared to the model; `tools: []` is an agent with none. A mapping adds
536
+ how they reach the model, with the selectors an [`mcp` server
537
+ entry](mcp-configuration.md) takes and the same `mode`:
538
+
539
+ ```yaml
540
+ tools: [read, bash, issues, mail]
541
+
542
+ tools:
543
+ mode: codemode # tools (default) | codemode | cli
544
+ include: [read, bash, issues, mail]
545
+ eager: [issues]
546
+ ```
547
+
548
+ | Key | Takes | Meaning |
549
+ | --------- | ---------------------------- | ------------------------------------------------------------------------------------- |
550
+ | `include` | names, or `"*"` | The tools the agent may call: the list form is exactly this. |
551
+ | `exclude` | names | Removed after `include`. |
552
+ | `defer` | first-party names, or `"*"` | In `tools` mode, hidden from the model until Pi's `tool_search` loads them. |
553
+ | `eager` | first-party names, or `"*"` | Exceptions to `defer`; in `codemode`, also declared to the model. |
554
+ | `mode` | `tools`, `codemode` or `cli` | How the first-party tools reach the model. Built-ins and a Recipe's own are declared. |
555
+
556
+ `include: ["*"]` selects Pi's tools, the Recipes built-ins above, and the
557
+ first-party tools the Recipe declares in `package.json#pi`: `issues` with
558
+ `pi.issues`, `mail`, `calendar` and `drive` with `pi.productivity` (only the
559
+ ones its `tools` names, when it names any), and `web_search` with `pi.search`.
560
+ A Recipe's own extension and connector tools are never in `*`; name them. A
561
+ tool `*` selects that the host does not offer is left out rather than refused.
562
+
563
+ `mode`, `defer` and `eager` govern only the first-party tools (`issues`,
564
+ `mail`, `calendar`, `drive`, `web_search`):
565
+
566
+ - `tools` declares each one, except those `defer` holds back for tool search.
567
+ - `codemode` keeps each one to codemode scripts (`tools.issues({...})`): it is
568
+ named in the `codemode` tool's description and not declared, so its schema
569
+ costs nothing until a script reads it with `describeTool()`. The agent gets
570
+ the `codemode` tool whenever `tools` or `mcp` asks for codemode, and the
571
+ mode needs Pi 1.3 or newer.
572
+ - `cli` keeps them undeclared and serves them to a `tools` command in each
573
+ `bash` call's shell: `tools list`, `tools search "words"`,
574
+ `tools call issues.search --json '{"query":"checkout"}'` (or `--json -` to
575
+ read the object from stdin) and `tools run` for a script
576
+ (`tools.issues.search({...})`), where a call returns the tool's structured
577
+ result, or its text when it has none. Each call is a nested call of that bash
578
+ call, so hooks, spans and `behind` apply as to any other. The agent selects
579
+ `bash`. The command reaches first-party tools only; a Recipe's MCP servers
580
+ stay on the `mcp` command. The SDK session host serves it; the `pi`
581
+ extension host does not yet.
582
+
583
+ The rules are an `mcp` server's: `defer` is invalid in `codemode` and `cli`,
584
+ `eager` in `cli`, and every `defer` or `eager` name must be one `include`
585
+ selects. A child agent that declares `tools` replaces its parent's whole
586
+ block, mode included, as one that declares `mcp` does.
587
+
588
+ ### Current date
589
+
590
+ Every agent's prompt names the date, with no configuration: the day, the
591
+ date, the time zone and its UTC offset, read from the session's clock in the
592
+ person's time zone (the host's when the host does not give one) and formatted
593
+ in their locale. It names the day but not the time, so the prompt stays the
594
+ same all day and a cached prompt prefix stays valid; an agent that needs the
595
+ time lists `today`, and the prompt then points at it. The productivity tools'
596
+ `calendar list` reads its default range, today and tomorrow, in the same zone.
597
+
531
598
  ## Host responsibilities
532
599
 
533
600
  The Recipe Format owns:
@@ -623,7 +690,10 @@ stdout parsed as JSON (default timeout 300 s, 64 MB output):
623
690
 
624
691
  ```ts
625
692
  import { getRecipeSessionContext } from "@introspection-ai/recipes/extensions";
626
- import { pythonExecutable, runPythonJson } from "@introspection-ai/recipes/python";
693
+ import {
694
+ pythonExecutable,
695
+ runPythonJson,
696
+ } from "@introspection-ai/recipes/python";
627
697
 
628
698
  export default function tables(pi) {
629
699
  const python = pythonExecutable({
@@ -739,17 +809,17 @@ other way round, so a case file never names a path.
739
809
 
740
810
  A case file is YAML front matter, then a body. The front matter:
741
811
 
742
- | Field | Meaning |
743
- | --- | --- |
744
- | `id` | The file name without `.md`. Unique across the Recipe and never reused. Any name safe as a file name. |
745
- | `title` | One line in the owner's words. |
746
- | `check` | `code` (a verifier), `person` (the owner or a reviewer) or `later` (left for a later improvement pass). Only `code` cases get an implementation. |
747
- | `inputs` | A list of `{ name, sha256, location }`: each input by its hash and where it came from. The case file never holds an input; the implementation carries the copy it runs on, such as a Harbor task's `environment/`. |
748
- | `sources` | What the agent must reach for this case, such as `[documents]`. |
749
- | `approved_by`, `approved_at`, `approved_in` | Who approved the case, when, and in which message. All empty means a draft. |
750
- | `approved_hash` | Optional: `sha256:<hex>` of the body when the case was approved, written by `introspection eval approve <id>`. An edited body no longer matches, so the case is unapproved until the owner approves it again. |
751
- | `conversation` | Optional: `{ id, task_id, turn }` of the real conversation the case came from, `task_id` only when it ran as a platform task. Provenance only: a run never fetches it. |
752
- | `issue` | Optional: the UUID of the issue recording the hypothesis the case tests. |
812
+ | Field | Meaning |
813
+ | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
814
+ | `id` | The file name without `.md`. Unique across the Recipe and never reused. Any name safe as a file name. |
815
+ | `title` | One line in the owner's words. |
816
+ | `check` | `code` (a verifier), `person` (the owner or a reviewer) or `later` (left for a later improvement pass). Only `code` cases get an implementation. |
817
+ | `inputs` | A list of `{ name, sha256, location }`: each input by its hash and where it came from. The case file never holds an input; the implementation carries the copy it runs on, such as a Harbor task's `environment/`. |
818
+ | `sources` | What the agent must reach for this case, such as `[documents]`. |
819
+ | `approved_by`, `approved_at`, `approved_in` | Who approved the case, when, and in which message. All empty means a draft. |
820
+ | `approved_hash` | Optional: `sha256:<hex>` of the body when the case was approved, written by `introspection eval approve <id>`. An edited body no longer matches, so the case is unapproved until the owner approves it again. |
821
+ | `conversation` | Optional: `{ id, task_id, turn }` of the real conversation the case came from, `task_id` only when it ran as a platform task. Provenance only: a run never fetches it. |
822
+ | `issue` | Optional: the UUID of the issue recording the hypothesis the case tests. |
753
823
 
754
824
  Unknown keys are allowed: the other fields and the body are for people. By
755
825
  convention the body has the sections Situation, A good result and A bad
@@ -785,6 +855,7 @@ approved_in: msg_01
785
855
  ---
786
856
 
787
857
  ## Situation
858
+
788
859
  ...
789
860
  ```
790
861
 
@@ -842,14 +913,14 @@ eval paths, the links between cases and implementations, and the judges eval
842
913
  code names. A broken link between a case and its implementation, or a broken
843
914
  case file, is an error and fails the check; the rest are warnings:
844
915
 
845
- | Code | Severity | Rule |
846
- | --- | --- | --- |
847
- | `pi.evals_case_unknown` | error | A Vitest row or Harbor task names a case with no case file. |
848
- | `pi.evals_case_duplicate` | error | A case has more than one implementation, on one runner or across both: two rows, two tasks, or a row and a task. Keep one and delete the other. |
849
- | `pi.evals_case_unapproved` | warning | A case with an implementation has an empty approval field, or a body that no longer matches its `approved_hash`; `introspection eval approve <id>` approves it again. It stays a warning: a draft case is how one is proposed, and the owner approves it in review. |
850
- | `pi.evals_case_row_missing_id` | error | A `.eval.jsonl` row has no `case`. |
851
- | `pi.evals_case_invalid` | error | A case file has no readable front matter, an `id` other than its file name, an `issue` that is not a UUID, or an `approved_hash` that is not `sha256:` and 64 hexadecimal digits. |
852
- | `pi.evals_judge_unknown` | warning | A string-literal `recipeJudge("<name>")` in a Vitest suite or the eval `lib`, or `judge_reward("<name>")` in a Harbor task's Python, names an online judge with no definition of that `name` in `judges/`; a `recipeJudge` YAML path, read from the Recipe root, that names a missing file warns too. Names built at run time or passed in a variable are not seen. It stays a warning. |
916
+ | Code | Severity | Rule |
917
+ | ------------------------------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
918
+ | `pi.evals_case_unknown` | error | A Vitest row or Harbor task names a case with no case file. |
919
+ | `pi.evals_case_duplicate` | error | A case has more than one implementation, on one runner or across both: two rows, two tasks, or a row and a task. Keep one and delete the other. |
920
+ | `pi.evals_case_unapproved` | warning | A case with an implementation has an empty approval field, or a body that no longer matches its `approved_hash`; `introspection eval approve <id>` approves it again. It stays a warning: a draft case is how one is proposed, and the owner approves it in review. |
921
+ | `pi.evals_case_row_missing_id` | error | A `.eval.jsonl` row has no `case`. |
922
+ | `pi.evals_case_invalid` | error | A case file has no readable front matter, an `id` other than its file name, an `issue` that is not a UUID, or an `approved_hash` that is not `sha256:` and 64 hexadecimal digits. |
923
+ | `pi.evals_judge_unknown` | warning | A string-literal `recipeJudge("<name>")` in a Vitest suite or the eval `lib`, or `judge_reward("<name>")` in a Harbor task's Python, names an online judge with no definition of that `name` in `judges/`; a `recipeJudge` YAML path, read from the Recipe root, that names a missing file warns too. Names built at run time or passed in a variable are not seen. It stays a warning. |
853
924
 
854
925
  ## Conformance
855
926