Skip to content

fix(eql-bindings): keep SchemaVersion::CURRENT on v3, and ready the crate changelogs - #2020

Open
coderdan wants to merge 12 commits into
nextfrom
docs/fold-unreleased-changelogs
Open

coderdan wants to merge 12 commits into
nextfrom
docs/fold-unreleased-changelogs

Conversation

@coderdan

@coderdan coderdan commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Release prep for the release candidate in #1229. There are two parts.

  • eql-bindings. let v = SchemaVersion::CURRENT; and SchemaVersion::default() compile against eql-bindings 3.0.6. On next they fail with E0284, because the generic SchemaVersion<V> leaves nothing to choose V. This PR makes them compile again, and give v3. So the EQL changeset stays a minor bump, to 3.1.0.
  • Crate changelogs. Each unpublished crate version now has a section that says what changes from the version on crates.io. The sections have no date, because these versions are not published yet.

Changes

eql-bindings (b59ef57, 225ee86)

  • SchemaVersion::CURRENT and an inherent default() are on SchemaVersion<3> alone, as 3.0.6 had them. A call that names no version then has one candidate, v3.
  • Default is still implemented for every version, so the v4 types build theirs with v4::SchemaVersion::default(). The generic CURRENT is gone. Its one v4 caller, in packages/eql/tests/encryption/tests/text_eq.rs, now calls default().
  • crates/eql-bindings/tests/schema_version.rs pins this: plain CURRENT and default() give v3, and SchemaVersion<4> and v4::SchemaVersion give v4.
  • .changeset/eql-v4-bindings.md stays minor. It now says that plain SchemaVersion still means v3 everywhere, and how to name v4.

Changelogs

Crate crates.io Section What changed
stack-encrypt 0.2.0 [0.3.0] Rewritten as one upgrade from 0.2.0: 126 entries in place of about 210 (9e0378e).
stack-kms 0.1.0 [0.2.0] The 5 entries under Unreleased moved in. The stale ERROR_CODES claim is removed (5dda64c).
stack-encrypt-jsonpath none [0.3.0] The first release. The entries no longer say the grammar "moved out of stack-encrypt" (5dda64c).
stack-encrypt-derive 0.2.0 [0.3.0] A new changelog, from the git log since stack-encrypt-derive-v0.2.0 and the stack-encrypt entries on the derive (ea2ed87). It says that the stack-encrypt changelog records 0.1.0 and 0.2.0 (89d5f00).
eql-bindings 3.0.6 [3.1.0], [3.0.0] No tool writes this file's version headings, so 3.0.0 to 3.0.6 all shipped under Unreleased. The three entries in every published changelog since 3.0.0-alpha.3 go under [3.0.0] - 2026-07-09. The rest go under [3.1.0], with four entries removed and some trimmed (5add7bf).
stack-profile 0.43.0 [0.36.0], [0.38.1] Two groups of bot-written entries sat above [0.44.0] with no heading. The release commits that added them show they belong to 0.36.0 and 0.38.1, and both are on crates.io (98e6e8d).

stack-auth and stack-profile 0.44.0 are not on crates.io either, so their headings drop the date (89d5f00). In stack-kms 0.2.0, the three batch entries moved from Changed to Fixes, so the section uses cliff.toml's headings only (89d5f00).

These were left alone: vitaminc-aead-derive, stack-guest-abi (no changelog, publish = false), and vitaminc-aead and recipher-frame (as decided).

How the stack-encrypt 0.3.0 section was rewritten

Each entry was kept, merged, moved, or removed.

Merged into one entry for the state at 0.3.0:

  • Order terms. These entries became one:
    • the cllw-ore and clww-ore steps;
    • the text order and the float order;
    • the types with no order term;
    • Orderable, and from_bytes.
  • Dependencies. The vitaminc 0.6, 0.8, 0.9, and 0.10 steps became one entry for vitaminc 0.10, clww-ore 0.8, and ore-rs 0.12.
  • The dynamic plaintext. These entries became one entry, "a plaintext is a transport frame":
    • FfiValue, dynamic::Value, dynamic::Scalar, and ValueFrame;
    • TermKind;
    • control data read with serde;
    • record::encrypt and record::decrypt no longer being async.
  • dynamic::Error. The entry on its variants and the stack-encrypt: "not an object" errors do not say what was found, or which field, row or operation #1985 entry became one.
  • The structural API. The entries on EncryptFrom, DecryptInto, target::legacy, and the owned EncryptInto became one. It is written against what 0.2.0 had.
  • The value module. The date, timestamp, and decimal entries became one. The date range came from the vitaminc 0.10 entry.
  • ValueKind. It is described once, as the vitaminc-aead type that stack-encrypt re-exports, with 22 kinds.
  • Smaller merges, each into the entry named:
    • seal into the Encrypt entry;
    • CipherRef being Clone into the CipherRef entry;
    • the context parameter name into the Pending entry;
    • the short-words fix into the short-words entry;
    • the JSON container fix into the JSON index entry;
    • the term-set refusals into TermSet.

Removed, because the item was added after 0.2.0 and then removed or replaced before 0.3.0:

  • The plan builder and its chain:
    • the plan module, saved plans, and all((..));
    • the two plan starts and the context-source rule;
    • encrypt_into on a plan, EncryptFrom::indexes(), and tuples of targets;
    • pickers, the builder's FieldPlan::identity(), and PlanError::IndexOptions;
    • the derive emitting a plan, and context_field on a plan;
    • JoinContext, the plan-API reshaping, and repeated .extend(..).
  • The query chain:
    • query_index, and the chain starting with the operator;
    • keying by input, Match::default(), and Match as a value;
    • "a query names an operator", and the typed JSON operator impls.
  • Other short-lived items:
    • target::Layout and dynamic::Value;
    • ValueFrame's Zeroize, its PartialEq, and its index refusal;
    • the record-lowering fixture;
    • the old IndexSpec and ValueKind variant counts, and OpSpec;
    • IntoLabel for &String, and KeysetChoice.
  • Breaking entries about traits and types that are new in 0.3.0. The Added entry for each item has its current behaviour. The items are:
    • the methods of Index and Indexes;
    • the PlanError variants;
    • Owned mode, op::Supports, and OpaqueDecode;
    • TargetResolver;
    • the JSON vars reason, and the list of value types.
  • Internal changes that a user cannot see:
    • the plan lowering, and Planned in the dynamic entry points;
    • a docs wording, and the heap-hygiene test of blobs;
    • the seal with no copy;
    • ExpectedContext as a ContextInput. It is now hidden.

Fixed entries removed, because no released version had the bug:

The serde_json float_roundtrip entry moves to Changed. It changes every serde_json parse in a program that links the crate.

eql-bindings: why the file is edited by hand. Nothing in the release writes the crate's version headings:

  • packages/eql/release-plz.toml says its changelog_config is read only by update and release-pr. release-plz.yml runs command: release. That command only publishes.
  • changeset version writes the npm package's changelog (packages/eql/packages/eql/CHANGELOG.md), not the crate's.
  • scripts/sync-lockstep-versions.mjs sets the crate's version, and never touches its changelog.
  • The evidence: the 3.0.6 Version Packages commit (23e9af3) did not touch the file. The published 3.0.0-alpha.3 to 3.0.6 crates all have the same entries under ## [Unreleased]. Their newest heading is 0.4.2.

In [3.1.0], every entry is about the stack-encrypt and targets features and the v4 and encryption modules. 3.0.6 had none of these. So entries that describe a step between unreleased builds were removed or trimmed:

  • Removed, four entries:
    • "A plaintext no longer needs Clone";
    • "The EQL v4 types no longer implement EncryptFrom and DecryptInto";
    • "The stack-encrypt feature builds on vitaminc ADR 0001";
    • "A value passed by value is sealed without a copy".
  • Merged: the two v4::plaintext entries and the date, timestamp, and numeric types entry became one entry.
  • Trimmed: sentences that compare with an earlier unreleased build. Examples are ValueFrame, the one-element ob array, "TextEq is the one producible type", and "ordered types answer nothing from a field reference yet". A later entry replaced that last one.
  • Added: an entry on the generic SchemaVersion.

