Skip to content

v0.16.0 — language hardening

Choose a tag to compare

@mrschneider mrschneider released this 23 Oct 18:41
· 14 commits to main since this release

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 to on 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's on error; handle error one-line sugar.
  • Typed wire fields (§45) — FieldValue (str/int/float/bool) on Event::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>"; joins expect 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, as executor 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) — abort compensation exists, typed sagas do not.
  • Module import versioning (import "x.aclp" v1.2).
  • Trigger timeout production (in the EBNF, semantics not implemented).
  • Regex/glob patterns beyond prefix wildcards.