Repository navigation
feat: local-need-evidence 0.2.0, all five Kindtech Evidence analyses - #7
Merged
Merged
Conversation
…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.
3 of 4 tasks
…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.
3 of 4 tasks
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
local-need-evidence0.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-gapandaccess-distance) and matches version 1 of the Kindtech connector's tools.find_analysis,describe_place,run_analysis_on_counts) and opens every reply with the analysis'sanswer, 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.references/show-the-steps.md. The reference files are renamed toanalyses.mdandrunning-an-analysis.md.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-mismatchis nowflags-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.jsonsays these are unmeasured.How I tested it
uv run ruff format --check .,uv run ruff check .,uv run pytest(42 tests) anduv run python scripts/lint_skills.pypass.claude plugin eval . --scaffold --max-cost-usd 0loads all 13 cases, with the new graders.Tools that helped
Claude Code wrote this change.
Checklist
git commit -s). They are not: an agent made them, and the sign-off is a person's statement.