Skip to content

feat: local-need-evidence 0.2.0, all five Kindtech Evidence analyses - #7

Merged
billlyzhaoyh merged 13 commits into
mainfrom
feat/skill-all-lenses
Nov 23, 2026
Merged

billlyzhaoyh merged 13 commits into
mainfrom
feat/skill-all-lenses

Conversation

@billlyzhaoyh

@billlyzhaoyh billlyzhaoyh commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What and why

local-need-evidence 0.1.0 covers one question: does a charity reach people in the most deprived neighbourhoods. This brings it to 0.2.0, which covers all five Kindtech Evidence analyses (reach-deprivation, need-reach, who-we-miss, provision-gap and access-distance) and matches version 1 of the Kindtech connector's tools.

  • Connector version 1. The skill uses the new tool names (find_analysis, describe_place, run_analysis_on_counts) and opens every reply with the analysis's answer, word for word. It asks the person before any count is hidden (would_hide_counts), and it talks about "the area you serve", not "catchment". When no area is named, it asks for one first, because an area worked out from where the charity's people already live cannot show where it is missing.
  • One place for the tool contract. The connector's tool descriptions and replies say how each status works, so the skill follows them and keeps only the rules that protect the person: who chooses on hidden counts, no full postcodes, and no description of the map.
  • Shorter and easier to follow. The description is cut from 1,022 characters to 668. The six-stage "show the steps" walk-through moves to references/show-the-steps.md. The reference files are renamed to analyses.md and running-an-analysis.md.
  • Writing the section. The draft speaks for the charity, not to it. It leads with the figures each analysis names. It never sizes a hidden count, and never says which hidden count protects the other. It makes no promise or plan the person has not made.

Evals

  • Cases. The seven case inputs are replaced with the 19 November analysis results. One case is new: asks-for-the-area-you-serve. One is renamed: flags-catchment-mismatch is now flags-area-mismatch. The five cases that word a result each gain two graders: the reply opens with the answer, and the draft is in the charity's voice. There are now 13 cases and 33 trigger queries.

  • Full run on 22 November. All 13 cases, with the skill and without: 0.811 with the skill and 0.547 without, for $18.63.

  • Grader fixes. Reading the replies showed that some graders were stricter than the rules they test. Seven were loosened: the opening-answer grader in five cases now allows a short label before the answer, and two hidden-count graders now accept wording the rules allow.

  • Re-runs. The five cases that word a result were run four more times, with the skill only, and each reply was judged a second time by a stronger model. All four are in benchmark.json.

  • Last re-run. It covers every commit in this PR, including seven new graders: names spelled as the result spells them, no claim the result does not hold, no promise in the draft, and the length asked for. The mean was 0.897 under the run's own judge and 0.946 under the second judge, and the two judges agreed on 124 of 132 grader checks. On the graders the cases had before, the second judge failed one reply in 45.

  • What the new graders still catch. Two of three evidence sections still say reach "falls steadily" or put a funding line inside the draft, flagged for the person but not moved out of it. One form text made a plan for the charity, and one ran to four sentences when three were asked for.

  • Fixed after the last re-run, not yet run. A promise or plan now goes after the draft, never in it. A hidden count in a result already run stays hidden, with no combining or lower smallest count offered. A Gotcha records the "falls steadily" claim. benchmark.json says these are unmeasured.

How I tested it

  • uv run ruff format --check ., uv run ruff check ., uv run pytest (42 tests) and uv run python scripts/lint_skills.py pass.
  • claude plugin eval . --scaffold --max-cost-usd 0 loads all 13 cases, with the new graders.
  • A script checked every figure and place in the graders against the case's input file.
  • Not run: the skill with the hosted connector, which is not live yet.

Tools that helped

Claude Code wrote this change.

Checklist

  • The change is about one thing and is small enough to review
  • Tests and docs are updated where behaviour changed
  • Commits are signed off (git commit -s). They are not: an agent made them, and the sign-off is a person's statement.
  • No personal data about real people in code, tests, examples or this description

…rking

The skill was written for the reach against deprivation lens alone. It now
matches a person's question to one of the five lenses and to a way of running
it, words each lens's result, and works in two ways: a quick answer, or the
steps one stage at a time.

- references/lenses.md: what each lens is for, what it takes, what to lead
  with and what its figures cannot say
- references/running-the-lens.md: the three ways to run a lens, the counts
  each lens takes through the connector, coverage by lens
- six new cases and eleven new trigger queries
- listing text for the plugin, and versions 0.2.0

The new cases and the changed skill have not been run. benchmark.json keeps
the record of 18 November and says so.
The skill was written against connector tools version 0, when each
analysis was a "lens". It now follows connector tools version 1 and the
analysis results of 19 November.

- Names: analysis, Kindtech Evidence, find_analysis and
  run_analysis_on_counts, and "the area you serve" wherever a person reads
  it. An option is passed by its code name and named by its label.
- The reply opens with the analysis's own answer, word for word, and the
  draft that follows is written in the charity's own voice.
- describe_place gets a postcode district, a council or an LSOA code,
  never a full postcode. When a run would hide counts, the person chooses.
  The map is never described.
- The skill asks for the area the charity serves before a run, because an
  area worked out from where its people live holds only places it already
  reaches.
- The connector's statuses and argument shapes are left to the connector's
  own descriptions and replies, so they are written in one place.
- Shorter: the description is 668 characters, the "show me the steps"
  stages moved to references/show-the-steps.md, and the rule on web
  figures is said once.
- Cases: inputs replaced with the results of 19 November and graders
  checked against them, a grader for the opening answer and one for the
  draft's voice, and a new case, asks-for-the-area-you-serve.
Thirteen cases, three runs each with the skill and without, on the middle model: 0.811 with the skill against 0.547 without. Six graders failed in every run with the skill; the notes say which.
…s in it

The first run of 0.2.0 showed two gaps. After the answer and its key figures, a draft stopped there and left out the places to look at with their figures, because the skill sent it to the per-analysis guidance only when a result had no answer. And the rule that a hidden count was not judged, true of a group in who-we-miss, was read as true of a place in need-reach, which the analysis still ranks.
Three graders were stricter than the rules they test: the opening-answer grader failed the answer behind a short label, the hidden-count grader of words-need-against-reach could read the result's people-in-need figures as hidden counts, and the hidden-groups grader of words-who-we-miss refused the combined total of two hidden groups, which the skill and keeps-hidden-counts-hidden allow.
The rerun of 22 November, read by hand and by a second judge, showed four gaps: hidden counts were called small or given a range, which beside their total gave one away; drafts followed key_figures and left out figures the analysis leads with; warnings came before the answer; and figures lost their scope or turned into recommendations and promises. benchmark.json records the rerun under both judges.
…he charity

The second rerun of 22 November, judged by hand and by the large model, scored 0.952 on the five cases (0.905 before). What it still showed: the site-address check came before the answer because the reference called it 'Ask first', one reply named which hidden count protects the other, and two drafts wrote plans for the charity ('we are looking into...'). benchmark.json records the rerun under both judges.
…ason in a draft

The third re-run's replies respelled a study's name, put "about" on exact
counts, stretched "thinnest" and "falls steadily" past where they hold,
called deprivation need, said counts "below 5" were hidden, told a board
the hidden counts were small, and offered to merge groups where the
analysis has no such option. Each is now one line in the skill. Not run.
…n count

The fourth re-run's drafts put a funding or plan line inside the draft and
flagged it there, and replies still offered to combine with a neighbour or
lower the smallest count shown to reveal a hidden count. A Gotcha records
the "falls steadily" claim that outlived the trend rule. Not run.
@billlyzhaoyh
billlyzhaoyh merged commit 98926b8 into main Nov 23, 2026
1 check passed
@billlyzhaoyh
billlyzhaoyh deleted the feat/skill-all-lenses branch November 23, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant