← Open-Source-Katalog

Swarma User Manager

Auf GitHub ansehen

swarma-user-manager

Two minimal privileged components for agent systems. Each runs as root for one operation at a time, through a sudoers rule that admits only its absolute path with no arguments, and performs a closed set of host operations:

  • swarma-user-manager creates, lists and retires per-agent, per-service and qualified workplace OS accounts, owns the static UID-range default deny from v0, and (v1) narrows trusted agents to their bound model-provider proxy and workplaces to zero egress;
  • swarma-user-launcher starts one approved executor under one active agent or qualified workplace account, so that an unprivileged dispatcher can run an agent as that account without general sudo rights.

Status: design in progress. Accepted architecture-review findings (2026-10-13) are reflected in draft v0.15 and its figures; publication/qualification gates remain open. The generation journal format gen-journal/1, vectors and Linux offline checker are published here; the station core includes v2 effect receipts, unlocked per-effect flights and versioned authority boundaries with injected-backend tests, and standalone Linux station primitives are available through a Linux backend adapter; host qualification providers remain gated. Real OS account backends and production consumer adapters remain unqualified. The helper specification is spec/helper.md; diagrams are in diagrams/.

Owner-run Linux root evidence records two passes on 2026-10-24: r1 disposable account primitives at 4639d69, and r2 installation/initial/unit qualification at a5e99c4 with 11/11 checks. Each result covers one host and its exact build; admission remained unconfigured. Production lifecycle under load, complete inventory and A3 automatic requalification remain outside those passes.

Lab profile v0 producer slices

The manager_lab build tag adds the closed claude-api-key-lab-v0 launch mapping, with ANTHROPIC_API_KEY=ssh-placeholder, while preserving the production OAuth mapping, metadata modes and Unix-only confinement. Untagged readers refuse the lab kind. The tagged manager also serves C0c native observations with --lab-observation on its fixed protected Unix socket, using the existing native store lock and a separate durable observation counter. It never grants launch or credential authority. Tagged start admission additionally validates the C0b bounds and approval graph, complete protected plan/profile pins, native account/start joins and original deadlines. C0e makes G1b the sole per-attempt gate; M1 does not count vendor attempts. This is not the complete M1 unit: the full root setup, genuine pinned client realization, authenticated approval import and privileged-access readback are not delivered or qualified. See scope, STOP evidence and validation tools.

Tools: go build -p 1 ./... and go build -tags manager_lab -p 1 ./... build the two graphs; go test -p 1 -count=1 -timeout=20m ./... retains production checks; go test -tags manager_lab -p 1 -count=1 -v -timeout=20m -skip "^TestLaunchMappingPlants$" ./internal/launch ./cmd/swarma-user-launcher ./cmd/swarma-user-manager exercises tagged mappings, admission and observation source-overlay mutants; the unchanged default-only plant harness runs above. Use isolated absolute HOME/caches/cwd; retain command exits and named mutant evidence under .temp/lab-m1/ and .temp/lab-m1-resume/. The focused C0c gate is go test -tags manager_lab -p 1 -count=1 -v -run "^TestLabObservation" ./internal/launch. The C0b gate is go test -tags manager_lab -p 1 -count=1 -v -run "^TestLabStart" ./internal/launch. The full setup command is not implemented; the observation metadata writer is installer-only. No credential, installed access roster or native qualification is implied.

Demo slot service

The temporary slot daemon has a separate station install package and runbook. Its installer uses explicit protected policy/artifact inputs, supports read-only --check, and installs without starting. This does not qualify the production station backend or deploy anything by publication.

Host qualification protocol

The proposed self-service protocol defines owner-run survey, kit generation/review, root stage/apply/verify, signed evidence and later requalification. The verified-platform matrix is an empty format proposal with no qualified rows. Signing/enrollment, catalog, expiry/revocation and publication policy remain explicit activation gates; this documentation supplies no generic installer or submission command.

The A4 kit plan separates generic orchestration from module collectors and offline catalogue evaluation, with reviewable slices and explicit catalogue inputs. It delivers no executable kit.

Hosts holding a v1/v2 local qualification record need explicit owner requalification through the reviewed installer and pin procedure to issue station-qualification/3; a unit restart does not convert old records.

The socket inventory sandbox design traces the former AF_UNIX-only qualification conflict and its hardened fix. It compares a protocol exception, an isolated helper and proc scans. D1 is decided by owner decision: the exact diagnostic exception, removal of CAP_NET_ADMIN, executable-bound audit and effective-capabilities Q evidence. The fixed-triple filter, unit profile and version-3 Q capability evidence are implemented. Installed root/audit and full populated-account qualification remain pending.

The first-worker launch/stop selection maps the existing dispatcher-only launcher, account-wide stop and effect observation contracts to one non-federated run. It selects a broker v0 allowlist lease with no binding and an operator-prepared active account authorized by protected M0 dispatcher policy. It lists the small publication deltas and keeps installer, production-evidence and native-qualification gates explicit.

The M0 start-invalidation proposal selects receiver-owned fencing for policy removal versus physical start. Its protected control interface, native release/time mechanism and independent stop remain joint publication and qualification gates; M0 start stays closed.

The first-run launcher and exec.stop receiver implement that selection for one pre-created worker and a managed dispatcher: closed launch-op/1 intake, an operator-installed start gate, a separately qualified integrated deployment profile, the root receipt before verified privilege drop, committed-start A one-start accounting, account-wide stop and D5a absence over every thread’s real, effective, saved and filesystem UID. The drop-to-exec goroutine stays on one OS thread; the final check reads /proc/thread-self/status, including empty groups and no-new-privileges. The default no_launcher:true profile and its service scan are unchanged; a gate or flag alone cannot enable launch. Root qualification, installation, containment and independent original-deadline stop remain external gates.

The protected Claude gateway launch mapping adds opt-in, approved-executor-bound selection, a fixed secret-free environment and Unix-only seccomp before exec. It is an owner decision 2026-11-19, Core review pending, limited to qualification units. Unlisted executors and start receipt bytes are unchanged; no gateway or broker activation is implied.

