Skip to content

Releases

v0.18.1 — loop semantics

Choose a tag to compare

@mrschneider mrschneider released this 23 Oct 20:30

Fixes the last confirmed regression and hardens the differential tests. Patch release on top of v0.18.0.

Fixed

  • for-loop regression in generated Python: the loop arm still called the removed _exec_one — a two-item collection whose body sends a message produced internal error: 'Agent' object has no attribute '_exec_one' instead of two outgoing messages. Loops now run through the ONE dispatcher (_run_one); a caught failure cuts the remaining iterations and the loop variable is restored (including on the failure path). The Rust runtime mirrors the cut exactly — the catch flag propagates through the loop and is cleared at the try boundary — one semantics across both runtimes.

Added

  • Block-aware statement splitting: ; at depth zero AND the closing brace of an inline for/catch block end statements; payload/record/pattern braces never do; a try body waits for its catch before the statement completes; parse_for_block splits block-aware, so nested for inside try parses. Unit test for the splitter included.
  • Parity hardening: new differential case combining for + captured values + interpolated outgoing sends + forced failure + try/catch; the catch proof moved to a dedicated caught state (the timer's flag no longer masks the assertion); capacity replay tests now declare capacity 1; IN the program and assert the rebuilt host preserves it.
  • SessionHost::replay() deprecated: it rebuilds ONLY from journaled session opens and rejects legacy journals it cannot reconstruct faithfully — replay_from() is the reconstruction path.

Docs

  • README and llms.txt aligned with v0.15.0–v0.18.0: 210 tests (including the CI-run Rust/Python parity harness), 55 normative spec sections, lifecycle section covers §49–§55.

Verification

  • 210 tests + the Rust/Python parity integration test, all green.
  • SPEC 0.18.1-draft (§55 normative), CHANGELOG, Cargo 0.18.1.

v0.18.0 — conformance

Choose a tag to compare

@mrschneider mrschneider released this 23 Oct 19:54

Implements all four findings from the second review round. Conformance release: execution paths, replay and formatting now preserve the same semantics.

Language (spec §53-§54, normative)

  • Ordered session-open replay (§53) — session opens are journaled IN ORDER (with the role); replay processes the journal's own opens, so capacity limits and session-ID reincarnations replay exactly. Legacy journals (pre-open events) fall back to the role header. The replayed host's journal is identical to the original's.
  • Single execution dispatcher (§54) — the generated Python runtime had two dispatchers that drifted: enter, begin <id> and interpolated sends silently did nothing inside try/catch. One dispatcher now serves top-level and nested execution with explicit scope/output/error propagation.
  • Formatter obligations (§54) — pretty emits phase declarations and as <role> executor attribution; send payloads are ordered before targets; parse -> format -> parse is a semantic FIXPOINT and formatting is idempotent for a program using every language feature (proven by test).
  • Phase reachability — a declared phase that is never enter-ed warns as unreachable (first step toward global phase analysis; cross-participant phase compatibility remains documented future work).

CI

  • The Rust/Python parity harness runs explicitly in CI: cargo test --test py_parity -- --ignored. The harness was strengthened: enter/begin/fulfil INSIDE try, a forced failure exercising catch, and named-commitment lifecycle comparison.

Fixed

  • Formatter payload order: action_word emitted send payloads after the target — re-parsing swallowed them into the target role.
  • Phase peel dropped the trailing from clause (on inform in work from b reparsed with from: None).
  • Generated Python emitted Rust lowercase true/false literals (NameError at import) instead of True/False.

Verification

  • 199 unit tests + the parity integration test, all green.
  • Both bindings (acl-py, acl-ts) compile.
  • Spec 0.18.0-draft (§§1-54, with an explicit out-of-scope note for cross-participant phase analysis); GRAMMAR/README/llms.txt/CHANGELOG updated.

v0.17.0 — review response

Choose a tag to compare

@mrschneider mrschneider released this 23 Oct 19:36

This release implements all six recommendations from the external language review.

Language (spec §47-§52, normative)

  • Compiler coverage (§47) — compile-time checks recurse into nested actions (for bodies, try bodies, catch arms): dialogue legality, send attribution, linearity and state-target checks now analyze every nesting level. New payload correlation: a receiving handler whose content pattern needs keys absent from the sent payload produces a compile warning.
  • Replay completeness (§48) — host time advances (Event::Tick per session), session closes (Event::SessionClosed) and capability grants are journaled. Exact replay now covers timers, awaits, retry deadlines, capability gating and session lifecycle — not only delivered speech acts.
  • Conversation phases (§49) — phase quoted; phase accepted; + handlers gated by on inform ... in quoted + enter accepted;: the same speech act is only valid in the phase the protocol says it is. Phases are instance-scoped; undeclared references are compile errors.
  • Named commitments (§50) — begin delivery; / fulfil delivery; track several independent obligations per session, each with its own lifecycle; the id-less forms keep session-level semantics.
  • Concurrent conversations (§52) — every session is an independent participant instance: states, phases and commitments never leak across conversations of the same role.

Toolchain

  • Send payload interpolation — send inform {"r": "${y}"}; interpolates full expressions over session state (shared engine with fmt); pre-parsed into segments in generated Python.
  • Semantic parity harness (§51) — tests/py_parity.rs drives the same inputs through the Rust runtime and the generated Python agent and asserts identical out-events and final states — covering typed capture guards, try/catch, phases, named commitments and host ticks.

Fixed (found by the parity harness)

  • try/catch/for bodies executed with an EMPTY scope — nested set x = $n * 2 evaluated captures as unset (0) in Rust while the generated Python was correct. run_actions now threads captures explicitly through every nested path.

Verification

  • 196 unit tests + the parity integration test, all green.
  • Both bindings (acl-py, acl-ts) compile.
  • Spec 0.17.0-draft (§§1-53); GRAMMAR.md extended (phase declarations, in gate, enter, named commitments, expect log, payload interpolation, semantic rules 14-16); README/llms.txt/CHANGELOG updated.

v0.16.0 — language hardening

Choose a tag to compare

@mrschneider mrschneider released this 23 Oct 18:41

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.

v0.15.0 — language completeness

Choose a tag to compare

@mrschneider mrschneider released this 23 Oct 17:54

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 buyer expands to one handler per alternative.
  • Handler sets (§39.3) — handler_set name { ... } fragments, spliced with include 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 literals Type { field: value } now parseable.
  • Errors as flow (§39.5) — internal failures (set/push/put, retry exhaustion) route to on error with $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

  • aclc resolves 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 $var in content patterns produced invalid JSON — normalized at parse time.
  • Inline-block payload braces no longer leak into the from clause.
  • Python emission null → None for unset set fields.

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).

