Case study · In production · Stage 4 live since July 2026
Hiring Automation
When I took over our operations hiring pipeline, basic email intake and a limited AI screen for the questionnaire existed, while every downstream work sample was still graded by hand. I hardened and evaluated those early stages, built Stages 3 and 4 from scratch, and turned the whole funnel into a tested four-stage pipeline where deterministic checks and language models grade candidate work against explicit rubrics.
The interesting part is not the automation. It is that the rubric is an eval set, the grader is the harness that runs it, and getting one right does not get you the other. A design decision that survived review broke in production six weeks later, because the harness misread its own test content as data.
01The four stages
-
Intake
Inherited basic email intake and hardened it—parses inbound applications, extracts structured fields, applies rule-based filters, and isolates malformed threads so one bad email cannot stall the queue.
-
Questionnaire
Expanded a limited early LLM screen—audited 33 questions down to 24, calibrated location and compensation gates, measured the live LLM gates, and replaced an unreliable model gate with deterministic rules.
-
Portal exercise
Built end to end from scratch. Candidates complete a simulated task in a school portal. GPT‑4o vision evaluates the screenshot against a rubric and returns a pass or fail with reasoning.
-
Spreadsheet grader
Built end to end from scratch. A server-side grader evaluates a spreadsheet submission against an explicit rubric, returns category-level feedback, and runs a two-round retry loop for candidates who can improve.
02The eval design
The core of stage four is not the code. It is the rubric an automated grader enforces, which is the same discipline as designing an eval set for any AI system.
Hard gates versus soft gates
I defined which criteria must pass for a candidate to advance, against which are recorded but not disqualifying. That boundary is what keeps the grader from rejecting good candidates or passing weak ones. Both failure directions are expensive, and they are not symmetric: a false reject is invisible and permanent, a false pass surfaces at interview.
A deliberate data-fidelity trap
The exercise seeds a flaw in the source data. Reading the spec against the grader's actual behavior surfaced a contradiction—the spec said to forgive the flaw, but the grader correctly rewards a candidate for catching it. Forgiving it would have rewarded the wrong behavior in a hiring exercise. Caught in the design document, before it reached code.
The trap broke the grader six weeks later, and that is the more useful half
The design decision held. The implementation did not. In August, the seeded flaw turned out to be splitting two lookup keys into separate buckets, so the grader read its own test content as real data and false-failed candidates who had done the work correctly.
Nothing in the design review would have caught it. It took working backward from a live candidate whose numbers were nine of nine correct and who still received a retry email.
Getting the rubric right is not the same as getting the grader right. An eval is only as good as the harness that runs it, and the harness needs its own adversarial pass.
Fixing the harm, not only the bug
A code fix does not un-reject anybody. After deploying, I swept the back catalog for grader-caused failures, rewrote the recorded reasons, manually advanced the confirmed false fail, and queued two candidates for re-grade under the corrected logic. I verified with a negative fixture—a candidate who never catches the seeded flaw still fails—confirming the fix did not quietly lower the bar.
The same habit scaled up in November when shared spreadsheet triggers (including an undocumented On open trigger) stamped unrelated rows and caused false second-try rejections. Adversarial review cut a proposed multi-trigger rewrite down to one shared timestamp rule and deleting all four automatic triggers (63/63 tests). To fix the harm, I sized the 14-month back catalog with three methods and explicit confidence bands—96 no-edit rejections, 74 still passing every hard rule—won sign-off to revive them, and caught a re-warming edge case on day one before scaling outreach. The next day, a separate Gmail lookup bug (typed names in an email field matching job-board relay threads across 149 rows) also collapsed to a one-line fix after a second adversarial review.
Calibration under a real cost function
- The location gate was set too aggressively at first, then recalibrated after I confirmed East Coast candidates were still viable.
- Raising the compensation gate exposed a parser that had silently defeated every threshold it ever had. The old helper mis-read comma and abbreviated formats, so a six-figure answer parsed as zero. Every high earner had passed every threshold since the gate existed. I wrote a replacement with 14 tests and verified it against production.
- Feedback categories expanded from 3 to 12, each tied to a specific instruction step, after the coarse version produced feedback candidates could not act on.
Measuring three unmeasured LLM gates—and retracting my own defect
Three production gates called an LLM to decide whether real applicants advanced, and none had ever been measured. Reading two prompts against their parsers turned up contradictory output schemas—mixed capitalization, curly quotes, and a trailing comma in invalid JSON. I filed it as a live defect, then built a resumable eval harness (50 trials per gate, n=100 total, 95% upper bound under 6%, separating schema violations from judgment misses) to measure the real rate.
The result was zero schema violations in 100 trials. The model normalized every contradiction, so I retracted my own hypothesis. Instead, logging the raw responses exposed a real bug firing on 100% of calls: the API helper returned an array where callers expected a string. It survived by accident through String() coercion on single-part responses and silently threw on split JSON, while its last-resort fallback returned the raw API envelope so the timezone gate evaluated undefined <= 3 and auto-rejected candidates. I fixed both test-first (19 new cases, verified across unit tests, live API contract, and a pre/post production diff), added durable attempt-stamped reason logging, and stopped a planned candidate-facing reason email on evidence when all 50 measured reasons leaked the answer key.
03Silent-failure QA
The recurring theme in production. Each of these fails by doing nothing, so no alert fires and no log line appears.
| Failure | What it would have cost |
|---|---|
| Retry pool never fires unless timestamp columns are datetime-formatted | Every candidate's retry silently vanishes |
| A standalone script cannot install a form-submit trigger from the UI | The same, caught on deploy day |
| Uncatchable permission error on files not shared with the service identity | Real runs marked "failed" in production |
| Dev running a stale build missing the core resolver | Testing a system that is not the one shipping |
| Dev and prod sharing one hard-coded live spreadsheet | The grader acts on fake candidates the moment it goes live |
| Name-search fallback matching the bot's own alert emails | It replies to itself, marks the row processed, and the candidate is never retried |
| Form response limits binding to an account while the pipeline keys on a typed address | One candidate produces two rows and gets double-emailed |
| A questionnaire accepting free text where the pipeline needs numbers | A qualified answer parses as NaN and auto-rejects |
| Reply recipients resolved from our own last message in the thread | Every candidate-facing reply addressed to the wrong recipient—correct content, wrong envelope, no error |
| One malformed email header crashing an unisolated inbox loop | Blocked every new applicant reply for 21.5 hours with no alert |
| Shared spreadsheet triggers stamping unrelated tabs on any form submit or sheet open | Made unchanged answers look resubmitted, sending false second-try rejections |
The free-text questionnaire bug shipped with form validation plus a hold-for-human path that flags unreadable answers instead of guessing, followed by a sweep of past responses for false rejections. Validation stops the next bad input. Refusing to guess stops the pipeline from making a decision it has no basis for.
04Scope discipline
Four decisions where the simpler or narrower version beat the sophisticated one on safety, not just cost.
Killed a fuzzy-matching reconciliation mid-build
School-name matching had grown overlap scoring, edit distance, and tie-breaking. I replaced it with a ten-line rule that acts only when exactly one name is unaccounted for on each side. The simple version had the stronger safety argument: fuzzy matching can silently pair the wrong two schools, while a one-to-one rule either has an unambiguous answer or does nothing. Correctness argued the same way as cost.
Replaced a production LLM gate with plain rules
After auditing the Stage 2 questionnaire from 33 questions down to 24 (rewriting LLM-fakeable questions in place to respect a 7-minute interview cap), I replayed 1,609 historical candidate answers comparing deterministic rules against our live reasoning-model availability grader. Plain rules held just 0.9% of rows for human review against a 30% stop line—and caught the LLM passing "a couple days a week" as full-time available. I removed the model and shipped the rule-based gate on evidence.
Changed the blast radius when the root cause vanished
A single thread Gmail refused to reply to killed every 30-minute run for 21.5 hours until the thread left the inbox. Two read-only diagnostic passes came back negative—and proved that draft-based probes validate recipients less strictly than sending does. Rather than chase an unreachable cause indefinitely, I isolated every loop per thread (tested with a hostile mock thread whose own getters throw) so one poison thread now costs one thread and logs its own sender, subject, and error in a single line.
Parked a six-file remediation plan
For a bug seen once in months, I shipped the four-line piece instead—which also fixed an unrelated class of rejected threads. The larger plan stays available if the failure recurs.
05Engineering practice
- Full spec → plan → build → review → deploy loop, with per-task and whole-branch code review.
- The plan caught what the spec missed: a spec-versus-grader contradiction, a second retry round, and a feedback token added at plan stage.
- Safe deployment—diff live against local before pushing, draft-mode burn-in before flipping the flag, and verify every fixture in production under the correct service identity rather than trusting dev.
- Shared-repo deploy guard—diffing local main against origin before pushing once caught a 140-commit-behind checkout that would have silently reverted six live teammate commits.
- Local development under version control with clasp and git, adopted as the team standard.
- Bounded automation scope—new-template submissions auto-grade, legacy submissions stay manual by design. Making the boundary explicit prevents the grader from acting on input it cannot correctly parse.
06What it demonstrates
End-to-end ownership across both inherited and greenfield stages. Eval-set design, calibration, and measuring live LLM gates—including retracting a wrong hypothesis and removing a model on replay evidence. Judgment about silent failures, the class of bug that throws no error and writes no log line. Willingness to kill a sophisticated build for a simpler rule, or isolate blast radius when a root cause is unreachable. And the habit of fixing the harm a bug caused, not only the code that caused it.