Skip to content

Anchor the continuity floor and add explicit full bootstrap - #38

Merged
hmirin merged 4 commits into
mainfrom
codex/e2ee-checkpoint-full-check
Nov 16, 2026
Merged

hmirin merged 4 commits into
mainfrom
codex/e2ee-checkpoint-full-check

Conversation

@hmirin

@hmirin hmirin commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #37.

What this does

  • Anchored continuity floor (format 2). The floor caches the authenticated manifest and policy at its head. Returning devices validate only the segment from storage HEAD back to that manifest instead of walking to genesis, so normal operations stay within the 64 MiB / 1,000,000-operation cumulative budget as history grows.
  • git-e2ee bootstrap <target> --force-full-check. Explicit first-use path for a fresh device whose legitimate history exceeds the normal budget. It authenticates every manifest, imports every pack, and checks the full Git graph. Per-object limits still apply; time and memory grow with history length.
  • In-place upgrade of format 1 floors. A floor written by the released helper has no cached anchor. The client walks from genesis, requires the walk to reach the pinned head, and rewrites the floor in format 2. If that walk exceeds the normal budget, run bootstrap --force-full-check on that device.

Removed from the earlier revision

checkpoint create / checkpoint import --expected-id are gone. A checkpoint re-stored every reachable Git object as a new pack, which duplicates existing ciphertext and is not needed for skipping old manifest validation. The Checkpoint manifest authorization is back to reserved-and-rejected. A small signed "verified point" for passing rollback anchors between devices can be designed separately if needed.

Tests

cargo test --all-targets, cargo clippy --all-targets -- -D warnings, cargo fmt --check pass locally. New: anchorless_floor_from_an_earlier_release_is_checked_and_upgraded.

Checkpoints re-stored every reachable Git object in a new pack, which
duplicates existing ciphertext and is not needed to skip old manifest
validation. Fresh devices verify the full history with
bootstrap --force-full-check instead.

A format 1 floor from the released helper no longer blocks every
operation: the client walks from genesis, requires the walk to reach the
pinned head, and rewrites the floor with its authenticated anchor.
@hmirin hmirin changed the title Add authenticated checkpoints and explicit full bootstrap Anchor the continuity floor and add explicit full bootstrap Nov 16, 2026
@hmirin
hmirin changed the base branch from fix/daybreak-security-audit to main November 16, 2026 10:57
After the helper's list advanced the floor, import_packs saw only the
anchored head and fell back to a bounded genesis walk, which fails once
history exceeds the cumulative budget. Pack inventory now extends the
authenticated chain backwards through content-addressed previous links
and predecessor-key commitments, down to the checkout's import progress.
verify and the re-import fallback use the same walk, so they no longer
depend on the cumulative budget.

The spec now scopes pack-ID uniqueness to the segment a client reads:
a repeated older ID cannot decrypt under a new generation and ordinal.
The guide states that recovery discovery stays bounded.
@hmirin
hmirin marked this pull request as ready for review November 16, 2026 11:22
@hmirin
hmirin merged commit 9235c83 into main Nov 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant