Skip to content

v0.17.0 — review response

Choose a tag to compare

@mrschneider mrschneider released this 23 Oct 19:36
· 7 commits to main since this release

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.