@introspection-ai/recipes 0.48.0 → 0.49.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated from package.json by scripts/write-manifest.mjs; do not edit.
|
|
2
2
|
export const RECIPES_MANIFEST = {
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@earendil-works/pi-agent-core": ">=1.1.0 <2.0.0",
|
|
6
6
|
"@earendil-works/pi-ai": ">=1.1.0 <2.0.0",
|
package/docs/recipe-format.md
CHANGED
|
@@ -767,10 +767,10 @@ approved_in: msg_01
|
|
|
767
767
|
...
|
|
768
768
|
```
|
|
769
769
|
|
|
770
|
-
A case has zero or one implementation
|
|
771
|
-
`check: later` and drafts, and one Vitest
|
|
772
|
-
|
|
773
|
-
pushed commit needs a Harbor implementation. Case ids are unique across the
|
|
770
|
+
A case has zero or one implementation, on one runner: zero for
|
|
771
|
+
`check: person`, `check: later` and drafts, and one Vitest row or one Harbor
|
|
772
|
+
task for a `code` case, never both. A case that must run against a deployed
|
|
773
|
+
version or a pushed commit needs a Harbor implementation. Case ids are unique across the
|
|
774
774
|
Recipe, not per suite.
|
|
775
775
|
|
|
776
776
|
- **Vitest.** Each `.eval.jsonl` row names its case with `"case": "<id>"`.
|
|
@@ -817,15 +817,18 @@ evaluation tooling and `recipe-check`.
|
|
|
817
817
|
Recipe. It checks the rest of the layout only for a Recipe that declares
|
|
818
818
|
`pi.evals`; an empty `{}` adopts those checks with the default paths. Those
|
|
819
819
|
checks are Harbor task folders without `task.toml`, eval files outside the
|
|
820
|
-
eval paths,
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
|
825
|
-
|
|
|
826
|
-
| `pi.
|
|
827
|
-
| `pi.
|
|
828
|
-
| `pi.
|
|
820
|
+
eval paths, the links between cases and implementations, and the judges eval
|
|
821
|
+
code names. A broken link between a case and its implementation, or a broken
|
|
822
|
+
case file, is an error and fails the check; the rest are warnings:
|
|
823
|
+
|
|
824
|
+
| Code | Severity | Rule |
|
|
825
|
+
| --- | --- | --- |
|
|
826
|
+
| `pi.evals_case_unknown` | error | A Vitest row or Harbor task names a case with no case file. |
|
|
827
|
+
| `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. |
|
|
828
|
+
| `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. |
|
|
829
|
+
| `pi.evals_case_row_missing_id` | error | A `.eval.jsonl` row has no `case`. |
|
|
830
|
+
| `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. |
|
|
831
|
+
| `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. |
|
|
829
832
|
|
|
830
833
|
## Conformance
|
|
831
834
|
|
package/docs/recipe-judges.md
CHANGED
|
@@ -88,11 +88,15 @@ block is rejected.
|
|
|
88
88
|
`type` says when a judge runs:
|
|
89
89
|
|
|
90
90
|
- `online`, the default: at the end of every runtime conversation.
|
|
91
|
-
- `offline`: at the end of each eval trial. It has the same shape as `online`.
|
|
92
91
|
- `mission`: on a request leaving the sandbox, which a route in the Recipe's
|
|
93
92
|
`policies/routes.yaml` names. Its answers reach the Recipe's Cedar policy
|
|
94
93
|
before the request is allowed.
|
|
95
94
|
|
|
95
|
+
An eval-only judge is defined in its eval suite, not in `judges/`: a Vitest
|
|
96
|
+
`createJudge`, or a judge YAML under `evals/vitest/judges/` loaded by path
|
|
97
|
+
through `recipeJudge`; for Harbor, a RewardKit `[judge]` and `[[criterion]]`
|
|
98
|
+
TOML in the task's `tests/`. `type: offline` reports `judge.type_invalid`.
|
|
99
|
+
|
|
96
100
|
A mission judge asks yes-or-no questions instead of grading against a rubric, and
|
|
97
101
|
the platform chooses the model:
|
|
98
102
|
|
|
@@ -119,8 +123,8 @@ questions:
|
|
|
119
123
|
describes both `true` and `false` in non-empty text.
|
|
120
124
|
- `attributes` lists the request attributes the judge sees, and is empty to show
|
|
121
125
|
them all.
|
|
122
|
-
- `on` and `llm` belong to `online`
|
|
123
|
-
|
|
126
|
+
- `on` and `llm` belong to `online` judges and are rejected on a mission
|
|
127
|
+
judge; `questions` and `attributes` are rejected on online judges.
|
|
124
128
|
|
|
125
129
|
### LLM settings
|
|
126
130
|
|
|
@@ -181,4 +185,4 @@ diagnostics use stable `judge.*` codes, Recipe-relative source paths, useful
|
|
|
181
185
|
help text, and deterministic ordering. YAML syntax failures use
|
|
182
186
|
`judge.yaml_malformed` and include a 1-based source span when the parser
|
|
183
187
|
provides one. An invalid mission judge reports `judge.mission_invalid`, and a
|
|
184
|
-
`type`
|
|
188
|
+
`type` other than `online` and `mission` reports `judge.type_invalid`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@introspection-ai/recipes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"description": "The open format for vertical agents, built on Pi.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -112,10 +112,10 @@
|
|
|
112
112
|
"@introspection-ai/recipe-channel-slack": ">=0.6.0",
|
|
113
113
|
"@introspection-ai/recipe-documents-docx": ">=0.3.0",
|
|
114
114
|
"@introspection-ai/recipe-documents-pdf": ">=0.2.0",
|
|
115
|
-
"@introspection-ai/mcp-client-linux-x64": "0.
|
|
116
|
-
"@introspection-ai/mcp-client-linux-arm64": "0.
|
|
117
|
-
"@introspection-ai/mcp-client-darwin-arm64": "0.
|
|
118
|
-
"@introspection-ai/mcp-client-darwin-x64": "0.
|
|
115
|
+
"@introspection-ai/mcp-client-linux-x64": "0.49.0",
|
|
116
|
+
"@introspection-ai/mcp-client-linux-arm64": "0.49.0",
|
|
117
|
+
"@introspection-ai/mcp-client-darwin-arm64": "0.49.0",
|
|
118
|
+
"@introspection-ai/mcp-client-darwin-x64": "0.49.0"
|
|
119
119
|
},
|
|
120
120
|
"peerDependencies": {
|
|
121
121
|
"@earendil-works/pi-agent-core": ">=1.1.0 <2.0.0",
|