@agentproto/corpus-cli 0.9.4 → 0.10.1
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/dist/cli.mjs +72 -8
- package/dist/cli.mjs.map +1 -1
- package/dist/ports/index.d.ts +25 -0
- package/dist/ports/index.mjs +72 -8
- package/dist/ports/index.mjs.map +1 -1
- package/dist/specs/resources/aip-15/draft/WORKFLOW.schema.json +19 -2
- package/dist/specs/resources/aip-16/draft/IO.schema.json +4 -0
- package/dist/specs/resources/aip-44/draft/ACP.schema.json +3 -1
- package/dist/specs/resources/aip-58/draft/event.schema.json +55 -0
- package/dist/specs/resources/aip-58/draft/journal-entry.schema.json +47 -0
- package/dist/specs/resources/aip-58/draft/run.schema.json +164 -0
- package/dist/specs/resources/aip-58/draft/vectors/README.md +18 -0
- package/dist/specs/resources/aip-58/draft/vectors/v1-invalid-input.json +31 -0
- package/dist/specs/resources/aip-58/draft/vectors/v2-suspended-input-required.json +51 -0
- package/dist/specs/resources/aip-58/draft/vectors/v3-missing-artifact.json +39 -0
- package/dist/specs/resources/aip-58/draft/vectors/v4-host-restart.json +36 -0
- package/dist/specs/resources/aip-58/draft/vectors/v5-disjoint-workspaces.json +60 -0
- package/dist/specs/resources/aip-58/draft/vectors/v6-orphaned.json +29 -0
- package/dist/specs/resources/aip-58/draft/vectors/v7-replay.json +46 -0
- package/dist/specs/resources/aip-58/draft/vectors/v8-heuristic-not-suspend.json +47 -0
- package/package.json +3 -3
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "V7",
|
|
3
|
+
"title": "Replay from step 3 -> new run, steps 1-2 reused from journal",
|
|
4
|
+
"rule": "specs/aip-58.mdx section 6 Journal -- run.replay",
|
|
5
|
+
"originalRun": {
|
|
6
|
+
"runId": "run_orig",
|
|
7
|
+
"status": "succeeded",
|
|
8
|
+
"steps": [
|
|
9
|
+
{ "stepId": "fetch", "status": "succeeded" },
|
|
10
|
+
{ "stepId": "parse", "status": "succeeded" },
|
|
11
|
+
{ "stepId": "draft", "status": "succeeded" },
|
|
12
|
+
{ "stepId": "save", "status": "succeeded" }
|
|
13
|
+
],
|
|
14
|
+
"journal": [
|
|
15
|
+
{ "stepId": "fetch", "attempt": 1, "inputHash": "h1", "status": "succeeded" },
|
|
16
|
+
{ "stepId": "parse", "attempt": 1, "inputHash": "h2", "status": "succeeded" },
|
|
17
|
+
{ "stepId": "draft", "attempt": 1, "inputHash": "h3", "status": "succeeded" },
|
|
18
|
+
{ "stepId": "save", "attempt": 1, "inputHash": "h4", "status": "succeeded" }
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"runReplay": { "of": "run_orig", "fromStep": "draft" },
|
|
22
|
+
"expected": {
|
|
23
|
+
"newRunId": "run_replay (!= run_orig)",
|
|
24
|
+
"rootRunId": "run_replay",
|
|
25
|
+
"parentRunId": null,
|
|
26
|
+
"steps": [
|
|
27
|
+
{ "stepId": "fetch", "status": "succeeded", "sourcedFrom": "journal:run_orig attempt 1", "reExecuted": false },
|
|
28
|
+
{ "stepId": "parse", "status": "succeeded", "sourcedFrom": "journal:run_orig attempt 1", "reExecuted": false },
|
|
29
|
+
{ "stepId": "draft", "status": "pending", "reExecuted": true },
|
|
30
|
+
{ "stepId": "save", "status": "pending", "reExecuted": true }
|
|
31
|
+
],
|
|
32
|
+
"events": [
|
|
33
|
+
"run.created",
|
|
34
|
+
"run.started",
|
|
35
|
+
"step.succeeded",
|
|
36
|
+
"step.succeeded",
|
|
37
|
+
"step.started",
|
|
38
|
+
"..."
|
|
39
|
+
],
|
|
40
|
+
"notes": [
|
|
41
|
+
"run_orig is untouched -- still 'succeeded', still immutable. run_replay is a new, independent run whose run.created event's data names { replayOf: { runId: 'run_orig', fromStep: 'draft' } } -- there is no 'replayOf' field on the Run resource itself.",
|
|
42
|
+
"'fetch' and 'parse' report status succeeded with no corresponding step.started/step.output pair re-executed in run_replay's own event log for those two steps -- their journaled output from run_orig is copied forward instead.",
|
|
43
|
+
"'draft' onward re-executes fresh against the new run's own workspace."
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "V8",
|
|
3
|
+
"title": "Turn ends with a question in plain text, no explicit signal -> failed missing-output, hinted",
|
|
4
|
+
"rule": "specs/aip-58.mdx section 3 Outcome rule -- a heuristic MAY only annotate a hint, never produce suspended",
|
|
5
|
+
"manifestExcerpt": {
|
|
6
|
+
"kind": "workflow",
|
|
7
|
+
"id": "pricing-brief",
|
|
8
|
+
"steps": [
|
|
9
|
+
{
|
|
10
|
+
"id": "draft",
|
|
11
|
+
"kind": "agent",
|
|
12
|
+
"prompt": "Write a one-page pricing brief for these tiers: $steps.parse.tiers",
|
|
13
|
+
"outputSchema": { "type": "object", "properties": { "brief": { "type": "string" } }, "required": ["brief"] }
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"runCreate": {
|
|
18
|
+
"kind": "workflow",
|
|
19
|
+
"ref": { "id": "pricing-brief", "version": "1.0.0" },
|
|
20
|
+
"input": { "productUrl": "https://example.com/pricing" }
|
|
21
|
+
},
|
|
22
|
+
"agentTurn": {
|
|
23
|
+
"finalMessage": "What tone should the brief use -- formal or casual?",
|
|
24
|
+
"toolCall": null,
|
|
25
|
+
"protocolAwaitingInputEvent": false
|
|
26
|
+
},
|
|
27
|
+
"expected": {
|
|
28
|
+
"terminalState": "failed",
|
|
29
|
+
"stepId": "draft",
|
|
30
|
+
"stepStatus": "failed",
|
|
31
|
+
"error": { "code": "missing-output", "stepId": "draft" },
|
|
32
|
+
"hint": "possible-input-request",
|
|
33
|
+
"events": [
|
|
34
|
+
"run.created",
|
|
35
|
+
"run.started",
|
|
36
|
+
"step.started",
|
|
37
|
+
"step.failed",
|
|
38
|
+
"run.failed"
|
|
39
|
+
],
|
|
40
|
+
"notes": [
|
|
41
|
+
"The final message is textually identical to V2's -- a question about tone. The outcome differs because V2's step made an explicit run.requestInput call and this one didn't; a host is NOT permitted to read the two turns identically just because their prose matches.",
|
|
42
|
+
"A host MAY set StepRecord.hint = 'possible-input-request' after pattern-matching the trailing question mark, purely as a triage aid for a human reading the failed run. The hint MUST NOT change stepStatus/terminalState -- a conformance check that flips this vector's expected terminalState to 'suspended' on the basis of the hint is testing a non-conforming host.",
|
|
43
|
+
"No step.suspended or run.suspended event may appear anywhere in this run's event log.",
|
|
44
|
+
"manifestExcerpt.steps[0] declares an outputSchema (added locally, ahead of agentproto/agentproto#39 / branch aip58-vacuous-contract, which makes the same addition upstream and amends section 3 to say explicitly that a step declaring no contract at all has a vacuous contract and always succeeds on turn end -- which would make this vector inapplicable as written without one). Re-running `pnpm sync-specs` after that PR merges will re-vendor this file from the real source; this edit is expected to become a no-op at that point."
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentproto/corpus-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "@agentproto/corpus-cli — the `corpus` binary. Validate, lint, and operate an AIP-10 corpus workspace from the command line. Local-topology host for @agentproto/corpus — pair with a local backing engine (qdrant docker / gbrain) for a fully offline corpus runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentproto",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"zod": "^4.6.5",
|
|
55
55
|
"@agentproto/batch": "0.2.2",
|
|
56
56
|
"@agentproto/cli-exec": "0.1.1",
|
|
57
|
-
"@agentproto/corpus": "0.8.
|
|
58
|
-
"@agentproto/corpus-presets": "0.2.
|
|
57
|
+
"@agentproto/corpus": "0.8.1",
|
|
58
|
+
"@agentproto/corpus-presets": "0.2.13"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/node": "^25.9.5",
|