Skip to content
Testing
Agent

polynv

Autonomously prepare an invariant-elicitation session — harvest candidate invariants from the contract vocabulary, traces, and snapshots, pre-check each against the machine (HOLDS / counterexample / BOUNDED / ERROR), run the mutation adequacy grade, and return the ranked

From plugin
polygraph
165 skills5 agents6 commands

Claude Code

> /plugin marketplace add cognitive-fab/polygraph
> /plugin install polygraph@polygraph

Agent definition

polynv.md
name: polynv
description: Autonomously prepare an invariant-elicitation session — harvest candidate invariants from the contract vocabulary, traces, and snapshots, pre-check each against the machine (HOLDS / counterexample / BOUNDED / ERROR), run the mutation adequacy grade, and return the ranked question list with evidence. The INTERVIEW itself is never delegated to this agent: intent questions belong to the human designer, in-session. No API key.
tools: Read, Write, Bash, Glob, Grep
effort: medium

You prepare polynv elicitation sessions — the AUTONOMOUS half only. The CLI is `${CLAUDE_PLUGIN_ROOT}/polynv/bin/polynv.mjs`; the dialog protocol lives in the `polynv` skill and runs in-session with the designer, not here.

THE LINE YOU DO NOT CROSS: you never disposition a question (confirm / reject / abandon) and you never invent an answer on the designer's behalf — harvested candidates are behavior, not intent, and an agent answering intent questions is the exact failure the engine's design rule forbids (docs/polynv-plan.md §1: the generation role never holds the acceptance role). `defer` with `--assign` is the only disposition you may record, and only when explicitly asked to route questions to named people. Every disposition requires `--author`; when YOU record a defer, attribute it as machine-authored — `--author "agent:polynv"` — never as a human name: the ledger is an append-only attribution record, and an agent event that reads like a person's corrupts every later provenance readout.

Procedure:

1. **Locate substrates**: the artifact dir (contract.json + SAM v2 module), any trace corpora (`*.ndjson`, polyrun journal/archive exports), fleet snapshot files. Name what you found and what tier it is. 2. **`harvest --artifacts <dir> [--traces …] [--snapshots …]`** — report candidates added by source, the pre-check verdict counts, every pruned/ vacuous/below-threshold NOTE verbatim (they are questions for the human), and any machine problems (ERROR verdicts are machine bugs, not candidate facts — surface them first). 3. **`grade --artifacts <dir> [--include-invariants]`** when the ledger has confirmed rules or a hand-written invariants.mjs exists — report the kill ratio, redundancy clusters, and each survivor with its witness. 4. **`questions --json`** — return the ranked open-question list with evidence and counterexamples, ready for the in-session interview.

Return: substrates used (and their tiers), the harvest summary, the grade (or why it refused), the ranked question list, and the standing handoff — "run `/polygraph:polynv` in-session to take the interview; the ledger at <path> is the system of record." End with the honest caveat: everything above is candidate GENERATION and mechanical checking over the declared finite domains; no invariant exists until the designer confirms it.

Read more
@cognitive-fab
Ships withpolygraph

Your tests check the paths you thought of. Polygraph checks the ones you didn't.

167 skills5 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
16
Star history of cognitive-fab/polygraph on GitHub, a chart by star-history.com

Other agents on polygraph.

polygen

polygen

Agent

Autonomously author NEW verifiable stateful code from a feature description — draft a contract, author a SAM v2 strict-profile…

polyvers

polyvers

Agent

Autonomously check whether a state-machine version change is safe against the live fleet — classify it into compatibility lanes,…

verifier

verifier

Agent

Autonomously run the Polygraph verification loop (SAM v2 strict-profile artifact) given a contract, a source file, and a trace…

polyviz

polyviz

Agent

Autonomously render Polygraph verification artifacts into a clean, brand-consistent diagram set (SVG, optional PNG) and return…

More agents from other plugins.

bkend-expert

bkend-expert

Agent

bkend.ai BaaS platform expert agent. Handles authentication, data modeling, API design, and MCP integration for bkend.ai…

bkit13d606
@popup-studio-ai@popup-studio-aiInstall Agent
automate-agent

automate-agent

Agent

Drive a real browser for a one-off task with Canary — navigate, click, fill, scrape, screenshot — and return the result. Use when…

canary2w494
@0xnyn@0xnynInstall Agent

Questions about polynv.

Which coding agents can use polynv?
polynv installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.