@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.
- package/README.md +3 -3
- package/dist/api/api-bindings.d.ts +3 -0
- package/dist/api/api-bindings.d.ts.map +1 -0
- package/dist/api/api-bindings.js +2 -0
- package/dist/api/api-bindings.js.map +1 -0
- package/dist/api/session.d.ts +1 -0
- package/dist/api/session.d.ts.map +1 -1
- package/dist/api-bindings.d.ts +101 -0
- package/dist/api-bindings.d.ts.map +1 -0
- package/dist/api-bindings.js +406 -0
- package/dist/api-bindings.js.map +1 -0
- package/dist/channels/arguments.d.ts +116 -0
- package/dist/channels/arguments.d.ts.map +1 -0
- package/dist/channels/arguments.generated.d.ts +15 -0
- package/dist/channels/arguments.generated.d.ts.map +1 -0
- package/dist/channels/arguments.generated.js +181 -0
- package/dist/channels/arguments.generated.js.map +1 -0
- package/dist/channels/arguments.js +8 -0
- package/dist/channels/arguments.js.map +1 -0
- package/dist/channels/module.d.ts +5 -0
- package/dist/channels/module.d.ts.map +1 -1
- package/dist/channels/module.js +10 -5
- package/dist/channels/module.js.map +1 -1
- package/dist/channels/tools.d.ts.map +1 -1
- package/dist/channels/tools.js +22 -59
- package/dist/channels/tools.js.map +1 -1
- package/dist/channels/types.d.ts +5 -0
- package/dist/channels/types.d.ts.map +1 -1
- package/dist/child/session.d.ts +5 -0
- package/dist/child/session.d.ts.map +1 -1
- package/dist/child/session.js +2 -0
- package/dist/child/session.js.map +1 -1
- package/dist/clock.d.ts +80 -0
- package/dist/clock.d.ts.map +1 -0
- package/dist/clock.js +169 -0
- package/dist/clock.js.map +1 -0
- package/dist/command-parameters.d.ts +37 -5
- package/dist/command-parameters.d.ts.map +1 -1
- package/dist/command-parameters.js +73 -11
- package/dist/command-parameters.js.map +1 -1
- package/dist/connector-tools.d.ts +18 -0
- package/dist/connector-tools.d.ts.map +1 -1
- package/dist/connector-tools.js +49 -6
- package/dist/connector-tools.js.map +1 -1
- package/dist/documents/module.d.ts.map +1 -1
- package/dist/documents/module.js +1 -3
- package/dist/documents/module.js.map +1 -1
- package/dist/documents/tools.d.ts.map +1 -1
- package/dist/documents/tools.js +3 -3
- package/dist/documents/tools.js.map +1 -1
- package/dist/egress.d.ts +23 -0
- package/dist/egress.d.ts.map +1 -0
- package/dist/egress.js +36 -0
- package/dist/egress.js.map +1 -0
- package/dist/issues/index.d.ts +7 -0
- package/dist/issues/index.d.ts.map +1 -0
- package/dist/issues/index.js +4 -0
- package/dist/issues/index.js.map +1 -0
- package/dist/issues/module.d.ts +38 -0
- package/dist/issues/module.d.ts.map +1 -0
- package/dist/issues/module.js +114 -0
- package/dist/issues/module.js.map +1 -0
- package/dist/issues/tool.d.ts +95 -0
- package/dist/issues/tool.d.ts.map +1 -0
- package/dist/issues/tool.js +479 -0
- package/dist/issues/tool.js.map +1 -0
- package/dist/issues/types.d.ts +280 -0
- package/dist/issues/types.d.ts.map +1 -0
- package/dist/issues/types.js +79 -0
- package/dist/issues/types.js.map +1 -0
- package/dist/mcp/cli/command-context.d.ts +20 -1
- package/dist/mcp/cli/command-context.d.ts.map +1 -1
- package/dist/mcp/cli/command-context.js.map +1 -1
- package/dist/mcp/cli/core.d.ts +0 -2
- package/dist/mcp/cli/core.d.ts.map +1 -1
- package/dist/mcp/cli/core.js +9 -33
- package/dist/mcp/cli/core.js.map +1 -1
- package/dist/mcp/cli/handshake-retry.d.ts +5 -0
- package/dist/mcp/cli/handshake-retry.d.ts.map +1 -0
- package/dist/mcp/cli/handshake-retry.js +32 -0
- package/dist/mcp/cli/handshake-retry.js.map +1 -0
- package/dist/mcp/daemon/index.js +3 -4
- package/dist/mcp/daemon/index.js.map +1 -1
- package/dist/mcp/pi-client.d.ts +2 -0
- package/dist/mcp/pi-client.d.ts.map +1 -1
- package/dist/mcp/pi-client.js +5 -1
- package/dist/mcp/pi-client.js.map +1 -1
- package/dist/mcp/pi-mcp-runtime.d.ts +25 -0
- package/dist/mcp/pi-mcp-runtime.d.ts.map +1 -0
- package/dist/mcp/pi-mcp-runtime.js +215 -0
- package/dist/mcp/pi-mcp-runtime.js.map +1 -0
- package/dist/mcp/pi-runtime.d.ts +7 -0
- package/dist/mcp/pi-runtime.d.ts.map +1 -0
- package/dist/mcp/pi-runtime.js +26 -0
- package/dist/mcp/pi-runtime.js.map +1 -0
- package/dist/mcp-chunks/chunk-3UVHZECT.js +31 -0
- package/dist/mcp-chunks/{chunk-PO2SOBEN.js → chunk-CGJ2XOSF.js} +43 -35
- package/dist/mcp-chunks/{chunk-GTETFUPQ.js → chunk-IMG2JMBS.js} +8 -8
- package/dist/mcp-chunks/{chunk-UFV6SVQG.js → chunk-LQKMNWDE.js} +2 -2
- package/dist/mcp-chunks/{chunk-S2F7DDP5.js → chunk-QUDOU7MQ.js} +1 -1
- package/dist/mcp-chunks/{cli-IYD7Y7MO.js → cli-BM23ZXPJ.js} +54 -54
- package/dist/mcp-chunks/{client-5MNBV3Z7.js → client-RKTAKDAY.js} +7 -7
- package/dist/mcp-chunks/{daemon-command-V3B3EMXD.js → daemon-command-VU6WTFCJ.js} +8 -8
- package/dist/mcp-chunks/{generate-cli-runner-PW5WJ7KI.js → generate-cli-runner-JAAPSWGX.js} +12 -12
- package/dist/mcp-chunks/{generated-daemon-runtime-3C4NWGAU.js → generated-daemon-runtime-LX4L2X7Z.js} +8 -8
- package/dist/mcp-chunks/pi-mcp-runtime-GHDEPXUL.js +1231 -0
- package/dist/mcp-chunks/{runtime-RMI3XCYJ.js → runtime-T63YI7TC.js} +6 -6
- package/dist/mcp-chunks/{serve-command-UF5SVREV.js → serve-command-75P4VBJ6.js} +7 -7
- package/dist/mcp-daemon.js +21 -19
- package/dist/mcp-run-worker.js +11 -10
- package/dist/pi-extension.d.ts +3 -0
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +82 -18
- package/dist/pi-extension.js.map +1 -1
- package/dist/productivity/arguments.d.ts +298 -0
- package/dist/productivity/arguments.d.ts.map +1 -0
- package/dist/productivity/arguments.generated.d.ts +28 -0
- package/dist/productivity/arguments.generated.d.ts.map +1 -0
- package/dist/productivity/arguments.generated.js +489 -0
- package/dist/productivity/arguments.generated.js.map +1 -0
- package/dist/productivity/arguments.js +10 -0
- package/dist/productivity/arguments.js.map +1 -0
- package/dist/productivity/http.d.ts.map +1 -1
- package/dist/productivity/http.js +12 -22
- package/dist/productivity/http.js.map +1 -1
- package/dist/productivity/index.d.ts +1 -1
- package/dist/productivity/index.d.ts.map +1 -1
- package/dist/productivity/index.js +1 -1
- package/dist/productivity/index.js.map +1 -1
- package/dist/productivity/module.d.ts +15 -2
- package/dist/productivity/module.d.ts.map +1 -1
- package/dist/productivity/module.js +24 -21
- package/dist/productivity/module.js.map +1 -1
- package/dist/productivity/tools.d.ts +6 -0
- package/dist/productivity/tools.d.ts.map +1 -1
- package/dist/productivity/tools.js +64 -224
- package/dist/productivity/tools.js.map +1 -1
- package/dist/productivity/types.d.ts +2 -0
- package/dist/productivity/types.d.ts.map +1 -1
- package/dist/productivity/types.js.map +1 -1
- package/dist/recipe/agent.d.ts +40 -10
- package/dist/recipe/agent.d.ts.map +1 -1
- package/dist/recipe/agent.js +209 -30
- package/dist/recipe/agent.js.map +1 -1
- package/dist/recipe/companions.d.ts +2 -1
- package/dist/recipe/companions.d.ts.map +1 -1
- package/dist/recipe/companions.js +11 -9
- package/dist/recipe/companions.js.map +1 -1
- package/dist/recipe/manifest.generated.d.ts +4 -1
- package/dist/recipe/manifest.generated.d.ts.map +1 -1
- package/dist/recipe/manifest.generated.js +5 -2
- package/dist/recipe/manifest.generated.js.map +1 -1
- package/dist/recipe/package.d.ts +28 -3
- package/dist/recipe/package.d.ts.map +1 -1
- package/dist/recipe/package.js +155 -1
- package/dist/recipe/package.js.map +1 -1
- package/dist/recipe/providers.d.ts +62 -0
- package/dist/recipe/providers.d.ts.map +1 -0
- package/dist/recipe/providers.js +95 -0
- package/dist/recipe/providers.js.map +1 -0
- package/dist/recipe/resolve.d.ts +7 -3
- package/dist/recipe/resolve.d.ts.map +1 -1
- package/dist/recipe/resolve.js +7 -2
- package/dist/recipe/resolve.js.map +1 -1
- package/dist/run-controller.d.ts +6 -0
- package/dist/run-controller.d.ts.map +1 -1
- package/dist/run-controller.js +2 -0
- package/dist/run-controller.js.map +1 -1
- package/dist/search/egress.d.ts +12 -0
- package/dist/search/egress.d.ts.map +1 -0
- package/dist/search/egress.js +24 -0
- package/dist/search/egress.js.map +1 -0
- package/dist/search/http.d.ts +16 -0
- package/dist/search/http.d.ts.map +1 -0
- package/dist/search/http.js +75 -0
- package/dist/search/http.js.map +1 -0
- package/dist/search/index.d.ts +10 -0
- package/dist/search/index.d.ts.map +1 -0
- package/dist/search/index.js +5 -0
- package/dist/search/index.js.map +1 -0
- package/dist/search/mcp.d.ts +58 -0
- package/dist/search/mcp.d.ts.map +1 -0
- package/dist/search/mcp.js +84 -0
- package/dist/search/mcp.js.map +1 -0
- package/dist/search/module.d.ts +28 -0
- package/dist/search/module.d.ts.map +1 -0
- package/dist/search/module.js +49 -0
- package/dist/search/module.js.map +1 -0
- package/dist/search/tool.d.ts +101 -0
- package/dist/search/tool.d.ts.map +1 -0
- package/dist/search/tool.js +518 -0
- package/dist/search/tool.js.map +1 -0
- package/dist/search/types.d.ts +257 -0
- package/dist/search/types.d.ts.map +1 -0
- package/dist/search/types.js +63 -0
- package/dist/search/types.js.map +1 -0
- package/dist/session.d.ts +21 -1
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +132 -43
- package/dist/session.js.map +1 -1
- package/dist/test-utils.d.ts +2 -0
- package/dist/test-utils.d.ts.map +1 -1
- package/dist/test-utils.js +3 -1
- package/dist/test-utils.js.map +1 -1
- package/dist/tool-search.d.ts +9 -0
- package/dist/tool-search.d.ts.map +1 -1
- package/dist/tool-search.js +23 -0
- package/dist/tool-search.js.map +1 -1
- package/dist/tools/bridge.d.ts +44 -0
- package/dist/tools/bridge.d.ts.map +1 -0
- package/dist/tools/bridge.js +106 -0
- package/dist/tools/bridge.js.map +1 -0
- package/dist/tools/cli.d.ts +20 -0
- package/dist/tools/cli.d.ts.map +1 -0
- package/dist/tools/cli.js +246 -0
- package/dist/tools/cli.js.map +1 -0
- package/dist/tools/entry.d.ts +2 -0
- package/dist/tools/entry.d.ts.map +1 -0
- package/dist/tools/entry.js +3 -0
- package/dist/tools/entry.js.map +1 -0
- package/dist/tools/shell.d.ts +12 -0
- package/dist/tools/shell.d.ts.map +1 -0
- package/dist/tools/shell.js +50 -0
- package/dist/tools/shell.js.map +1 -0
- package/dist/tuning/tpe.d.ts +112 -0
- package/dist/tuning/tpe.d.ts.map +1 -0
- package/dist/tuning/tpe.js +286 -0
- package/dist/tuning/tpe.js.map +1 -0
- package/docs/README.md +4 -1
- package/docs/channels/README.md +10 -0
- package/docs/documents/README.md +20 -19
- package/docs/host-api.md +10 -0
- package/docs/issues/README.md +183 -0
- package/docs/mcp-configuration.md +67 -2
- package/docs/pi-extension.md +5 -0
- package/docs/productivity/README.md +8 -3
- package/docs/providers.md +321 -0
- package/docs/recipe-format.md +103 -32
- package/docs/search/README.md +818 -0
- package/package.json +33 -10
- package/skills/documents/SKILL.md +2 -1
- package/skills/search/SKILL.md +72 -0
- package/dist/mcp-chunks/{auth-command-M7TQE3AL.js → auth-command-UYFOGGQR.js} +6 -6
- package/dist/mcp-chunks/{call-command-7LD7UEFK.js → call-command-6U5BNDR7.js} +17 -17
- package/dist/mcp-chunks/{chunk-PSE442BC.js → chunk-36D4FILJ.js} +26 -26
- package/dist/mcp-chunks/{config-command-6DXILFNO.js → config-command-ZSPJI34E.js} +10 -10
- package/dist/mcp-chunks/{emit-ts-command-NDCDFDRM.js → emit-ts-command-SY4LQE4S.js} +3 -3
- package/dist/mcp-chunks/{inspect-cli-command-4MGF5CPP.js → inspect-cli-command-JPX4ON6N.js} +4 -4
- package/dist/mcp-chunks/{resource-command-SRFQQROJ.js → resource-command-DUY4SVE5.js} +4 -4
package/docs/recipe-format.md
CHANGED
|
@@ -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>
|
|
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
|
-
{
|
|
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
|
|
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
|
|
494
|
-
|
|
|
495
|
-
| `ask_user_question`
|
|
496
|
-
| `show_artifact`
|
|
497
|
-
| `review_artifacts`
|
|
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
|
|
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 {
|
|
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
|
|
743
|
-
|
|
|
744
|
-
| `id`
|
|
745
|
-
| `title`
|
|
746
|
-
| `check`
|
|
747
|
-
| `inputs`
|
|
748
|
-
| `sources`
|
|
749
|
-
| `approved_by`, `approved_at`, `approved_in` | Who approved the case, when, and in which message. All empty means a draft.
|
|
750
|
-
| `approved_hash`
|
|
751
|
-
| `conversation`
|
|
752
|
-
| `issue`
|
|
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
|
|
846
|
-
|
|
|
847
|
-
| `pi.evals_case_unknown`
|
|
848
|
-
| `pi.evals_case_duplicate`
|
|
849
|
-
| `pi.evals_case_unapproved`
|
|
850
|
-
| `pi.evals_case_row_missing_id` | error
|
|
851
|
-
| `pi.evals_case_invalid`
|
|
852
|
-
| `pi.evals_judge_unknown`
|
|
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
|
|