7e34fcb598c352b5446eb4a8fb3135650dd0e7a0
Sixth slice of docs/prds/eda-playbook-engine.md (t2db.14): the internal/domain/eda/expr package implementing the resolved open question 1 (CEL decision), standalone -- no coordinator/dispatch yet, mirroring how t2db.13 built ModuleRegistry before any consumer. - NewEnv: CEL env declaring the two context roots (event + actions, both map(string, dyn)) with DefaultCostLimit (100,000, tunable per J5). - Compile: parses/type-checks an expression string; syntax error, unknown root (anything other than event/actions), or type error is a returned error -- the reject-at-load entry point the playbook loader and lint tool will share. - Eval: evaluates a compiled program against a dispatch-time Context; missing-field/wrong-type/cost-limit errors are returned, never panics. No recover() wrapper: CEL is panic-free by design, verified by the hostile-data tests (5000-deep map, no panic). CEL's ref.Val wrappers (types.Bool etc.) are unwrapped to native Go values. Dependency: cel.dev/cel-go v0.32.0 (direct), the only new dependency, already vetted in the resolved doc's vetting record -- no re-vet. Tests (table-driven, verified against real CEL semantics, not guessed): valid boolean against event fields; syntax error at compile; unknown root rejected at compile naming the root; missing event field errors not panics (== on a missing key evaluates false -- verified CEL semantics); has() presence macro; actions context reads; deep-nested hostile data error-free or false without panic; cost-limit enforcement proven by aborting a macro expression under a tiny limit (CEL's cost model accrues on map/filter iteration, not field reads -- verified by probing). task check clean (113/113 UI, exit 0).
Description
Archie connects events from your systems to agents that can investigate, reason, and act.
Define what an event means, map its data into a workflow, and give that workflow an agent equipped for the job: its own execution environment, tools, and identity.
https://archie.catlow.cloud
133 MiB
0 Stars
1 Watchers
0 Forks
Releases
11
Archie v1.62.0
Latest
Languages
Go
76.7%
Vue
13.1%
TypeScript
7.8%
JavaScript
1.2%
Shell
0.6%
Other
0.4%