Repository navigation
feat(DEN-2923): replay exact EnvironmentLock tools from the local cache - #236
Conversation
|
Independent test-org certification is open at zed-pkg-test/offline-cache-e2e#2. Current exact pins after two failure-driven product repairs: The independent gate found two real candidate defects:
The read-only Ubuntu/macOS/Windows black-box gate constructs its own authenticated |
|
Windows exact-head follow-up — August 8, 2026 The first repair materialization run (
The run then failed in the independent harness while executing the installed A superseding exact materializer run (
No product branch update will be pushed until this combined proof is green. |
Scope
Adds the first native installation slice beneath DEN-1437 without requiring mise, another manager, a registry, backend plugin, or global PATH mutation.
Frozen replay contract
EnvironmentLockcontract.tar_gzand ZIP bytes already present in Zed's local cache; all other formats fail closed..zed/tools/v1/<target>while holding the checkout operation lock, then atomically replace the prior owned profile.unchangedwithout rewriting state when lock, target, command set, and profile state are identical.Failure atomicity and Windows durability
Independent
zed-pkg-test/offline-cache-e2e#2found and pinned these defects:.zed/tools/v1parents;sync_all()through a read-onlyFile::openhandle, producing OS error 5;EnvironmentLock::default()after construction; andcmd.exe /Cargv element.The product now:
sync_all();Fileimport Unix-only;.cmdsynchronization regression; and.zed/toolsnamespace to remain absent after missing cache, hash mismatch, wrong size, executable collision, online mode, wrong plan digest, and unsafe-target rejection.State and security
profile.jsonrecords only lock digest, target, tool/version/backend, artifact digest, relative install root, and relative command layout. It contains no source URL, credential, environment value, timestamp, hostname, PID, home path, or absolute store path.The staged installer never performs network access, version discovery, plugin evaluation, install hooks, package-manager execution, or downloaded-binary execution.
--offlineis mandatory.Exact product evidence
Final connector-authored exact head:
Every workflow on this exact head is terminal-green:
There are no unresolved review threads.
Independent certification
zed-pkg-test/offline-cache-e2e#2merged as:Its exact candidate-quality, Ubuntu 24.04, macOS 15, Windows 2025, and generated-harness jobs are all green against this product tree. It independently proves cache-only operation under malformed credentials, unreachable registry/proxies, execution and alias behavior, unchanged replay, store/cache reuse, failure atomicity, collision handling, unsafe-target rejection, checkout immutability, and secret-free project-relative profile state.
The certified formatted
src/tool_profile.rsSHA-256 is:This is deliberately not yet canonical
zed tool: version discovery/download, signatures, multiple active versions, backend families, update/prune, lazy shims, andzed devactivation remain separate certified slices.Linear: DEN-2923, DEN-1437, DEN-1482, DEN-1442
Independent certification: zed-pkg-test/offline-cache-e2e#2