Require explicit behavior selection on spawn, expose randomized actor references, and add named REPL bindings, completion, history navigation, and protocol v2 routing.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Expose the existing versioned JSON-lines dispatcher over TCP, with an enforced IPv4/IPv6 loopback-only bind, bounded nonblocking client handling, request and response size limits, and a shared single-threaded image. Add a serve-network mise task, subprocess coverage, and document the unauthenticated trusted-local-development boundary.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add runa-client for launching the JSON-lines server as a child process and exchanging bounded, correlated protocol requests. Validate response versions and request IDs, expose graceful shutdown, and test the client against the real server process. Clarify that VS Code is planned to use an authenticated network connection to the same live image, while stdio serves local child-process integrations and actors remain in the image.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace the CLI's direct ImageApi dependency with protocol commands dispatched through runa-server. Render typed protocol replies for behavior, actor, event, lifecycle, and scheduler operations, preserving the interactive workflow while exercising the same contract used by the local JSON-lines transport.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Expose the runa-server protocol dispatcher over newline-delimited JSON on stdin/stdout for a trusted parent process. Bound request lines to 1 MiB, return one correlated response for each valid request, and fail explicitly on malformed or oversized input. Add the mise serve task and document that this is not a network listener or an authenticated service.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add a transport-neutral runa-server dispatcher that validates protocol requests, routes supported operations through runa-image-api, and converts actor snapshots, behavior revisions, events, and failures into wire DTOs. Document that event retrieval drains the in-memory queue and that network transport and authentication remain future work.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add the runa-protocol crate with version-1 request, response, and event DTOs, serde serialization, and basic envelope and input validation. Document the wire contract and clarify that transport, dispatch, and authentication remain future work.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Introduce the runa-image-api service boundary for behavior source retrieval, publishing, history, rollback, actor lifecycle, messaging, scheduling, snapshots, and events. Route the local CLI through the API and document that it is trusted and process-local, with no network authentication.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Expose the latest completed Rune step count, instruction pointer, and call-frame depth on active actor snapshots. Preserve telemetry while paused and clear it when execution ends or is cancelled. Document that this is not source-level debugging.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Expose cancellation for active and paused handler invocations. Cancellation drops the invocation, preserves committed state, moves reserved input to the mailbox front for retry, and emits an event. Document that native side effects are not rolled back; test cancelling pending async work and retrying an input under a newly installed behavior.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add a safe-point runtime API for explicit state migration during implementation installation. Migration failures preserve both committed actor state and the current implementation; successful changes emit a migration event. Document the current i64-only contract and leave schema-aware or Rune-authored migrations as future work.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add pause/resume lifecycle operations that retain active Rune invocations and restore their prior runnable or awaiting state. Expose both operations in the CLI and document the between-tick, non-preemptive guarantee.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add a mise launcher for the Runa CLI and expose named behavior publish, history, rollback, install, and spawn operations. Update usage documentation and changelog.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add optimistic behavior publishing, immutable revision history and rollback, plus runtime implementation installation at idle handler boundaries.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add stable versioned source and implementation IDs, exact original-source retention, compiler fingerprints, and an in-memory compiled artifact cache. Use implementation content IDs in runtime actor references.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add a REPL for spawning actors, sending messages, ticking, inspection, events, stop, and restart. Expose ordered actor snapshots and document the local control surface.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Implement typed, budgeted Rune invocation slices and a minimal in-memory actor runtime with bounded mailboxes, state transitions, effects, and lifecycle operations. Add feasibility and runtime documentation with tests for async resumption, cancellation, and scheduler fairness.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add formatting, lint, and test tasks with Tombi, rustfmt, and Clippy configuration. Require agents to pass the pre-commit task before committing.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Move the updated architecture specification into docs, add the Rune adapter library scaffold, and reserve the planned repository directories.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>