Skip to content

runtime: add drain and step_until_idle - #1

Merged
tiboitel merged 1 commit into
mainfrom
refactor/command-processing
Mar 23, 2026
Merged

runtime: add drain and step_until_idle#1
tiboitel merged 1 commit into
mainfrom
refactor/command-processing

Conversation

@tiboitel

Copy link
Copy Markdown
Owner
  • Add Runtime.drain() with snapshot semantics (process only commands queued at call start)
  • Introduce _handle_commands() to route commands with per-command exception isolation and logging
  • Add has_pending property and step_until_idle() convenience method
  • Update Runtime.step() to use _handle_commands()
  • Bump package version to 0.1.0
  • Add tests tests/test_runtime.py (drain semantics, handler exception isolation)
  • Update docs docs/API_REFERENCE.md, docs/ARCHITECTURE.md and add CHANGELOG.md

- Add Runtime.drain() with snapshot semantics (process only commands queued at call start)
- Introduce _handle_commands() to route commands with per-command exception isolation and logging
- Add has_pending property and step_until_idle() convenience method
- Update Runtime.step() to use _handle_commands()
- Bump package version to 0.1.0
- Add tests tests/test_runtime.py (drain semantics, handler exception isolation)
- Update docs docs/API_REFERENCE.md, docs/ARCHITECTURE.md and add CHANGELOG.md
@tiboitel tiboitel self-assigned this Mar 23, 2026
@tiboitel tiboitel added the enhancement New feature or request label Mar 23, 2026
@tiboitel
tiboitel merged commit c0c981e into main Mar 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant