Cross-Platform Host Support and Tooling
Overview
v1.0.6 is a cross-platform host support and tooling reliability release on top of v1.0.5. It delivers robust process management on Windows using Job Objects, interactive OS keystore authorization tolerance on macOS (Darwin), host RAM observation on Darwin, dual-stack network port conflict detection, scenario workspace drive-letter path normalization for Windows, protocol extensions for inference keep-alive and observer pseudonyms, and active preflight R2 credentials probe verification in release tooling.
Highlights
- Windows Host Support — Native Windows Job Objects manage operator and child processes, ensuring reliable process cleanup on exit and robust process isolation in release smoke tests.
- macOS (Darwin) Reliability — Tolerates OS keychain approval prompts with configurable delay windows; implements Darwin host RAM metrics collection and dual-stack port conflict detection.
- Evaluation Hardening — Resolves Windows drive-letter scenario workspace paths and introduces Data Operator working directory preflight validation.
- Protocol Extensions — Extends
OperatorRegistrationwithinference_keep_alive,provenance_operator_id, andprovider_boundary_observer_id. - Release Tooling Hardening — Probes Cloudflare R2 credentials with an active write/read/delete preflight check before builds and rehearses publication.
Added
- Windows Job Object Operator process management — Implemented Windows Job Objects in
internal/cli/cmd/operator/operator_stop_local_windows.goandinternal/services/system/system_utils_windows.goto reliably terminate local operator processes and all spawned child processes on Windows. - Release smoke runner isolation on Windows — Added
internal/cli/cmd/test/release_smoke_process_windows.goto handle process group and Job Object cleanup during headless release smoke runs on Windows. - Windows MCP system info tooling — Added
internal/services/mcp/sys_info_windows.goimplementing Windows-specific host telemetry, memory metrics, and OS version interrogation via system utilities, covered by unit tests ininternal/services/mcp/sys_info_windows_test.go. - macOS OS key store approval tolerance — In
internal/constants/platform.go, addedKeyStoreApprovalNoticeDelay(2s) andKeyStoreApprovalTimeout(5m). Backgroundztd gw startdetects[Keystore] Waiting for approval to read the master key from the OS key storewhen macOS Keychain displays an interactive authorization prompt, continuing to wait rather than failing prematurely. - macOS local operator stop — Added
internal/cli/cmd/operator/operator_stop_local_darwin.goproviding graceful signal dispatch and process group cleanup on macOS. - Darwin host RAM observer — Added
internal/services/inference/provider_observer/host_ram_collector_darwin.gousing Mach/sysctl telemetry to measure host RAM accurately on macOS. - Operator registration protocol extensions — Added fields 17, 18, and 19 to
OperatorRegistrationinprotocol/proto/ztd/operator/v1/operator.proto:inference_keep_alive(--inference-keep-alive),provenance_operator_id(--provenance-operator-id), andprovider_boundary_observer_id(--provider-boundary-observer-id), with generated Go and TypeScript bindings in sync. - R2 credentials preflight probe — Added
checksubcommand toscripts/release-r2.shthat executes an active probe (write, read back, delete) under_preflight/in theztd-releasesbucket on every run, including rehearsals, before building. - Evaluator scenario workspace validation — Added
ValidateOperatorWorkingDirectoryand integrated it intoruns_execute.goto validate Data Operator working directory bindings before dispatching benchmark models.
Changed
- Scenario workspace paths on Windows — Updated
internal/services/evaluation/scenario_workspace.goto handle Windows drive-letter paths (D:/x/y) alongside POSIX paths without path delimiter corruptions. - Network & SSH port selection — Enhanced TCP port conflict probe to check both IPv4 and IPv6 listener bindings, and maintained SSH ProxyCommand process keep-alive across handshakes.
- Release set manifest ordering —
scripts/release-r2.sh uploaduploadsztd-binaries.jsonlast, ensuring that a version appears on/releases/only after the full release artifact set is present in R2. - Makefile test package exclusion — Updated
TEST_EXCLUDE_PKGSinMakefileto includeztd/test, preventing recursive test execution loops. - Line ending governance —
.gitattributesnow enforces* text=auto eol=lfacross the repository while pinning*.ps1to CRLF. - Releases interface & onboarding — Added website release rendering in
website/src/releases.js,website/src/release-notes.js,website/src/layout.js, andwebsite/static/start.shwith Vitest coverage inwebsite/test/releases.test.jsandwebsite/test/start.test.js.
Removed
- Obsolete journal icon asset — Removed
website/static/journal-icon.svg.
Fixed
- Operator process termination on Windows — Resolved dangling background operator child processes by binding operator processes to Windows Job Objects with
KillOnJobClose. - Darwin TCP port listener conflicts — Fixed dual-stack IPv4/IPv6 port probe conflicts that previously caused flaky listener bindings on macOS.
- Darwin SSH ProxyCommand lifecycle — Fixed unexpected termination of ProxyCommand processes during SSH handshakes.
- Evaluation campaign execution on Windows — Fixed path normalization errors during scenario workspace initialization when drive letters were present.
- Cobra CLI flag parsing — Fixed sub-command flag parsing edge cases in Cobra command dispatch.
- Evaluation resident provider model cleanup — Fixed resident provider cleanup upon scenario completion.
- Gateway restart drifting off the default ports on Linux — The dual-stack port probe disabled
SO_REUSEADDRon every Unix host, so on Linux the TIME_WAIT sockets left by a Gateway that had just stopped made its ports look busy: an immediategw starteither moved the Gateway to a shifted port pair (for example 8087/8450) or failed on the public spectator port (port 8082 ... address already in use). The probe ininternal/netutil/port_probe_other.gonow keepsSO_REUSEADDRon Linux, matching the Gateway's own bind, and disables it only on BSD/macOS.TestTCPPortProbe_AcceptsTimeWaitOnLinuxcovers the TIME_WAIT case. - CLI unable to reach a Gateway on shifted ports — When
gw startmoved to free ports,login,auth enroll,eval, and every other CLI command kept dialing 8080/8443 and failed withconnection refused, and the startup guidance printed the default Console URL and Operator endpoint. The root command now reads the bound ports from the launch profile while its Gateway is running (config.SetLocalGatewayPorts). Explicit--endpoint/--portstill take precedence. The startup guidance andgw statusprint the bound Console origin andoperator start --endpoint <host>:<http> --port <https>, andgw startnames the process holding the requested port when it shifts.
Tests
Evidence: this section records the commands run from the release commit and their results.
./ztd test lint: Passed (0 issues. Linting completed successfully)../ztd test unit: Passed (Tier 1 unit tests completed successfully across all packages).make console-lint: Passed (tsc --noEmitandeslintwith 0 warnings).make console-test: Passed (7 test files, 44 tests passed in 1.03s).make console-embed-check: Passed ("Embedded console is current").make explorer-embed: Passed (rebuilt evaluation explorer withv1.0.6embedded string).make constants-check: Passed (events.json registry and generated constants verified).make doctrines-validate: Passed (6/6 doctrine JSON files validated).make swagger-generate: Passed (0 diff against committed OpenAPI specs).make version-sync-check: Passed (16 version declarations matchedv1.0.6)../ztd test release-smoke --root .local.dev/release-smoke/v1.0.6-smoke: Passed with exit code 0 (result: "PASS").- Isolated Gateway and dedicated data Operator deployed successfully.
- Scenarios:
file-create(PASS),document-merge(PASS),embedded-file-create(PASS). - Runtime reports: worker (2 receipts, 2 commitments, 1 file mutation, 6 verification rows, 0 failed, 0 skipped), gateway (10 receipts, 8 commitments, 1 file mutation, 6 verification rows, 0 failed, 0 skipped).
- Integrity checks:
commitment_chain,git_merkle_root,file_mutation_linkage,receipt_commitment_crosslinkall passed across both runtimes. - Local signed receipts: 6 total (2 worker, 4 gateway), all in
EXECUTION_STATUS_COMPLETED. - Evidence output:
.local.dev/release-smoke/v1.0.6-smoke/evidence/smoke-summary.json.
New coverage in this release: internal/cli/cmd/operator/operator_stop_local_darwin_test.go, internal/cli/cmd/operator/operator_stop_local_windows_integration_test.go, internal/netutil/port_probe_other_integration_test.go, internal/services/evaluation/scenario_workspace_test.go, internal/services/mcp/sys_info_windows_test.go, internal/cli/serve/operator_runtime_test.go, website/test/releases.test.js, and website/test/start.test.js.
Documentation
CHANGELOG.md— Addedv1.0.6row under## v1.0.xand updated index.VERSION— Bumped tov1.0.6.protocol/docs/— Synchronizeda2a.md,constants.md,mcp.md, andspec.mdheaders toVersion: v1.0.6.- Documentation Catalog — Audited against current codebase.
Compliance Evidence
Operational evidence bundle generated by ./ztd compliance release-prepare --window-start 2026-10-13T15:18:00Z --window-end 2026-10-13T15:20:00Z:
- Scope:
gateway-operational-20261013(window 2026-10-13T15:18:00Z to 2026-10-13T15:20:00Z, 4 receipts, 4 commitments, 2 source signer keys). - Public bundle:
release-evidence/v1.0.6/report-bundle/manifest.json. - Offline verification:
compliance_bundle@2.0.0valid=true, failures=0, checksum root49d23c6e098259dc0a298a615ded22cc360aedf4f2ab4a33efe2c9b98e8f7971. - Source revision:
e39faefa299986451c52940ca50222ec3c98bfc3. - Canonical projections:
docs/release_notes/v1.0.x/v1.0.6-compliance-evidence.mdanddocs/release_notes/v1.0.x/v1.0.6-compliance-evidence.csv.
Deferred
- On Windows,
.envownership and mode checking remains deferred.