Repository navigation
fix(stack-encrypt)!: a data plan refuses an order index on bytes - #1611
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
Mutation testing (cargo-mutants,
|
| caught | missed | unviable | timeout |
|---|---|---|---|
| 4 | 0 | 1 | 0 |
Every mutant in the changed lines was caught by a test.
coderdan
left a comment
There was a problem hiding this comment.
Review of this PR's own diff (the typed Rust half of #1577). I compiled scratch programs against the branch for each claim below, and ran one scratch test against the frozen stored rows. None of the scratch files is committed.
Findings
- Blocker.
tests/ui/op_order_on_bytes.stderrquotes the standard library (::: $RUST/alloc/src/vec/mod.rs). rustc prints that snippet only whenrust-srcis installed. The CI toolchain in the rootmise.tomlhas norust-src, so theuitest will fail in CI while it passes locally. It is the only.stderrfile with a$RUST/line. - Should fix.
op_order_on_bytes.rsno longer tests the query refusal it is named for. The plan now fails at.with(Ore), so the.on(..)error is gone from the.stderr. No test now pins that an ordering query over bytes does not compile. - Should fix. The refusal can be bypassed through the public low-level operations. I compiled a user
Index<Vec<u8>>whoseoperation()istarget::ore()and whosespec()isIndexSpec::Ore.Plan::context(..).with::<Vec<u8>, _>((Equality, MyOre)).build()compiles. A userEncryptFrom<Vec<u8>>target that zipsciphertext()withtarget::ore()and returnsIndexSpec::Orefromindexes()also builds as a plan. TheIndexrustdoc invites exactly this: "an index defined in another crate implements it by composing this module's public operations". Sotarget::ore,opeandore_blockdo declare an index in practice. The keyset'sore_term,ope_termandore_block_termcannot be composed into a description, so bounding only the threetargetoperations onop::Orderedcloses the gap. The term-level byte tests (tests/term_bytes.rs,tests/ore_block.rs) and the dynamic path use the keyset functions, so they are not affected. - Should fix. Rustdoc that is now false or silent.
Oresays "Defined for everySthe scheme can order", but the scheme orders bytes and the index no longer takes them (OpeandOreBlocksay "the sameS"). TheIndextrait says it is "Implemented for exactly the plaintexts the index's scheme is defined over", and its diagnostic note saysOreandOpe"take the types their schemes encode".Orderabledoes not say thatVec<u8>has an order term but no order index.Ordereddoes not say it is the bound on the order indexes. - Should fix. Test gaps in
order_index_on_bytes.rs. It pins theIndexandTermSetbounds, andEncryptTargetforOpeTermandOreBlockTerm. It does not pin theEncryptFrombound on the three order terms, orEncryptTargetforOreTerm. I checked:Plan::value::<Vec<u8>>().encrypt_into::<OreTerm<Vec<u8>>>()andkeyset.encrypt_as::<Vec<u8>, Encrypted<(EqualityTerm, OreBlockTerm<Vec<u8>>)>>are refused today, but reverting theEncryptFrombounds would fail no test. - Nit. No positive test that each
Orderedtype still takes each order index through a plan, anEncrypted<..>target andEncryptFrom.tests/ui/pass/indexes.rscoversu32andStringonly. A pass case would catch a later narrowing ofOrdered. - Nit.
CHANGELOG.mdsays the dynamic interface still admits an order index on bytes "so that rows the Go SDK stored stay readable". Reading does not need that (see the dynamic notes below). The reason is that the decision is open. The entry could also say that a record which only opens can still nameEncrypted<OreTerm<Vec<u8>>>, so rows stored before stay readable from Rust.
Checked, and nothing to fix
- Every ordinary typed declaration path is refused. I compiled each of these over
Vec<u8>and each fails with theOrdereddiagnostic:.withwithOre,Ope,OreBlock,(Equality, Ore)andvec![Ope];Plan::value().with(..);Plan::value().encrypt_into::<Encrypted<(EqualityTerm, OreTerm<Vec<u8>>)>>()and::<OreTerm<Vec<u8>>>(); the fields builder'sencrypt_index,index,encrypt_intoandtarget;cipher.encrypt(..).context(..).with(Ore);target::indexed(Ope);encrypt_as;Vec<..>,Option<..>and tuple targets;#[derive(EncryptTarget)]; and#[derive(EncryptFrom)]with anOreTerm<Vec<u8>>field. Markers come from the derive, so they are covered too.&[u8],Box<[u8]>andProtected<Vec<u8>>were neverOrderable. - EQL v4 types. No
eql-bindingsv4 type stores an order term over bytes. - Decryption.
Encrypted<OreTerm<Vec<u8>>>can still be named forDecryptIntoandDecryptSource, and#[derive(DecryptSource)]with such a field compiles. That is right: rows stored before stay readable. - Query-side bounds.
QueryTerm,LabelledTargetandOperatorAnswerfor the order terms are still onOrderable. They cannot be reached for bytes, becauseAnswersandDefaultIndexare already onOrderedand nothing can store an order term over bytes. Harmless, so I would leave them. - The
other types implement traitlists in the new.stderrfiles are sorted by rustc and match the existingop_order_on_bytesoutput, so they are stable. - Mutation testing. The diff changes trait bounds, comments and tests only.
cargo mutants --in-diffhas no function body to mutate. - House rules. No issue numbers in code comments or rustdoc. The CHANGELOG and plan references are allowed.
The dynamic half (information for the decision, not a finding)
I read src/dynamic/record.rs and ran the frozen every_kind row from tests/fixtures/stored_rows_v1.json under edited plans:
record_rowtakes only the"c"node of a sealed field. It ignores every other output key, and it ignores stored fields the plan does not name. A field with no"c"(index only) is never opened (FieldSpec::opens).- With
"ore"removed fromblob, the row opens to the frozenopenedvalue, byte for byte. - With
"ore"removed frombloband the["ope"]-onlyblob_opefield removed from the plan, the row still opens to the same value. - A field with
"outputs": []is refused when the plan is parsed (no outputs).
So option 2's stated cost ("its rows could not be read without a further rule") does not hold for reading. The rule is "remove the field", and the rows open unchanged. Option 2's real costs are: a Go program whose generated plan has the declaration fails to parse until it is regenerated; the frozen-row test parses the frozen plan as it is, so it would need a v2 fixture or a test change; and the record-declarations-v1 cases change. Option 1 keeps every plan parsing and every row opening, but it adds a write-time refusal, and the conformance cases still change meaning (accepted for reading only). Option 3 keeps writing the leaking term for every new row.
|
Pushed |
coderdan
left a comment
There was a problem hiding this comment.
Review of a51efdc41 ("a data plan refuses an order index on bytes") only. The two earlier commits were reviewed before.
I found no correctness defect in the engine change. The findings are stale documentation and weak tests. Most severe first.
-
Low-medium. The declaration grammar still says bytes admit an order index.
conformance/stack-encrypt/declaration-grammar.md:178, the admission table:| bytes | Admitted | Refused | Admitted |. The corpus now refusestype-bytes-ore,type-bytes-opeandtype-bytes-ore_blockwithindex_not_admitted. This file is the specification a new runner (Python, TypeScript) is written from. A runner built from the table admits the declaration, and then fails those three cases. -
Low. The Go CHANGELOG names a tag word that does not exist.
languages/golang/CHANGELOG.md:15-16: "A[]bytefield taggedindex=ore,index=opeorindex=ore_blockis now a field error".ore_blockis not a tag word.stashgen/tag.go:317refuses it asunknown index "ore_block"on every field, before and after this commit;stashgen/declaration.go:197-200says a field reaches it only throughencrypt_into=. A reader would thinkindex=ore_blockis accepted on other types. Only a hand-builtrecord.Planwithrecord.OreBlockis newly refused. -
Low.
coverage.mdstill records the unanswered order index.conformance/stack-encrypt/coverage.md:146-147: "Unsupported combinations the corpora record rather than skip: the order index onbytesstores a term no operator reads". The corpora no longer record it: the declaration is refused and theunansweredlist is gone. -
Low. Two rustdoc lists of refused pairs leave bytes out.
packages/stack-encrypt/src/dynamic/mod.rs:559-560(Reason::IndexNotAdmitted: "match on an integer, equality or an order index on a boolean, any index on a composite") andpackages/stack-encrypt/src/dynamic/record.rs:416-419(FieldPlan::with_type,# Errors, which also names the 8-bit integer). Both are on docs.rs. A caller whose bytes field, accepted by rc.3, is now refused withindex_not_admittedlooks there and does not find the case. -
Low. A Go assertion can no longer fail.
languages/golang/stashgen/refusal_test.go:389checks that no notice contains "no generated method queries". This commit removed the only code that wrote that text (indexesAnswerinemit.go), so the check passes whatever the generator prints about those fields. -
Low. The Go fake engine keeps the list the Rust engine dropped.
languages/golang/stashgen/enginetest/enginetest.go:221-225, inansweredBy:orderable := (integer(t) && !eightBit(t)) || logical(t) || ...is the Go copy of theordered(kind)list this commit deleted fromsrc/dynamic/query.rs. It is now redundant:declaredalready callsindexApplies, which refuses an order index on bytes, a boolean and an 8-bit integer. It is two lists that must agree, the pattern the commit removed from the engine. IfindexApplieschanges andorderabledoes not, the fake admits an index and answers nothing through it, and only the casesTestRefusalsHoldAgainstTheEmbeddedEnginelists would show it.
What I checked and found sound:
- No other path stores an order term on bytes.
FieldPlan::with_typeis where a data plan checks its indexes against the kind, and a field's outputs are fixed inFieldPlan::new, before it. The guest'svalidateandencrypt_recordboth parse throughrecord::plan. No EQL type ineql-bindingshas a bytes plaintext, and a target field's kind must equal its descriptor's. The guest'sse_termstill derives an order term over bytes throughIndexSpec::defines, but as one term, and the Go host calls it only for an output the plan declares. Op::answered_byis unchanged for every kind but bytes. Order indexes answer onlylt,lte,gt,gteandbetween. For those, the deletedordered(kind)andadmits(kind, Ore | Ope | OreBlock)agree on every other kind: both take the integers of 16 bits and wider, both floats, text, decimal, date and timestamp, and both refuse bool, int8, uint8, array, object and json. There is no uuid kind.tests/stored_rows.rs. The stripping is keyed on a frozen field whosetypeisbytesand an output key ofore,opeorore_block. Onlyblobandblob_opeinevery_kindmatch, so every other field is compared as before.STACK_ENCRYPT_REFREEZE_ORDER_TERMS=1passes and leavesstored_rows_v1.jsonbyte-identical, retired terms included (git statusclean after the run).- Mutation testing.
cargo mutants -p stack-encrypt --in-diffover this commit'ssrcdiff: 6 mutants (admitstotrueand tofalse, both&&to||,==to!=, delete!), 6 caught. - Go.
record-declarations-v1.inputs.go.jsonis consistent: its bytes cases take their outcome from the shared cases file. With all four guests rebuilt,go generate ./...changes no file, andgo vet ./...andgo test ./...pass. - Rust.
cargo nextest run -p stack-encrypt -p stack-encrypt-derive --all-features: 1390 passed, 1 skipped.
I will fix all six in one commit on this branch.
|
All six findings from the review of
Checks run on 7044224:
On |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
cipherstash-agent
left a comment
There was a problem hiding this comment.
Review attestation
Reviewed 7044224c · posted from Claude Code · claude-opus-5-5 · effort medium
Sources: code-review · claude-opus-5-5
Skills: code-review, company-skills:review-cross-check, company-skills:review-post
Findings (2): 2 minor, 2 inline, 0 below.
Seven findings were checked against 7044224c, and five were refuted before posting. Order terms over bytes are unreachable through query bounds and stored plans. ore_block is not a tag word. No Go caller can produce a bytes order term. The order-index lists agree today.
Generated by Claude Code
4b30382 to
b24c0c7
Compare
7044224 to
bc8d1d2
Compare
b24c0c7 to
18cff59
Compare
bc8d1d2 to
d07ee6f
Compare
18cff59 to
32519a5
Compare
d07ee6f to
cad6572
Compare
32519a5 to
9916276
Compare
cad6572 to
d8aeadb
Compare
|
Blocked by #1734. This PR should bound an order index on vitaminc-ore 0.10's It will be rebased onto #1732 (Vitamin C 0.10) and moved to that base. |
d8aeadb to
25db7d5
Compare
|
Rebased onto #1732 (Vitamin C 0.10) and moved to that base. The only conflicts were CHANGELOG entries: both sides are kept, and the Go entry sits under Unreleased Breaking. One new commit, 25db7d5, fixes the docs: an old row with a bytes order term opens as |
9d61883 to
a72885c
Compare
6df50d9 to
ddb18a9
Compare
…ttle its conflicts The first version of ADR-0014 and #1737 answer #1734 two ways. The ADR inferred each operation's role from its type through a marker parameter. #1737 uses position: `zip` takes a borrowed description as its argument and runs it first, so only the operation written first is handed an owned value. The review of the ADR reports that the inferred form is ambiguous for two readers. This revision adopts #1737's mechanism and settles each point where the two disagreed: - `passthrough` is the only taker, and a borrowed `passthrough` keeps its copy of a value stored in the clear, as ADR-0012 requires; - the named copy adapter is dropped; - whoever is handed an owned value wipes it on every path, which closes a gap in the public operations on `next`; - queries and their checks are readers; - the claim of one copy is scoped to the typed path, and the dynamic interface's count is stated; - `Date`, `Timestamp`, `Decimal`, `sem::Orderable` and `op::Ordered` are removed, and an order index is bounded by Vitamin C's `Orderable`, which does not cover bytes. That is the typed half of #1611. It also records the order in which #1737, the order bound and #1611 land, and defines "reader" and "taker" in CONTEXT.md. Refs #1734, #1737, #1611.
… from bytes Dan confirmed the revision's three choices on 22 November 2026, so the status is `accepted`. - A borrowed `passthrough` keeps its copy. The ADR now says when the copy happens (a whole record run from a borrow, to keep the plaintext) and what removing it would cost: a caller who needs the plaintext afterwards would clone the whole value, its secrets included. - `Owned` mode requires `Zeroize`, as written. - Stack Encrypt no longer derives an order term from bytes. The keyset's term functions take a `Vec<u8>` on `next` only because `sem::Orderable` covers it, and that trait is removed. No ordering operator compares bytes, and a stored row with such a term still opens. This was left open for #1611 and is now decided. Refs #1734, #1737, #1611.
…able ADR-0014 decision 5, item 4 of #1734. `sem::Orderable` named each type's order target, and `op::Ordered` listed the types the ordering operators answer. They disagreed on bytes: an order index on `Vec<u8>` compiled, and no operator answered it, so its term revealed the order of the rows and answered no query. vitaminc-ore's `Orderable` already names each target, covers a reference to each type, and leaves bytes out. Both traits go, and every order index, order term and ordering operator is bounded by vitaminc-ore's trait, re-exported as `stack_encrypt::Orderable`. An order term now makes the value's order encoding first, and then keys its scheme: the value is read once, in place or by a walk that wipes it, and a term whose keyset is not loaded yet keeps only the encoding. The JSON index derives a string leaf's OPE term from the document in place, where it cloned the string. The keyset's term functions no longer take bytes, and their term-level tests of bytes are removed. A data plan can still declare an order index on bytes until #1611 refuses it, so the dynamic path derives that term by naming the `Bytes` target, and the stored rows and the conformance corpus do not change. Refs #1734
…able ADR-0014 decision 5, item 4 of #1734. `sem::Orderable` named each type's order target, and `op::Ordered` listed the types the ordering operators answer. They disagreed on bytes: an order index on `Vec<u8>` compiled, and no operator answered it, so its term revealed the order of the rows and answered no query. vitaminc-ore's `Orderable` already names each target, covers a reference to each type, and leaves bytes out. Both traits go, and every order index, order term and ordering operator is bounded by vitaminc-ore's trait, re-exported as `stack_encrypt::Orderable`. An order term now makes the value's order encoding first, and then keys its scheme: the value is read once, in place or by a walk that wipes it, and a term whose keyset is not loaded yet keeps only the encoding. The JSON index derives a string leaf's OPE term from the document in place, and a data plan a text field's order term from the frame in place. Each copied the text before. The keyset's term functions no longer take bytes, and their term-level tests of bytes are removed. A data plan can still declare an order index on bytes until #1611 refuses it, so the dynamic path derives that term by naming the `Bytes` target, and the stored rows and the conformance corpus do not change. Refs #1734
ddb18a9 to
23bcce3
Compare
23bcce3 to
c3c0f26
Compare
coderdan
left a comment
There was a problem hiding this comment.
Human pass. LGTM.
cipherstash-agent
left a comment
There was a problem hiding this comment.
Review attestation
Reviewed c3c0f265 · posted from Claude Code · claude-opus-5-5 · effort medium
Sources: mattpocock-skills:code-review · claude-opus-5-5; code-review (manual) · claude-opus-5-5; rust-security · claude-opus-5-5 (no findings)
Skills: code-review, company-skills:rust-security, mattpocock-skills:code-review, company-skills:review-cross-check, company-skills:review-post
Findings (9): 9 minor. 7 inline, 1 below, 1 in reply.
generalminor The PR description's Verification section and rebase table name23bcce3d9,f5eb29daaand964ab591b, which are not commits in this PR. The PR's commits are4e28d8fe4,50bb86d2bandc3c0f2656, andc3c0f265adds the trybuild cases after the run described. Onc3c0f265with rustc 1.94.1, theui,stored_rows,exchange_conformanceandvalue_conformancetests pass.go:testwas not re-run. Update the SHAs, and re-rungo:testonc3c0f265before claiming it.
Eleven findings were checked against c3c0f265, and two were refuted. A target field cannot carry a bytes order index, because no resolver's catalog has bytes plaintext. The order_index_on_bytes.rs doc line is accurate. The built-in code-review skill could not see the PR tree, so its pass was done by hand. The rust-security pass found no path that derives or stores an order term over bytes.
Generated by Claude Code
c3c0f26 to
53658f2
Compare
The typed path already refuses an order index on bytes at compile time. The dynamic path, which the Go SDK uses through the guest, still accepted the declaration: `dynamic::admits` read the table of values the scheme has a term for, and the scheme has an order term for bytes. Each row then stored a term anyone holding two rows can compare, and every ordering query was refused as `operator_not_answered`, from a second list in `dynamic::query`. `admits` now refuses `ore`, `ope` and `ore_block` on bytes, and the second list is gone: `Op::answered_by` reads `admits` alone, so the two cannot disagree again. `IndexSpec::defines` is unchanged, because it reports what the scheme defines, and the low-level term operations still use it. A row stored under such a declaration still opens once the index is removed from the plan. The frozen stored rows declare one on two fields, so their test now opens them under the plan with those indexes removed, and the fixture file is untouched. The conformance corpus changes with the rule: the three bytes declaration cases are refused, the `unanswered` list is removed from the value profile and from both runners, and the query-refusal profile's bytes field declares equality alone. In Go, `stashgen` refuses the tag as a field error, its notice for an index no generated method queries is removed with the only case it had, and the two probe types lose their bytes field. Closes #1577
The engine change in the previous commit was sound. The review found text and tests that still described the old rule, or that no longer checked anything. - The declaration grammar's admission table said bytes admit `ore`, `ope` and `ore_block`. A runner written from it would admit a declaration the corpus refuses. The table now refuses them, and says why. - `coverage.md` listed the order index on bytes as a combination the corpora record. They no longer do. - The Go CHANGELOG named `index=ore_block` as a tag that is now refused. It is not a tag word, and stashgen refused it before this change. Only a hand-built plan with an `ore_block` output on bytes is newly refused. - The rustdoc for `Reason::IndexNotAdmitted` and `FieldPlan::with_type` lists the refused pairs. It now names an order index on bytes. - A stashgen test checked that no notice held a text the generator no longer writes, so it could not fail. It now checks that no notice names one of the test's fields. - The Go fake engine kept its own list of the kinds the orderings are answered over, beside `indexApplies`. That is the second list the previous commit removed from the engine. `answeredBy` now reads `indexApplies` alone, and the unused `logical` helper is removed.
The compile-fail test lists every place an order index on bytes could be declared: a set of indexes, a field of a derived record, a target of its own (owned or borrowed), and the low-level operations. Each is refused by vitaminc-ore's `Orderable`, which does not cover bytes. A pass test holds the other side: every type the ordering operators accept takes each order index in each of those places. The docs on the Go generator, the Go fake engine and `dynamic::admits` say an operator accepts a type, in short sentences, and `admits` names `Orderable` as the typed path's rule. Refs #1577
- `dynamic::admits` reads `IndexSpec::takes` alone. Its own clause for bytes could not change the result once `ordered()` refused bytes, and it kept a second copy of the rule. - The stored-rows test asks the engine (`admits`) which indexes of the frozen plan are retired, where it kept a third copy of the rule. If the engine admits an order index on bytes again, the frozen rows must reseal as they were. - The docs say bytes have no order term, where four of them still said the scheme defines one: `admits`, `Op::answered_by`, the declaration grammar, and the values contract. A test comment and a repeated assertion are removed. - `coverage.md` loses a clause a rebase brought back. It said the typed path refuses after the keyset loads, and the query refusal contract says both paths refuse before. - The Go CHANGELOG keeps the released rc.4 text, and its upgrade note says code generated by rc.6 or earlier fails with `index_not_admitted` until it is generated again. Refs #1577
53658f2 to
b56d955
Compare
Summary
A data plan can no longer declare an order index on a field of bytes. Before, the declaration was accepted, and it leaked. Each row stored a term that reveals its order, and no query could ever use that term.
Stack Encrypt (
packages/stack-encrypt) is the Rust encryption engine under every CipherStash SDK. An order index (Ore,Ope, orOreBlock) stores a term beside the ciphertext, so a query can use<,>, andBETWEENon encrypted values. The term reveals the order of the rows to anyone who holds them. That cost is accepted where a query needs it. No ordering operator compares bytes, so on bytes the cost buys nothing.This PR is stacked on #1737. I rebased it onto #1737 as ADR 0014 sets out. #1737 bounds every typed order index on vitaminc-ore's
Orderable. That trait does not cover bytes. So the typed half of this PR is in #1737, and the commits here that moved each bound toop::Orderedare dropped. This PR keeps the dynamic half, the Go generator, the conformance corpus, the stored-row test, and the compile-fail tests.To upgrade: remove the order index from the bytes field. Rows stored with the term still open, because opening ignores a stored term the plan does not declare. The old terms stay in the database until the row is written again.
Changes
The dynamic interface (the path the Go SDK uses)
dynamic::admitsrefusesore,ope, andore_blockon abytesfield. A data plan that declares one is refused withindex_not_admitted, before any key is requested.dynamic::query, is removed.Op::answered_bynow readsadmitsalone, so the two cannot disagree again.IndexSpec::definesreports no order term for bytes, anddynamic::termrefuses one. This removes the interim path that refactor(stack-encrypt,eql-bindings)!: read every plaintext by reference #1737 kept so that its stored rows would not change.Go
stashgenrefusesindex=ore,ope, orore_blockon a[]bytefield as a field error. It asks the engine, so this follows from the engine change.stashgenno longer prints a notice for "an index no generated method queries". The order index on bytes was the only case left that produced it.ProbeandProbeOpelose their bytes field, and their generated files are regenerated.Conformance corpus
record-declarations-v1:type-bytes-ore,type-bytes-ope, andtype-bytes-ore_blockare now refused withindex_not_admitted.record-values-v1: theunansweredlist is removed from the corpus and from both runners.bytes-binarydeclares equality alone.record-query-refusals-v1: the bytes field declares equality alone. The six*-on-bytes-order-indexcases are renamed*-on-bytes. They are still refused asoperator_not_answered.Tests
tests/ui/order_index_on_bytes.rsis a compile-fail case on the current API. It covers a set of indexes, a derived record field, each order term as a borrowed target, an owned target, and the three low-level operations. Each line is refused with vitaminc-ore's own message.tests/ui/pass/order_indexes.rsis the other side: every type the ordering operators accept takes each order index in each of those places.tests/stored_rows.rs: the frozen filestored_rows_v1.jsonis not changed. Itsevery_kindplan declares an order index on two bytes fields. The test removes those indexes from the plan, opens each row as stored under it, and compares the resealed row without the retired terms.dynamicnow expect bytes to have no order term.Docs
conformance/stack-encrypt/values-contract.md,coverage.md,declaration-grammar.md,query-refusals-contract.md, andexchange-contract.mddescribe the refusal.equalityalone for[]byte.What changed in the rebase
1331afa08,9a90f078e: move each bound toop::Orderedop::Orderedand bounds on vitaminc-ore'sOrderable.5b04747e9: a data plan refuses an order index on bytesb7987b777. It also removes the dynamic bytes term.db16f7507: review fixes78dc15b5d. One doc line moved tosrc/refusal.rs, whereReasonnow lives.03cf6bd36: plain-language docsdynamic/kind.rs, in78cea4aa9. The rest describedop::Ordered.ddb18a91d: old rows open without naming the termb56d955e3addresses the agent review: one rule for bytes inadmitsand the stored-rows test, docs that say bytes have no order term, and the Go CHANGELOG.The compile-fail tests were rewritten for the current API.
PlanandEncryptFromwere removed fromnextafter they were written.Verification
All run locally on
b56d955e3. That is this PR on top of #1737 at378bbf061.cargo nextest run --workspace --all-featuresuitest, the frozen rows, and the conformance runners.--no-default-features-D warnings, doc examples, rustdoc with warnings as errorseql-bindingswithstack-encrypt, andeql-encryption-testswasm:guest:build,:eql, and both deterministic builds)mise run go:testgo generate ./...inlanguages/golangEvery check in the table ran on that commit. Not run: the Postgres suites, the live tests, and mutation testing.
Related
Closes #1577. The base branch is not
main, so GitHub will not close the issue on merge. Stacked on #1737. ADR 0014, "How the work lands", step 3.Review notes
admitsinpackages/stack-encrypt/src/dynamic/kind.rs, thenorderedindynamic/term.rs.