Fleet Harness Hardening, Governed Deploy Enrollment, and Public Mirror Detail Window

Overview

This release corrects two edges of the public mirror detail window introduced in v1.11.0. A detail window of 0 is rejected when the Gateway starts, instead of silently becoming the default. Run bundles of a release series that leaves the window are removed from the public bucket as soon as the window moves. The fleet harness and governed Operator deploy are hardened before the devops-fleet live acceptance: the harness treats operator_deploy as single-target, and governed localhost deploys stage under the runtime's .ztd/operators/ directory.

A fleet deploy campaign can use embedded-operator as a Data Operator, verifying worker CSR fingerprints in OperatorDeployResult and sealing deploy_enrollments in the trace. Named rollouts accept --data-operators to pin every step's harness roster, devops-fleet advances to 1.5.0 with fleet-deploy-then-use@1.2.0 targeting localhost, and github.com/gorilla/websocket is updated to fix GO-2026-6278.

Changed

  • ztd eval rollout run <name> and ztd eval rollout resume <name> accept --data-operators, which pins every campaign's harness roster the way ztd eval runs start --data-operators does. An Operator deployed by fleet-deploy-then-use in one campaign no longer joins a later campaign's roster. The flag is rejected without a rollout name.
  • The built-in devops-fleet suite is 1.5.0. Only fleet-deploy-then-use changes, to scenario version 1.2.0, with a single-target operator_deploy declaration, a 30 minute wall-clock budget, and inventory/pending.yaml targeting localhost so the suite runs on a single host without requiring a separate SSH machine. Campaigns frozen on devops-fleet@1.3.0 or 1.4.0 keep their frozen suite; new campaigns must be created to run devops-fleet@1.5.0.
  • fanout.Run in internal/pkg/fanout is the one bounded pool for ztd operator run, ztd operator stop, the evaluation harness fan-out, and operatordeploy.DeployOperatorBatch. The internal/cli/operator FanOut helper is removed.
  • CampaignAgentExecutor is constructed from one CampaignAgentExecutorDeps struct, which requires a Logger. WithLiveEvents and WithDeployJoinerFactory are removed from the executor.
  • config.OperatorDeployConfig is removed. Governed deploy settings come from the runtime's own config and the data capability. The test-only operatordeploy.LocalTargets seam replaces it.
  • embedded-operator can be a Data Operator in a fleet run that deploys. The Gateway's PLATFORM_ENROLLMENT_* receipts for each operator_deploy launch are fetched from GET /api/v1/auth/platform-enrollments/receipts, sealed in the trace as deploy_enrollments, and claimed on that member's ledger bracket.
  • OperatorDeployResult carries each launched worker's CSR fingerprints. A ztd eval run approves a deployed Operator's enrollment with the authenticated owner CLI identity only when the pending request's fingerprints match. Under ratify and notary it prints the L3 approval instructions and waits.
  • eval/formation-catalog-overlay.json is populated with the formation catalog overlay entries.
  • Go dependency github.com/gorilla/websocket is updated from v1.5.3 to v1.5.4-0.20240701034025-d67f41855da4 (go.mod, vendor/, THIRD_PARTY_NOTICES.md).