Principles

  • A3 package-update requalification specifies the sole signed-apt-chain automatic re-pin exception. Its evidence recorder, chain verifier and state reconciler are implemented for review; time/deployment integration, automatic pinning, containment/notification and root qualification remain pending; station admission stays closed until that slice is landed and qualified. It does not implement A1p’s separate administrator command.

  • Closed operation schemas read from stdin (swarma-user-manager helper-op/1, swarma-user-manager launch-op/1), never free-form arguments, commands or environment.

  • Per-caller policy: installers manage configured service accounts, dispatchers manage only the agents and qualified workplaces they created. The helper’s operator UID is the protected service account swarma-operator; it and the mandatory read-only swarma-observer never host a harness session.

  • Operator signing authority belongs to swarma-operator. Phone-first acts use a biometric-gated operator device key over tailnet SSH, with a forced operator command and no shell; the terminal fallback uses password-authenticated sudo with timestamp_timeout=0. Operator helper sudo is authenticated and non-cached; NOPASSWD stays only for dispatcher helper/launcher rules. Widening acts require exact-content confirmation; narrowing acts need authentication only except the node-wide R-ALLSTOP act requires one confirmation. All operator acts are refused inside agent sessions. Reads of status, grants, accounts and bindings use swarma-observer without confirmation. Unpublished entry/signing/read interfaces remain publication gates (§11, §14).

  • The helper chooses account names and UIDs from its own ranges; every creation gets a fresh random 128-bit generation that is never reused (R-GEN).

  • It acts only on accounts covered by its protected effect evidence and authoritative generation journal; the ledger is a derived view. It never adopts pre-existing accounts, and works on files through descriptors without following links.

  • One lock protects state transitions; dependency recovery and bounded retirement batches yield to unrelated controls. Creation rolls back on failure; retirement moves forward from its commit point; every operation leaves an audit line naming the caller.

  • Retirement deletes the home after verified quiescence, workspace result and all-blob durable custody outside deletion or an explicit per-act operator waiver, and declared-key cleanup. Retirement metadata is limited to a closed schema generated by the service; workspace content has separate retained custody (§7). Keeping a home is a separate explicit operator operation requiring authentication plus exact-content confirmation; its confidentiality is not guaranteed (§4.4.1).

  • effect.observe exposes six receiver-owned evidence states under the journal lock; expired or missing evidence is unavailable, never proof of absence (§4.6).

  • The launcher preserves trusted handles through their last use and delivers completely staged bounded immutable bytes on read-only FD3; the per-platform mechanism remains publication work (§7).

  • exec.stop and retirement signal and verify every process of the current generation UID. Latest-receipt fencing prevents old stops from signalling successors; unfinished stops continue under their own effect ID (R-OUTCOME). exec.stop proves process absence only; the session host’s recovery owns the separate harness native-lock check (§4.7).

  • Retirement is entirely local; dispatcher/operator broker unbind remains a separate confirmed effect. Direct operator retirement retains any unresolved binding-cleanup obligation (§4.4).

  • The process fate table and replaced-daemon writer fence live beside R-FD3 in §7; Linux selects root-created non-delegated per-execution units and ceilings; macOS uses sandbox/limits/scheduling/APFS quota and soft watcher rows. Each host publishes a qualified capability matrix; concrete configurations remain qualification gates (R-CEILINGS).

  • Cross-account workspaces use standalone repositories with private .git and fresh configuration, no hooks/remotes/credential helpers. Dispatcher-owned approved child-UID executors swarma-workspace-materialize and swarma-workspace-export transfer only data; export follows confirmed absence and precedes retirement (R-TRANSFER). The orchestrator imports/reviews the exact signed candidate through the board; same-account worktrees stay.

  • v1 adds mandatory zero workplace egress, service egress rows and machine-owned Curator-to-network binding with served_policy_digest checks (§8). Unpublished formats, schedules and platform mechanisms remain explicit activation gates.

  • R-UNTRUSTED is recorded at admission; every workplace is in it unless an operator act admits that remote worker to the trusted circle at admission. Membership enables donor-side opt-ins only; zero workplace egress, exec profile, transfer and review stay. v0/Slice 0 refuse activation. v1 requires qualified ceilings, exec profile, zero workplace egress, no subscription binding/lease or local agent loop, and no shared services alongside untrusted work. macOS is admitted by qualification, never excluded by name.

  • R-EXEC selects and pins the profile identity and immutable policy-body digest through the protected Curator-profile/lock/placement/class relation. The launcher refuses drift. It enforces task-class executable allowlists in the OS and non-executable writable areas; qualification covers entrypoint, arguments, environment and transitive interpreted inputs, with unsupported local tools routed to R-VERIFY. Only qualified light checks run in accounts; builds/tests and worker-produced code execute solely in R-VERIFY isolated ephemeral secret-free runners on another machine. Trusted local standing loops verify plan-owned harness surfaces on every launch/restart/native resume (R-STANDING).

  • R-WATCH v0 offers journaled one-account stop, published admission hold and observer status only; samples are generation/boot/interval-bound. No phone notification or per-account egress freeze is promised. The v1 freeze lifecycle remains open with S2. R-ALLSTOP directly delivers the same operator act to each service: receiver launch/create/activation/ingress fencing precedes fresh generation inventory absence. Receipt-backed stops and the distinct never-launched case proceed independently of dispatcher availability; all durable service parts, including the dispatcher, must reconcile before scoped explicit recovery. Delivered tokens keep vendor lifetime (§§8.2–8.3).

  • R-RANGE-DENY is installed before accounts and actively probed at install/service start/on schedule. R-SOCKETS qualifies exactly the declared platform Unix-socket reachability set; R-SHARED forbids shared services on untrusted hosts. The design works without web: by default donor loops reach only model-provider endpoints and our host, and our environment has no internet (R-NET-TOOL 4). Tasks carry read-only digested resources as data; the trusted side fetches/checks/attaches more on request (4a). Web options default off and require an explicit per-identity trusted-circle opt-in (4b). The default-off local web-tool service has its own service account, row and listener; local agents reach it only over a Unix socket with peer-UID admission and a grant, and workplaces are refused. Donor web services run separately from harness and bridge identities; keys never reach the project.

  • R-NETBIND forbids direct and external-http-proxy for every account on a platform host; they remain for operator machines without the platform. Each bound account generation has its own profile-bound proxy listener and admits only its own port. The listener evidence uses account_generation, profile_ref, service_generation and served_policy_digest, covering allow entries, caps and guard version. The proposed platform-proxy kind and fixed refused-port set belong to the network-profiles N15 revision of 2026-10-13, referenced in §8.

  • Later: it re-verifies the signed grant behind each request instead of trusting the configured policy alone.

