Skip to content

Commit 48342ab

Browse files
authored
docs(plans): generated examples build the encrypted type from what the engine returned
The plan says the whole struct crosses the binding both ways and nothing is rebuilt from parts on either side. The generated examples still copied passthrough fields from the Go value into the encrypted type, so one side rebuilt. Seal now takes only the record the engine returned, reads each passthrough field from it, and returns an error for a value of the wrong type rather than asserting. The README row that said generated code assembles EQL types says the guest returns them. Claude-Session: https://claude.ai/code/session_014jiJy4WhYH2LXojK2jSoxi
1 parent 9a77dec commit 48342ab

6 files changed

Lines changed: 47 additions & 19 deletions

File tree

‎docs/plans/2026-10-04-plan-builder/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The `users` example uses `TextEq`, which is the one EQL type the engine produces
4343
| The guest returns an EQL value for a field with `encrypt_into` | Not run. The target form and the dispatch do not exist. |
4444
| `stashgen` checks a declaration with the embedded guest | Not run. |
4545
| The code works with a database, GORM or pgx | Not run. Nothing here has connected to a database. |
46-
| The EQL types, and how generated code assembles them | Not run. `eql-codegen` does not write Go yet, and the examples use a stub of `eql.TextEq`. |
46+
| The EQL types, and the value the guest returns for them | Not run. `eql-codegen` does not write Go yet, and the examples use a stub of `eql.TextEq`. |
4747
| The steps in "Use the SDK" | Not run. Nobody has followed them. |
4848

4949
## Generate the protobuf package

‎docs/plans/2026-10-04-plan-builder/accounts/account_stash.go‎

Lines changed: 17 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/plans/2026-10-04-plan-builder/contacts/contactstash_stash.go‎

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/plans/2026-10-04-plan-builder/documents/document_stash.go‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/plans/2026-10-04-plan-builder/individuals/individual_stash.go‎

Lines changed: 13 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/plans/2026-10-04-plan-builder/users/user_stash.go‎

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)