Make cf release metadata reproducible across host updates #354

Closed
opened 2026-10-17 08:03:18 +01:00 by nimmo · 0 comments
Owner

Vega and Lyra could not evaluate the accepted configuration because the Cloudflare CLI release input locked the mutable npm cf/latest response. A later registry response failed the recorded NAR hash before host builds started.

Confirmed cause: the accepted release is 1.0.0-beta.17, while latest now resolves beta.18. Fetching /cf/1.0.0-beta.17 produces exactly the previously accepted NAR hash, so recovery does not require changing the release, hash, or dependency source.

Local repair on fix/cf-release-reproducibility:

  • Lock the accepted beta.17 versioned metadata URL.
  • Route scheduled release discovery through a helper that fetches latest, resolves a versioned URL, and atomically updates only that locked node.
  • Preserve the shared controller's group validation and rollback behavior.
  • Document the manual update path and add an isolated regression flake check.

Validation complete: nix flake check passes, and Vega and Lyra toplevel derivations evaluate successfully. ShellCheck and release-resolution regressions pass, including failure atomicity, repeated resolution, adapter routing and preservation of unrelated lock data. A disposable live registry resolution selects a versioned beta.18 URL without changing the repaired repository lock. Upstream Hermes evaluation emits existing stdenv platform deprecation warnings; these do not block validation and belong in an upstream dependency follow-up.

Publication, full host builds and deployment have not been performed. The repair is committed locally with a clean working tree. The issue remains open pending publication/review.

A standalone cloudflare-cli.nix flake repository on forge.nimmog.uk is a recommended follow-up to own packaging, smoke tests and coupled release updates behind one consumer input.

Vega and Lyra could not evaluate the accepted configuration because the Cloudflare CLI release input locked the mutable npm `cf/latest` response. A later registry response failed the recorded NAR hash before host builds started. Confirmed cause: the accepted release is 1.0.0-beta.17, while `latest` now resolves beta.18. Fetching `/cf/1.0.0-beta.17` produces exactly the previously accepted NAR hash, so recovery does not require changing the release, hash, or dependency source. Local repair on `fix/cf-release-reproducibility`: - Lock the accepted beta.17 versioned metadata URL. - Route scheduled release discovery through a helper that fetches latest, resolves a versioned URL, and atomically updates only that locked node. - Preserve the shared controller's group validation and rollback behavior. - Document the manual update path and add an isolated regression flake check. Validation complete: `nix flake check` passes, and Vega and Lyra toplevel derivations evaluate successfully. ShellCheck and release-resolution regressions pass, including failure atomicity, repeated resolution, adapter routing and preservation of unrelated lock data. A disposable live registry resolution selects a versioned beta.18 URL without changing the repaired repository lock. Upstream Hermes evaluation emits existing stdenv platform deprecation warnings; these do not block validation and belong in an upstream dependency follow-up. Publication, full host builds and deployment have not been performed. The repair is committed locally with a clean working tree. The issue remains open pending publication/review. A standalone `cloudflare-cli.nix` flake repository on forge.nimmog.uk is a recommended follow-up to own packaging, smoke tests and coupled release updates behind one consumer input.
nimmo closed this issue 2026-10-17 11:43:06 +01:00
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/nixos-config#354
No description provided.