( Janus Lens · guardian tool )

The guardian’s view of an upgrade.

Lens is a command-line tool, not a web wallet. It reads the proposal from chain, checks both code hashes, the compiled artifact and the review receipt, then exports the intent for a machine that never goes online. Signing never happens in this browser.

Janus Lens · upgrade 0xe713…324fEXECUTED ON DIANA
proxy
0x4EDd5b27B8E09633bE06AA096C3bFF7a2efc082A
current impl
0x770D9237C83Cfc19ee8aC3559E51c978721447bb 0xbda2b3ddf9ffbf23da8ccf2632861570d00344cd3978a7eeb23cdfb51a9c176e
new impl
0x76976e32eAbe6F27CdbC9D370E50b9343B6c9621 0xc80ed90429f69c48e407f94566166b0ba301a2b7165af4f185ddaa12ba12601b
init calldata
0x02101cbcbf63cca0e20bb1c2c20442c7fdf90d30d15807061b62ec862666a202
review receipt
0xa8bc87b4f7ab5136b40ec84a15e75572fd0b9ac4aa8ab65bc39c02f3bc7a26ba
nonce · expiry
0 · 2026-12-02 15:09 UTC
signature
ML-DSA-87 · pqcVerify ✓ · key pinned

Guardian approval 0x60f19462…409b61 · execution 0xd7488928…cfac28

What Lens printed before the guardian signed

Janus Lens, proposed
  opId              0xe713a63f1b72b7b05e26c689206a8c11936e6f741d795dbd48c534f45845324f (matches chain)
  proxy             0x4EDd5b27B8E09633bE06AA096C3bFF7a2efc082A, admin is gate: true
  current impl      0x770D9237C83Cfc19ee8aC3559E51c978721447bb (matches approved fromImpl)
  from code hash    0xbda2b3ddf9ffbf23da8ccf2632861570d00344cd3978a7eeb23cdfb51a9c176e verified
  to impl           0x76976e32eAbe6F27CdbC9D370E50b9343B6c9621
  to code hash      0xc80ed90429f69c48e407f94566166b0ba301a2b7165af4f185ddaa12ba12601b verified on chain
  review            0xa8bc87b4f7ab...f3bc7a26ba (chain), matches commit + audit
  artifact          matches artifact ../contracts/out/LendingVaultV2.sol/LendingVaultV2.json
  init data hash    0x02101cbcbf63cca0e20bb1c2c20442c7fdf90d30d15807061b62ec862666a202
  nonce / expiry    0 / 2026-12-02T15:09:16.000Z
  execute after     2026-12-02T14:11:21.000Z
  guardian          0xe7F9D7cF099E4e0DA05A37DF6e18fACf4F44C911, epoch 0
  PQ registry       registered true, alg 1, possession true, pin match true
  digest            0xeed87a94f8456e27fd79144c0ac52fd3bf6b9f3f25397dd65872edd96305fc44
  message           0x6a616e75732d7631...d65872edd96305fc44 (41 bytes)
  verdict           intent is coherent, guardian can review and sign

Real output from docs/evidence/lens-legit-upgrade.txt, run against the audited Diana deployment.

Run it yourself

# 1. Online machine: rebuild the intent from chain and export it
pnpm janus lens <opId> \
  --artifact contracts/out/LendingVaultV2.sol/LendingVaultV2.json \
  --review-commit <git sha> --review-audit <report sha256> \
  --export intent.json

# 2. Guardian machine, offline: sign the exported intent
pnpm janus sign --intent intent.json --out approval.sig

# 3. Any relayer submits approval.sig to JanusGate.approve