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 OperatorRegistration with inference_keep_alive, provenance_operator_id, and provider_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.go and internal/services/system/system_utils_windows.go to 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.go to 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.go implementing Windows-specific host telemetry, memory metrics, and OS version interrogation via system utilities, covered by unit tests in internal/services/mcp/sys_info_windows_test.go.
  • macOS OS key store approval tolerance — In internal/constants/platform.go, added KeyStoreApprovalNoticeDelay (2s) and KeyStoreApprovalTimeout (5m). Background ztd gw start detects [Keystore] Waiting for approval to read the master key from the OS key store when 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.go providing graceful signal dispatch and process group cleanup on macOS.
  • Darwin host RAM observer — Added internal/services/inference/provider_observer/host_ram_collector_darwin.go using Mach/sysctl telemetry to measure host RAM accurately on macOS.
  • Operator registration protocol extensions — Added fields 17, 18, and 19 to OperatorRegistration in protocol/proto/ztd/operator/v1/operator.proto: inference_keep_alive (--inference-keep-alive), provenance_operator_id (--provenance-operator-id), and provider_boundary_observer_id (--provider-boundary-observer-id), with generated Go and TypeScript bindings in sync.
  • R2 credentials preflight probe — Added check subcommand to scripts/release-r2.sh that executes an active probe (write, read back, delete) under _preflight/ in the ztd-releases bucket on every run, including rehearsals, before building.
  • Evaluator scenario workspace validation — Added ValidateOperatorWorkingDirectory and integrated it into runs_execute.go to validate Data Operator working directory bindings before dispatching benchmark models.

Changed

  • Scenario workspace paths on Windows — Updated internal/services/evaluation/scenario_workspace.go to 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 upload uploads ztd-binaries.json last, 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_PKGS in Makefile to include ztd/test, preventing recursive test execution loops.
  • Line ending governance — .gitattributes now enforces * text=auto eol=lf across the repository while pinning *.ps1 to CRLF.
  • Releases interface & onboarding — Added website release rendering in website/src/releases.js, website/src/release-notes.js, website/src/layout.js, and website/static/start.sh with Vitest coverage in website/test/releases.test.js and website/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_REUSEADDR on every Unix host, so on Linux the TIME_WAIT sockets left by a Gateway that had just stopped made its ports look busy: an immediate gw start either 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 in internal/netutil/port_probe_other.go now keeps SO_REUSEADDR on Linux, matching the Gateway's own bind, and disables it only on BSD/macOS. TestTCPPortProbe_AcceptsTimeWaitOnLinux covers the TIME_WAIT case.
  • CLI unable to reach a Gateway on shifted ports — When gw start moved to free ports, login, auth enroll, eval, and every other CLI command kept dialing 8080/8443 and failed with connection 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/--port still take precedence. The startup guidance and gw status print the bound Console origin and operator start --endpoint <host>:<http> --port <https>, and gw start names 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 --noEmit and eslint with 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 with v1.0.6 embedded 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 matched v1.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_crosslink all 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 — Added v1.0.6 row under ## v1.0.x and updated index.
  • VERSION — Bumped to v1.0.6.
  • protocol/docs/ — Synchronized a2a.md, constants.md, mcp.md, and spec.md headers to Version: 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.0 valid=true, failures=0, checksum root 49d23c6e098259dc0a298a615ded22cc360aedf4f2ab4a33efe2c9b98e8f7971.
  • Source revision: e39faefa299986451c52940ca50222ec3c98bfc3.
  • Canonical projections: docs/release_notes/v1.0.x/v1.0.6-compliance-evidence.md and docs/release_notes/v1.0.x/v1.0.6-compliance-evidence.csv.

Deferred

  • On Windows, .env ownership and mode checking remains deferred.