Case study / Oct 2026

Moonbow ABC Voice: an extraction contract defined by what it refuses to say.

I designed the extraction contract behind Moonbow's voice copilot — the surface where a caregiver logs a child's behavioural event by speaking it. The contract's first rule is that the model must leave a field empty rather than invent the part of the story the caregiver never told, and abstention is scored as a first-class metric.

Digital HealthAIHuman-in-the-loop0-to-1Voice AIEvaluation Design
Moonbow ABC Voice: an extraction contract defined by what it refuses to say project cover
The process

Problem.

A behaviour plan is only as good as the record it is written from, and that record is collected by hand, at the end of the hardest hour of a caregiver's day. A form that takes four minutes at 9pm does not get filled in, and a plan written on dropped data is a plan written blind. So Moonbow's voice copilot asks the caregiver to describe what happened in their own words, and a model turns that into a structured clinical event: what came before, what the child did, and what came after. That last step is where a familiar instinct becomes dangerous. Every extraction product optimises accuracy, and accuracy is the wrong bar for a clinical record. A model that is 95% accurate and completes a triad it never heard is worse than one that is 80% accurate and abstains — the second failure is recoverable, the first is not. A fabricated antecedent is not a rounding error; it is a false cause written into a treatment history, and the record still looks complete. That is precisely what makes it dangerous. The same question sits underneath the data. A household's transcript is protected health information, and on the current path it leaves the home to reach a cloud model. The extraction was a governance problem before it was a modelling problem.

Thesis.

The bet is a contract, not a model: the extractor's job is to record what the caregiver actually said, and to say nothing about what they did not. Never fabricate — make abstention the contract, then score it. The production prompt states it: if the caregiver never said what came before, what the child did, or what happened after, the model returns an empty string rather than invent one to complete the triad. The rule is only real if measured, so abstention-when-absent and fabrication-when-absent are scored as first-class metrics beside coverage. Separate the caregiver's action from the child's outcome. What the caregiver did is not how the child responded. The shipped system already flags a suspected blend and records it on the row, and the evaluation scores that same separation, holding the model to the guardrail production enforces. Local-first, at its true size. A model small enough to run on a household's device removes the extraction call from the data path — the second of two egress paths, not all of them, and the claim is written that way.
Two metrics side by side. What everyone reports is coverage — how much of the triad was filled in — which rewards completion and makes a completed guess look like a good extraction. What harms a patient is fabrication when absent: stating a part the caregiver never stated, on a record that still looks complete. Below, three arms scored by one harness on the same 700 held-out examples with every template family unseen, measuring fabricated core-triad fields on the 622 absent-field cases: the teacher 48, the base small model 288, the fine-tuned research arm 0 to 4 across three seeds. A tinted panel carries the separation rule the shipped system already enforces — parent_insight is only the caregiver's action, consequence is only how the child responded after it — held at 99 to 100%. The footer states that counts are fail-closed: an output that does not parse counts as a failure to abstain rather than leaving the denominator, and that no human-labelled gold set exists yet. The claim the figure carries: the bar is not accuracy, it is whether the model can be trusted to say nothing.
The metric that isn't accuracy. What everyone reports beside what harms a patient.

Prototype.

A contract-first evaluation-and-training pipeline, built so the training target and the product contract cannot drift apart. The contract is one object. A single module defines the nine output keys, the never-fabricate rule, the separation rule, the prompt and the JSON schema — and the generator, the trainer and the scorer all import it. When the schema, the prompt and the scorer are one file, a rule cannot be enforced in one place and quietly violated in another. The evaluation set is built, not collected. The product holds a consent gate for research use, and on the current data that gate yields an empty lawful training set. The answer is not to reach for data the product is not entitled to use; it is to construct the labels. A deterministic generator renders a caregiver transcript from a known ground truth, so every label is true by construction rather than a model's guess, and it deliberately withholds components so the training set contains the abstention cases the contract demands. It asserts its own invariants as it runs: no unstated component leaks into a label, and a caregiver's action is never stored as the child's outcome. The test set is made genuinely unfamiliar. The generator reserves entire template families for test only, so every behaviour, antecedent and refusal phrasing in the held-out set is absent from training. The manifest records each held-out family, which makes the disjointness auditable rather than asserted — and it is what turned a perfect in-catalog score into a question worth answering. The falsification probe is hand-authored. Sixty examples use vocabulary deliberately outside the generator's catalog, and the writer refuses to emit a probe set below fifteen absent cases per field, because a rate over four cases moves twenty-five points when one example flips. It is also where the human-labelled gold set will start, once a clinician reviews it. The arms are scored by one harness. A pluggable scorer runs the production path, a base small model and a fine-tuned one over the same held-out split, from the same script, so no compared number is ever transcribed by hand. The fine-tuned arm is an R&D experiment, not the shipped extractor.
Four evaluation sets stacked in increasing honesty, each with its size. The in-catalog synthetic set of 148 held-out examples, whose split hashes row identifiers so the test set's semantics were all seen in training. The family-held-out synthetic set of 700 examples — tinted, because it is the decisive one — where every template family in test is absent from training and the manifest records each one, so the disjointness is auditable rather than asserted. The hand-authored probe of 60 examples, using vocabulary outside the generator's catalog and refusing to emit below fifteen absent cases per field, because a rate over four cases moves twenty-five points when one example flips. And the round trip through the channel production actually uses, where fabricated intensities stay at zero on every channel while a bad channel turns readings into abstentions rather than inventions. A dark band carries the discipline: report the range, never a point estimate — the gate reads 0 to 4 of 622 across three seeds, and 0 on the alternate partition. The footnote names the blind spot: the absent-field gate cannot see content fidelity, because behaviour is never absent in this corpus, so a gate number always travels with a fidelity number. The claim the figure carries: a perfect score is a reason to build a harder test, not to write a slide.
Four sets, increasing honesty. Each one built to attack the answer the last one produced.

Evaluation.

Four evaluation sets, each answering what the last could not. The in-catalog set scored the fine-tune perfectly, which was suspicious: the split hashes row identifiers, so its semantics were all seen. That is what motivated the family-held-out set, where every phrasing in test is absent from training. There, across three seeds, the fine-tune fabricated 0 to 4 of 622 absent-field core-triad cases, against the teacher's 48 and the base model's 288, holding separation at 99–100%. The range is the result. The gate is specified at zero, so one seed's 0 reads as a pass and one seed's 4 as a failure; neither is the finding. A gate number without its seed count is not a measurement. Two things are recorded rather than smoothed. The seed with the best gate score was the worst model by content fidelity — the gate counts abstentions on absent fields, and behaviour is never absent here. And the modifiers are not clean: two of three seeds fabricated a duration or an intensity, so the remedy is to capture them structurally, not tune until a seed passes. There is no human-labelled gold set yet: a thirty-item calibration is a calibration, not a gold set.
The impact

Outcome metrics.

9
Output keys, defined once

The schema, the prompt and the scorer are a single imported module, so the training target and the product contract cannot diverge.

700
Held-out examples with every template family unseen

The decisive set. Whole template families are reserved for test, and the manifest records each one so the disjointness is auditable.

0
Invariant violations in the generated set

No unstated component leaks into a label, and a caregiver's action is never stored as the child's outcome.

0–4 of 622
Fabrication on absent-field core-triad cases, across three seeds

The gate is specified at zero. Against the teacher's 48 and the base model's 288 on the same held-out set. A range, because one seed is not a property of the method.

Looking back

Learnings.

- Attack your own number. Optimisation pressure produces a better-looking figure; verification pressure produces a true one. The extra seeds made the headline worse and the claim stronger. - A screen is not a measurement. An early probe reported 25% fabrication off a four-case denominator; the same model, byte-identical predictions, reported 5% once the probe reached twenty-one cases. The denominator moved, not the model. - Choose the failure direction on purpose, then verify it. A missing field is recoverable and an invented one is not, so the extractor abstains aggressively — and when a noisy channel loses a third of the intensity readings, that is acceptable while fabricated intensities stay at zero. - When the lawful data does not exist, change the construction, not the claim. Rendering labels from known ground truth keeps them honest without a single real household row. - Name the same property in the evaluation and the product, and when a metric is a composite, print every component. A summary that reads clean while a gate is failing is worse than no summary.