← Open-Source-Katalog

Curator Agent Launcher

Auf GitHub ansehen

curator-agent-launcher

For named host selection, persistent tmux sessions and profile-bound cross-runtime resume, see Profile-bound conversion and terminal hosting.

curator-run composes Curator’s managed environment, agents-management’s admitted interactive plan, and native or hosted execution. The contract is SPEC 0.5.1-draft.

Documentation revision: accepted architecture-review findings (2026-10-13) clarify role/placement admission and inert candidate review; the workplace lifetime requirement and optional reviewer policies remain open in SPEC §9. No implementation, qualification or activation is claimed.

Front doors

Entry Composer Process/lifetime owner Status
Direct human curator-run <env-id> … Caller-side interactive launcher Launcher starts and waits for native child Existing API below.
Hosted launch Validated caller policy; plugin composes delegated launches Registered session manager Delegated launch requires a lease-capable selected manager; start binds with the admitted process tuple when present, otherwise it retains protection at the process-incarnation gate. Refusal never falls back to native.
Trusted same-user non-chat Explicit current-user assignment, frozen inputs and exact execution tuple Target launcher adapter/supervisor; no child a2a/board presence Contract/1 and Stage1 wire source/2, with closed records and inert manual cases; untrusted decoding/FD-argument syntax in internal/memberwire and bounded explicit N/A handle byte observations in internal/memberinput (Darwin/Linux), and retained content-addressed O observations in internal/memberobjects (Darwin/Linux), without full six-FD custody. No admission, qualified tuple, executor or shipped CLI.
Agent one-shot exec Caller composes; dispatcher admits/provisions/tracks curator-run under worker-<label> verifies and executes; dispatcher/helper own stop and cleanup Target amendment (version pending), not implemented; SPEC §10.

Front-door amendment (partially implemented; delegated activation signed off): FRONT-DOOR.md makes curator run hosted by default through a registered session-manager plugin, adds curator run werkstatt up|down, Muse v4, setup-token injection, a2a doorbells and the signed distribution. Delegated activation follows FRONT-DOOR §5.8. In auto mode, no registered or selected manager means native launch with a one-line notice; explicit hosted instead refuses session_host_missing with reason=no manager registered|no manager selected (after earlier validation). Lazy registration, exact-plan activation and real Muse hosting remain proposals subject to their own FRONT-DOOR gates. The launcher can request a Codex doorbell, but doorbell-codex/1 does not ship in this release.

The launcher-side protocol library is available in internal/sessionmanager/client: validated RPCs, terminal fd4 transport, request-derived capability decisions, and durable operation reconciliation. Its schemas and vectors are executable through Go tests. The library is wired into host selection and plain hosted launch/resume/attach and the Werkstatt lifecycle described below. A reference fake manager and qualification suite exercise the plugin contract with a durable no-op provider. Real-binary tests cover host-mode resolution, launch projection and refusal ordering.

Werkstatt lifecycle

werkstatt-record-v1 is a closed JSON file at ${XDG_CONFIG_HOME:-~/.config}/swarma/launcher/werkstatt/<id>.json. The record schema and vectors show its required fields and optional settings. The future board station source has an interface only.

One profile belongs to each Werkstatt conversation. If a resumable target has known liveness profile evidence that differs from the edited record, up refuses werkstatt_profile_changed (exit 1, id only) before resolving the fragment, writing hooks or the operation journal, or calling launch/resume. Use curator-run werkstatt recycle <id> or curator-run werkstatt up <id> --new to start a new generation and thread under the new profile; fresh mode also starts a new generation. Liveness records the submitted profile and preserves it through status, stop and operator edits. The operation journal retains it for crash recovery even if the record changes. Older liveness without profile skips the early check and keeps the manager’s existing resume-identity guard. Older journals settle with unknown profile evidence. Neither missing value is inferred; malformed present values refuse.

Optional profile_lock_sha256 pins the required profile lock as exactly 64 lowercase hex characters without a prefix. After resolving the profile with repair, up compares it with the fragment’s profile.lock_sha256. A mismatch refuses werkstatt_profile_lock_mismatch (exit 1, id only) before writing hooks or op.json or calling launch/resume, and leaves liveness unchanged. Neither hash is printed. An absent member preserves existing behavior; null or malformed values refuse werkstatt_record_invalid (exit 2) with field=profile_lock_sha256 before any manager call.

curator-run werkstatt up example
curator-run werkstatt up example --attach --task-class code.implement --difficulty high
curator-run werkstatt down example
curator-run werkstatt down example --force
curator-run werkstatt recycle example
curator-run werkstatt update example --set-task TASK-example --queue-depth 1 --json
curator-run werkstatt update example --clear-task
curator-run werkstatt status example --json
curator-run werkstatt recover example --rebind-manager
curator-run werkstatt list --json

up always uses the selected session manager (delegated launches are signed off; the trial flag is withdrawn). It checks existing ownership before repairing the profile, verifies both lexical and physical strict ancestors for context leaks, and checks only the presence of the identity file. Continue resumes the bound conversation; --new, fresh mode, recycle or a manager switch starts a new one. The child environment comes only from the record plus launcher-owned identity and separate-git values. Credentials remain null. Doorbell configuration is passed through. Claude transitional hooks are installed and verified before start; runtime binding remains the manager’s responsibility.

State, operation journal and lock files live under ${XDG_STATE_HOME:-~/.local/state}/swarma/launcher/werkstatt/. Legacy journals stay until a terminal outcome and a successful liveness write. Lease-bearing started journals additionally retain pending bind correlation as described below. Owner binding and expected tuple CAS prevent stale writes. recover --rebind-manager explicitly accepts a re-registered owner after a matching session read; recover --abandon-operation records an operator override and a tombstone, without stopping or cancelling anything remote. Dispatch edits require liveness with a non-null session (werkstatt_not_up for both a missing record and a pre-start override). A first settlement after a pre-start override takes the manager’s own generation on either binding.

update requires at least one dispatch field flag. recover requires exactly one of --rebind-manager or --abandon-operation; each refuses the other command’s flags. Both accept --json and report the resulting status row. The former mutating status forms retain their effects and stdout as deprecated aliases, with exactly one replacement warning on stderr. They are deprecated in 0.6.0 and removed no earlier than 0.8.0 (two releases later).

Ordinary status and list retain manager-evidence refresh and pending operation reconciliation. They perform no dispatch edit, rebind or abandonment without the deprecated flags. A settled read calls no mutating manager RPC; reconciling a prepared/not-found pending operation retains its cancellation fence. Mixed legacy dispatch/recovery flags keep recovery-before-edit ordering and print one warning naming both replacement commands.

Status JSON is a bare array of closed rows {record,liveness,manager_session,a2a,stale}. Manager and a2a evidence stay separate. The bounded a2a who read uses --stale-after at three times the configured doorbell heartbeat, or 3m without one; failures produce null a2a evidence. This threshold is display-only. An unreadable manager record sets state to unknown, state_source to manager and the heartbeat time; every other field is preserved. last_activity_at may be null in any record. A lock timeout always returns the JSON array as a read-only stale snapshot, including null liveness before the first start. Recycle polls draining every second for at most 20 seconds; a timeout never starts another generation.

Hosted home leases

Every new hosted launch or resume requires the public Curator home-lease API. Native launches make no lease calls. Fresh admission performs one manager describe; only delegated routes with admission, status and cancel support are eligible. An exact route refuses session_home_lease_unavailable with reason=route_not_lease_capable before any lease call or further manager RPC. The launcher probes curator env lease list --format json, persists the original validated request and admitted registration/capability evidence, then acquires with a stable request id. Missing, malformed or unsupported lease support refuses hosted execution; there is no bypass.

Plain hosted journals live under ${XDG_STATE_HOME:-~/.local/state}/swarma/launcher/hosted/; Werkstatt uses its existing journal directory. Recovery replays acquire before any manager RPC. Released/broken replay retains a not-started settlement and makes zero manager calls. A still-prepared, never-submitted request revalidates its frozen route before one submission; a possibly submitted request uses status/cancel and is never resent. Plain recovery matches canonical environment/profile/cwd and the exact manager registration, skips held locks, refuses multiple matches and ends the invocation after recovering one. Run the command again for a fresh admission after settlement.

After start, the launcher binds immediately with the four-field process tuple {pid, uid, boot_id, start_time} retained from a launch or resume reply, or its reconciled outcome, decoded under the frozen process-observation/1 admission, using the acquired revision. A successful bind settles the journal after liveness commits. Without that admitted tuple the launcher reports the validated session handle and session_home_lease_unavailable, reason=process_incarnation_unavailable. It retains the prepared lease and pending bind journal, makes no fabricated bind call and does not attach or report successful hosted admission. Recovery reconciles the same operation; it never starts another generation to repair this gate.

Werkstatt checks all effective file records and the complete Curator lease inventory before admission, then repeats the lease inventory check after acquire. Conflicting home-to-lane or lane-to-home assignments refuse reason=allocation_conflict; incomplete inventory also refuses. A configured Get-only station source cannot establish complete inventory. Old blocking allocations survive down, recycle, manager switches and abandon. A new tuple is eligible only after authoritative terminal disposition of the old one.

The launcher sends no release or break command on any path. Explicit werkstatt recover <id> --abandon-operation retains a settlement and prints a separate operator break command using the current lease id/revision; an unavailable revision produces an inspection hint instead. Neither abandonment nor terminal manager status proves release authority. Settlements live under ${XDG_STATE_HOME:-~/.local/state}/swarma/launcher/operations/settled/. Safe release remains a qualification gap pending independent observation.

Hosted doorbells

The reliable-inbox native composition candidate proposes a versioned launcher/host/carrier contract and manual counterexamples. Revision 2 composes detection, context delivery, independent supervision and pre-model reconciliation through one arbiter, with shared explicit-only thread eligibility and measured fallback retirement. Host-specific implementation waits for actual session-host extraction and accepted exported API publication. It is docs only: current refusals and wire contracts remain unchanged, and no runtime or installed-host native delivery is qualified by that proposal.

curator-run claude_code --hosted --a2a example.dev
curator-run codex_cli --hosted --detach --a2a example.dev

--a2a accepts [a-z0-9._=-]{1,64} and requires hosted execution. It asks for a doorbell with heartbeat 1m and six wakes per hour. Werkstatt records supply their own values. A doorbell selects delegated launch/resume, even when the manager also supports exact launch, under the post-sign-off policy in FRONT-DOOR §5.8; delegated_trial no longer changes routing. Exact-only managers refuse session_home_lease_unavailable, reason=route_not_lease_capable; missing runtime doorbell capabilities refuse before hook installation or start.

When Core selects notification.backend=host, launch and resume require the manager’s curator-host-notification/1 capability. Plain invocations must select an existing record explicitly with --member <id> from the same record directory described above. There is no ambient member default. The record must contain an explicit matching runtime, profile, profile lock and physical workspace, plus the closed optional notification input:

{
  "member": {
    "mxid": "@example.dev:example.test",
    "agent_selector": "example.dev",
    "connection": "example-connection",
    "configuration_root": "/example/source"
  },
  "admission_reference": "retained-record-1",
  "call_timeout_ms": 1234
}

The timeout is explicit, from 1 to 60000 milliseconds. Core supplies the workflow reference and digest; an editable record cannot override them. Station preparation reads Core in the selected clone and environment once per operation. Plain --member copies only these expected notification fields: it preserves the requested model, effort and resume selector, carries no record child environment, and leaves admission_key null. Station operations retain their existing admission key. Host notification conflicts with --a2a or a record doorbell. A supplied --member without selected Host notification refuses.

These fields are expected inputs, not admission. The continuing manager must independently resolve its configured actual record source and check its retained member, profile, workflow and operation before attachment effects. The launcher refuses missing or incompatible selection before manager contact on the plain path. Off or absent notification without --member preserves existing behavior.

For Claude, the launcher runs the resolved absolute a2a executable with hook install --agent <identity> --runtime claude --settings <staged file>. Its invocation PATH choice is frozen and printed in diagnostics; relative PATH entries and candidates inside lexical or physical workspace, GIT_WORK_TREE or GIT_DIR paths are excluded. The installer is bounded to ten seconds. The private staging directory under the launcher state directory is removed after success or refusal.

The launcher opens the workspace and .claude without following symlinks, then pins the .claude descriptor. That directory must be owned by the invoking user and have no group/world write permission. Settings reads are bounded to 1 MiB; existing files must be regular, owned by that user and have one hard link. The helper receives a copy of those bytes, or an absent staged file when the target is absent. The launcher verifies env.A2A_AGENT and matching command hooks for SessionStart, UserPromptSubmit and Stop before committing through the pinned descriptor using an exclusive temporary file, sync and same-directory rename. Existing permission bits are preserved; new files get 0600. A changed target device/inode, or an unexpected new file, refuses step=install. This check detects a visible conflict; it is not atomic with rename under the single-writer contract.

Readback and a fresh no-follow workspace/directory identity check follow the commit. A moved pinned directory can receive the commit, but a substituted symlink never receives a write and causes step=verify. Unrelated settings and hooks may coexist. Any failure refuses doorbell_setup_failed step=install|verify before start. Codex binding and long-lived owners belong to the manager; the launcher installs no Claude hooks for Codex.

A successful start reports one doorbell line on stderr. Text status reports one line per returned manager session, including reason and uncertainty; JSON retains the complete manager record without an extra doorbell line. Presence from a2a who remains independent of this manager evidence.

Target one-shot exec mode

