state-machines-and-invariants
SolidGoverning correctness through explicit state machines and enforced invariants. Defines when the system is READY vs DEGRADED vs STALE vs INVALID, what is allowed in each state, and when to fail fast. Use when designing or reviewing real-time data systems, streaming pipelines, upstream adapters, aggregated feeds, health checks, or any logic that can silently degrade data quality. Prevents optimistic outputs. Also use when the user mentions "state machine", "system state", "fail fast", "invariant violation", "when to stop", or when reviewing any code that decides whether to serve or reject data.
Install
Quality Score: 82/100
Skill Content
Details
- Author
- Canhada-Labs
- Repository
- Canhada-Labs/ceo-orchestration
- Created
- 4 weeks ago
- Last Updated
- today
- Language
- Python
- License
- MIT
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
making-invalid-states-unrepresentable
Analyzes existing code and guides new type design to make invalid states unrepresentable using type system techniques such as sum types, newtypes, typestate, branded types, and parse-don't-validate. Use when reviewing code for invalid-state bugs, refactoring types to eliminate impossible states, designing domain models, or applying compile-time correctness patterns. Language-agnostic.
lamina-invariants
Product invariants — rules that must always hold, impossible states prevented, errors defined out of existence. Use when defining what can never happen in the product.
async-state-consistency
Use when designing, reviewing, debugging, or testing asynchronous state holders, caches, observers, subscriber notifications, memoized or coalesced loads, replay, or one-shot reads where invalidation, late subscribers, stale in-flight completion, read or publish races, out-of-order completion, or keyed/global ownership can expose stale state. Not for UI-only loading presentation, deployment topology, distributed consensus, or unrelated test flakiness.