@nylorun/harness 0.21.0-beta → 0.21.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,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.21.2-beta
4
+
5
+ ### Patch Changes
6
+
7
+ - Pin core to the tested release.
8
+ - Updated dependencies [4b9906f]
9
+ - @nylorun/core@0.11.0-beta
10
+
11
+ ## 0.21.1-beta
12
+
13
+ ### Patch Changes
14
+
15
+ - Pin core to the tested release.
16
+ - Updated dependencies [fed780d]
17
+ - Updated dependencies [fed780d]
18
+ - Updated dependencies [7f4c3f1]
19
+ - Updated dependencies [5ca1923]
20
+ - Updated dependencies [5ca1923]
21
+ - @nylorun/core@0.10.0-beta
22
+
3
23
  ## 0.21.0-beta
4
24
 
5
25
  ### Minor Changes
package/HOST_CONTRACT.md CHANGED
@@ -8,22 +8,27 @@ Bearer application credentials: `PUT /v1/agents/:agentId` (`PutAgentRequest`: re
8
8
 
9
9
  **Action endpoints (protocol 3).** The Runtime POSTs each Action to its agent's endpoint as `ActionDelivery` `{type: "action", action, sandbox}` (or `{type: "ping"}`), signed with a delivery token in `Nylorun-Signature`: an ES256 JWT (`typ` `nylorun-delivery+jwt`, `kid` from the Tenant's public JWKS at `GET /v1/access/jwks`, readable without a credential) whose `aud` is the registered URL, `sub` the Action id (or `ping`), `gen` the delivery generation, `bdy` the base64url SHA-256 of the body, and `exp` at most 900 s ahead. Before sending, the Action becomes `delivering` with a new `generation` and a `deadlineAt`, and `action.delivered` is published. The endpoint answers `200` with the tool value (with `Nylorun-Outcome: 1`, a tagged outcome), `202` to finish in the background, `409` when it serves a different manifest (retried), `429`/`503` to be retried later, or another `4xx` to fail the Action (`endpoint.rejected`). A background delivery keeps its deadline with `POST /v1/actions/:id/heartbeat` (delivery token; returns `{token, deadlineAt}`, `409` once the Action was cancelled, lost or delivered again) and settles with `POST /v1/actions/:id/result` `{value}`, whose receipt is idempotent. The delivery token authorizes only those routes and `POST /v1/actions/:id/sandbox/:tool` for its own Action and generation, and is refused from browsers. A delivery that may have been received but was never answered is lost: a `tool` becomes `uncertain`; a `hook`, `fn` or `verify` returns to pending and is delivered again, and the new generation fences the earlier one. An endpoint that cannot be reached is retried with backoff and `action.delivery_failed`. Cancelling a turn aborts its deliveries. Action rows may use `kind` `tool` | `hook` | `fn` | `verify`; workflow code carries `path` and `key` instead of `capabilityId` / `toolName`.
10
10
 
11
- **Tenant and protocol headers.** Every Tenant route requires `Nylorun-Tenant`
12
- (Tenant id matching `tn_` + 26 Crockford chars) and `Nylorun-Protocol` (client
13
- protocol integer). Missing or malformed Tenant header → `400` before filesystem
14
- access. Missing or unsupported protocol → `426` with
11
+ **Tenant and protocol headers.** A Host serves the one Tenant of its
12
+ installation, and nothing in a request selects it (protocol 5). Every Tenant
13
+ route requires `Nylorun-Protocol` (client protocol integer). Missing or
14
+ unsupported protocol → `426` with
15
15
  `{ status: "rejected", code: "protocol_unsupported", protocol }` before
16
- authentication. A Tenant id in the query string or body is ignored. Selection of
17
- a Tenant is not authentication: unknown Tenant, quarantined Tenant, and rejected
18
- credential share an opaque `404` body. Admin routes use the Host admin key and
19
- never accept a Tenant bearer. Vocabulary:
16
+ authentication. For one release the Host also serves protocol 4 clients, which
17
+ send `Nylorun-Tenant`: a header naming the Host's Tenant is accepted, one naming
18
+ another Tenant (or a malformed one), or a publishable key of another Tenant, is
19
+ the opaque `404`. A Tenant id in the query string or body is ignored. A Tenant
20
+ that could not be opened, an unknown Tenant and a rejected credential share the
21
+ opaque `404` body. Admin routes use the Host admin key and never accept a
22
+ Tenant bearer; there are no Admin Tenant routes. Vocabulary:
20
23
  [runtime/src/CONTEXT.md](../runtime/src/CONTEXT.md).
21
24
 
22
25
  Unauthenticated `GET /health` returns status, `service: "nylorun-runtime"`,
23
26
  version, `hostId`, pid, and `protocol: { min, max, features }` (plus diagnostic
24
27
  `coreVersion`). Clients treat unknown fields as optional so an older parser
25
- still works. `GET /ready` is `200` only after the listener is up and Tenant
26
- discovery has finished.
28
+ still works. `GET /ready` is `200` only after the listener is up and the Host's
29
+ Tenant is open; a Tenant that cannot be opened fails it with its cause
30
+ (`schema-too-new`, `kek-missing`, `database-layout-old`, …), also reported in
31
+ `/v1/admin/status`.
27
32
 
28
33
  All command idempotency keys bind to canonical request content within a session; requestId is transport metadata and is excluded from content comparison; exact semantic duplicates return the stored original response; changed content conflicts (409). A background result posted again for the same delivery returns its original receipt; a different outcome, or a result for a lost, cancelled or redelivered generation, is rejected (`409`). Heartbeat cannot resurrect a lost delivery. Lost tool work is uncertain, not automatically delivered again. A lost `hook` action returns to pending and is delivered again, because hooks are pure by contract. Results after cancellation cannot resume a turn. Only a delivery token can submit an action result. No hardcoded production credentials.
29
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nylorun/harness",
3
- "version": "0.21.0-beta",
3
+ "version": "0.21.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.5"
78
78
  },
79
79
  "dependencies": {
80
- "@nylorun/core": "0.9.0-beta"
80
+ "@nylorun/core": "0.11.0-beta"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "zod": "^4.6.5"