How it fits

  • swarma-dispatcher, under its own service account, creates a trusted agent’s account with the helper, binds that account’s generation in swarma-credential-broker, and starts the agent’s executor through the launcher; the executor then obtains its credential lease from the broker itself.
  • swarma-credential-broker runs under a service account the helper creates, and must verify generations through the authoritative journal adapter, never the derived ledger.
  • The dispatcher is a Unix-socket service from its first slice and calls the helper and launcher through sudo. It is the only launcher caller. In the gated SH2+ design, the host requests host_start/host_stop from the dispatcher under a session-scoped host admission permit. Successors require session lifecycle authorisation and confirmed absence of the previous claim; each physical start keeps its claim/fence/receipt interlock. Joint publication remains required (§7).

Diagrams

PlantUML sources map the current specification. All figures show unimplemented design phases, process identities, state owners and refusal/recovery boundaries. Visible notes preserve unspecified behavior and open decisions; SH2 launch authority is not activated.

Audit row Figure Spec
M-UM1 Privileged components §1, §§2–3, 4.6, 6–9
M-UM2 Launch and authorised stop §7, §§4.7, 8.3
M-UM2 Provision, retire and recovery §4.3, §§4.4–4.6
M-UM3 Account lifecycle §4.2, §4.6
M-UM3 Receipt evidence and retirement fate §4.4.1, §§4.7, 7–8
M-UM4 Storage layout and owners §4.0, §§6–7, 11

License

Apache License 2.0 — see LICENSE and NOTICE.

macOS station backend specification

The macOS station draft maps the shared account, managed-home, create/retire, journal and qualification guarantees to a proposed macOS backend. It includes the Verified platform tools matrix, with limited read-only observations dated 2026-10-24 on macOS 27.0.1/26A434; mutation and native qualification remain PENDING-VERIFY, with root obligations PENDING-HOST. Under P5’, macOS is a full station platform alongside Linux; there is no task-name allowlist. The normative platform parity matrix publishes stable guarantee identifiers and definitions, per-platform mechanisms/proofs and the task declaration consumed by the scheduler. Missing required guarantees refuse placement; a qualified weaker guarantee needs explicit operator acceptance and visible disclosure in the matrix, boundary receipt and scheduler output. Soft compensation is never hard-limit equality. Native Xcode/simulator, Keychain, launchd and TCC capabilities have their own rows. macOS station keys and Matrix login are absent pending a separate key-service port. Scheduler/receipt integration is a normative requirement, not implemented here. Qualification revocation immediately closes new starts and requires verified narrowing or stop within the original published deadline. This draft delivers no backend code or execution authority. Linux behavior remains unchanged; production bump stays closed pending the shared Keymaker contract.

The read-only facts and retained query template record sanitized F1–F8 observations, corrected membership syntax and exact candidate commands, purposes, synopsis prerequisites, bounds and evidence limits. The corrected membership query has not been rerun. Any further collection must be separately relayed to the designated macOS host as an ordinary user after local syntax verification; keep stdout/stderr, exit codes and raw metadata in private task artifacts. The existing hosted root probe does not qualify that host. Open decisions are recorded in the unresolved register.

Release tools

Tool Purpose and command Outputs
Linux pre-release template (Bash 4+, Go 1.26.10, Git, GNU coreutils, Python 3) On main: .scripts/release-admit.sh v1.2.3; GO=/absolute/path/to/go .scripts/release-build.sh /absolute/new/dist /absolute/source pure (intermediate pure subset only); gh workflow run release.yml --ref main -f tag=v1.2.3; see release trust and isolated build setup Linux amd64/arm64 binaries (pure-Go commands plus the native cgo NSS collector; see docs/releasing.md), SHA256SUMS, provenance.json, canonical release-set.json; only the complete collected set becomes a PRE-RELEASE draft
OpenSSH / GitHub CLI optional pure-Go bot signature GO=/absolute/path/to/go .scripts/release-sign.sh v1.2.3; refuses the enabled cgo policy before signing or uploading an incomplete set No signature under the cgo profile; pure-Go adopters retain .temp/release-sign.* rebuild/readback evidence; agent-held key, proves nothing about origin
Python 3 metadata / digest verification .scripts/release-verify.sh /absolute/assets EXPECTED_FRAGMENT_SHA256; builder invokes .scripts/release-metadata.py create, verifier invokes check Canonical metadata and digest consistency; installer trusts only the aggregate set digest approved by the owner in person before any root step; tag allowlist is no trust root
Release fixture controls / actionlint (optional) GO=/absolute/path/to/go .scripts/release-test.sh /absolute/new/scratch (sources .scripts/release-cgo-test.sh); actionlint .github/workflows/release.yml when installed Real Git/SSH/Go/cgo positive and negative controls, scoped bundle transfer and observable scratch-home Git trust controls; local GitHub CLI double; named logs in isolated scratch; lint output
User manager retained artifact controls After the release fixture controls: GO=/absolute/path/to/go bash .scripts/user-manager-release-test.sh /absolute/completed/release-scratch /absolute/new/retained-scratch Original missing/extra artifact and missing-policy test names, real builder refusals and nearby positive builds; named logs in the new scratch
Native cgo profile (GCC, glibc, binutils, Python 3, Go 1.26.10) In the pinned image on each native architecture: GO=/absolute/path/to/go python3 .scripts/release-profile.py build /absolute/new/cgo-output /absolute/main-policy /absolute/source amd64 (use arm64 on its native runner); collect and check as in releasing Two independent builds per architecture, canonical cgo receipts and the exact collected release set; isolated scratch retained under TMPDIR

Generation journal tools

Linux and Go 1.26 or later are required. The Go module pins the format owner’s CCJ-1 implementation and the Linux x/sys/unix boot-clock, descriptor metadata, access-attribute and atomic-rename APIs; consumers should pin a reviewed landed commit of this repository. These tools manage public generation metadata, never accounts.

