# Formal Correctness

> >

- **Type:** Skill
- **Install:** `agentstack add skill-cdeust-zetetic-team-subagents-formal-correctness`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [cdeust](https://agentstack.voostack.com/s/cdeust)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [cdeust](https://github.com/cdeust)
- **Source:** https://github.com/cdeust/zetetic-team-subagents/tree/main/skills/formal-correctness
- **Website:** https://ai-architect.tools

## Install

```sh
agentstack add skill-cdeust-zetetic-team-subagents-formal-correctness
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Formal Correctness

**Problem shape:** correctness-critical code (concurrency, distribution,
protocol, contract) whose failure modes tests cannot exercise. The move:
specification before code, invariants before traces, contracts before
implementations, decidability before optimization.

## Relevant geniuses

| Agent | Use when |
|---|---|
| [lamport](../../agents/genius/lamport.md) | distributed design uses wall-clock ordering; no written spec; correctness argued by example executions; partial failure ignored |
| [dijkstra](../../agents/genius/dijkstra.md) | code and correctness argument must be developed together; a construct defeats local reasoning; tests can't cover the failure mode |
| [liskov](../../agents/genius/liskov.md) | swapping an implementation breaks callers; interfaces with types but no behavioral contract; composition breaks what components pass alone |
| [turing](../../agents/genius/turing.md) | problem drowning in detail — reduce to the simplest machine; check decidability/complexity class before investing; vague concept needs an operational test |
| [godel](../../agents/genius/godel.md) | the system reasons about itself (self-hosting, self-validating, self-referential rules) — find the incompleteness before it finds you |
| [alkhwarizmi](../../agents/genius/alkhwarizmi.md) | messy problem needs a canonical form and an exhaustive case classification before an algorithm exists |
| [panini](../../agents/genius/panini.md) | a sprawling rule set needs a compact generative specification with explicit conflict-resolution ordering |

## Invocation

1. Pick the best-fit agent above. If two or more fit, run
   `tools/genius-invoker.sh route ""` and take the top ranked match.
2. Load it: `tools/genius-invoker.sh invoke  ""`, then read
   `agents/genius/.md` in full.
3. Apply the agent's `` step by step and answer in its
   ``. The deliverable is a spec, invariant, or contract the
   code refines — not a narrative that it "looks right".
4. Typical chain: turing bounds what is decidable → lamport writes the spec →
   dijkstra derives the code → liskov contracts the interfaces. Run pairs via
   `tools/genius-invoker.sh compose lamport dijkstra -- ""`.
5. If no shape above matches, use a standard team agent instead.

## Refuse when

- The requester wants a proof-shaped blessing for unspecified behavior —
  write the spec first or decline.
- Tests are offered as the sole correctness argument for concurrent,
  numerical, or adversarial code.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [cdeust](https://github.com/cdeust)
- **Source:** [cdeust/zetetic-team-subagents](https://github.com/cdeust/zetetic-team-subagents)
- **License:** MIT
- **Homepage:** https://ai-architect.tools

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-cdeust-zetetic-team-subagents-formal-correctness
- Seller: https://agentstack.voostack.com/s/cdeust
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
