docs(eda): record the shipped action-playbook rules and stale claims

This commit is contained in:
sam committed 2026-09-22 09:51:40 +10:00
1 parent f498f593c9
commit 3f2a3294d9
4 files changed
+18 -13

No files matched your search

+8 -5
View File
@@ -66,11 +66,15 @@ naming the playbook and the offending action, for:
must be a lowercase CEL field name writable as `actions.<id>` (so a CEL
keyword such as `in`, `true`, `false`, or `null` is rejected at load);
- an `actions.<id>` read of an id no earlier action declares;
- an `actions` read that is not statically resolvable to an id (a dynamic
index, `in`, a comprehension — already enforced);
- an `actions` read that is not statically resolvable to an id (any map index,
literal or dynamic, `in`, a comprehension): the typed `actions` root is an
object type, so only field selection `actions.<id>` resolves and the
`actions["id"]` spelling is not accepted;
- a `result` field the referenced kind's `Result` does not define;
- a reference to an earlier action that produces no result;
- an unknown `position`, an unknown `kind`, or a `module` action with no `kind`;
- a field belonging to the other shape (`kind` on a `workflow` action, or
`workflow` on a `module` action);
- an arg KEY the kind's `Args` schema does not define. Arg VALUE type-checking
is tracked as `archie-core-t2db` debt, not shipped here.
@@ -83,9 +87,8 @@ type-checking is tracked as `archie-core-t2db` debt.
Result typing depends on the ids a playbook declares and the kind each id runs,
so the CEL environment is built from one playbook's action list rather than once
per `Store`. `expr.NewEnv()` declares `actions` as `map(string, dyn)` and takes no
parameters, so its signature changes to accept the declared ids and their result
types.
per `Store`, and `expr.NewEnv` takes that list: each declared id becomes a field
of the `actions` object typed by its kind's `Result`.
## Running an action playbook is out of scope
+5 -4
View File
@@ -29,16 +29,17 @@ linear evaluation when macros are bounded, cost-limited).
```yaml
actions:
- position: module
- id: build
position: module
kind: log
args:
message: '"build finished"' # literal
when: 'event.label == "bugfix"' # gate on event field
- position: module
kind: notify
kind: log
args:
message: '"priority " + string(event.priority)'
when: 'actions.notify.result.delivered == true'
message: '"done: " + string(actions.build.result.written)'
when: 'actions.build.result.written == true'
```
## Trust boundary of the expression