D-EXECUTOR (owner decision, 2026-10-11) selects a narrow agent-account mode, with a proposed entry curator-run exec --plan-fd N. The privileged path delivers the immutable plan on FD3; exact approved argv and the closed wire schema/digest preimage remain publication questions in SPEC §10.1. The caller composes and supplies the admitted SHA-256 plan digest; the executor verifies and executes it. Under the agent account it never resolves/repairs profiles, composes plans or infers permission defaults. No plan or secret comes through an alternative path, stdin, argv or env. The executor reaches the broker over a declared Unix socket and has no internet egress. Local trusted harnesses use only their bound provider proxy; workplaces have zero egress (R-NET-TOOL). This target does not implement or generalise the interactive API below. Decision 0021’s versioned amendment still needs upstream publication before activation.

The dispatcher owns authority, provisioning, execution claims, supervision and cleanup. It is an unprivileged Unix-socket service from the first protected-launch slice, using the broker’s connection and framing rules; recovery and readiness precede admission. An absent or unready service refuses with no command fallback. Queueing, events and long waits come later behind capability gates on the same transport. Only the dispatcher invokes the privileged launcher. swarma-user-launcher is the separate root transition: it verifies active owned generation, approved executor path/digest and home, resets the environment, follows the user manager’s single descriptor lifecycle (spec §7 and diagrams/launch.puml, R-FD3), writes an atomic start receipt before privilege drop, and runs curator-run under the agent UID. The executor receives only caller-owned 0–2 and read-only FD3; no service, broker or root handle reaches it. It opens a fresh peer-authenticated broker connection. Completely staged, bounded, immutable plan bytes are preferred; a pipe would need a published and qualified capacity, feeder, deadline and cleanup order. Joint FD3-mechanism publication and intake, digest, framing and read-deadline publication gate activation (§10.1). The decoded plan bound is 48 KiB, base64 64 KiB, privileged request 80 KiB/5 s, helper request 16 KiB/5 s, dispatcher service frame 128 KiB, broker frame 64 KiB. The smallest bound refuses before provisioning. These are not the hosted interactive payload or its terminal/status FD contract.

D-PATH fixes the resolved launch PATH: protected launch tool directory, then admitted user base PATH in its existing order, then one protected manager dispatcher directory for checked project commands. Repository .agents/bin never executes in a managed launch. The caller records PATH under the plan digest; the executor uses the verified value. R-EXEC places qualified light-check wrappers with fixed subcommand allowlists in that protected dispatcher directory; heavy entry points are not exposed. Qualification covers the full invocation and transitive code/configuration inputs, with worker scripts, imports, plugins, environment/startup injection and direct/indirect shared-tool bypass refused. A tool that cannot prove inert worker inputs goes to R-VERIFY. The user manager owns the OS-enforced executable allowlist; PATH alone is not an enforcement boundary. Builds, tests and worker-code execution belong only to R-VERIFY runners on another machine, isolated and without secrets; agent-headless-build is withdrawn. This claims no implementation of reserved interactive path_prepend. One shared launch library with swarma-session-runner is required by D-EXECUTOR; its package and release are unpublished.

curator-run under the agent account is the first broker consumer. Board runner and session host ask the dispatcher to launch through it; neither embeds a broker client. The first slice is one protected Claude launch with cross-user peer/binding proof. works.relux.curator.credential/1 contains required-understanding metadata only. The executor resolves and rechecks credential_binding/1: peer (uid,generation), profile, harness, account, channel, endpoint, approved harness binary SHA-256 and policy generation. The broker checks its active binding, current caller/leaf grants and approved lists. launch_id (plan digest) is correlation, not authority; neither a digest nor a capability declaration proves execution. Conflicting credential sources refuse; no fallback to native login occurs. credential-injection/1 requires harness-release qualification for effective source and uncontrolled children. Material goes only into the harness’s qualified channel, never plans, argv, files, logs or receipts; the harness can read its own token.

Claude setup-token uses CLAUDE_CODE_OAUTH_TOKEN, with no refresh; expiry or authentication failure requires re-enrollment/restart. Codex personal is a later, still qualification-dependent lane: one broker auth owner, external tokens into a per-session app-server, no launch auth.json or broker-mode codex exec. The execution-side executor/runner owns renewal; the broker alone refreshes. Default renewal deadline: 8 s; timeout fails the turn with no late answer/fallback. Enterprise tokens are outside first release; Muse subscription qualification is prioritised (2026-10-13), with broker channel (b) / fallback (c) proposed and qualification open. Explicit API-key channels and native per-home authentication stay separate. The first broker store is files 0600 in owner-only 0700 directories.

R-TRANSFER makes materialization/export the dispatcher’s workspace contract. The caller supplies admitted exact base B as a bounded canonical tree archive; the dispatcher relays/journals its digest and holds no repository. Approved swarma-workspace-materialize writes a standalone child-UID repository with private Git administration, fresh config, no hooks/remotes/credential helpers. No cross-account linked worktree is allowed; within-account board worktrees remain. The composed plan covers B, manifest digest, write scope, exec-profile identity/body digest pinned by protected machine policy and read-only task-resource materialization by digest. The manifest covers path, Git kind/mode and content identity from immutable B; materialization verifies every archive entry before work, and import independently recomputes it from repository B. Exact fields and formats are unpublished with the intake contract (SPEC §10.1).

The worker’s Git history never enters the platform. After the round ends and account-wide absence is confirmed (plus a workplace write fence), approved swarma-workspace-export runs as the child UID with fixed environment and no network. It compares both kind/mode and content identity with the immutable manifest, preserving mode-only edits, regular↔symlink transitions and deletion prior modes, and emits only a capped change set; unsafe paths, collisions, special files and exceeded caps refuse the whole export. The dispatcher journals digests and returns it only to the original caller as swarma-dispatcher workspace-result/1 (draft result fields published by the dispatcher; transport/retention and activation still gated). The board accepts data as a resource; the orchestrator performs deterministic import, candidate, review and integration through the board’s change-request machinery. Code becomes a repository-signed candidate C in our repository. The reviewer holds an explicit review-role grant, is either a trusted-class local agent placement or a person admitted to the role, and is outside the untrusted class and distinct from the producer. It reviews exactly C; circle membership alone supplies no reviewer authority. Write-scope/.git/.task-board/ refusals and flagged-path hunk acknowledgement are specified in SPEC §10.2. Review first consumes exact-C diffs/blobs as inert, read-only resources bound by digest outside harness discovery roots. Candidate instructions, hooks, MCP, permissions, skills and executable discovery are never automatically adopted, including after acknowledgement or acceptance. Tree entry through a discovery-capable harness requires prior qualification of a strict-context adapter; root-owned launch surfaces alone do not suffice. Acceptance does not admit control surfaces; CIP-0002 control-context admission is separate. Semantic prompt injection remains a review residual. Rework starts from C with review findings; accepted exact heads land through the existing signed fast-forward path, with refresh and re-review when the base moves. There is no worker push or merge-request path. Export is a cleanup obligation before home deletion, unless explicitly waived by operator act. Shared-object provenance/access/ retention and exact transfer formats remain open, not ownership.

R-STANDING requires the one-shot executor to check plan digests for settings, hooks, MCP configuration and instruction files before exec (also restart and native resume where admitted), or use root-owned surfaces outside the home. Drift refuses launch (code unpublished); repair is explicit re-materialization. Standing host loops require trusted class and local agent placement; circle membership does not change placement. Outside standing workers use workplaces with donor-side loops and task-whitelisted OS services.

R-NET-TOOL offers no web tool by default. Tasks carry checked resources as board resources, also signed-letter attachments for remote workers, read-only next to the workspace with plan digests. More resources are requested by ordinary letter/outcome; the worker never fetches. The launch plan switches off provider-side search unless an operator grants a trusted-circle identity an explicit opt-in; network rules cannot see search inside provider API calls. Only a qualified server-search tuple with no local fetch or the platform Unix-socket web service may be opted in for local trusted identities. Remote opt-ins follow R-NET-TOOL/CIP-0008; donor search keys never reach the project. No direct or external-http-proxy may bind on a platform host. The interactive operator-machine profiles below do not authorise platform egress.

SPEC §10.6 references R-UNTRUSTED, R-CEILINGS, R-WATCH, R-ALLSTOP, R-RANGE-DENY, R-SOCKETS and R-SHARED as host/admission dependencies. Untrusted work is refused in Slice 0/user-manager v0, has no subscriptions, local loop or shared-service host, and needs qualified class minimums. Trusted-circle admission never relaxes host boundaries or supplies review-role or host-loop eligibility. The optional local-only reviewer and requester-exclusion policies remain unchosen and off (SPEC §9). The bridge/helper/dispatcher’s stage-A package must resolve the joint ingress/relay/start/export/reconnect lifetime and generation-bound process-creation fence; SPEC §9 registers this requirement without selecting a mechanism or changing normative behaviour. No OS is excluded by name; macOS gaps and soft-row acceptability remain qualification/owner questions. Node-wide emergency stop is manual and journaled; recovery is explicit. Tokens already delivered retain vendor lifetime.

Cancellation/max-runtime stop uses helper exec.stop through the dispatcher, referencing the user manager’s single termination scope (§§4.4/4.7): verify owned generation/current execution and receipt identity, signal every process of the UID (TERM, grace, KILL), stop its service domain where present, and confirm account-wide absence over a quiet period. Completed stops replay without signalling; an old receipt cannot stop a successor. Caller/sudo exit is not a stop receipt. Unknown evidence permits neither capacity release nor replacement. Start receipts identify a start attempt, not readiness; consumed-plan evidence binds digest, qualified executor and policy generation without secrets. Exact consumed-plan/exit receipt transport, ownership across exec, numeric refusal exits and signal encoding are open publication questions, with options in SPEC §§10.4–10.5; the interactive exit table below does not define this mode. Published typed refusals include credential_broker_unavailable, credential_source_conflict, principal_ledger_mismatch, lease_binding_mismatch, lease_harness_unqualified, renew_timeout and processes_remain. Refusals are terminal and never launch a weaker alternative.

The user manager’s spec §7 owns the process fate table (R-FATE), next to R-FD3: kill domains, stop/crash/restart fate, promised survival, affected executions and the fence against writers from a replaced daemon. SPEC §10.4 references it; setsid and UID changes are not survival promises. R-TIME requires an authenticated or operator-controlled installer time source, durable dispatcher/broker time watermarks, expiry at max(now, watermark) and not_before at min(now, watermark). Untrusted time never advances the watermark; reset is an explicit operator act. Clock steps can only narrow authority. Expiry-driven home deletion and binding removal also need real boot-inclusive monotonic elapsed time of at least the lifetime.

D-WIRE-NAMES selects swarma-<component> <object>/<n> for versioned wire identifiers, including broker grant/revocation signed domains; it invents no unpublished helper signature grammar. SPEC §§10.2/10.5 describe the host_start and host_stop operations in dispatch-op/1. The durable host admission permit is session-scoped for one logical_session_id. The owner’s admitted start can explicitly authorise successor executions through session lifecycle authorisation (member format unpublished). Every physical start retains its own (execution_id, controller_epoch, op_id) claim, fence and receipt interlock. Successor host_start requires that authorisation and previous-claim confirmed absence; it is idempotent per (logical_session_id, op_id). The host requests the start; only the dispatcher performs it and resolves ambiguous calls without a second launch. Only the configured session-host principal may request host_stop, only under its permit: journaled E-stop (exec.stop, confirmed absence), recorded as host-requested, distinct from owner cancel, with no start authority. The runner opens a fresh authenticated host channel; current-epoch registration and readiness precede delivery. Joint transport, permit, fence/cancel/crash and receipt publication still gate the SH2 backend. Helper v2 signature publication also remains open. D-GOALS keeps optional goals authored by the caller or board/orchestrator, with no agent goal capability, while a separate self-goal namespace decision is deferred. The host/executor work without goals, board or orchestrator toolchain. Dispatcher cleanup unbinds and retires: after quiesce and declared-key cleanup it deletes the home. Workspace-capable allocations first satisfy R-TRANSFER’s recorded-export or explicit operator-waiver obligation. The separate retirement metadata export admits only service-generated closed-schema metadata, with no agent-controlled strings, names, links or bodies. Home retention requires an explicit separate operator operation stating that confidentiality is not guaranteed. Code/results keep their separate git/acceptance policy, without a secret-free-content assurance. D-IDENTITY allows separate post-retirement revocation only for identities registered as one-shot. Standing identities remain operator-only. Donor provisioning is a separate component and variant B remains disabled pending its spec. D-RESUME’s same-machine semver rule has no fallback/portable seed and does not enable resume in this local headless dispatcher v0 mode.

See SPEC §10 for the canonical source, all refusal boundaries and open questions. These requirements and owner decisions are documentation targets, not evidence of implemented broker intake, isolation, receipts or execution.

Production pipeline

The module figures are PlantUML sources:

Each figure labels current and target phases separately. The target is not implemented; unpublished intake, receipts and activation details remain visible as spec gaps. See the figure index.

The executable supports claude_code (alias claude), codex_cli (alias codex), native pi, and Muse (muse).

Muse requires launch-env-fragment-v4: exactly four XDG parents under one managed home plus TBH_CREDENTIAL_BACKEND=file, preserving inherited HOME. Older Muse fragments refuse fragment_version_unsupported before launch. The pinned agents-management v0.5.78 plugin owns the native plan; managed Muse refuses module versions older than v0.5.66. The optional frozen-copy tuple otherwise leaves binary resolution on the handed PATH. muse-wonder resolves to muse-wonder-1.0-contributor with module-owned effort rules.

An explicit root_context: {"exclusive":true} supplies exactly -c context.foreign_personal_skills=false in interactive launch. A native exec or serve command with that fact refuses; this launcher exposes no exec or dry-run command. Module-level Exec and DryRun tests both require --no-foreign-personal-context. The fact is never inferred from files. Contradictory backend overlays and native exclusion overrides refuse. Native adds no posture flag; yolo adds exactly one --yolo after bounded binary help evidence declares it. Malformed build evidence and mismatched binary attestations fail closed. For example:

