Repository navigation
Commit 168f60f
`UpdateRecordConfigSchema` / `DeleteRecordConfigSchema` are strictObjects and
neither declared any spelling of bulk intent, while the CRUD executors never
passed `options.multi`. The data engine accepts a write only when `where.id` is
a scalar or `options.multi` is truthy and throws otherwise, so a predicate
update/delete was unreachable from any flow in any app — while the node
descriptors advertised "Delete records matching a filter." Declared != enforced
(PD #10); #5225's showcase sweep flow was the site it surfaced at.
Adds `multi` (boolean, default false) to both config contracts and wires the
executors to forward it as `options.multi`. One name for one concept (PD #12):
`multi` is the engine's own word for it, so the concept is greppable from node
config to driver call. The engine's rejection path is untouched — refusing an
undeclared predicate write IS the contract.
- spec: `multi` on both schemas, with `bulk`/`all`/`multiple` prescriptions and
a wrong-layer answer for `options: { multi: true }` (edit distance reaches
`multi` from none of them); the same curation is copied to the registration
door in service-automation's engine, per #4001's finding that detection
generalizes for free while prose does not.
- descriptors: `multi` declared on both designer forms, so the form<->Zod
ledger reconciles and the key is authorable in Studio, not only by hand.
- tests: `crud-bulk-intent.test.ts`, whose delete double opens with
`assertEngineDeleteDispatch` from @objectstack/objectql — the producer's own
predicate — so it cannot accept a call the real engine refuses. That is the
#5197 blind spot closed for this file: `run-summary.test.ts`'s zero-parameter
`async delete() { return false }` accepts predicate deletes AND is invisible
to check-engine-double-contract's arity test. Needed a devDependency on
@objectstack/objectql (acyclic — objectql's closure does not contain
service-automation); the eight service-automation baseline entries citing
that missing dep as their blocker are updated to say so.
Claude-Session: https://claude.ai/code/session_018fxLGQdatPbBUvCgiVxg6D
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 96d3d4d commit 168f60f
11 files changed
Lines changed: 609 additions & 17 deletions
File tree
- .changeset
- content/docs/references/automation
- packages
- services/service-automation
- src
- builtin
- spec
- src/automation
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| |||
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| 244 | + | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments