Agents built to the spec, and tests held them to it. Here is how a finding in a data test became a rule an agent can't skip.
Independent product concept built on public research data (OpenAlex, ORCID). Inspired by Interfolio's tenure and promotion workflow; not affiliated with or endorsed by Interfolio or Elsevier.
29/29
Known shared papers found in the regression run on the 59 frozen test pairs
0/30
Conflicts wrongly raised on same-name and unrelated reviewers
200
Unit tests passing; 59 product decisions logged with reasons
01 · The pipeline
Five documents, one direction of authority
What & why
PRD
Assumptions, scope, metrics, gates.
→
Why it looks this way
Decision log
Never edited, only superseded.
→
How, testably
Build spec
Features, Given/When/Then criteria, rules in one config.
→
Build & prove
Agents + tests
Prompt pack, unit tests, regression on frozen data.
On decisions the decision log wins; on scope the PRD wins. If a test fails, the agent fixes the code, not the test.
02 · One requirement, traced end to end
How a data-test finding became a test an agent can't skip
1
Finding
In the third data test, every researcher who shared a name with a real co-author came back as a Conflict.
2
Decision
A shared paper counts as a Conflict only when its author is the confirmed reviewer. A match on name alone becomes Potential, with a "check it's this person" prompt.
3
Acceptance criterion
"Given a confirmed reviewer who shares a name with a real co-author, the result is never Conflict."
4
Build
Rules are pure functions with no network calls, and every threshold lives in one config file, so the rule can be tested in isolation.
5
Test
The regression run passes only with zero Conflicts on same-name and unrelated reviewers, and at least 85% of known shared papers found. Latest run: 29 of 29 shared papers found, 0 of 30 wrong Conflicts. Five same-name reviewers came out Potential with a "check it's this person" prompt, which the rule allows.
A second, shorter trace. Reviewing the prototype, I saw that results appeared instantly, hiding the 4–5 data lookups each reviewer really needs. So checks now start in the background as each person is confirmed, with a target of 15 names within 20 seconds of the last confirmation, and test sessions log waiting time separately from the chair's own time.
03 · Guardrails
Where the agents were not allowed to be clever
DecisionsAI never decides a conflict. The rules are deterministic and explainable, and a person makes every call.
FailuresA failed lookup shows "Couldn't check" with a retry. It never becomes "No conflict found".
SecurityData calls happen only on the server; API keys never reach the browser.
HonestyThe prototype runs on fictional people, and anything mocked is labelled on screen.
04 · What got built
A prototype to test the riskiest step, and a backend for the rest
Prototype
Clickable flow on fictional demo data
Session mode logs identity picks and timings against an answer key
Built in Lovable from an ordered prompt pack
Live backend
Server-side OpenAlex and ORCID lookups, cached, retried and rate-limited
Own database and sign-in
Rules engine with unit tests; regression suite from the frozen test data
Public showcase on Cloudflare Workers: live checks with a daily cap, a per-visitor limit and no stored data
Built with Claude Code against the spec
A risk I took on purpose: the backend went ahead before chair sessions, which are postponed. If chairs struggle to confirm identity, part of it may need rework.
05 · What I'd do differently
Lessons I'm carrying forward
Put the same-name test case into the first data test, not the third.
Size the human step (two in three names) before designing around it.
Decide where each layer is built (prototype tool vs code) before writing build prompts, not after.
Test institution rules against umbrella records early: a university system and a research funder both produced false matches before the rules were tightened.