@nylorun/harness 0.37.1-beta → 0.37.2-beta

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.37.2-beta
4
+
5
+ ### Patch Changes
6
+
7
+ - Pin core to the tested release.
8
+ - Updated dependencies [13eb181]
9
+ - @nylorun/core@0.51.0-beta
10
+
3
11
  ## 0.37.1-beta
4
12
 
5
13
  ### Patch Changes
package/HOST_CONTRACT.md CHANGED
@@ -59,7 +59,7 @@ Agents used as tools: a manifest tool with an `agent` body (the child manifest i
59
59
 
60
60
  ## Harness API 5
61
61
 
62
- The Runtime runs every segment through the Harness API (blueprint D37–D42): core keeps scheduling, the record, settle and takeover; a harness runs the engine. Three version numbers apply: the transport (path `/nylorun/harness/v1`, header `Nylorun-Harness-Api: 1`), the messages (`HARNESS_API_VERSION = 5`; core refuses a `hello` naming another `api`; 5 (protocol 16) replaced `turn.start.environment` with `turn.start.agent` (`{id, kind, sandbox?}`, the Agent the session runs on) and added `turn.start.definition` (`{name, version}`, the agent manifest version the session pinned) and `turn.start.loop` (the harness section's `loop`); 4 added the artifact seam, `artifact.read` and `artifact.write`, over which a harness reads and writes its run's session's artifacts, the error code `not_found`, `turn.start.model`, `turn.start.environment` and `turn.start.mcp` (the session's MCP discovery as raw facts), and each tool effect's `target` (an MCP or HTTP tool's identity), the folder mode of `artifact.write` (`kind: "folder"`, `file`, `refused`), `purpose: "summary"` on model intents, compaction edits (`kind: "compaction"` with `CompactionFactsSchema`) and the claims `artifact.export.skipped` and `artifact.export.failed`, and removed `hello.features.tools`, `turn.start.sessionTools`, `routing.mcpSnapshot`, the `platform` target and the `workspace.read` listing and bytes calls (core exports no outputs); 3 renamed `hello.capabilities` to `features` and dropped `capabilityId` from effect intents, MCP server refs, HTTP call bodies and MCP records) and the Runtime protocol, which only the Runtime and Management APIs carry. The whole contract is `@nylorun/core/harness-api` (R4.5): frames and messages, the transport and the pod join (`HostJoinRequestSchema`, `HostJoinAnswerSchema`), the Model and Tool Gate bodies (`ModelCallBodySchema`, `ToolCallBodySchema`, `HttpCallBodySchema`, MCP bodies, `GATE_ERROR_CODES`), the MCP snapshot (`McpSnapshotSchema`), transcript entries (`TranscriptEntrySchema`) and the effect id rule (`effectIdOf`: `<turnId>:<segment>:<kind>:<identity>`; a run gets back only its segment's outcomes), the request hash, transcript edits and the RPC channel; the Runtime validates with the same schemas, and the build writes them as one JSON Schema document (`@nylorun/core/harness-api/schema.json`). `TurnStart.trace` (optional W3C `traceparent`) is the turn's trace context when the Runtime traces. With the Tenant's fixture model on (`TurnStart.options.fixtureModel`, informational), the Model Gate answers model calls itself, metered like any model (provider `fixture`, cost 0), so a harness calls the gate as usual. Harness ids (R4.1): `hello.name` is the harness's id (ours says `nylorun`; `@nylorun/harness` is refused); a session pins its Environment's harness, else `nylorun`, and only a connection of that id takes its runs; a credential binds its id (the harness token is ours, a custom harness has its own from `nylorun-operate harness token put <id>`, a pod's host is its Environment's harness). A harness's state is its own (R4.2): core stores it unread; a custom harness's is at most 256 KiB, it cannot pause for approvals, and a tool it runs itself is a `harness` effect, journaled like ours. Events carry who wrote them (R4.9): `harness` with its id, `runId` and evidence `claimed` for what a harness reported. v2 removed held runs, `TurnStart.options.holdMs` and `effect.resolved`, with track R2; the harness client is `@nylorun/harness/api` (`createHarness({channel, executors, features?, mcpTools?, toolResults?, outputs?})`: `mcpTools` how our engine defers MCP tools and `tool_search`'s limits, `toolResults` how it shapes tool results, `outputs` its outputs folder's directory and byte bound, each partial over its defaults). Its executors' `files` (`read`, `write`, `list`, `mount`) are the sandbox files our engine decides about: before each `sandbox` call it mounts each skill version of the turn's tree at `/skills/<name>@<hash>/` (the host only writes, `present` when the sandbox holds it), and at a completed turn's end in a sandbox it saves `/workspace/outputs` as the session's `outputs` folder over the artifact seam before `turn.completed`. Placement changes none of it (protocol 15): the in-process harness calls models through the Model Gate (a scripted model's gate in tests), opens MCP servers through the Tool Gate, and reads skill bytes over `definition.file`. A Tenant runs one harness in its own process over a memory channel, or (F6.2, `NYLORUN_HARNESS=remote`) harnesses connect to core's Harness API listener over WebSocket (`/nylorun/harness/v1`, the harness credential): `--service harness` runs one with its own MCP pool and sandboxes and no store, and serves the Tenant's workspaces (`workspace.*`). Durable checkpoint 1 is unchanged.
62
+ The Runtime runs every segment through the Harness API: core keeps scheduling, the record, settle and takeover; a harness runs the engine. Three version numbers apply: the transport (path `/nylorun/harness/v1`, header `Nylorun-Harness-Api: 1`), the messages (`HARNESS_API_VERSION = 5`; core refuses a `hello` naming another `api`; 5 (protocol 16) replaced `turn.start.environment` with `turn.start.agent` (`{id, kind, sandbox?}`, the Agent the session runs on) and added `turn.start.definition` (`{name, version}`, the agent manifest version the session pinned) and `turn.start.loop` (the harness section's `loop`); 4 added the artifact seam, `artifact.read` and `artifact.write`, over which a harness reads and writes its run's session's artifacts, the error code `not_found`, `turn.start.model`, `turn.start.environment` and `turn.start.mcp` (the session's MCP discovery as raw facts), and each tool effect's `target` (an MCP or HTTP tool's identity), the folder mode of `artifact.write` (`kind: "folder"`, `file`, `refused`), `purpose: "summary"` on model intents, compaction edits (`kind: "compaction"` with `CompactionFactsSchema`) and the claims `artifact.export.skipped` and `artifact.export.failed`, and removed `hello.features.tools`, `turn.start.sessionTools`, `routing.mcpSnapshot`, the `platform` target and the `workspace.read` listing and bytes calls (core exports no outputs); 3 renamed `hello.capabilities` to `features` and dropped `capabilityId` from effect intents, MCP server refs, HTTP call bodies and MCP records) and the Runtime protocol, which only the Runtime and Management APIs carry. The whole contract is `@nylorun/core/harness-api` (R4.5): frames and messages, the transport and the pod join (`HostJoinRequestSchema`, `HostJoinAnswerSchema`), the Model and Tool Gate bodies (`ModelCallBodySchema`, `ToolCallBodySchema`, `HttpCallBodySchema`, MCP bodies, `GATE_ERROR_CODES`), the MCP snapshot (`McpSnapshotSchema`), transcript entries (`TranscriptEntrySchema`) and the effect id rule (`effectIdOf`: `<turnId>:<segment>:<kind>:<identity>`; a run gets back only its segment's outcomes), the request hash, transcript edits and the RPC channel; the Runtime validates with the same schemas, and the build writes them as one JSON Schema document (`@nylorun/core/harness-api/schema.json`). `TurnStart.trace` (optional W3C `traceparent`) is the turn's trace context when the Runtime traces. With the Tenant's fixture model on (`TurnStart.options.fixtureModel`, informational), the Model Gate answers model calls itself, metered like any model (provider `fixture`, cost 0), so a harness calls the gate as usual. Harness ids (R4.1): `hello.name` is the harness's id (ours says `nylorun`; `@nylorun/harness` is refused); a session pins its Environment's harness, else `nylorun`, and only a connection of that id takes its runs; a credential binds its id (the harness token is ours, a custom harness has its own from `nylorun-operate harness token put <id>`, a pod's host is its Environment's harness). A harness's state is its own (R4.2): core stores it unread; a custom harness's is at most 256 KiB, it cannot pause for approvals, and a tool it runs itself is a `harness` effect, journaled like ours. Events carry who wrote them (R4.9): `harness` with its id, `runId` and evidence `claimed` for what a harness reported. v2 removed held runs, `TurnStart.options.holdMs` and `effect.resolved`, with track R2; the harness client is `@nylorun/harness/api` (`createHarness({channel, executors, features?, mcpTools?, toolResults?, outputs?})`: `mcpTools` how our engine defers MCP tools and `tool_search`'s limits, `toolResults` how it shapes tool results, `outputs` its outputs folder's directory and byte bound, each partial over its defaults). Its executors' `files` (`read`, `write`, `list`, `mount`) are the sandbox files our engine decides about: before each `sandbox` call it mounts each skill version of the turn's tree at `/skills/<name>@<hash>/` (the host only writes, `present` when the sandbox holds it), and at a completed turn's end in a sandbox it saves `/workspace/outputs` as the session's `outputs` folder over the artifact seam before `turn.completed`. Placement changes none of it (protocol 15): the in-process harness calls models through the Model Gate (a scripted model's gate in tests), opens MCP servers through the Tool Gate, and reads skill bytes over `definition.file`. A Tenant runs one harness in its own process over a memory channel, or (F6.2, `NYLORUN_HARNESS=remote`) harnesses connect to core's Harness API listener over WebSocket (`/nylorun/harness/v1`, the harness credential): `--service harness` runs one with its own MCP pool and sandboxes and no store, and serves the Tenant's workspaces (`workspace.*`). Durable checkpoint 1 is unchanged.
63
63
 
64
64
  Frames: `{t:"req",id,m,p}`, `{t:"res",id,ok,r|e:{code,message}}`, `{t:"msg",m,p}`, `{t:"abort",id}`, `{t:"ping"}`. Error codes: `run_not_held`, `turn_cancelled`, `ownership_lost`, `effect_drift`, `invalid`, `unavailable`, `internal`; the message is today's (`Turn cancelled`, `Effect identity request drift`, …).
65
65
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nylorun/harness",
3
- "version": "0.37.1-beta",
3
+ "version": "0.37.2-beta",
4
4
  "description": "Nylorun's TypeScript agent execution engine. See github.com/nylorun/agents.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -77,7 +77,7 @@
77
77
  "zod": "^4.6.7"
78
78
  },
79
79
  "dependencies": {
80
- "@nylorun/core": "0.50.0-beta"
80
+ "@nylorun/core": "0.51.0-beta"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "zod": "^4.6.7"