curator run muse --profile P --model muse-wonder

Help and version are static: --help, -h and --version, and --help or -h anywhere in a werkstatt, session-manager or migrate invocation (for example curator run werkstatt status <id> --help), are answered before any configuration, registry or station state is read. They exit 0 even when that state is malformed.

The launch pipeline follows these steps:

  1. Parse the flag grammar, then check all four current/deprecated configuration locations for retired ax.json entries, without reading their contents. Any entry refuses ax_tracking_removed (exit 2), before policy parsing, resolution or launch. A usage error reports first; static help reads no config.
  2. Normalize the <env-id> operand (claude → claude_code, codex → codex_cli) before validation or lookup, then resolve the fragment with curator env resolve --repair --format json, forwarding Curator stderr unchanged, and map its environment to a supported spawn system. Outputs carry the canonical id only; aliases are never persisted.
  3. Resolve model and effort from flags, operator/machine defaults and the tagged lineup. Resolve permission mode by flag, Curator profile setting, launcher global default, then the built-in default. The mode is passed to LaunchRequest.PermissionMode; emit model/effort origins and the module’s release-bound permission mapping before admission. Muse yolo reports mapped=module-attested only after the builder admits its help evidence. Pi uses the ordered convention pi-anthropic, pi-openai, pi-google; vendor scores are never compared. Explicit models bind their own runtime.
  4. Resolve host mode with FRONT-DOOR §3.2. Explicit native and machine native skip the registry. Explicit hosted checks network, terminal and stdin before reading the registry; auto reads the registry first. An empty or unselected auto registry prints the fixed native notice. Selected managers answer describe once; capabilities and the per-runtime activation matrix decide the route without failure fallback. Delegated launches are signed off (Q1, 2026-10-21): explicit --hosted, implicit auto and implicit hosted all use the selected manager, including a delegated-only one. A manager without an upgrade capability prints the upgrade disclosure. Hosted Claude/Codex permissions use the native ladder, including yolo. Resume selectors are elevated through the module’s typed grammar.
  5. Call vendorplugin.BuildLaunchWithEnvironment in LaunchModeInteractive with LaunchRequest.ToolRelease and LaunchRequest.NativeArgs for the release-bound permission grammar (v2 for Claude Code and Codex CLI, v1 for Pi), then enforce a separate providerlimits.Store.AvailabilityFor verdict for the same runtime/model/ managed home. Unknown and failed reads refuse. No retry, model downgrade or fallback occurs.
  6. Pass Claude/Codex profile context and file-backed system-prompt/MCP channels through SpawnRequest.Context into the shared agents-management construction API. The plugin owns argv order: Claude model/effort → MCP → prompt → native; Codex prompt → MCP → model/effort → native. Native arguments stay last and verbatim. Colliding native prompt, MCP or Codex profile overrides refuse with plan_refused, naming the native arguments and fragment channel. Non-colliding arguments pass through. Pi retains its existing prompt/discovery path. v2/v3 Claude/Codex fragments project their v1-compatible context subset; permission mapping and original fragment transport metadata remain unchanged.
  7. Prepare native execution or a plugin request. Native launch retains its existing pre-exec checks and prompt preparation. Delegated launch sends the resolved profile hashes, model/effort, permission source, prompt semantics and selector-free native tail to launch, with a durable home-lease journal before submission. Starts without an admitted process tuple stop at the process-incarnation bind gate described above; generation-fenced attach is reachable only after successful binding. --board-goal asks for workspace and requires board-goal/1; ordinary requests use none. Selector decision ids are copied verbatim to the selector label. Credential requests remain null. Doorbell requests follow the hosted doorbell path above. Unsupported fragment revisions refuse before manager contact. Hosted Muse requires a manager-advertised launch shape and attach operation, including their global capabilities. Exact-plan routes refuse before lease acquisition. Lost launch/resume answers reconcile through their persisted original operation and owner; unresolved outcomes retain correlation and refuse session_liveness_unknown. No hosted refusal executes natively.

The permission interface is implemented against upstream skill-agents-management v0.5.78. It owns LaunchRequest.PermissionMode, the release-bound mapping, versioned native argument classification, stored-policy inspection, and the capability table. Claude Code and Codex CLI 0.153.2 use permission-grammar-v2, Codex CLI 0.164.0 uses permission-grammar-v3; Pi uses permission-grammar-v1. The admitted result supplies the plan and owned environment literals from the same prepared, alias-projected request; composition never rebuilds the plan.

Codex v4 credential_store accepts absent or native policy without an auth store override. The reader validates file and keychain with their matching config_overrides, but the pinned module explicitly refuses both with plan_refused; it leaves config.toml unchanged. Positive -c application is an open upstream dependency: the pinned module sets curatorCodexCredentialStoreApplied=false in pkg/agentic/curator_context.go:714–725. A future released consumer is required before those selections can launch. The launcher does not implement a substitute argv mapping.

Environment and transport

Native children receive the full composed environment, argv and raw stdin. Hosted payloads export only owned literals and declared lookup names, never the inherited environment. Attached empty stdin remains distinct from unattached; native execution preserves binary stdin bytes exactly. Hosted stdin capability checks remain independent.

Pi has no MCP channel. Its selected prompt flag and managed-home APPEND_SYSTEM.md / SYSTEM.md candidates are checked freshly, including when no prompt is selected. Warnings distinguish selected flags from conditional native discovery. Reserved path_prepend remains parsed and hashed without changing PATH or claiming managed command-root support. Reserved members are marked in the fragment type and excluded from the execution context carrier; hosted provenance retains the original fragment digest.

Launcher errors render through internal/diagnostics; usage exits 2 and operational refusals exit 1. Foreign Curator/provider evidence is forwarded without diagnostic framing. Direct child exit codes propagate unchanged and signal exits return 128 + signal. Hosted failures never fall back to a native child.

Execution waits for a child without allocating a PTY or replacing the launcher. The execution package owns terminal foreground groups, signal forwarding, stop/continue and terminal restoration. Pathname probes retain a race between checking and process creation; they are not open-handle guarantees.

Evidence boundaries

cmd/curator-run/pipeline_test.go drives production run(...) with the real fragment parser, tagged admission, a temporary provider-limit store, and compiled fake provider executables. Three native adapter goldens cover argv, environment, stdin, warning output and side effects. Negative tests cover configuration order, forbidden flags, admission, foreign-byte transport, exit status and late checks on the native path. Injected attached stdin tests cover transport of a future admitted payload; the shipped interactive plugins currently attach no stdin.

These tests do not install binaries or run real providers. Installed umbrella launches, managed-home repair/current status, model/effort output and MCP remain the orchestrator’s post-landing verification. Independent acceptance and signed PR delivery also belong to the orchestrator. No cross-platform runtime claim is made from this host’s tests.

Install and discovery

Install the tagged release with the Go toolchain specified by go.mod:

go install github.com/relux-works/curator-agent-launcher/cmd/curator-run@v0.7.0
curator-run --version

The v0.7.0 release reports 0.7.0 (specification 0.5.1-draft). Compatible with curator v0.15.0-rc.3 or later, once published.

Alternatively, hosts without Go can download GitHub release artifacts. Curator’s distribution remains the canonical host channel; Curator’s bundle may also consume these artifacts if curator_orch chooses. Archives contain curator-run, LICENSE, NOTICE and this README. The release matrix is Darwin and Linux, each for arm64 and amd64. On an Apple Silicon Mac, choose a release with downloadable artifacts and substitute its version for X.Y.Z below:

set -e
version=X.Y.Z
artifact="curator-run_${version}_darwin_arm64.tar.gz"
base="https://github.com/relux-works/curator-agent-launcher/releases/download/v${version}"
curl --fail --location --remote-name "$base/$artifact"
curl --fail --location --remote-name "$base/checksums.txt"
curl --fail --location --remote-name "$base/checksums.txt.pem"
curl --fail --location --remote-name "$base/checksums.txt.sig"
cosign verify-blob \
  --certificate checksums.txt.pem --signature checksums.txt.sig \
  --certificate-identity "https://github.com/relux-works/curator-agent-launcher/.github/workflows/release.yml@refs/tags/v${version}" \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  checksums.txt
grep -F "  $artifact" checksums.txt | shasum -a 256 --check
tar -xzf "$artifact" curator-run
codesign --verify --strict --verbose=2 ./curator-run
codesign --display --verbose=4 ./curator-run
spctl --assess --type execute --verbose=4 ./curator-run
./curator-run --version

Require a successful checksum/signature check, then on macOS a Developer ID Application signature for Relux Works, LLC and an accepted notarized result from spctl. Before release builds, the pipeline requires either all five signing fields (MACOS_SIGN_P12, MACOS_SIGN_P12_PASSWORD, ASC_ISSUER_ID, ASC_KEY_ID, ASC_KEY_P8) or none. A partial configuration fails without printing values. With all five, Darwin signing and notarization are required; a signing or notarization error fails the release before publication. With none, the unsigned path remains available, including for release publication; its artifacts do not satisfy these macOS checks. Bare CLI binaries have no stapled ticket, so Gatekeeper assessment may need network access. On Linux choose linux_amd64 or linux_arm64, verify cosign and the checksum, and omit the macOS commands. After verification, place the binary in a trusted operator-owned directory.

Linux .deb and .rpm packages for amd64 and arm64 are also generated as GitHub release artifacts. They wrap the same unsigned Linux binaries and install curator-run into /usr/bin. Choose the format and architecture for your host, download the package and verify its entry in the authenticated checksums.txt as above before installing, for example:

version=X.Y.Z
sudo apt install "./curator-run_${version}_linux_amd64.deb"
# Or on an RPM-based host:
sudo dnf install "./curator-run_${version}_linux_amd64.rpm"

Use the actual downloaded filename; no apt or yum repository is published. Homebrew support is coming: the pipeline generates a curator-run.rb formula with upload disabled. The tap and repository are still being chosen, so no brew tap or tap-based installation is promised yet.

Ensure $(go env GOPATH)/bin is on PATH, or set GOBIN to a dedicated trusted operator-owned directory on PATH. Do not install into Curator’s user-bin shim directory (~/.local/bin), a managed skill bin directory, or beneath the environments root: umbrella discovery refuses these locations with subcommand_provider_untrusted (environments.md §11).

Install Curator and the desired provider separately and make them available on PATH; configure the provider’s credentials and a Curator profile before launch. The launcher installs neither providers nor profiles.

Curator discovers unknown subcommands as curator-<name> on trusted PATH. The two invocation forms pass the same launcher arguments:

curator run codex_cli --profile companyA -- resume --last
curator-run codex_cli --profile companyA -- resume --last
curator run pi --profile companyA --system-prompt append
curator-run --help

The general umbrella form is curator run <env> --profile <p> -- <args>. Supported environments are claude_code (alias claude), codex_cli (alias codex), pi, and Muse (muse); opencode is currently refused with env_unsupported. The operand normalizes to the canonical id before validation or lookup, so curator-run claude behaves exactly as curator-run claude_code (and codex as codex_cli); provenance lines, hosted session labels, and the curator env resolve call carry the canonical id, and any other unknown spelling keeps the existing refusal. Without --profile, Curator uses the current profile for the applicable scope. Resolution always requests repair.

Launcher options

Option Meaning
--hosted, --native, --untracked Select one host request. Hosted uses the registered manager and activation gate; native skips the registry. --untracked is a deprecated exact alias of --native, retained for two releases with one warning; repeats and combinations refuse
--board-goal Hosted workspace goal request; requires board-goal/1
--detach Hosted launch without attach
--a2a <identity> Hosted runtime doorbell request; delegated route and per-runtime capability required
--member <existing-record-id> Explicit expected member input for Core-selected Host notification; no station admission or model/environment override
resume [SES-HANDLE], --resume <id> Hosted-only resume selectors; usage errors in native mode
--profile <name> Curator profile, forwarded to environment resolution
--system-prompt <append|replace> Explicit prompt-channel opt-in; unavailable semantics refuse the launch
--model <model>, --effort <effort> Explicit spawn-plane selection, subject to admission and machine locks
--permissions <native|yolo> Resolve the launcher permission mode
--yolo Exact alias of --permissions yolo at the same precedence level
-d, --danger Rejected as usage errors before --; after --, arguments are native input
--network-policy <policy> optimistic (default), strict, or pinned:<binary SHA-256>; sensitivity cannot be downgraded
--network-known-bad <path> Explicit operator known-bad list; any load error refuses
--network <profile> Network profile for direct execution; resolved after admission; refused with exit 16 when combined with --hosted
--help, -h, --version Print information and exit, after reading tracking configuration
-- End launcher parsing; all following arguments pass through verbatim

Value flags accept --flag value or --flag=value. Repeated flags, unknown flags, missing values, and extra operands before -- are usage errors. The permission flag accepts only native or yolo; --yolo is the no-value exact alias, and the two forms cannot be combined. The host flags likewise share one request slot and take no value. After <env-id>, at most the resume selector and its optional handle may follow; anything else before -- is stray. gateway, werkstatt, and session-manager are reserved first words and cannot be used as environment IDs. -d and --danger are rejected launcher flags before the native-argument boundary. Prompt-file discovery can still apply without the prompt opt-in; see the warnings and Pi precedence described above. Pi has no MCP channel.

With --network <profile>, the launcher resolves the named profile from the operator catalog after plan admission, probes the proxy once within a bounded preflight, and applies the patch last in composition — after the fragment, prompt, and MCP layers — to the direct child environment. A named kind = "direct" profile instead clears inherited proxy variables and sets nothing: it skips every probe step and its Record carries skipped/skipped/skipped. The profile must be confirmed at its current digest (curator network confirm <profile>); any resolve, validate, or preflight error ends the launch, never an unmanaged fallback. A managed launch prints a curator-run: network: … provenance line carrying the binding Record; the endpoint never appears in it, and a launch that composition refuses prints no Record. Hosted launches refuse --network with network_scope_unsupported: the source host cannot validate the destination.

