@ship.zone/runner 0.2.0 → 0.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ship.zone/runner",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "The isolated OCI job runner for ship.zone CI/CD",
5
5
  "homepage": "https://code.foss.global/ship.zone/runner",
6
6
  "bugs": {
package/readme.md CHANGED
@@ -68,7 +68,7 @@ import { ShipRunner } from '@ship.zone/runner';
68
68
  Without an import-map entry, use the npm package directly:
69
69
 
70
70
  ```ts
71
- import { ShipRunner } from 'npm:@ship.zone/runner@0.2.0';
71
+ import { ShipRunner } from 'npm:@ship.zone/runner';
72
72
  ```
73
73
 
74
74
  For development in this repository, install dependencies and build the npm bundle plus the static
@@ -84,6 +84,28 @@ The published package includes `dist_rust/runnerworkspace_linux_amd64_musl` and
84
84
  `rust/.cargo/config.toml`, and the dependency notices. `oci.workspaceHelperPath` can select an
85
85
  explicit absolute helper path for development or controlled deployments.
86
86
 
87
+ Configured, packaged, and dependency-injected helper resolver paths are source files. Runtime
88
+ verification reads the bounded regular source through one pinned file descriptor, hashes those exact
89
+ bytes, and materializes an executable mode-`0755` copy below the private mode-`0700` runner state
90
+ subdirectory as `workspace-helpers/runnerworkspace_<target>_musl_<sha256>`. Source permissions are
91
+ not changed, so package managers may install the source without executable bits. The private parent
92
+ directory is the host access boundary; mode `0755` lets capability-dropped helper containers execute
93
+ the host-owned read-only bind mount. `IOciRuntimeFacts.helperPath` reports the validated
94
+ materialized path used by host probes and OCI bind mounts, while `helperSha256` reports its content
95
+ digest. A private advisory lock serializes materialization. Existing digest paths are reused only
96
+ after their type, single-link status, mode, and digest are revalidated without mutating them; the
97
+ runner retains a bounded set for rollback, reclaims stale incomplete temporary copies, and rejects
98
+ excessive recent temporary residue. The sole immediate-recovery exception is a validated temporary
99
+ name and exact digest destination that still reference the same two-link inode after interruption;
100
+ the runner removes the temporary name under the lock, verifies the destination became single-link,
101
+ and then reuses it.
102
+
103
+ Runtime verification creates one private `.runtime-probe-owner_<id>` marker in the helper state.
104
+ Host tmpfs probes include that owner in their exact directory names, and OCI runtime probe volumes
105
+ carry the same `ship.zone.runner.runtime-probe-owner` label. This lets interrupted verification be
106
+ cleaned by the same state owner without touching unowned probes or probes from another runner. The
107
+ runner syncs both the helper-directory entry and a newly created owner marker before using them.
108
+
87
109
  ## Configure And Run
88
110
 
89
111
  Create a private runner configuration:
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@ship.zone/runner',
6
- version: '0.2.0',
6
+ version: '0.2.2',
7
7
  description: 'The isolated OCI job runner for ship.zone CI/CD'
8
8
  }