Skip to content

lexumhq/lexum-runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Lexum-runtime

Deterministic execution engine for the Lexum control-plane programming language.

Overview

Lexum-runtime implements the core execution model of Lexum programs.

It is responsible for:

  • deterministic scheduling of transition slices
  • persistent state evolution through journal + snapshot mechanisms
  • goal-driven reconciliation loops
  • effect intent isolation and replayable execution
  • crash recovery and logical time progression

The runtime is designed to support long-running orchestration systems that must continuously stabilize distributed software environments.

Design Goals

  • Predictable and reproducible system behaviour
  • Structured isolation between execution domains
  • Explicit convergence toward declared goals
  • Failure-resilient state persistence
  • Minimal trusted core suitable for future distributed evolution

Status

Early prototype.

Initial milestones achieved:

  • Bytecode execution loop
  • Append-only journal & snapshots
  • Deterministic scheduler and logical clocks
  • Basic domain state model
  • Developer Experience tools (structured traces, basic compiler errors)

CLI Usage

The Lexum-cli provides commands to run and inspect Lexum programs:

  • Run a program: cargo run -p Lexum-cli -- run path/to/file.Lexum This compiles the file, runs the scheduler, generates snapshot states (.snapshot.json), and creates an execution trace file (.trace.json).

  • View a trace: cargo run -p Lexum-cli -- view-trace path/to/file.trace.json Prints a formatted, human-readable view of the exact sequence of domain state changes and messages.

  • Compile only: cargo run -p Lexum-cli -- compile path/to/file.Lexum Validates syntax and semantics without running the scheduler.

Repository Structure (planned)

  • scheduler
  • executor / virtual machine
  • persistence engine
  • effect runtime
  • observability utilities

Contributing

Design discussions and development are evolving rapidly. Please open issues before large implementation changes.

License

Apache License 2.0

About

Deterministic execution engine and persistent state runtime for Lexum control plane programs.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages