ResilQ Studio · RQmod language · Omarchy-compatible dark theme

From .rqmod
to evidence pack.

ResilQ Studio turns post-quantum cryptographic risk into a developer workflow: write one declarative model, validate constraints, compile to audit artefacts and optionally emit a SpinQ/OpenQASM experiment.

.rqmod source JSON ResilQ IR QARS-NI input CBOM evidence QASM2 export
critical-infra-pilot.rqmod
audit "critical-infra-pilot" {
  targets = ["10.0.0.0/24", "edge.example.lt"]
  layers {
    transit { tls, ssh, dnssec, certs }
    use     { openssl, jwt, hsm, runtime }
    rest    { luks, tde, backups, kms }
  }

  score qars_ni {
    mosca { t_protect="24mo"; t_data="10y"; t_quantum="96mo" }
  }

  backend quantum {
    provider = spinqit; emit = qasm2; max_width = 3
  }
}
.rqmod
Declarative source
audit · score · backend · output
IR
Stable build target
ResilQ JSON schema
STUDIO
Visual workflow
editor · IR · artefacts
CBOM
Auditable evidence
CycloneDX-ready outputs
01 · ResilQ Studio

The user-facing workflow for RQmod models.

Studio is the product layer above the compiler: an editor, validator, artefact explorer and dashboard bridge for ResilQ IR, audit jobs, QARS-NI scoring, CBOM evidence and optional SpinQ/QASM2 experiments.

01
Model

Describe intent, not scripts.

Declare assets, layers, policies, evidence requirements and scoring windows in one readable source file.

auditlayersscore
02
Constrain

Make limits first-class.

Runtime, evidence, max QPU width, output formats and sovereign deployment rules are validated before anything runs.

max_widthsignedair-gap
03
Compile

Generate build artifacts.

Emit ResilQ IR, payloads, QARS-NI input vectors, CBOM skeletons and optional QASM2 jobs.

IRQARS-NIQASM2
04
Preview

Inspect IR before execution.

Security teams can review normalized ResilQ IR, generated payloads, QARS input and build warnings before any audit is submitted.

IR previewwarnings
05
Package

Ship repeatable evidence.

Generated JSON, CBOM, QASM and manifest files are stable enough for review, signing, SOC ingestion and sovereign deployment pipelines.

manifestevidence
06
Theme

One visual system.

The web page and VS Code/VSCodium extension share Omarchy-compatible ResilQ Dark syntax colors.

VS CodeOmarchy
02 · Language surface

One small language for audit, risk and quantum experiments.

The language is intentionally narrow. Production audit logic stays deterministic; quantum backends remain optional, explicit and bounded by backend profiles so QARS-NI remains authoritative.

Audit blocks

Targets, credentials, callbacks and Transit / Use / Rest coverage.

Score blocks

QARS-NI, Mosca windows, layer weights and remediation profiles.

Backend blocks

SpinQit, local simulation, QASM2 export and future bridge adapters.

Evidence blocks

JSON, PDF, CBOM, signed manifests and SOC/GRC output contracts.

language tokens
// Minimal grammar shape
audit "name" {
  targets = ["cidr", "host"]

  layers {
    transit { tls, ssh, dnssec, certs }
    use     { openssl, jwt, hsm, runtime }
    rest    { luks, tde, backups, kms }
  }

  constraint {
    max_runtime   = "72h"
    evidence      = signed
    local_changes = forbidden
  }

  output { formats = [json, cbom, pdf, qasm] }
}
01

.rqmod source

Human-readable audit, scoring, backend and output declaration.

02

Parser + validator

Syntax checks, semantic checks and backend capability checks.

03

ResilQ IR

Stable JSON representation consumed by CLI, UI and adapters.

04

audit job

Webhook-ready payload for Transit, Use and Rest cryptographic discovery.

05

QARS-NI, CBOM

Risk vectors, scoring input and evidence inventory outputs.

06

