How the agents work
This page records how the AI agents work and every framework version: 29 versions so far, fromv0.1 to v0.2.1, and 11 published runs.An evaluation run turns a charity's public documents into a draft evaluation that a person can check. AI agents do the reading and drafting. Plain code does the checking, so the parts that must be exact (quotes, merging, scoring) never depend on a model behaving well. At the end we compare the draft with an evaluation that experts at The Life You Can Save (TLYCS) have already published, to see where the AI helps and where it falls short.
The whole system
A framework run sits inside a larger loop. Research agents on the outside read what charities and donors struggle with: reporting burden, trust, where the money goes. A person decides which findings change the plan. Inside, every run reads only locked inputs, so a result can be repeated exactly. One evidence record comes out, shaped for charities, funders and donors, and their replies feed the next round. The numbered circles show which of the six needs each step serves, and the line style shows what is built and what is still planned.
A run, step by step
Collect the documents
code, before the run- gets
- The charity's public website pages, reports and FAQs.
- does
- Downloads them once (39 documents for GiveDirectly, about 80,000 words), removes anything that quotes the expert evaluation, and freezes the set with a fingerprint.
- makes
- The corpus: the only material the agents are allowed to read.
- why
- Every run reads exactly the same documents, so when results differ the cause is the agents, not the inputs. Removing the experts' text stops the agents copying the answer.
Pull out the evidence
4 AI agents · Gemini Flash-Lite- gets
- All the documents, plus one topic group to look for: the problem; the intervention and its evidence; the organisation (finances, governance, risks, dignity); or funding.
- does
- Reads every document and lists the facts on its topic. Each fact must carry an exact quote and the name of the document it came from.
- makes
- Four lists of quoted facts. From v0.12 each agent must return at least 25, because with no minimum the small model returned only 4 to 7 (the v0.11 GiveDirectly run). From v0.13 the intervention agent also gets a list, built by code, of every study the documents cite, and must cover each one.
- why
- One agent asked to find 'everything' returned only 10 facts. Four narrow passes find more. A small model is enough because this is careful reading, not judgement, and it keeps the cost to about 2 cents per pass.
- model
- Gemini Flash-Lite: Google's smallest, cheapest model. Good at fast, mechanical reading.
Check every quote
code- gets
- Each fact and its quote.
- does
- Looks for the quote, word for word, in the document it cites. It fixes small copying slips, moves a quote to the right document when it was filed under the wrong one, and throws out facts whose quote can't be found anywhere.
- makes
- Only facts that a reader can trace back to the source.
- why
- Cheap models sometimes misquote. A mechanical check is more reliable than asking a model to be careful. This step is why every claim in the final report can be checked.
Build the shared evidence base
code- gets
- The four fact lists.
- does
- Joins them and removes duplicates.
- makes
- The evidence layer: the quoted facts every specialist shares (19 in v0.11's GiveDirectly run, 178 in v0.21's).
- why
- Every specialist works from the same checked facts, so two specialists can't disagree about what a document says.
Answer the expert questions
4 AI agents · Gemini Flash- gets
- The evidence layer and all the documents, the TLYCS method notes for its area, and only its own questions from the TLYCS scoring sheet, with every answer option written out. From v0.5 it can also search the documents and use calculators.
- does
- For each question: compares the evidence with every answer option, picks the one the evidence supports, explains why with quotes, and says how confident it is. If the evidence isn't there, it says so instead of guessing. It also lists the strongest reasons its own answers could be wrong.
- Problem (Q1 to Q5): How serious is the problem, how many people does it affect in the poorest countries, can it be solved, and is it already well funded?
- Intervention (Q6 to Q10): Does the programme work? How strong is the research, how cheaply does it improve lives, how many kinds of poverty does it touch, and do the effects last?
- Organisation (Q11 to Q16, Q18): Is the charity well run? Where does it work, how many people does it reach, is it locally led, does it strengthen local systems, does it treat people with dignity, and what are the risks?
- Funding (Q17): How much more money could the charity put to good use?
- makes
- Draft answers for its part of the evaluation.
- why
- This mirrors how human evaluation teams divide the work. A specialist that holds only its own questions and its own method notes can go deeper than one agent answering everything.
- model
- Gemini Flash: Google's mid-size model. Better at judgement, still cheap.
Put the draft together
code- gets
- The four specialists' answers.
- does
- Places every answer in the scoring sheet's order. Each question can only be answered by the specialist that owns it. A question nobody answered is marked as missing instead of being left out.
- makes
- The draft evaluation (the dossier).
- why
- No agent can overwrite another's work, and gaps stay visible.
Challenge the draft
1 AI agent (red team) · gpt-oss-120b- gets
- The draft and the evidence layer.
- does
- Looks for ratings more generous than the evidence supports, guesses, contradictions between documents, and risks the draft missed. Every challenge must quote the evidence. It can only raise challenges; it cannot change an answer.
- makes
- A list of challenges, each marked high, medium or low.
- why
- A model from a different company catches different mistakes. Challenges go to the human reviewer, who decides.
- model
- gpt-oss-120b: an open model from OpenAI. Chosen because it comes from a different company, so it has different blind spots from the Gemini agents it checks.
Check for leaks
code- gets
- Everything the agents wrote.
- does
- Searches it for text that appears only in the expert evaluation.
- makes
- A pass or fail for the run.
- why
- If an agent had seen the expert answers, comparing against them would prove nothing.
Write the report
code- gets
- The draft and the challenges.
- does
- Lays them out as a report (web page and PDF) in the same order as the TLYCS evaluation, with each claim's quote and source.
- makes
- The report a person reads.
- why
- A researcher or donor can check any claim in a few seconds.
Compare with the experts
code- gets
- The draft, and the TLYCS evaluation encoded as an answer key (which the agents never see).
- does
- Checks whether each rating agrees with the experts' published rating, whether the draft found the numbers, facts and studies the experts relied on, and whether every quote is real. It then traces each expert item through the steps above to see which agent found it, or where it was lost.
- makes
- Two scorecards: one for the whole evaluation, one for each agent.
- why
- The final score says how good the draft is. The per-agent scorecard says which step to improve next.
Diagnose and decide the next change
Claude, with a person approving- gets
- Both scorecards from every run in a batch, plus what each agent saw and wrote.
- does
- Follows every miss back to its cause, checks that the scoring itself is right, and ranks possible fixes.
- makes
- A written diagnosis and one proposed change for the next version, with its expected result written down before it runs.
- why
- Changing one thing at a time, with the expected result fixed in advance, is the only way to know what actually helped.
Every version so far
Each version changes one thing and states in advance what that change should achieve. A version that has not been run yet says so; older versions stay here with their results and lessons.
- v0.27
Study inventory: the charity's own pages count, and a closure pass chases unrecorded studies
v0.21 GD named 4 of the 6 studies the experts used. S2 (Pega et al.) is in the study inventory (gd-evidence-on-how-cash-transfers-empower-women-in-poverty cites Pega et al. 2017, with Evans 2014 and Siddiqi 2018) but no extractor recorded it: nothing chases an inventoried study once the main passes are done. If a cheap per-document closure pass asks only for the inventory studies no item names yet, the evidence layer and the authors name more of the cited studies. Second, smaller change: the charity's own documents (source kind charity_report) are never skipped for citation density (on the v2 corpus this only changes Seva: 0 -> 21 studies, all on its cost-of-visual-impairment report).
not run yet - v0.26
Data the method names: WHO life tables and an immunisation funding record
Two v0.21 NI misses were missing data, not reasoning. (1) Q8: the method says 'We apply life expectancy at the age of death from WHO life tables', but the country library had none, so the one correct draft passed an unsourced 50 years and v0.22 would list it as an assumption. (2) Q5: the sector library had no immunisation record, so every draft abstained. If ce_calc takes life expectancy at death from WHO life tables (country library) and the sector library holds a primary-source immunisation funding/need pair, NI Q8 can be computed from cited inputs only, and Q5 is answered for every immunisation charity.
not run yet - v0.25
Red team looks at inputs first
Red-team precision was 0/10 across GD and NI on v0.21: every challenge argued with a right (or unscored) rating, none hit Q8 (wrong inputs) or GD Q9. The v0.19 METHOD_NOTE asks it to check computations, but its bundle shows only each computation's metric and level, not what each input was, nor the lens rule's working or the vote split. If it sees each calculation's inputs (with `unsourced_decisive` and warnings), each rule question's `rule.basis` and `votes`, and a brief that says where wrong ratings actually come from and that fewer challenges are fine, at least one challenge per run lands on a wrong rating and fewer land on right ones.
not run yet - v0.24
Strong-model review of every specialist
The strong-model revise pass (Gemini Flash) only runs for owners the red team challenged with an eligible challenge, and red-team precision was 0/10 on v0.21, so whether the strong model ever re-reads a wrong answer is luck: GD Q9 regressed (2 vs 3) because no intervention revise ran (in v0.11 that revise fixed Q9); NI Q8's one correct draft (US$162/DALY) lost the vote 2-1 and nothing re-weighed it. If every author gets a REVIEW pass that checks each rating against the option label's words, each computation's inputs, and which draft's working is right where votes split, ratings the cheap drafts got wrong are fixed without depending on the critic.
not run yet - v0.23
Revert the v0.17 evidence agenda
The v0.17 evidence agenda (code-ranked evidence ids each author must cite or set aside per question) missed its stage metric on both dev charities in v0.21: 2.37 (GD) and 3.0 (NI) statements per question against >= 5, with ~90% of agenda items set aside, mostly rightly (word matching picks off-topic facts). Removing it changes no rating and saves output tokens and repair items.
not run yet - v0.22
Calculator checks what each input means (Q8)
Q8 (cost-effectiveness) was wrong on both dev charities in v0.21 for one reason: ce_calc checks that each number is written in its quote, not that the quote describes the quantity the parameter claims (NI: 'saved 5,097 lives since 2017' and '27 percentage points more likely to be fully immunized' used as DALYs averted, against one year's expenses; GD: $113 delivery cost beside a $1,000 transfer used as the whole cost per household, an unsourced 1-year horizon). If ce_calc refuses inputs whose quote describes another quantity or period, and the Q8 lens rule abstains when the cost or outcome inputs are unsourced, the wrong drafts must recompute or abstain, and the vote and the lens get correct inputs.
not run yet - v0.21
Executable lens rules for threshold questions (JDG-4)
Five rubric questions are thresholds on one or two numbers (Q3 people affected, Q5 funded share, Q8 cost-effectiveness, Q11a priority group, Q12 people reached). Once their inputs are cited (v0.11, v0.15), guarded (v0.18) and available (v0.20 libraries), choosing the option is arithmetic, and a model's reading of it can go wrong (v0.11 GD Q8: right threshold, wrong number; Q3: reached vs affected). If the author supplies typed, cited rule_inputs and code applies the published thresholds, rule questions match at least as often and every rating shows its working.
85%mean rating agreement over 2 runs - v0.20
Sector funding library for neglectedness
Q5 (neglectedness) is asked for every charity, and its inputs (annual funding for the problem and the funding needed, in priority geographies) are almost never in a charity's own documents: v0.11 GD abstained on Q5 and the red team's proxy ('a very small proportion of aid') was rightly rejected. A shared library of funding-vs-need pairs from primary sources (ILO, WHO, UNESCO), each quote checked verbatim, with a lookup tool that returns the funded share and the level, gives the problem specialist the two numbers the method needs, the way the country library gave it MPI.
not run yet - v0.19
Red team checks method
The red team argued from outputs it could not check and pressed an honest abstention without saying what would settle it: on v0.11 GD it challenged a correct Q3 rating by confusing people reached with people affected, and its 'missing_evidence' challenge C4 (no proposed option) turned the Q8 abstention into a wrong rating. Showing it the authors' computations (inputs with quotes) and requiring every rating challenge to quote the proposed option's rubric label, and every challenge to an abstention to propose an option, makes challenges testable and stops pressure without a stated alternative.
not run yet - v0.18
No confident-wrong from the critique loop
Two defences failed in a row on v0.11 GD Q8: the calculator accepted a 27-month local-economy multiplier as participants' benefit (ROI 1.95x, option 2; experts 6), and the final pass overturned a 2-of-3 draft abstention after the red team called it a dodge, citing only passages the drafts already had. A calculator guard (Box 4: value created for participants) and a rule that a draft-majority abstention stands unless the revision cites a new document passage stop the critique loop from manufacturing confident wrong ratings.
not run yet - v0.17
Evidence agenda per question
Reading access is not reading: v0.11 GD's specialists had every document and the evidence layer but cited 21 of 39 documents and wrote 3.4 statements per question, leaving relevant facts unused. If code puts, for each question, the evidence items most relevant to its rubric text on an agenda, and the author must cite each or say why it doesn't apply (checked in the repair turn), the richer layer from v0.12-v0.14 reaches the answers and every unused relevant item leaves a reason a reviewer can read.
not run yet - v0.16
Name the study
Studies the authors use are invisible to readers and to the scorer when the statement cites them without naming them: v0.11 GD cited the Haushofer & Shapiro trial four times through the intervention library card, but only the red team named it (S1, F6), and studies in cited documents (S5 Crosta, S6 Walker) were never named. A repair-turn check that any statement resting on a study names its first author and year puts the study in the text.
not run yet - v0.15
Figures on statements
Numbers the authors publish are lost to the figure record when they are written in a statement but not repeated as a key figure: v0.11 GD stated the $1.2M DRC fraud loss (N8) in a Q18 statement and recorded no key figure for it. If a fact statement can carry its headline number as a `figure`, checked against the statement's own evidence, code can build key_figures from published statements, so stated numbers are never dropped from the record.
not run yet - v0.14
Every document read
A model reading the whole corpus (141k tokens) at once skims: v0.11 GD's specialists cited 21 of 39 documents and the evidence layer took facts from even fewer, and the missed facts sit in the uncited ones (gd-malawi: spillovers; the women's-evidence page: Pega, Bastagli). After the four topic passes, a short extraction on each document that contributed no item, reading that document alone, gets facts from every document into the evidence layer.
not run yet - v0.13
Study inventory
Studies are dropped because nothing obliges extraction to record them (the v0.9 checklist covers numbers only): v0.11 GD's evidence layer named 1 of the 6 studies the experts relied on, though all 6 are cited in the corpus. A code-built list of every study the charity's own documents cite (author-year citations; academic papers' literature reviews skipped), given to the intervention extraction pass as an obligation, puts the studies in the evidence layer and from there in the answers.
not run yet - v0.12
Extraction floor back
v0.11's loss of content (key facts 8/9 -> 5/9 from the authors' own text, studies 1/6) comes from v0.9's removal of the extraction floor, not from the statement format: with min_items 25 back next to the v0.9 measure checklist, the evidence layer returns to ~80 items (v0.2.1 79-83, v0.7 77; v0.11 19) and facts the specialists never saw (F7 spillovers, F9 saturation, N6, N10) reach the dossier. Diagnosis: evals/diagnoses/v0.11-givedirectly.md.
not run yet - v0.11
Evidence chain by construction
Every statement a reader sees can sit next to its quote and source link, at no rating cost: when authors write answers as statements with evidence beside each, and code checks every quote and every number before publishing (one repair turn, then removal), the share of published statements that trace end to end goes from ~50% of questions (EVAL-13: NI v0.7 58%, GD v0.2.1 47%) to 100% by construction, and ratings and key-figure accuracy stay at v0.10 levels. Findings 2026-12-03 (evidence chain audit).
85%mean rating agreement over 1 run - v0.10
Rubric-intent skills and vote-split routing
The remaining rating differences are rubric readings, not missing facts. Skills that quote the published rubric/method wording for Q10 durability, Q14 localisation and Q5 neglectedness (and say where the published text is silent), plus routing any split vote to the red team, fix the Q5/Q10/Q14 misses without new facts. Findings S5, S6, S7, D2.
not run yet - v0.9
Measure-driven coverage checklist
Recall of expert-needed measures rises and the gap list becomes reliable, at about the same cost. Replacing the item floor with a per-measure checklist (found / not_found / ambiguous) stops extraction stopping at the minimum, and code re-search makes every not_found checkable. Prediction on New Incentives: the 6 expert facts v0.7 never extracted are either found or listed as gaps with the documents searched.
not run yet - v0.8
Typed figures: every number carries its period
Most wrong numbers are period mismatches: totals since launch read as one year, targets read as actuals. If every figure carries a period type read from its own quote, and the tools refuse to mix annual with cumulative figures or targets with actuals, Q8 (cost-effectiveness), Q11d (cost per person) and Q12 (reach) improve with no extra model calls. Prediction on New Incentives: Q12 uses the 2024 annual figure, not the cumulative total.
not run yet - v0.7.1
v0.7 bug fixes (same design)
Point release, no new hypothesis (ladder rule: fixes go in point releases). Same design as v0.7 with the bugs found in the first paid v0.7 run (New Incentives, audit evals/diagnoses/v0.7_new_incentives_audit.html) fixed. Predicts: the red team and revise steps actually run; no fabricated or unverifiable tool citations; Q8's threshold decided by code on PPP GDP; fewer repair turns; ratings otherwise as v0.7.
not run yet - v0.7
Methodology skills and shared country / intervention libraries
Specialists re-derive the methodology and the context (country priority group, MPI, GDP per capita, the core studies) from scratch for every charity, inconsistently. Procedures written once from the methodology (skills, loaded on demand) and shared libraries built once from primary sources (country: OPHI MPI 2024 + TLYCS priority groups + World Bank GDP pc; intervention: primary-study cards) make answers more consistent across charities and samples (higher vote agreement), fix the geography/threshold questions (Q3, Q11a, Q8's 33% GDP threshold) and cut tokens per charity. Predicts: vote agreement up, rubric exact up on geography/CE questions, no change on organisation-specific questions.
86%mean rating agreement over 1 run - v0.6
Voting, a rubric-aware red team and one adjudicated revise
Single-sample ratings are noisy and the v0.2-v0.5 red team cannot change anything, so rating errors survive. Three independent samples per specialist with a majority vote cut random rating errors (spread = calibrated confidence); a red team that holds the full rubric and must quote verbatim, filtered by a code rule and answered once by the owning specialist, fixes systematic over/under-rating without letting persuasion flip ratings. Predicts: rubric exact agreement up, harmful flips (correct -> wrong after revise) = 0, confidence better calibrated.
not run yet - v0.5
Deterministic tools: corpus search, CE calculator, recompute, financial ratios, RoB 2
Ratings and figures that need arithmetic or a targeted look-up fail because the model does maths in prose and cannot re-search what the evidence layer dropped. With corpus_search (search before 'not reported'), ce_calc (TLYCS boxes), recompute (catches 10^k slips) and fin_ratios, Q8 and the CE figures become checkable, Q9/Q15-type omissions recover, and the perturbation pass rate rises (doubling costs must move ce_calc's output). Ratings elsewhere: unchanged.
not run yet - v0.4
Corpus v2: the charity's documents as of the evaluation date, plus PDFs and a Form 990 fact sheet
Most key-figure misses are input gaps (8 of 10 TLYCS key figures absent from corpus v1; v1 also holds 2026 pages a 2025 evaluation never saw). A point-in-time corpus (Wayback captures <= 2025-08-31) plus the audited statements, Form 990 and the main RCT as text raises key figures (M7) and evidence recall; rubric ratings should not change much (PLAN_NEXT_LEVEL §6 ladder).
not run yet - v0.3
Sphere specialists read their sphere's source documents
The v0.2.1 rating drop (62% vs 85-92%) comes from the lossy evidence layer: specialists that also read their sphere's source documents recover Q9/Q15 and answer Q5, while Q2 (rubric reading) and Q8 (input) still miss. Pre-registered in evals/diagnoses/v0.2.1-givedirectly.md section 9.
not run yet - v0.2.1
Sphere specialists + quote verifier
v0.2 plus a deterministic quote verifier after every agent restores grounding to the SPEC gate (>=95%) without losing v0.2's recall gains.
62%mean rating agreement over 3 runs - v0.2
Sphere specialists over a shared evidence layer
Splitting the TLYCS evaluation the way human researchers split it (an extraction pass that builds a cited evidence layer, then one specialist per sphere with only its own methodology, then an independent red team from a different model family) raises key-figure, key-fact and study recall over v0.1 without losing grounding, at similar cost.
69%mean rating agreement over 1 run - v0.1
Single-shot evaluator
One long-context call with the whole frozen corpus, the TLYCS rubric and methodology can produce a fully grounded TLYCS-style dossier at low cost. This is the baseline every later version must beat.
87%mean rating agreement over 3 runs
Words we use
- Scoring sheet (rubric)
- TLYCS's 19 questions about a charity. Each has fixed answer options, such as low, medium or high.
- Rating agreement (rubric exact)
- Of the questions we can score, the share where the draft picked the same answer option as the experts.
- Within one option
- The same option as the experts, or the one next to it.
- Scored question
- A question where the experts' rating rests on public evidence. The other questions are shown but not scored.
- Quotes verified (grounding)
- The share of claims whose quote was found word for word in the document it cites.
- Fabricated citation
- A quote that doesn't exist in the document it cites. The target is zero.
- Key figures
- The 10 numbers the experts relied on, such as the annual budget or people reached. Found means the draft gives the same number, within 15%.
- Key facts
- The 9 facts the experts relied on, such as the 2022 fraud in the Congo programme and how the charity responded.
- Studies
- The 6 research studies the experts cited.
- Evidence layer
- The shared list of checked, quoted facts that the extraction agents produce and the specialists read.
- Not in the documents (not in corpus)
- The experts used it, but it isn't in the documents we gave the agents, so no agent could have found it.
- Missed by extraction (never extracted)
- It is in the documents, but no extraction agent picked it up.
- Lost after extraction
- It reached the evidence layer, but the specialists didn't use it.
- Abstained
- The agent said the evidence wasn't enough to choose an answer, instead of guessing.
- Item recall (per agent)
- Of the expert figures, facts and studies in an agent's area, the share that agent's output contains.
- Red team
- An agent whose only job is to challenge the draft.
- Development and held-out charities
- We tune the agents on development charities (GiveDirectly) and test them on held-out charities whose answers are kept private, so the test stays fair.
- Run, batch, version
- A run is one evaluation. A batch is several runs of the same setup, which shows how much results vary. A version is one setup of the agents, with one stated change from the last.
- Evidence agenda
- The short list of facts, chosen by code, that a specialist must use or set aside with a reason for one question.
- Threshold rule
- A rating decided by code from a cited number and the published cut-offs (e.g. more than 2 million people → the top option).
- Sector funding library
- A small, sourced table of how much of a problem's funding need is met (e.g. social protection for the poorest), shared by all charities.