Repository navigation
v0.17.0 — review response
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 (
forbodies,trybodies,catcharms): 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::Tickper 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 byon 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 withfmt); pre-parsed into segments in generated Python. - Semantic parity harness (§51) —
tests/py_parity.rsdrives 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/forbodies executed with an EMPTY scope — nestedset x = $n * 2evaluated captures as unset (0) in Rust while the generated Python was correct.run_actionsnow 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,
ingate,enter, named commitments,expect log, payload interpolation, semantic rules 14-16); README/llms.txt/CHANGELOG updated.