Valun

Refundable ReviewSigned Evidence

Good PRs earn trust.
Spam earns a cost.

Known contributors and Clean PR Passport holders pass at zero bond. Unknown contributors and bots can request a refundable review bond or a Portable Cover vouch.

Active bonds
0
Released bonds
0
Forfeit rate
0 bps · 0 resolved records
Operator / team
0
Independent
0
Unregistered
0

Install your review gate

Set VALUN_BOND_IDENTITIES in repository variables to link verified GitHub logins to Valun handles. The gate reads PR metadata and diff bytes only.

New repo? The unified PR Gate (fitzss/valun-open@v0.9.16, mode: 'unified-gate') checks bonds, passports, peer vouches and AI slop in one fork-safe Action; this bond-only workflow remains for repos that want bonds alone.

Install workflow

node --input-type=module -e 'import {mkdirSync,writeFileSync} from "node:fs";const r=await fetch("https://valun.tech/bond?format=json&repo=example-org%2Fexample-repo&maintainer=valun-auditor&bond_credits=1");if(!r.ok)throw new Error("Workflow unavailable");const p=await r.json();mkdirSync(".github/workflows",{recursive:true});writeFileSync(".github/workflows/valun-bond-gate.yml",p.workflow_yaml);'

Inspect signed records

curl --fail --silent --show-error 'https://valun.tech/bond?format=json&repo=example-org%2Fexample-repo&maintainer=valun-auditor&bond_credits=1'

.github/workflows/valun-bond-gate.yml

name: Valun Bond Gate
# valun-bond/1; client reference 0.9.16; Node built-ins only.
# Save as .github/workflows/valun-bond-gate.yml.
# Set repository variable VALUN_BOND_IDENTITIES to {"github-login":"valun-handle"}.
# Maintainers verify that mapping; PR authors cannot supply it.
# Signed records do not prove held funds. No checkout or PR code execution.
on:
  pull_request_target:
    types: [opened, edited, synchronize, reopened]
permissions:
  contents: read
  pull-requests: read
concurrency:
  group: valun-bond-${{ github.event.pull_request.number }}
  cancel-in-progress: true
jobs:
  bond:
    runs-on: ubuntu-24.04
    timeout-minutes: 3
    steps:
      - name: Check review bond
        env:
          GH_TOKEN: ${{ github.token }}
          VALUN_IDENTITIES: ${{ vars.VALUN_BOND_IDENTITIES }}
        shell: bash
        run: |
          node --input-type=module <<'VALUN_BOND_GATE'
          import {readFileSync, appendFileSync} from 'node:fs';
          import {createHash} from 'node:crypto';
          const event = JSON.parse(readFileSync(process.env.GITHUB_EVENT_PATH, 'utf8'));
          const pr = event.pull_request;
          const repo = 'example-org/example-repo', maintainer = 'valun-auditor', minimum = 1000000;
          if (!pr || process.env.GITHUB_REPOSITORY.toLowerCase() !== repo) throw new Error("Repository mismatch");
          let verdict = "Review Bond", accepted = false;
          if (["OWNER", "MEMBER", "COLLABORATOR"].includes(pr.author_association) && pr.user.type !== "Bot") {
            verdict = "Known Contributor"; accepted = true;
          } else {
            const identities = JSON.parse(process.env.VALUN_IDENTITIES || "{}");
            const login = pr.user.login.toLowerCase();
            const handle = Object.hasOwn(identities, login) ? identities[login] : null;
            if (typeof handle === "string" && /^[a-z][a-z0-9_-]{2,23}$/.test(handle)) {
              const url = new URL("https://valun.tech/bond");
              url.search = new URLSearchParams({format: "json", repo, handle}).toString();
              const response = await fetch(url, {redirect: "error", signal: AbortSignal.timeout(15000)});
              if (!response.ok) throw new Error("Bond service unavailable");
              const data = await response.json();
              if (data.protocol !== "valun-bond/1" || !Array.isArray(data.bonds)) throw new Error("Invalid bond response");
              const bonds = data.bonds.filter(b => b.repo === repo && b.contributor_handle === handle
                && b.maintainer_handle === maintainer && b.identity_verified === true);
              const passport = data.passport;
              if (passport?.protocol === "valun-passport/1" && passport.handle === handle
                  && passport.zero_bond_eligible === true && passport.clean_prs >= 1 && passport.forfeited_bonds === 0
                  && bonds.some(b => b.state === "released" && b.outcome === "merged")) {
                verdict = "Clean Passport"; accepted = true;
              } else {
                const diff = await fetch(`https://api.github.com/repos/${repo}/pulls/${pr.number}`, {
                  headers: {Accept: "application/vnd.github.diff", Authorization: `Bearer ${process.env.GH_TOKEN}`},
                  redirect: "error", signal: AbortSignal.timeout(15000)});
                if (!diff.ok) throw new Error("PR diff unavailable");
                const digest = createHash("sha256").update(new Uint8Array(await diff.arrayBuffer())).digest("hex");
                accepted = bonds.some(b => b.state === "active" && b.pr_number === pr.number && b.diff_sha256 === digest
                  && Number.isSafeInteger(b.amount) && b.amount >= minimum && Date.parse(b.expires_at) > Date.now());
                if (accepted) verdict = "Bond Recorded";
              }
            }
          }
          const message = accepted ? verdict + ": review gate passed." : "Review Bond: request a refundable 1 Credit review bond or Portable Cover vouch at https://valun.tech/bond. A maintainer must link your GitHub login in VALUN_BOND_IDENTITIES.";
          appendFileSync(process.env.GITHUB_STEP_SUMMARY, message + "\n");
          if (!accepted) process.exitCode = 1;
          VALUN_BOND_GATE

Actuarial Agent Reliability · by harness

HarnessActiveReleasedForfeitedRate (bps)Operator / teamIndependentUnregistered
human0000000
claude-code0000000
codex0000000
hermes0000000
cursor0000000
devin0000000
openhands0000000
custom0000000

Actuarial Agent Reliability · by backer

BackerActiveReleasedForfeitedRate (bps)Operator / teamIndependentUnregistered

No signed records yet.

Recent bond records

    No bonds recorded yet.

    Signed bond records and maintainer-reported outcomes only; no funds are held or moved here. Operator and team activity is separate from independent activity. Unregistered handles are unverified. Harness labels are self-declared; a vouch is signed cover intent, not funded or issued Portable Cover.

    valun-bond/1 · valun-passport/1