QASM2 / SpinQit

Optional quantum experiment path for bounded demonstrations.

Compiler pipeline

From model to audit artifacts in one command.

The MVP command is deliberately simple: validate, compile and emit. It creates the exact artifacts a dashboard, SOC connector or sovereign deployment can ingest.

terminal
# Validate and compile
resilq-q validate examples/critical-infra-pilot.rqmod
resilq-q compile examples/critical-infra-pilot.rqmod --out build/critical-infra-pilot

# Optional QASM2 / SpinQit experiment
resilq-q emit qasm2 examples/bell-spinq.rqmod --out build/bell-spinq.qasm
resilq-q run examples/bell-spinq.rqmod --backend spinqit-basic --out build/bell-run
04 · Quantum Linux + SpinQ

Linux-first workflow, SpinQ-ready backend abstraction.

RQmod treats quantum execution as a clearly marked experiment path. The default production path remains deterministic risk analysis; the quantum path emits bounded QASM2/SpinQit jobs for demonstrations, education and future QPU adapters.

Quantum Linux

Runtime target.

Run the CLI, parser, IR emitter, Jupyter notebooks and static docs in a Linux-first, container-friendly environment.

CLIcontaineroffline bundle
SpinQit simulator

MVP backend.

Use `spinqit-basic` or QASM2 export first. Keep physical QPU access behind a later bridge profile.

spinqit-basicqasm2shots
Bridge later

Physical QPU isolation.

A future `spinq-local-bridge` can connect Quantum Linux to a controller host without contaminating the production scoring path.

bridge APIcontrollercapability check
05 · Color theme

Omarchy-compatible ResilQ Dark, adapted for the web.

The web page uses the same vocabulary as the VS Code/VSCodium theme: deep navy background, electric cyan keywords, amber numbers and constraints, violet types/layers, green strings and red diagnostics.

Background#0A0F1F
Foreground#F4F6F5
Keyword#06B6D4
Number#F59E0B
Type#8B5CF6
String#10B981
Token map

Syntax colors are semantic.

Keywords

`audit`, `layers`, `score`, `backend`, `constraint`, `output`.

Types and layers

`transit`, `use`, `rest`, `quantum`, `qars_ni`.

Numbers and durations

`1024`, `0.30`, `72h`, `24mo`, `10y`.

Strings and targets

`"10.0.0.0/24"`, `"vault://prod/ssh"`, `"edge.example.lt"`.

generated outputs
build/
├── resilq-ir.json
├── audit-job.json
├── qars-input.json
├── cbom.json
├── spinq.qasm
├── -curl-preview.sh
└── manifest.json
06 · Build artifacts

Designed for dashboards, SOCs and sovereign deployments.

RQmod does not stop at pretty syntax. The important output is a repeatable artefact set that can be signed, reviewed, sent to an callback, exported as evidence or stored for audit history.

07 · Install

Install ResilQ Studio in five minutes.

The Studio starter is a self-contained Python 3.10+ package with zero runtime dependencies. The same workflow runs on Quantum Linux, Ubuntu, Fedora, Arch and Windows 10/11 — pick a platform tab below.

Linux · bash / zsh

Quantum Linux · Ubuntu · Fedora · Arch

The reference target is Quantum Linux. Any Linux with Python 3.10 or newer works the same way: create a virtual environment, install the starter, run the validator and compile an example model.

Prerequisites

Python 3.10+, pip, git, unzip. All available from the distribution package manager.

VS Codium / VS Code

Optional. Install the bundled .vsix theme to highlight .rqmod files.

install — linux
# 1) Install prerequisites
#    Debian / Ubuntu / Quantum Linux base
sudo apt install -y python3 python3-venv python3-pip git unzip
#    Fedora
sudo dnf install -y python3 python3-pip git unzip
#    Arch / Manjaro
sudo pacman -S --needed python python-pip git unzip

