Clean-room media framework in Rust, written from public specifications.
Planning stage: no framework code exists yet; milestone M0 sets up the workspace and gates, and M1 starts Matroska demuxing with FFV1 decoding.
alveus is a planned media framework in Rust: containers, codecs, filters and a command-line tool, written clean-room from public specifications (CLEANROOM.md). Status: planning. There is no framework code yet. The plan is in docs/plan/. Milestone M0 sets up the workspace and the gates, and the first media milestone, M1, is Matroska demuxing with FFV1 decoding (milestones).
alveus is a Latin noun meaning a hollow or cavity, and from that a trough, the hull of a ship, and the bed or channel of a river — a river-channel sense that fits a framework that streams flow through. It derives from Latin alvus, "belly", and English keeps the word as a rare legal term for a river's bed or channel (source: Wiktionary, "alveus"). Pronunciation is AL-weh-us (with the last vowel as in English put; IPA [ˈaɫ.we.ʊs]) in Classical Latin and AL-vee-us (IPA /ˈæl.vi.əs/) in English. The name is always written in lower case (docs/index.md).
📖 Documentation · Documentation source
alveus sets out to build a media framework around explicit provenance, modular crates and verifiable conformance (docs/plan/README.md).
| Aspect | How alveus handles it |
|---|---|
| Clean-room provenance | Contributors work from public specifications and from black-box measurements that a separate spec writer records, with an attestation on every pull request (CLEANROOM.md). |
| One crate per component | The planned Cargo workspace gives each container, codec and shared concern its own alveus-<name> crate so callers link only what they need (docs/plan/architecture.md). |
| Verifiable exit criteria | Media milestones close on an exact oracle (bit-exact frames, a conformance stream set or a stored checksum), and only those that add a demuxer or decoder (M1, M3, M5, M6 and M7) also close on fuzz targets that run for one CPU hour without a crash or hang (docs/plan/milestones.md). |
| High-integrity Rust | All planned code follows the HISS-21 rules: no recursion, bounded loops, explicit I/O deadlines, no allocation in hot loops, typed errors, and unsafe only in SIMD modules and the C interface, each block with a // SAFETY: proof (AGENTS.md, docs/plan/architecture.md). |
| Licensing and REUSE | The repository is licensed under EUPL-1.2 (LICENSE), with per-file copyright and licence metadata checked by reuse lint (REUSE.toml). |
There is nothing to install yet because alveus is in the planning stage and has no framework crates (docs/plan/README.md). To explore the plan and verify the repository locally:
-
Read the milestone ladder and the scope matrix to see what is planned and in which order.
-
Clone the repository and run the repository gate (Makefile, .config/praetor/engine.mk), which needs Go 1.27 or newer and network access on its first run, when .config/lefthook/engine.sh installs the engine version pinned in .github/workflows/ci.yml, and
gitleaks8.30.1 onPATH(Makefile line 24):git clone https://github.com/vidiko/alveus.git cd alveus make verify-all
A planned conversion runs through five stages between a byte source and a byte sink, or copies packets directly from demuxer to muxer (docs/plan/architecture.md).
%%{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
src["Byte source"]:::input
demux["Demuxer"]:::step
dec["Decoder"]:::step
filt["Filters"]:::step
enc["Encoder"]:::step
mux["Muxer"]:::step
sink["Byte sink"]:::input
src -->|bytes| demux
demux -->|packets| dec
dec -->|frames| filt
filt -->|frames| enc
enc -->|packets| mux
mux -->|bytes| sink
demux -.->|"packets (copy)"| mux
See docs/plan/architecture.md for the planned crate table and trait interfaces.
| Page | What it answers |
|---|---|
| Documentation site | Published overview, project plan and architectural decision records (mkdocs.yml). |
| docs/plan/README.md | How the project plan is organised and which plan pages are still to be written. |
| docs/plan/milestones.md | What is built in which order from M0 to M7, and the exit criteria that gate each milestone. |
| docs/plan/scope-matrix.md | Which containers, codecs, filters, protocols and hardware APIs are planned, from which specification and at which tier. |
| docs/plan/architecture.md | How the Cargo workspace is split into crates, the traits between stages, and the HISS rules every crate follows. |
| docs/adr/README.md | Index of append-only Architectural Decision Records covering the first vertical slice, CLI observation and normative reference code. |
| CLEANROOM.md | Allowed and forbidden inputs, the spec-writer and implementer role split, pull-request attestation and contamination handling. |
| CONTRIBUTING.md | High-Integrity Systems Standard (HISS) rules, 3D testing discipline, Conventional Commits and local verification. |
| SECURITY.md | Supported versions and how to report a vulnerability privately. |
-
Read CLEANROOM.md. It decides what you may read before you write anything.
-
Read CONTRIBUTING.md for the repository standard, commit format and test discipline.
-
Run the repository gate before opening a pull request:
make verify-all
-
Fill in the clean-room attestation in the pull request template.
- Security vulnerabilities: report privately under SECURITY.md rather than opening a public issue.
- Questions and bugs: open an issue on GitHub Issues.
- Sponsorship: support the project in any amount through GitHub Sponsors or Ko-fi; no support contract or issue priority is sold.
The milestone ladder builds one vertical slice at a time (docs/plan/milestones.md):
%%{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
M0["M0 Workspace, gates, clean room"]:::input
M1["M1 Matroska demux & FFV1 decode"]:::step
M2["M2 FFV1 encode & Matroska mux"]:::step
M3["M3 FLAC decode (FLAC & Matroska)"]:::step
M4["M4 Pipeline, CLI L0 & raw frames"]:::step
M6["M6 AV1 decode (Argon Streams)"]:::step
M5["M5 Ogg demux and Opus decode"]:::step
M7["M7 ISO base media format demux"]:::step
M0 --> M1
M1 --> M2
M1 --> M3
M2 --> M4
M3 --> M4
M4 --> M6
M4 --> M5
M6 --> M7
- Milestone scope, test material and exit criteria: docs/plan/milestones.md.
- Issue tracking by milestone: GitHub milestones.
- No releases yet.
alveus has no upstream code base: it is written clean-room from public
specifications under CLEANROOM.md. The
scope matrix lists every planned specification;
among those for milestones M1 to M7 are RFC 8794 (EBML), RFC 9559 (Matroska)
and the Matroska codec mappings (draft-ietf-cellar-codec), RFC 9043 (FFV1),
RFC 9639 (FLAC), RFC 3533 (Ogg), RFC 6716 (Opus) and RFC 7845 (Opus in Ogg),
the AOMedia AV1 Bitstream and Decoding Process Specification, ISO/IEC 14496-12
(ISO base media file format) and the AOMedia AV1 Codec ISO Media File
Format Binding.
alveus is licensed under the European Union Public Licence 1.2
(LICENSE). Licence and copyright information for every file
follows the REUSE specification; reuse lint
checks it.
This repository declares the High-Integrity Systems Standard (HISS-21) in
AGENTS.md. The make verify-all target defined in
Makefile is the repository gate.
Praetor manages this repository's declared governance policy. This managed block records adoption state; it is not a verification certificate.
Verification: make verify-all runs the repository's configured
verification cascade.
HISS Audit: praetorctl audit enforces policy, generated-surface
integrity, and the debt ratchet.
Context Sync: praetorctl compile-context --verify verifies every
generated agent context against AGENTS.md.
Debt Baseline: .standards-baseline.json anchors the debt ratchet at
0 recorded infractions; audit forbids growth.