Adapter admission uses adapterprobe.Evaluate from the pinned network-profiles library. The default --network-policy optimistic admits a known vendor build as unqualified, subject to the library’s fail-closed known-bad policy and the launcher’s independent child-scope ceiling (currently generic-env-v1, Claude print). --network-policy strict requires independent qualification; --network-policy pinned:<64 lowercase hex SHA-256> additionally requires that exact binary. A pin proves identity, so an unproven pinned build remains unqualified. sensitive_egress = true requires qualification even under optimistic or pinned policy; a flag cannot downgrade it.

Native artifact snapshots share the library’s inclusive 512 MiB resource ceiling. Larger executables refuse before staging; the bounded reader never identifies a truncated prefix. Admission and protected staging retain the exact full-byte SHA-256. The complete snapshot remains in memory, so this byte ceiling is not a limit on process RSS or a claim of runtime qualification.

The legacy N-B version-label list is retired, not migrated: it has no SHA-256 provenance. Under strict or sensitive-egress policy the only qualified builds are the operator’s entries in ~/.curator/network-qualified.toml; other launches never read that file. An explicit --network-policy strict or pinned: reads it on any profile. Each entry names an exact build by the SHA-256 of its executable, never by a version label, together with its qualification evidence and date:

schema = "curator-network-qualified-v1"
project_roots = ["/Users/op/src"]   # filtering-gateway launches only

[[builds]]
harness       = "claude-code"
entrypoint    = "exec"
binary_sha256 = "<64 lowercase hex: sha256 of the executable>"
platform      = "darwin"
evidence      = "<the qualification record this entry rests on>"
qualified_on  = "2026-10-29"

An absent file is an empty list, so strict admission refuses every build as before. A present file that cannot be read or does not validate refuses the launch. The file admits claude-code and the codex-cli interactive entrypoint. Qualification never widens the independent child-scope ceiling, which admits Claude print only, except under a filtering gateway: there the ceiling also admits Claude Code’s interactive session, and only a build listed for the interactive entrypoint qualifies it (recipe claude-interactive-v1; an exec entry does not). Codex CLI also admits normal interactive fresh launches and exact resume <thread-id> under a filtering gateway, with recipe codex-interactive-v1; this admission does not depend on the Codex release. An explicitly confirmed non-sensitive profile can launch optimistically with the required unqualified warning and provenance. Strict or sensitive-egress policy requires an exact qualified build; exec and hosted network launches remain unsupported.

The Codex gateway route uses SAM’s gateway admission. The child’s environment must equal the admitted plan’s environment plus exactly the private token, compared as a set in any order. The plan owns the canonical CODEX_HOME, and the fragment’s identical copy is dropped instead of overriding it. A fragment home that is not already the canonical path, for example one reached through a symlink, refuses before any gateway call. A proxy selector (HTTP_PROXY, HTTPS_PROXY or ALL_PROXY, in any letter case) refuses the route before health, whether it is inherited, set by the fragment or named as an MCP lookup. Unlike the Claude route, nothing is unset silently. The Codex release is informational for this route: admission and the binding renderer give the same verdict for every release label, and the binding, route, executable, environment and provenance checks are unchanged. The permission mapping stays release-bound, so default and yolo refuse on a release without a verified permission grammar, while native does not depend on it. A refusal from the module’s admission policy ends in reason=<check class>: the launch mode, another selected route, the native arguments, the environment checks (a proxy selector, a provider or token override, a malformed or duplicate entry, a credential name) and a non-canonical binding, for example reason=gateway_native_arguments_not_admitted. The module’s other gateway refusals keep the unnamed Codex gateway binding refused, among them a failed executable identity, digest or path check, a home that does not resolve and most plan-identity checks.

The Codex home is trusted. The launcher does not read the home’s config.toml or curator-mcp.config.toml before exec, so an MCP server declared there that names the private token (for example through bearer_token_env_var) receives it. Anything that can write those files runs as the same OS user, so this is no new boundary; a narrower guard is a separate change.

With --gateway-recovery, Codex uses the same existing private journal and control/2 original-envelope registration/completion path as Claude. Absent that flag, control/1 remains selected. The registration session retains the SAM attempt ID; public correlation names the distinct control/2 attempt and launch IDs. The runtime remains codex. Lost replies never retry registration, and activation failure and normal exit share one original-attempt completion. A recovery cleanup failure returns nonzero even when the child exits zero; a nonzero child exit retains its own status. Service confirmation and committed local receipt remain separate observations. This source does not activate a runtime or qualify a native package.

Codex network launches preserve the executable’s package layout because code-mode tools start a separate codex-code-mode-host. The supported distributions are a native codex executable with its sibling host, or layout-version-1 packages with codex-package.json and either bin/codex or a root codex entrypoint (.exe names use the corresponding host suffix). App bundles and other layouts are unsupported. Package staging retains the actual recognition metadata, the selected host, and the existing codex-path/ and codex-resources/ trees, when present. Resource-host precedence follows the pinned runtime: a regular codex-resources/codex-code-mode-host wins over the executable’s sibling. A present but invalid selected host refuses; it never silently switches helpers.

Only those package-relative members are read. Links and special files refuse; rooted opens prevent an escaping resource lookup. Staging is bounded to 4,096 entries, depth 32, 64 KiB for package metadata and 1 GiB in total. The 512 MiB cap applies to the main artifact (the entrypoint) only; other members are bounded by what remains of the 1 GiB total. The main artifact’s adapter BuildID/Evaluate policy remains unchanged. A separate receipt binds layout, declared version and target, admitted release, selected host, relative file roles, modes, sizes and content hashes to that same main snapshot. These hashes prove captured content consistency; they do not authenticate a neighboring helper or extend adapter qualification. Package metadata naming another release refuses before staging.

Files are private regular copies without retained writable descriptors. The final native-process boundary checks the complete staged content and selection before spawning. Package members are not reopened at execution time. On the Codex gateway route the module re-hashes the original installed executable at the recheck and before start, so a replaced original refuses. Normal return, preparation refusal and failed child exit remove the stage. SIGKILL of the launcher can leave it behind; this path adds no shared sweeper. Private directories, read-only file modes and a final content check do not provide isolation against a hostile process running as the same OS user.

Run go test ./internal/execution ./cmd/curator-run -run 'CodexPackage|NativePackageBoundary' -count=1 for isolated package/legacy controls, staged-mutation refusals and the old single-file-flattening control. Their subprocesses and stages use temporary directories and are removed. Those fixtures do not replace an admitted real Codex code-mode tool call when checking a particular installed package and gateway launch.

Codex registration preserves native ChatGPT authentication and contributes one launch-owned curator-gateway provider table with the returned complete base, wire_api = "responses", requires_openai_auth = true, and supports_websockets = false. The header names CURATOR_CODEX_GATEWAY_TOKEN; its value is injected only into the final child environment, never arguments, provider configuration, literals or provenance. Competing native provider, profile, local/remote/server selectors and environment aliases refuse before registration. Late argv, environment, executable or original artifact drift refuses before process start and ends the registration. This verifies the admitted model route; it does not establish system-wide network containment.

A kind = "filtering-gateway" profile (curator-network-profiles N14) names a local filtering gateway by its control socket and requires an explicit sensitive_egress boolean. True requires exact independent qualification. Explicit false permits an unqualified build only with explicit --network; operator defaults, inherited/profile bindings and machine proxy selection cannot select it, including on native resume. Changing this declaration changes the digest and requires a new operator confirmation. The launcher prints the exact unqualified warning and relux-adapter-provenance-v1 record; the caller retains the actual emitted record in its existing session or receipt path. An exact non-sensitive pin still admits only that binary, as unqualified when it has no evidence; strict mode continues to refuse it. Neither the record nor a successful gateway request is qualification.

Before the child starts, the launcher checks the gateway’s health and registers the launch (project root = the launch working directory, an audit session id, runtime claude-code) over netproxy-control/1. Any failure refuses network_proxy_unreachable with no unfiltered fallback. The child then gets ANTHROPIC_BASE_URL set to the gateway’s base, ANTHROPIC_CUSTOM_HEADERS carrying the launch token in the gateway’s header, CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 and CLAUDE_CODE_MODEL_CATALOG=off, in its launch-private environment only. The last pair is set because an admitted Claude Code 2.1.318 gateway launch, run without it, was observed opening TLS to downloads.claude.ai; the published 2.1.318 darwin-arm64 binary (the 677a2ea7… hash in the grounded table below) fetches a signed model catalog from that host for first-party API-key and cloud-provider sessions. Its release note names CLAUDE_CODE_MODEL_CATALOG=off as the switch that turns the fetch off. For the gateway’s first-party-with-custom-base shape, however, the published path is off by its feature flag and release constant (claim 6a of the 2.1.326 record below, which classifies every downloads.claude.ai occurrence in 2.1.318 and 2.1.326). The catalog gate also tests off before the nonessential-traffic switch, so the observed connection — from a launch that already ran with nonessential traffic disabled — was not the catalog fetch on that static reading (claim 6b). The pair is kept as the unconditional first test, not credited with stopping that connection. Nothing in the launcher is shown to stop the observed connection; a launch must show no direct connection before the build is relied on (the runtime witness below). All four names are owned by the gateway; as before, an overlay or settings env entry naming any CLAUDE_* name outside the allowlist refuses. Claude Code reads over a thousand names in its own namespaces (CLAUDE_*, ANTHROPIC_*, CCR_*), and they select providers, endpoints, transports, settings sources, remote and background sessions and runtime modes. Under a gateway those namespaces are held to an allowlist: CLAUDE_CONFIG_DIR, the two values the harness itself sets (CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION, CLAUDE_CODE_AUTO_COMPACT_WINDOW), the two local-tool selectors (CLAUDE_CODE_USE_POWERSHELL_TOOL, CLAUDE_CODE_USE_NATIVE_FILE_SEARCH) and the credential variables (ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, CLAUDE_CODE_OAUTH_TOKEN). Every other name there is removed when inherited, and so are the AWS_ENDPOINT_URL names, the proxy family and known outside-namespace controls without an admitted compatibility contract (below).

Claude Code applies the env block of its settings over its process environment, so a settings entry would send the conversation, with the token header, wherever it points. Before registering, and again at the pre-spawn boundary, the launcher therefore refuses network_configuration_conflict when a composed overlay, an MCP lookup, or any settings source it can read sets one of those names, the gateway’s own names or a proxy-family name (compared without case); a model override such as ANTHROPIC_MODEL is refused too, since the launcher selects the model. The sources are the child’s user settings (CLAUDE_CONFIG_DIR, else ~/.claude), both settings.json and cowork_settings.json; the legacy global configuration (the one file Claude selects: the legacy .config.json there when it is a regular file that is non-empty, or writable while .claude.json is absent, else .claude.json in CLAUDE_CONFIG_DIR or the home directory; the other file and any .claude-*.json are not sources), whose env Claude applies first; every .claude/settings.json and .claude/settings.local.json from the project root up to /, along the given and the resolved physical path; and the managed settings (/Library/Application Support/ClaudeCode on macOS, /etc/claude-code on Linux: managed-settings.json and the managed-settings.d drop-ins), which also refuse when they carry a policy helper or default policy payload. A source that exists but is not a readable regular file (a dangling link, a directory, a FIFO) or does not decode refuses; sources are read non-blocking, a special file is refused from its inspection without being opened, and a file replaced between inspection and open refuses. Each check runs under a time budget (5 s) that is checked before every file operation, including each 64 KiB read of a source, the listing of the managed drop-in directory and each lookup of the global-file selection, and once more before the check admits; the drop-in directory is opened as a directory and read for at most 65 entries, and more than 64 refuse. A held SIGINT or SIGTERM cancels the check; either ends it with a refusal. Registration itself is never cut short, so its outcome is always known and ended. The operator catalog and its confirmation ledger are read the same non-blocking way, whether the gateway is selected explicitly or by default. A single system call that stalls inside the kernel (a hung network filesystem) is not interrupted. The native tail after -- is held to an allowlist of Claude Code options that stay local to the session they start, parsed with the runtime’s own value rules: -p/--print, --verbose, -d/--debug, --debug-file, --output-format, --input-format, --json-schema, --include-hook-events, --include-partial-messages, --replay-user-messages, the two --dangerously-skip-permissions switches, --permission-mode, --permission-prompt-tool, --thinking, --thinking-display, --max-thinking-tokens, --max-turns, --max-budget-usd, the allowed and disallowed tool lists, --tools, --mcp-config, --strict-mcp-config, the four system-prompt options, --exclude-dynamic-system-prompt-sections, --model, --fallback-model, --effort, --agent, --betas, --session-id, -n/--name, --no-session-persistence and --disable-slash-commands. Every other option refuses network_configuration_conflict: settings sources (--settings, --setting-sources, …), directories (--add-dir, -w/--worktree, …), stored sessions (-r, -c, --from-pr, …), plugins, and cloud or remote placement (--cloud, --remote, --environment, --pool, --attach-serve, --teleport, --remote-control, --sdk-url, …), as do short-option clusters and an option the runtime adds later. Claude Code’s entry path also dispatches on the raw argument list before its option parser runs, so option values and arguments after -- count: any native argument equal to a word it dispatches on refuses wherever it stands. These are every command name and alias (doctor, mcp, ultrareview, remote-control, i, autoremove, …), the entry path’s own modes (remote, sync, bridge, daemon, self-hosted-runner, the background verbs, import), and the raw tokens it or a later mode getter searches for (--handle-uri, --session-tunnel, --agent-teams, --hard-fail, --worktree, -w, --tmux, --bg, --background, -c, --continue, -r, --resume, --from-pr, --gh-standin, --ignore-persisted-trust, --managed-settings-in-initialize, the version shortcuts and the dashed helper modes). --safe-mode and --bare are searched for only before the first standalone --, so they refuse before it and are ordinary operands after it. A prompt that is exactly such a word refuses too. The environment names the runtime reads outside its own namespaces to pick another mode, session or egress (the deep-link URL handler’s __CFBundleIdentifier, IS_SANDBOX, SESSION_INGRESS_URL, ENABLE_CLAUDEAI_MCP_SERVERS, AI_AGENT, AUTOMODE_DECISION_LOG, the self-hosted runner’s SELF_HOSTED_RUNNER_*, and the telemetry exporters OTEL_*, BETA_TRACING_ENDPOINT and ENABLE_ENHANCED_TELEMETRY_BETA) refuse like routes and are removed when inherited. The pinned known-control table in internal/network/claude_environment.go admits ordinary OS/tool/credential, configured MCP and request behavior explicitly; other known controls refuse. This includes IS_DEMO, CLAUBBIT, alternate Claude/sidecar executables and host-autoupdate overrides. A refused control is unqualified for this invocation; not every value independently selects a reachable alternate mode. Unrelated extension environment remains compatible. Ordinary MCP generation/negotiation, cloud credentials, local tools, compaction/cache settings and fallback-model behavior keep their value bytes and independent trust checks. This is launch admission, not an OS egress sandbox or a claim that arbitrary tool/loader values are inert.

After all sources are composed, a gateway-only check validates the final environment, literal values and remaining MCP lookup names before provenance or spawn. It accepts only the four exact registration-owned reserved pairs; missing, altered, duplicated or differently cased aliases refuse. A generic managed patch does not enable or widen this gateway authority. The namespaces’ own mode selectors (safe, bare, restricted, coordinator, agent teams, background, remote, plugins, entrypoint, feature overrides) fall under the allowlist above. The color flags the runtime also reads from the raw argument list change only output colouring and are not reserved. Claude Code’s own settings sources are read from the environment the child is composed with, the profile fragment’s CLAUDE_CONFIG_DIR included. Once the child has started, the launcher activates the registration within its activation window (no attempt starts or outlasts it; on expiry the launcher alerts and ends the registration) and renews it hourly. After the child exits, whatever its status, the launcher unregisters it, retrying and alerting on stderr until the gateway confirms; a refusal between registration and spawn unregisters as well. From registration until the unregister completes, curator-run holds SIGINT and SIGTERM: one before the boundary check aborts the launch, one after it reaches the child as soon as the child starts, those while it runs reach the child, and one during the unregister retries abandons them with an alert that the registration ends at the gateway’s idle bound. The token never appears in argv, the binding Record or any diagnostic. Without --network, an operator default that names a filtering gateway selects it with origin operator-default, and every hosted route, resume included, then refuses network_scope_unsupported before any session-manager call. Defaults of the other kinds still need --network. A network.toml that exists but cannot be read, a dangling link included, refuses every launch.

Claude Code under a filtering gateway is also held to admission contract A, checked before registering and again at the pre-spawn boundary. A launch that fails it refuses network_scope_unsupported with no gateway call:

  • “exact model” is the exact qualified Claude Code build: its binary SHA-256 in the strict tuple (above). Routing does not depend on the LLM model, so the model is not checked;
  • the child runs in a managed home: CLAUDE_CONFIG_DIR is an absolute ASCII path (so it equals the NFC form Claude Code reads settings from), its settings.json exists, and it, cowork_settings.json and the legacy .config.json, where present, are regular files with no write bit; .claude.json, which Claude Code writes itself, is read but may be writable;
  • the physical working directory, after resolving every symbolic link, is inside one of the operator’s project_roots in ~/.curator/network-qualified.toml (absolute, clean, existing paths; none listed admits no gateway launch);
  • the native tail holds only allowlisted options, so worktree, resume, cloud and remote placement refuse (above);
  • the host has no Claude Code managed preferences (/Library/Managed Preferences/com.anthropic.claudecode.plist, machine-wide or for the current user). Cached server policy is limited to the closed subset below; it cannot select another route, settings source or permission mode.

The cache check is grounded in the published Claude Code 2.1.316, 2.1.318 and 2.1.326 darwin-arm64 artifacts (for 2.1.326, the artifact check in docs/qualification/claude-code-2.1.326-darwin-arm64.md; operators name it as the evidence of that build’s strict-tuple entry). The two restriction names admitted after that record, allow_connector_file_uploads and allow_computer_use, are checked for the same three builds in docs/qualification/policy-cache-restriction-names.md. The grounded builds, by the SHA-256 of the published binary (the gateway grounds a hash, not a version label):

Build Binary SHA-256
Claude Code 2.1.316 darwin-arm64 64c327e92b2c5e0f78c0a980c5a518121e1f0d140ca771ca5dd4488d1a2dcb3f
Claude Code 2.1.318 darwin-arm64 677a2ea7bf576cedd20e191d973914ed8a41796f53a63b1923381ddc4d5b5e7d
Claude Code 2.1.326 darwin-arm64 e214ad76dcc0e846b03be28ed1c2734aacd4e27acb527cb7f8a9e2bed644e837

An operator’s build hash entry does not establish these semantics for another build; that build needs the same artifact check. Both absent caches remain valid. Present caches must be readable regular files, at most 1 MiB, opened without following a final symbolic link; replacement or observed changes during reading refuse. Strict JSON parsing rejects duplicate keys (including escaped duplicates), malformed Unicode and trailing documents. Ordinary settings-file link handling is unchanged.

Cache/path Admitted value
remote-settings.json Exactly an empty JSON object
policy-limits.json.restrictions Required object containing only the next four optional entries
restrictions.allow_connector_file_downloads.allowed Boolean; the enclosing object contains only allowed; see the gateway eligibility condition below
restrictions.allow_connector_file_uploads.allowed Boolean; the enclosing object contains only allowed; see the gateway eligibility condition below
restrictions.allow_computer_use.allowed Boolean; the enclosing object contains only allowed; no grounded build contains the name
restrictions.enforce_web_search_mcp_isolation.allowed Boolean; the enclosing object contains only allowed; see the gateway eligibility condition below
defaults.remote_control_at_startup false only; no other defaults; an empty defaults object is valid
compliance_taints Empty array only
monitoring_notice null or string; the grounded builds’ native object schema catches a string to null, so display of that string is not promised

Each restriction entry contains exactly one allowed member. All other fields, types and values refuse with network_scope_unsupported. One pass collects all rejected schema paths across both caches and their companions; an unreadable or malformed file contributes its root path. Cancellation or a budget exhaustion still stops the inspection immediately. Refusals name the caches and schema paths, never values; unknown member names appear as * to avoid disclosing arbitrary supplied text. This is a gateway-safe subset, not full native policy-schema support. The published 2.1.316 and 2.1.318 artifacts have no literal consumer for the connector key; their admitted booleans follow the generic non-enforcing restriction evaluator. 2.1.326 adds a policy-table entry and literal evaluator calls for that key, but under the gateway eligibility condition below the admitted value is inert in exactly the same way: with cached policy never read, the evaluator returns the same result whatever the cache holds, and connector downloads stop at an earlier eligibility refusal (see the 2.1.326 record; that record also notes a new 2.1.326 feedback-access fetch of the same policy endpoint through the gateway’s base, which can only deny product feedback and reads no cache). allow_connector_file_uploads has a policy-table entry from 2.1.318 and evaluator calls from 2.1.326; under the same condition its admitted value is inert in the same way, and whether a file can be sent to a claude.ai connector from a gateway session does not depend on the cache (see the restriction-names record; that transfer would be a direct connection and belongs to the written residual below). allow_computer_use is sent by the policy endpoint and occurs in none of the grounded builds. Unknown restriction names never inherit that admission: a name is admitted by exact spelling after its own artifact check, never by prefix or entry shape. In an eligible first-party session an explicit connector true can suppress a hinted denial; isolation false can suppress hinted enforcement. Neither is universally equivalent to an absent entry.

These booleans are admitted only by the gateway cache checker, whose existing input boundary makes native server policy ineligible in the grounded builds. The registration-owned endpoint is loopback, and the final composed-environment check pins it. Supplied endpoint, Unix-socket, first-party-assumption and client-data selectors refuse; inherited selectors are removed. The native tail also refuses --client-data-url. In the artifacts, the first-party assumption starts false and its sole enabling writer requires that blocked client-data input. With no socket or first-party exception, the custom-base eligibility check returns before reading policy, and hinted enforcement is also disabled. Thus the admitted gateway session observes the same result for isolation false and an absent entry. This is a conditional source proof, not an account-policy override or support for these values outside that boundary. A build or input-boundary change needs this proof checked again.

The six documented companions (.signature.json and .signature-iat.json for each cache, policy-limits.json.stamp.json, and remote-settings.json.synced-at) may be absent or regular files up to 64 KiB. Links and special files refuse. Only metadata is inspected: contents are not read or treated as proof of policy safety, signature validity or account binding. The launcher does not delete, rewrite or change permissions on any cache or companion. See the native directory reference and server-managed settings reference.

Run the focused cache and real preparation/recheck controls with go test ./internal/network -run 'TestPolicyCache|TestPrepareGatewayPolicyCache'. They use synthetic files and the fixture gateway; they execute no native runtime. make check also runs them in the full ordinary and race suites.

Contract A narrows the launch; it does not isolate it. Its written residual:

  • Claude Code re-reads its settings during a session, so a settings change after the boundary check (a mid-session reroute) leaves the rest of that conversation unfiltered;
  • “not writable” is checked on file modes; while a session runs as the same OS user as its managed home, it can change those modes, and the managed home directory itself stays writable because Claude Code writes there;
  • <CLAUDE_CONFIG_DIR>/.claude.json stays writable, because Claude Code writes it; the guard refuses a route-bearing env in it before spawn, and an edit after the check is the same reroute as the first item;
  • MDM profiles still require absence of the named local plists. The cache subset is read again at the final pre-spawn boundary, but a policy rewrite or refresh after that check is not continuously enforced. In each grounded build the source gates its principal policy read/fetch/poll paths on first-party base-URL eligibility (for 2.1.326, its connector file downloads likewise stop at an eligibility refusal before any fetch, on the static evidence of its record); those static observations are not a runtime connection witness or a guarantee about every later path. Actual gateway qualification must check that the launched process makes no direct Anthropic connection, connector downloads, files sent to claude.ai connectors (not traced for reachability; see the restriction-names record) and the official-marketplace auto-install included (claim 6 of the 2.1.326 record). On CDN failure that auto-install can fall back to a direct git clone from github.com of anthropics/claude-plugins-official; the gateway removes its CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL switch when inherited and refuses it when supplied, so an operator cannot close this path through the environment. The owner-selected fifth owned pair is a separate later change, not part of this grounding. The runtime witness must start from a managed home whose global file carries no officialMarketplaceAutoInstall* state and where the official marketplace is not already installed, so the one-shot and failure backoff cannot make the check vacuous. Record the request paths and binary hash, and observe direct connections including the git fallback, not just the CDN host. This witness is required for every grounded build, because static checks alone passed a build that still opened a direct connection;
  • the launch token is usable only at the gateway’s same-host loopback listener.

Per-user packet filtering, with each session running as its own OS user, is the fix for the first two items and is not part of this launcher. Until it exists, the gateway is selected per launch with --network; the operator default stays unset on shared hosts.

The operator known-bad list is ~/.curator/adapter-knownbad.json, or the path selected by --network-known-bad <path>. The library reads it through SafeKnownBadRead: genuine absence of the default file is optional; a present, unreadable or malformed file, or a missing explicitly selected file, refuses. No local probe attempts to manufacture qualification.

At launch an unqualified build prints Provenance.OperatorText() verbatim on stderr, followed by exactly one curator-run: adapter-provenance: <JSON> line carrying the full relux-adapter-provenance-v1 record. Quiet, silent and machine-output native flags cannot suppress either stderr line. A wrapper that owns a session can parse and persist the JSON record; direct launches have no launcher-owned session record. Hosted guards refuse network admission until their session owner stores that provenance. The existing network binding line remains separate.

Admission identifies the native binary bytes, not the version label. The launcher executes those exact bytes from a private staging directory and removes the stage after the child exits. Scripts/interpreter wrappers refuse with runtime_closure_unsupported; no dependency closure is claimed as qualified merely because a file has a native executable header. See SPEC §4.4b and §6.

Configuration family

The launcher owns defaults.json, launcher.json, session-managers.json and selector.json in the operator directory ${XDG_CONFIG_HOME:-~/.config}/swarma/launcher (default ~/.config/swarma/launcher) and machine directory /etc/swarma/launcher. These are separate from Curator’s configuration. All use closed schemas: unknown members, malformed data and unreadable files refuse the invocation; absence alone permits fallback.

launcher.json accepts the closed schema curator-run-launcher-v1, with optional host_mode (auto, native, hosted) in the system layer only. Absence means auto; an explicit value has source machine, absence source default. The optional system-only delegated_trial boolean is withdrawn since the Q1 sign-off: it is still validated as a boolean but changes no route. A user-layer host_mode or delegated_trial refuses and names the system path. Host selection uses this mode and the per-launch flag. The v3 defaults host member is withdrawn: it refuses host_member_withdrawn (exit 2), naming launcher.json; see FRONT-DOOR §3.1.

Core-selected machine metadata supplies optional proxy and standalone Claude OAuth references through curator config launcher; neither launcher.json layer supplies them. See the configuration contract for the selected-source transport, precedence, final-child injection and refusal behavior. Metadata reads never access a secret store.

For one release, missing active configuration files fall back individually to /etc/curator-run/<name> or ${XDG_CONFIG_HOME:-~/.config}/curator-run/<name>. Each read prints curator-run: deprecated config path <old>; move it to <new> (curator-run migrate). A present new file wins without opening the old one; all selected files keep the same file-security checks.

Run curator-run migrate --dry-run to print the complete migration plan, then curator-run migrate to apply it. Active legacy sources remain untouched; retired ax policy files are handled as described below. Destinations are copied atomically, with .bak bytes for rewritten copies, and rollback on failure. Destination equality compares the final transformed bytes; a different file refuses migrate_destination_exists before writing anything. An exact raw legacy copy can be transformed in place with its original bytes in .bak; final transformed bytes count as already migrated. Uniform old machine host values become launcher.json host_mode; mixed values refuse. User host values are listed and dropped. Unwritable system files are listed once for a privileged installer. A repeated run is a no-op.

selector.json is optional, system-only policy with schema curator-run-selector-v1. It requires mode (shadow or enforce), an absolute executable, and argv_prefix (0–4 words matching [a-z0-9-]{1,32}). Optional timeout_seconds is 1–60, default 5, and applies only to enforce. Any user-layer file refuses defaults_config_invalid.

The selector receives one bounded JSON request containing the profile, cwd, explicit model/effort flags, and exact admitted runtime/model/effort tuples from the same agents-management lineup and registry used by defaults. Plain launches carry null role, project, Werkstatt and task fields. An effort-less candidate and response use JSON null; empty effort strings are invalid. Responses are closed, limited to 64 KiB, and must choose an exact candidate. Decision/runtime/model/effort strings follow [A-Za-z0-9._:/@+-]{1,128}; non-null weights use gguf-sha256: followed by 64 lowercase hex digits.

Enforce waits within the deadline, applies the choice above file defaults and below explicit flags, and reports selector=<decision_id> in the defaults line. Runtime remains bound through the existing mapped system; the selector’s runtime is retained as provenance. A typed abstention refuses selector_abstained (exit 1, code) only when runtime, model, effort and weights are all null; a mixed refusal and choice is invalid. Transport or validation failure refuses selector_unavailable (exit 1, reason=timeout/exit/invalid). Neither falls back to defaults.

Shadow leaves composition and output unchanged. After composition it starts a worker in a separate session/process group without a terminal. The worker owns the selector IO and appends a decision record; the launcher appends its applied values and launch outcome. Records join by the SHA-256 digest of the CCJ-1 request in ${XDG_STATE_HOME:-~/.local/state}/swarma/launcher/selector/observations.ndjson. The launcher attempts the append lock without waiting; contention or failure drops the line and best-effort increments selector/dropped beside the log. The detached worker can wait for this lock for at most five seconds. Observation and counter paths must be regular files, never symlinks. Selector and observation failures never change the launch. A fresh hosted launch carries the decision id verbatim in its selector label. Plain resume uses an empty label filter and retains the admitted session labels and policy.

The session-manager registry uses the closed schema curator-run-session-managers-v1: {schema, selected?, managers}. A system registry decides alone; the user registry is opened only when it is absent. Each manager has an id matching [a-z0-9][a-z0-9-]{0,31}, an absolute executable, 0–4 argv_prefix tokens matching [a-z0-9-]{1,32}, protocol curator-session-manager/1, a UTC RFC 3339 registered_at, and registered_by (1–128 printable ASCII bytes). No manager lookup searches PATH. The state reader exposes empty, unselected, or selected; a broken selected executable refuses rather than becoming empty. Launch selection is not wired to the registry in this slice.

curator-run session-manager list [--json]
curator-run session-manager show <id> [--json]
curator-run session-manager register --manifest <path|-> [--select | --no-select] [--scope user|system]
curator-run session-manager use <id> [--scope user|system]
curator-run session-manager unregister <id> [--scope user|system]
curator-run session-manager observe <manager-id> --session <SES-handle> --json

Observation requires both flags and uses the explicit registration, even with no selected manager. It sends only describe and one status, with the existing 10 s per-call deadline. It emits the registration incarnation, the validated session record (without its RPC envelope), and a launcher UTC timestamp. Nulls, unknown and unreadable evidence remain unchanged; unknown never means down. Refusals leave stdout empty and print one closed diagnostic, with no plugin text.

curator-run session-manager observe <manager-id> --session <SES-handle> --json --schema v2 \
    --expect-registered-at <ts> --expect-generation <n> [--expect-executable <abs>]

--schema v2 emits curator-run-session-observation-v2: the v1 document plus capabilities.process_observation, taken from the same describe. When the manager advertises process-observation/1 together with status/1, the record keeps its process and termination members token for token, without insignificant whitespace. Without that token either member is session_host_protocol_error (6) in both schema versions. The default remains v1 with unchanged output; over a capable manager v1 validates the complete record and then omits exactly those two members. The --expect-* values are the owner binding frozen before submission: a different registered_at, executable, manager, session or generation prints nothing and refuses session_generation_mismatch (1). In v2 an unreadable record has no generation evidence and refuses session_generation_mismatch (1). Launch, resume and Werkstatt up paths admit the same members under the describe they already make, frozen into the lease admission at submission, and recovery of a submitted operation admits under those frozen capabilities while the registry still names the frozen owner; paths with neither source (for example Werkstatt down and status owner reads and stop) still refuse them, and only observe --schema v2 prints them. Observation never reads or writes launcher liveness, journals or Werkstatt state, and never locks or changes the registry. See the contract and the output schema.

list --json prints the registry object plus layer; show --json prints the entry plus id and layer. The CLI-only layer is system, user or none (list when no file exists), including legacy fallback. Text starts with layer: <layer>, then listing sorts by id and marks the selected manager with *. The registry file schema remains unchanged. The registration manifest is an entry plus id, without registered_at; registration resolves executable symlinks, validates a regular executable, and stamps UTC. All mutations write the system layer if writable, otherwise the user layer; a system registry makes a user mutation refuse as shadowed. Explicit --scope system refuses if unwritable (session_manager_registry_unwritable, exit 2, path = registry directory, scope=system), before locking or writing, without falling back. Explicit --scope user writes user only and still refuses when a system registry exists. An unshadowed, unwritable explicit user target likewise refuses session_manager_registry_unwritable before locking or writing, scope=user. This diagnoses directory write authority separately from invalid/unreadable registry content. Missing, invalid or duplicate scope is usage (exit 2) with no effect. Omitted scope preserves the existing layer policy. select remains a deprecated alias for use: identical stdout and effect, one stderr warning; deprecated in 0.6.0, removed no earlier than 0.8.0 (two releases). A newly created system registry starts empty. Explicit flags decide selection; otherwise an existing id keeps it, the first manager is selected, and adding a peer asks once on a terminal (default: keep). Without a terminal the peer is registered without selecting and the command prints the explicit use command. Unregister never selects a replacement. Writes use a same-directory temp file, file fsync, rename, and directory fsync. Each mutation holds an OS advisory session-managers.json.lock in its target directory across reading, selection, writing and rollback, including the terminal question. A contender waits up to 10 seconds before session_manager_registry_busy (exit 1, no details). A terminal answer expires after 120 seconds with usage (exit 2). Failed commands leave the previous registry bytes unchanged. The lock file persists; the OS releases its lock when the holder exits or crashes.

Model and effort resolve independently: flags, then operator defaults over machine defaults per member, then the admitted lineup. Permission mode has its own precedence: --permissions or --yolo, Curator’s per-profile setting in the fragment, the launcher-global file value, then the built-in default. A v3 file can set model, effort and permission defaults independently:

{
  "schema": "curator-run-defaults-v3",
  "locked": false,
  "defaults": {
    "codex_cli": { "effort": "high" },
    "claude_code": { "permissions": "yolo" }
  }
}

Each environment entry may contain model, effort, and/or permissions; permission values are exactly native or yolo. A v3 reader accepts v1 and v2 files unchanged; older readers reject the members they do not know. The permission fragment member uses the F-S2 names permissions.mode, permissions.locked, and permissions.source; source=default means the profile level is silent. Native and hosted silence default to yolo with source=default-interactive on every stdio shape; headless observations never change that default. native means no launcher override and does not guarantee prompting; native arguments after -- remain untouched. Curator’s permissions.locked=true force-native lock outranks the ladder: launcher-visible yolo is usage, while silence resolves to native. Without established permission transport, a would-be yolo refuses permission_policy_unsupported.

Hosted posture exports as execution_profile standard/yolo in the payload. A piped launcher stdin refuses before the plan build; an attached plan stdin refuses after it. A missing or invalid terminal descriptor refuses before the plan build with zero receiver lookup, and the launcher marks and validates both private descriptors before contact. The fd4 status channel accepts only closed refusal envelopes and normalizes anything else to session_host_protocol_error without reflecting receiver bytes; a poisoned channel stays a protocol error even when a later frame is truncated. When the machine defaults file is locked, operator entries are ignored for its environments and flags overriding any member it sets are usage errors. Model and effort origins are printed before admission. Native launches use the upstream stored-policy inspector and report known relaxations only from files it fully inspected. The report is not a claim that a setting won provider precedence or that uninspected managed policy is clear. Long permissions.allow lists are summarized by rule count in stderr.

Pi fallback uses the ordered convention pi-anthropic, pi-openai, pi-google, selecting the first runtime with a driven model and ranking only within that runtime. This is an operator convention, not a comparison of vendor scores. An explicit/configured model binds its own runtime independently. If that exact model has no unique contributing runtime, resolution refuses with defaults_unresolvable, naming the model and environment before planning. An explicit effort does not bypass this check. Declared catalogue aliases remain valid; the launcher does not invent aliases for unknown identifiers.

Removed ax tracking

Ax tracking was removed on 2026-10-27. --name and --ax-profile before -- are usage errors (exit 2), with a message saying removed in 0.6.0. --untracked remains an exact alias of --native for two releases and prints exactly one deprecation line.

Any ax.json entry in a current system/user launcher directory or a deprecated system/user curator-run directory refuses ax_tracking_removed (exit 2). The diagnostic names only its launcher-sourced path and asks to delete it. The guard never reads/parses the contents, applies regardless of host flags, and also rejects symlinks, directories and FIFOs. Static help/version remain configuration-free.

curator-run migrate --dry-run lists every leftover. Apply backs up each regular file as .bak and removes it transactionally. It never copies the retired policy or backup into the new layout. Non-regular entries require manual removal: they are listed without following them, and apply refuses before any writes. Existing system-write authority rules still apply.

Diagnostics and exit codes

Launcher failures print a stable code line followed by human-readable detail on stderr. Foreign Curator/provider output is forwarded unchanged.

Result / diagnostic codes Exit
Help/version, successful native execution or hosted operation 0
ax_tracking_removed (retired policy entry; delete the named file) 2
usage (invalid arguments, locked-member override, host-request repeat, native resume selectors, or visible yolo under Curator’s force-native lock) 2
session_manager_registry_busy (lock contention after 10 seconds) 1
session_resume_invalid, launch_plan_invalid, host_member_withdrawn, migrate_destination_exists, session_manager_registry_invalid, session_manager_registry_unwritable, session_manager_registry_shadowed, session_manager_not_registered 2
resolve_invocation_failed, resolve_environment_unknown, resolve_profile_unknown, resolve_repair_failed, resolve_lock_unavailable, resolve_fragment_invalid 1
defaults_config_invalid, defaults_unresolvable 1
permission_policy_unsupported, permission_mode_unsupported 1
plan_refused, plan_provider_limited, env_unsupported 1
exec_provider_missing 1
mcp_layer_missing, mcp_layer_unreadable 1
sysprompt_channel_unavailable, sysprompt_file_unreadable 1
network_profile_unknown, network_profile_denied, network_scope_unsupported, network_configuration_conflict, network_proxy_unreachable, network_proxy_auth_failed, network_profile_invalid, network_file_unreadable 1 (hosted --network: network_scope_unsupported exits 16)
session_host_missing, session_host_unavailable, session_home_lease_unavailable 1
session_host_protocol_unsupported, session_host_provider_unsupported, session_host_scope_unsupported, session_host_execution_profile_unsupported, session_host_terminal_required, session_host_stdin_unsupported 6
secret_policy_violation, policy_refused, session_host_delegated_unauthorized 16
Direct child failure Child’s exit code unchanged
Direct child terminated by signal 128 + signal
Hosted receiver exit without a refusal record Receiver exit unchanged

See SPEC §6 for each refusal condition. No refusal retries with a different model or weaker launch.

Development

make build      # go build ./...
make fmt-check  # gofmt -l over cmd, internal and schemas; fails on unformatted files
make vet        # go vet ./...
make test       # go test ./... -count=1 (includes the CLI goldens)
make race       # go test ./... -count=1 -race -timeout=12m (per package)
make verify     # build, formatting, vet, test and release admission controls
make check      # all of the above
make release-binary VERSION=0.7.0 [GOOS=… GOARCH=…]  # reproducible binary + .sha256 in dist/
make release-repro                                 # two checkouts, identical bytes required

Validation targets run every selected lane after a failure and print a final PASS, FAIL or UNAVAILABLE verdict for each. build, vet, test and race each cover the root and session-manager schema modules. verify collects the hosted non-race checks; check adds both race lanes. Any failed or unavailable lane makes the target fail. A collector compilation or setup failure stops the target before validation starts. External cancellation and job timeouts can still interrupt collection.

The collector runs on the host even when GOOS or GOARCH selects another target. Validation children receive those target values; cross-target tests still need the usual executable support. GO and GOFMT each name one executable path, rather than a shell command with arguments.

