@ship.zone/runner 0.2.3 → 1.0.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,70 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-09-27 - 1.0.0
4
+
5
+ ### Breaking Changes
6
+
7
+ - speak the @foss.global/ci-spec 1.1.1 runner protocol for the `oci` execution profile (protocol)
8
+ - Upgrade `@foss.global/ci-spec` to 1.1.1 and move every endpoint from `/api/runner/v2` to
9
+ `/api/runner`. Discovery, registration, and session messages carry `spec` instead of
10
+ `protocol`; the runner sends its implemented version, refuses coordinators of another major
11
+ version, and uses only constructs of the lower of both versions.
12
+ - Compiled jobs carry `spec`, the top-level `network` object, `requirements.isolation` and
13
+ `platform`, `permissions.images`, `resources.sharedMemoryBytes`, and the `oci`, `artifacts`,
14
+ and `caches` identifiers; a job whose `spec` is newer or of another major version is abandoned
15
+ as `runner_error`.
16
+ - Capabilities advertise `oci`, `container` isolation, the verified engine's native linux
17
+ platform, the `none` network mode, and `resources` maxima; `runnerCapabilities` now takes the
18
+ verified runtime facts.
19
+ - Leases are validated against the published `JobLease` schema including `grants`, `bindings`,
20
+ and `npmGrants`, and their coherence with the job. Leases for `vm`, `oci-image`, `microvm`
21
+ isolation, `egress` networks, candidate bindings, image grants, or npm read grants are
22
+ abandoned as `runner_error` before acceptance.
23
+ - Every request is validated against its published OpenAPI component before it is sent, and every
24
+ response before use.
25
+ - `oci.allowedNetworks` accepts only `none` and `init --allow-network` is rejected: `bridge` is
26
+ gone from the protocol and `egress` allowlists are not enforced by this runner.
27
+ - New `oci.defaultSharedMemoryBytes` (64 MiB) and `oci.maximumSharedMemoryBytes` (1 GiB) size
28
+ `/dev/shm` in every step container.
29
+ - Secret redaction follows the specification redaction set: job secret values, npm grant tokens,
30
+ and each line of multi-line values, leaving out members shorter than 8 UTF-8 bytes, redacted
31
+ across interleaved log streams. Artifacts and caches whose entry paths, link targets, or content
32
+ contain a member are never published.
33
+ - The job timeout is the attempt deadline measured from the acceptance 204 and covers source
34
+ extraction, cache restoration, and every step; reaching it terminates execution, keeps only the
35
+ artifacts of an unsuccessful attempt, publishes no cache, and completes `timed_out`, while an
36
+ earlier accepted cancellation still completes `canceled`. `IExecutionContext.timeoutMs` carries
37
+ the remaining deadline to the executor.
38
+ - A pending registration journal written by an earlier runner version is rejected; remove it and
39
+ register again with a new bootstrap token.
40
+
41
+ ### Fixes
42
+
43
+ - keep an archive creation failure from being misreported as a cleanup failure (transfer-archive)
44
+ - Canceling the already-errored compression stream rejects with the same stored error, which is
45
+ no longer counted as a second cleanup failure that invalidated the runner session.
46
+
47
+ - grant stopped containers their full configured grace period (oci-executor)
48
+ - The stop grace and the forced-removal deadline are measured from one timestamp, so a
49
+ millisecond passing between two clock reads no longer shortens `docker stop --time` by a second.
50
+
51
+ ### Maintenance
52
+
53
+ - exempt owner scopes from the Deno release-age gate (deno)
54
+ - `deno.json` sets `minimumDependencyAge` to one day and excludes `npm:@foss.global/*`,
55
+ `npm:@git.zone/*`, and `npm:@push.rocks/*`, so first-party releases such as
56
+ `@foss.global/ci-spec` resolve without a lockfile while third-party packages keep the gate.
57
+ - update release tooling (tooling)
58
+ - Pin pnpm 12.5.1 and update `@git.zone/tsrust` to ^1.15.1.
59
+
60
+ ## 2026-08-30 - 0.2.4
61
+
62
+ ### Fixes
63
+
64
+ - generate default registration request IDs safely (registration-state)
65
+ - Wrap crypto.randomUUID in a factory to avoid unbound default request ID generation.
66
+ - Add coverage for creating and persisting a generated UUID request ID.
67
+
3
68
  ## 2026-08-30 - 0.2.3
4
69
 
5
70
  ### Fixes
package/deno.json CHANGED
@@ -1,8 +1,16 @@
1
1
  {
2
2
  "name": "@ship.zone/runner",
3
- "version": "0.2.3",
3
+ "version": "1.0.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.1.1",
44
+ "@foss.global/ci-spec/archive-cases.json": "npm:@foss.global/ci-spec@1.1.1/archive-cases.json",
45
+ "@foss.global/ci-spec/digest-cases.json": "npm:@foss.global/ci-spec@1.1.1/digest-cases.json",
46
+ "@foss.global/ci-spec/runner-cases.json": "npm:@foss.global/ci-spec@1.1.1/runner-cases.json",
47
+ "@foss.global/ci-spec/runner-job.schema.json": "npm:@foss.global/ci-spec@1.1.1/runner-job.schema.json",
48
+ "@foss.global/ci-spec/runner-messages.json": "npm:@foss.global/ci-spec@1.1.1/runner-messages.json",
49
+ "@foss.global/ci-spec/runner.openapi.json": "npm:@foss.global/ci-spec@1.1.1/runner.openapi.json",
50
+ "@foss.global/ci-spec/version-cases.json": "npm:@foss.global/ci-spec@1.1.1/version-cases.json",
51
+ "@foss.global/ci-spec/conformance/runner-jobs/": "npm:/@foss.global/ci-spec@1.1.1/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"