The problem
Criba collects postings from 13 job boards for two people. The same posting appears once per board, and most don't fit. An AI judge scores what the rules let through against each person's profile, and postings above their threshold reach a shared channel. There, each reaction, yes or no, is recorded as the decision of whoever reacted: the labels I measure the judge against.
Rules first, model last
Four deduplication passes and two rounds of filters settle 92% of postings without a model call. The passes match on source ID, canonical URL, near-identical titles per employer, and employer-less postings against the batch. The filters run before and after fetching each posting's details; splitting the filters made one board usable, where 1 posting in 969 used to survive.
| Step | Postings |
|---|---|
| Unique postings stored from 13 job boards | 40,015 |
| Reach the judge, after deduplication and rules | 3,210 (8.0%) |
| First person's alerts with a decision, yes or no | 63 |
The judge's contract
The judge receives batches of up to 20 numbered postings. It must answer in a Pydantic structure with 4 required fields and no defaults, so a response missing one fails validation. A verdict that can't be matched to its posting's number is dropped instead of guessed.
If a posting carries hidden instructions
Posting text goes into the prompt as it arrives, and I haven't added a defense against instructions hidden in it. What limits the damage is the setup:
- the judge runs with no tools;
- anything that doesn't validate is discarded;
- the profile it reads has the contact details removed.
The worst a planted instruction can do is skew a score, its own or those of the other postings in its batch. It can also put its own text in the reason shown on the alert card. A person still reads every alert before acting on it.
How I measure the judge
The threshold report compares each score band with the person's decisions. It suggests nothing until a band has 10 decisions. A band stays above the threshold only if the person said yes to at least 25% of it. The earlier thresholds were a stopgap set when the judge moved from Gemini to Claude Sonnet. This post covers that move with an earlier run of the report. The latest report:
| Band | Said yes | Share | 95% interval |
|---|---|---|---|
| 60–69 | 1 of 22 | 5% | 1–22% |
| 70–79 | 5 of 28 | 18% | 8–36% |
| 80+ | 7 of 13 | 54% | 29–77% |