v0.14.0 — Formal Grammar

Choose a tag to compare

@mrschneider mrschneider released this 23 Oct 15:51

ACL v0.14.0 — the language has a formal grammar

Added

  • GRAMMAR.md: complete EBNF definition of the language — lexical
    tokens, program structure, handlers, actions, expressions, guards,
    scenarios, scopes, and semantic rules with normative error codes
    (E014/E015/E020/E021/E030/E040, W201).
  • SPEC §38: the grammar is normative — parser and grammar must
    agree; disagreements are spec bugs.
  • Language features documented: user-defined functions (§38.1),
    record types with field access and literals (§38.2), pattern
    matching with variable capture ($var).

Housekeeping

  • Cargo 0.13.0 → 0.14.0
  • README, llms.txt, CHANGELOG updated

130/130 tests · spec §§1-38 · GRAMMAR.md

v0.13.0 — Hardening and Real-World Readiness

Choose a tag to compare

@mrschneider mrschneider released this 23 Oct 14:49

ACL v0.13.0 — hardening and real-world readiness

All security TODOs closed; the protocol is wired for operating real agents.

Security (§37.1-37.4)

  • HKDF-SHA256 key derivation — raw X25519 shared secrets are never used as symmetric keys anymore (closes the §10.1 v0.1 simplification)
  • Session key derivation — per-channel keys from a root secret via HKDF, no re-handshake per message
  • Identity rotation — Body::KeyRotation signed by the OLD key: provable continuity (verifies under old did:key, announces the new one)
  • Transport auth — acl-httpd --token bearer gate (agent-card stays pre-auth for discovery), acl-wsd --token on the upgrade path. Unauthorized = 401 (tested e2e)

Operations (§37.5-37.7)

  • stdlib/agent_ops.acl — the vocabulary for operating AI agents: telemetry, tool calls, delegation, heartbeats, SLA commitments
  • stdlib/protocols/pilot_ops.aclp — reference protocol: orchestrator delegates a tool call with an SLA commitment; embedded scenario passes
  • 200-session soak with full-journal replay reconstructing exact state

Integration (§37.8-37.10)

  • Registry ↔ AgentCard: register_card / discover_cards — discovery returns real cards
  • Dialogue-matrix runtime enforcement (opt-in): off-policy replies logged and dropped
  • Bridges bidirectional: a2a_task_to_acl (full roundtrip tested) + MCP validate_arguments schema-lite

Housekeeping

  • Version synced: Cargo.toml 0.7.0 → 0.13.0 (was left behind in v0.10-0.12 releases)
  • Architecture diagram: docs/architecture.html — visual stack map (semantic → wire → ecosystem)

