gitbills-study/1 · Empirical PR-review study · 60 PRs · 20 OSS repos · read-only
We Checked 60 Real OSS Pull Requests Across 20 Repos: Half of Rejected PRs Had Valid Syntax.
We replayed 30 merged and 30 maintainer-rejected PRs from 20 open-source repos through a two-layer gate, read-only. A diff-only check flagged 0 of 30 merged PRs and caught 7 of 30 rejected ones (0.41 ms median, 0 LLM calls). But 15 of 30 rejected PRs had valid syntax, so a second layer, standing, decides the 23 of 30 the diff check let through: they pause for a vouch instead of being closed.
Scan your own PR queue, live
Enter a public owner/repo. The PR Gate reads its latest open pull requests through GitHub's API and runs the same two-layer check: no checkout, no login, no LLM calls, nothing posted to the repository.
Or open a live result: crewAIInc/crewAI#5951 (caught by Layer 1) astral-sh/uv#23505 (paused at Layer 2) Scan fitzss/valun-open
Section 1 · Findings
The two-layer empirical findings (60 real PRs, 20 OSS repos, read-only)
- Merged PRs flagged by Layer 10 of 3030 of 30 scored clean: no false flags
- Rejected PRs caught by Layer 17 of 300.41 ms median · 0 LLM calls
- Rejected PRs with valid syntax15 of 30Half of all rejections (50%)
- Rejected PRs paused by Layer 223 of 30
needs_endorsement_or_bond· none auto-closed
| Layer | Measure | Result |
|---|---|---|
| Sample | Pull requests merged by maintainers / rejected by maintainers | 30 / 30 |
| Sample | Distinct open-source repositories | 20 |
| Sample | Rejected PRs with valid syntax | 15 of 30 |
| Layer 1 · diff only | Merged PRs flagged (false flags) | 0 of 30 |
| Layer 1 · diff only | Merged PRs scored clean | 30 of 30 |
| Layer 1 · diff only | Rejected PRs caught (reject_slop) | 7 of 30 |
| Layer 1 · diff only | Median latency per PR (Node.js, valun-slop-gate/2) | 0.41 ms |
| Layer 1 · diff only | LLM calls | 0 |
| Layer 2 · standing | Remaining rejected PRs paused (needs_endorsement_or_bond) | 23 of 30 |
| Layer 2 · standing | PRs auto-closed (advisory mode) | 0 |
Why Layer 1 stops at 7 of 30. Layer 1 reads only the diff: changed paths, added lines, and known AI-tool artifacts such as a committed root CLAUDE md instruction file. It decided each PR in a 0.41 ms median on Node.js with 0 LLM calls, and it flagged 0 of 30 merged PRs. That precision has a price: 15 of 30 rejected PRs had valid syntax, so a rule strict enough to reject them from the diff alone would start rejecting good PRs too.
Why Layer 2 pauses instead of closing. The 23 of 30 rejected PRs that Layer 1 let through are decided by standing, not by guessing: a repo collaborator, an author with a prior clean merged PR, or a SHA-pinned /valun vouch fast-tracks a PR with no bond, and anything else gets needs_endorsement_or_bond. Good first-time PRs without prior standing also pause in advisory mode; nothing is auto-closed. One vouch moves a good newcomer on.
Section 2 · Exhibits and parity
Verifiable exhibits and 160/160 cross-language parity
One PR from each layer. Each live link re-runs today's gate on the public PR, so you can compare its decision with the study's; every live result also prints its gate_sha256.
crewAIInc/crewAI#5951Added a root CLAUDE md instruction file; caught deterministically in <1ms with zero LLM calls.
astral-sh/uv#23505Clean diff syntax with no prior collaborator standing or SHA-pinned vouch; paused cleanly in advisory mode.
160/160: the same digest in three runtimes
All 160 cases (the 60 real PRs plus a 100-case synthetic corpus) produced the same gate_sha256 in server JS, npm @fitzdoud/valun, and PyPI valun: 160/160 matching. A gate decision can be re-derived with either client and checked against the server's.
| Cases | 160 (60 real PRs + 100 synthetic corpus cases) |
|---|---|
| Runtimes | server JS · npm @fitzdoud/valun · PyPI valun |
| Digest field | gate_sha256 |
| Matching | 160/160 |
Section 3 · Model
Why upfront cash bonds fail, and how /valun vouch and acceptance houses solve it
SIMULATED MODEL · SEED 2026120469 (2,000 SYNTHETIC PRs — SEPARATE FROM 60-PR LIVE STUDY)
The 60-PR study measures today's gate. What happens at scale when every newcomer must post a cash bond, or when reviewers vouch and are scored for it, is a modelling question, so we answered it separately: 2,000 synthetic PRs, of which 1,000 are slop and 471 are legitimate PRs from zero-capital authors (no money to post a bond), seed 2026120469. These are model outputs, not observations. The model is calibrated to the live study: its diff-only regime lets 76.7% of slop through, the same share as the 23 of 30 rejected PRs Layer 1 let through, so that row restates the study rather than confirming it.
| Regime | Slop reaching maintainers | Zero-capital legitimate PRs merged |
|---|---|---|
| Unfiltered queue No gate at all. | 1,000/1,000 (100.0%) | 471/471 (100.0%) |
| Layer 1 diff-only check alone The static check from this study, without standing. | 767/1,000 (76.7%) | 471/471 (100.0%) |
| Upfront cash bond only Every author must post a bond before review. | 0/1,000 (0.0%) | 0/471 (0.0%) 471/471 locked out |
| Competitive acceptance houses Reviewers vouch for PRs and are scored on every outcome; a 22% fault circuit breaker halts careless houses. | 27/1,000 (2.7%) | 456/471 (96.82%) |
Cash bonds fail the other way. Requiring an upfront bond stopped all slop (0/1,000) and locked out 471/471 zero-capital newcomers: every legitimate PR from an author who could not post money.
Vouching keeps both. A collaborator's /valun vouch fast-tracks a clean newcomer without a bond. Acceptance houses do the same at scale and are scored on every outcome: in the model they cut slop reaching maintainers by 97.3% against an unfiltered queue (27/1,000) while still merging 96.82% (456/471) of zero-capital legitimate PRs. The 22% fault circuit breaker is live in the gate: after 25 or more judged outcomes, a house whose vouched PRs fault more than 22% of the time is suspended. In the model, the rubber-stamp house tripped it and was halted in epoch 1.
Section 4 · Install
15-second maintainer install (zero checkout · zero API key · zero secrets)
One workflow file, pinned to fitzss/. It runs on pull_request_target, reads each PR's diff through GitHub's API, and never checks out or runs the PR's code. No API key and no secrets: it uses only the workflow's built-in GitHub permissions (contents: read, pull-requests: write). It starts in advisory mode: Layer 1 slop fails the check, each PR keeps one scorecard comment, nothing is auto-closed, and a collaborator's /valun vouch comment fast-tracks a clean newcomer.
- Save the workflow below as
.github/.workflows/ valun-gate.yml - Commit it to your default branch.
pull_request_targetworkflows run from there, so a fork cannot change the gate it is checked by. - Open or update a pull request: the gate keeps one scorecard comment on it, and the job's outputs carry the decision and its
gate-sha256.
name: Valun PR Gate
on:
pull_request_target:
types: [opened, edited, synchronize, reopened]
issue_comment:
types: [created]
permissions:
contents: read
pull-requests: write
jobs:
gate:
if: github.event_name != 'issue_comment' || (github.event.issue.pull_request && contains(github.event.comment.body, '/valun vouch'))
runs-on: ubuntu-latest
steps:
- name: GitBills Deterministic Pre-Flight (example-org/example-repo)
uses: fitzss/valun-open@v0.9.16
with:
mode: 'unified-gate'
payee: 'valun-auditor'
policy-mode: 'advisory'
fail-on-slop: 'true'
post-comment: 'true'
Or let the CLI write a standalone version to the same path
npx --yes @fitzdoud/valun@0.9.16 gate init --repo example-org/example-repo --maintainer valun-auditor --write
The snippet uses example values: replace example-org/example-repo and valun-auditor with your repository and your Valun handle, or fill in the form below and the page rewrites it for you.
Open the PR Gate Acceptance House Observatory Agent Tabs This study as JSON
Evidence honesty
What this evidence is, and what it is not
| Study scope | Read-only: the study only read public data of 60 pull requests (30 merged, 30 rejected by maintainers) in 20 OSS repos and wrote nothing to any of them. |
|---|---|
| Gate mode | Advisory: needs_endorsement_or_bond pauses a PR for a vouch; nothing is auto-closed. |
| Record value | Advisory scorecards, standing and credit claims are worth 0 USD. Nothing here is money. |
| Outside adoption | first_light=0 at the time of this study: no independent outside party had yet accepted a credit claim second-hand. |
| PR code executed | None. The gate is fork-safe: it reads diffs and metadata and never checks out or runs untrusted PR code. |
| Model vs. study | The 2,000-PR comparison (seed 2026120469) is a simulation, kept separate from the 60-PR study and never counted in it. |