Release Model & Verification Evidence
M31A uses an automated, evidence-backed release engineering pipeline with strict quality gates enforced prior to artifact publishing.
Compile-Time Deployment Channels
Unlike tools that rely on runtime environment variables, M31A enforces deployment identity at compile time using mutually exclusive Cargo features (src/deployment/channel.rs):
┌──────────────────────────────────────────────┐
│ M31A Source Code │
└──────────────────────┬───────────────────────┘
│
┌───────────────────────────┴───────────────────────────┐
▼ ▼
[Default Features] [--features development]
│ │
▼ ▼
┌─────────────────────────┐ ┌─────────────────────────┐
│ Production Channel │ │ Development Channel │
│ Binary: `m31a` │ │ Binary: `m31a-dev` │
│ State: `~/.local/.../m31a` │ │ State: `~/.local/.../m31a-dev` │
│ Update Feed: `stable` │ │ Update Feed: `development`│
└─────────────────────────┘ └─────────────────────────┘
Compilation Invariant: Enabling both
productionanddevelopmentfeatures simultaneously triggers a compile-time error (compile_error!). They can never be combined.
The 20-Point Release Evidence Matrix
Before an official release artifact is certified and promoted, the release_certifier agent and automated CI scripts (scripts/rc-evidence.sh, scripts/release-check.sh) verify 20 deterministic criteria:
- Clean Git State: No uncommitted changes in release worktree.
- Channel Identity: Target binary compiled with verified channel.
- Rust Toolchain Minimum: Compiler meets
rust-version = 1.85. - Format Verification:
cargo fmt --checkpasses cleanly. - Clippy Zero-Warning:
cargo clippy --all-targets -- -D warningsexits 0. - Deterministic Unit Suite: All unit tests pass in isolation.
- Integration Verification: 220+ integration test suites execute successfully.
- Live Test Isolation: Live model tests remain properly partitioned (
#[ignore]). - Single-Crate Integrity: No Cargo workspace violations.
- Downward Dependency Check: Layer dependencies strictly downward.
- Documentation Contract: All 11 canonical documentation files match source reality.
- Migration Consistency: All SQL migrations (001-032) apply forward and idempotently.
- Policy Gate Integrity: Non-bypassable policy tests pass 100%.
- Process Tree Confinement: PID tracking and signal escalation verified on host OS.
- Crash Recovery Seal: Unfinished scans and spool sealing verified.
- NVIDIA Endpoint Validation: Only canonical NVIDIA NIM endpoints accepted.
- Masked Secret Verification: Multibyte UTF-8 secret masking passes.
- Artifact Manifest Integrity: SHA-256 checksums match built release archives.
- Rollback Recovery: Binary replacement rollback mechanism operational.
- TUI Render Invariant: First-frame rendering precedes async runtime assembly.