rhei-cli 0.1.0

Command-line driver for the Rhei agent runtime.
Documentation
# States Definition for Markdown Plan Compiler
# This file defines the valid states for tasks and the allowed transitions
# between them. The CLI can print this machine with `rhei states`.

name: rhei
version: 4.0

states:
  pending:
    description: Task is ready to execute. An **Assignee** on a pending task means work is actively in progress.
    instructions: |
      Do the task.

  completed:
    description: Task finished successfully.
    instructions: |
      Treat as immutable. Do not re-open, re-run, or modify unless the user
      explicitly requests it.
    final: true

# Explicit transition rules. Any transition not listed here is forbidden.
transitions:
  - from: pending
    to: completed
    description: Task finished successfully

# Named, reusable state policies. Referenced from `node_policy` below.
profiles:
  default-rhei:
    # Built-in profile used by both the root and every task node in the
    # default configuration. Covers the simple pending/completed flow.
    initial: pending
    allowed:
      - pending
      - completed

# Maps each node to a profile. The root is always a `rhei`-kind node and is
# mapped through `root`. All other nodes resolve through `by_type` (if their
# kind is listed) or `default`.
node_policy:
  root: default-rhei
  default: default-rhei