Frameworks / v0.31 · built (free checks only; not run) · 2026-12-04

Key figures by construction: code fills each question's key-figure slots from verified evidence

Framework v0.31 is a built (free checks only; not run) version of cicadar's AI charity evaluation: 3 changes from v0.30and no published runs yet.

Hypothesis

The writers' key_figures lists are mostly empty even where the evidence layer holds the number (v0.21: M7 0.0 NI, 0.4 GD). After the writers, the chain gate and revisions, code fills each rubric question's key-figure slots (registry/key_figure_slots.json: the measures TLYCS's question and methodology text ask for) with the best verified evidence item of that measure (typed by v0.29; organisation/programme scope before country; newest period; highest level; never superseded), plus chain-accepted calculator results for Q8/Q11d. Writers' figures are never overwritten. Expected: M7_answerable_only rises with no loss of grounding.

What changed from v0.30

  • v0.30 is built on v0.29 (record quality, flag `quality`) as well (lead, 2026-12-04).
  • v0.30: three layers (human priority 2026-12-04). Version flag `layers`: each agent has a `layer`; writers run Problem, Intervention, Organisation (organisation and funding side by side); after a writer's votes and chain gate, code builds a LAYER BRIEF (framework/layers.py; <= 4,000 chars; kept statements with verified quotes, key figures, rubric option, confidence, evidence ids) that the next layers read in a new bundle section EARLIER LAYERS; the revise passes run in layer order and read the upstream layers' revised briefs; the red team stays after all layers. Store items carry a `layer` tag for the trace only (stripped from every bundle). Briefs: intervention_v30, organisation_v30, funding_v30 (one added paragraph each).
  • v0.31: key figures by construction (flag `key_slots`): framework/keyfig.py fills empty slots from verified evidence after revisions; caps 1 per slot, 5 per question; every addition is marked `by: code` and recorded in keyfig.json, run.json["key_slots"] and the trace (step "Fill key figures").

Result

Not run yet. Results appear here after the first run of v0.31.

What the diagnosis found

No published diagnosis for this version's runs yet.

The change it led to

Paid dev-8 test of v0.30 after the human approves it (COSTS.md estimate first); compare layer briefs (layer_briefs.json) with the Q11d / Q11a answers. See v0.32.

Architecture

corpusQ1–5Q6–10Q11–18Q17draftitemsverifiedsphere docscallscallsrecomputechallengeseligiblefinallookupsproceduresproceduresCorpus v2 (as of 2025-08-31)Wayback pages + PDFtext + 990 fact sheet· CORPUS.lockShared librariescountries (MPI,priority group, GDPpc) · interventions(study cards)Methodology skills9 procedures · loadedon demand · named peragentextract ×4Flash-Lite · one passper sphere · ≥25 itemseach + measurechecklist · studyinventory(intervention pass) ·then one short passper document nothingwas taken fromQuote verifiercode · snap to source· drop unverified ·flag period conflictsEvidence layeritems: doc_id · quote· topic · period type(v0.8)problemQ1–Q5 · Flash-Lite ×3voteinterventionQ6–Q10 · Flash-Lite ×3voteorganisationQ11–Q16, Q18 ·Flash-Lite ×3 votefundingQ17 · Flash-Lite ×3voteEvidence chain gatecode · everystatement: verifiedquote · numbers in itsown evidence · onerepair turn · elseremoved · source links· key figures builtfrom tagged statementfiguresSynthesisdeterministic mergeredteamgpt-oss · full rubric· typed, quotedchallengesca-tools (MCP)corpus_search ·ce_calc · recompute ·fin_ratios · rob2Adjudicatecode · verified quote· rubric-valid ·materialOwner revises onceaccept / reject eachchallengeScoreper agent + final vsTLYCS
v0.31, Key figures by construction: code fills each question's key-figure slots from verified evidence. Drawn from framework/versions/v0.31.json, the file the pipeline runs from. Filled boxes are AI agents; outlined boxes are code or data.
Step by step for v0.31
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. Read every document on its own

    code + 1 small AI agent per document · Gemini Flash-Lite
    gets
    The documents that no fact came from in the step before.
    does
    Sends each of those documents, alone, to a small agent that lists its facts with quotes. The quotes are checked like all the others.
    makes
    Facts from every document (in v0.21's GiveDirectly run: 20 documents had no fact, the sweep added 110, and none were left without one).
    why
    A model reading 39 documents at once skims; one reading a single short page doesn't. Only the uncovered documents are sent, so it costs a few cents.
    model
    Gemini Flash-Lite: Google's smallest, cheapest model. Good at fast, mechanical reading.
  6. Chase the studies nobody recorded

    code + 1 small AI agent per document · Gemini Flash-Lite
    gets
    The list of studies the charity's own documents cite (found by code), and the facts collected so far.
    does
    Finds the cited studies that no fact mentions yet, and sends each citing document, alone, to a small agent that records what the document says about those studies: who did them, how, and what they found, with a quote.
    makes
    A study record for every study the documents cite as evidence for the programme.
    why
    In v0.21 GiveDirectly's documents cited a review the experts relied on, but nobody wrote it down, so no later step could use it. Only a few documents are sent, so it costs a few cents.
    model
    Gemini Flash-Lite: Google's smallest, cheapest model. Good at fast, mechanical reading.
  7. 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.
  8. Check every statement against its source

    code
    gets
    Each specialist's answers, written as short statements with the quote that supports each one beside it.
    does
    Checks that every quote is really in the document it cites and that every number in a statement is written in its own quote (or worked out in plain view). Anything that fails goes back to the specialist once with the exact problem. Whatever still fails is taken out of the answer and listed as removed. Each quote then gets a link to the archived page, which highlights the passage.
    makes
    Answers where every sentence a reader sees sits next to its quote and a link to the source.
    why
    A reader should be able to click through from any claim to the words it rests on. Before this step, only about half of the answers could be traced all the way back.
  9. Let code apply the threshold questions

    code
    gets
    For five questions decided by a number (how many people are affected, how well funded the problem is, value for money, where the charity works, how many people it reaches), the numbers the specialist cites with their quotes.
    does
    Checks each number is written in its quote, then applies the published TLYCS thresholds to pick the answer option. If a number is missing or fails a check, the specialist's own answer stands and the reason is recorded.
    makes
    Ratings on threshold questions with the working shown, e.g. 'funded share 3.7% → option 3'.
    why
    Once the numbers are cited, choosing the option is arithmetic, and code doesn't misread a threshold. It can't catch a wrong number, though: in v0.21 it faithfully applied the threshold to a value-for-money figure built from the wrong cost.
  10. Check what each calculator input means

    code
    gets
    Every number a specialist feeds the value-for-money calculator, with the quote it came from.
    does
    Reads each quote for the kind of number it is: lives saved can't be entered as healthy years of life, a rise in vaccination rates isn't a count of anything, a cost for one year can't be divided by results from several years, and a delivery fee isn't the whole cost of a cash transfer. It refuses those inputs and says how to do it properly. If the cost or the results have no source at all, the value-for-money rating becomes 'not enough evidence'.
    makes
    Value-for-money figures built only from numbers that mean what they claim, or an honest 'not enough evidence'.
    why
    In v0.21 value for money was wrong on both test charities, each time with every number found in its quote: '5,097 lives saved' was counted as 5,097 healthy years, and a $113 delivery fee as the whole cost of a $1,000 transfer.
  11. Use official life tables for lives saved

    code
    gets
    Lives saved entered into the value-for-money calculator, and the country.
    does
    Turns each life saved into healthy years of life using the World Health Organization's life table for that country (how many more years a young child there can expect to live), unless the specialist gives a figure with a source. The calculator says which figure it used.
    makes
    Healthy years of life from a cited, official number instead of a guess.
    why
    The method we follow says to use WHO life tables. In v0.21 the one correct New Incentives draft used a guessed 50 years with no source.
  12. 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.
  13. 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.
  14. Every specialist reviews its own draft

    4 AI agents (one per area) · Gemini Flash
    gets
    Its own draft, the challenges raised against it (if any), and the questions where its three drafts disagreed.
    does
    Checks each answer against the exact words of the rating options, checks every number it fed the calculator, and looks hard at questions where the drafts disagreed rather than taking the majority. It changes an answer only with a quoted reason.
    makes
    A reviewed draft, with each change and its reason listed.
    why
    Until v0.23 only specialists with challenges against them got a second look, so a wrong answer nobody challenged stayed wrong (GiveDirectly's count of kinds of poverty in v0.21).
    model
    Gemini Flash: Google's mid-size model. Better at judgement, still cheap.
  15. 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.
  16. 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.
  17. 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.
  18. 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.

Configuration and prompts

The exact configuration the pipeline ran from, and every prompt the agents were given.

Configuration (framework/versions/v0.31.json)
{
 "agents": [
  {
   "id": "extract_problem",
   "role": "bulk",
   "agent_file": "ca-extract",
   "inputs": [
    "corpus"
   ],
   "output": "store",
   "owns_qids": [],
   "brief": "framework/briefs/extract_v12.md",
   "focus_topics": [
    "programme",
    "problem",
    "scale"
   ],
   "min_items": 25,
   "concept_agents": [
    "Research",
    "Document extraction",
    "Programme identification"
   ],
   "schema": "store_v09.schema.json",
   "layer": "problem"
  },
  {
   "id": "extract_intervention",
   "role": "bulk",
   "agent_file": "ca-extract",
   "inputs": [
    "corpus"
   ],
   "output": "store",
   "owns_qids": [],
   "brief": "framework/briefs/extract_v12.md",
   "focus_topics": [
    "evidence",
    "cost",
    "programme"
   ],
   "min_items": 25,
   "concept_agents": [
    "Research",
    "Document extraction",
    "Programme identification"
   ],
   "schema": "store_v09.schema.json",
   "study_inventory": true,
   "study_closure": true,
   "layer": "intervention"
  },
  {
   "id": "extract_organisation",
   "role": "bulk",
   "agent_file": "ca-extract",
   "inputs": [
    "corpus"
   ],
   "output": "store",
   "owns_qids": [],
   "brief": "framework/briefs/extract_v12.md",
   "focus_topics": [
    "finance",
    "governance",
    "learning",
    "risk",
    "dignity_local"
   ],
   "min_items": 25,
   "concept_agents": [
    "Research",
    "Document extraction"
   ],
   "schema": "store_v09.schema.json",
   "layer": "organisation"
  },
  {
   "id": "extract_funding",
   "role": "bulk",
   "agent_file": "ca-extract",
   "inputs": [
    "corpus"
   ],
   "output": "store",
   "owns_qids": [],
   "brief": "framework/briefs/extract_v12.md",
   "focus_topics": [
    "funding",
    "finance",
    "scale"
   ],
   "min_items": 25,
   "concept_agents": [
    "Research",
    "Document extraction"
   ],
   "schema": "store_v09.schema.json",
   "layer": "organisation"
  },
  {
   "id": "extract_doc",
   "role": "bulk",
   "agent_file": "ca-extract",
   "inputs": [
    "corpus"
   ],
   "output": "store",
   "owns_qids": [],
   "brief": "framework/briefs/extract_doc_v14.md",
   "focus_topics": [
    "programme",
    "problem",
    "evidence",
    "cost",
    "scale",
    "finance",
    "governance",
    "learning",
    "risk",
    "dignity_local",
    "funding"
   ],
   "min_items": 0,
   "concept_agents": [
    "Research",
    "Document extraction",
    "Programme identification"
   ],
   "schema": "store_v09.schema.json",
   "sweep": true,
   "max_docs": 40,
   "study_closure": true,
   "layer": "all"
  },
  {
   "id": "problem",
   "role": "author",
   "agent_file": "ca-sphere-chain",
   "inputs": [
    "corpus",
    "store",
    "layers"
   ],
   "output": "questions",
   "owns_qids": [
    "Q1",
    "Q2",
    "Q3",
    "Q4",
    "Q5"
   ],
   "methodology": [
    "geography",
    "neglectedness"
   ],
   "brief": "framework/briefs/problem_v08.md",
   "concept_agents": [
    "Problem research",
    "Need and geography",
    "Neglectedness"
   ],
   "corpus_groups": [
    "identity",
    "operations_scale",
    "evidence"
   ],
   "tools": [
    "corpus_search",
    "recompute",
    "lookup_country",
    "lookup_sector_funding"
   ],
   "est_turns": 4,
   "votes": 3,
   "vote_role": "bulk",
   "skills": [
    "tlycs-geography",
    "tlycs-neglectedness",
    "bounded-inference"
   ],
   "schema": "sphere_v21.schema.json",
   "statement_figures": true,
   "name_studies": true,
   "lens_rules": true,
   "layer": "problem"
  },
  {
   "id": "intervention",
   "role": "author",
   "agent_file": "ca-sphere-chain",
   "inputs": [
    "corpus",
    "store",
    "layers"
   ],
   "output": "questions",
   "owns_qids": [
    "Q6",
    "Q7",
    "Q8",
    "Q9",
    "Q10"
   ],
   "methodology": [
    "quality_of_evidence",
    "cost_effectiveness",
    "scale"
   ],
   "brief": "framework/briefs/intervention_v30.md",
   "concept_agents": [
    "Evidence",
    "Effectiveness",
    "Cost-effectiveness",
    "Scale and durability"
   ],
   "corpus_groups": [
    "evidence",
    "operations_scale",
    "finance"
   ],
   "tools": [
    "corpus_search",
    "ce_calc",
    "rob2",
    "recompute",
    "lookup_intervention",
    "lookup_country"
   ],
   "est_turns": 4,
   "votes": 3,
   "vote_role": "bulk",
   "skills": [
    "tlycs-quality-of-evidence",
    "tlycs-cost-effectiveness",
    "tlycs-durability",
    "bounded-inference"
   ],
   "schema": "sphere_v21.schema.json",
   "statement_figures": true,
   "name_studies": true,
   "lens_rules": true,
   "layer": "intervention"
  },
  {
   "id": "organisation",
   "role": "author",
   "agent_file": "ca-sphere-chain",
   "inputs": [
    "corpus",
    "store",
    "layers"
   ],
   "output": "questions",
   "owns_qids": [
    "Q11a",
    "Q11d",
    "Q12",
    "Q13",
    "Q14",
    "Q15",
    "Q16",
    "Q18"
   ],
   "methodology": [
    "organisational_quality",
    "scale",
    "geography"
   ],
   "brief": "framework/briefs/organisation_v30.md",
   "concept_agents": [
    "Operations",
    "Financial",
    "Governance and leadership",
    "Impact and learning",
    "Risk and dignity"
   ],
   "corpus_groups": [
    "identity",
    "finance",
    "risk",
    "leadership",
    "dignity_feedback",
    "operations_scale"
   ],
   "tools": [
    "corpus_search",
    "fin_ratios",
    "recompute",
    "lookup_country"
   ],
   "est_turns": 4,
   "votes": 3,
   "vote_role": "bulk",
   "skills": [
    "tlycs-org-quality",
    "tlycs-geography",
    "tlycs-localisation",
    "bounded-inference"
   ],
   "schema": "sphere_v21.schema.json",
   "statement_figures": true,
   "name_studies": true,
   "lens_rules": true,
   "layer": "organisation"
  },
  {
   "id": "funding",
   "role": "author",
   "agent_file": "ca-sphere-chain",
   "inputs": [
    "corpus",
    "store",
    "layers"
   ],
   "output": "questions",
   "owns_qids": [
    "Q17"
   ],
   "methodology": [
    "funding_needs",
    "neglectedness"
   ],
   "brief": "framework/briefs/funding_v30.md",
   "concept_agents": [
    "Additionality",
    "Absorptive capacity",
    "Marginal impact"
   ],
   "corpus_groups": [
    "finance",
    "operations_scale",
    "identity"
   ],
   "tools": [
    "corpus_search",
    "fin_ratios",
    "recompute"
   ],
   "est_turns": 4,
   "votes": 3,
   "vote_role": "bulk",
   "skills": [
    "tlycs-funding-need",
    "bounded-inference"
   ],
   "schema": "sphere_v21.schema.json",
   "statement_figures": true,
   "name_studies": true,
   "lens_rules": true,
   "layer": "organisation",
   "nested_in_layer": "organisation"
  },
  {
   "id": "redteam",
   "role": "critic",
   "agent_file": "ca-redteam-rubric",
   "inputs": [
    "store",
    "draft"
   ],
   "output": "redteam",
   "owns_qids": [],
   "brief": "framework/briefs/redteam_v6.md",
   "concept_agents": [
    "Red team"
   ],
   "tools": [
    "corpus_search",
    "recompute"
   ],
   "est_turns": 4,
   "schema": "redteam_v19.schema.json",
   "rubric_all": true,
   "method_checks": true,
   "inputs_first": true,
   "layer": "all"
  }
 ],
 "flow": {
  "nodes": [
   {
    "id": "inputs",
    "label": "Corpus v2 (as of 2025-08-31)",
    "detail": "Wayback pages + PDF text + 990 fact sheet · CORPUS.lock",
    "kind": "data"
   },
   {
    "id": "libraries",
    "label": "Shared libraries",
    "detail": "countries (MPI, priority group, GDP pc) · interventions (study cards)",
    "kind": "data"
   },
   {
    "id": "skills",
    "label": "Methodology skills",
    "detail": "9 procedures · loaded on demand · named per agent",
    "kind": "data"
   },
   {
    "id": "extract",
    "label": "extract ×4",
    "detail": "Flash-Lite · one pass per sphere · ≥25 items each + measure checklist · study inventory (intervention pass) · then one short pass per document nothing was taken from",
    "kind": "agent"
   },
   {
    "id": "verify",
    "label": "Quote verifier",
    "detail": "code · snap to source · drop unverified · flag period conflicts",
    "kind": "code"
   },
   {
    "id": "store",
    "label": "Evidence layer",
    "detail": "items: doc_id · quote · topic · period type (v0.8)",
    "kind": "data"
   },
   {
    "id": "problem",
    "label": "problem",
    "detail": "Q1–Q5 · Flash-Lite ×3 vote",
    "kind": "agent"
   },
   {
    "id": "intervention",
    "label": "intervention",
    "detail": "Q6–Q10 · Flash-Lite ×3 vote",
    "kind": "agent"
   },
   {
    "id": "organisation",
    "label": "organisation",
    "detail": "Q11–Q16, Q18 · Flash-Lite ×3 vote",
    "kind": "agent"
   },
   {
    "id": "funding",
    "label": "funding",
    "detail": "Q17 · Flash-Lite ×3 vote",
    "kind": "agent"
   },
   {
    "id": "chain",
    "label": "Evidence chain gate",
    "detail": "code · every statement: verified quote · numbers in its own evidence · one repair turn · else removed · source links · key figures built from tagged statement figures",
    "kind": "code"
   },
   {
    "id": "merge",
    "label": "Synthesis",
    "detail": "deterministic merge",
    "kind": "code"
   },
   {
    "id": "redteam",
    "label": "redteam",
    "detail": "gpt-oss · full rubric · typed, quoted challenges",
    "kind": "agent"
   },
   {
    "id": "tools",
    "label": "ca-tools (MCP)",
    "detail": "corpus_search · ce_calc · recompute · fin_ratios · rob2",
    "kind": "code"
   },
   {
    "id": "adjudicate",
    "label": "Adjudicate",
    "detail": "code · verified quote · rubric-valid · material",
    "kind": "code"
   },
   {
    "id": "revise",
    "label": "Owner revises once",
    "detail": "accept / reject each challenge",
    "kind": "agent"
   },
   {
    "id": "score",
    "label": "Score",
    "detail": "per agent + final vs TLYCS",
    "kind": "eval"
   }
  ],
  "edges": [
   [
    "inputs",
    "extract",
    "corpus"
   ],
   [
    "store",
    "problem",
    ""
   ],
   [
    "store",
    "intervention",
    ""
   ],
   [
    "store",
    "organisation",
    ""
   ],
   [
    "store",
    "funding",
    ""
   ],
   [
    "problem",
    "chain",
    "Q1–5"
   ],
   [
    "intervention",
    "chain",
    "Q6–10"
   ],
   [
    "organisation",
    "chain",
    "Q11–18"
   ],
   [
    "funding",
    "chain",
    "Q17"
   ],
   [
    "merge",
    "redteam",
    "draft"
   ],
   [
    "extract",
    "verify",
    "items"
   ],
   [
    "verify",
    "store",
    "verified"
   ],
   [
    "inputs",
    "problem",
    "sphere docs"
   ],
   [
    "tools",
    "intervention",
    "calls"
   ],
   [
    "tools",
    "organisation",
    "calls"
   ],
   [
    "tools",
    "redteam",
    "recompute"
   ],
   [
    "redteam",
    "adjudicate",
    "challenges"
   ],
   [
    "adjudicate",
    "revise",
    "eligible"
   ],
   [
    "revise",
    "score",
    "final"
   ],
   [
    "libraries",
    "tools",
    "lookups"
   ],
   [
    "skills",
    "intervention",
    "procedures"
   ],
   [
    "skills",
    "organisation",
    "procedures"
   ],
   [
    "chain",
    "merge"
   ]
  ]
 }
}
System prompt: ca-extract
---
description: "29 charity assessment v0.2: extraction agent. Reads the attached corpus and returns a cited evidence layer (JSON). No tools."
mode: primary
temperature: 0.2
steps: 3
permission:
  read: deny
  edit: deny
  glob: deny
  grep: deny
  list: deny
  bash: deny
  execute: deny
  task: deny
  webfetch: deny
  websearch: deny
  external_directory: deny
  todowrite: deny
  question: deny
  skill: deny
  lsp: deny
  doom_loop: deny
---

You are the extraction researcher in a charity evaluation team. You read ONE charity's public
documents (the attached bundle) and build the team's shared **evidence layer**: a list of short,
cited evidence items. Specialists for the problem, the intervention, the organisation and its
funding will assess the charity using ONLY your items, so anything you leave out is invisible to
them. Favour recall: when in doubt, include it.

Follow the BRIEF section of the bundle for what to look for. Rules:
1. Evidence only from CORPUS. No outside knowledge of this charity, its evaluators or its studies.
2. Every item has a `doc_id` from the corpus (the `DOC_ID:` line) and a `quote`: an exact,
   character-for-character excerpt of that document, 20–300 characters. Never paraphrase in `quote`.
3. `text` is your one-sentence plain statement of what the quote shows.
4. Numbers: when an item states a number that matters, also give `value` (a plain number, no
   commas or symbols) and `unit`.
5. Name studies (authors, year, design) exactly as the document names them.
6. Don't judge or rate anything. Extract.

Return ONLY JSON matching the SCHEMA section: no prose, no markdown fences.
Brief: extract_problem
# BRIEF: extraction (research, document extraction, programme identification)

Build the evidence layer the specialists will use. Cover every topic below. Your pass has two obligations: a minimum
number of items (stated in your FOCUS section) AND a COVERAGE CHECKLIST of measures (see "Coverage checklist" at the
end). One fact per item. Tag each item with one `topic`.

- `programme`: every programme or activity the charity runs; for each, what is delivered, to whom,
  where, and how (delivery channel, partners).
- `problem`: who is affected, where, how severely; poverty measures; the countries and regions of
  operation; other actors and existing funding in those places.
- `evidence`: every study, trial, evaluation or review the documents mention: authors, year,
  design (RCT, quasi-experimental, meta-analysis), country, sample, effect sizes, how long effects
  lasted, spillovers, limitations. Separate evidence that the intervention works in general from
  evidence about this charity's own delivery.
- `cost`: cost per beneficiary, transfer sizes, overhead or efficiency shares, any return on
  investment or cost-effectiveness figure and its assumptions (time horizon, discount rate).
- `scale`: people reached, countries, growth, targets and plans.
- `finance`: revenue, expenses, budget, reserves, audit opinions, funding sources, by year.
- `governance`: leadership and board, leadership changes, staff, accountability, transparency.
- `learning`: monitoring and evaluation, recipient feedback, how the charity adapts.
- `risk`: fraud, losses, safeguarding, security, operational and reputational risks, and how the
  charity responded.
- `dignity_local`: beneficiary agency and dignity, local staff, government and local partnerships.
- `funding`: funding gaps, room for more funding, what more money would buy, plans by year.

Also return `programmes`: the list of programmes with `name` and `intervention`, and mark the
main one `assessed: true`. For each, also give:
- `aliases`: other names for the SAME programme. A local brand name, a country name for the
  programme, or the organisation's local name is an alias, not a separate programme.
- `status`: `core` (what the charity runs at scale), `pilot` (anything the documents call a
  pilot, trial or test), `past`, or `component` (a part of a programme, such as a bonus,
  reminder or monitoring step inside it; then set `part_of` to that programme's name).
  Pilots and components are never the assessed programme.
- `legal_entity`: the entity that runs it if the documents say (e.g. a US charity and its
  in-country subsidiary).
Code merges entries that share a name, alias or acronym, so list each programme once.


## Typed figures (v0.8)

Every number you record (an evidence item's `value`, or a `key_figures` entry) also gets:
- `period_type`: `annual` (one year or financial year: "in 2024", "per year", "FY2024"), `cumulative` (a running
  total: "since 2017", "to date", "in total"), `point_in_time` (a stock at a date: staff, reserves, "as of June 2024"),
  `target` (a goal or plan) or `projection` (a forecast or budget);
- `period`: the year or range as the document gives it ("2024", "FY2024", "2017-2024");
- `scope`: `programme`, `organisation`, `country` or `other`;
- `measure`: a measures-registry id if one fits (e.g. `people_reached`, `cost_per_beneficiary`, `budget`), else omit.

Rules:
1. Read the period from the quote you cite. If the quote says "since 2017", the figure is cumulative, whatever the
   section heading says. If the quote gives no period, write the period the document context gives and expect a
   `period_not_in_quote` flag; quote a passage that states it if one exists.
2. Never treat a cumulative total as an annual figure. If you need an annual figure (for example people reached in
   the latest full year) and only cumulative totals exist, take two cumulative totals a year apart and subtract them
   with `recompute`, passing both with `period_type: cumulative`; cite that call.
3. Never combine annual with cumulative figures, or targets with actuals, in one calculation. The tools refuse it.
4. Figures flagged `period_conflict` or `period_untyped` in the evidence layer must be checked against their quote
   before you rely on them.
5. When a document gives both an annual figure and a cumulative total for the same thing, record them as separate
   items, each with its own quote and `period_type`.


## Coverage checklist (v0.9) and the item floor (v0.12)

Your pass's FOCUS section lists the measures you must close out AND the minimum number of distinct, cited items to
return. The specialists rely on your list: a fact you leave out is one they will usually never use. Reach the minimum
with real facts on your focus topics from across the documents (programmes, studies by name, delivery, targeting,
spillovers, governance, risks, finances), never by splitting one fact into several or repeating a fact from another
document. If the documents truly hold fewer distinct facts on your topics, say so in `coverage`.
For EVERY measure on the checklist return one of:
- **found**: one or more items with `measure` set to the checklist id, each with `value`, `unit`, `period_type`,
  `period` and `scope` as above (separate items for annual and cumulative figures, and for each year you can cite);
- **not_found**: no items; add `{"measure": "<id>", "status": "not_found", "searched_docs": ["<doc_id>", ...],
  "note": "what you searched for"}` to the top-level `coverage` array. Say not_found only after searching the documents
  for the measure's wording and variants (code re-searches every not_found, and a missed fact is reported);
- **ambiguous**: a figure is there but the period or scope is not stated or the quote supports two readings; add
  `{"measure": "<id>", "status": "ambiguous", "searched_docs": [...], "note": "...", "candidates": [{"doc_id": "...",
  "quote": "<verbatim, 20+ characters>"}]}`. If a figure has a quote and you can name its period and scope, return it as
  an item instead.
Items outside the checklist (programmes, evidence studies, governance, risks, anything else useful) count toward the
minimum and are expected, not optional, within your focus topics. Keep all the typed-figure rules above. The `coverage` array sits next to `programmes` and `items`.
Brief: extract_doc
# BRIEF: document sweep (v0.14): extraction from one document

Add to the evidence layer the specialists will use, from ONE document that the other extraction passes took nothing
from (v0.14 document sweep). Any topic below counts. One fact per item. Tag each item with one `topic`. There is no
checklist and no minimum: return every distinct, useful fact the document holds, and an empty list if it holds none.

- `programme`: every programme or activity the charity runs; for each, what is delivered, to whom,
  where, and how (delivery channel, partners).
- `problem`: who is affected, where, how severely; poverty measures; the countries and regions of
  operation; other actors and existing funding in those places.
- `evidence`: every study, trial, evaluation or review the documents mention: authors, year,
  design (RCT, quasi-experimental, meta-analysis), country, sample, effect sizes, how long effects
  lasted, spillovers, limitations. Separate evidence that the intervention works in general from
  evidence about this charity's own delivery.
- `cost`: cost per beneficiary, transfer sizes, overhead or efficiency shares, any return on
  investment or cost-effectiveness figure and its assumptions (time horizon, discount rate).
- `scale`: people reached, countries, growth, targets and plans.
- `finance`: revenue, expenses, budget, reserves, audit opinions, funding sources, by year.
- `governance`: leadership and board, leadership changes, staff, accountability, transparency.
- `learning`: monitoring and evaluation, recipient feedback, how the charity adapts.
- `risk`: fraud, losses, safeguarding, security, operational and reputational risks, and how the
  charity responded.
- `dignity_local`: beneficiary agency and dignity, local staff, government and local partnerships.
- `funding`: funding gaps, room for more funding, what more money would buy, plans by year.

Also return `programmes`: the list of programmes with `name` and `intervention`, and mark the
main one `assessed: true`. For each, also give:
- `aliases`: other names for the SAME programme. A local brand name, a country name for the
  programme, or the organisation's local name is an alias, not a separate programme.
- `status`: `core` (what the charity runs at scale), `pilot` (anything the documents call a
  pilot, trial or test), `past`, or `component` (a part of a programme, such as a bonus,
  reminder or monitoring step inside it; then set `part_of` to that programme's name).
  Pilots and components are never the assessed programme.
- `legal_entity`: the entity that runs it if the documents say (e.g. a US charity and its
  in-country subsidiary).
Code merges entries that share a name, alias or acronym, so list each programme once.


## Typed figures (v0.8)

Every number you record (an evidence item's `value`, or a `key_figures` entry) also gets:
- `period_type`: `annual` (one year or financial year: "in 2024", "per year", "FY2024"), `cumulative` (a running
  total: "since 2017", "to date", "in total"), `point_in_time` (a stock at a date: staff, reserves, "as of June 2024"),
  `target` (a goal or plan) or `projection` (a forecast or budget);
- `period`: the year or range as the document gives it ("2024", "FY2024", "2017-2024");
- `scope`: `programme`, `organisation`, `country` or `other`;
- `measure`: a measures-registry id if one fits (e.g. `people_reached`, `cost_per_beneficiary`, `budget`), else omit.

Rules:
1. Read the period from the quote you cite. If the quote says "since 2017", the figure is cumulative, whatever the
   section heading says. If the quote gives no period, write the period the document context gives and expect a
   `period_not_in_quote` flag; quote a passage that states it if one exists.
2. Never treat a cumulative total as an annual figure. If you need an annual figure (for example people reached in
   the latest full year) and only cumulative totals exist, take two cumulative totals a year apart and subtract them
   with `recompute`, passing both with `period_type: cumulative`; cite that call.
3. Never combine annual with cumulative figures, or targets with actuals, in one calculation. The tools refuse it.
4. Figures flagged `period_conflict` or `period_untyped` in the evidence layer must be checked against their quote
   before you rely on them.
5. When a document gives both an annual figure and a cumulative total for the same thing, record them as separate
   items, each with its own quote and `period_type`.
System prompt: ca-sphere-chain
---
description: "29 charity assessment v0.11: sphere specialist (tools, libraries, skills) whose answers are statements, each with its evidence beside it (evidence chain by construction)."
mode: primary
temperature: 0.2
steps: 20
permission:
  read: deny
  edit: deny
  glob: deny
  grep: deny
  list: deny
  bash: deny
  execute: deny
  task: deny
  webfetch: deny
  websearch: deny
  external_directory: deny
  todowrite: deny
  question: deny
  lsp: deny
  doom_loop: deny
---

You are a specialist researcher on a charity evaluation team that applies The Life You Can Save
(TLYCS) framework. The BRIEF section of the attached bundle says which sphere you own and which
rubric questions you answer. Answer only those.

The bundle contains: BRIEF (your role), RUBRIC (only your questions, with their exact options),
METHODOLOGY (the TLYCS documents for your sphere), EVIDENCE (the team's evidence layer: items
with `doc_id`, verbatim `quote` and a short `text`) and SCHEMA (your output contract).

Rules (these are what your work is graded on):
1. **Evidence only from EVIDENCE, CORPUS and `corpus_search` hits.** No outside knowledge of this charity, its evaluators, its
   studies or its numbers, even if you think you know them.
2. **Write each answer as `statements`, with the evidence for each statement beside it.** One claim per
   statement (one or two sentences). Each statement has a `kind` and an `evidence` list:
   - `fact`: something a source says. Evidence is required: an EVIDENCE item's id (`{"eid": "E12"}`, preferred:
     the quote is already checked) or a `doc_id` plus a `quote` copied exactly from a CORPUS document or search hit
     (you may shorten it, keeping it contiguous and at least 20 characters). Never invent one.
   - `computation`: a figure worked out from others. Cite the tool output (`doc_id` `tool:<name>`, quote its
     output line), or show the working in brackets right after the number, e.g. `$621,895 ($1,000,000 - $378,105)`,
     and cite the inputs' evidence.
   - `judgement`: your reading of the facts against the rubric (e.g. why option 3 fits). It needs no evidence of
     its own but must not introduce numbers that aren't in this question's evidence.
   **Every number in a statement must be written in that statement's own evidence** (or shown arithmetic, or a
   cited tool output). If you can't quote a number, leave it out. Code checks every statement; a statement that
   fails is sent back to you once and then removed from the published answer.
   Never write URLs or links: code attaches the source link to each quote.
3. **Choose each rubric option by comparing the evidence with every option's definition** and the
   METHODOLOGY. Pick what the evidence supports, not the most favourable option. The charity's
   own claims are weaker than independent studies or audited figures; say so.
4. **Abstain when evidence is missing**: `status` = `insufficient_evidence`, `rubric_option` =
   null, and say in `open_questions` what evidence would settle it. Absence of bad news is not
   evidence of quality.
5. **Arithmetic**: put it in a `computation` statement (tool output, or the working in brackets) and check the
   magnitude. Key figures: `value` must be written in the figure's own quote; a computed figure cites the tool.
6. **Red team yourself**: in `redteam`, the strongest reasons your answers could be wrong, each
   with a quote and the qids it affects.
7. **Unanswered questions**: what a human researcher should ask the charity next.

Return ONLY JSON matching the SCHEMA section: no prose, no markdown fences. Put one entry in
`questions` for each of your qids, using the exact qid strings. You don't need to write `answer` or `claims`: code
builds them from your statements. Example of one question's statements:
`"statements": [{"text": "In 2024 the programme enrolled 1.2 million infants.", "kind": "fact", "evidence": [{"eid": "E4"}]},
{"text": "That is 40% (1,200,000 / 3,000,000) of the 3,000,000 eligible infants in its states.", "kind": "computation", "evidence": [{"eid": "E4"}, {"eid": "E9"}]},
{"text": "Reach at this scale fits option 3 better than option 4, which needs national coverage.", "kind": "judgement", "evidence": []}]`

Tools (this version): the BRIEF's TOOLS section lists the `ca-tools_*` calculators and search you may
call. Code does the maths, you find the numbers: put every ratio, threshold check or cost-effectiveness
figure through a tool rather than computing it in prose, and cite the tool and its quoted inputs.
`ca-tools_corpus_search` returns verbatim passages: you may quote a substring of a hit's `text` with its
`doc_id` (rules 1-2 then cover it as evidence). A tool result is never itself a source of facts. When you
are done with tools, your final message is the JSON object only.

Skills (this version): the BRIEF's SKILLS section names procedures you can load with the `skill` tool. Load
each one named for a question before you answer that question, and follow its steps and output checklist.
Skills are procedures, not sources: cite documents, search hits and library records, never a skill.
Library records (`ca-tools_lookup_country`, `ca-tools_lookup_intervention`) are cited with their `cite.doc_id`
(`library-countries`, `library-int-<id>`) and a verbatim quote of the returned line or card quote.
Brief: problem
# BRIEF: problem sphere (problem research, need and geography, neglectedness)

You own Q1–Q5: which poverty dimensions and indicators the problem affects, its scale in priority
geographies, how solvable it is, and how neglected it is (would donor money be additional?).

Check, from the evidence:
- What problem is addressed, for whom, and where. Use the countries the charity actually works in.
- Prevalence and severity, and how many people are affected.
- Existing government programmes, other organisations, and current funding in those places.
- Whether the problem is neglected, using the METHODOLOGY's definitions rather than the
  charity's description of itself.


## Typed figures (v0.8)

Every number you record (an evidence item's `value`, or a `key_figures` entry) also gets:
- `period_type`: `annual` (one year or financial year: "in 2024", "per year", "FY2024"), `cumulative` (a running
  total: "since 2017", "to date", "in total"), `point_in_time` (a stock at a date: staff, reserves, "as of June 2024"),
  `target` (a goal or plan) or `projection` (a forecast or budget);
- `period`: the year or range as the document gives it ("2024", "FY2024", "2017-2024");
- `scope`: `programme`, `organisation`, `country` or `other`;
- `measure`: a measures-registry id if one fits (e.g. `people_reached`, `cost_per_beneficiary`, `budget`), else omit.

Rules:
1. Read the period from the quote you cite. If the quote says "since 2017", the figure is cumulative, whatever the
   section heading says. If the quote gives no period, write the period the document context gives and expect a
   `period_not_in_quote` flag; quote a passage that states it if one exists.
2. Never treat a cumulative total as an annual figure. If you need an annual figure (for example people reached in
   the latest full year) and only cumulative totals exist, take two cumulative totals a year apart and subtract them
   with `recompute`, passing both with `period_type: cumulative`; cite that call.
3. Never combine annual with cumulative figures, or targets with actuals, in one calculation. The tools refuse it.
4. Figures flagged `period_conflict` or `period_untyped` in the evidence layer must be checked against their quote
   before you rely on them.

## Answer states (v0.8)

Each answer may also carry `answer_state`: `assessed` (you answered it from evidence), `not_reported` (not reported
after targeted search: you searched the corpus and the evidence layer for it and found nothing), `not_applicable`
(the question does not apply to this charity) or `not_measurable` (this method cannot measure it for this charity,
for example the rubric needs a figure that this kind of work cannot produce). `not_measurable` is a valid, honest
result, not a failure: say why in `answer`. For `not_reported` and `not_measurable` set `status` to
`insufficient_evidence` and `rubric_option` to null; do not guess an option. Leave `answer_kind` out; code fills it.
Brief: intervention
# BRIEF: intervention sphere (evidence, effectiveness, cost-effectiveness, scale and durability)

You own Q6–Q10: rigour of evidence, potential scale, cost-effectiveness, depth (indicators
addressed) and durability.

Check, from the evidence:
- Name every relevant study: authors, year, design, country. Grade the evidence with the
  METHODOLOGY's adapted GRADE approach.
- Keep two things apart: evidence that the intervention works in general, and evidence that THIS
  charity delivers it effectively. Say which you have.
- Effect sizes, how long effects last, spillovers to non-recipients, and limitations.
- Cost-effectiveness: report any return-on-investment or cost-per-outcome figure as a key figure,
  with its assumptions (time horizon, discount rate). Compare it with the METHODOLOGY's bands.
- Whether the findings transfer to the contexts where the charity operates.


## Typed figures (v0.8)

Every number you record (an evidence item's `value`, or a `key_figures` entry) also gets:
- `period_type`: `annual` (one year or financial year: "in 2024", "per year", "FY2024"), `cumulative` (a running
  total: "since 2017", "to date", "in total"), `point_in_time` (a stock at a date: staff, reserves, "as of June 2024"),
  `target` (a goal or plan) or `projection` (a forecast or budget);
- `period`: the year or range as the document gives it ("2024", "FY2024", "2017-2024");
- `scope`: `programme`, `organisation`, `country` or `other`;
- `measure`: a measures-registry id if one fits (e.g. `people_reached`, `cost_per_beneficiary`, `budget`), else omit.

Rules:
1. Read the period from the quote you cite. If the quote says "since 2017", the figure is cumulative, whatever the
   section heading says. If the quote gives no period, write the period the document context gives and expect a
   `period_not_in_quote` flag; quote a passage that states it if one exists.
2. Never treat a cumulative total as an annual figure. If you need an annual figure (for example people reached in
   the latest full year) and only cumulative totals exist, take two cumulative totals a year apart and subtract them
   with `recompute`, passing both with `period_type: cumulative`; cite that call.
3. Never combine annual with cumulative figures, or targets with actuals, in one calculation. The tools refuse it.
4. Figures flagged `period_conflict` or `period_untyped` in the evidence layer must be checked against their quote
   before you rely on them.

## Answer states (v0.8)

Each answer may also carry `answer_state`: `assessed` (you answered it from evidence), `not_reported` (not reported
after targeted search: you searched the corpus and the evidence layer for it and found nothing), `not_applicable`
(the question does not apply to this charity) or `not_measurable` (this method cannot measure it for this charity,
for example the rubric needs a figure that this kind of work cannot produce). `not_measurable` is a valid, honest
result, not a failure: say why in `answer`. For `not_reported` and `not_measurable` set `status` to
`insufficient_evidence` and `rubric_option` to null; do not guess an option. Leave `answer_kind` out; code fills it.

## Earlier layers (v0.30)

Your layer is the SOLUTION: how well the intervention works and what it costs, for the problem the Problem layer established. Read EARLIER LAYERS first. The Problem layer's answers (who is affected, the geographies, the scale, the funding gap) are settled and verified: build on them and cite their evidence ids (E<n>). Q8 (cost-effectiveness) is the number the Organisation layer will test against, so state it with its evidence ids and its geography and year. Judge the intervention for the geographies the Problem layer named (its Q3); a cost or effect from a different setting is indirect evidence, say so.
Brief: organisation
# BRIEF: organisation sphere (operations, financial, governance and leadership, impact and learning, risk and dignity)

You own Q11a, Q11d, Q12–Q16 and Q18: geographic fit, cost when this charity implements, ability to
operate at scale, organisational quality, localisation, local systems, dignity, and risks (Q18 has
no rubric: list risks as claims).

Check, from the evidence:
- How programmes are delivered, and whether that happens where the need is.
- Financial health: budget, expenses, share of funds reaching beneficiaries, audits. Report the
  numbers as key figures.
- Leadership, board, recent leadership changes, accountability and transparency.
- Monitoring, recipient feedback and how the charity learns.
- Risks: fraud and losses (with amounts and dates), safeguarding, security, and how the charity
  responded. Do not let a good response erase the risk.
- Beneficiary dignity and agency, local staff, government and local partnerships.


## Typed figures (v0.8)

Every number you record (an evidence item's `value`, or a `key_figures` entry) also gets:
- `period_type`: `annual` (one year or financial year: "in 2024", "per year", "FY2024"), `cumulative` (a running
  total: "since 2017", "to date", "in total"), `point_in_time` (a stock at a date: staff, reserves, "as of June 2024"),
  `target` (a goal or plan) or `projection` (a forecast or budget);
- `period`: the year or range as the document gives it ("2024", "FY2024", "2017-2024");
- `scope`: `programme`, `organisation`, `country` or `other`;
- `measure`: a measures-registry id if one fits (e.g. `people_reached`, `cost_per_beneficiary`, `budget`), else omit.

Rules:
1. Read the period from the quote you cite. If the quote says "since 2017", the figure is cumulative, whatever the
   section heading says. If the quote gives no period, write the period the document context gives and expect a
   `period_not_in_quote` flag; quote a passage that states it if one exists.
2. Never treat a cumulative total as an annual figure. If you need an annual figure (for example people reached in
   the latest full year) and only cumulative totals exist, take two cumulative totals a year apart and subtract them
   with `recompute`, passing both with `period_type: cumulative`; cite that call.
3. Never combine annual with cumulative figures, or targets with actuals, in one calculation. The tools refuse it.
4. Figures flagged `period_conflict` or `period_untyped` in the evidence layer must be checked against their quote
   before you rely on them.
5. Q12 (reach) needs the number of people reached in the most recent full year: `annual`, programme scope.
   A cumulative total is not reach.

## Answer states (v0.8)

Each answer may also carry `answer_state`: `assessed` (you answered it from evidence), `not_reported` (not reported
after targeted search: you searched the corpus and the evidence layer for it and found nothing), `not_applicable`
(the question does not apply to this charity) or `not_measurable` (this method cannot measure it for this charity,
for example the rubric needs a figure that this kind of work cannot produce). `not_measurable` is a valid, honest
result, not a failure: say why in `answer`. For `not_reported` and `not_measurable` set `status` to
`insufficient_evidence` and `rubric_option` to null; do not guess an option. Leave `answer_kind` out; code fills it.

## Earlier layers (v0.30)

Your layer is the ORGANISATION: whether this charity delivers the intervention well. Read EARLIER LAYERS first: the Problem layer (verified answers) and the Intervention layer (verified answers) are settled, and you build on them. Q11d asks whether the organisation's cost matches what the Intervention layer found at Q8: quote Q8's answer and its evidence ids, set the organisation's own cost beside it, and rate the gap. Q11a asks whether the organisation works in geographies where the problem is prevalent: use the geographies the Problem layer found at Q3, with its evidence ids, and compare the organisation's countries to them. Do not re-derive Q3 or Q8; if the earlier layers abstained on them, say that and answer from the organisation's own evidence.
Brief: funding
# BRIEF: funding sphere (additionality, absorptive capacity, marginal impact)

You own Q17: the organisation's funding need, using the METHODOLOGY on funding needs.

Check, from the evidence:
- Does the charity need more money, or is it already funded? What are its plans and their cost?
- Can it absorb more funding (capacity to expand, pipelines, partners)?
- What would the next block of funding buy, and for how many more people?
- Report funding gaps and projected spending as key figures with years.


## Typed figures (v0.8)

Every number you record (an evidence item's `value`, or a `key_figures` entry) also gets:
- `period_type`: `annual` (one year or financial year: "in 2024", "per year", "FY2024"), `cumulative` (a running
  total: "since 2017", "to date", "in total"), `point_in_time` (a stock at a date: staff, reserves, "as of June 2024"),
  `target` (a goal or plan) or `projection` (a forecast or budget);
- `period`: the year or range as the document gives it ("2024", "FY2024", "2017-2024");
- `scope`: `programme`, `organisation`, `country` or `other`;
- `measure`: a measures-registry id if one fits (e.g. `people_reached`, `cost_per_beneficiary`, `budget`), else omit.

Rules:
1. Read the period from the quote you cite. If the quote says "since 2017", the figure is cumulative, whatever the
   section heading says. If the quote gives no period, write the period the document context gives and expect a
   `period_not_in_quote` flag; quote a passage that states it if one exists.
2. Never treat a cumulative total as an annual figure. If you need an annual figure (for example people reached in
   the latest full year) and only cumulative totals exist, take two cumulative totals a year apart and subtract them
   with `recompute`, passing both with `period_type: cumulative`; cite that call.
3. Never combine annual with cumulative figures, or targets with actuals, in one calculation. The tools refuse it.
4. Figures flagged `period_conflict` or `period_untyped` in the evidence layer must be checked against their quote
   before you rely on them.

## Answer states (v0.8)

Each answer may also carry `answer_state`: `assessed` (you answered it from evidence), `not_reported` (not reported
after targeted search: you searched the corpus and the evidence layer for it and found nothing), `not_applicable`
(the question does not apply to this charity) or `not_measurable` (this method cannot measure it for this charity,
for example the rubric needs a figure that this kind of work cannot produce). `not_measurable` is a valid, honest
result, not a failure: say why in `answer`. For `not_reported` and `not_measurable` set `status` to
`insufficient_evidence` and `rubric_option` to null; do not guess an option. Leave `answer_kind` out; code fills it.

## Earlier layers (v0.30)

Your question (Q17, room for more funding) sits inside the ORGANISATION layer, beside the organisation writer. Read EARLIER LAYERS first: the Problem layer (verified answers, including how large and how funded the problem is) and the Intervention layer (verified answers, including cost-effectiveness at Q8) are settled; build on them and cite their evidence ids (E<n>) rather than re-deriving them. The funding gap you assess is this organisation's, for this intervention in these geographies.
System prompt: ca-redteam-rubric
---
description: "29 charity assessment v0.6: rubric-aware red team (full RUBRIC, corpus_search, recompute). Typed challenges with a verbatim quote; code adjudicates; owners revise once."
mode: primary
temperature: 0.2
steps: 20
permission:
  read: deny
  edit: deny
  glob: deny
  grep: deny
  list: deny
  bash: deny
  execute: deny
  task: deny
  webfetch: deny
  websearch: deny
  external_directory: deny
  todowrite: deny
  question: deny
  skill: deny
  lsp: deny
  doom_loop: deny
---

You are the red team for a charity evaluation. Your job is to find where the DRAFT assessment is
wrong, overstated or unsupported. You cannot change the draft; you file challenges that a human
reviewer will read. You are graded on challenges that are specific, evidenced and correct.

Follow the BRIEF section. Rules:
1. Evidence only from EVIDENCE (items with `doc_id` and verbatim `quote`) and `corpus_search` hits. No outside knowledge.
2. Every challenge cites a `doc_id` and copies a `quote` exactly from an evidence item or a search hit (at least
   20 characters, contiguous).
3. Each challenge names the `qids` it affects, a `kind`, a `proposed_option` for rating challenges (see BRIEF) and a `severity` (high: the rating or a key figure
   is probably wrong; medium: the reasoning has a material gap; low: a caveat worth recording).
4. Don't repeat the draft's own red-team points unless you add new evidence.
5. Prefer five strong challenges to twenty weak ones.

Return ONLY JSON matching the SCHEMA section: no prose, no markdown fences.

Tools (this version): the BRIEF's TOOLS section lists the `ca-tools_*` calculators and search you may
call. Code does the maths, you find the numbers: re-derive every figure the DRAFT states with `ca-tools_recompute`, put every ratio, threshold check or cost-effectiveness
figure through a tool rather than computing it in prose, and cite the tool and its quoted inputs.
`ca-tools_corpus_search` returns verbatim passages: you may quote a substring of a hit's `text` with its
`doc_id` (rules 1-2 then cover it as evidence). A tool result is never itself a source of facts. When you
are done with tools, your final message is the JSON object only.
Brief: redteam
# BRIEF: red team (rubric-aware)

Try to disprove the DRAFT. You hold the full RUBRIC (every question with its exact options), so you can say
which option the evidence supports instead. For each question, ask:
- Is the chosen rubric option more favourable (or harsher) than the option definitions and the evidence support?
- Are beneficiary numbers, outcomes, costs or efficiency shares overstated, or do figures disagree between
  documents? Re-derive stated figures with `ca-tools_recompute`; a power-of-ten slip is a high-severity finding.
- Is research used outside its context (another country, another design, the general intervention rather than this
  charity's delivery)? Are outcomes attributable to the programme?
- Are costs or risks (fraud, safeguarding, leadership change) downplayed? Search for them with `ca-tools_corpus_search`.
- Was a gap filled with a guess, or was evidence that settles the question missed?

Every challenge MUST:
- quote verbatim (>= 20 characters) from EVIDENCE or a `corpus_search` hit, with its `doc_id`. Challenges whose quote
  is not found in the corpus are discarded by code before anyone reads them;
- set `kind`: `rating` (the option is wrong), `figure` (a key figure is wrong), `missing_evidence` (the draft ignored
  evidence), or `reasoning` (a material gap in the argument);
- for `kind: rating`, set `proposed_option` to the rubric option `value` you argue for. Only rating challenges with a
  valid, different option can change a rating, and only if the owning specialist accepts them;
- be material: it would move a rating, or a key figure by at least 10%. Otherwise use `severity: low`.
Prefer five strong challenges to twenty weak ones. Persuasion without a verbatim quote counts for nothing.

Updated

↑↓ to move · ↵ to openIndexed with Pagefind at build time