Repository navigation
Conversation
The check was added while the engine planned to replace `Label` and `IntoLabel` with field paths, so that a crate that never named them would need no change. The context design is settled now, and the check guards against nothing. The two other boundary checks stay: the addon does not link `eql-bindings`, and a default build cannot reach the test keys. Refs #1803.
`RecordPlan` had a hand-written `Debug` that printed only the record's name. The repository's rule is to derive vitaminc's `OpaqueDebug` for a type whose contents must not print, and `Debug` otherwise. A plan holds only declaration data (names, kinds, indexes and the engine's `Plan`), which is not secret, so it derives `Debug`, as its `Field` does now. No other hand-written `Debug` is left in the addon or the value bridge. Refs #1803.
…language The doc comments were dense: long sentences, several ideas each, and terms such as frame, sink, plan, passthrough and outcome used before anyone said what they are. They now use short sentences with one idea each and plain verbs, and define each term where it first appears. Napi copies the addon's doc comments into `native.d.ts`, so the generated declarations change with them. Only comments and the README's prose change. No code, name, message or code example does. Refs #1803.
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true |
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #1803. On top of #1807.
Three cleanups from review of the TypeScript SDK (
@cipherstash/recipher, the package over the Stack Encrypt engine). A boundary test that guarded against nothing is removed. A hand-writtenDebugis now derived. The doc comments and the README are rewritten in plain language. No behaviour changes.Changes
Labelcheck is removed fromcrate/tests/boundaries.rs, and from its mention inAGENTS.md. The check failed if the addon named the engine'sLabelorIntoLabeltypes. It was added while the engine planned to replace both, and that design is now settled. The two other checks stay: the addon does not linkeql-bindings, and a default build cannot reach the test keys.RecordPlanderivesDebug. Its hand-writtenDebugprinted only the record's name. A plan holds only declaration data: names, kinds, indexes and the engine'sPlan. None of it is secret, so the rule is a derivedDebugrather than vitaminc'sOpaqueDebug, which prints nothing. ItsFieldtype derivesDebugtoo. I searched both crates (crate/andvalue-napi/) for other hand-writtenimpl Debugorimpl fmt::Debug, and found none.crate/src/*.rsandcrate/tests/boundaries.rs, the doc comments insrc/*.ts, and the packageREADME.md. Sentences are short, with one idea each and plain verbs. Each term is defined where it first appears, for example frame, sink, plan, passthrough field, field path, outcome object, context and keyset. The prose says "encrypt" and "decrypt" where it said "seal" and "open"; code names are unchanged.native.d.tsis regenerated, because napi copies the addon's doc comments into it.value-napi/is not touched.Verification
Run locally in the package directory, with the debug addon rebuilt:
cargo fmt --all --check: clean.cargo test --locked --all-features:recipher-js39 and 2 passed (the boundary tests went from 4 to 2),recipher-value-napi33 and 1 passed.cargo clippy --locked --all-targets --all-features -- -D warnings: clean.napi build ... --features testing --dts native.d.ts --no-const-enum:native.d.tsregenerated and committed.tsup: built.vitest run: 29 passed.vitest run --config vitest.addon.config.ts: 76 passed.tsc --noEmit -p tsconfig.json: clean.biome check languages/typescript/packages/recipher-js: clean.vitest run --config scripts/vitest.config.mjs: 96 files, 1,598 passed, 29 skipped.crate/srcandsrc.README.md: no "must fix" findings. One "consider" finding is left: it reads the/in the title@cipherstash/recipheras a slash used for "or".Not run: the release build, and anything on Linux or Windows. CI covers those.
Review notes
equalityfinds exact matches,matchfinds text matches, andoreandopecompare order.stack_encrypt::aead.bytes_of(crate/src/ciphertext.rs) about why napi's ownedUint8Arrayis not used. It now says that napi's ownedUint8Arraykeeps a reference to a typed array of another element type even when it refuses it. Also, "each ciphertext is the one Rust and Go write" (value.rs) now says the ciphertext has the form Rust and Go write, since encryption is randomised.cargo docwith-D warningsfails on one link that was already there: the crate docs inlib.rslink to the private modulejs. CI does not run that check. I left it.Labelremoval and theDebugchange are separate commits from the doc rewrite, so each can be read alone.Related
recipher-jsreview cleanups: remove theLabelboundary check, deriveOpaqueDebugonRecordPlan, and rewrite the doc comments in plain language #1803 (this issue), refactor(recipher-js): an error is its diagnostic and nothing else #1807 (the base: an error is its diagnostic),RecipherErrorre-describes the engine's errors with akindand string-literal codes — make it the diagnostic and nothing else #1800.