Skip to content

Commit f141d4c

Browse files
committed
docs(stack-encrypt): say which record functions run the lowered combinators
The ADR listed the two check functions among the callers of `compose` and `opening`. They run no combinator: they state the same rules through the checks the lowering shares, as the CHANGELOG says. Refs #1488.
1 parent 91c7f8c commit f141d4c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎packages/stack-encrypt/docs/adr/0007-bindings-enter-through-a-plan-never-a-second-executor.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,10 @@ the field index list. The functions in `dynamic::record` that the guest
380380
calls become thin wrappers. Each parses a frame and builds a `Planned`.
381381
The first pull request for #1488 did the lowering: `compose` and
382382
`opening` in `dynamic::planned` build the combinators from the parsed
383-
plan, and `encrypt_with`, `decrypt_with`, `check_source`, `check_record`
384-
and `contexts()` run them. The builder is no longer in the dynamic path.
383+
plan, and `encrypt_with`, `decrypt_with` and `contexts()` run them.
384+
`check_source` and `check_record` run no combinator: they state the same
385+
rules through `check_values`, `check_stored` and `opening_base`, which
386+
the lowering shares. The builder is no longer in the dynamic path.
385387
The inversion is still to come: those functions run `compose` and
386388
`opening` themselves rather than building a `Planned`, so `Planned` and
387389
the record functions are two callers of one lowering until then.

0 commit comments

Comments
 (0)