diff --git a/.vscode/settings.json b/.vscode/settings.json index eb7dfff52a..8643ea1b8f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,4 @@ { - "conventionalCommits.scopes": ["protect", "examples"] + "conventionalCommits.scopes": ["protect", "examples"], + "rust-analyzer.cargo.features": ["stack-encrypt/dynamic"] } diff --git a/conformance/stack-encrypt/declaration-grammar.md b/conformance/stack-encrypt/declaration-grammar.md index 6ae67da0ec..5f29065e17 100644 --- a/conformance/stack-encrypt/declaration-grammar.md +++ b/conformance/stack-encrypt/declaration-grammar.md @@ -26,8 +26,8 @@ SDK syntax. It is an experimental conformance profile, not a new production wire version. The input is a Vitamin C **typed transport frame**. JSON below is a readable projection; it cannot distinguish every integer width or carry bytes. -The executable authority is `stack_encrypt::dynamic::record::plan_with`, with the -selected target resolver. Native `record::plan` and the Go guest without EQL use +The executable authority is `stack_encrypt::dynamic::record::Plan::from_frame_with`, with the +selected target resolver. Native `record::Plan::from_frame` and the Go guest without EQL use `NoTargets`. The corpus fixes that resolver explicitly as `none`. It checks target syntax and unavailable-target refusals; it does not certify EQL targets. diff --git a/docs/plans/2026-11-22-recipher-typescript-sdk.md b/docs/plans/2026-11-22-recipher-typescript-sdk.md index 3338d379af..1ce7d36edf 100644 --- a/docs/plans/2026-11-22-recipher-typescript-sdk.md +++ b/docs/plans/2026-11-22-recipher-typescript-sdk.md @@ -451,7 +451,7 @@ const opened = await cipher.decrypt(stored, { record: UserRecord }).unwrap(); from, and the stored type is fixed before any row exists. So `encrypt(kinds.string)` names it, in Stack Encrypt's word for the kind. - **`record()` writes Stack Encrypt's plan.** The plan is the form that - `dynamic::record::plan` reads, and the form that Go sends. The + `Plan::from_frame` reads, and the form that Go sends. The declaration above holds this plan: ```ts @@ -474,7 +474,7 @@ const opened = await cipher.decrypt(stored, { record: UserRecord }).unwrap(); name for it. - **The binding reads the plan and calls Stack Encrypt.** The value bridge converts the plan object to a frame, as it converts any value, so - TypeScript writes no frame. `dynamic::record::plan` reads the frame. + TypeScript writes no frame. `Plan::from_frame` reads the frame. `dynamic::Planned` encrypts and decrypts the rows. The binding keeps each plan it has read, keyed by the plan's bytes, so each plan is read once. @@ -1148,7 +1148,7 @@ The core, with no EQL: UUID record field. 3. **Records.** `record`, `encrypt`, `passthrough`, nulls, the encrypted row's type, the type tests, and the declaration, runtime, and read - profiles. This step is the first to call `dynamic::record::plan` and + profiles. This step is the first to call `Plan::from_frame` and `Planned`. One field with `{ record, field }` comes later, when Stack Encrypt has a call for it (#2028). The pending result (#2026) follows the records, and changes every async call before search terms add more. @@ -1299,7 +1299,7 @@ Read on 2026-11-23, on `next` at `e62420d8e`: closed; the others named there are open. - A plan field declares its context as a list of names (`"context": ["users", "email"]`, in the module example of - `packages/stack-encrypt/src/dynamic/planned.rs`), and a `Planned` + `packages/stack-encrypt/src/dynamic/record/planned.rs`), and a `Planned` encrypts and decrypts with no context from the caller (`encrypt_into` and `decrypt_from` in the tests of `dynamic/record.rs`). An expected context is an `Option