Skip to content

CLL checkpoints: name the draft revision and run the -02 MMR vectors in CI #178

Backlog

Description

@StevenMih

The CLL checkpoint chain (#50, landed 2026-08-26) has been hardened a lot since: thanks to everyone on #147, #160, #161 and the fuzzing work. Meanwhile the CLL draft and the MMR profile under it have moved, so this issue is about keeping the registry and the spec in step.

Where things stand

  • docs/mmr-checkpoint.md says the registry "conforms to draft-mih-scitt-checkpointed-local-log" without naming a revision. The current revision is -02: https://datatracker.ietf.org/doc/draft-mih-scitt-checkpointed-local-log/
  • src/trace_verify/_checkpoint.py already says the registry's checkpoint is a JSON form with a name mapping, not the COSE wire format. That's fine. The MMR construction underneath (leaves, peaks, inclusion and consistency proofs) is format-independent, so it can be checked against shared vectors.
  • The MMR profile the CLL builds on was adopted by the SCITT working group on 21 Nov as draft-ietf-scitt-receipts-mmr-profile: https://datatracker.ietf.org/doc/draft-ietf-scitt-receipts-mmr-profile/

Proposal

  1. Name the revision in docs/mmr-checkpoint.md, for example "MMR construction per draft-mih-scitt-checkpointed-local-log-02; checkpoint in the registry's JSON form (field mapping below)".
  2. Run the -02 known-answer vectors for the MMR layer in CI: log, accumulators, and the four-checkpoint chain with its negative cases. They are generated from the draft text, not from any implementation: https://github.com/action-state-group/checkpointed-local-log/tree/main/cll-02-vectors
    The existing tests/test_mmr_kat39.py is the natural place to add them.
  3. Optional: emit the COSE form of the checkpoint alongside the JSON one, so any CLL / SCITT verifier can check the registry without the mapping.

On our side, when a CLL revision changes anything the registry depends on, we'll ship new versioned vectors and open an issue here the same day.

Happy to send a PR for steps 1 and 2 if that helps.

Activity

  1. drk-ram commented on Nov 25, 2026

    @drk-ram
    Contributor

    Steps 1 and 2 are in #179. docs/mmr-checkpoint.md now names -02 and the MMR profile, says the checkpoint is the registry's JSON form, and carries the field mapping. tests/test_mmr_kat39.py runs the -02 vectors (pinned in tests/fixtures/cll-02/ at 43300c3): the log at every prefix, the four-checkpoint chain through verify_checkpoint_link, and the negatives.

    Three things you may want to know from running them:

    • fail-proof-on-first is not refused by trace_verify. The registry's proof is outside the signed body and is never read on a first checkpoint. I pinned that rather than change the verifier in this PR; a short check in verify_checkpoint_chain would close it.
    • cp3 (no growth) is valid at the MMR layer, but verify_checkpoint_link requires strict growth, so a chain with it is refused. The registry never emits one.
    • fail-leaf-count-mismatch can't reach the verifier because the registry checkpoint has no leaf_count; it is checked as MMR arithmetic.

    Step 3 (the COSE form) is not included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions