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>andztd eval rollout resume <name>accept--data-operators, which pins every campaign's harness roster the wayztd eval runs start --data-operatorsdoes. An Operator deployed byfleet-deploy-then-usein one campaign no longer joins a later campaign's roster. The flag is rejected without a rollout name.- The built-in
devops-fleetsuite is1.5.0. Onlyfleet-deploy-then-usechanges, to scenario version1.2.0, with a single-targetoperator_deploydeclaration, a 30 minute wall-clock budget, andinventory/pending.yamltargetinglocalhostso the suite runs on a single host without requiring a separate SSH machine. Campaigns frozen ondevops-fleet@1.3.0or1.4.0keep their frozen suite; new campaigns must be created to rundevops-fleet@1.5.0. fanout.Runininternal/pkg/fanoutis the one bounded pool forztd operator run,ztd operator stop, the evaluation harness fan-out, andoperatordeploy.DeployOperatorBatch. Theinternal/cli/operatorFanOuthelper is removed.CampaignAgentExecutoris constructed from oneCampaignAgentExecutorDepsstruct, which requires aLogger.WithLiveEventsandWithDeployJoinerFactoryare removed from the executor.config.OperatorDeployConfigis removed. Governed deploy settings come from the runtime's own config and thedatacapability. The test-onlyoperatordeploy.LocalTargetsseam replaces it.embedded-operatorcan be a Data Operator in a fleet run that deploys. The Gateway'sPLATFORM_ENROLLMENT_*receipts for eachoperator_deploylaunch are fetched fromGET /api/v1/auth/platform-enrollments/receipts, sealed in the trace asdeploy_enrollments, and claimed on that member's ledger bracket.OperatorDeployResultcarries each launched worker's CSR fingerprints. Aztd evalrun approves a deployed Operator's enrollment with the authenticated owner CLI identity only when the pending request's fingerprints match. Underratifyandnotaryit prints the L3 approval instructions and waits.eval/formation-catalog-overlay.jsonis populated with the formation catalog overlay entries.- Go dependency
github.com/gorilla/websocketis updated fromv1.5.3tov1.5.4-0.20240701034025-d67f41855da4(go.mod,vendor/,THIRD_PARTY_NOTICES.md).
Fixed
gw setupandgw startreject a--public-spectator-detail-release-seriesvalue below 1 withErrPublicFeedDetailWindowConfig. 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_serieschanges. 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_deploycall whosetarget_operatorsresolve to more than one roster member withErrHarnessTargetSingle, 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 thatztd operator deploy --localuses. - The governed
OPERATOR_DEPLOYresult 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 asinternal_error. - A fleet scenario runs on the first
fleet_min_operatorsmembers of its run's harness roster, the positions its fixtures and gold name. Before, it ran on the whole roster, sofleet-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, andztd operator deploy --hosts, with typed sentinels for empty, whitespace, null-byte, dangerous-character, and duplicate hostnames. ssh.BuildAuthMethodskeeps SSH agent signing usable acrossDialSSHby 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_DEPLOYpasses--accept-unrecoverablewhen starting detached Operators without a terminal, and resolves a non-loopback Gateway endpoint (PublicBaseURLhost ornetwork.GetExternalInterfaceIP()) for remote target hosts instead of forwardinglocalhost. ssh.ResolveHostmerges matching~/.ssh/configblocks (includingHost *defaults) in declaration order without corrupting=inside values such asProxyCommand, andDefaultRemoteDeployClientFactoryfalls back to the current OS user when SSH config omitsUser.GET /api/v1/auth/platform-enrollments/receiptsreads its time window throughidx_events_event_receipt_timestamp. Before, it walked everyembedded-operatorreceipt 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
timeoutonly 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 atimeouttrace. - 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-agentkeystore probesztd-ssh-agent.sockunderXDG_RUNTIME_DIR(falling back to~/.ssh/ztd-ssh-agent.sock) whenSSH_AUTH_SOCKis unset, so non-login SSH commands on hosts configured byscripts/linux-setup.shcan open their seal. github.com/gorilla/websocketis updated to resolveGO-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.