Skip to content

docs(plans): publish the AEAD crates as recipher-aead, with recipher, not under vitaminc's names - #2041

Merged
coderdan merged 3 commits into
nextfrom
docs/recipher-aead-naming
Dec 2, 2026
Merged

coderdan merged 3 commits into
nextfrom
docs/recipher-aead-naming

Conversation

@coderdan

@coderdan coderdan commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This updates the plan for moving vitaminc's AEAD crates into this repository (docs/plans/2026-11-14-move-vitaminc-aead-into-the-stack.md) with a decision made on 2 December. vitaminc-aead is not published again under that name. It becomes recipher-aead, and it is published only with recipher, the new name of stack-encrypt. The plan said to publish the crates under their vitaminc names, before the next stack-encrypt release. No code changes.

Changes

  • Summary: the crates are published with recipher, as recipher-aead and recipher-frame. What becomes of vitaminc-aead-derive is a new open question.
  • "The four crates that depend on vitaminc-aead": the reason the crate kept its name becomes a precondition for the rename. Each crate on crates.io that depends on vitaminc-aead must first move here or be released against recipher-aead. Those crates are vitaminc-normalize, -prf, -ore, -encrypt, the vitaminc umbrella crate, clww-ore and ore-rs.
  • "While the crates are unpublished":
    • there is no further stack-encrypt release, and the next release is recipher;
    • an EQL release with its stack-encrypt feature waits for recipher.
  • "Before the next stack-encrypt release" is replaced by "Publishing, with recipher", with three steps in order:
    1. decide, for each dependent crate, whether it moves here or gets a new release;
    2. rename the crates;
    3. publish them together, with trusted publishing set up for the new names.
  • Open question 2, new: what becomes of vitaminc-aead-derive. The current intent is to remove it, and to move its Encrypt and Decrypt derives, changed as needed, into recipher-derive. The question lists what is to decide:
    • whether recipher-derive is stack-encrypt-derive renamed, or a new crate;
    • whether recipher-aead still offers the derives;
    • what changes in the derives when they move.
  • Stage 3's Done list records refactor(go)!: move vitaminc's vcffi and vcvalue into the module as encrypt/frame and encrypt/value #2003, chore(go): remove the Go bindings, now that the Go SDK has its own copies vitaminc#646 (deleting bindings/go) and Go SDK: fuzz the Go frame codec against the guest's Rust codec, as vitaminc's differential fuzzers did #2004 (the differential fuzzers).

Verification

  • Every crate named as a dependent of vitaminc-aead was checked against the [patch.crates-io] comment and the dependencies in the root Cargo.toml.
  • The crates are still publish = false, with release = false entries in release-plz.toml. This PR changes neither.
  • No test was run: the PR changes one file under docs/plans/.

Related

Review notes

  • Open question 2 is the one decision this PR leaves open.
  • No changeset: the PR changes one file under docs/plans/.

… not under vitaminc's names

The plan published vitaminc-aead and vitaminc-aead-derive from this
repository under their vitaminc names, before the next stack-encrypt
release. That is replaced: vitaminc-aead is not published again. It is
renamed recipher-aead, the derive crate to match, and they are published
with recipher, the new name of stack-encrypt, alongside recipher-frame.

The plan already explained why vitaminc-aead kept its name: the crates
on crates.io that depend on it (vitaminc-normalize, -prf, -ore and
-encrypt, the vitaminc umbrella crate, clww-ore and ore-rs) would build
against a second set of AEAD types. That now becomes the first step of
publishing: each moves here or is released against recipher-aead before
the rename. The notes on the unpublished crates say that the next
release is recipher, and that an EQL release with its stack-encrypt
feature waits for it.

