Repository navigation
v0.16.0 — language hardening
The language hardening cycle is complete: every gap from the language review (items 1-7) is implemented, tested and documented.
Language (spec §40-§46, normative)
- Complete static validation (§40) — expression guards compile-checked (undeclared states, statically incompatible comparisons); state type lattice validated (
float,list<T>,map<K,V>, declared records); runtime typed assignments checked per element (routed toon error); diagnostics carry the handler's source line. - Protocol inheritance (§41) —
protocol supply_v2 v1 extends supply_v1;inherits everything and overrides handlers by trigger+guard signature;export type X;/export fn f;make vocabulary importable (collisions and duplicates are compile errors). - n-role projection (§42) — protocols with any role count; explicit attribution enforced;
on X from R as <role>pins the executor; a 3-role buyer→broker→seller relay runs end-to-end through three projected runtimes. - Declarative await (§43) —
await 3 propose into bids within 5s as ready;collects matching payloads into a list state and completes (or times out) a bool flag; the Python codegen mirrors the collector (E2E validated). - Local error flow (§44) —
try { ... } catch { ... };cuts the failing body and runs the catch; failures inside a catch route to the session'son error;handle errorone-line sugar. - Typed wire fields (§45) —
FieldValue(str/int/float/bool) onEvent::In; native payloads skip string inference; string literals convert implicitly so all existing programs keep compiling;From<ClValue>bridge for wire-side hosts.
Toolchain (§46)
aclc fmt— canonical, idempotent formatting of any program (all declaration kinds; refuses files with imports rather than losing them).- Scenario assertions:
expect log "<substring>";joinsexpect state/commitment/sends. - Function recursion (direct or mutual) is a compile error — the runtime has no call stacks.
Verification
- 187 unit tests, all integration suites green.
- Both bindings (acl-py, acl-ts) compile.
- Spec 0.16.0-draft (§§1-47); GRAMMAR.md extended (typed state types,
asexecutor pinning,await,try,handle error,extends,export type/fn, semantic rules 12-13); README/llms.txt/CHANGELOG updated.
Remaining known gaps (honesty section)
- Saga-style per-action compensation (
undo) —abortcompensation exists, typed sagas do not. - Module import versioning (
import "x.aclp" v1.2). - Trigger
timeoutproduction (in the EBNF, semantics not implemented). - Regex/glob patterns beyond prefix wildcards.