Repository navigation
v0.15.0 — language completeness
The protocol language (§33-§39) is now complete: every gap from the language review is closed.
Language (spec §39, normative)
- Expression guards + typed captures (§39.1) —
on inform {"price": $p} when $p > 100 -> ...: guards are full expressions evaluated with the trigger's captures in scope; capture values are type-inferred (int/float/bool/string). - Trigger alternation (§39.2) —
on (accept | reject) from buyerexpands to one handler per alternative. - Handler sets (§39.3) —
handler_set name { ... }fragments, spliced withinclude handler_set name;, roles checked at include time. - Static typing (§39.4) — compile-time assignment type checks (int widens to float; captures/
arg.*stay runtime-checked); record field access and literals validated against declared types; record literalsType { field: value }now parseable. - Errors as flow (§39.5) — internal failures (set/push/put, retry exhaustion) route to
on errorwith$reason, recursion-guarded. - Contract-net (§39.6) —
broadcast propose to bidders;fan-out over a list state +prefer(bids, "price")lowest-bid selection. - Rich templates (§39.7) —
fmt("price ${p} total ${total + 2}"); registered templates late-bind${expr};$${is the literal escape. - Modules (§39.8) —
export handler_set name;+import "common.aclp" as m;: only exported sets splice, namespaced, collision detection, cycle-guarded imports.
Toolchain
aclcresolves includes/imports relative to the program file for every subcommand.- Python codegen supports all of the above in generated agents — validated by running the generated code (guards, captures, broadcast, prefer, templates).
Fixes
- Tokenizer zero-progress loop on
$capture tokens. - Bare
$varin content patterns produced invalid JSON — normalized at parse time. - Inline-block payload braces no longer leak into the
fromclause. - Python emission
null→Nonefor unsetsetfields.
Verification
- 160 unit tests, all integration suites green.
- Both bindings (acl-py, acl-ts) compile.
- Spec 0.15.0-draft (§§1-39), GRAMMAR.md extended (alternation, broadcast, record literals, expression guards, module syntax, semantic rules 8-11).