Stage 3's Done list records #2003, vitaminc's PR that deletes
bindings/go (cipherstash/vitaminc#646), and #2004 for the differential
fuzzers.

Refs #1831
@changeset-bot

changeset-bot Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f03ed61

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI; Enforced overrides: Organization
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ccf8fd6e-4714-47e0-a021-a8ee475cc299

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

…naming it to match

The plan said the derive crate is renamed to match recipher-aead. The
intent is instead to remove vitaminc-aead-derive and move its Encrypt
and Decrypt derives, changed as needed, into recipher-derive. That is
not settled, so it is open question 2, with what is to decide: what
recipher-derive is, whether recipher-aead still offers the derives, and
what changes in them. The summary and the publishing steps point at the
question instead of naming a derive crate.

Refs #1831
@coderdan
coderdan marked this pull request as ready for review December 2, 2026 07:21
@coderdan
coderdan requested a review from a team as a code owner December 2, 2026 07:21
@coderdan
coderdan merged commit 27821c1 into next Dec 2, 2026
26 checks passed
@coderdan
coderdan deleted the docs/recipher-aead-naming branch December 2, 2026 07:21

@cipherstash-agent cipherstash-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review attestation

Reviewed f03ed614 · posted from Claude Code · claude-opus-5-5 · effort medium
Sources: code-review · claude-opus-5-5; mattpocock-skills:code-review · claude-opus-5-5; cross-check verification · claude-opus-5-5
Skills: code-review, mattpocock-skills:code-review, company-skills:rust-security, company-skills:review-cross-check, company-skills:review-post

This review ran after the PR merged into next. The findings are for follow-up. rust-security found nothing, because the PR changes no Rust code. Every finding was checked against f03ed614.

Findings (8): 4 major, 4 minor. 6 are inline comments and 2 are below.

  • AGENTS.md:94, AGENTS.md:765-769, release-plz.toml:86-91 (outside diff) major These files still state the decision this PR reverses. They say vitaminc-aead and vitaminc-aead-derive keep their names and are published before the next stack-encrypt release, while the plan now says neither happens. Update them, and list them in the plan's "Rules this changes". Cargo.toml:18-20 says the same thing in softer words. Source: mattpocock-skills:code-review · claude-opus-5-5; code-review · claude-opus-5-5
  • docs/plans/2026-11-14-move-vitaminc-aead-into-the-stack.md:3, :41-44 (outside diff, spans hunks) minor The header still says "rewritten 26 November 2026", and the decisions list leaves out the 2 December decision. In the Summary, "They are published … with recipher" includes vitaminc-aead-derive, but open question 2 plans to remove that crate. Source: mattpocock-skills:code-review · claude-opus-5-5; code-review · claude-opus-5-5

Generated by Claude Code

rename cannot happen before that is done.
2. Rename `vitaminc-aead` to `recipher-aead`, and `stack-encrypt` to
`recipher`. Settle `vitaminc-aead-derive` (open question 2).
3. Publish `recipher` with `recipher-aead`, `recipher-frame`, and the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

major recipher is not a new name on crates.io: it is the old name of zerokms-keyset, versions 0.1.0 to 0.3.3 plus a yanked 0.34.0, from cipherstash/cipherstash-suite (root Cargo.toml:90-91). Publishing stack-encrypt 0.3.0 as recipher fails because 0.3.0 is taken, and existing recipher = "0.3" users would get unrelated code. Say that the name is taken over, choose a first version above 0.34.0, and move the existing trusted publisher from cipherstash-suite.

Source: code-review · claude-opus-5-5


Generated by Claude Code

Comment on lines +263 to +264
derive crate or crates that open question 2 leaves. The names are new
on crates.io, so this needs trusted publishing set up for them here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

major crates.io lets an owner add a trusted publisher only to a crate that already exists. So recipher-aead, recipher-frame and any new derive crate need a first publish by hand with an owner's token (AGENTS.md:93 says the same of stack-encrypt-jsonpath). Add that step before the release-plz trusted-publishing publish.

Source: code-review · claude-opus-5-5


Generated by Claude Code

Comment on lines +163 to +167
engine's calls into the four would not compile. So before it becomes
`recipher-aead`, each of the four moves here or is released against
`recipher-aead`. The same holds for the other crates on crates.io that
depend on it: the `vitaminc` umbrella crate, `clww-ore` and `ore-rs`
(see the `[patch.crates-io]` table in the root `Cargo.toml`).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

major This order cannot be followed. A dependent cannot be "released against recipher-aead" before the rename, because recipher-aead is published only in step 3, "and not before" (lines 252-254). Releasing it after step 3 leaves a gap in which the engine uses recipher-aead while crates.io's vitaminc-ore, -prf and the others still use vitaminc-aead. Say that only "moves here" can come first, or allow recipher-aead to publish before recipher. Step 1, lines 256-259, offers the same option.

Source: code-review · claude-opus-5-5


Generated by Claude Code

Comment on lines +256 to +258
1. For each crate on crates.io that depends on `vitaminc-aead` (the four
above, the `vitaminc` umbrella crate, `clww-ore` and `ore-rs`), decide
whether it moves here or is released against `recipher-aead`. The

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor clww-ore and ore-rs do not depend on vitaminc-aead directly. In Cargo.lock they depend on vitaminc-ore and vitaminc-prf, and line 147 says they stay in cipherstash/ore.rs, so "moves here" does not apply to them. List only the direct dependents here, and add that clww-ore and ore-rs are then released against the new vitaminc-ore and vitaminc-prf. Lines 165-167 need the same change.

Source: mattpocock-skills:code-review · claude-opus-5-5


Generated by Claude Code

Comment on lines +260 to +261
2. Rename `vitaminc-aead` to `recipher-aead`, and `stack-encrypt` to
`recipher`. Settle `vitaminc-aead-derive` (open question 2).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor The plan never mentions stack-encrypt-jsonpath. It is in the stack-encrypt version group (release-plz.toml:16-19), stack-encrypt depends on it at ^0.3.0, and it is not on crates.io. As step 3 stands, recipher cannot be published. Say whether it is renamed, and list it in step 3 as a new name that also needs a first publish by hand.

Source: mattpocock-skills:code-review · claude-opus-5-5


Generated by Claude Code

Comment on lines 239 to +243
- **`eql-bindings` can be published until step 2.4.** Its `stack-encrypt`
feature is compiled against the `stack-encrypt` on crates.io when it is
published. Stage 1 changes no API, so that still compiles. Step 2.4 changes
the API that `eql-bindings` uses, and from then an EQL release waits for a
`stack-encrypt` release.
the API that `eql-bindings` uses, and from then an EQL release with that
feature waits for the first release of `recipher`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor Step 2.4 is done (#1955, line 342), so "can be published until step 2.4" describes a time that has passed. Also, packages/eql/release-plz.toml:51 sets publish_all_features = true and eql-bindings names stack-encrypt 0.3.0, which is not on crates.io. So every eql-bindings release waits for recipher, not only one "with that feature". Write the bullet in the present tense, to say this.

Source: code-review · claude-opus-5-5


Generated by Claude Code

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.

2 participants