orchestrator-sm: replace statig with hand-written reducer

Drops the statig 0.4.1 dependency, which was used in exactly one file and
never leaked into the public API. The hierarchical state machine is now a
hand-written reducer: per-state handlers, one supervising handler, and
entry actions as plain inherent methods on Rot, driven by a small engine
(Orchestrator::step) that reproduces statig's per-event semantics —
dispatch to the leaf, fall through to the supervisor on Super, and run the
target's entry action only on Transition.

No observable behavior change; all 42 unit tests pass with tests.rs and
model.rs unmodified.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
4 files changed
tree: 21ed37ac7155a825aff2004f6aec4ad84ce1920e
  1. .github/
  2. docs/
  3. drivers/
  4. hal/
  5. openprot/
  6. platform/
  7. presubmit/
  8. services/
  9. target/
  10. third_party/
  11. tools/
  12. util/
  13. .bazelignore
  14. .bazelrc
  15. .bazelversion
  16. .clang-format
  17. .gitignore
  18. .semgrepignore
  19. BUILD.bazel
  20. CONTRIBUTING.md
  21. LICENSE
  22. MODULE.bazel
  23. MODULE.bazel.lock
  24. pw
  25. README.md
  26. rust-toolchain.toml
  27. workflows.json
README.md

OpenPRoT

Technical Charter

The OpenPRoT Technical Charter can be found at https://github.com/OpenPRoT/.github/blob/main/GOVERNANCE.md

Getting Started

NOTE: We are converting our build system to bazel. We recommend installing bazelisk to automatically manage bazel versions.

Available Tasks

You can run tasks using the Pigweed workflow launcher pw or bazel.

  • ./pw presubmit - Run presubmit checks: formatting, license checks, C/C++ header checks and clippy.
  • ./pw format - Run the code formatters.
  • bazel test //... - Run all tests.
  • bazel build //docs - Build documentation.

Development

The project is structured as a bazel module.

Requirements

  • Bazel. We recommend installing bazelisk to automatically manage bazel versions.

No additional tools are required - all dependencies are managed by bazel.