Tool Purpose Command / entry point Output
Go checker Validate bytes, protected paths, checkpoints; emit per-UID view go build -o .temp/gen-journal ./tools/cmd/gen-journal; .temp/gen-journal bytes vectors/gen-journal/active.jsonl 0 "$ZERO_HASH" Binary in .temp/; view on stdout or typed refusal on stderr
Go narrow tests Vectors, negative control, manual runbook, Linux lock ordering go test ./tools/... Test verdicts on stdout
Go vector runner Stable vectors and corrupt-link plant `go test ./tools/genjournal -run ’^(TestVectors TestBrokenChainPlant)$’ -count=1`
Go consumer fixture seam Real journal primitives with a fixture owner/anchor, test builds only go test -tags=genjournal_testseam ./tools/genjournal -run '^TestTestSeam' -count=1 Named verdicts; unprivileged files and real flock in Go temporary directories
Go build metadata Audit production build tags on the exact consumer binary go version -m /absolute/path/to/consumer Build settings on stdout; retain with the binary hash in qualification evidence
POSIX sh, coreutils, util-linux flock Reviewed manual writer and genesis/reconciliation sh tools/manual-journal.sh /protected/libexec/gen-journal init "$DIR"; append/reconcile arguments in the runbook Root-owned generation directory; per-UID diagnostic view

ZERO_HASH is exactly 64 zeroes and is only an explicitly approved initial checkpoint. Production consumers must preserve their durable high-water and external restore fence as specified; an offline success does not authorize admission. Vectors document the stable layout.

The genjournal.WithEvidence library entry point supplies one locked view for a multi-pair release. Its callback must check every pair with View.Active, persist the durable floor, commit and hand off its bounded response within ReaderHold. It checks expiry before and after the callback; it cannot undo callback effects. WithActive adds the single-pair check; Checkpoint never admits a release.

Consumer tests may build with -tags=genjournal_testseam and call genjournal.NewTestHandle(ownerUID, anchor). Its WithEvidence, WithActive, Checkpoint, Append and Inspect methods use the real primitives with that isolated fixture policy; package-level production functions still require root. Create the fixture directory mode 0755 and its gate.lock, data.lock and journal regular files mode 0644 under a protected absolute anchor. The constructor does not initialize files. Neither NewTestHandle nor TestHandle exists in a default build.

For slower tests, including consumers running under the race detector, use genjournal.NewTestHandle(ownerUID, anchor, genjournal.WithReaderHold(5*time.Second)). The option changes only that handle’s reader window, measured by the real clock from shared data-lock acquisition. The two-argument call still uses the 250 ms ReaderHold. Positive options use the last duration; any nonpositive duration or nil option makes every handle method return the typed journal_reader_hold refusal before hooks, callbacks or filesystem effects, even if followed by a positive option. WithReaderHold and TestOption are also absent without the test tag. Default builds always use the protocol constant; there is no runtime duration override. Writer fence budgets remain unchanged, and a longer fixture window does not qualify production timing or relax the commit deadline contract. Run the focused controls with go test -tags=genjournal_testseam ./tools/genjournal -run '^TestTestSeamReaderHold' -count=1; verdicts go to stdout and fixtures use Go temporary directories.

For a deterministic pending-marker race test, anchor the handle directly at the journal directory and call WithEvidenceAtBoundary(ctx, floor, afterFirstCheck, commit). This tagged-only method has no path argument. Its hook runs after the first pending-marker check and before shared gate acquisition, so it can publish writer.pending and exercise the post-lock recheck. A nil/no-op hook preserves the normal evidence window and callback deadline contract.

Never enable genjournal_testseam in production. Build with the normal production tags, check GOFLAGS as well as explicit -tags, then run go version -m on the exact resulting binary. Its build -tags=... setting, if present, must exclude genjournal_testseam; default builds normally omit that setting. Missing or unreadable Go build metadata leaves this audit unverified. Keep the output and binary SHA-256 with trusted build evidence; metadata alone does not establish binary provenance. This test tag is not a runtime owner override.

The normal journal writer enforces one 1000 ms fence budget with a 1 MiB journal ceiling and a lifecycle retirement reserve (529 bytes per creating/active generation, 264 per retiring generation). A fresh host conservatively budgets 992 simultaneously active station accounts; retained history reduces that budget. Reserve deficits close admission and reconciliation until qualified migration. Marker retry/stale advice never permits admission or automatic clearing. For one maximum-size local-storage qualification run: GEN_JOURNAL_MEASURE=1 go test ./tools/genjournal -run '^TestMaximumFenceDuration$' -count=1 -v.

Station core

The Go station-account core implements closed user.create, user.retire and user.bump requests, caller-scoped durable effects and a journal-derived ledger. Its backend contract and recovery/qualification limits are in the core documentation. The entrypoint supplies the production Linux environment. The boot diagnosis and refusal-code contract includes a live nonroot preflight and the required openat2-compatible sandbox. Its root maintenance modes implement initial qualification and per-boot renewal; the reader requires a protected current record, unchanged inputs, the policy pin and the matching successful latest systemd invocation. A policy flag alone never admits. The r2 exact-build installation and unit pass is recorded; current or changed deployments still require matching evidence.

The P8 identity projection contract implements operator-only service create/show/retire and the separate protected swarma-managed-identities/1 projection at <root>/lib/user-manager/identities.json, with shared compatibility fixtures. Services never become launch targets. Broker adoption, specification acceptance, installation and native qualification remain separate gates.

The core refuses production bump with bump_key_admission_unconfirmed before its journal or backend access until the Keymaker provision/confirm contract is accepted. The joint PC2 activation-order draft recommends a local transaction fence through durable activation; its Keymaker commitments and cross-process qualification remain pending. A provision/confirm observation alone cannot enable bump. Host qualification never authorizes account ownership or cleanup.

The PC2 manager contracts specify protected native package-fence publication, the complete manager capacity census and once-only slot conversion, journal-owned append lifetime, root recovery and direct release consumption. They preserve C0/floor authority as an independent owner input and map the key service’s four prerequisites to our publications. These are specifications only; the owned publication gates and runtime integration/native qualification remain open.

The prepared append lifetime library now owns gate/data/authority-fence acquisition, single-use consumption ordering, durable append proof and checked reverse cleanup. It ships without an accepting manager preparer or production wiring; activation remains closed.

The PC2 manager state codec contract defines the pure internal/pc2state representations and immutable A2/hold identity checks. The adjacent internal/pc2store supplies fixture-funded protected file/index mechanics, lineage-specific immutable copies and exact-head publication/recovery. The private manager census prepares five exact class encodings from bounded retained snapshots and whole native files in test fixtures. Its immutable evidence is not a grant. Production opening, census preparation, committed credit and admission remain disabled pending the publication/currentness producer and native qualification described in the state contract.

