omp-conductor 0.18.1 → 0.18.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/src/worker.ts CHANGED
@@ -12,7 +12,6 @@
12
12
 
13
13
  import { mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
14
14
  import { join } from "node:path";
15
- import type { WorkerIdentity } from "./host.ts";
16
15
  import { createSession, disposeSession, SessionAdmissionClosedError, type AgentSessionLike } from "./omp.ts";
17
16
  import type { GateShape, ReleaseBlockContext } from "./release-policy.ts";
18
17
  import type { Caps, GraphToolsObservation, ResolvedGrants, RunState } from "./types.ts";
@@ -218,17 +217,6 @@ export interface WorkerOpts {
218
217
  onReleaseBlocked?: (shape: GateShape, context: ReleaseBlockContext) => void;
219
218
  /** The child's pid, the instant it exists. See {@link VerbListener.bindPid}. */
220
219
  onSpawn?: (pid: number) => void;
221
- /**
222
- * The worker identity this session runs under (#798): the dedicated
223
- * least-privilege account the daemon resolved for worker launch. Forwarded
224
- * to `createSession`, which launches the child through the identity
225
- * transition (setpriv), re-points its environment at the worker's own home,
226
- * grants it the control socket, and refuses the session unless its kernel
227
- * uid/gid match. The daemon supplies it for every worker launch and refuses
228
- * to dispatch a worker without it; absent, the session runs as the
229
- * caller's own identity (orchestrator, tests).
230
- */
231
- workerIdentity?: WorkerIdentity;
232
220
  /** Control socket for that child, beside the run's own session directory. */
233
221
  socketPath?: string;
234
222
  /**
@@ -571,7 +559,6 @@ export async function runWorker(
571
559
  role: "worker",
572
560
  ...(o.releaseGrants === undefined ? {} : { releaseGrants: o.releaseGrants }),
573
561
  ...(o.onReleaseBlocked === undefined ? {} : { onReleaseBlocked: o.onReleaseBlocked }),
574
- ...(o.workerIdentity === undefined ? {} : { identity: o.workerIdentity }),
575
562
  ...(o.onSpawn === undefined ? {} : { onSpawn: o.onSpawn }),
576
563
  ...(o.socketPath === undefined ? {} : { socketPath: o.socketPath }),
577
564
  ...(o.verbSocketPath === undefined ? {} : { verbSocketPath: o.verbSocketPath }),