rdra-ish
rdra-ish keeps requirements and design in one typed model, from the business value a
system serves down to its APIs, data and state transitions. You write the model in a small
DSL. The CLI type-checks it, finds the gaps between layers, verifies the lifecycle, and
projects the model into diagrams, review tables, exports and domain code.
Install
| From | Command | Gives |
|---|---|---|
| PyPI | uv tool install rdra-ish |
rdra-ish |
| Nix (flakes) | nix profile install github:manji-0/rdra-ish-dsl |
rdra-ish, rdra-ish-lsp, and the tlc and z3 that verify runs |
| Cargo | cargo install --locked --git https://github.com/manji-0/rdra-ish-dsl rdra-ish-cli rdra-ish-lsp |
rdra-ish, rdra-ish-lsp |
Each GitHub release also has rdra-ish
binaries for Linux, macOS and Windows. For a Nix install of a release after v2.3.0, add
/<tag> to the URL. nix run github:manji-0/rdra-ish-dsl -- --help runs without
installing. A tlc or z3 already on PATH takes precedence over the ones Nix brings.
Five-minute tour
# Type-check, and see the next refinement stage of each BUC
rdra-ish check samples/ec-site
rdra-ish next samples/ec-site
# Diagrams for review, as Mermaid text
rdra-ish diagram samples/ec-site --kind usecase --buc BucOrder
rdra-ish diagram samples/clinic-ops --all --out diagrams
# Reachable states, and rules as a table
rdra-ish states samples/clinic-ops --entity Appointment
rdra-ish list samples/clinic-ops --kind rule --format markdown
# Verify every rule and property; then cross-check with TLC and prove with z3
# (needs tlc and z3 on PATH, which the Nix install brings)
rdra-ish verify samples/formal-verification/order.rdra
rdra-ish verify samples/formal-verification/order.rdra --with-tlc --prove
# Domain types for a build
rdra-ish codegen samples/ec-site --lang ts -o domain.ts
What it does
| Feature | What you get | Read |
|---|---|---|
check, lint, next |
Type errors, unresolved references, the gaps between layers, and the refinement stage of each BUC with its open questions | CLI reference |
diagram, list, csv |
The RDRA 3.0 diagrams as Mermaid text, scoped by BUC, use case, actor or entity; CRUD matrix, permission audit, rule tables | diagram |
export |
OpenAPI, AsyncAPI, DBML, SQL DDL, JSON Schema, TLA+ | export |
states |
The reachable states of each entity and the state rules they break | State derivation |
verify |
Every invariant, after assertion and temporal property, decided by a native checker with no JVM; --with-tlc cross-checks it with TLC, and --prove (experimental) proves state rules for any number of rows with z3 |
Formal verification |
verify --symmetry always |
Explores a cone up to instance symmetry, so larger instance counts fit in memory (experimental) | Instance symmetry |
codegen |
Domain code in the Kamae style for TypeScript, Rust and Go: states, rows, transition functions, contracts and a conformance harness. The TypeScript types are covered by the compatibility contract; the rest is experimental | codegen, design |
check --code |
Checks that the service code is what the model generates, compiles against the contracts, and passes the conformance test (experimental) | check --code |
rdra-ish-lsp |
Language server: diagnostics, completion, hover, definitions, references, rename, formatting, code lenses and semantic colors | VS Code extension |
| Agent skills | Skills for writing, reviewing, diagramming and verifying a model, and for implementing a service against its generated contracts | skills/README.md |
The VS Code extension in editors/vscode runs rdra-ish-lsp from
PATH, or from the rdra-ish.languageServerPath setting. Build it with npm run package
there.
Where the method comes from
rdra-ish joins three sources in one model. Each part keeps the names its source uses.
| Part of the model | Source | Elements |
|---|---|---|
| Requirements and business, above the system | RDRA (Zenji Kanzaki) | requirement, goal, business, buc, flow, step, variation, condition, event, actor, extsystem |
| From use case to design, below the system boundary | ICONIX robustness analysis | usecase, screen, api, entity, field |
| Lifecycle and verification | rdra-ish's own | lifecycles, state rules, temporal properties |
From RDRA comes the central idea: one graph of typed elements, where each layer gives the
reason for the next. Below the system boundary, ICONIX reads each use case as boundary
(screen, extsystem, timer), control (api) and entity (entity) objects, which gives
the robustness, sequence and ER diagrams. rdra-ish stops before object-oriented design. It
ends at the APIs, the data and the states. The name stands for RDRA-inspired
Implementation and System Heuristics. RDRA-ish Interpretation
says how it reads BUC, business flow and use case, and Vision records
the design decisions.
Recommended Modeling Loop
Refine the model in small stages instead of filling every layer at once. After each stage,
run rdra-ish check, and review only the concern you just added with a diagram or a table.
rdra-ish next says which stage each BUC has reached and what blocks the next one.
Incremental Modeling Flow gives the stages, and
samples/incremental-order walks through seven of them.
The diagrams and tables are made to go into a PRD and a design document.
PRD and Design Document Guide says
which goes where; prd.md and
design-doc.md of clinic-ops are generated that way.
Documentation
- Incremental Modeling Flow: start here
- Language Reference and CLI Reference
- State Derivation and Formal Verification
- Compatibility: what each release keeps stable
- Diagram Sample Review Guide
- Changelog
Samples
| Sample | Shows |
|---|---|
samples/incremental-order |
The seven-step refinement walkthrough |
samples/ec-site |
A compact end-to-end model |
samples/clinic-ops |
APIs, events and access constraints, with a generated PRD and design document |
samples/patent-ops, samples/food-permit-ops, samples/insurance-claim-ops |
Three Japanese business domains modeled from primary sources |
samples/oidc-auth |
An OpenID Provider with every OpenID Connect authentication scenario (scenarios) |
samples/personal-info, samples/api-contract |
Personal data handling; API contract metadata and the OpenAPI export |
samples/formal-verification, samples/formal-verification-fail |
Small verify examples, one file each |
Versions
rdra-ish follows semantic versioning. Compatibility lists what a
release keeps: a model that loads keeps loading, and check and verify give it the same
verdict within the same printed bounds. main gets each change first and may break those
promises between releases; the Unreleased section of the changelog
lists what changed. A model written for 0.4.x upgrades with
python3 scripts/migrate-syntax-v3.py <model dir> (v1.0.0 notes).
Development
nix develop # Rust, maturin, uv, Java, TLC, z3, Node.js, TypeScript, Go, pre-commit
cargo test --all
nix build # rdra-ish and rdra-ish-lsp into ./result
CI runs every step in the same nix develop shell. pre-commit install sets up a hook
that runs the whitespace checks, cargo fmt, cargo clippy and the tests of the crates a
commit touches.
The files in samples/formal-verification/ are symlinks into
skills/rdra-ish-verify/samples/. On Windows, clone with git clone -c core.symlinks=true.
A release is a v* tag push: it builds the binaries, publishes the GitHub release, and then
publishes to PyPI.
Project layout
crates/
rdra-ish-syntax/ Lexer, parser, AST
rdra-ish-core/ Semantic model, type checks, lifecycle, native checker, prover
rdra-ish-emit/ Diagrams, CSV, exports, codegen
rdra-ish-cli/ The rdra-ish command
rdra-ish-lsp/ Language server
editors/vscode/ VS Code extension
docs/ Language, CLI, verification, compatibility, design notes
skills/ Agent skills
samples/ Example models
scripts/ Migration scripts and CI checks
License
MIT
Metadata
Release files for rdra-ish 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rdra_ish-3.0.0.tar.gz | 4.4 MB | With provenance | Details for rdra_ish-3.0.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rdra_ish-3.0.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for rdra_ish-3.0.0-py3-none-win_amd64.whl |
| rdra_ish-3.0.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details for rdra_ish-3.0.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| rdra_ish-3.0.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for rdra_ish-3.0.0-py3-none-macosx_11_0_arm64.whl |
Total release size: 20.2 MB
Release files / rdra_ish-3.0.0.tar.gz
| Download URL | rdra_ish-3.0.0.tar.gz |
|---|---|
| Size | 4.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
140cf6fe3ccfa5cb8a65c3880bc7e7902a5cbef11e6cf19146e42278c50655d4
|
|
BLAKE2b-256 checksum How to use checksums |
468d21a5fa4d7e49e09d56f318b53edfb27911509252e0fde3ab741f4099a112
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / rdra_ish-3.0.0-py3-none-win_amd64.whl
| Download URL | rdra_ish-3.0.0-py3-none-win_amd64.whl |
|---|---|
| Size | 5.2 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
62c66b9b864f0118526822d196aa7a6d97984027eb95b6b0379804b85b509c31
|
|
BLAKE2b-256 checksum How to use checksums |
88ec47ba135c861ca83ab43983da9811240989658d193270c85575f3a8491f41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / rdra_ish-3.0.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | rdra_ish-3.0.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 5.5 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
a55f94c492a135951cdd12a32e937a5f0fa2ee27ccf3d7306bda8bcc352ab040
|
|
BLAKE2b-256 checksum How to use checksums |
d70b875c3a717dd11b1f54debeba0b065a67e9e2e5c46bed38de4bd43ec88923
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / rdra_ish-3.0.0-py3-none-macosx_11_0_arm64.whl
| Download URL | rdra_ish-3.0.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 5.1 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7d912e77085c7456db8dd5cf36ce8d9f21b6e37ef5a04490b0f9bada16d2d98e
|
|
BLAKE2b-256 checksum How to use checksums |
2127f809588ac19dbd6cb9a73cc0b00b31ecdd72310d9629f7eeae3ca2c9b5a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for rdra-ish 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for rdra_ish-3.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.