@archmax-ai/harness 0.0.0 → 0.2.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 (143) hide show
  1. package/README.md +64 -47
  2. package/dist/agent.d.ts +0 -11
  3. package/dist/agent.js.map +1 -1
  4. package/dist/assembly/compose.js +3 -5
  5. package/dist/assembly/compose.js.map +1 -1
  6. package/dist/assembly/delegation-registry.js +4 -2
  7. package/dist/assembly/delegation-registry.js.map +1 -1
  8. package/dist/assembly/index.d.ts +1 -1
  9. package/dist/assembly/index.js +0 -1
  10. package/dist/assembly/index.js.map +1 -1
  11. package/dist/authoring-skill/archmax-harness/README.md +24 -18
  12. package/dist/authoring-skill/archmax-harness/SKILL.md +7 -1
  13. package/dist/authoring-skill/archmax-harness/references/backend-integration.md +66 -11
  14. package/dist/authoring-skill/archmax-harness/references/cases.md +1 -1
  15. package/dist/authoring-skill/archmax-harness/references/hook-and-test-scripts.md +2 -2
  16. package/dist/authoring-skill/archmax-harness/references/wiring.md +1 -1
  17. package/dist/authoring-skill/archmax-harness/references/workflow-schema.md +66 -20
  18. package/dist/authoring-skill/archmax-harness/references/workflow-yaml.md +14 -4
  19. package/dist/cli/bootstrap.d.ts +7 -3
  20. package/dist/cli/bootstrap.js.map +1 -1
  21. package/dist/cli/state-flow.js +3 -3
  22. package/dist/cli/state-flow.js.map +1 -1
  23. package/dist/cli/turn.d.ts +9 -4
  24. package/dist/cli/turn.js +36 -9
  25. package/dist/cli/turn.js.map +1 -1
  26. package/dist/cli.js +9 -10
  27. package/dist/cli.js.map +1 -1
  28. package/dist/core/events.d.ts +4 -9
  29. package/dist/core/events.js +5 -5
  30. package/dist/core/events.js.map +1 -1
  31. package/dist/core/workspace-context.d.ts +0 -2
  32. package/dist/core/workspace-context.js +0 -2
  33. package/dist/core/workspace-context.js.map +1 -1
  34. package/dist/core/zones.d.ts +0 -2
  35. package/dist/core/zones.js +0 -2
  36. package/dist/core/zones.js.map +1 -1
  37. package/dist/env.d.ts +0 -2
  38. package/dist/env.js +0 -2
  39. package/dist/env.js.map +1 -1
  40. package/dist/index.d.ts +15 -13
  41. package/dist/index.js +18 -7
  42. package/dist/index.js.map +1 -1
  43. package/dist/machine/machine.d.ts +9 -0
  44. package/dist/machine/machine.js +13 -0
  45. package/dist/machine/machine.js.map +1 -1
  46. package/dist/machine/signature.d.ts +104 -0
  47. package/dist/machine/signature.js +210 -0
  48. package/dist/machine/signature.js.map +1 -0
  49. package/dist/machine/spec-schema.d.ts +158 -8
  50. package/dist/machine/spec-schema.js +78 -6
  51. package/dist/machine/spec-schema.js.map +1 -1
  52. package/dist/machine/triggers.d.ts +6 -2
  53. package/dist/machine/triggers.js +7 -2
  54. package/dist/machine/triggers.js.map +1 -1
  55. package/dist/machine/types.d.ts +7 -1
  56. package/dist/machine/types.js.map +1 -1
  57. package/dist/machine/variables.d.ts +2 -0
  58. package/dist/machine/variables.js +4 -0
  59. package/dist/machine/variables.js.map +1 -1
  60. package/dist/public/spec.d.ts +20 -3
  61. package/dist/public/spec.js +18 -2
  62. package/dist/public/spec.js.map +1 -1
  63. package/dist/sandbox/executor.js.map +1 -1
  64. package/dist/sessions/resolve.d.ts +0 -2
  65. package/dist/sessions/resolve.js +1 -4
  66. package/dist/sessions/resolve.js.map +1 -1
  67. package/dist/sessions/resume.d.ts +4 -8
  68. package/dist/sessions/resume.js +10 -5
  69. package/dist/sessions/resume.js.map +1 -1
  70. package/dist/sessions/summary.d.ts +0 -2
  71. package/dist/sessions/summary.js +1 -1
  72. package/dist/sessions/summary.js.map +1 -1
  73. package/dist/testing/assertions.js +1 -5
  74. package/dist/testing/assertions.js.map +1 -1
  75. package/dist/testing/case-document.d.ts +1 -7
  76. package/dist/testing/case-document.js.map +1 -1
  77. package/dist/testing/case-schema.d.ts +2 -2
  78. package/dist/testing/case-schema.js +8 -21
  79. package/dist/testing/case-schema.js.map +1 -1
  80. package/dist/testing/driver.d.ts +4 -2
  81. package/dist/testing/driver.js +1 -1
  82. package/dist/testing/driver.js.map +1 -1
  83. package/dist/testing/grade.d.ts +2 -2
  84. package/dist/testing/grade.js +1 -1
  85. package/dist/testing/interpreter.d.ts +4 -2
  86. package/dist/testing/interpreter.js.map +1 -1
  87. package/dist/testing/runner.d.ts +13 -9
  88. package/dist/testing/runner.js +0 -1
  89. package/dist/testing/runner.js.map +1 -1
  90. package/dist/testing/target.d.ts +4 -2
  91. package/dist/workflow/control-tools.d.ts +7 -2
  92. package/dist/workflow/control-tools.js +27 -2
  93. package/dist/workflow/control-tools.js.map +1 -1
  94. package/dist/workflow/governance.js +28 -19
  95. package/dist/workflow/governance.js.map +1 -1
  96. package/dist/workflow/middleware.js +5 -10
  97. package/dist/workflow/middleware.js.map +1 -1
  98. package/dist/workflow/on-error.js +0 -1
  99. package/dist/workflow/on-error.js.map +1 -1
  100. package/dist/workflow/parks.js +9 -13
  101. package/dist/workflow/parks.js.map +1 -1
  102. package/dist/workflow/paths.d.ts +0 -1
  103. package/dist/workflow/paths.js +0 -1
  104. package/dist/workflow/paths.js.map +1 -1
  105. package/dist/workflow/prompt-cache.d.ts +0 -2
  106. package/dist/workflow/prompt-cache.js +0 -7
  107. package/dist/workflow/prompt-cache.js.map +1 -1
  108. package/dist/workflow/render-prompt.js +28 -7
  109. package/dist/workflow/render-prompt.js.map +1 -1
  110. package/dist/workflow/session-artifacts.d.ts +1 -3
  111. package/dist/workflow/session-artifacts.js +1 -2
  112. package/dist/workflow/session-artifacts.js.map +1 -1
  113. package/dist/workflow/session-view.d.ts +1 -1
  114. package/dist/workflow/signature-checks.d.ts +22 -0
  115. package/dist/workflow/signature-checks.js +52 -0
  116. package/dist/workflow/signature-checks.js.map +1 -0
  117. package/dist/workflow/state.d.ts +2 -14
  118. package/dist/workflow/state.js +3 -10
  119. package/dist/workflow/state.js.map +1 -1
  120. package/dist/workflow/sub-workflow.d.ts +23 -16
  121. package/dist/workflow/sub-workflow.js +78 -14
  122. package/dist/workflow/sub-workflow.js.map +1 -1
  123. package/dist/workflow/tool-service.js +3 -5
  124. package/dist/workflow/tool-service.js.map +1 -1
  125. package/dist/workflow/turn-boundary.js +5 -6
  126. package/dist/workflow/turn-boundary.js.map +1 -1
  127. package/dist/workflow/workflow-tools.d.ts +17 -9
  128. package/dist/workflow/workflow-tools.js +30 -17
  129. package/dist/workflow/workflow-tools.js.map +1 -1
  130. package/package.json +5 -4
  131. package/skills/archmax-harness/README.md +82 -0
  132. package/skills/archmax-harness/SKILL.md +247 -0
  133. package/skills/archmax-harness/references/backend-integration.md +681 -0
  134. package/skills/archmax-harness/references/cases.md +41 -0
  135. package/skills/archmax-harness/references/diagnostics.md +51 -0
  136. package/skills/archmax-harness/references/hook-and-test-scripts.md +1070 -0
  137. package/skills/archmax-harness/references/hooks-and-scripts.md +82 -0
  138. package/skills/archmax-harness/references/wiring.md +101 -0
  139. package/skills/archmax-harness/references/workflow-schema.md +1677 -0
  140. package/skills/archmax-harness/references/workflow-yaml.md +251 -0
  141. package/dist/behaviour/support.d.ts +0 -232
  142. package/dist/behaviour/support.js +0 -339
  143. package/dist/behaviour/support.js.map +0 -1