Corrected after checking against the code. Four reviewers checked every kept entry against next and the stack-encrypt-v0.2.0 tag. These are some of the corrections:

  • OreBlockTerm and ore_block_term are not 0.2.0 items.
  • ValueKind has 22 kinds.
  • FieldReference has five type parameters.
  • .with_credential(..) is only on a credential-per-call source.
  • Timestamp is built with TryFrom.
  • 8-bit integers have no order term.
  • A bytes field had order terms in 0.2.0.
  • The dynamic::Error variant shapes.
  • The eql-simulator example now names version 0.3, not 0.4.

Verification

  • cargo test -p eql-bindings --all-features: 245 passed, including the 5 new schema_version tests. The let v = SchemaVersion::CURRENT; form fails with E0284 on next, checked with a small crate built against the tree.
  • cargo clippy -p eql-bindings --all-targets -D warnings, with all features and with none: clean. cargo fmt --all --check in packages/eql: clean.
  • cargo test -p eql-codegen: 206 passed. cargo test -p eql-encryption-tests: 192 passed, 63 ignored.
  • pnpm run test:scripts: 99 files and 1652 tests passed, 29 skipped.
  • pnpm changeset status --verbose: @cipherstash/eql goes to 3.1.0, and no other planned version changes. The @cipherstash/auth 1.0.0 in that output is a known false positive of changeset status. AGENTS.md describes it.
  • No script or test reads the crate changelogs.
  • The plain-language checker finds nothing to fix in the changeset text, the commit messages, or this description. It finds nothing in the new derive changelog or the jsonpath one either. The 0.3.0 entries I wrote or merged were checked too. The stack-encrypt section still has findings in entries that kept their text.

Related

Review notes

  • stack-encrypt 0.3.0 may not publish. It depends on vitaminc-aead 0.10.0 and recipher-frame 0.10.0 by path. stack-encrypt uses OwnedFrame and ValueKind, but crates.io's vitaminc-aead 0.10.0 does not have them. recipher-frame is not on crates.io at all. This is the same kind of problem as blocking point 1. This PR does not fix it.
  • The rustdoc of value::Uuid says the dynamic path refuses a UUID. It is at lines 118 to 120 of packages/stack-encrypt/src/value.rs. The code accepts one. This PR does not change it.

The root release-plz line publishes these crates and never writes their
changelogs. So each entry under "Unreleased" would publish with no
version heading.

- stack-encrypt: the 101 entries move into 0.3.0. Each kind of change
  now has one heading, in the order Breaking, Added, Changed, Fixed.
  The 0.3.0 section had two Breaking and two Added headings.
- stack-kms: the 5 entries move into 0.2.0.
- stack-encrypt-jsonpath: the section becomes 0.3.0, the version in its
  Cargo.toml. The crate is not on crates.io yet.

No entry's text changes, and no two entries were the same.
The changeset said that plain SchemaVersion still means v3. That is true
only as a type. In an expression, Rust takes the version from the type
the value is used as. So SchemaVersion::CURRENT means v4 where it goes
into a v4 type. Where nothing sets the version, it no longer compiles
(E0284).

The changeset now names the break and says to write
eql_bindings::v3::SchemaVersion to keep v3.
@changeset-bot

changeset-bot Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 28336b3

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 changesets to release 12 packages
Name Type
@cipherstash/eql Minor
stash Patch
@cipherstash/stack-prisma Patch
@cipherstash/basic-example Patch
@cipherstash/e2e Patch
@cipherstash/prisma-example Patch
@cipherstash/stack-drizzle Patch
@cipherstash/stack-supabase Patch
@cipherstash/stack Patch
@cipherstash/wizard Patch
@cipherstash/bench Patch
@cipherstash/test-kit Patch

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 Nov 29, 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: bef11854-b024-4f62-a8e3-4e6329c65779

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

