Skip to content

v0.18.1 — loop semantics

Latest

Choose a tag to compare

@mrschneider mrschneider released this 23 Oct 20:30
· 1 commit to main since this release

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.