@@ -13,6 +13,7 @@ package's `dist/index.d.ts`.
13
13
  - [Agent](#workflowruntime)
14
14
  - [Running a workflow](#running-a-workflow)
15
15
  - [Human-in-the-loop](#human-in-the-loop)
16
+ - [Exposing a workflow to outside callers (MCP, forms, APIs)](#exposing-a-workflow-to-outside-callers)
16
17
  - [Lifecycle events (live visualization)](#lifecycle-events)
17
18
  - [Session artifacts (historical visualization)](#run-artifacts)
18
19
  - [Model configuration](#model-configuration)
@@ -50,8 +51,7 @@ resolve it from the install via the `BUNDLED_AUTHORING_SKILL_DIR` export — the
50
51
  `dist/authoring-skill` directory holding `archmax-harness/`, so this file is
51
52
  `<BUNDLED_AUTHORING_SKILL_DIR>/archmax-harness/SKILL.md` — e.g.
52
53
  `npx skills add ./node_modules/@archmax-ai/harness/dist/authoring-skill/archmax-harness`.
53
- (`BUNDLED_SKILLS_DIR` is a deprecated alias with the same value, kept one
54
- release.) Prefer this over
54
+ Prefer this over
55
55
  syncing a copy from a source checkout, so the skill can never drift from the
56
56
  installed SDK's validator. Tooling that needs the install root without importing
57
57
  the runtime can use `require.resolve("@archmax-ai/harness/package.json")` (exposed in the
@@ -70,7 +70,7 @@ From `@archmax-ai/harness` (`src/index.ts`):
70
70
  | `DeliverOutcome`, `TriggerDelivery` | type | Argument / return of `deliver()` |
71
71
  | `WorkflowLoadError` | class | Thrown when the workflow spec (`workflow.yaml`) is missing/invalid (fails closed) |
72
72
  | `DEFAULT_WORKFLOW` | const | `"order-lookup"` |
73
- | `BUNDLED_AUTHORING_SKILL_DIR` | const | The packaged `dist/authoring-skill` directory holding `archmax-harness/` (`<dir>/archmax-harness/SKILL.md`). `BUNDLED_SKILLS_DIR` is a deprecated alias with the same value. The example workspace is not shipped in `dist/`; clone the repo to use it. |
73
+ | `BUNDLED_AUTHORING_SKILL_DIR` | const | The packaged `dist/authoring-skill` directory holding `archmax-harness/` (`<dir>/archmax-harness/SKILL.md`). The example workspace is not shipped in `dist/`; clone the repo to use it. |
74
74
  | `WORKFLOW_STATUSES` | const | `running` \| `completed` \| `rejected` \| `awaiting_decision` (`awaitingDecision`) \| `awaiting_input` (`awaitingInput`) |
75
75
  | `isFinished`, `classifyStatus` | fn | The open/finished partition — a parked session is **open** |
76
76
  | `WorkflowLifecycleEvent`, `WorkflowEventHandler` | type | Event stream types |
@@ -80,6 +80,7 @@ From `@archmax-ai/harness` (`src/index.ts`):
80
80
  | `SessionStoreRequiredError`, `SessionStoreCapabilityError` | class | Assembly / capability errors for run storage |
81
81
  | `workflowStateSchema`, `workflowPaths`, `sessionPaths`, `runArtifactPaths` | schema/fn | State schema + path helpers |
82
82
  | `runTests`, `RunTestsOptions`, `CaseResult` | fn/type | Run a workflow's cases — [against your own agent](#cases-against-your-agent) |
83
+ | `SIGNATURE_TYPES`, `normalizeSignature`, `signatureForTrigger`, `signatureJsonSchema`, `signatureValueIssues` | const/fn | A trigger's typed signature as JSON Schema and its conformance rule — [exposing a workflow](#exposing-a-workflow-to-outside-callers); also on `@archmax-ai/harness/spec` |
83
84
 
84
85
  ## createAgent options
85
86
 
@@ -115,7 +116,7 @@ interface Agent {
115
116
  workflow: string;
116
117
  runtimeContract: ResolvedRuntimeContract;
117
118
  resolveTrigger(trigger?: TriggerInput): ResolvedTrigger;
118
- emitRunArtifacts(runId: string, trajectory: Trajectory): Promise<string | null>;
119
+ emitRunArtifacts(sessionId: string, trajectory: Trajectory): Promise<string | null>;
119
120
  runs: { // run handles over the configured session store
120
121
  list(): Promise<SessionSummary[]>; // [] when the store/checkpointer can't list
121
122
  get(sessionId: string): Promise<SessionSummary | null>;
@@ -247,7 +248,8 @@ if (result.status === WORKFLOW_STATUSES.awaitingDecision && result.pendingDecisi
247
248
  // host-side assembly, and no need to re-read the spec.
248
249
  // When they pick:
249
250
  const outcome = await agent.workflow.decide(sessionId, { target: chosenTo, comment });
250
- // DecideOutcome: { status?, workflowState?, reparked, state?, messages }
251
+ // DecideOutcome: { status?, workflowState?, reparked, state?, reply, rejected?, messages }
252
+ // `rejected` says why when status is "rejected"; Outcome from send() carries it too.
251
253
  if (outcome.reparked) { /* parked again at another human state */ }
252
254
  }
253
255
  ```
@@ -329,6 +331,59 @@ in (available in every state). To continue *mid-state* instead — inside the st
329
331
  that stopped, with the arrival in its transcript — the turn must park rather than
330
332
  finish.
331
333
 
334
+ ## Exposing a workflow to outside callers
335
+
336
+ A workflow's trigger signature (`requires`/`returns`, optionally typed) is the
337
+ contract the runtime already enforces at the session boundary. A host that
338
+ exposes a workflow as an MCP tool, an OpenAPI operation or a typed start form
339
+ builds its schema **from that signature**, with the helpers on the browser-safe
340
+ `@archmax-ai/harness/spec` subpath (also on the root, as the same bindings), so
341
+ the published contract and the enforced one cannot drift:
342
+
343
+ ```ts
344
+ import {
345
+ parseMachineSpec,
346
+ signatureForTrigger,
347
+ signatureJsonSchema,
348
+ signatureValueIssues,
349
+ } from "@archmax-ai/harness/spec";
350
+
351
+ const parsed = parseMachineSpec(yaml.parse(workflowYaml));
352
+ if (!parsed.ok) throw new Error(parsed.issues.map((i) => `${i.path}: ${i.message}`).join("\n"));
353
+ const signature = signatureForTrigger(parsed.spec, "manual"); // { description?, requires, returns }
354
+
355
+ // MCP tool (or an OpenAPI request/response body): the same mapping the delegation tool uses.
356
+ const mcpTool = {
357
+ name: "refund-order",
358
+ description: signature?.description, // caller-facing; never shown to the session's agent
359
+ inputSchema: signatureJsonSchema(signature?.requires ?? []),
360
+ outputSchema: signatureJsonSchema(signature?.returns ?? []),
361
+ };
362
+
363
+ // On a request, before any session opens: the rule the turn boundary applies.
364
+ const issues = signatureValueIssues(signature?.requires ?? [], body);
365
+ if (issues.length) return reply(400, issues.map((i) => i.message)); // { kind, name, type?, found?, message }
366
+
367
+ // A turn needs a message; an MCP call has none of its own, so say what was asked.
368
+ const outcome = await agent.workflow!.send(sessionId, { message: "Refund the order.", variables: body });
369
+ ```
370
+
371
+ - `signatureJsonSchema(entries)` → `{ type: "object", properties, required }`:
372
+ one property per entry in declaration order, every name required,
373
+ `date`/`date-time` as `{ type: "string", format }`, an untyped entry as `{}`,
374
+ an entry's `description` carried over. It adds no `additionalProperties`; set
375
+ it for your own ingress.
376
+ - `signatureValueIssues(entries, values)` → one issue per missing name and per
377
+ non-conforming value; `[]` means the turn boundary will not refuse the map for
378
+ its signature. It **never coerces**: a form that collects text converts
379
+ `"4"` to `4` before it validates or seeds.
380
+ - A trigger's `description` is written for the caller. Use it as the MCP tool
381
+ or operation description. The session's own model never sees it.
382
+ - A host that reads specs itself must read `requires`/`returns` through
383
+ `normalizeSignature` (both spellings → `{ name, type?, description? }[]`),
384
+ never as `string[]`: an entry may be an object. Hosts must be on the release
385
+ that introduced typed entries before any workspace they read uses them.
386
+
332
387
  ## Lifecycle events
333
388
 
334
389
  Pass `onEvent`; every `WorkflowLifecycleEvent` carries a `level`
@@ -343,7 +398,7 @@ Pass `onEvent`; every `WorkflowLifecycleEvent` carries a `level`
343
398
  | `parked` (`awaiting: "input"`) / `delivered` | the agent parked the run (`{ state, sessionId, reason, resumeAt?, callId }` — the `archmax_wait` call) / an event resumed it (`{ state, trigger, to }`, where `to` is the same state) |
344
399
  | `agent-text` | complete assistant message in a state (`{ state, text, messageId }` — always the id the message is stored under; absent only on a `partial: true` event from a failed turn) |
345
400
  | `agent-text-delta` | streaming text chunk (`{ state, text, messageId? }`) — flows for every run, even when the graph is driven with `invoke` |
346
- | `tool-called` / `tool-result` / `tool-blocked` | tool passed governance (`callId`, `args`) / settled (`callId`, `status`, `durationMs`, `output` preview) / denied. **Every** governed call, `archmax_advance` included — so a UI drawing a row per call draws one per transition; filter it if you already draw transitions from `advance`/`state-leave` |
401
+ | `tool-called` / `tool-result` / `tool-blocked` | tool passed governance (`callId`, `args`) / settled (`callId`, `status`, `durationMs`, `output` preview) / denied. **Every** governed call, `archmax_advance` included — so a UI drawing a row per call draws one per transition; filter it if you already draw transitions from `advance`/`state-leave`. A tool that **throws** settles `status: "error"` with the error's message as `output` while the turn **continues**: the model reads the same message as the call's answer, and nothing is thrown out of `send` — read tool failures here |
347
402
  | `rubric-start` / `rubric-result` | grading-rubric dispatch bracketed by `dispatchId`, with the rubric's `name` |
348
403
  | `model-usage` | per model call provider token usage: `inputTokens` (the total, of which the cache counts are a breakdown), `outputTokens`, `cacheReadTokens`, `cacheCreationTokens`, `model?` (the id the call was priced against), `costUsd?` |
349
404
  | `prompt-shaping` | assembly-time payload summary: resolved `profile`, prompt-cache mechanism, `withheld` built-ins |
@@ -482,15 +537,15 @@ interface SerializedGraph {
482
537
  entry?: string; finals: string[]; mermaid: string;
483
538
  }
484
539
  interface Trajectory {
485
- runId: string; workflow: string; prompt?: string; finalAnswer: string;
486
- segments: { node: string; enteredState?: string; exitedState?: string;
540
+ sessionId?: string; workflow: string; prompt?: string; finalAnswer: string;
541
+ segments: { state: string; enteredState?: string; exitedState?: string;
487
542
  items: (MessageItem | ToolCallItem)[] }[];
488
543
  }
489
544
  // MessageItem: { kind:"message", role, content }
490
545
  // ToolCallItem: { kind:"tool_call", name, args, result: string|null }
491
- interface RunMetadata { runId: string; workflow: string;
546
+ interface RunMetadata { sessionId: string; workflow: string;
492
547
  runtimeContract: ResolvedRuntimeContract; packageVersion: string; }
493
- // trail.json: { runId, workflow, steps: TrailStep[] } — the audit trail,
548
+ // trail.json: { sessionId, workflow, steps: TrailStep[] } — the audit trail,
494
549
  // re-derived from checkpointed state on every artifact write.
495
550
  // TrailStep: { to, kind: "trigger"|"agent"|"human"|"reset"|"on_error",
496
551
  // reason?, ts }
@@ -505,7 +560,7 @@ firing's payload — see
505
560
  [hook-and-test-scripts.md](hook-and-test-scripts.md#recovering-a-cases-inputs-from-previous-runs)).
506
561
  Note it holds whatever the run's variables held, verbatim: a host that must not
507
562
  persist an input should not seed it. To persist artifacts yourself,
508
- stream the run and call `agent.emitRunArtifacts(runId, trajectory)`.
563
+ stream the run and call `agent.emitRunArtifacts(sessionId, trajectory)`.
509
564
 
510
565
  ## Model configuration
511
566
 
@@ -26,7 +26,7 @@ message that leaves it parked), `decide: { to, comment? }`,
26
26
  `deliver: { trigger, variables? }`.
27
27
 
28
28
  Assertions (**structural** ones halt the case when they miss; later steps are
29
- reported `not-executed`): `succeeded: true`ˢ · `parked: true | decision | input | { channel?, node? }`ˢ ·
29
+ reported `not-executed`): `succeeded: true`ˢ · `parked: true | decision | input | { channel?, state? }`ˢ ·
30
30
  `reachedState: <slug>`ˢ (a committed non-trigger trail step) ·
31
31
  `trail: { to?, kind?, reason?, count }`ˢ (`kind`: trigger/agent/human/on_error) ·
32
32
  `noTraversal: true`ˢ · `triggerArrival: <id>`ˢ ·
@@ -749,7 +749,7 @@ That reads the session's **checkpoint**, so it works for any session that has ru
749
749
  including one driven by `archmax run` (the CLI emits no run artifacts). A host that
750
750
  calls `emitRunArtifacts` leaves the same record on disk as
751
751
  `sessions/<sessionId>/artifacts/variables.json`
752
- (`{ runId, workflow, variables: { name: { value, locked } } }`).
752
+ (`{ sessionId, workflow, variables: { name: { value, locked } } }`).
753
753
 
754
754
  Pick the newest session whose recorded `trigger` matches the trigger the case
755
755
  drives, then map its store onto the case:
@@ -1060,7 +1060,7 @@ contract (`ok`/`veto`/`correct`, `defineHook`, `HookInput`).
1060
1060
 
1061
1061
  | Concern | File in the SDK |
1062
1062
  | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
1063
- | Sandbox prelude (verdict helpers, `defineHook`, the deprecated `t` shim) | `src/sandbox/assets/parts/core.js`, `lifecycle-hook.js`, `legacy-t.js`; `src/sandbox/prelude.ts` |
1063
+ | Sandbox prelude (verdict helpers, `defineHook`) | `src/sandbox/assets/parts/core.js`, `lifecycle-hook.js`; `src/sandbox/prelude.ts` |
1064
1064
  | Hook source preparation (`@archmax-ai/harness/*` import stripping, `export default`, foreign-import errors) | `src/sandbox/imports.ts` |
1065
1065
  | Executor, sandbox tools, PTC gateway, rubric-dispatch bridge | `src/sandbox/executor.ts`, `tools.ts`, `ptc-gateway.ts`, `bridge.ts` |
1066
1066
  | Typed entry point (`ok`/`veto`/`correct`, `defineHook`, `HookInput`) | `src/public/sandbox.ts` |
@@ -61,7 +61,7 @@ agent.dispose(sessionId);
61
61
  - **Agent**: Deep Agents' `invoke`/`stream`/`streamEvents` + checkpoint
62
62
  surface; `sessions.list/get/delete`; `emitRunArtifacts`; `dispose`.
63
63
  Governance under `agent.workflow`: `machine`, `resolveTrigger`,
64
- `send(sessionId, input)` → one `Outcome` (`decide`/`respond`/`deliver` are
64
+ `send(sessionId, input)` → one `Outcome` (`decide`/`reply`/`deliver` are
65
65
  conveniences), `resolveSession`.
66
66
  - **Multi-turn**: re-invoke the same `thread_id` with only the new message;
67
67
  never concatenate a conversation into one string. A spec edit is adopted,
@@ -280,7 +280,8 @@ states:
280
280
  # id, in declaration order (one state, one
281
281
  # behavior, several ways in).
282
282
  # The value is the declaration (see below):
283
- # session/message/connection/requires/returns
283
+ # session/message/connection/description/
284
+ # requires/returns
284
285
  # plus any key the HOST adds — preserved,
285
286
  # lint-warned, never interpreted.
286
287
  # NO `entry:` and NO `name:` inside a declaration:
@@ -517,8 +518,13 @@ states:
517
518
  enrich:
518
519
  triggers:
519
520
  manual: # the one entry: CLI, host firing, or a caller
520
- requires: [order_id] # a firing must supply these to start
521
- returns: [enrichment_file, delayed] # the run guarantees these when it completes
521
+ description: Enrich one order and say whether it is late. # for callers only
522
+ requires: # a firing must supply these to start
523
+ - order_id # bare name = untyped
524
+ - { name: due, type: date, description: The day the order is due. }
525
+ returns: # the run guarantees these when it completes
526
+ - enrichment_file
527
+ - { name: delayed, type: boolean }
522
528
  ```
523
529
 
524
530
  - There is no `entry:` key and no root block: the state a declaration sits on is
@@ -529,14 +535,37 @@ states:
529
535
  - `requires:` / `returns:` are the run's **signature**, and both are enforced. A
530
536
  firing that does not supply every `requires` name does not start; a run that
531
537
  reaches a terminal state without every `returns` name set is rejected (a run
532
- that *parks* is not checked — it has not finished). Both take the same grammar
533
- as a state's `requires:`: a list of run-variable names, nothing more — what a
534
- variable holds belongs in the `instructions` that set it. The names are
538
+ that *parks* is not checked — it has not finished). Each entry is a bare
539
+ run-variable name (**untyped**: any value, `null` included) or a strict object
540
+ `{ name, type?, description? }` naming one; the spellings mix in one list and
541
+ names are distinct across both. What the agent must *do* to produce a
542
+ variable still belongs in the `instructions` that set it. The names — with
543
+ type and description when declared, as `name (type) — description` — are
535
544
  rendered into the prompt under the trigger's entry state, so the agent is told
536
545
  what to produce before it can be failed for omitting it. A trigger's
537
546
  `requires:` also **guarantees** the variable for `${{…}}` guards, so `validate`
538
547
  stops warning about a guard bound to it. This is what makes delegation
539
548
  checkable — see [Sub-workflows are tools](#sub-workflows-are-tools).
549
+ - **`type`** is one of `string`, `integer` (no fractional part), `number`
550
+ (finite), `boolean`, `date` (RFC 3339 `YYYY-MM-DD`, a real calendar day),
551
+ `date-time` (RFC 3339 with a mandatory `Z`/`±hh:mm` offset), `object` (not an
552
+ array) or `array`. Nothing is coerced (`"4"` is not an `integer`) and a typed
553
+ entry never takes `null`. It is held **at the start** (a mistyped seed is
554
+ refused before any model call), **at the write** (`archmax_set_variables` of a
555
+ mistyped typed return of the current trigger is a correctable refusal,
556
+ nothing written) and **at completion** (a mistyped typed return rejects the
557
+ run — in practice a script or hook write). There are no enums, item or
558
+ property schemas, ranges or optional inputs. An unknown `type`, an unknown
559
+ entry key (`default:`) or an empty `description` fails load.
560
+ - **When to type.** Type an entry when something outside the session reads the
561
+ contract: a delegating model that must build the argument, a host publishing an
562
+ MCP tool or a start form. Leave it bare when any value will do. Typing a
563
+ `returns` entry also tells the agent the shape to write.
564
+ - **`description` on the declaration** says, for a **caller**, what calling this
565
+ entry does. It leads the delegation tool's description and a host's MCP tool
566
+ description; it never reaches the model of the session it starts (that
567
+ session's brief is its `instructions`). An entry's own `description` is
568
+ different: it *is* shown to the agent, beside the name.
540
569
  - `session:` is a **dotted path over the run's variables** — the same syntax
541
570
  `${{…}}` guards use, including array indices and negative indices
542
571
  (`-1` = last). No script, no callback: name where the host already puts the
@@ -1123,7 +1152,9 @@ Two failure classes, routed differently:
1123
1152
 
1124
1153
  - **Recoverable rejections keep the agent in place**: an invalid edge in
1125
1154
  `archmax_advance`, a deliberate hook `veto`, or an in-budget `correct` — the
1126
- agent sees the reason and retries within the same state.
1155
+ agent sees the reason and retries within the same state. A **tool that
1156
+ throws** is answered the same way: its error message is the call's
1157
+ error-status answer, and it never routes to `on_error`.
1127
1158
  - **Terminal failures route to `on_error`**: a hook *execution error*, an
1128
1159
  exhausted iteration budget (`max_iterations` used up), or an exhausted
1129
1160
  `budget` (`maxTurns`/`timeoutMs`). With `on_error: <state>` declared, the run
@@ -1186,8 +1217,10 @@ enrich:
1186
1217
  ```
1187
1218
 
1188
1219
  - **The target's signature is the call signature.** Its `manual` trigger's
1189
- `requires:` are the tool's required parameters; its `returns:` are what the
1190
- result carries:
1220
+ `requires:` are the tool's required parameters (typed in the tool schema
1221
+ where the entries are typed, by the same mapping `signatureJsonSchema`
1222
+ publishes); its `returns:` are what the result carries; its `description`
1223
+ leads the tool description, and its `instructions` never reach the caller:
1191
1224
 
1192
1225
  ```
1193
1226
  archmax_workflow_enrich-account({ account_id: "acct-42" })
@@ -1221,9 +1254,14 @@ enrich:
1221
1254
  no target may call none; `tools.forbid_always` blocks a delegation tool like any
1222
1255
  other.
1223
1256
  - **A failure is a tool error** the calling agent can handle; the state's
1224
- `on_error` catches the turn if it cannot. Depth, cycle, missing-input and
1225
- **disabled-target** refusals are blocked calls — nothing ran, so correct the call
1226
- and retry.
1257
+ `on_error` catches the turn if it cannot. Depth, cycle, missing-input
1258
+ (`missing-param`), mistyped-input (`invalid-param`), unresolvable-reference
1259
+ (`unresolved-param`) and **disabled-target** refusals are blocked calls —
1260
+ nothing ran, so correct the call and retry. A child whose returns are unset
1261
+ (`missing-return`) or mistyped (`invalid-return`) is a failure: it ran.
1262
+ - **A whole-argument reference keeps its type.** `{ quantity: "${{count}}" }`
1263
+ seeds the child with the number `count` holds, so it satisfies an `integer`
1264
+ parameter; `{ note: "order ${{order_id}}" }` is substituted as text.
1227
1265
  - **A `disabled: true` target is refused at dispatch, not at assembly.** The tool is
1228
1266
  still bound and the caller still assembles (disabling one leaf must not take every
1229
1267
  caller — or its parked sessions — offline); the call is a blocked call of kind
@@ -1244,8 +1282,12 @@ enrich:
1244
1282
  enrich:
1245
1283
  triggers:
1246
1284
  manual:
1247
- requires: [order_id] # a caller must supply these
1248
- returns: [enrichment_file, delayed] # the child guarantees it sets these
1285
+ description: Enrich one order. # leads the caller's tool description
1286
+ requires: # a caller must supply these
1287
+ - { name: order_id, type: string, description: The order to enrich. }
1288
+ returns: # the child guarantees it sets these
1289
+ - enrichment_file
1290
+ - { name: delayed, type: boolean }
1249
1291
  ```
1250
1292
 
1251
1293
  Develop it standalone on the same contract:
@@ -1255,10 +1297,13 @@ enrich:
1255
1297
  A dispatch missing a `requires` name is **refused before the child is
1256
1298
  composed**; a child that completes without every `returns` name set is
1257
1299
  **rejected** rather than handing back half a contract (a child that *parks* is
1258
- not checked — it has not finished). Both are lists of names only: what a
1259
- variable holds belongs in the state `instructions` that set it. The names are
1260
- rendered into the child's prompt under its entry state, so it is told what to
1261
- produce before it can be failed for omitting it.
1300
+ not checked — it has not finished). A typed entry is held to its type at both
1301
+ ends: a mistyped argument is refused `invalid-param` before the child runs, and
1302
+ a mistyped return fails the call `invalid-return`. What the child must *do* to
1303
+ produce a variable belongs in the state `instructions` that set it. The names,
1304
+ with type and description where declared, are rendered into the child's prompt
1305
+ under its entry state, so it is told what to produce before it can be failed
1306
+ for omitting it.
1262
1307
  - **The call answers with the returns, by name.** A signed target answers
1263
1308
  `{ message, returns: { enrichment_file, delayed } }`; one declaring no
1264
1309
  `returns:` answers with the closing message alone. The message keeps its own
@@ -1267,8 +1312,9 @@ enrich:
1267
1312
  agent records what it needs with `archmax_set_variables`, or a script writes it,
1268
1313
  and the calling state's `requires:` is what makes that mandatory.
1269
1314
  - **Mocks are held to the same contract.** An `archmax_workflow_<slug>` mock for a
1270
- signed target supplies `returns:`, and one that omits a declared name fails the
1271
- mocked dispatch — a mock stands in for the sub-run, never for its agreement.
1315
+ signed target supplies `returns:`, and one that omits a declared name
1316
+ (`missing-return`) or supplies a mistyped typed one (`invalid-return`) fails
1317
+ the mocked dispatch — a mock stands in for the sub-run, never for its agreement.
1272
1318
  - **No prose crosses the boundary.** A sub-run gets no instruction from its
1273
1319
  caller — it works from its own state `instructions` plus the arguments it was
1274
1320
  seeded with as locked variables, both of which reach the model through the
@@ -44,8 +44,12 @@ states:
44
44
  session: conversation_id # dotted path over variables: which conversation a firing joins
45
45
  message: false # or a dotted path to the message text; false = firings carry none
46
46
  connection: mail # host access connection; other keys preserved with a warning
47
- requires: [order_id] # variables a firing must supply (a caller's required params)
47
+ description: Record one refund decision. # for CALLERS (delegating model, MCP client); never the agent
48
+ requires: # variables a firing must supply (a caller's required params):
49
+ - order_id # a bare name is untyped (any value, null included)
50
+ - { name: due, type: date, description: The day it is due. } # typed: held at the boundary
48
51
  returns: [result_file] # variables the run guarantees on completion (a caller's result)
52
+ # entry types: string integer number boolean date date-time object array
49
53
  instructions: >-
50
54
  Record the decision in scratchpad/refund.json, then archmax_advance to
51
55
  review; never close the case yourself.
@@ -163,11 +167,17 @@ states:
163
167
  corrections, exhausted budget, exhausted parks) routes to `on_error`
164
168
  instead of failing the run; recoverable rejections (invalid edge, veto,
165
169
  in-budget correct) keep the agent in place. Declare `on_error` on states
166
- with strict `after` hooks or bounded loops.
170
+ with strict `after` hooks or bounded loops. A **tool that throws** is
171
+ neither: the call is answered with an error-status tool message carrying
172
+ the error, the agent stays in the state and can retry or switch tools, and
173
+ `on_error` never sees it (a park or a cancelled run still propagates).
167
174
  - **Sub-workflows are tools.** Allow `archmax_workflow_<slug>` (slug verbatim)
168
175
  and the sibling `workflows/<slug>/` is callable: its `manual` trigger's
169
- `requires` are the parameters, its `returns` the result
170
- (`{ message, returns }`). Nothing captures the result — the caller records
176
+ `requires` are the parameters (typed where the entries are typed; a
177
+ mistyped argument is refused `invalid-param`, and `"${{count}}"` alone
178
+ passes the value with its own type), its `returns` the result
179
+ (`{ message, returns }`; a mistyped typed return fails `invalid-return`).
180
+ The trigger's `description` leads the tool description. Nothing captures the result — the caller records
171
181
  what it needs with `archmax_set_variables`, made mandatory by `requires`.
172
182
  The child is a separate session with a fresh transcript, sees only its
173
183
  arguments (as locked variables), and shares no prose. One call = one
@@ -1,4 +1,4 @@
1
- import type { GovernedAgent } from "../agent.js";
1
+ import type { Agent, WorkflowSurface } from "../agent.js";
2
2
  import { type TriggerInput } from "../machine/triggers.js";
3
3
  import { type UsageTracker } from "../core/usage.js";
4
4
  import { type Style } from "./style.js";
@@ -19,7 +19,9 @@ export declare const isKnown: (e: unknown) => e is Error;
19
19
  export declare function bootstrap(workflow: string, rootDir: string | undefined, usage: UsageTracker, extra?: {
20
20
  trigger?: TriggerInput;
21
21
  variables?: Record<string, unknown>;
22
- }): Promise<GovernedAgent>;
22
+ }): Promise<Agent & {
23
+ workflow: WorkflowSurface;
24
+ }>;
23
25
  /**
24
26
  * Everything a session command shares: the id is validated before anything is
25
27
  * assembled, the agent is bootstrapped under the (given or inferred) workflow,
@@ -27,7 +29,9 @@ export declare function bootstrap(workflow: string, rootDir: string | undefined,
27
29
  * session is disposed however the body ended.
28
30
  */
29
31
  export declare function withSession(inv: Invocation, sessionId: string | undefined, body: (ctx: {
30
- agent: GovernedAgent;
32
+ agent: Agent & {
33
+ workflow: WorkflowSurface;
34
+ };
31
35
  style: Style;
32
36
  usage: UsageTracker;
33
37
  }) => Promise<number>): Promise<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../../src/cli/bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAqB,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAqB,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,eAAe,EAA+B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AAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;IACjF,IAAI,SAAS;QACX,MAAM,IAAI,UAAU,CAClB,uBAAuB,SAAS,OAAO,SAAS,oCAAoC,CACrF,CAAC;IACJ,MAAM,QAAQ,GAAG,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,QAA8B,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IACtF,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAC5B,kBAAkB,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC;IAClE,MAAM,KAAK,GAAG,MAAM,SAAS,CAAC,QAAQ,EAAE,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACzD,IAAI,CAAC;QACH,OAAO,MAAM,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7C,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,OAAO,CAAC,CAAC,CAAC;YAAE,MAAM,IAAI,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAC9C,MAAM,CAAC,CAAC;IACV,CAAC;YAAS,CAAC;QACT,IAAI,SAAS,KAAK,SAAS;YAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACxD,CAAC;AACH,CAAC"}
@@ -116,7 +116,7 @@ export function createStateFlowRenderer(stream, styleOverride) {
116
116
  const why = input && event.reason?.trim() ? ` — ${event.reason.trim()}` : "";
117
117
  const due = input && event.resumeAt ? ` (due ${event.resumeAt})` : "";
118
118
  write(`${ACTION_INDENT}${s.yellow(`${icons.warn} ${label}`)} ` +
119
- `${s.dim(`${input ? "in" : "at"} ${event.node}${why}${due}`)}`);
119
+ `${s.dim(`${input ? "in" : "at"} ${event.state}${why}${due}`)}`);
120
120
  break;
121
121
  }
122
122
  // A state's delegations render as nested activity, not as trail steps
@@ -147,12 +147,12 @@ export function createStateFlowRenderer(stream, styleOverride) {
147
147
  // model says, and showing it twice would read as two replies.
148
148
  case "park-message":
149
149
  if (event.direction === "inbound") {
150
- write(`${ACTION_INDENT}${s.yellow(icons.arrow)} ${s.dim(`message to the parked session at ${event.node}`)}`);
150
+ write(`${ACTION_INDENT}${s.yellow(icons.arrow)} ${s.dim(`message to the parked session at ${event.state}`)}`);
151
151
  writeAgentText(event.text);
152
152
  }
153
153
  break;
154
154
  case "delivered":
155
- write(`${ACTION_INDENT}${s.green(icons.check)} ${s.dim(`${event.trigger} delivered, resuming ${event.node}`)}`);
155
+ write(`${ACTION_INDENT}${s.green(icons.check)} ${s.dim(`${event.trigger} delivered, resuming ${event.state}`)}`);
156
156
  break;
157
157
  case "warning":
158
158
  write(`${s.yellow(`${icons.warn} [${event.scope}]`)} ${s.dim(event.message)}`);
@@ -1 +1 @@
1
- {"version":3,"file":"state-flow.js","sourceRoot":"","sources":["../../src/cli/state-flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,WAAW,EAA2B,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAmC,MAAM,sBAAsB,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,KAAK,EAAc,MAAM,YAAY,CAAC;AAW5D,kEAAkE;AAClE,MAAM,aAAa,GAAG,MAAM,CAAC;AAC7B,iFAAiF;AACjF,MAAM,aAAa,GAAG,QAAQ,CAAC;AAC/B,mEAAmE;AACnE,MAAM,aAAa,GAAG,QAAQ,CAAC;AAC/B,sDAAsD;AACtD,MAAM,WAAW,GAAG,IAA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AAC,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YACtF,KAAK,MAAM,CAAC,IAAI,MAAM;gBAAE,KAAK,CAAC,GAAG,WAAW,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YAChF,KAAK,MAAM,CAAC,IAAI,MAAM;gBAAE,KAAK,CAAC,GAAG,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YAClF,KAAK,MAAM,CAAC,IAAI,OAAO;gBAAE,KAAK,CAAC,GAAG,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACxF,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -19,7 +19,8 @@ type Transition = {
19
19
  };
20
20
  /** The context a person needs to decide a parked human state, from the spec — nothing is rendered to a file. */
21
21
  export declare function printDecisionContext(machine: WorkflowMachine, state: string, transitions: Transition[], evidence?: string[], write?: (line: string) => void): void;
22
- export declare function printResumed(style: Style, sessionId: string, verb: string, outcome: DecideOutcome): void;
22
+ /** Report a resume's result. Returns the exit code: 1 when the session ended rejected. */
23
+ export declare function printResumed(style: Style, sessionId: string, verb: string, outcome: DecideOutcome): number;
23
24
  export declare function printReply(style: Style, sessionId: string, outcome: ReplyOutcome): void;
24
25
  export interface RunTurnInput {
25
26
  workflow: string;
@@ -29,13 +30,17 @@ export interface RunTurnInput {
29
30
  sessionId?: string;
30
31
  sessionPath?: string;
31
32
  }
32
- /** Report a turn's {@link Outcome}: an answer, a park (with what resumes it), or a resume's result. */
33
- export declare function printOutcome(style: Style, machine: WorkflowMachine, sessionId: string, outcome: Outcome): void;
33
+ /**
34
+ * Report a turn's {@link Outcome}: an answer, a park (with what resumes it), a
35
+ * rejection, or a resume's result. Returns the exit code: a park is a success,
36
+ * a rejection is not.
37
+ */
38
+ export declare function printOutcome(style: Style, machine: WorkflowMachine, sessionId: string, outcome: Outcome): number;
34
39
  /**
35
40
  * Drive one turn: name the session the firing belongs to, send the turn through
36
41
  * `workflow.send` — which delivers, replies or opens a turn as the session's
37
42
  * state dictates — and report how it ended. Returns the exit code; a park is a
38
- * successful outcome.
43
+ * successful outcome, a rejected session a failed one.
39
44
  */
40
45
  export declare function driveTurn(agent: Agent, style: Style, usage: UsageTracker, input: RunTurnInput): Promise<number>;
41
46
  export {};