make release-binary produces the binary that Curator’s signed distribution ships (FRONT-DOOR §10). It builds with CGO_ENABLED=0, -trimpath, -buildvcs=false and -ldflags "-s -w -buildid= -X main.buildVersion=…", using GOFLAGS=-mod=readonly and the toolchain pinned from go.mod. Its inputs are treated as data and validated before use, so a crafted VERSION cannot run anything. It writes dist/curator-run-<version>-<os>-<arch> and a checksum file in sha256sum format. Signing, notarization, packing and the release tag belong to Curator’s release workflow, not to this repository.

CI (.github/workflows/ci.yml) runs the same targets on ubuntu-latest and macos-latest with the toolchain from go.mod. An optional self-hosted job runs make check on [self-hosted, macOS, ARM64] when its repository opt-in is enabled; the workflow defines that setting. Enable it after registering a matching runner. Goldens run as part of make test and make race. A release-repro job runs make release-repro on both hosted runners. There are no release or tag jobs. Windows is not in this launcher’s hosted matrix; platform execution evidence must come from the corresponding runner. The race target allows 12 minutes per package for the conformance suite’s intentional deadline controls and slower race runners; the hosted race job retains its separate 15-minute overall limit. Repeated standalone conformance runs need their own explicit timeout budget, for example go test ./internal/sessionmanager/conformance -race -count=2 -timeout=20m. The filtering-gateway signal tests build a second launcher with the gatewayphases build tag (go test ./cmd/curator-run -run TestGatewayRealSignalBarriers). In that build only, the launcher waits at named phases of a gateway launch (the final recheck, the child’s start and exit) while the test sends it a real signal; in every other build the phase marks do nothing. Release binaries are built without the tag.

The preparatory internal/recoveryjournal package resolves explicitly supplied original state/profile/socket bindings and opens an existing namespace without following symlinks (Darwin/Linux). ResolveCaller projects the captured parent environment and an admitted network profile’s canonical sha256:<64hex> digest into that binding; the journal stores the 64 lowercase hex characters. It reads no ambient or child environment, rejects ambiguous duplicate routing variables, and does not itself admit a profile. An absent or empty XDG_STATE_HOME uses the supplied absolute HOME fallback; an invalid explicit state path refuses. CheckCatalog checks the recorded network digest and socket through the owning catalog and confirmation resolver using those same parent inputs. It preserves an original explicit profile when the current default changes and accepts confirmed aliases with identical canonical semantics. Missing, changed or unconfirmed original semantics refuse. This checks catalog admission, never service authority, and performs no catalog writes or service calls. Missing directories are returned as a proposed preflight write set; inspection does not create or repair them. Its private prepare operation requires a bounded namespace lock, writes the frozen envelope to an exclusive 0600 temporary file, checks write/sync/close, publishes without overwriting another entry, and syncs the directory before returning a prepared result. Failure retains incomplete private evidence and returns no such result. Caller accounting permits up to 4096 private files of at most 16 KiB each; the service’s separate 16 MiB authority-snapshot limit is not reused here. It writes only the admitted namespace lock and secret record/temp; the layout must already exist. Inspection alone grants no native write authority. Run go test ./internal/recoveryjournal -count=1 and go test ./internal/recoveryjournal -race -count=1 for isolated synthetic path and descriptor/publication controls. Its exact-entry reader accepts only one public attempt ID under the unchanged original state/profile/socket binding. It opens that private file without following links, checks its inode/size/mode and stable read, and decodes exact versioned fields, including the envelope, without accepting duplicates, aliases, unknown fields or missing members. Prepared and terminal ended states are supported. Other entries are not enumerated or repaired; reading cannot authorize another registration or prove service authentication. The cooperative private lock may be created by a read. DiscoverBinding starts with only the captured parent state location, reads the named guarded record under that lock, validates its complete closed schema and frozen base, then checks the exact recorded profile/socket in the current admitted catalog. It returns no capability and performs no service call or private-record enumeration. A location without a complete binding cannot prepare new authority. Later recovery reopens and validates the exact entry. The separate internal netproxy.RecoveryClient implements closed control/2 health, initial register and exact-envelope recover over a fixed original Unix endpoint. It bounds requests/replies at 16 KiB, accepts only exact versioned schemas and fixed refusal codes, disables redirects and performs no automatic register retry or version downgrade. It retains the existing token/base predicates and keeps the recovery proof out of child-facing reply fields. The journal aliases that client’s envelope type so issuance predicates have one owning implementation. Run go test ./internal/netproxy -run TestRecoveryV2 for synthetic Unix transport and response controls. The caller must establish input provenance and known generation matching when it integrates these parts. Namespace.Issue connects private preparation to the initial request: it sends only after a checked durable prepare under the unchanged binding, then uses only the original Unix endpoint. Failed preparation sends no request. A lost or refused response returns no capability and retains the exact original envelope; replaying Issue for that attempt refuses locally. The private record remains prepared/not_observed, which is a saved local observation, not proof that issuance did not occur. It never contains the runtime token. Run go test ./internal/recoveryjournal -run TestIssue -count=1 for publication faults, binding/cancellation boundaries, concurrent duplicate prevention and an actual fixture Unix request that observes its committed record first. Namespace.RecoverExact serializes one original-entry read, authenticated recovery and sanitized receipt commit under the namespace lock. It never registers, activates, discovers another namespace or substitutes a new envelope. Observed health supplies service boot metadata, while the original registry and proof still bind the recovery. Service confirmation and local evidence are separate results: failed write/sync/close/rename or cancellation returns no committed-receipt pointer and retains the original envelope. Exact prior receipts are validated and re-synced without overwriting their observations. One exclusive per-attempt temporary bounds residue without enumeration; failed cleanup leaves it for its custodian and refuses reuse. Only this call’s own checked receipt temporary may be cleaned up, never the private authority entry. After checked receipt durability, recovery samples kernel awake uptime and boot identity, then atomically publishes and syncs matching terminal secret/2 while retaining the original envelope/proof. Darwin uses CLOCK_UPTIME_RAW; Linux uses CLOCK_MONOTONIC. Both exclude sleep. A terminal publication or clock failure withholds local success while retaining the durable receipt and original proof. Its exclusive deterministic private preparation temporary is cleaned only when its own inode is still bound; unknown residue refuses reuse. Run go test ./internal/recoveryjournal -run 'TestReceipt|TestRecover' -count=1 for closed-schema, publication-fault, idempotency and synthetic Unix controls.

curator-run gateway recover --attempt <64 lowercase hex> uses the captured parent state location to discover and reopen only the original guarded entry, check its admitted profile, authenticate its original service and commit local evidence. It accepts no token, proof, path, endpoint or profile override and never starts a runtime or registers a launch. --help reads no configuration or state. The operation has a fixed 30-second budget; unsupported or uncertain recovery never downgrades to control/1. Success prints only the public attempt, fixed service result and receipt=committed. A service-confirmed result with failed local persistence remains a distinct nonzero local_evidence_failed. Failure diagnostics include the public attempt=<id> selector so the same command can be retried without enumerating private entries. Launch refusals include it once an envelope exists and preparation may have published it; proofs and runtime tokens remain private. Run go test ./cmd/curator-run -run TestGatewayRecovery -count=1 for grammar, dispatch, output-failure and isolated production-path Unix fixtures. These fixtures do not qualify an actual service or installed state namespace. An explicit bare --gateway-recovery opts a native filtering-gateway launch into durable control/2 issuance and completion. Omission preserves control/1. The flag accepts no value or repetition; hosted, unselected and non-gateway routes refuse. Existing runtime, settings and qualification guards still apply. The supported gateway runtime remains Claude Code in this source revision. The captured parent environment and admitted profile select the original existing private namespace; missing or unsafe layout refuses without repair. For missing containers the refusal lists only the proposed directory closure and mode 0700. STATE denotes the captured state base; STATE/.. denotes its parent. Absolute paths are omitted. This is a preflight proposal and creates nothing; unsafe existing entries receive no creation proposal. Closed health supplies the original registry and clock facts and a required boolean ready observation. New issuance requires ready=true before any envelope or private preparation. Cleanup of an existing attempt accepts ready=false when the original registry matches; clock refusal or a changed registry sends no recovery request. Only after durable private preparation does the launcher send one initial register. An uncertain reply refuses native start and reconciles that original attempt without registering again. A later launch refusal uses the same completion path as child exit. The runtime token enters only the guarded child route; the recovery proof never enters its environment or arguments. netproxy.NewRecoveryLease provides the terminal completion seam: activation and renewal use the existing runtime-token wire, then Finish stops those duties before invoking the original-attempt owner’s completion once under a 30-second budget. Concurrent or repeated Finish shares that exact result; failure never substitutes legacy unregister success. Missing completion refuses construction. The legacy lease path is unchanged. Run go test ./internal/netproxy -run TestRecoveryLease -count=1 for lifecycle, concurrent terminal-result and cancellation controls. Run go test ./cmd/curator-run -run TestGatewayRecoveryLaunch -count=1 for the isolated normal-launch lifecycle, prepare failures, uncertain issuance, interruption, exact retry and separate child/cleanup outcomes. These synthetic service fixtures do not qualify a real service or an installed namespace. To qualify canonical dispatch through explicitly selected manager bytes, run CURATOR_TEST_CANONICAL_MANAGER=/path/to/curator CURATOR_TEST_CANONICAL_MANAGER_SHA256='<binary-sha256>' go test ./cmd/curator-run -run TestGatewayRecoveryCanonicalForwarding -count=1. This external check uses fixture configuration and a fixture provider, retains the caller’s real HOME, verifies the manager hash before and after, and drives the captured argv through the normal launcher fixtures. It covers explicit recovery, absent opt-in, malformed opt-in and the preserved native suffix’s existing refusal. Without both explicit inputs this external qualification is not established; the ordinary suite skips it when no manager is selected. To dock against explicitly selected service bytes, run CURATOR_TEST_RECOVERY_SERVICE=/path/to/netproxy CURATOR_TEST_RECOVERY_SERVICE_SHA256='<binary-sha256>' go test ./cmd/curator-run -run TestGatewayRecoveryServiceDocking -count=1. The Go test verifies the service hash before and after execution, preserves the service process’s real HOME, and uses its documented disposable pilot startup, normal shutdown, recovery initialization and require-existing startup. It never reads the synthetic key’s contents. All service processes and Unix sockets belong to private temporary fixtures and every process is reaped. The normal launcher and standalone recovery command exercise the real control transport, including a lost registration reply, restart, foreign registry, missing layout, legacy selection and local-evidence failure. Native executables and captured parent inputs remain dependency fixtures, with zero upstream requests; this check does not qualify inference, installed state or a real member launch. It skips when no explicit service artifact is selected. Logs contain assertions and owned fixture PIDs, never raw service logs or request bodies. The closed reader also understands terminal private secret/2 records without discarding their original recovery envelope. Its pure retention policy preserves a matching same-boot anchor, restarts conservatively after a boot change, rejects clock regression or changed receipt bytes, and counts seven awake days independently of receipt UTC. Recovery re-syncs the immutable receipt before restarting an anchor on another boot, and terminal retries still authenticate the original ended result. The pure age predicate grants no deletion authority. Run go test ./internal/recoveryjournal -run 'TestTerminal|TestRetention' -count=1 for paired format, exact-interval, retry and terminal publication-fault controls. Namespace.PruneExact considers only one original ended record and its matching receipt. It checks both records’ durability and hash before requiring seven awake days. A new boot re-syncs the receipt and publishes a conservative new anchor. Eligible removal unlinks and syncs the secret before considering receipt unlink and sync; failed or uncertain secret removal retains the receipt. Missing or corrupt evidence never receives guessed age. This package operation has no installed cleanup command or automatic broad sweep. New preparation counts retained orphan receipts and legitimate temporary residue against the 4096 bound, and refuses new authority at exhaustion. Run go test ./internal/recoveryjournal -run 'TestPrune|TestPrepareReceiptCapacity' -count=1 for interval, ordering, removal-fault and capacity controls. The receipt’s pre-publication UTC is never a post-commit retention anchor. A prepared record is not evidence of a service request or completed cleanup. Filesystem guards and the cooperative lock do not isolate a hostile writer with the same user identity.

Tools

Workflow actions are pinned to full commit SHAs, with patch-version comments. To update a pin, resolve the selected tag in that action’s own repository with gh api repos/<owner>/<repo>/git/ref/tags/<version>. If object.type is tag, follow gh api repos/<owner>/<repo>/git/tags/<object.sha> until it names a commit. Review that commit’s action entrypoint and execution code, then update the SHA and version comment together. Run actionlint and the release admission controls before review; never replace a pin with a mutable tag. The release admission job has only contents: read; the dependent publish job gets release/OIDC permissions. Only its pinned GoReleaser step receives the five signing secrets.