130/130 tests · spec §§1-37 · See SPEC.md §37.

v0.12.0 — Enforced Capabilities, LSP, Protocol Registry

Choose a tag to compare

@mrschneider mrschneider released this 23 Oct 14:04

ACL v0.12.0 — the last three gaps, closed

Capability enforcement, default-on (§36.1)

SessionHost now grants NOTHING by default. A program with use fs.read as reader; cannot open a session until the environment grants it — the declaration is enforceable, not decorative. Peer AgentCards verified via peer_satisfies(card_caps)(program). stdlib.* fragments exempt.

Language server (§36.2)

acl-lsp — real LSP over stdio JSON-RPC for .aclp files:

  • publishDiagnostics: parse errors + ALL semantic checks (dialogue matrix, linearity, liveness, guards) with line numbers
  • completion: keywords, all 17 performatives, declared states and roles
    Validated end-to-end with framed JSON-RPC: a dialogue-violating program got its error as a diagnostic; a healthy program got only warnings; completion returned 44 items including program symbols.

Protocol registry (§36.3)

aclc publish file.aclp registry.json [publisher] / aclc protocols / aclc fetch name v1 — file-backed, SHA-256 checksummed: fetch verifies integrity BEFORE parsing; a tampered registry fails with checksum mismatch (tested).

122/122 tests · spec §§1-36

v0.11.0 — The Complete Agent Programming Language

Choose a tag to compare

@mrschneider mrschneider released this 23 Oct 13:53

ACL v0.11.0 — the complete agent programming language

15 additions (spec §35) completing .aclp as a full language for agents.

Computation

  • set total = total + arg.price; — expressions over states and event fields, 18 pure builtins, unset = 0
  • state bids: list; / put meta, key, expr — collections in session state
  • for d in debitors { send reject to d; } — fan-out over collections
  • message invoice = "INVOICE {0}"; + fmt() — templates in the compiled program

Robustness

  • Abort + compensation: abort when quoted and not paid; (latched) and abort; fire on breach handlers — sagas as language constructs
  • Declarative retry: send quote retry 3 backoff 2s exp — deterministic re-emission via tick
  • Capability model: use fs.read as reader; — programs can only speak and remember; external effects are host-gated against AgentCards

Production operation

  • Multi-session host: capacity 5; — isolated concurrent sessions of one protocol
  • Event sourcing: journal + deterministic replay reconstructs exact state (tested byte-equivalent) — crash recovery and audit from one mechanism
  • n-role projection and transport relay; declarations

Ecosystem

  • Scenario tests: scenario "happy path" { buyer sends request to seller; expect seller sends propose; } — executable tests inside .aclp, run via aclc scenarios (expected sends DELIVER — real wire simulation)
  • Composition: include "cnp.aclp" with roles (manager=buyer);
  • Standard fragments: deadline_escalation, double_confirmation
  • Trace debugger: aclc trace file.aclp journal.jsonl — step-through replay printing each role's transcript

Codegen

Generated Python agents now compute — set/push/put/for/abort all work in generated code (validated by running it).

118/118 tests · spec §§1-35 · See SPEC.md §35.

v0.10.0 — The Programming-Language Layer

Choose a tag to compare

@mrschneider mrschneider released this 23 Oct 13:29

ACL v0.10.0 — the programming-language layer

.aclp programs now branch, match content, run on time, and are
checked for deadlock at compile time. 8 additions (spec §34):

Guards (§34.1)

on accept when quoted -> begin; on accept when not quoted -> send error — dispatch gated on session state, compile-checked (not/and/or, bool states only).

Typed session states (§34.2)

state n: int; — runtime-checked assignments; guards require bool states at compile time.

Content patterns (§34.3)

on request {"task": "deploy*"} from buyer — JSON subset matching with prefix wildcards.

Time-driven handlers (§34.4)

every 60s while active as seller -> send progress to buyer — host injects tick(elapsed_ms); the runtime stays clock-free and deterministic (re-ticking never double-fires).

Linearity — deadlock prevention at COMPILE time (§34.5)

Every send must have a receiver: an orphan send is a compile error. n>2 protocols must be fully attributed.

Liveness (§34.6)

Static reachability analysis: handlers that cannot reach a terminal action warn as possible deadlocks.

Endpoint codegen (§34.7)

aclc gen agent py file.aclp out_dir — runnable Python agent skeletons per role. Validated end-to-end: generated agents complete the commitment lifecycle (tested with the actual generated code).

Transcript verification (§34.8)

verify_transcript(prog, events) replays recorded exchanges — off-policy messages are errors, unhandled deliveries are warnings.

Also

  • bye legal after every performative (session termination is always available)
  • 101/101 tests

See SPEC.md §34.