Catch breaking TapeOut circuit upgrades before they ship.

PinCheck checks every input of a proposed circuit on X Layer and fails the pull request that changes an output.

uses: hackcat29/PinCheck@v0.2.0
#10x01
#110x00
PR #1 input 0x01 Outputs differOutputs match

It already blocked a real upgrade.

Circuit compatibility
  1. Read pincheck.json at base and head
  2. Pinned X Layer block 76,160,736 0x5069ea17…6a99
  3. order-guard: #1 → #11
  4. Checked 4 of 4 inputs, 3 differ
  5. input 0x01 → current 0x01, candidate 0x00
  6. eval on both processors: confirmed
  7. ✕ Behavior changed. Merge blocked.
Input
0x01
Current #1
0x01
Candidate #11
0x00
Replay
Confirmed

4 of 4 inputs checked at X Layer block 76,160,736.

Inputs checked per run, up to
67,108,864
Block hash pins every read
1
Processors replay each mismatch
2
Runtime dependencies
0

How it works

  1. 01

    Pin

    List the circuits your app calls.

  2. 02

    Compare

    Evaluate every input of both circuits at one block.

  3. 03

    Replay

    Send the first difference to both deployed processors.

  4. 04

    Gate

    Block the merge, or record an intended change.

Every input. Not a sample.

Neon Reliquary #5 vs #7 · 20 input bits

Checked
0
Differ
0
Engine
…
Compute
…
Report
…

Compare

Loading…

Add it in three files.

{
  "pincheck": 1,
  "dependencies": {
    "order-guard": {
      "circuit": "0x57F319CF056F72F48cF1dbb670F2A3DB007Aa355:1"
    }
  }
}
  1. Pin the circuits your app calls.
  2. Run the check on every pull request.
  3. Own the pin and the workflow with CODEOWNERS.
  4. Require Circuit compatibility in a branch ruleset. How

What a pass means

  • Same output bits for every input
  • Read at one pinned block hash
  • Under TAP-02 evaluation semantics
  • Confirmed against the deployed processors
  • That either circuit is correct
  • What the bits mean to your app
  • Behavior after an implementation upgrade
  • Stateful circuits that are not identical

Pin your circuits before the next upgrade.