Tool Purpose Entry point Output
curator env lease public home-lease probe and reservation/recovery; the launcher never releases or breaks curator env lease list --format json; hosted launch/resume invokes acquire with its persisted holder closed JSON on stdout; launcher journals and settlements under the XDG state home, as described above
curator-run session-manager inspect and atomically update the manager registry curator-run session-manager list/show/register/use/unregister (deprecated alias: select) (forms above) stdout or JSON; session-managers.json in the effective target config home
curator-run session-manager observe read one registered session without local state changes or reconciliation curator-run session-manager observe <manager-id> --session <SES-handle> --json one closed curator-run-session-observation-v1 JSON object on stdout; no files
curator-run session-manager observe --schema v2 read one registered session with manager process evidence, only from the frozen owner curator-run session-manager observe <manager-id> --session <SES-handle> --json --schema v2 --expect-registered-at <ts> --expect-generation <n> [--expect-executable <abs>] one closed curator-run-session-observation-v2 JSON object on stdout; no files
curator-run werkstatt hosted station lifecycle and separate manager/a2a status commands above; go test ./cmd/curator-run -run TestWerkstattBinary -count=1 -v liveness and journal in the XDG state home; bounded test children in t.TempDir
.scripts/werkstatt-mutants.py owner, workspace, admission, CAS, stale output, evidence and dispatch negative controls python3 .scripts/werkstatt-mutants.py [evidence-dir] logs and summary.tsv, default .temp/werkstatt-mutants/; restores exact source bytes; run alone
.scripts/selector-mutants.py bounded selector config, response, transport, precedence and shadow controls python3 .scripts/selector-mutants.py [evidence-dir] per-probe logs and summary.tsv, default .temp/selector-mutants/; restores source bytes
.scripts/doorbell-mutants.py bounded hook containment, refusal schema, PATH trust, doorbell projection, routing and surfacing controls python3 .scripts/doorbell-mutants.py [evidence-dir]; inventory: python3 .scripts/doorbell-mutants.py --list per-control logs and summary.tsv, default .temp/doorbell-mutants/; restores source bytes; run before other checks
.scripts/plugin-client-mutants.py bounded plugin transport, schema, capability, reconciliation and CAS controls python3 .scripts/plugin-client-mutants.py [evidence-dir]; inventory: python3 .scripts/plugin-client-mutants.py --list per-control logs and summary.tsv, default .temp/plugin-client-mutants/; restores candidate bytes; run before other checks
.scripts/session-manager-mutants.py bounded registry/registration/atomic-write, transaction-lock and deadline negative controls python3 .scripts/session-manager-mutants.py [evidence-dir] per-probe logs and summary.tsv, default .temp/session-manager-mutants/; restores source bytes
curator-run-fake-manager durable reference session-manager plugin and separate fixture adapter go build -o .temp/curator-run-fake-manager ./cmd/curator-run-fake-manager; see qualification explicit --state directory; no-op provider, no daemon
curator-run-fake-manager-fixture separate out-of-band qualification controls go build -o .temp/curator-run-fake-manager-fixture ./cmd/curator-run-fake-manager-fixture explicit --state directory shared with the fake plugin; JSON fixture evidence
Session-manager conformance qualify advertised plugin operations and controlled lifecycle faults; prove known-bad detections go test ./internal/sessionmanager/conformance -v; go test ./internal/sessionmanager/conformance -race -count=5 -timeout=45m Go test output; child binaries/state in t.TempDir
.scripts/fake-manager-mutants.py bounded source controls for fake-manager/conformance invariants python3 .scripts/fake-manager-mutants.py [evidence-dir] per-probe logs and summary.tsv, default .temp/fake-manager-mutants/; restores exact source bytes
curator-run migrate copy legacy configs and remove withdrawn host defaults curator-run migrate [--dry-run] plan on stdout; new files in /etc/swarma/launcher/ and ${XDG_CONFIG_HOME:-~/.config}/swarma/launcher/, rewritten copies keep .bak
Session-manager protocol module dependency-free wire schemas, strict reader and vectors; provider checks stay with the consumer go -C schemas/session-manager test ./... -count=1; included in make check stdout; dependency-control children in t.TempDir
Schema module parity shallow-checkout-safe comparison of the in-repo contract against the published schema pin; excludes only its root README go test ./internal/schemaparity -count=1 -v; included in make check and CI stdout; comparison fixtures in t.TempDir
internal/memberwire pure untrusted request/authorization/owner/catalog/tuple, lifecycle snapshot/head/cancel/observation/scope-proof and result/response/reservation/ack/conflict plus assignment/attempt/operation-intent/operation-completion structure and six descriptor-argument syntax; no handle I/O, compatibility admission or private verification go test ./internal/memberwire; included in existing PR test/race jobs test stdout; published inert records read as bytes, no native execution
internal/memberobjects bounded explicit O collection, immutable bytes and owned readonly CLOEXEC handles; explicit recheck/Close, cooperative freeze only go test ./internal/memberobjects; included in existing PR test/race jobs test stdout and owned TempDir fixtures only; no admission/native execution
internal/memberinput bounded offset-independent N/A handle byte snapshots on Darwin/Linux; caller-owned cooperative freeze, no full custody/admission go test ./internal/memberinput; included in existing PR test/race jobs test stdout and owned TempDir files only; no native execution
go (build, vet, test, race) build and behavioral suite make check and the targets above stdout; nothing written to the tree
Go validation collector run all selected lanes and retain an aggregate failure make verify, make check; go test ./scripts/validate for orchestration controls per-lane output and final verdicts on stdout/stderr; release controls use isolated .temp/ fixtures
make release-binary reproducible release binary for the Curator distribution make release-binary VERSION=<semver> [GOOS=… GOARCH=…] [DIST=dist] dist/curator-run-<version>-<os>-<arch> and .sha256 (gitignored)
GoReleaser v2.17.0 four-platform archives, Linux deb/rpm and a Homebrew formula generated without tap upload; optional Darwin Developer ID signing/notarization, then checksum-only keyless cosign goreleaser check; goreleaser release --snapshot --clean --skip=sign,notarize,publish dist/ (gitignored); snapshot is unsigned and never published
Homebrew and package inspection generated-formula style and read-only deb/rpm payload inspection; not needed on the release runner HOMEBREW_NO_AUTO_UPDATE=1 brew style dist/homebrew/Formula/curator-run.rb (requires Homebrew’s style gems); dpkg-deb -c <package.deb>; rpm -qlp <package.rpm> stdout; extraction for byte comparison stays under .temp/
scripts/release-go.sh GoReleaser’s Go tool pinned from go.mod, matching release-binary scripts/release-go.sh version; invoked by .goreleaser.yml stdout and GoReleaser’s dist/
scripts/release-gate.sh require an annotated SSH-signed stable tag from .github/release-signers, its exact checkout and matching buildVersion scripts/release-gate.sh v<semver>; tag-push-only .github/workflows/release.yml runs it before credentials reach GoReleaser stdout; no mutations
scripts/release-signing-gate.sh require all five signing fields or none before GoReleaser release builds; print only configuration mode GoReleaser before.hooks; scripts/release-signing-gate.sh stdout/stderr; no build, signing or network effects
Release admission fixtures trusted SSH positive and 13 tag refusals; all 32 signing-field subsets plus explicit-empty control, with unchanged state and no values logged make release-gate-test; included in make check and CI isolated .temp/release-gate-test.*, removed on exit
actionlint static validation of GitHub workflows actionlint .github/workflows/release.yml .github/workflows/ci.yml stdout
cosign, curl, shasum, tar, codesign, spctl authenticate, download, unpack and verify release artifacts installation commands above downloaded archives, checksums/signatures and extracted curator-run in the current directory
scripts/release-binary.sh the release build itself; validates VERSION, GOOS, GOARCH and DIST before any use (the Makefile passes them as unexpanded data) make release-binary … (not run directly) as above; invalid input exits 2 and writes nothing
scripts/release-repro.sh committed-HEAD reproducibility across two checkout paths, checksum and --version checks, a different-version control, and crafted-input negatives that must run and write nothing make release-repro temporary directory, removed on exit; one OK <sha256> line
python3 defaults mutant harness weaken defaults gates individually and run the behavioral suite; restore exact candidate bytes python3 .scripts/defaults-mutants.py [evidence-dir] per-mutant logs and summary.tsv (default .temp/defaults-mutants/)
.scripts/context-mutants.py check positive baselines, then narrow carrier engagement, reserved-member exclusion, permissions, deprecated-alias refusal, native suffix and replacement of the selected dependency in an isolated candidate copy; scrub fixture Git routing/config, with a five-minute bound per Go invocation python3 .scripts/context-mutants.py [evidence-dir] isolated copy, positive/per-mutant logs, selected-module.json, restoration.json and summary.tsv, default .temp/context-mutants/
production pipeline mutants narrow native late checks at run(...) in a scratch copy python3 .scripts/pipeline-mutants.py [evidence-dir] per-mutant logs and summary.tsv; 6 named narrowing probes
CLI goldens frozen accepted/rejected §3 shapes go test ./internal/cli -run TestGolden -update to regenerate, then review the diff internal/cli/testdata/cases.golden
scripts/observation-v2-controls.sh plant controls for the observation-v2 consumer: each plant weakens one gate in a scratch copy and its named test must fail make observation-v2-controls (CONTROLS_ONLY=P1,P2 selects a subset) per-plant logs and summary.tsv under .temp/observation-v2-controls/; the working tree is never mutated
scripts/gateway-claude326-controls.sh gateway admission and catalog-grounding regression plants, each paired with its unmodified control in a scratch copy make gateway-claude326-controls (CONTROLS_ONLY=G9,G10 selects a subset) per-plant logs and summary.tsv under .temp/gateway-claude326-controls/; the working tree is never mutated
.scripts/hosted-mutants.sh / .scripts/host-launch-mutants.py Bounded host resolution, matrix and request controls; each plant requires its passing control and named behavioral assertion. Missing anchors fail closed. .scripts/hosted-mutants.sh [evidence-dir] (MUTANTS_ONLY=M-H1,M-H2 selects a subset) isolated source copy, per-control logs and summary.tsv under .temp/hosted-mutants/ by default; working source is untouched
internal/mutantguard committed check that runs required withdrawn-host, no-fallback, native-bypass and missing-registration mutants M-H1, M-H2, M-H3 and M-H22 through the harness in a scratch copy of the tree and requires each to be applied and killed go test ./internal/mutantguard scratch copy under the test temp dir; the working tree is never mutated
.scripts/cli-mutants.sh narrowing-mutant harness for the §3 gates: each mutant weakens one gate to admit one rejected shape and the named test must fail .scripts/cli-mutants.sh [evidence-dir] (optional MUTANT_PKGS, MUTANT_RUN for bounded batches) per-mutant logs and summary.tsv under the evidence dir (default .temp/cli-mutants/); the source tree is restored on exit
.scripts/fragment-mutants.sh narrowing-mutant harness for the §4.1 gates (argv, exit mapping, stderr transport, reader rules, schema closure, CCJ-1 emission, entry-point wiring); the behavioral suite runs against every mutant .scripts/fragment-mutants.sh [evidence-dir] (optional `FRAGMENT_MUTANT_IDS=“M27 M28” FRAGMENT_TEST_PATTERN=“TestExecutableUnicodePathBoundary TestConformanceCorpus“` for focused rework)
.scripts/mapping-mutants.py §4.2 narrowing probes with named production-entry failures; restores candidate bytes after each mutation python3 .scripts/mapping-mutants.py [evidence-dir] per-mutant logs and summary.tsv (default .temp/mapping-mutants/)
.scripts/composition-mutants.py §4.5 behavioral narrowing probes for environment ownership, collisions, stdin and launch-boundary file refusal; restores candidate bytes after every mutant python3 .scripts/composition-mutants.py [evidence-dir] per-mutant logs and summary.tsv (default .temp/composition-mutants/); permission probe requires a non-root host
.scripts/systemprompt-mutants.py SPEC §5 narrowing probes through exported production APIs; exact source bytes restored after every mutation python3 .scripts/systemprompt-mutants.py [evidence-dir] per-mutant logs and summary.tsv (default .temp/systemprompt-mutants/)
.scripts/execution-mutants.py native execution and terminal-ownership narrowing probes, using disposable fake subprocesses in a scratch copy python3 .scripts/execution-mutants.py [evidence-dir] per-mutant logs and summary.tsv, default .temp/execution-mutants/; permission tests require non-root
.scripts/diagnostics-mutants.sh narrowing mutants for the §6 gates (exit mapping, closed membership, no-invention classification, anchored code-line parsing, entry exits, owner/form registry, exact-Detail framing exemption); restores candidate bytes after every mutant .scripts/diagnostics-mutants.sh [evidence-dir] (optional MUTANT_RUN for bounded batches) per-mutant logs and summary.tsv (default .temp/diagnostics-mutants/)
.scripts/plan-mutants.py SPEC §4.4 behavioral narrowing probes at plan.Build, restoring exact candidate bytes python3 .scripts/plan-mutants.py [evidence-dir]; narrow validation: go test ./internal/plan -count=1 -race, go vet ./internal/plan, go build ./internal/plan per-mutant logs and summary.tsv, default .temp/plan-mutants/
execution process helpers exact argv/env/stdin/exit and late-check tests; compiles disposable fake provider and API signal driver; Python 3 supplies isolated POSIX PTY regression go test ./internal/execution -count=1 test stdout; helper binaries use temporary directories and are removed
v4 Muse/Codex witnesses strict reader policy, native Muse argv and environment, typed Codex refusals, Exec/DryRun module boundary and fake-manager routing/digest fences `go test ./internal/fragment ./cmd/curator-run -run ’TestV4 TestMuseV4
fragment test corpus internal/fragment/testdata/schema-cases is the launch-env-fragment-v1 slice of curator-spec conformance/v1/schema-cases (index rows copied with their verdicts, source commit recorded in index.json); testdata/a0 holds the three fragments and digests the installed Curator printed during A0 verification go test ./internal/fragment none; 49 indexed names/verdicts and fixture bytes are pinned by an independently upstream-derived manifest hash in TestConformanceCorpus; refresh requires reviewing the upstream rows and updating that pin as well as index.json

License

Apache-2.0. See LICENSE and NOTICE.

Adapter-policy verification uses the existing Go tools with bounded package selections: go test ./cmd/curator-run -run '^TestOptionC' -count=1 -v executes baseline properties and seam mutants, and go test ./internal/cli ./internal/execution -run 'Test(NetworkPolicy|ArtifactSnapshot)' -count=1 checks flag grammar and staging. TestOptionCMutants retains each expected-red subprocess log under .temp/TASK-261005-yoogtw/mutants/; each mutant must fail its named behavioral test with actual exit 1. No literal source replacement is used for this policy gate.

Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright [yyyy] [name of copyright owner]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.