Fixed

  • gw setup and gw start reject a --public-spectator-detail-release-series value below 1 with ErrPublicFeedDetailWindowConfig. A value of 0 was accepted and silently replaced by the default of 2. Launch profiles written before the flag existed still start with the default.
  • The public bucket publisher deletes and purges the run bundles of a release series that leaves the detail window at the next pointer write, and purges the pointer as it does for a withdrawal. The publisher re-reads the artifact catalog whenever the read model's detail_release_series changes. Before, those bundles stayed in the bucket until the proof root next changed or the Gateway restarted, because a newer series entering the window does not change the proof root.
  • The evaluation harness rejects an operator_deploy call whose target_operators resolve to more than one roster member with ErrHarnessTargetSingle, before any dispatch. The verifier accepts a target-resolution failure only in that exact shape.
  • Governed localhost deploys (local, localhost, 127.0.0.1) stage under the executing runtime's .ztd/operators/<deployment ID> instead of the home directory, sharing the directory that ztd operator deploy --local uses.
  • The governed OPERATOR_DEPLOY result deadline scales with the hostname count (operatordeploy.DeployDeadline), so a multi-host deploy is no longer reported as a timeout while it still runs.
  • Each host in a governed deploy receives its own launch ID aligned with its host position, and a misaligned launch fails closed before any host is reached.
  • A run or rollout step that cannot resolve its Operators (an inactive pinned Data Operator, no Inference Operator, or a roster smaller than the catalog needs) records the failure class target_unavailable. It was recorded as internal_error.
  • A fleet scenario runs on the first fleet_min_operators members of its run's harness roster, the positions its fixtures and gold name. Before, it ran on the whole roster, so fleet-deploy-then-use (two members plus one deploy) in a run pinned to three Data Operators started on three, and the deployed Operator joined at [4] while the gold checked [3]. A scenario that declares no fleet still runs on the whole roster.
  • A joined roster member takes its working directory, hostname, OS, and architecture only from its active-fleet heartbeat, never from the deploy result or the hostname the model sent. The joiner waits for the Operator's first heartbeat after readiness before it joins the member.
  • One hostname validator, operatordeploy.ValidateHostnames, serves the MCP ingress, L5 re-validation, and ztd operator deploy --hosts, with typed sentinels for empty, whitespace, null-byte, dangerous-character, and duplicate hostnames.
  • ssh.BuildAuthMethods keeps SSH agent signing usable across DialSSH by opening the agent socket per sign operation rather than closing it before handshake, and skips passphrase-protected identity files when loaded SSH agent signers or another usable key are available instead of failing before dialing.
  • Governed OPERATOR_DEPLOY passes --accept-unrecoverable when starting detached Operators without a terminal, and resolves a non-loopback Gateway endpoint (PublicBaseURL host or network.GetExternalInterfaceIP()) for remote target hosts instead of forwarding localhost.
  • ssh.ResolveHost merges matching ~/.ssh/config blocks (including Host * defaults) in declaration order without corrupting = inside values such as ProxyCommand, and DefaultRemoteDeployClientFactory falls back to the current OS user when SSH config omits User.
  • GET /api/v1/auth/platform-enrollments/receipts reads its time window through idx_events_event_receipt_timestamp. Before, it walked every embedded-operator receipt and sorted them, which took longer than the harness's 30 s client timeout on a large events store. A deploy-then-use run then lost its enrollment receipts and failed its ledger bracket.
  • An agent loop ends as timeout only when its scenario budget or the assignment deadline runs out. A deadline error from inside a call, such as a Gateway HTTP client timeout, fails the assignment with its real error. Before, it sealed a timeout trace.
  • A deployment whose enrollment receipts could not be fetched is recorded when the agent loop ends, instead of being dropped from the trace.
  • The Linux ssh-agent keystore probes ztd-ssh-agent.sock under XDG_RUNTIME_DIR (falling back to ~/.ssh/ztd-ssh-agent.sock) when SSH_AUTH_SOCK is unset, so non-login SSH commands on hosts configured by scripts/linux-setup.sh can open their seal.
  • github.com/gorilla/websocket is updated to resolve GO-2026-6278 (cryptographically weak PRNG for WebSocket mask keys).

Compatibility

v1.11.1 is backwards-compatible with v1.11.0 across CLI, wire, and evidence contracts (INV-REL-VER-10). Gateway and Operators can be upgraded independently within the v1.11.x series; fleet runs that verify worker CSR fingerprints in OperatorDeployResult or seal deploy_enrollments with embedded-operator require a Gateway and CLI on v1.11.1.

Protocol and API additions are additive: OperatorDeployedHost.fingerprints (field 9, ztd.common.v1.PlatformEnrollmentFingerprints) in ztd.operator.v1 and GET /api/v1/auth/platform-enrollments/receipts in the Gateway OpenAPI specification (swagger.json and swagger.yaml).

devops-fleet advances to 1.5.0 (fleet-deploy-then-use@1.2.0). Campaigns frozen on devops-fleet@1.3.0 or 1.4.0 keep their frozen suite; create new campaigns to run devops-fleet@1.5.0.

ztd gw setup and ztd gw start reject --public-spectator-detail-release-series values below 1 with ErrPublicFeedDetailWindowConfig (previously 0 silently fell back to 2); launch profiles written before the flag existed still start with the default of 2. ztd eval rollout run and ztd eval rollout resume add --data-operators.

Agent traces remain agent-trace.v14, with additive deploy_enrollments records when operator_deploy runs.