Amussis¶
Shared Rust crates of the Plurano framework family, kept in one workspace.
crates/amussis-decision is the decision engine, imported with its history
from the operating-system repository (aegis-justitia).
crates/amussis-decision-wasm is the WebAssembly module (eight exported
functions, three host functions: clock, signer, sink), and bindings/go
(package decision) runs it without cgo.
Name¶
Latin amussis, the mason's levelling board; ad amussim means "exactly". Pronounced ah-MOOS-sis.
A crate is named after what it does, with the family name in front:
amussis-decision is the decision engine. The deity names (Justitia, Minerva,
Vesta) stay the operating system's names for its components.
Why Amussis¶
- The same decision engine serves Rust (
amussis-decision) and Go (bindings/go), where the WebAssembly module is embedded and run in the process with wazero: no cgo, no shared library and no Rust toolchain for the consumer. - The WebAssembly module has no access to the operating system and asks the
host for three effects only:
Clock,SignerandSink. - Every Go block in the README is compiled and run: each stands line for line
in
examples/go-consumer/example_test.go, whose examples check their output. tools/wasm_module.py checkrebuilds the WebAssembly module from source and compares it with the committed module thatbindings/goembeds: byte for byte first, and on a Windows or macOS host whose bytes differ, up to function order (see Exceptions).tools/third_party_notices.pywrites the third-party licence notices of the WebAssembly module from the lock file and the pinned toolchain, and holds the committed notices to them.
%%{init: {'theme': 'base', 'themeVariables': {'fontFamily': 'ui-sans-serif, Segoe UI, Helvetica, Arial, sans-serif', 'fontSize': '15px', 'primaryColor': '#111a35', 'primaryTextColor': '#e2e8f0', 'primaryBorderColor': '#3b82f6', 'lineColor': '#3b82f6', 'edgeLabelBackground': '#111a35', 'tertiaryColor': '#0b1020'}}}%%
flowchart TD
classDef input fill:#0b1020,stroke:#06b6d4,stroke-width:2px,color:#e2e8f0
classDef step fill:#111a35,stroke:#3b82f6,stroke-width:2px,color:#e2e8f0
classDef decide fill:#111a35,stroke:#8b5cf6,stroke-width:2px,color:#e2e8f0
rust["Rust program"]:::input
engine["amussis-decision<br/>decision engine"]:::decide
wasm["amussis-decision-wasm<br/>wasm32 module, eight exported functions"]:::step
host["Host supplies<br/>Clock, Signer, Sink"]:::input
gobind["bindings/go<br/>package decision, embedded module"]:::step
wazero["wazero runtime<br/>runs in process, no cgo"]:::step
goprog["Go program"]:::input
sink["Sink<br/>signed records, audit chain"]:::decide
rust --> engine
engine --> wasm
host --> wasm
wasm --> gobind
gobind --> wazero
wazero --> goprog
wasm -->|signed records| sink
Pages¶
- Verification gate: one target (
make verify-all), the same one CI runs on Linux, macOS and Windows. - Exceptions: dated rule exceptions in
exceptions.tomland the checks that hold them. - Shared settings: the toolchain pin, formatter and lint
tables taken from the operating-system repository (
settings-source.json). - Releases: what the release workflow files do from
v0.1.0on. - Handover: conversation schemas and subsystem graph and Handover: service unit.
- Architectural Decision Records.
The Go binding guide is in the repository README.