Repository navigation
CipherVault v1.0.39
CipherVault 1.0.39
Post-quantum release. It ships CV-PQ-1 (hybrid recovery, signatures and
receipts), the CipherChain v5 format as a parallel ledger, the recovery-log
fix for COMPACT-01, and the CLI flags the Hermes plugin 0.8.0/0.8.1 were
waiting on.
- ⚠ Compatibility break — 1.0.39 is a flag day with 1.0.38 once the
operator receipt suite ishybrid.- 1.0.38-or-older clients cannot push to a 1.0.39 operator running
hybridreceipts. The operator then signs leases, PoS and vouchers as
hybridcvpq1:<hex>. The v1.0.38LeaseReceipt::verifyhex-decodes
signature_hexdirectly (crates/storage/src/types.rs:149), socvpq1:
fails as invalid hex;crates/storage/src/pool.rs:288-294then returns
Nonefor that operator, dropping it from quorum, and readback is
unverified. Confirmed in a local 3-operator demo on 2026-12-05: the
same 1.0.38 client pushed 3/3 against those operators onlegacy
(exit 0, 0.12 s) and 0/3 onhybrid(exit 1, quorum deficit); same
client, same vault, same operators, only the receipt suite changed. The
old client prints no decode error, only the 0/3 quorum deficit. On the
1.0.39 default (legacy), a 1.0.38 client pushes normally (3/3,
exit 0), measured in the same demo. - 1.0.39 PQ clients against 1.0.38-or-older operators are expected to
be rejected, becauseinitnow defaults software-key vaults to the PQ
suite and old operators do not understand PQ records. Inferred, not
tested. - 1.0.39 clients verify both legacy Ed25519 and hybrid receipts (PR #99),
so a 1.0.39 client against a 1.0.39 operator works. - Strategy chosen: (c), an operator transition flag. 1.0.39 ships
CIPHERVAULT_RECEIPT_SUITE=legacy|hybridon the operator, defaulting to
legacy, so 1.0.38-and-older clients keep pushing through the rollout.
Flip tohybridafter every client is on 1.0.39; the flag is also the
rollback. (a) coordinated flag day is rejected because a push verifies
all three replicas, so the first upgraded operator would break every old
client; (b) capability negotiation is deferred to 1.0.40 because it is a
protocol-visible change and needs its own design.
- 1.0.38-or-older clients cannot push to a 1.0.39 operator running
- Rollout order.
- Before upgrading any operator, check every recovery-log locator for a
<locator>.pre-compactor<locator>.pre-expirefile whose live log is
missing. 1.0.39 restores one leftover automatically; if both are
present it fails closed and asks for a fix by hand. - Upgrade every operator on
legacyreceipts (the 1.0.39 default). This
also deploys PR #113. - Upgrade clients.
- Flip the operators to
hybridand restart them one at a time, checking
a push after each. Keeplegacyas the rollback. - Run
ciphervault migrate pqlast. PR #113 must be on every operator
before any client migrates.
- Before upgrading any operator, check every recovery-log locator for a
- Post-quantum (CV-PQ-1). Hybrid Ed25519 + ML-DSA-65 signatures and
X25519 + ML-KEM-768 key encapsulation, with the classical halves kept so a
break in either primitive is survivable.init --suite pq|legacymakes the
choice explicit: software-key vaults default to PQ, hardware-token (PIV)
vaults stay legacy with a warning, and--suite pqwith a hardware token
is refused.migrate pqre-roots a legacy vault, with operator-side
expiry for old envelopes and objects. Operators issue hybridcvpq1:
receipts, and transparency checkpoints carry Ed25519 + ML-DSA-65. The v4
chain keeps Ed25519 and its wire format; v5/CV-PQ-1 is a separate chain
and suite. - Operator receipt-suite transition flag (PR #125).
CIPHERVAULT_RECEIPT_SUITE
selectslegacy(bare Ed25519) orhybrid(cvpq1:) receipts for leases,
PoS receipts and vouchers. Unset meanslegacyin 1.0.39; an unknown value
stops startup.GET /v1/inforeportsreceipt_suite. While an operator
runslegacy, receipt authenticity is classical; flip tohybridand
restart once clients are current. - What is still not live. The v5 chain is not live on the fleet: no
multi-host v5 drill has run, multi-validator anchoring still uses the v4
path, and nothing in code halts v4 production at activation. ADR-017,
ADR-018, ADR-019, ADR-020, ADR-021 and ADR-022 remain Proposed
(ADR-015 is Accepted for Phases 1–3; ADR-016 is Implemented for the v5
format, consensus, ledger, activation and CLI surfaces, with the full
v4/v5 client explorer still rollout work). 1.0.39
is not "PQ-complete": historical v1/v2 envelopes remain
harvest-now-decrypt-later exposed until Phase 3b proves deletion, WebAuthn
stays hardware-bound and classical, and libp2p Noise remains a classical
session boundary. - COMPACT-01 (PR #123). A compaction interrupted between its two renames
left a recovery locator with no live log; reads returned nothing, another
genesis could claim the locator, and the next expiry then deleted the only
copy. Compaction now writes a durable.pre-compactcopy and replaces the
live log with a single rename, then syncs the parent directory. Every
locator access restores a log left between renames by an older release; if
both.pre-compactand.pre-expireexist, the locator fails closed until
an operator restores one by hand. Five tests with a test-only crash point
fail on the old code. - EXP-03 (PR #111). Expiry no longer leaves
.pre-expire(or
.pre-compact,.expire.tmp,.compact.tmp) copies of a deleted envelope
on disk; it replaces the live log with one rename and removes the rollback
files. - Other fixes. v4 blocks commit only with every member's signature
(PR #122, ADR-022); v5 votes are signed at the block time (PR #121,
ADR-021) and v5 block hashes and quorum certificates are deterministic
(PR #103); expiry receipts are bound to the suite and the requested
deletions (PR #105); the legacy purge is gated on receipts with a recovery
audit (PR #114); and therusqlite0.43busy_handlercalls are adapted. - Hermes CLI flags and plugin.
history --json --limit,
restore --dry-run --jsonandstatus --json --watchership in this CLI,
so plugin 0.8.0'sciphervault_restore_preview,history_limitand
watcher_healthstop returningcli_unsupported. A watcher holds an OS
lock on.ciphervault/watcher.lock(one watcher per vault), and
status --json --watcherreports a live process whose worker or loop has
gone quiet asstalled. Plugin 0.8.2's themed secret-entry destination
picker is UI-only. The plugin still pins v1.0.38 until the release assets
exist; re-pinning is a follow-up PR. - Dependencies.
rusqlite0.40.2 → 0.43.0 (bundled SQLite 3.53.2,
busy_handlerAPI adaptation),chacha20poly13050.10.1 → 0.11.0,
curve25519-dalek4.1.3/5.0.0 → 5.1.0,clap4.6.8 → 4.6.10,
tower-http0.6 → 0.7,base640.22 → 0.23,url2.5.8 → 2.5.9, plus
ml-kem0.3.4,kem0.3.0,sha30.12.0,blake20.11.0 andcpubits
0.1.1 for CV-PQ-1. - Process note. PRs #111–#122 were merged by admin bypass with no review
and no CI. GitHub Actions is billing-locked and every job runs 0 steps, so
the required checks onmain(DCO, "Rust Test Suite (ubuntu-latest)",
Trivy) cannot pass. All verification for this release is local-only. - Verified locally (hosted CI is billing-locked, so nothing here was
validated by CI). Rust workspace on merged main at 79450e9 (Windows):
cargo fmt --all -- --checkand
cargo clippy --workspace --all-targets --locked -- -D warningsare
clean;cargo test --workspaceran 126 suites with 1,343 passed, 0 failed
and 6 ignored, in 11m57s. One earlier run overlapped the release build,
and the timing-sensitiverepair_backfills_under_replicated_object
(services/operator/tests/swarm_repair.rs) failed; it passed alone in 2s
and in the clean full rerun. Three
tests were skipped by name because they hang on this machine for
environmental reasons:connect_authenticates_before_enrollment_and_keeps_bound_browser_handoff,
required_mfa_with_null_stdin_exits_without_prompt_or_enrollmentand
cli_exports_pinned_inventory_consumable_after_restart. A disposable
three-operator 1.0.39 cluster (build 79450e9) was also run on Windows
localhost: 1.0.39 pushed 3/3 in bothlegacyandhybrid; 1.0.38 pushed
3/3 onlegacyand 0/3 onhybrid; a PQ vault pushed 3/3;history --json --limit,status --json --watcherandrestore --dry-run --json
all exited 0 with valid payloads. The demo ran with operator strict auth
and enrollment disabled (disposable localhost only) and no watcher, so the
production auth posture is unverified. Hermes plugin 267
passed (7 skipped), MCP 14 passed, Hermes Desktop 12/12, dashboard audit
passed, version check in sync.cargo deny checkwas run (the advisory
database was reachable) and exits 1 on advisories:chrono 0.4.45is
flagged unmaintained (RUSTSEC-2026-0543, no safe upgrade) and
pin-project-lite 0.2.17is yanked; both are unchanged from v1.0.38 and
already onmain, so this PR does not introduce them. Linux and macOS are
unverified: the Linux operator is cross-built with zig (8m05, ELF 64-bit)
and was not run on a real Linux host. The Windows release build produced
7 executables and its hashes are recorded in the release PR. The release
assets are signed with release key a5fddec52680cab8 (SHA256SUMS.txt.sig,
205 bytes) and published on 2026-12-05.