# 2) Get the Studio starter
curl -LO https://rqmod.com/downloads/resilq-studio-starter-v0.2.0.zip
unzip resilq-studio-starter-v0.2.0.zip
cd resilq-studio-starter

# 3) Create an isolated environment and install
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -e .

# 4) Verify with a real audit model
resilq-q --help
resilq-q validate examples/critical-infra-pilot.rqmod
resilq-q compile examples/critical-infra-pilot.rqmod \
  --out build/critical-infra-pilot

# 5) Optional · Omarchy ResilQ Dark theme
codium --install-extension \
  downloads/resilq-omarchy-dark-vscode-v0.1.0.vsix
# or: code --install-extension downloads/resilq-omarchy-dark-vscode-v0.1.0.vsix
Verify

Expected first output.

After compile, the build/critical-infra-pilot/ directory contains resilq-ir.json, audit-job.json, qars-input.json, cbom.json, spinq.qasm and manifest.json.

Without install

Run from a checkout.

If you prefer not to install, run the CLI module directly: PYTHONPATH=src python -m resilq_q compile examples/critical-infra-pilot.rqmod --out build/x. Same on Windows with $env:PYTHONPATH="src".

Air-gapped

Sovereign deployments.

The starter has no runtime dependencies, so the .zip + a Python interpreter are enough for offline installation in sovereign or audit-only environments.

08 · Language roadmap

Where the RQmod language goes next.

v0.1 is a deliberately narrow MVP: a single audit block, a regex-based parser and one backend stub. The roadmap turns RQmod into a stable, formally specified domain language with first-class tooling, while keeping QARS-NI deterministic and authoritative.

v0.2
Grammar

Formal grammar & diagnostics.

Replace the regex parser with an EBNF/PEG grammar, add line/column diagnostics, fix semicolon and trailing-comma edge cases, and publish spec/rqmod-grammar.ebnf.

EBNFdiagnosticsround-trip
v0.3
Reuse

Modules, imports & profiles.

import "common/mosca.rqmod", let bindings, and extends "base.rqmod" so org-wide audit profiles can be shared without copy-paste.

importletextends
v0.4
Validation

Schema-first validation.

Wire the existing rqmod-ir.schema.json into runtime validation, add --strict, custom rule plugins, and a contract suite that round-trips every example through parser → IR → re-emit.

JSON Schema--strictplugins
v0.5
Tooling

LSP, formatter, tree-sitter.

Language Server (completion, hover, go-to-symbol, live diagnostics), resilq-q fmt, a tree-sitter grammar for GitHub/Neovim, and pre-commit hooks.

LSPfmttree-sitter
v0.6
Backends

Real SpinQit + multi-backend.

Replace the SpinQit Basic mock with the real adapter, add Qiskit/Cirq emitters for QASM2, and introduce a spinq-local-bridge profile for physical QPU controllers.

SpinQitQiskitbridge
v1.0
Production

Signed evidence & CycloneDX 1.6.

Cosign-signed manifests, finalized CycloneDX 1.6 cryptoProperties mapping, IR → .rqmod decompiler for round-trip review, and a public registry of backend profiles.

cosignCycloneDX 1.6decompile
Non-goals

What RQmod will not become.

RQmod is not a general quantum programming language. The quantum path stays bounded and non-authoritative; QARS-NI scoring stays deterministic; the parser stays small. RQmod competes with audit DSLs, not with Qiskit, Cirq or Classiq.

Stability promise

IR is the contract.

The .rqmod surface is allowed to evolve, but ResilQ IR (resilq-ir.json) is the stable boundary that downstream dashboards, SOC connectors and signing pipelines depend on. Every grammar change is required to round-trip through IR without semantic loss.

RQmod.com

The Studio page for the RQmod ecosystem.

Use this landing page as the public front door for ResilQ Studio: RQmod syntax, compiler pipeline, build artefacts, Quantum Linux workflow and SpinQ-ready examples.

Contact Read syntax