DigitalRust provides Rust infrastructure for both sides of a model-generated application. The native client implements Dionysus and the server implements Aphrodites 3.0. Both specifications are published in the Digital Architecture Framework (DAF) repository.
| Side | Specification | What DigitalRust provides |
|---|---|---|
| Client | Dionysus 1.0 | The Dionysus UI Kit renders model-defined views with Rune, manages navigation and client state, and calls the server's public operations. |
| Server | Aphrodites 3.0 | The server runtime dispatches typed operations, enforces permissions, applies business rules, and manages persistence and events. |
The DAF model defines the application's entities, relationships, operations, and views. Dafrion owns the generator and uses the same model to produce client and server code and descriptors. DigitalRust supplies the runtime infrastructure that the generated applications use. Dafrion generator
The server can run as a standalone generated application, embed in a twin host, or run inside an R3AKT server. Standalone deployments can use the isolated SeaORM SQLite adapter. Embedded consumers own their runtime and storage adapters. Server implementation specification
A generated view invokes a public operation through the client HTTP transport. Axum hands the request to the dispatcher, which checks permissions and runs the operation and its rules within a unit of work. A successful write commits state and staged outbox entries together, and the client receives the operation's outcome.
The standalone SQLite persistence adapter uses SeaORM. Its runnable Filmology example stores the required release date and optional premiere date in distinct relationships. Filmology's nine entity types and five relationships run on the descriptor-driven model (digitalrust-core::graph). Each request is one unit of work through the Store contract (digitalrust-runtime::persistence): in memory, or on SQLite through GraphStore, which maps any model's descriptors to tables, role columns and join tables. Requests run through the dispatcher (digitalrust-runtime::dispatcher) with typed operations, action keys and production rules (digitalrust-runtime::rules). They are served over HTTP with a generated OpenAPI description (digitalrust-axum). All 20 Filmology scenario steps pass over HTTP, against the Aphrodites references pinned in crates/digitalrust-conformance/aphrodites.
Step 2 is built: components installed, listed and removed while others serve (ComponentManager), manifests checked, action keys and references across components, events staged with a request and published only after commit, an outbox relayed between machines at least once with repeats recognised, typed settings with secrets redacted, and the access filter. Customer Inquiry and Policy Inquiry run side by side over HTTP (/components/{id}/operations/{name}), and the Policy Inquiry scenario passes. Calls and events also travel between processes over HTTP (digitalrust-host::remote): events as CloudEvents to POST /events, resent by relay_every until acknowledged, repeats recognised after a restart, and described at GET /asyncapi.json. Reticulum is not wired yet.
Step 3 is built: a manifest's binding is read, a component whose binding is missing or invalid runs unbound and says so, and a running instance states its component, version, build and manifest digests, deployment and instance (GET /components/{id}/identity). Digests are RFC 8785 and SHA-256 (digitalrust-codecs::digest), checked against the schemas' known answers. Every entity type also gets a generated list_<type> operation that finds by value, by related entity and by a related entity's value.
The Rune client covers Dionysus steps 1 to 4: Show, Work, Navigate and Stay current, and DUK Phase 5, visual certification: four themes with checked contrast, run-time theme switching, reduced motion, a gallery (dionysus-gallery) and reference screenshots with a regression check (clients/dionysus-ui-rune/EVIDENCE.md).
Step 4 is built: each execution is counted under its one outcome (runtime::reporting::Metered), and closing a period gives measure reports, which travel as events through the outbox. digitalrust-host::twin::TwinHost delivers them to the twin host as CloudEvents JSON (codecs::evidence), keeps them while the host is unreachable, and reads each receipt back. Lifecycle reports and corrections are made too. The Customer Inquiry T1 scenario runs end to end against a mock twin host; the existing twin host's real routes and credentials are not wired yet.
Step 5 is built: a change package is read (codecs::package) and checked five ways before it is applied (runtime::change::ChangeEngine): the proof, the approval digest, the component, manifest and expected revision, validity, and what the manifest's control allows. Settings change live (LiveSettings), whole or not at all and at most once, under one revision per component, and every package gives a change report. POST /components/{id}/changes takes packages (digitalrust_axum::change_handler). The Customer Inquiry T2 scenario runs over HTTP: the reference's own package sets Retry-After to 30. The proof is the schemas' example HMAC; the real signature is undecided.
Step 6 is built: a rule listed in the manifest's control.rules can be changed at run time by a class L2 package, checked like a setting change and moving the same revision. DigitalRust writes rule content as JSON ({"if": [...], "set": {...}}, see runtime::rule_change); new content must stay within what the rule may read and change. Step 7 is built: a class L3 package replaces a component by a verified build from the host's artifact store (host::installation), keeping its data, settings, rule contents and revision, and falling back to the old build when the new one fails to start. The Customer Inquiry T3 scenario runs over HTTP. Replacement runs in process; the specification's supervised-process design is not built yet.
The Rune client also includes the dionysus-visualization diagram engine (DUK Phase 6), and every aggregation widget offers a selection among all existing candidates and the creation of a new element, from either end. The plan is in docs/DigitalRust_Implementation_Specification.md.
Concepts coordinated by declarative synchronization rules also work. They are described in docs/Concepts_and_Synchronization.md.
Certification (29 November 2026, re-reviewed). Steps 1, 6 and 7 are compliant. Steps 4 and 5 are not certified: nothing fails, and rules that need the twin host are unchecked. Step 2 fails on 2.10 (no component declares its event types) and Step 3 on 3.3 (a mismatched build is refused, not warned about). The client kit is not compliant. Each sheet names the rules still failing or unchecked, and what closes them: docs/certification. The framework states level C, which needs Step 2.
See the Architecture Decision Register for adopted, proposed and deferred choices, implementation status, evidence and linked issues. Contributors and coding agents must follow the maintenance instructions and update affected decisions in the same pull request.
| Crate | Holds | Depends on |
|---|---|---|
digitalrust-core |
Identifiers, entity and relationship descriptors, operations and their endings, action keys, rule declarations, validation, events, the manifest's component part, the clock, the concept contract and synchronization rules | nothing outside Rust (minimum Rust 1.85) |
digitalrust-runtime |
The dispatcher, persistence and the outbox, rules, events, configuration, network routing, component management, the access filter, the synchronization engine | digitalrust-core |
digitalrust-axum |
The HTTP adapter (minimum Rust 1.88) | digitalrust-runtime |
digitalrust-host |
Server assembly and Main, files, telemetry, security, installation | digitalrust-runtime |
digitalrust-codecs |
Codec registry, the JSON codec, CloudEvents and AsyncAPI, the manifest reader | digitalrust-core |
digitalrust-conformance |
The Aphrodites conformance runner | digitalrust-runtime |
digitalrust-view |
Diagram views of model elements: occurrences that refer to model elements by IRI, geometry, presentation, diagram definition and view state, layered layout; compatible with Dafrion's saved views (ADR-023) | oxiri, serde, thiserror (minimum Rust 1.85) |
Each module's first line names its component and the Aphrodites rules it serves. Phase 4 components (service management, health, translation, other codecs, federation, provisioning) get a module when a consumer needs them. Storage and broker adapters for an existing product are built in that product's own workspace, not here.
| Path | Responsibility |
|---|---|
digitalrust-client-core |
Renderer-independent client contracts, views, and operations |
digitalrust-client-runtime |
Client state and navigation |
digitalrust-client-http |
HTTP transport for public server operations |
clients/dionysus-ui-rune |
Native Rune renderer, themes, and diagram engine in a separate Cargo workspace |
See the proposed Dionysus UI Kit implementation specification and the client certification sheet. Rune is the primary renderer. GPUI + GPUI Kit is deferred.
cargo build --workspacecargo test --workspacecargo clippy --workspace --all-targets -- -D warningsCheck that the portable crates still build at their minimum Rust version:
cargo +1.85 check -p digitalrust-core -p digitalrust-codecs -p digitalrust-viewThe SeaORM adapter has its own Cargo workspace and lockfile. This keeps its native SQLite dependency out of embedded applications. Generated repositories run their entity operations inside one SqliteStore::transaction callback per request. The example bootstraps a fresh database for the two date roles.
cargo run --locked --manifest-path adapters/seaorm-sqlite/Cargo.toml --example filmology_dates
cargo test --locked --manifest-path adapters/seaorm-sqlite/Cargo.toml --all-targetsThe Filmology HTTP host takes typed settings as name=value arguments (digitalrust_host::serving). A setting that does not work stops the start, with a message naming it. Ctrl-C or SIGTERM lets requests in flight finish before it exits.
cargo run --locked --manifest-path adapters/seaorm-sqlite/Cargo.toml --example filmology_http -- database='sqlite://filmology.db?mode=rwc' address=127.0.0.1:8080The Rune example captures all three diagrams in the Dafrion light theme. Run these commands from the repository root.
cargo run --locked --manifest-path clients/dionysus-ui-rune/Cargo.toml --example readme_architecture -- --snap docs/architecture/project-structure.png
cargo run --locked --manifest-path clients/dionysus-ui-rune/Cargo.toml --example readme_architecture -- --scene request --size 800x540 --snap docs/architecture/write-request.png
cargo run --locked --manifest-path clients/dionysus-ui-rune/Cargo.toml --example readme_architecture -- --scene crates --size 896x688 --snap docs/architecture/crates-and-components.png

