Skip to content

Bring vitaminc's ADRs for the AEAD crates into the stack beside the code they govern #1839

Done

Description

@coderdan

Background

vitaminc-aead, vitaminc-aead-frame and vitaminc-aead-derive move from cipherstash/vitaminc into this repository (#1836, #1838). vitaminc records the design of these crates in architecture decision records (ADRs) under docs/adr in that repository. The imported code and tests cite them. For example, packages/vitaminc-aead-frame/tests/conformance.rs and conformance/vitaminc-aead/README.md cite "ADR 0001 section 3" for the scalar tag table and the leaf codec.

Problem

The ADRs stayed in vitaminc. Once these crates live here, the decisions they cite are recorded in another repository, and the code stops changing there. A reader of the code here has to know to look in vitaminc, and a change to the decisions has nowhere to be written.

AGENTS.md's review guidelines already cite vitaminc's ADR 0002 for what a stored value authenticates.

Proposal

  1. Copy the vitaminc ADRs that govern the moved crates into packages/vitaminc-aead/docs/adr/, keeping their numbers, so existing citations still resolve:
    • 0001-describe-plaintext-once-and-consume-it-with-sinks.md
    • 0002-leaves-are-authenticated-container-membership-and-order-are-not.md
    • 0003-a-versioned-storage-profile-for-values-that-are-kept.md
  2. Leave 0002-every-null-gets-an-equality-term-and-an-order-space-may-place-nulls-first-or-last.md in vitaminc. It governs the order and equality crates, which stay there for now.
  3. Point every citation in the moved crates, the conformance corpus and AGENTS.md at the copies.
  4. Keep the numbering separate from the engine's ADRs in packages/stack-encrypt/docs/adr. A citation says which set it means.

Depends on #1838.

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

Metadata

Metadata

Assignees

Labels

RustSDKdocumentation

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions