@ship.zone/runner 0.2.4 → 1.1.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.
package/changelog.md CHANGED
@@ -1,5 +1,79 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-09-27 - 1.1.0
4
+
5
+ ### Features
6
+
7
+ - speak the @foss.global/ci-spec 1.2.0 runner protocol (protocol)
8
+ - Upgrade `@foss.global/ci-spec` to 1.2.0; the runner implements and sends `spec` 1.2.0, and a 1.1
9
+ or 1.0 coordinator still uses the constructs of its own version.
10
+ - Capabilities advertise an empty `leaseFeatures` list and `maximumTimeoutMs`, the configured
11
+ `oci.maximumTimeoutMs`, when the lower of the coordinator and runner versions is 1.2.0 or later,
12
+ and omit both below it, as `resources` is omitted against a 1.0.0 coordinator.
13
+ - A lease that uses a pull grant, binding, or `npmGrants` outside the advertised `leaseFeatures`,
14
+ or a job whose `timeoutMs` exceeds the advertised `maximumTimeoutMs`, is abandoned as
15
+ `runner_error` before acceptance. Leases with grants, bindings, or npm grants stay refused in
16
+ every session.
17
+ - The redaction set splits values into lines at CR LF, LF, and CR, as 1.2.0 defines; the behavior
18
+ is unchanged and now covered by the line-definition vectors.
19
+
20
+ ## 2026-09-27 - 1.0.0
21
+
22
+ ### Breaking Changes
23
+
24
+ - speak the @foss.global/ci-spec 1.1.1 runner protocol for the `oci` execution profile (protocol)
25
+ - Upgrade `@foss.global/ci-spec` to 1.1.1 and move every endpoint from `/api/runner/v2` to
26
+ `/api/runner`. Discovery, registration, and session messages carry `spec` instead of
27
+ `protocol`; the runner sends its implemented version, refuses coordinators of another major
28
+ version, and uses only constructs of the lower of both versions.
29
+ - Compiled jobs carry `spec`, the top-level `network` object, `requirements.isolation` and
30
+ `platform`, `permissions.images`, `resources.sharedMemoryBytes`, and the `oci`, `artifacts`,
31
+ and `caches` identifiers; a job whose `spec` is newer or of another major version is abandoned
32
+ as `runner_error`.
33
+ - Capabilities advertise `oci`, `container` isolation, the verified engine's native linux
34
+ platform, the `none` network mode, and `resources` maxima; `runnerCapabilities` now takes the
35
+ verified runtime facts.
36
+ - Leases are validated against the published `JobLease` schema including `grants`, `bindings`,
37
+ and `npmGrants`, and their coherence with the job. Leases for `vm`, `oci-image`, `microvm`
38
+ isolation, `egress` networks, candidate bindings, image grants, or npm read grants are
39
+ abandoned as `runner_error` before acceptance.
40
+ - Every request is validated against its published OpenAPI component before it is sent, and every
41
+ response before use.
42
+ - `oci.allowedNetworks` accepts only `none` and `init --allow-network` is rejected: `bridge` is
43
+ gone from the protocol and `egress` allowlists are not enforced by this runner.
44
+ - New `oci.defaultSharedMemoryBytes` (64 MiB) and `oci.maximumSharedMemoryBytes` (1 GiB) size
45
+ `/dev/shm` in every step container.
46
+ - Secret redaction follows the specification redaction set: job secret values, npm grant tokens,
47
+ and each line of multi-line values, leaving out members shorter than 8 UTF-8 bytes, redacted
48
+ across interleaved log streams. Artifacts and caches whose entry paths, link targets, or content
49
+ contain a member are never published.
50
+ - The job timeout is the attempt deadline measured from the acceptance 204 and covers source
51
+ extraction, cache restoration, and every step; reaching it terminates execution, keeps only the
52
+ artifacts of an unsuccessful attempt, publishes no cache, and completes `timed_out`, while an
53
+ earlier accepted cancellation still completes `canceled`. `IExecutionContext.timeoutMs` carries
54
+ the remaining deadline to the executor.
55
+ - A pending registration journal written by an earlier runner version is rejected; remove it and
56
+ register again with a new bootstrap token.
57
+
58
+ ### Fixes
59
+
60
+ - keep an archive creation failure from being misreported as a cleanup failure (transfer-archive)
61
+ - Canceling the already-errored compression stream rejects with the same stored error, which is
62
+ no longer counted as a second cleanup failure that invalidated the runner session.
63
+
64
+ - grant stopped containers their full configured grace period (oci-executor)
65
+ - The stop grace and the forced-removal deadline are measured from one timestamp, so a
66
+ millisecond passing between two clock reads no longer shortens `docker stop --time` by a second.
67
+
68
+ ### Maintenance
69
+
70
+ - exempt owner scopes from the Deno release-age gate (deno)
71
+ - `deno.json` sets `minimumDependencyAge` to one day and excludes `npm:@foss.global/*`,
72
+ `npm:@git.zone/*`, and `npm:@push.rocks/*`, so first-party releases such as
73
+ `@foss.global/ci-spec` resolve without a lockfile while third-party packages keep the gate.
74
+ - update release tooling (tooling)
75
+ - Pin pnpm 12.5.1 and update `@git.zone/tsrust` to ^1.15.1.
76
+
3
77
  ## 2026-08-30 - 0.2.4
4
78
 
5
79
  ### Fixes
package/deno.json CHANGED
@@ -1,8 +1,16 @@
1
1
  {
2
2
  "name": "@ship.zone/runner",
3
- "version": "0.2.4",
3
+ "version": "1.1.0",
4
4
  "exports": "./mod.ts",
5
5
  "nodeModulesDir": "none",
6
+ "minimumDependencyAge": {
7
+ "age": "P1D",
8
+ "exclude": [
9
+ "npm:@foss.global/*",
10
+ "npm:@git.zone/*",
11
+ "npm:@push.rocks/*"
12
+ ]
13
+ },
6
14
  "tasks": {
7
15
  "dev": "deno run --allow-all mod.ts",
8
16
  "bundle": "deno bundle --frozen --check --platform=deno --keep-names --external '@foss.global/ci-spec' --external '@foss.global/ci-spec/*' --external 'ajv/*' --declaration --outdir dist_npm mod.ts",
@@ -32,9 +40,15 @@
32
40
  "strict": true
33
41
  },
34
42
  "imports": {
35
- "@foss.global/ci-spec": "npm:@foss.global/ci-spec@0.2.0",
36
- "@foss.global/ci-spec/archive-cases.json": "npm:@foss.global/ci-spec@0.2.0/archive-cases.json",
37
- "@foss.global/ci-spec/runner-job.schema.json": "npm:@foss.global/ci-spec@0.2.0/runner-job.schema.json",
43
+ "@foss.global/ci-spec": "npm:@foss.global/ci-spec@1.2.0",
44
+ "@foss.global/ci-spec/archive-cases.json": "npm:@foss.global/ci-spec@1.2.0/archive-cases.json",
45
+ "@foss.global/ci-spec/digest-cases.json": "npm:@foss.global/ci-spec@1.2.0/digest-cases.json",
46
+ "@foss.global/ci-spec/runner-cases.json": "npm:@foss.global/ci-spec@1.2.0/runner-cases.json",
47
+ "@foss.global/ci-spec/runner-job.schema.json": "npm:@foss.global/ci-spec@1.2.0/runner-job.schema.json",
48
+ "@foss.global/ci-spec/runner-messages.json": "npm:@foss.global/ci-spec@1.2.0/runner-messages.json",
49
+ "@foss.global/ci-spec/runner.openapi.json": "npm:@foss.global/ci-spec@1.2.0/runner.openapi.json",
50
+ "@foss.global/ci-spec/version-cases.json": "npm:@foss.global/ci-spec@1.2.0/version-cases.json",
51
+ "@foss.global/ci-spec/conformance/runner-jobs/": "npm:/@foss.global/ci-spec@1.2.0/conformance/runner-jobs/",
38
52
  "@std/assert": "jsr:@std/assert@^1.0.14",
39
53
  "@std/path": "jsr:@std/path@^1.1.2",
40
54
  "ajv/dist/2020.js": "npm:ajv@8.20.0/dist/2020.js"