Deterministic architectural governance — bit-identical scores, cryptographically-chained session deltas, rules as compile-time invariants (not CI warnings).
Nine Q16.16 metric kernels. Five languages. HMAC/Ed25519 evidence chain.
Arch-Mind is STARGA Commercial-licensed. Source distribution and on-prem deployment by written agreement. Contact info@star.ga.
The two questions Arch-Mind answers
“Did the agents I just ran make my codebase structurally worse?”
arch-mind session-start snapshots architectural state before an agent works; session-end re-snapshots and emits a signed delta chained to the previous event via HMAC-SHA256 (or Ed25519 when the key is initialised). The history is replayable, tamper-evident, and recallable across sessions.
“Is the code still architecturally consistent with my declared intent?”
.arch-mind/rules.mind declares compile-time invariants (acyclicity_q16 == 10000, q16_determinism_purity >= 9000, …). arch-mind check-rules --mode enforce fails closed when any rule breaks — not a warning, a hard stop.
Live scoreboard — Mind-Mem
Nine Q16.16 metric kernels tracked across six releases of star-ga/mind-mem — STARGA's flagship persistent-memory engine for AI coding agents (pip install mind-mem). Click any point to inspect the commit delta.
Loading scan data…
Bit-identical reproducibility
The same source state produces the same Q16.16 score on any x86 or aarch64 machine running the same Arch-Mind version — byte-for-byte. Two machines, identical hash. No floating-point non-determinism, no machine-dependent rounding. Every audit, every delta, every session event is anchored to a verifiable integer that travels cleanly across systems.
medium_realistic fixture — golden hash
This exact hash reproduces on any x86 / aarch64 machine running the same Arch-Mind version on the same source state. Run arch-mind scan --fixture medium_realistic.json and verify yourself after signing a commercial agreement.
The nine metrics
All Q16.16 fixed-point in [0, 10000] raw scale. The kernel returns the value << 16 packed as i32; the demo displays the raw integer.
Fraction of dep-edges whose source and destination share a package
Fraction of dep-edges NOT inside a non-trivial strongly-connected component
Longest dep-chain depth, normalised to [0, 10000]
Inverted Gini coefficient of per-module symbol counts
Duplicate-pattern density (variance-of-variance proxy pre-AST)
Fraction of modules with no f32/f64/nondet primitive in scope
Σ evidence-chain calls / Σ decision points across all modules
Inverse of max transitive-dependency overlap between MCP tools
Fraction of declarations under [protection] or [invariant] annotation
How Arch-Mind compares
Factual claims drawn from each tool's public documentation. No screenshots, no quoted marketing text.
| Criterion | Arch-Mind | CodeScene | Sigrid | SonarQube |
|---|---|---|---|---|
| Failure model | kernel-invariant (fail-closed compile-time) | CI warning | dashboard alert | CI warning |
| Score type | Q16.16 fixed-point, bit-identical | float, machine-dependent | float | float |
| Cross-machine reproducible | yes (verified) | no (claimed) | no | no |
| Evidence chain | HMAC/Ed25519 per session, replayable | none | none | none |
| Per-repo rule grammar | .arch-mind/rules.mind parseable by mindc | XML config | dashboard | XML profile |
CLI surface
Ten subcommands. Every command is also available as a JSON-RPC MCP tool.
Score a pre-built fixture JSON; emit nine Q16.16 metrics
Walk a live repo via tree-sitter sidecar; produce canonical-AST fixture
Evaluate .arch-mind/rules.mind invariants against a scan result
Print a human-readable breakdown of each metric for a scan
Snapshot the current scores as an approved baseline for delta tracking
Compute signed score delta between two baseline snapshots
Open a session; snapshot pre-agent architectural state, initialise HMAC chain
Close a session; emit signed delta chained to the previous event
Replay and optionally verify the full HMAC/Ed25519 evidence chain
Fail-closed invariant check; non-zero exit if any rule is violated
Arch-Mind is STARGA Commercial
Source distribution and on-prem deployment by written agreement. Want to run Arch-Mind on your repo? We'll set up a private trial with your code staying entirely on your infrastructure.