@coderdan coderdan left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Review of this pull request: five findings. One is important: the changeset documents a Rust break but releases it as a minor.

@@ -2,8 +2,15 @@
'@cipherstash/eql': minor

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Important. The changeset now says the SchemaVersion change breaks Rust code, but it still asks for a minor release. eql-bindings is at 3.0.6 and moves in lockstep with @cipherstash/eql, so the break would ship as 3.1.0, which Cargo treats as compatible. A crate that depends on eql-bindings = "3" and writes let v = SchemaVersion::CURRENT; stops building after a plain cargo update, with no warning. Fix: release it as a major, or remove the break.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in b59ef57 by removing the break, so the changeset stays minor and EQL goes to 3.1.0.

  • CURRENT and an inherent default() are now on SchemaVersion<3> alone, as 3.0.6 had them. let v = SchemaVersion::CURRENT; and SchemaVersion::default() compile again and give v3. On next they fail with E0284.
  • Every version still implements Default, so the v4 types build theirs with v4::SchemaVersion::default(). The encryption test crate's one call to v4::SchemaVersion::CURRENT now calls default().
  • crates/eql-bindings/tests/schema_version.rs pins both: plain CURRENT and default() give v3, and SchemaVersion<4> and v4::SchemaVersion give v4.
  • The changeset now says that plain SchemaVersion still means v3, and how to name v4.

An earlier commit on this branch, 458b82d, made the bump major. b59ef57 reverts that.

Checks: cargo test -p eql-bindings --all-features (245 passed), clippy -D warnings with and without features, cargo fmt --check, cargo test -p eql-codegen (206 passed), and the eql-encryption-tests crate (192 passed, 63 ignored).

Comment thread packages/stack-encrypt/CHANGELOG.md Outdated
@@ -5,756 +5,261 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [0.3.0] - 2026-10-27

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Minor. ## [0.3.0] - 2026-10-27 now covers about a hundred entries merged after that date (for example #1985, #1907 and #1918), and 0.3.0 is not on crates.io. The same is true of stack-kms 0.2.0, while the new jsonpath heading has no date. Fix: drop the date from all three headings until the crates are published, or set the real release date.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed. The headings have no date now: stack-encrypt [0.3.0] in 9e0378e, and stack-kms [0.2.0] in 5dda64c. The jsonpath heading had none already. The new stack-encrypt-derive changelog (ea2ed87) has no date either.

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 Two more headings carry a date for a version that is not on crates.io. packages/stack-profile/CHANGELOG.md:8 reads ## [0.44.0] - 2026-10-27, and this PR edits that file. packages/stack-auth/CHANGELOG.md:2 has the same heading. crates.io's newest version of both crates is 0.43.0. cliff.toml writes a date only on a section it creates, so this date stays wrong after the real release. Drop - 2026-10-27 from both headings.

Source: code-review, mattpocock-skills:code-review (standards) · claude-opus-5-5


Generated by Claude Code

@coderdan coderdan Nov 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 89d5f00. stack-auth and stack-profile [0.44.0] have no date now. crates.io's newest version of both is 0.43.0.

I checked every dated heading in the crate changelogs under packages/ against crates.io. Two files still have dated headings for versions that crates.io does not list:

  • recipher-frame: these versions were published as vitaminc-aead-frame, the crate's old name. Dan decided to leave this file as it is.
  • packages/eql/crates/eql-bindings/CHANGELOG.md [0.4.0] - 2026-07-03: crates.io has 0.4.1 and 0.4.2 but no 0.4.0. That version was skipped long ago, so it is not waiting to be published. I left it.

The same file has the problem this PR fixes elsewhere. About 540 lines (39 entries) sit under ## [Unreleased], and the crate will publish as 3.1.0. I have not changed it here. I have reported it to the owner.

variant names only the type the target reads (`expected`). The Go guest
maps it to `STATUS_ENCODING`, as it does a typed record field that opens to
another kind. A wrong key, a wrong context and a tampered ciphertext are
still `Aead`. A container whose shape the target refuses (a map missing a

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Minor. With the Unreleased entries merged in, one release's Breaking section now gives contradictory upgrade steps: "now uses vitaminc 0.10" (line 1002), "requires the vitaminc 0.9 crates" (line 1342), and older 0.8 and 0.6 entries. It also says dynamic::ValueKind is "this crate's own" under Breaking, but "defined in vitaminc-aead" (#1907) under Changed. Some Fixed entries fix bugs in code no released version contained. Fix: fold or remove the entries that later 0.3.0 work replaced, so the section describes the change from 0.2.0 to 0.3.0.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 9e0378e. The 0.3.0 section now says what changes from 0.2.0 to 0.3.0, in 126 entries in place of about 210.

  • Superseded steps become the one that is true now. For example, there is one dependency entry for vitaminc 0.10, clww-ore 0.8, and ore-rs 0.12, and one entry for the order terms.
  • ValueKind is described once, as the vitaminc-aead type that stack-encrypt re-exports.
  • Entries about APIs added after 0.2.0 and removed before 0.3.0 are gone. Examples are the plan builder, the query chain, and ValueFrame.
  • Fixed entries for bugs that no released version had are gone.
  • Four reviewers checked every kept entry against the code on next and against the stack-encrypt-v0.2.0 tag. Their corrections are in the same commit.

The PR description lists each entry that was removed or merged, and why.

Comment thread .changeset/eql-v4-bindings.md Outdated

**The change to `SchemaVersion` breaks Rust code that builds one by its plain name.** As a type, plain `SchemaVersion` still means v3, so a field or a variable declared with that type is unchanged. In an expression, Rust does not use that default. Rust takes the version from the type the value is used as:

- `SchemaVersion::CURRENT` and `SchemaVersion::default()` now mean v4 where the value goes into a v4 type.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Minor. "SchemaVersion::CURRENT and SchemaVersion::default() now mean v4 where the value goes into a v4 type" reads as if existing code changes meaning. v4 types are new, so no released code puts a value into one. The only break for existing code is the E0284 case in the next bullet. Fix: say the v4 case is new usage, and that existing code either keeps v3 or stops compiling.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That bullet is gone.

First, 458b82d reworded it. It said that the v4 case is new usage. It also said that code written for an earlier release keeps v3 or stops compiling. Then b59ef57 removed the break itself.

So the changeset no longer describes a break. It says that plain SchemaVersion still means v3 everywhere, and how to name v4. See the reply on line 2.

Comment thread packages/stack-encrypt/CHANGELOG.md Outdated
does not compare with one this release derives, and nothing refuses it:
a `<`, `BETWEEN` or `ORDER BY` over a column holding the old terms
silently misses or misplaces rows. Re-derive a column's ORE and OPE terms
(encrypt its rows again) before querying it with this release. Every source type's term is one ciphertext type,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Minor, already on the base. Two sentences run together on one overlong line ("before querying it with this release. Every source type's term is one ciphertext type,"). Fix: break the line after "this release." and rewrap it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 9e0378e. That entry was rewritten as part of the 0.3.0 rewrite. The sentence now ends at "with this release.", and the next one starts a new sentence. Every paragraph in the 0.3.0 section with a line over 80 characters was rewrapped to 76. Two lines are still longer, because each is one piece of code that cannot be split.

The generic SchemaVersion stops some code from compiling. Under a minor
bump, eql-bindings would be published as 3.1.0. Cargo would pick
it up on a plain `cargo update`. The changeset now asks for a major, so
the npm package and the crate move to 4.0.0 together.

The note also says that the v4 case is new usage. Code written for an
earlier release either keeps v3 or stops compiling with E0284.
The cliff template in cipherstash-suite wrote no version heading. So
two bot-written groups sat above 0.44.0, under no version at all. The
release commits that added them show where they belong:

- The three Fixes came with 0.36.0 (2026-05-28).
- The Documentation entry came with 0.38.1 (2026-06-29).

Both versions are on crates.io. The entries now sit under those
headings, between 0.40.0 and 0.34.0, with no change to the text.
The crate had no changelog. crates.io has 0.2.0, and Cargo.toml says
0.3.0. The new 0.3.0 section lists what changes for a 0.2.0 user of the
derive: the removed derives and attributes, the ones that replace them,
and the data that must be encrypted again. It points to the
stack-encrypt changelog for the traits.
SchemaVersion became generic over its wire version, with v3 as the
default. Rust does not apply a default const parameter in an expression.
Both `let v = SchemaVersion::CURRENT;` and `SchemaVersion::default()`
compile against eql-bindings 3.0.6. On the new type they failed with
E0284, because nothing chose a version.

CURRENT and an inherent default() are now written on SchemaVersion<3>
alone, as the released type had them. A call that names no version then
has one candidate, v3. Every version still has Default, so the v4 types
build theirs with v4::SchemaVersion::default(). The one v4 caller of
CURRENT, in the encryption test crate, now calls default().

tests/schema_version.rs pins both: plain CURRENT and default() are v3,
and SchemaVersion<4> and v4::SchemaVersion give v4. The changeset goes
back to a minor bump, and says that plain SchemaVersion still means v3.
The 0.3.0 section held about 210 entries written as the work went in.
Many described steps that later work replaced. There was a vitaminc 0.6,
0.8, and 0.9 step before the 0.10 one. Some APIs were added and then
removed before any release. Some fixes were to code that no release had.

A 0.2.0 user could not tell which steps still applied.

The section now says what changes from 0.2.0 to 0.3.0, in 126 entries:

- Entries about items added after 0.2.0 and then removed or replaced are
  gone. These items are the plan builder and its chain, the query chain,
  ValueFrame, dynamic::Value, and the target layouts.
- Steps that later work replaced become the one that is true now: the
  vitaminc versions, the order terms, the dynamic plaintext, and the
  value module.
- Breaking entries about new items move to Added, or are dropped where
  an Added entry covers them.
- Fixed entries for bugs that no released version had are removed.
- The claims that stay were checked against the code on next and the
  0.2.0 tag. Wrong ones are corrected.

The heading drops its date, because 0.3.0 is not published. Long lines
are rewrapped.
Neither version is on crates.io, so the headings drop their dates.

- stack-kms 0.2.0 no longer says the error codes are listed in
  ERROR_CODES. That list was removed before the release.
- stack-encrypt-jsonpath 0.3.0 is the crate's first release. Its entries
  no longer say that the grammar moved out of stack-encrypt, because no
  release of stack-encrypt had it.
@coderdan coderdan changed the title docs(crates): file unreleased changelog entries under their versions fix(eql-bindings): keep SchemaVersion::CURRENT on v3, and ready the crate changelogs Nov 29, 2026
@coderdan
coderdan marked this pull request as ready for review November 29, 2026 03:10
@coderdan
coderdan requested a review from a team as a code owner November 29, 2026 03:10

@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 5dda64c8 · posted from Claude Code · claude-opus-5-5 · effort medium
Sources: code-review · claude-opus-5-5; mattpocock-skills:code-review (standards and spec sub-agents) · claude-opus-5-5
Skills: code-review, company-skills:rust-security, mattpocock-skills:code-review, company-skills:review-cross-check

Findings (4): 4 minor. 3 are inline, and 1 is a reply on #2020 (comment).

Both points from review 5622609991 on #1229 are met. Plain SchemaVersion::CURRENT and SchemaVersion::default() give v3 again, and cargo test -p eql-bindings --test schema_version --all-features passes 5 of 5. Spot checks of the stack-encrypt 0.3.0 entries against the code hold: 22 ValueKind kinds, five FieldReference parameters, Timestamp built with TryFrom, and no order term for an 8-bit integer. The stack-profile [0.36.0] and [0.38.1] filing matches the published crates. company-skills:rust-security found nothing to apply, because the diff handles no secrets or crypto.

Not posted: one other point needs a decision. Line 49 of packages/stack-kms/CHANGELOG.md is 98 characters long, after 5dda64c rewrapped it. The rest of the file wraps at about 74.


Generated by Claude Code

Comment on lines +84 to +86
// `SchemaVersion::CURRENT` with no version to pick (E0284). Both are written
// on `SchemaVersion<3>` alone, as the released type had them, so plain
// `SchemaVersion::CURRENT` and `SchemaVersion::default()` are v3 wherever

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 "as the released type had them" is true of CURRENT only: in 3.0.6, default came from impl Default alone, and there was no inherent default(). Say that the inherent default() is new here, and that it keeps an unannotated SchemaVersion::default() resolving to v3 as 3.0.6's Default impl did. A maintainer who takes it for 3.0.6 surface may remove it as redundant with Default, and that brings E0284 back.

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


Generated by Claude Code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 225ee86. The comment now says that CURRENT is the released type's constant, and that the inherent default() is new. 3.0.6 had only its Default impl. An unannotated call reached that impl because the type had no parameter. The comment also says not to remove default() as a copy of Default, because E0284 would come back.

I also checked these points:

  • No ambiguity. An inherent item wins over the trait method, so SchemaVersion::default() picks v3. v4::SchemaVersion::default() has no inherent candidate, so it uses Default and gets v4. tests/schema_version.rs pins both.
  • should_implement_trait does fire. Without the #[allow], clippy -D warnings fails with "method default can be confused for the standard trait method". So the allow stays, with its reason. new_without_default does not apply, because the item is not a new.
  • The changeset does not claim an inherent default() in 3.0.6. It says that SchemaVersion::CURRENT and SchemaVersion::default() give v3, as they did in 3.0.6. That is true of the behaviour, so it is unchanged.

Checks: cargo test -p eql-bindings --all-features (245 passed), clippy -D warnings, and cargo fmt --check.

Comment on lines +8 to +10
This crate holds the derive macros of `stack-encrypt`, and releases with it.
`stack-encrypt` re-exports the macros, so use them from there. The
`stack-encrypt` CHANGELOG describes the traits the macros implement.

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 stack-encrypt-derive 0.1.0 and 0.2.0 are on crates.io, but this file starts at [0.3.0] and does not say where their changes are recorded. They are recorded in the stack-encrypt [0.2.0] and [0.1.0] sections.

Suggested change
This crate holds the derive macros of `stack-encrypt`, and releases with it.
`stack-encrypt` re-exports the macros, so use them from there. The
`stack-encrypt` CHANGELOG describes the traits the macros implement.
This crate holds the derive macros of `stack-encrypt`, and releases with it.
`stack-encrypt` re-exports the macros, so use them from there. The
`stack-encrypt` CHANGELOG describes the traits the macros implement, and
records this crate's changes before 0.3.0.

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


Generated by Claude Code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 89d5f00, with your wording. The introduction now says that the stack-encrypt CHANGELOG's [0.1.0] and [0.2.0] sections record this crate's changes before 0.3.0.

Comment thread packages/stack-kms/CHANGELOG.md Outdated
`CredentialKeySource`. It records the credential of each request, and
`credentials_seen()` lists them. `FakeDataKeySource` is unchanged.

### Changed

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 Merging Unreleased into [0.2.0] puts the Keep a Changelog ### Changed heading in the same section as git-cliff's ### Features and ### Fixes (lines 44 and 99). Before this PR, [0.2.0] had only Breaking, Features and Fixes. Pick one set for the section: for example, use cliff.toml's group names here, or change cliff.toml to Keep a Changelog names for every crate.

Source: mattpocock-skills:code-review (standards) · claude-opus-5-5


Generated by Claude Code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 89d5f00. The section now uses only cliff.toml's group names, as the rest of the file does: Breaking, Features, and Fixes. The three batch entries came from a fix(stack-kms) commit (fcae1c5), so they moved from ### Changed to ### Fixes.

The comment said both CURRENT and default() sit on SchemaVersion<3> "as
the released type had them". That is true of CURRENT only. 3.0.6 had no
inherent default(): an unannotated call reached its Default impl because
the type had no parameter.

The comment now says that the inherent default() is new, and why it must
stay. Removing it as a copy of Default would bring E0284 back. The
clippy allow for should_implement_trait is still needed: without it,
clippy -D warnings fails.
- stack-kms 0.2.0 mixed the Keep a Changelog heading Changed with
  cliff.toml's Features and Fixes. The three batch entries came from a
  fix commit, so they move under Fixes.
- stack-auth and stack-profile 0.44.0 are not on crates.io. Its newest is
  0.43.0. Their headings drop the date until the release.
- The stack-encrypt-derive changelog now says where its 0.1.0 and 0.2.0
  changes are: in the stack-encrypt changelog.
Nothing in the release turns the crate's "Unreleased" heading into a
version:

- The EQL release-plz line runs `command: release` only. That command
  publishes and never writes a changelog (packages/eql/release-plz.toml).
- changeset version writes the npm package's changelog.
- sync-lockstep-versions.mjs bumps the crate's version only.

So 3.0.0 to 3.0.6 all shipped under "Unreleased", and the newest heading
was 0.4.2. The published tarballs show where each entry belongs:

- Three entries are in every published changelog from 3.0.0-alpha.3 to
  3.0.6. They go under 3.0.0, dated 2026-07-09 from crates.io.
- The rest are new since 3.0.6. They go under 3.1.0, with no date.

In 3.1.0, every entry is about the stack-encrypt and targets features
and the v4 and encryption modules. 3.0.6 had none of them. So entries
that describe a step between unreleased builds are removed or trimmed.

- Four entries are removed:
  - "A plaintext no longer needs Clone";
  - "The EQL v4 types no longer implement EncryptFrom and DecryptInto";
  - "The stack-encrypt feature builds on vitaminc ADR 0001";
  - "A value passed by value is sealed without a copy".
- The two v4::plaintext entries and the entry on the date, timestamp,
  and numeric types become one entry for the types as they are now.
- Sentences that compare with an earlier unreleased build are trimmed.
  Examples are ValueFrame, the one-element ob array, and "TextEq is the
  one producible type".

A new entry says that SchemaVersion is generic, and that plain
SchemaVersion still means v3. The 3.1.0 section is rewrapped.
Brings in #2011 and the OpaqueDebug change. Next added their changelog
entries under [Unreleased]. This branch has no [Unreleased] section, so
the entries now read as part of the upgrade from 0.2.0:

- stack-encrypt 0.3.0, Added: the run-time single-value API, as #2011
  wrote it.
- stack-encrypt 0.3.0, Added: the scalar bound on typed decrypt replaces
  the entry that said a target that is not a scalar compiles.
  `OpaqueDecode` is new in 0.3.0, so the bound is not a break from 0.2.0.
- stack-encrypt 0.3.0, Added: `JsonPlaintext` and `OpaqueBlob<T>` are new
  in 0.3.0. So their entries now say what their `Debug` text is. There is
  no entry for a change of that text.
- stack-kms 0.2.0: the `OpaqueDebug` change for `DataKey` and
  `DataKeyWithTag` is under Refactoring, the heading cliff.toml gives a
  refactor commit. `DeterministicSource` is new in 0.2.0, so its Features
  entry now says what its `Debug` text is.

This branch has not been deployed

No deployments
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