The share rises band by band, so the score appears to track what that person wants. With 13 to 28 decisions per band, the intervals overlap. Only 80 and above clears 25%, so the report suggests moving the threshold from 60 to 80.
I kept 60. The bands from 60 to 79 hold 6 of this person's 13 yeses, and the 70–79 interval still crosses 25%. Keeping both bands costs 44 alerts they said no to, against those 6 yeses, and the report reruns as decisions accumulate.
Why not 70, then? The 60–69 band stays under 25% even at the top of its interval, so the rule would also accept raising the threshold to 70. That would save 22 alerts and lose 1 of the 13 yeses. I chose to read 22 more alerts rather than lose one.
| Threshold | Alerts with a decision | Yeses that get through | Share |
|---|---|---|---|
| 60 (current) | 63 | 13 of 13 | 21% |
| 70 | 41 | 12 of 13 | 29% |
| 80 | 13 | 7 of 13 | 54% |
The judge failed its own check
To check the judge itself, not only its threshold, I froze a set of 103 postings the two people had decided on: 23 yeses and 80 noes. Before running it, I wrote down the minimum: at least 75% of the yeses at or above the alert threshold of the person each case belongs to, and at least 20% of the noes below it. The second figure is low on purpose, because the minimum mainly protects the yeses. Each case keeps the text the judge read and the profile it was compared with, so later edits can't move the set.
The rerun failed. Asked again about the same postings, the same model and instructions put 11 of the 23 yeses at or above the threshold: 48%, or between 29% and 67% given so few cases. The stored scores, the ones given in production when each alert went out, had put 20 of the 23 at or above it: 87%.
Selection inflates that 87%: the stored scores decided which postings became alerts and got a decision at all. The 3 yeses they missed, and the 23 noes they put below the threshold, were all alerts sent for the other person, whose threshold is different. In the rerun the noes cleared their minimum, 64 of 80 below the threshold, but the rerun scored almost everything lower, noes included.
Three causes of the drop are still mixed:
- one person's profile changed after part of the stored scores;
- the rerun asks about 20 postings per request, where production averages about 2;
- I haven't measured how much two runs of the same judge differ.
I didn't move the minimum. Until the causes are separated, the judge in production keeps running without counting as passed, and no other judge replaces it. The run took 3.3 minutes and about USD 1.09 at API prices.
What broke in production
When a board rate-limited a search, the collector read the refusal as "no more results", skipped the remaining searches and ended the sweep with a green check mark. A 25-keyword cycle finishing every source in 109 seconds gave it away: that board's searches alone need about 12 minutes. A rate limit is no longer taken for the end of the results, and the next cycle resumes where it stopped.
The judge once went quiet for 5.4 days: 602 cycles, 0 verdicts, 323 to 349 postings waiting. The gate that pauses scoring near the provider's usage limit read whichever model's limit was closest, and that model wasn't the judge's. For part of that time the reading was also stale: the server that provides it was down for most of an 86.7-hour stretch. The log repeated one line about a spent limit, naming neither the model nor the reading's age, and the channel heard nothing.
Now only the limit on the judge's own model can pause scoring. The queue refills from storage: 174 waiting postings hadn't come back from any source in over a day, and no cycle would have asked for them again. If the judge goes quiet with postings waiting, the channel is told once, and again when verdicts return.
An audit also found that one rotating search had used only the first person's keywords, on the board whose postings survive the filters most often. Its place lived in memory, and every deploy reset it. Rotations now keep their place on disk and interleave both people's keywords. Each of these incidents has a decision record.
How it is built
Criba follows a four-layer hexagonal architecture with one composition root, and runs 15 collectors across the 13 job boards. PostgreSQL lives in a container beside Criba with no published port, reached over the Docker Compose network.
CI deploys over SSH with a key restricted to one command, and the container runs as non-root. Nightly backups keep 7 daily and 8 weekly copies, readable by their owner alone, since they hold every person's profile and decisions.
I removed what nobody used but still needed upkeep: two of the judge's three backends, with their fallback, and three of the four output paths. In exchange, if the judge's model is down, nothing is scored until it returns, and the silence notice tells the channel.
The repository holds 75 architecture decision records. Its runbooks cover deploying, setting up a server, restoring on a new machine, changing the judge's model or a column, and adding a person.
What it costs and how often it runs
A fast cycle runs every 10 minutes. A full one sweeps every source in 15 to 20 minutes and runs every 4 hours.
Over the week of October 10 to 16, the judge returned 1,434 verdicts in 739 requests, about 205 a day. At API prices that was USD 6.19 a day, or about 3 cents and 6,400 tokens per verdict. Those per-verdict figures divide daily totals, so they are averages, not medians. In that week, 3.7% of the postings seen got past the fixed rules, a different base from the table's unique stored postings.
Latency isn't recorded yet. Per-request timing and token counts are being added so I can report p50 and p95.
On Supabase's free plan, full reads and dumps sent out about 1.7 GB a day against 5 GB of egress a month. Even trimmed reads would leave the nightly dump, about 100 MB and growing, using most of it. Rather than pay USD 25 a month, I moved PostgreSQL beside Criba.
What gets checked before a deploy
I built Criba with Claude Code under my direction and review; Claude Code also generates the test suite. I review every change before accepting it, and whatever can become a rule goes into CI. Four architecture contracts fail the build if an import crosses the layers. Six checks gate every deploy, among them mypy --strict (relaxed only in the scraping adapters) and a 95% branch-coverage floor that can only go up.
The deploy never migrates without a fresh backup, then verifies that the healthy container runs the built commit. A per-cycle heartbeat tells a process making progress from a hung one that Docker would still call healthy.
Limits and next
The threshold reading rests on one person's 63 decisions, in the bands they get alerts for; for the second person only the lowest band can be read. Labels exist only for alerted postings, so the report can say a threshold should go up but not what is missed below it. What happens after a decision isn't recorded either. The database and its backups share one disk on one server, and copying a dump off it is still manual.
What I'd do next:
- label a sample of postings below the threshold, so the report can say what it misses;
- separate the three causes behind the failed rerun;
- automate the off-server copy of the backups.