The account-directory contract selects files and bounded systemd. The implementation compares protected local databases with independent NSS observations for files. The direct userdb collector admits files systemd only after the reviewed closure matches, each recorded allocator completes all three Varlink calls, records fit its ranges, and NSS agrees. Unknown metadata or provider completion refuses admission. Aggregate NSS alone cannot prove completion. The boot unit and consumer drop-in are repository artifacts; r2 exercised installation and unit qualification for its exact kit. That result does not qualify another build or deployment. The owner procedure describes protected deployment inputs and the stopped-admission pin/restart flow.

Tool Purpose Command Output
P8 identity compatibility Closed projection, decision-rule matrix, adjacent single-rule controls, exact UID-only consumer operations, journal-pair/UID binding, lifecycle shapes and custody GOMAXPROCS=2 go test ./internal/identities ./internal/manager ./internal/linuxbackend ./internal/linuxos ./internal/launch -run 'TestShared|TestIdentityTransition|TestService|TestProjection' -count=1; (cd testdata/identities-v1 && sha256sum -c SHA256SUMS) Named verdicts, shared fixture bytes and Go-owned temporary roots; retain logs in .temp/
P8 guard plants and syscall witness Named overlay-removal assertions and atomic write/fsync/rename order with EIO controls GOMAXPROCS=2 go test -v ./internal/manager -run '^TestIdentityProjectionPlants$' -count=1; GOMAXPROCS=2 go test -v ./internal/manager -run '^TestProjectionAtomicSyscallTrace$' -count=1 (Linux strace required) Named green controls and actual exit-1 mutant assertions; task-owned trace files under Go temporary roots and console logs in .temp/; no host provisioning
P8 shared-only coverage gate and generated matrix Require 100% statements and both if outcomes in the five named decoder/validator/lookup functions, using only manifest rows; Linux Read adds custody rows with two explicitly declared syscall-error exclusions and actual coverage reporting; reject undeclared uncovered lines and documentation drift GOMAXPROCS=2 go test -v ./internal/identities -run '^TestSharedFixtureCoverageGate$' -count=1; regenerate with go test ./internal/identities -run '^TestSharedFixtureMatrixDocument$' -args -update-identity-fixture-matrix Isolated temporary instrumented checkout, named function/line coverage output; generated docs/identity-fixture-matrix.md binds cases and fixture digests; retain command logs in .temp/
Qualification maintenance (owner root shell) Produce a candidate inputs digest, then renew through the unit /opt/swarma/libexec/swarma-user-manager qualify; systemctl restart swarma-user-manager-qualify.service Initial digest and protected record; r2 initial/unit pass is build-bound, not admission
Boot environment preflight (nonroot) Exercise protected systemctl, own-unit and cgroup checks under the unit sandbox Candidate binary qualify-preflight inside the fixed user oneshot Stable success/refusal lines; no policy, record or root mutation
Loader closure checks Absolute requester-only RUNPATH, exact ordered lookup evidence, earlier-name/link drift, member metadata and streaming byte bounds go test -race -p 1 ./internal/linuxos -run '^TestLoader' -count=1; go test -race -p 1 ./internal/linuxbackend -run '^TestQualification(LoaderEvidence|LoaderCache|DeploymentSchema|LoaderSchema)$' -count=1 Named verdicts; owned temporary ELF fixtures and test-only overlay; no provider RPC or host writes
Native loader review regressions Symlink parent-step and cross-file SONAME alias refusals, with admitted controls and local/full drift checks go test -race -p 1 ./internal/linuxbackend -run '^TestReviewLoader(SymlinkDotDot|SONAMEReuse)$' -count=1 Named verdicts; temporary ELF objects and empty-environment native loader differential; no host writes
Provider configuration pins Typed file/absent/directory capabilities, full and local rechecks of appearing drop-ins go test -race -p 1 ./internal/linuxos ./internal/linuxbackend -run '^TestQualification(ProviderConfiguration|SystemdConfigurationPins)$' -count=1 Named verdicts; owned fixtures and production wrapper overlay; no local guard RPC
Live service-root checks Clean session/generator/unit changes, launcher reference refusals, protected absence and path-only schema go test -race -p 1 ./internal/linuxos ./internal/linuxbackend -run '^TestQualificationServiceRoot' -count=1 Named verdicts; owned temporary fixtures; no live qualification
Distribution shadow and spool state checks Protected shadow/gshadow metadata, primary and explicit read-group membership, locked group credentials, drift, explicit present/absent cron/at schema and live inventory rechecks go test -race -p 1 ./internal/linuxos ./internal/linuxbackend -run '^TestQualification(Shadow|Spool)' -count=1 Named verdicts in owned fixtures; metadata/root-group mapping is test-only; no host shadow reads or writes
Qualification contract tests Closed codec, issuer/unit binding, protected publication, deployment schema and production files+systemd admission/refusal go test -p 1 ./internal/qualification ./internal/linuxos ./internal/linuxbackend ./internal/manager ./cmd/swarma-user-manager -run '^TestQualification' -count=1 Named verdicts; isolated Go fixtures; no live qualification
Systemd guard regressions Retained reviewer namespace drift cases, successful full-capture binding and local checks without socket connections go test -race -p 1 ./internal/linuxbackend -run 'Systemd' -count=1; go test -p 1 ./internal/linuxos -run '^TestSystemdNamespace' -count=1 Named verdicts; owned temporary roots/sockets; test-only overlays; no live qualification
Qualification ownership regressions Real filesystem publication, foreign replacement and issuer collision preservation go test -race -p 1 ./internal/linuxos ./internal/qualification -run '^TestReviewQualification' -count=1 Named verdicts; isolated temporary fixtures; issuer test uses a test-only Go overlay for unprivileged directory ownership
Station core build Build the bounded one-request entrypoint go build -o .temp/swarma-user-manager ./cmd/swarma-user-manager Binary in .temp/; closed result JSON on stdout
First-run launcher build Build the root one-shot launcher go build -o .temp/swarma-user-launcher ./cmd/swarma-user-launcher Binary in .temp/; closed refusal JSON on stdout, nothing on success
Launch/stop tests Closed intake, start gate, ledgers, R-OBS mapping, D5a absence proof with its saved-UID plant, stop loop, launcher pipeline and exec.stop go test -p 1 ./internal/launch ./cmd/swarma-user-launcher -count=1; add -race for race checks Named verdicts; owned temporary roots and subprocesses; see the launcher note
Gateway launch controls Closed protected mappings, exact environment and legacy bytes, native seccomp child controls and narrowing source plants go test ./internal/launch -run '^TestLaunch[MC]' -count=1 -v Named verdicts and owned temporary subprocess/overlay fixtures; capture logs under .temp/
Launch/stop guard plants go test -v -count=1 -timeout=10m ./internal/launch -run '^TestFix4GuardPlantsTurnRed$' Named green controls and exit-1 guard-removal assertions; temporary overlays under Go test scratch; retain console logs in .temp/
Native credential witness On an explicitly authorized disposable root runner: SWARMA_LAUNCH_ROOT_WITNESS=apply go test -v -count=1 ./internal/launch -run '^TestNativeDropExecCredentials$' Eight actual drop/exec reports; skips without both explicit opt-in and root; no account provisioning
NSS collector build (Linux, Go with cgo and C compiler) Build the status-aware read-only NSS ABI helper go build -o .temp/swarma-nss-probe ./cmd/swarma-nss-probe Helper binary in .temp/; bounded sanitized JSON; systemd ABI mode is diagnostic only, never completeness authority; no password hashes
Account-directory tests Exact NSS lines, full agreement, module closure/range drift, direct NSS statuses `go test -p 1 ./internal/linuxos -run ’^(TestDirectory TestSystemd
Systemd closure/unit tests Private userdb roots, exact socket set, manifest/provenance drift, real-module masked-error regression, fail-closed systemd admission and static boot-unit contract go test -p 1 ./internal/linuxos -run '^TestSystemd' -count=1; go test -p 1 ./internal/nssprobe -run '^TestProbe' -count=1 Test-owned temporary roots; no unit installation or host mutation
C compiler (ABI fixtures only) Build isolated NSS-status and ELF dependency fixtures /usr/bin/cc -shared -fPIC -nostdlib -o FIXTURE_SO FIXTURE_C (package tests supply exact paths) Test-owned temporary shared objects
Linux adapter tests Exact lifetime/receipt mappings, split writes, source binding and closed production authority go test -p 1 ./internal/linuxbackend -count=1 Named test verdicts; private seams
Launcher descriptor regressions Controlled inheritance, exact runtime FD classification, occupied FD3 refusal and continued scrubbing across batches go test ./internal/launch -race -count=3; go test ./internal/launch -run '^TestDescriptorPlantsTurnRed$' -count=1 -v Named verdicts and four expected-red plant runs; Go-owned temporary overlays and fixtures; preserve command logs under .temp/
Core/backend tests Fake lifecycle, v2 receipts/flights, authority, operator admission and protected evidence go test -p 1 ./internal/manager -count=1 Named test verdicts; isolated Go temporary fixtures
Prepared journal tests Exact-tail admission and native activation lock guard go test -p 1 ./tools/genjournal -run '^(TestNativeActivationGuard|TestPreparedAppendRequiresExactTail)$' -count=1 Named test verdicts
Prepared append lifetime tests Opaque capability, real lock lifetime, original budget and failure outcomes go test -p 1 ./tools/genjournal -run '^TestAppendPreparedLifetime' -count=1 -timeout=90s; go test -race -p 1 ./tools/genjournal -run '^TestAppendPreparedLifetime(Capability|OrderAndUnwind|ReleaseFailure|Cancellation)$' -count=1 -timeout=90s Named verdicts; isolated Go temporary files and exact-PID child fixtures; no manager authority or root qualification
Shared-host serialization Run heavy suites serially on shared hosts env GORACE=atexit_sleep_ms=0 GOMAXPROCS=2 go test -p 1 ./internal/manager -count=1 Task-local untracked logs

Linux station tools

The standalone Linux package implements station mechanisms; its caller still owns journal authority, fences and activation. Receipt primitives add exact reserved-identity restoration, deterministic owned stages, descriptor observations, owned quarantine and local policy/persistence checks. Their trusted-input boundaries, build-bound r1 evidence and remaining provider qualification are documented in the package README; observations never establish provenance.

Ubuntu deployments of the Linux qualification profile require the auditd package from the standard Ubuntu repository, protected auditctl and ausearch tools, and a working Linux Audit daemon with auditing enabled. The operator provisions these dependencies; the user-manager daemon does not install packages, start/configure the audit daemon, or load its own rules. Package installation alone does not qualify a host; see the D1 audit and qualification limits.

Tool Purpose Command / entry point Output
Go Compile Linux primitives go build ./internal/linuxos Compiler verdict
Go, Python 3, existing sudo peer access Narrow positive/negative primitive and disposable peer fixtures GOMAXPROCS=2 go test -p 1 ./internal/linuxos -count=1 -v -timeout=45s Named test results; temporary fixtures cleaned by exact path/PID
Shell/Python 3 Owner-run opt-in root qualification; r1 pass recorded /usr/bin/env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin /usr/bin/dash /abs/path/root-qualification.sh apply ABS_TEST_BINARY APPROVED_SHA; verify; rollback Guarded disposable fixture; exact-build evidence and prerequisites in the package README
D1 socket profile tests Exact seccomp triple, reduced-capability kernel dump, Q binding and deploy artifact checks `go test -p 1 ./internal/linuxos ./internal/linuxbackend ./internal/qualification -run ’^(TestD1 TestQualificationNetworkDenial
Root audit configuration Owner-selected root installer installs the executable-bound rule install -o root -g root -m 0600 deploy/audit/swarma-qualify-sock-diag.rules /etc/audit/rules.d/swarma-qualify-sock-diag.rules; load through the approved audit configuration procedure; auditctl -l and ausearch -k swarma-qualify-sock-diag verify rule/events Protected root configuration and audit events; the daemon never installs or changes it; loading and event delivery remain PENDING native qualification
C compiler Native loader-entry regression fixture /usr/bin/cc -shared -fPIC -o PLANT_SO PLANT_C (package test invokes it) Temporary test-owned shared object and sentinel

The root qualification command above is its only supported entry, from the owner’s trusted root shell. Keep the clean-launch prefix for verify and rollback; see the package README for the launcher trust boundary, historical r1 pass and remaining privileged qualification scope. The root test still skips without the owner’s explicit setup; the open-inode/namespace qualification test remains a PENDING skip.

The A3 evidence implementation documents the protected transaction recorder, archive-chain verifier, fixed hook forms and separate formats. State-based reconciliation checks a clean locked dpkg endpoint against the last accepted database snapshot and authentic payloads. Native root/time qualification, accepted-frontier publication and other listed deployment gates remain open; automatic pinning and deployment remain closed. The document includes exact narrow test/tool commands and fixture/artifact locations.

The A3c qualification-maintenance journal specifies qual-maint/1, write-ahead binding and crash/recovery requirements. The A3d-1 local journal layer implements closed entry/wrapper codecs, whole-chain integrity/phase replay and a protected Linux store. Its coverage map separates local test results from PENDING authentication, orchestration, admission/boot and root qualification. The curator decided Q1’s exclusion/call boundary on 2026-10-25; per-operation review and Q2–Q5 remain required. Canonical examples round-trip byte for byte; their absent objects still refuse reference verification. No automatic pinning or admission is activated.

The A3d-2 retained sessions and refusing preflight add native F/B ownership across reconciliation and a Writer-owned D session sharing the existing checked store operations. The coordinator refuses before mutation while authoritative input contracts remain unpublished. Its five-step description is review metadata; candidate installation, qualification, pinning, accepted-outcome execution and deployment qualification remain PENDING. The document maps all 38 spec obligations and the current sixteen narrowing mutants.

The A3e executor contracts specify our semantic state/frontier derivation, exact publication and two-field pin transition, composed lease/call rules and closed consumer validators. They list the external owners’ required baseline, fencing, time, interlock/P7 and receipt publications. This is a specification; the executor and its authority/deployment gates remain PENDING, with no accepting adapter or activation implied.

The qualified-time mapping pins the published provider receipt/API, executor-derived scope digest and provider-held consumed-time continuity. Production witness selection, authenticated one-shot handoff and installed collector qualification remain open; structural receipt decoding and test-only fixtures supply no authority.

The executor window design defines the Linux pre-pin and mandatory pending macOS profiles, a single suspend-aware read after journal-use admission and outside the pure verifier, and the durable act/use deadline. Provider handoff requirements and the inactive OriginalReader interface are published; accepting implementations remain pending. Proposed qual-maint/2 burn/completion records provide at-most-once authorization; current codecs remain unchanged. Timing enforcement, custody and native parity qualification remain closed gates.

The maintenance target amendment selects a dedicated unit with no consumer lifecycle effects, preserves ordinary boot ordering, and requires retained subtree/delegated-job fencing. Its owned open publications include decoder descendants, blocking output/journal transport, GetAll graphs, RPC/job completion and Q4 userdb provider compatibility. No runtime unit or identity helper is changed by this specification.

A3 evidence tools

Tool Purpose / exact entry point Output
Git / Python 3 (specification review) git diff --check; git verify-commit <sha>; python3 <task-local-checker.py> as described in the A3e documentation checks Whitespace/signature and local link/contract-fixture logs in task-local untracked scratch; document controls prove no runtime qualification
util-linux setpriv / env (owner qualification) /usr/bin/setpriv --bounding-set=-net_admin --inh-caps=-all --ambient-caps=-all -- /usr/bin/env -i /opt/swarma/libexec/swarma-user-manager qualify inside the reviewed owner procedure Fresh protected initial Q and inputs digest; owner root execution required; documentation checks do not run it
Pinned registrar CCJ-1 / coreutils Validate example bytes with ccj.Parse / ccj.Marshal from the go.mod pin; sha256sum vectors/qual-maint/*.jsonl; wc -c vectors/qual-maint/*.jsonl Canonical-byte verdict, SHA-256 and byte counts including LF; expected identities in the vector README; framing only; semantic journal/host qualification is separate
Go (serialized on shared hosts) env GOMAXPROCS=2 go test -p 1 ./internal/updateproof ./cmd/swarma-user-manager -count=1 Narrow verdicts and owned fixtures; task-local untracked logs
Go journal layer env GOMAXPROCS=2 go test -p 1 ./internal/qualmaint -count=1 -timeout=60s; env GOMAXPROCS=2 go build -p 1 ./internal/qualmaint Local codec/replay/store verdicts and Go-owned temporary fault fixtures; task-local untracked logs/coverage; no root qualification
Linux Go CI Pull requests and pushes to main; hosted Ubuntu 26.04, pinned Go 1.26.10. Reproduce with go mod verify, go build ./..., go vet ./..., bash -e -c 'out="$(gofmt -l .)"; if test -n "$out"; then printf "%s\n" "$out"; fi; test -z "$out"' (fails on formatter errors or listed paths), then env -u LINUXOS_ROOT_QUALIFICATION SWARMA_TEST_UNPRIVILEGED=1 CGO_ENABLED=1 GOMAXPROCS=2 go test -v -p 1 -count=1 -timeout=20m ./... GitHub step logs or task-local untracked logs; Go-owned temporary fixtures; peerUID gates peer-account fixtures before lookup; each runtime skip and reason is visible
Go retained sessions / refusing coordinator env -u LINUXOS_ROOT_QUALIFICATION CGO_ENABLED=1 GORACE=atexit_sleep_ms=0 GOMAXPROCS=2 go test -p 1 ./internal/updateproof ./internal/qualmaint ./internal/qualreconcile -count=1 -timeout=90s; race/build variants in the narrow checks Owned native-lock, child, error-cut and preflight verdicts; task-local untracked logs/overlays; no integration qualification
dpkg Native held pinned descriptor with fixed --audit; owned lock/audit fixture: go test ./internal/updateproof -run '^TestReconcileOwnedDpkgAuditExclusion$' -count=1 Clean means exit zero and empty stdout/stderr; fixture uses only an owned empty database
systemctl Native held pinned descriptor with fixed --no-block start swarma-user-manager-update-reconcile.service Bounded enqueue acknowledgement; root deployment remains pending
systemd-analyze systemd-analyze verify --man=no --generators=no deploy/systemd/swarma-user-manager-update-reconcile.service deploy/systemd/swarma-user-manager-update-reconcile.path Unit parser diagnostics; uninstalled executable paths require owned copies pointing to a built fixture binary

The evidence tool contract also documents the synthetic gpg/gpgconf signer, pinned gpgv and dpkg-deb entry points and their retained artifacts. TestReviewNativeXZDecoder uses /usr/bin/xz --compress --stdout only to create its owned package fixture.

The Linux workflow has read-only repository permissions and no privileged setup or credentials retained by checkout. Its header marks the repository-specific runner/bootstrap and loader diagnostics, Go version, test flags/packages, qualification variable and peer-account gate for reuse as a public module template. The four reviewer fixtures previously found by the formatting gate now have formatting-only changes.

The workflow sets SWARMA_TEST_UNPRIVILEGED: '1' only in the test step’s environment. With exactly that value, peerUID skips before looking up a peer account, with the reason “needs the platform-test peer accounts; runs in review on a prepared host”. All seven current peer-account fixtures call this helper before any peer command. Verbose test output reports each skipped test and its reason; no global test-name filter can suppress an unrelated test in another package or build variant. Unset or any other value keeps the existing lookup and distinctness checks, including failure when a peer account is missing. Review runs without the variable on a prepared host with the distinct platform-test-a and platform-test-b identities and sudo-to-peer Python access described in the primitive tools contract. Root qualification remains opt-in and is explicitly unset by the CI command; native root/open-inode/namespace qualification remains outside this check. The workflow selects ubuntu-26.04 for the bootstrap’s pinned /usr/bin/python3.14; Ubuntu 24.04 lacks that required layout and refuses by design. Local results do not establish success or platform qualification on the hosted runner. A new peer-account path outside peerUID runs in CI and fails without the prepared accounts, intentionally. The gate does not analyse or intercept arbitrary sudo calls; prepared-host review remains necessary. Test budgets are unchanged.

The optional race build exceeded the 20-minute test target and tripped existing journal deadline assertions (no data race reported); tracked separately.

Slot demo tools

The observational real-host T19 runbook builds the shared probe/harness with go test -c -o ABS ./cmd/swarma-slotd-demo/internal/slotd. Its slotd-t19-realhost entry drives only the installed v1 r4 daemon and writes operator-protected JSON and restoration evidence. Exact flags, admission, stand-in/live-wallet scope and output paths are in that runbook; it does not execute the hosted root gate on a station.

The demo’s typed station payload profile documents the fixed read-only busctl D-Bus argv checks, protected per-UID static staging and its pending source/runtime qualification. Its producer logs belong under .temp/slotd-dk5b/; this is separate from the station core and wire helper.

PC2 specification tools

For the pure manager codecs, run go test ./internal/pc2state and go vet ./internal/pc2state. The tests use committed public fixtures and report to the terminal; task-local validation logs stay outside the tracked tree. For retained storage, run go test -p 1 ./internal/pc2store, go test -race -p 1 ./internal/pc2store and go vet ./internal/pc2store. These use unprivileged real-file fixtures; process-death tests are not power-loss proof. For the private census regressions, run go test -p 1 ./internal/manager -run '^TestManager(Census|Native|PendingOwner|AuthorityHoldVeto|SlotCredit|PreparedCensus)'; add -race for race checks. The pure native byte adapters use go test ./tools/genjournal -run '^TestCensusNativeByteValidators$'. Validate compilation and static checks with go vet ./internal/manager ./internal/pc2store ./tools/genjournal. Output is named test results and owned temporary fixtures; Linux amd64 close-error controls trace only their own children. Resource-limited hosts must use their configured test scheduling wrapper for these commands. The retained review regressions run with go test -p 1 ./internal/manager -run '^TestReviewQ2S3'; their fixtures cover specific evidence provenance, omitted authority holds, captured inode identities, staged effects successors and the exact prospective head bound. These checks also support -race.

Tool Purpose / exact entry point Output
Git git diff --check; git verify-commit <sha>; read-only clone of the pinned public G4 source Bounded diff/signature evidence and reference files in task-local untracked scratch
Python 3 python3 <task-local-doc-checker.py> per PC2 document checks Link/contract-coverage and malformed-document control logs; no native/runtime proof
GitHub CLI gh pr view 35 --repo relux-works/swarma-keymaker Original public prerequisite text in task-local untracked scratch; no repository publication

PC2 fixture recovery tools

Recovery state/storage and direct release-barrier mechanics are fixture-only. Production recovery/release preparation and the normal-finish adapter refuse; these APIs supply neither coordinator/custody authority nor new credit. See fixture recovery mechanics.

Run focused checks with Go 1.26.10:

go test -p 1 -count=1 -timeout=600s ./internal/manager ./internal/pc2store ./internal/pc2state -run '^(TestManager(Recovery|NormalReleaseWindow)|TestPC2(Recovery|StoreCloseDiscipline))'
go test -race -p 1 -count=1 -timeout=600s ./internal/manager ./internal/pc2store ./internal/pc2state -run '^(TestManager(Recovery|NormalReleaseWindow)|TestPC2(Recovery|StoreCloseDiscipline))'
go vet ./internal/manager ./internal/pc2store ./internal/pc2state

Linux/amd64 syscall probes use only owned child PIDs and real file operations. They require parent-child ptrace access; absence is an unverified check, never a passing qualification. Traces and child logs use task-local temporary directories under TMPDIR. Shared hosts should serialize heavy test runs, including Go tests/builds, race, syscall probes and mutants. No CLI is installed by these fixtures, and no repository-wide test run is required for this scope.

Explicit creation modes

New retained objects receive their contract modes explicitly on the created descriptor, independently of the process umask. The entrypoint’s restrictive umask remains defense in depth. Existing retained objects are still checked, never silently repaired: PC2 uses 0750/0640, private stores use 0700/0600, generation storage uses 0755/0644, and home contents retain their manifest modes.

Tool Purpose / exact entry point Output
Go race detector GOFLAGS=-p=2 go test -race -count=1 ./internal/manager ./internal/pc2store ./internal/launch ./internal/linuxos ./internal/qualmaint ./internal/updateproof ./tools/genjournal -run 'CreationModes$' Named subprocess controls under umask 0022, 0077 and 0002; additional 0277 controls for private provisioning, maintenance objects, recorder events, owned stages and qualification records, after fixture preparation; exact metadata and refusal assertions; owned temporary fixtures
Go full-suite controls (umask 0022; GOMAXPROCS=2 GOFLAGS=-p=2 go test -race -count=1 -timeout=45m ./...); repeat with umask 0077 Package verdicts; retain logs in task-local .temp/

Use an isolated test environment with absolute HOME, caches, TMPDIR and GOTMPDIR. The package watchdog accommodates the long suite. Production and dedicated deadline-test budgets are unchanged; the retained-history coverage fixture opts into existing integration-fixture headroom. Close-syscall probes set both child temporary-directory variables to their owned trace prefix. Only the runbook checker and lifetime re-exec children disable the race runtime’s exit sleep, preserving the real writer deadline and race checks.

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.