midnightntwrk/midnight-expert/zkir-regression

Claude Code and agent skill by midnightntwrk/midnight-expert

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Run a curated set of verification claims against the current toolchain to detect behavioral changes. Each claim is verified through the normal verification pipeline (classify → dispatch agent → verify). Supports full sweep (all categories) and targeted sweep (single category). Invocable as /midnight-verify:zkir-regression or loadable as a sense-check when toolchain issues are suspected.

Install

npx vskill@latest install midnightntwrk/midnight-expert/zkir-regression

SKILL.md

ZKIR Regression Sweep

Run a curated set of verification claims against the current toolchain to detect behavioral changes. Each claim is verified through the full pipeline — claim classification, contract writing, compilation, execution, and PLONK proof verification.

Use this when:

  • A new compiler version or checker package version is released
  • An agent suspects unexpected behavior from the toolchain
  • You want a confidence check before presenting Midnight-specific claims

Step 1: Determine Mode

If $ARGUMENTS is empty → full sweep (all categories).

If $ARGUMENTS contains a category name → targeted sweep (that category only).

Valid categories: arithmetic, types, state, privacy, zk-proof, transcript.

Step 2: Record Toolchain Versions

bash
compact compile --language-version
compact --version

Record both for the report header.

Step 3: Run Claims

For each claim in the list below (filtered by category if targeted):

  1. Load the midnight-verify:verify-correctness skill to classify the claim domain
  2. Load the appropriate domain skill
  3. Dispatch the sub-agent(s) indicated by the domain skill's routing table
  4. Collect the verdict

This follows the same flow as the /midnight-verify:verify command — you are the orchestrator for each claim.

Claim List

IDCategoryClaimExpected Verdict
arith-1arithmeticA pure circuit that adds two Uint32 values (3 + 4) returns the correct sum (7)Confirmed (tested)
arith-2arithmeticA pure circuit that multiplies two Uint32 values (3 * 5) returns the correct product (15)Confirmed (tested)
types-1typesAssigning a value of 256 to a Uint8 variable produces a compiler errorConfirmed (tested)
types-2typesA pure circuit returning a tuple allows 0-indexed access to each elementConfirmed (tested)
state-1stateA counter contract's increment circuit updates the ledger state by the specified amountConfirmed (tested)
state-2stateReading a counter ledger value returns the current on-chain stateConfirmed (tested)
privacy-1privacyA circuit that writes to the ledger requires a disclose() callConfirmed (tested)
zk-1zk-proofA counter contract's increment circuit passes the full PLONK proof verificationConfirmed (zkir-checked)
zk-2zk-proofTampering with the public transcript of a verified circuit causes PLONK checker rejectionConfirmed (zkir-checked)
zk-3zk-proofThe PLONK checker error for a tampered transcript identifies the exact mismatched inputConfirmed (zkir-checked)
transcript-1transcriptA counter increment circuit encodes ledger operations in the publicTranscriptConfirmed (zkir-inspected)
transcript-2transcriptThe compiled ZKIR for a counter increment contains declare_pub_input instructionsConfirmed (zkir-inspected)

Step 4: Compare Results

For each claim, compare the actual verdict against the expected verdict:

  • Verdict matches expected → PASS
  • Verdict does not match → FAIL
  • Verification returned Inconclusive but expected Confirmed → FAIL (toolchain may be unavailable)

Step 5: Report

markdown
## ZKIR Regression Report
**Toolchain:** compact CLI vX.Y.Z, language version A.B.C
**Date:** YYYY-MM-DD
**Mode:** [full sweep / targeted: <category>]
**Ran:** N claims
### Results
| Category | Passed | Failed | Total |
|---|---|---|---|
| arithmetic | N | N | N |
| types | N | N | N |
| state | N | N | N |
| privacy | N | N | N |
| zk-proof | N | N | N |
| transcript | N | N | N |
| **Total** | **N** | **N** | **N** |
### Failures (if any)
**<claim-id>:** Expected <expected verdict>, got <actual verdict>
-Claim: "<claim text>"
-Actual result: [what the verification pipeline returned]
-Interpretation: [what this failure suggests about toolchain changes]

If there are zero failures, end with:

All N claims passed. Toolchain behavior matches expectations.

Adding New Claims

Add a row to the claim list table above. Each claim should:

  • Be verifiable through the normal /midnight-verify:verify pipeline
  • Have a deterministic expected verdict
  • Test a specific, observable behavior
  • Include the expected verdict qualifier (tested, zkir-checked, zkir-inspected, source-verified)

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/midnightntwrk/midnight-expert/zkir-regression/badge)](https://verified-skill.com/skills/midnightntwrk/midnight-expert/zkir-regression)

Something wrong with this skill or its page? Tell us.