Loading...
Loading...
Audit a design proposal or diff against Exarchos's architectural invariants — event-sourcing integrity (INV-1), facade equivalence over shared dispatch core (INV-2), basileus-forward (INV-3), platform-agnosticity (INV-4), and agent-first interface design (INV-5a input ergonomics, INV-5b spec-aligned output contract, INV-5c Aspire-inspired control-plane verbs, INV-5d action discriminator pattern). Pairs with /axiom:backend-quality — this skill is project-specific (axiom is generic). Triggers: 'check invariants', 'design conformance', 'check #1118 / #1109', or /design-invariants.
npx skill4agent add lvlup-sw/exarchos design-invariants/exarchos:ideate/exarchos:plan/exarchos:review/axiom:audit/axiom:*/exarchos:reviewspec-review/axiom:humanize{
"verdict": "pass | conditional | fail",
"findings": [
{
"invariant": "INV-1",
"severity": "HIGH",
"file": "servers/exarchos-mcp/src/projections/foo.ts",
"line": 42,
"description": "Reducer mutates state in place inside the apply switch",
"required_fix": "Return a new state object via spread; deep-freeze input via assertReducerImmutable in tests",
"axiom_overlap": "DIM-1"
}
]
}| Finding | Axiom dimension | Design invariant |
|---|---|---|
| Lazy fallback that creates degraded EventStore | DIM-1 Topology | INV-1 (silent loss of event integrity) |
Hardcoded | — | INV-4 |
| DIM-2 Observability | INV-1 (fold throws → must trigger reducer-throw degradation path) |
| New CLI verb without MCP equivalent | — | INV-2 |
| Adapter-local mutable cache for projection state | DIM-1 Topology | INV-1 + INV-2 (TaskStore-as-side-database anti-pattern) |
| — | INV-3 |
| Tool description without "do NOT use for" guidance | — | INV-5a |
Successful | — | INV-5b |
| Long-running op using NDJSON post-v2.11.0 | — | INV-5b (should use Tasks SEP-1686) |
New top-level tool that should be an action on | — | INV-5d |
| Schema field removed but still read | DIM-3 Contracts | INV-1 if it's an event field |
| Concern | Owner |
|---|---|
| Generic SOLID, coupling, dependency direction (DIM-6) | |
| Generic error handling, silent fallbacks (DIM-2, DIM-7) | |
| Generic schema-runtime drift, type-assertion safety (DIM-3) | |
| Generic test fidelity, mock overuse (DIM-4) | |
| Generic dead code, vestigial patterns (DIM-5) | |
| AI-prose tells (DIM-8) | |
docs/research/2026-05-07-design-invariants-skill.mddocs/architecture/principles.md