Skip to content

Content novelty: what does this skill actually add?

The arm comparison answers does this artifact help? This layer answers the two questions an author asks next: which parts of it help, and which parts are the model repeating back to you?

Both matter because a skill is not homogeneous. Measured on 33 skills (see skill-novelty-evidence.md): for claude-opus-5, 70% of what a skill says is something the model already produces unprompted, 21% is genuinely new, and 2% is knowledge the model had and the skill destroyed. A single delta cannot separate those three.

flowchart LR
    A[artifact text] --> S[spans]
    S --> K[knowledge atoms]
    K --> P{{"probe each atom<br/>without artifact / with artifact"}}
    P --> O1[added]
    P --> O2[redundant]
    P --> O3[degraded]
    P --> O4[still missing]
    O1 --> V[span / topic / term attribution]
    O2 --> V
    O3 --> V
    V --> R[annotated view + scorecard block]

The four outcomes

Every knowledge atom in the artifact gets probed twice against the same model — once with no artifact in context, once with it — and both answers are graded by a different model. The outcome is one of four, and they are exhaustive:

outcome meaning what to do about it
added wrong without the artifact, right with it this is the artifact's reason to exist — protect it
redundant right both ways delete it, for this model tier
degraded right without, wrong with a real defect: the text is overriding correct prior knowledge
still_missing wrong both ways the artifact says it but the model does not pick it up — rephrase or promote it

Because the probes are paired per atom, the comparison is robust even when the judge's absolute calibration is not. That distinction matters: two independent judges in the study agreed on a 6-way verdict scale only 66% of the time, but 85% on the correct-ish binary collapse. Trust the signs and the rankings; do not trust the second decimal of a level. Every number is therefore reported twice, under a lenient and a strict grading.

Reading the output: what each label is, and who decided it

Every label in a novelty.v1 artifact is either measured (two answers to the same probe, graded) or judged (one model's call about an atom). The two kinds fail differently, so each entry below says which it is.

Strict and lenient (measured)

The judge grades each answer on six verdicts (VERDICTS in novelty/measure.py): correct_complete, correct_missing_qualifier, partially_correct, wrong_other, wrong_reversed, abstained. The two scorings collapse them differently:

scoring counts as correct
strict correct_complete
lenient correct_complete, correct_missing_qualifier, partially_correct

The gap between them is information, not noise, but the two added sets are not nested. An answer that goes from wrong to partially_correct is lenient added and strict still_missing; one that goes from partially_correct to correct_complete is strict added and lenient redundant, the case where the model had the gist and the artifact supplied the exact qualifier, value or ordering. Strict added is usually the larger (0.363 against 0.209 lenient on claude-opus-5) but not always (0.266 against 0.293 on nemotron-nano-12b; evidence §3). Prefer strict for any decision. Strict added ranks models inside one artifact in the order of their measured task delta: ρ 0.625 over 12 (artifact, model) cells grouped by their 4 artifacts, and +0.875 with all four artifacts positive on the re-run; lenient gave 0.000 within an artifact (§10.8, §10.15). It does not rank artifacts: pooled over the 24 cells of §10.15 ρ is −0.052, and 13 artifacts ranked inside one model give −0.446. §10.8's pooled 0.620, over the same 12 cells, is superseded by that re-run. The two graders' bias also runs in opposite directions under the two scorings (+7.7pp strict, −11.6pp lenient), so quote no added difference below 0.15 (§10.21).

Content categories (one axis measured, one judged)

needed for the task not needed
new to the model novel_useful novel_inert
already known known_useful known_inert

plus scaffolding (structure, navigation, restated headings, workflow framing: text that cannot be right or wrong) and harmful_conflicting (below), which overrides the other five.

  • Known vs new is measured. It comes from the atom's paired probes under lenient grading, taking the worst outcome in the order degraded → added → still_missing → redundant. redundant or degraded means known. An atom that was never probed counts as new, which is the direction that does not claim the model knew something nobody asked it. The model is never asked whether it knew something.

  • Needed vs inert is judged. The extractor model sees the task and answers, per atom, "can acting on this task go wrong, or be much slower, without knowing it?" The task is built from the artifact's name and description plus the need graph's core and rare_critical nodes, never from the body, so an artifact cannot make itself relevant by containing a sentence. Eval files are not part of it either.

  • Reliability. In the study both axes were judged, and an independent reviewer agreed with 71.6% of assignments (853 atoms), with useful-vs-inert at ±3 points and known-vs-novel at ±2; scaffolding was the most stable share (§4). Here only the ±3 carries over. Known vs new is read off the paired probes instead, so its error is the probe grading's: two judges agreed on 85% of verdicts on the correct-ish binary collapse (above).

  • Inert is not "safe to delete". The drop-inert 0.60 candidate, which cuts inert text under a 0.60 token budget (the suffix is a budget, as for every §10.6 candidate, not "all inert atoms at once"), was non-inferior on pooled data (+0.005, CI [−0.045, +0.057]) and worse on nemotron-nano-12b for dpnp-quickstart (§10.6).

  • An atom the value judge did not answer for gets no category. The artifact says how many (N of M atoms got no need/scaffolding verdict, split into calls that failed, rows the reply skipped, malformed rows, and replies with no usable verdict row; an empty list for a batch is one of those, split and re-asked, never cached), rather than counting them as inert, and its span is labelled from what was measured (still_missing, or unscored when nothing was) rather than redundant or inert.

harmful_conflicting (judged)

The extractor model is shown batches of 40 atom statements and asked for pairs that "cannot both be true, or give incompatible instructions for the same situation". Both atoms of a pair are marked. Read it as a review queue:

  • Internal only. It says the two statements disagree, not which is wrong. That needs a primary source, which this layer does not consult.

  • Lower bound. Only atoms in the same call are compared. analyze sends the whole probed atom set (at most max_atoms, 120 by default) in one call, so every pair is compared unless a call fails or its reply has to be split. The artifact records the share as conflict_coverage (pairs_compared, pairs_total) and warns the conflict check compared X of Y atom pairs when it is short. pairs_total is over the probed atoms, which are only the cap's sample when extraction.sampled is set (or, on an artifact written before spans indexed every atom, when spans.capped_atom_set is true). The harmful_atoms gate check reads a count of 0 as cleared only when the share reaches min_conflict_coverage (1.0 by default) and the conflict check saw every atom; otherwise it is measured: false (the conflict check compared the cap's sample of 60 of the 200 extracted atoms), as it is when conflict_coverage is present but malformed. A conflict that was found is always reported. The Markdown report analyze writes next to the artifact says the same: in place of the Conflicts first line it gives the gate's reason, and its harmful_conflicting row reads not measured (0 found). An artifact written before conflict_coverage existed has no such field and keeps the old reading, a 0 that counts as cleared, unless its atom set was capped; re-run analyze to check it.

  • Unchecked atoms. A call whose reply does not parse, or whose rows name no pair of the batch (an empty list is fine: it means no conflicts), is split and re-asked only while both halves keep two atoms, since one statement has no pair to look at; a chunk of two or three whose reply does not parse fails with its error. Atoms in a call that failed, and an atom left alone in a chunk (the 41st, say), are counted in N of M atoms were not checked for conflicts, split by cause (K in calls that failed (last error: …), K whose reply named no usable pair, K alone in a batch, with no pair to check). Their ids are not written to the artifact.

  • False positives (anecdotal, not a rate). Spot-checking 7 of the 31 pairs one run reported (mattpocock/skills @ 49dd158) found 4 real, 1 ambiguous and 2 false positives: steps of one procedure read as alternatives ("watch it fail" … "watch it pass", diagnosing-bugs), and two compatible options read as exclusive (grilling). A rule next to an exception the text did not mark as one was a real finding. Check each pair against the text before editing.

It is reported first because it is the only category that can make an artifact worse than no artifact. degraded (right without the artifact, wrong with it) is the measured counterpart.

Atom kinds and tags (judged, at extraction)

The extractor labels every atom with one kind (proposition, edge, motif, contract, example) and any number of tags (local, public, procedural, routing, negative_constraint, version_bound, rare_critical, temporal, evidence). The per-tag tables slice the same 2×2 by label. Tags overlap, so their rows do not sum, and an atom may carry neither local nor public. Relabelled by two other models (§10.9):

labels κ against the reference
routing, negative_constraint, version_bound 0.61–0.73
procedural, evidence 0.60–0.65
local, public 0.52–0.62
temporal 0.40 and 0.64; one labeller assigned it at 2.7× the reference rate. Not gate-grade
rare_critical 0.39–0.45, the lowest tag. Not gate-grade
kind (5-way) 0.32–0.38

So gate on routing, negative_constraint and version_bound (the top three by mean κ and under grok; under luna evidence, 0.650, edges out routing, 0.606 — the "protection tags" of §10.9) or on nothing, and quote the other tag splits as labels, except temporal and rare_critical, which are not quotable either. These are not the span protection flags the shortener pins (negation, version gate, ordering, threshold), which are lexical and involve no model. A high added on local atoms means the artifact transmits its own conventions (names, layouts, the next step to take), which models mostly lack: strict local K0 is 0.000–0.259 across five models, against 0.227–0.545 for public (§10.1). It does not mean those conventions beat the model's default; only the task arm can say that.

Novelty is a property of the pair, not of the file

The same artifact is worth very different amounts to different models:

model added already knew degraded
claude-opus-5 0.209 0.700 0.019
gpt-5.6-luna 0.131 0.775 0.030
grok-4.6 0.307 0.537 0.024
nemotron-nano-12b 0.293 0.498 0.076

Consequences for authoring:

  • A skill that looks bloated against a frontier model may be correctly sized for a small one. Decide which tier you are writing for, and record it.

  • degraded rises as the model weakens (0.019 → 0.076). Weak models copy your errors; strong models overrule them. A stale line in a skill is a bigger risk to a small model — except for reversed or out-of-date claims, where the opposite holds: strong models resisted planted inversions less often (0.787–0.811) than weak ones (0.890), because a weak model abstains and thereby dodges the trap.

Where "relevant" comes from: the need graph

added says the model learned something. It does not say the artifact should have taught it. That second question needs a scope definition, and the scope must not come from the artifact — otherwise every sentence is relevant by construction, because it is in the file.

So relevance is scored against a need graph built from the artifact's name and description only. Nodes are the things a reader actually needs: intent, decision, constraint, action, evidence. Each node gets a path class, and the class sets its weight:

path class weight meaning
core 1.0 on the main path of the artifact's own task
rare_critical 1.0 fires rarely, prevents a bad outcome when it does
branch 0.7 a specific variant or configuration
supporting 0.4 helps, but nothing breaks without it
out_of_scope 0.0 a real need — for a different artifact

rare_critical deliberately weighs the same as core. Frequency and criticality are separate axes, and collapsing them is the mechanism by which safety text gets deleted: "only triggers on driver 1.0, cut it".

Why not just use embedding similarity to the topic? Measured: graph-derived relevance correlates with top retrieval similarity at only 0.368, the two rankings disagree on 57% of the atoms they each call most relevant, and 1.3% of atoms best-match an out_of_scope node — text answering a question the artifact is not responsible for. Similarity can say on-topic. Only the graph can say in-scope, and only in-scope licenses spending tokens.

What the graph must not be asked to do. It organizes the question space; it is a retrieval and exploration layer, not the scorer. It cannot tell you whether a claim is true, how often the need arises, what your model already knows, which span caused a behaviour change, or whether the knowledge helps downstream. Those are five separate measurements — probes, arms, task suite — which is why the output of this layer is a dashboard and not one graph score.

The edges are where the value hides. The highest-value content found in the study was not propositions but negative edges: one-clause blocks on an inference the model would otherwise make — "a successful import does not mean the array is on the GPU", "seeing MKL in threadpool_info() does not mean NumPy's BLAS is wired to it", "fits in VRAM does not mean it will launch now". Cheap in tokens, invisible to any frequency or perplexity ranking, expensive to lose. That is what the protection axis and the amber colour exist for.

Choosing the extractor and the judge

Three roles touch a run. The answerer (--model) is the model under measurement. The extractor (--extract-model) reads the artifact and writes the atoms, the answer key. The judge (--judge-model) grades each answer against that key. The answerer must not grade itself (refused unless --allow-self-judge), and the extractor must not be the answerer (probe warns when it is). Nothing else separates the extractor from the judge, so the same model, or one vendor family, can write the key and grade against it.

Defaults, unchanged: analyze and probe leave --extract-model unset, and the extractor then is the judge. With no judge flags and the default answerer, that is anthropic/claude-sonnet-5-5, so a plain run has the extractor and the judge on one model. atoms and the shorten adjudicator differ: there --model is the extractor (or the retention adjudicator), not the model under measurement, and it defaults to the judge model, anthropic/claude-sonnet-5-5. A plain atoms run therefore has the extractor and the judge on one model: pass --extract-model of another family there (with --provider when it is not Anthropic's).

analyze checks the extractor against the judge before it spends anything; probe checks the model that wrote the saved answer key (the atoms file's extractor) against the judge. The same model, or two models of one vendor family (the vendor is read off the model id: claude, sonnet, haiku, opus and anthropic are one family; gpt and openai another; gemini and mistral likewise; grok and xai another), prints a WARNING on stderr. The vendor is read off the name, so a model served locally under a vendor's name (gpt-oss-120b is OpenAI's) counts as that vendor; ids that name no known vendor never match. analyze records the result in the artifact's run_config.extractor_judge (extractor, judge, same_model, same_vendor); probe prints the warning only. The warning does not refuse the run.

To clear the warning, give the extractor a different family from the judge. probe reads the key from the saved atoms file, so its own --extract-model does not clear it: pick another judge, or write the atoms file again with another atoms --extract-model (and --provider). Here the extractor is Anthropic's, the judge OpenAI's:

python cli.py skill novelty analyze --artifact skill:path/to/skill \
    --model claude-opus-5-5 --provider anthropic \
    --judge-model gpt-6.1-sol --judge-provider openai \
    --extract-model claude-haiku-5-5 --extract-provider anthropic

With two vendors available, one role must share a family with another. Keep the judge and the extractor apart, since the judge grades against the extractor's key. The answerer may share a family with one of them, and the warning does not check that; say so when you quote the numbers. A third family keeps all three apart. Changing the extractor changes the atoms, so compare only cells that name the same extractor.

A judge panel

One judge is one opinion. The judge-panel study graded the same answers with seven judges. The added share of one answer model moved by up to 0.23 with the judge. The original single judge was the most lenient of all, so its added shares sat at or near the bottom of the panel's range. analyze and probe take a panel:

python cli.py skill novelty probe --artifact skill:path/to/skill --atoms atoms.json     --model grok-4.6 --provider openrouter     --judge openrouter/openai/gpt-6-luna --judge openrouter/anthropic/claude-sonnet-5     --judge openrouter/moonshotai/kimi-k3 --judge-aggregate median
  • --judge PROVIDER/MODEL, repeated, is the panel. It replaces --judge-model and --judge-provider, and the two forms cannot be mixed. The first judge is the default extractor. Every judge is checked against the answerer like a single judge.

  • --judge-aggregate turns the verdicts into one per answer:

    • median (default): the median of the verdict scale, rounding toward wrong on an even panel.
    • majority: correct when more than half the judges say so.
    • unanimous: correct only when all of them say so.

    In the study, median and majority matched Dawid-Skene on 99.3% of rows. Any-correct moved the headline by up to 0.20, and unanimous raised the added share by up to 0.09 over majority. A judge whose grade fails is left out of the vote, except for a permanent provider error (a bad key, an unknown model), which stops the run and keeps the partial record.

  • The record gets a judge_panel block with:

    • the judges and the rule;
    • each judge's own paired 2×2 (per_judge_paired);
    • the judge range of the added share (added_share_range);
    • judge_sensitive, set when the lenient range exceeds 0.10 (the study's noise floor).

    Each run keeps every judge's verdict in judge_verdicts. analyze writes them beside the record as <record>.judge_verdicts.json; the report names the panel instead of one judge.

  • Two judges of one vendor family (the families named above) print a warning. Same-family judges agree with each other more than with the rest, so the panel then has fewer independent votes than judges. Three judges from three families cut the spread across panels from SD 0.039 to 0.025.

Each extra judge grades every answer again, so it adds the judge's share of the cost. --dry-run counts it, and --max-usd caps the whole panel.

Using it as an authoring tool

The commands in order, with the costs and the two free steps that come first, are in skill-novelty-walkthrough.md. This section is the reference for what each output means.

1. Whole-artifact triage

python cli.py skill novelty analyze --artifact skill:path/to/skill \
    --model claude-opus-5-5 --provider anthropic \
    --judge-model gpt-6.1-sol --judge-provider openai [--include-resources]

With no --judge-model/--judge-provider, the judge is anthropic/claude-sonnet-5-5 whatever --provider is; a Bedrock-only run adds --judge-provider amazon-bedrock. --judge-provider alone takes the default judge that runs on that provider; when none does (measuring claude-sonnet-5-5 with --judge-provider amazon-bedrock, or the default gpt-6.1-sol with --judge-provider openai) the run exits and asks for --judge-model.

Without --include-resources this measures SKILL.md alone and prints, before spending anything, what share of the artifact that leaves out — see the artifact is the bundle.

Reports the 2×2, K0, the five-category content breakdown, the span statistics (how many tokens carry no knowledge at all, how many spans are the sole carrier of something, how many are protected), and the control arms.

Read it in this order:

  1. routing first. If the artifact is not selected, content work is unrecoverable spend. In the study six of thirteen skills routed below 0.50, one at 0.146. skill novelty analyze holds the frontmatter fixed so the two are never confounded — selection is its own command, below.
  2. harmful_conflicting next. Conflicts are the only category that can make the artifact worse than nothing.
  3. frac_carrying_nothing. Tokens that carry no extractable knowledge. Measured against the full extracted atom set this was ≤0.14 on every artifact in the study. Only trust it when the atom set behind it is complete: the study's two apparent outliers (0.50 and 0.74) turned out to be artifacts of a 250-atom-per-artifact judging cap on the two largest artifacts, whose real figures are 0.068 and 0.064. Always read this metric next to its judged/extracted atom ratio. A run indexes spans from every extracted atom, a capped one too: spans.n_atoms_indexed is every atom and spans.capped_atom_set is false, so the figure is the artifact's. An artifact written before that with capped_atom_set: true indexed only the atoms the cap kept, and its figure is not.
  4. added last — it tells you whether the artifact is worth its tokens, but the three checks above tell you what to do.

Per-atom verdicts: <out stem>.atom_verdicts.json

novelty.json holds totals. Beside it analyze writes novelty.atom_verdicts.json (the output's stem plus .atom_verdicts.json), a novelty_atoms artifact with one row per atom the run probed (a capped run's sample), and novelty.atoms.json (the stem plus .atoms.json), the atoms and spans that run extracted, in the format of the atoms.json that skill novelty atoms writes. The verdict rows:

  • id, statement, question, answer, kind, tags, span_ids and faithfulness (supported, distorted, unsupported or unchecked), as in atoms.json.
  • needed, scaffolding, conflict and conflict_why: the value judge's verdict and the conflict check. needed and scaffolding are null for an atom the value judge gave no answer, even when a detected conflict names it (conflict and the category harmful_conflicting stay). All four are null for an atom with no verdict, and for every atom of a run with --no-classify or a tier without classification. conflict and conflict_why are also null for an atom the conflict check never compared with anything (the "not checked for conflicts" warning in novelty.json, with conflict_coverage.pairs_compared below pairs_total): null is "not checked", false is "checked, no conflict".
  • outcome.lenient and outcome.strict: the atom's worst paired outcome (degraded, then added, still_missing, redundant) under each scoring; null for an atom with no usable pair.
  • category: the content category from the judged axes and the lenient outcome (never the strict one); with no usable pair it is novel_*, from the judged axes alone, so a null outcome still gives novel_useful or novel_inert; null without a verdict.

Top level: artifact_ref, ref_digest (the artifact revision), model, with_arm and conflicts (the pairs, as a, b, why with atom ids). To check the grader, filter the rows on outcome.lenient and category, for example redundant outcomes with category known_inert, and read each row's statement and span_ids against the spans. The file is always written, so a file left by an earlier run into the same output is replaced.

skill novelty view --novelty novelty.json --atoms novelty.atoms.json --atom-verdicts novelty.atom_verdicts.json re-renders the annotated view with outcome and category colours and no model call. Pass the novelty.atoms.json of the same run: atom ids hash the statement, so an atoms.json from a separate skill novelty atoms call holds the same ids only when the extractor worded every atom the same. It exits 2 when the file's artifact_ref, ref_digest, model, run_id or analysis_digest differs from the --novelty artifact's (a novelty.json with no run_id differs from a file that has one; analysis_digest is the digest of the novelty.json payload without schema_version, run_id and dokimi_version, so two analyses that share a DOKIMI_RUN_ID still differ), or when it names an atom --atoms does not hold or cites other span_ids for an atom than --atoms does (an atoms file extracted again from an edited source keeps the ids and moves the spans). It also exits 2 when the --atoms file's bundle.measured_digest differs from the --novelty artifact's ref_digest; an atoms file that records no such digest is not checked against it.

Add --atom-labels labels.csv (it needs --atom-verdicts) to see the known and new shares per label of your own. The file has one row per atom: skill (the artifact ref, its skill: prefix optional), atom_id (the id of an atom of --atoms, as in the verdicts file) and label; it is JSON lines, or CSV with a header when the name ends in .csv. A JSON label can be a string or a finite number. Numbers use the parsed numeric value as text (1.10 becomes 1.1 and 1e2 becomes 100.0). Quote the label to preserve its spelling. The reserved labels all and unlabelled are matched case-insensitively. The table escapes embedded line breaks. An atom with no label row is counted under unlabelled, and labels that match no atom of the run are counted in a WARNING. known is a category starting known_, new one starting novel_, other the rest (scaffolding, harmful_conflicting); the shares are over the atoms that have a category, and uncat. counts the atoms with none: the probed atoms that got no category and, in a capped run, the atoms of --atoms outside the sample (a label on one of those raises no warning). The table is printed after the view is saved; nothing is written back to the artifacts.

2. Span attribution — where in the file

Each span of the artifact is annotated with the atoms it carries, their outcome, and its token cost, then rendered as the artifact's own text with colour:

colour (label) meaning
green (added) carries added knowledge — the artifact's value
grey (redundant, inert) redundant: an atom the model already answered without the artifact (this wins over still_missing); or inert: no atom has a measured outcome and one is judged inert or scaffolding (this wins over an unprobed atom judged useful) — candidate for deletion
red (harmful, degraded) carries a harmful_conflicting or degraded atom
amber (protected) protected: expresses a negation, version gate, ordering constraint, or threshold
blue (still_missing) states something the model got wrong with and without it, and nothing it already knew — rephrase or promote it
plain (unscored) carries atoms with no measured outcome and none judged inert or scaffolding: unprobed atoms judged useful (including atoms whose probe runs all errored), atoms the value judge did not answer for, or atoms outside a capped run's sample — so no colour is claimed
hatched (unread) no extraction call could read it, so what it carries is unknown — not dead weight
dim (empty) carries no extracted atom at all

The colours are applied in a fixed order, worst first: red, green, hatched, amber, dim, then grey (redundant), blue, grey (inert), plain. A span takes the first that applies, so a span with one added atom is green whatever else it carries.

Two derived views an author acts on directly:

  • Dead weight: the dim spans, sorted by token cost. The largest single win in most artifacts. Unread spans are not listed.

  • Sole carriers: spans that are the only source of some atom. These are what a careless edit silently deletes; the shortener pins them.

views.topics rolls the spans up by their first two headings, with the label counts per section, dead_tokens (the dim spans' tokens) and unread_tokens (the hatched spans' tokens), so a section's waste and its extraction loss read apart.

Going finer than a span — highlighting the words that carry an atom — was measured before being built, by masking them and masking the same number of other words from the same span: the attributed words cost 0.34–0.39 more retention than the control (95% CI 0.31–0.47, 47 of 48 decided cells), so the highlight is load-bearing. Three measured constraints ship with it:

  • Do not attribute by lexical overlap with the atom statement. It misses negation — negation words are function words — so its extra loss on negative-constraint atoms is +0.143 against an LLM attributor's +0.392. The cheap attributor is weakest on exactly the knowledge that matters most.

  • Carry the heading path wherever a span is checked. Atom recovery from a bare span is 0.833 and rises to 0.907 with the heading path prepended, for about 16 tokens: a span reading "Use 4 for most workloads" is not a bad citation, it is a sentence whose subject lives in its heading.

  • Render an unlocated state. 19% of atoms are not recoverable from their cited file at all — syntheses inferred while reading the whole document, which the faithfulness check calls supported. Their span pointer is a fiction, and colouring a span for them is worse than saying nothing.

3. Shortening, with five separate scores

python cli.py skill shorten --artifact skill:path/to/skill --atoms atoms.json --token-budgets 0.75 0.5

skill novelty analyze scores the same candidates at its --token-budgets unless you pass --no-shorten (--tier triage skips them too).

Never one "retention" number, because a single score hides the one failure that matters. A measured example from the study: a candidate at 21% of the original tokens retained 0.916 of the knowledge — and only 0.158 of the protected spans. Knowledge said "success"; the negations, version gates and ordering constraints had been thrown away, because their value is conditional on a failure the atom statement does not encode.

axis what it protects
tokens the budget
knowledge the atoms survive somewhere in the text
value the relevant and novel atoms survive, weighted
protection negations / gates / versions / orderings survive
routing the description still claims the artifact's own queries

Read value next to its value_coverage. The weight is relevance × novelty, and novelty needs a measured K0, which only probed atoms have. In the study that left per-model value defined on 148 of 2422 atoms — 3 of 279 on the largest artifact — so both the reported rate and the greedy_value ranking were, in practice, atom coverage per token. Candidates therefore ship value_coverage and a value_is_coverage_proxy flag, and pick_best tie-breaks on knowledge rather than value when the flag is set. Coverage per token is a fine selection rule; it is just not a relevance claim.

On a capped run, structure comes from every atom and scores from the sample. Sole carriers, deduplication and each span's value density are built from every extracted atom, so a span whose atoms all fell outside the cap's sample still carries knowledge: it is not dim, not dead weight, and a sole carrier when no other span cites its atom, so the safe strategy keeps it. Its atoms have no outcome, so they count at the no-outcome default (novelty 0.5, at relevance 0.5 when the need graph did not match them) in its density. knowledge and value are retention of the sampled atoms only (build_candidates takes them as scored_atoms), so the oracle's pairs grow with the cap, not with the atom count. With no cap, or a cap the atoms do not exceed, the two sets are the same. Since the oracle cannot see an unsampled atom go, each candidate counts the unsampled atoms none of whose cited spans it keeps (dropped_unscored_atoms), and a candidate is safe only when that is 0 and it keeps every protected span. greedy_value_safe pins, besides protected spans and sole carriers, the cheapest cited span (fewest tokens, then the earliest) of each unsampled atom none of whose cited spans is pinned yet, so an unsampled atom cited by two spans keeps one of them. Without --allow-unsafe, pick_best (the one shorten --out writes) takes only safe ones, so a greedy_value or random cut that drops an unsampled fact is still built, scored and listed, but not chosen.

Rule of thumb from the measurements: a safety-pinned strategy at 0.60 token fraction held protection = 1.000 with knowledge 0.81–0.96, and pooled across the behavioural sweep every shortener tested was non-inferior to the full package at a 0.05 task-score margin.

Is any of this better than a generic prompt compressor? Measured against LLMLingua-2 at the same achieved token count on four artifacts, with both sides scored by the same retention oracle: span selection is +0.03 on bulk knowledge (7 of 8 cells), +0.07 on strict knowledge (8 of 8), and +0.12 lenient / +0.20 strict on the atoms carried by protected spans (8 of 8). The knowledge-aware selector's advantage is small on prose and large on negations, gates and thresholds — a token-level compressor drops a not for one token's saving. Retention only; neither side was run behaviourally.

That gap is not a mis-configured baseline. LLMLingua-2 takes a force_tokens list, and re-running the comparison with up to 40 protection terms mined from each artifact's own protected atoms — negations, gate words, flags, versions, limits — moves protected-atom retention by +0.0003 lenient and −0.0009 strict, 4 cells up and 4 down, while span selection keeps its full +0.20 strict lead in 8 of 8 cells. Pinning a token keeps the word and not the clause it governs: the compressor retains a not whose sentence is gone, which is worse than dropping both. Do not substitute a token-level compressor for the protection axis at any configuration.

Two limits on that rule, both measured:

  • Per artifact it is unproven. With 7–8 tasks per (artifact, model) cell the 95% interval is ~0.32 task-score points wide, so 44 of 60 individual cells were inconclusive. Pooled evidence licenses a shortening policy; it does not license a specific cut without running that cut.

  • The verdict does not transfer across model tiers. Of 20 (artifact, candidate) pairs measured on three models each, only 9 agreed; the smallest model was the worst-hit in 9 of 20, and the same candidate was non-inferior on a frontier model and worse on a small one. Small models need the redundancy you can take away from large ones, so a shortening decision must name the tier it was measured on and include the weakest deployed tier.

4. What the artifact should not teach

Two content patterns were measured as actively harmful, independent of topic:

  • Deferral phrasing. "Consult references/X before answering" cost one model its answer entirely: it replied with a preamble promising to look things up and scored 0.047, against 0.537 with no skill at all. Skill bodies should be answerable standalone; progressive disclosure is a loading strategy, not a sentence to write.

  • Investment in prose order. The study's shuffled arm scored higher than the intact artifact on four of five models, but it injected more files than the artifact did, so that result does not carry over to this measurement. Ordering, transitions and narrative framing carried no measurable knowledge. Spend the effort on facts, qualifiers and exact values — that is where the strict-grading added lives. A probe asks one atom at a time and so cannot punish a scrambled document, so this was retested behaviourally on the 71 generated tasks whose graded requirements themselves name an ordering: the two arms stay level there too, on the whole task (+0.003) and on the ordering items alone (+0.022, 95% CI −0.027 to +0.072, 213 paired cells). Read with its resolution — a cost of scrambling smaller than ~0.07 is not excluded, and each artifact was scrambled with one seed.

Third pattern, and it is the one with the largest measured effect in the study:

  • Every exact value you write will be believed, so anchor it. Planting a false numeric value at every occurrence in an artifact makes three model families state it 0.942 of the time when it is plausible and 0.846 of the time when it is wrong by 64× — a 32768 MiB scratch allowance, a >95% regression threshold. They flagged the conflict in 3 of 93 adoptions, and two of the three families never flagged anything. Where the model's own prior was correct (6 cells of 52), it abandoned that prior 6 times out of 6. Absurdity does not protect and the reader will not catch it for you.

Three values out of twenty ever survived a plant, and what they had in common was not being implausible — it was an independent anchor: a hardware SKU the model already knows, an arithmetic identity it can recompute, or a second unmutated correlate in the same document (the OS release number resisted because the codename sat next to it). So when you write a threshold, a capacity or a version, write the checkable correlate beside it — the part name, the formula it derives from, the codename. That is the only mechanism observed to make a stale value detectable, and it is the one property under the author's control rather than the model's.

5. Which kind of knowledge to write

A single added number tells an author the artifact is worth its tokens but not what to write more of. Re-cutting the same probes by what the atom is — a fact the model could know from public material, versus a local contract, versus an ordered procedure — splits the average in a way that is directly actionable. Strict grading, measured across five models:

atom kind models already knew it artifact supplied it
public — concepts, general technique 0.23–0.55 0.17–0.23
local — this stack's specific contract 0.00–0.26 0.32–0.43
motif — ordered procedure, gate, halt 0.07–0.17 0.23–0.56
proposition — a standalone claim 0.14–0.46 0.16–0.31

Prior knowledge of public material is roughly double that of local contracts on every model, and the artifact's contribution runs the other way. The weakest model knew no local contract at all (strict K0 0.000). Two authoring consequences:

  • Conceptual prose is the first thing to cut. It is the half the model already has. Explaining what a cache miss is spends tokens; stating this stack's exact flag, threshold or ordering does not.

  • Write the procedure down, precisely. motif and contract atoms — gates, orderings, flags, output formats — are where the artifact is least replaceable, and they are also the atoms a greedy token-budget shortener discards first (their value is conditional on a failure the sentence does not mention). That is why protection is a separate axis.

Two caveats belong next to the table. The judge is least reliable on exactly these content types (κ 0.558 on motif, 0.605 on edge, against 0.714 on proposition). Judge noise inflates both arms of a paired comparison and therefore shrinks the measured difference rather than inventing it, so the direction holds and the magnitudes are soft. And the rows are labels, not measurements: the tag rows re-derive under two independent labellers to within 0.08, but the motif-vs-contract boundary does not (κ 0.32–0.38 on the shape vocabulary), so read the shape rows as "ordered/required content" versus "standalone claim" rather than as four distinct classes.

The artifact is the bundle, not the file

A skill is a thin SKILL.md plus references/, scripts/, patterns/ and sometimes evals/. Measured over the 33-skill study corpus with the framework's own loader and segmenter:

value
skills with bundled resources 33 / 33
corpus words in SKILL.md 36,188
corpus words outside it 93,773 (0.72)
per-skill outside share min 0.005, median 0.433, max 0.988

The worst case carries 375 words in its body and 30,567 in 30 bundled files. Measuring the entry point alone would judge that skill on 1.2% of itself, and its "dead tokens" share would be dominated by spans whose only job is to name a file nobody read.

python cli.py skill novelty analyze --artifact skill:path/to/skill --model M --judge-model J \
    --include-resources                       # measure the bundle
    # --resource-roles reference pattern      # or only some of it
    # --max-file-words 4000 --max-resource-words 20000

Things to know before reading a bundle result:

  • It is an upper bound. Injecting the whole bundle measures what the artifact could deliver if the agent read all of it. Whether the agent chooses to load references/x.md at runtime is the agentic track's question (skill-agent:), not this one.

  • The two modes are different cells. include_resources is recorded in run_config; an entry-point run and a bundle run of the same skill are not comparable numbers. A run that read half or less of the readable words says so on stdout (the coverage: line and a WARNING), a bundle run held back by the word budgets included; an entry-point run also says so in warnings. When a bundled file did not decode the share is unknowable: stdout prints coverage: unknown (still warning if the words it counted show the run read half or less: the entry point, or a bundle run held back by the budgets) and bundle.measured_share is null. The share is bundle.measured_share (for an entry-point run, 1 - measurable_outside_share to 4 places, which nets out the role decisions below; outside_share is the on-disk figure, and the two differ for a skill whose only resources are its evals).

  • A skill's own evals/ are not content. They are the question/answer keys for testing the skill, so extracting atoms from them would credit the skill with delivering its own test set. Excluded by default (10 of the 33 corpus skills ship them), with the reason naming the opt-in; .git/, __pycache__/, venv/, hidden files and friends are never walked at all.

  • Exclusions are reported, never silent. A file over --max-file-words is skipped whole rather than truncated, because a cut reference would be attributed as if complete; every skip, role filter, budget overrun and non-text file appears in bundle.excluded with its reason, and a skipped text file's words still count in resource_words_on_disk. Whether a file is text is decided by its content (UTF-8, no NUL bytes), not by its suffix: extension-less guides, .mjs scripts and Makefiles are measured like any other. A file that is mostly printable text but does not decode as UTF-8 (latin-1, cp1252, UTF-16) is reported unreadable whatever its suffix, and the coverage check then says measured=False; only a NUL-bearing non-UTF-16 file, or a blob that is not mostly printable, is silently "not text".

  • One rule decides what an exclusion means. Every row's kind has one class (metrics/bundle_coverage.py, EXCLUSION_CLASS): budget and not_requested are a gap — the words in unmeasured_words, the files a warning calls "excluded"; policy is a decision, never charged as unread; unreadable is unknown; symlink and not_text are not content. An exclusion is a file the run did not select; text it selected that no extraction call could read is an unread span (spans.n_unread, below), which narrows the dead-token figure and not coverage.

  • Coverage has one basis, and the record says which. The CLI note, the analyzer's warnings, the gate's artifact_coverage and the report all read the record through the same Coverage, over readable words: role decisions are left out of the denominator, so for an entry-point run the gate judges measurable_outside_share, the figure the warning quotes. The record carries bundle.coverage_basis: "readable", and the gate's check carries it as basis. Records written before the stamp were gated over all bundled words, role decisions included (26% instead of 56% for 400 entry words, a 500-word reference and 1,000 words of evals), and are still read that way, so re-gating a stored artifact does not move its value.

The payoff is bundle.by_source: the paired 2×2 cut by the file that carried each atom. A reference whose atoms are all redundant is a file the model already knows; one full of added is knowledge that may belong where the agent will actually read it; one with zero atoms is pointers and prose. n_atoms counts every extracted atom of the file; the outcome counts are over the atoms the run probed, and n_sampled is how many of the file's atoms that is, so on a capped run a file whose atoms all fell outside the sample reads n_sampled: 0 with its n_atoms above 0, rendered 5 (0 sampled) in novelty.md (without a cap the two are equal). A file with spans extraction could not read says how many (n_spans_unread, tokens_unread), and a file it read none of has n_atoms: null and unread: true (rendered not read), not zero atoms. Pointer spans — spans whose content is just a path into the bundle (53 of 2,600 spans in the corpus, 19 of 33 skills), and the per-file headings the renderer injects — are named in bundle.pointer_spans rather than scored, since they carry no knowledge by design. A span that also pins a value, a flag, a negation, a version gate or a threshold is knowledge, not a pointer; an ordering word is not enough, because "read references/x.md before editing" orders the loading rather than the work.

Probe wordings are checked before they are asked

Two of the three probe kinds are written by a model: paraphrase rewords the atom's question, reversal turns the atom's statement into a false leading question whose correct answer is a refusal. Both can fail silently — a rewording that drops driver 2.1, or a "reversal" that restates the rule instead of inverting it — and either one corrupts the answer key the judge then grades against. Asking a model to check its own rewording re-introduces the same error, so the check is mechanical: anchor tokens (versions, numbers with units, CLI flags, env vars, letter-and-digit tokens such as bf16 or B60, underscored and dotted names such as dpnp.asnumpy, file names — with or without backticks) must survive the rewording, a paraphrase must not flip polarity or leak the answer into the question, and a reversal must actually reverse — it must not be the statement with interrogative scaffolding bolted on (Is it true that <statement>? asserts a true premise while the answer key still says "refuse", which marks a correct model wrong), and it must either move a negation — change the count, or put it on a different word of the statement — or widen the claim the way the prompt asks for. A negation written as its synonym counts as the negation itself, so X rather than Y and non-deterministic restate X, not Y and not deterministic rather than inverting them. An opening Doesn't / Isn't is question phrasing and is not counted, so Doesn't X support Y? restates X supports Y, while Is it true that X supports Y? inverts X does not support Y. A tag at the end (..., doesn't it?, ..., is it not?) is question phrasing in the same way, so The skill ships with numbers, doesn't it? inverts No numbers ship with the skill; Is it NOT the case that ...? still counts as a negation. A reversal may run up to 15 words past the 2.5x length cap, the size of a leading frame such as Isn't it true that ... NOT ..., but rather ...?.

The paraphrase polarity check reads a question the same way: an opening contracted negative auxiliary (Doesn't, Isn't, Can't, Don't, ...) and a closing tag are not counted on either side, so Can't X be deterministic? passes against Is X deterministic?. A sentence that does not end in ? has no question phrasing, so the imperative Don't install X as root. keeps its negation and is polarity_flipped against Should X be installed as root?. A paraphrase that presumes the answer (..., doesn't it?, Isn't it true that ...?) while its source does not is rejected as leading_question, since a probe on it measures whether the model resists the presumption.

Known gap: the paraphrase polarity check only asks whether a negation is present, so a faithful paraphrase that drops one (Can you run X without root? to Is root required to run X?) is rejected and counted in malformed_rate. The error inflates the rate; it never lets a corrupted wording through. The reversal check is lexical too. It accepts an inversion that adds one of these words the source lacks: skip, unreliable, useless, unsuitable, unhelpful, wrong, plus the bound and permission words (any, all, newer, safe, ...); always when the source holds sometimes, occasionally, rarely, never or only the first and the candidate drops it; and entirety when the source holds subset, partial, some or few and the candidate drops it. Only administrators ... to ... always ... is rejected, since only, once and single limit who, when and how many, which always does not widen. skip governed by wrong, useless, unreliable, unsuitable, unhelpful, unwise, bad, risky or mistake cancels, in ... to skip (up to two words between, to ever skip included) and in skipping ... <judgement> at the end of a clause (Is it wrong to skip warm-up?, Is skipping warm-up a mistake? restate warm up first) and is rejected; the adjective after skip (skip warm-up because it is useless) does not cancel it. A filler word (still, also, even, just) is never one. An inversion made by a pure antonym with no listed word (preferable, stays the same, faster to slower, off to on) is rejected and inflates the rate, while a restatement whose verb carries the negation (does not support to lacks support for) is not detected and is probed with a true premise.

Rejected wordings are dropped, never probed, and the rate ships with the result:

"probes": {"n_probes": 81, "malformed_rate": 0.12,
           "by_kind": {"paraphrase": {"generated": 27, "kept": 24, "rejected": 3,
                                      "reasons": {"anchor_dropped": 3},
                                      "rejected_examples": [
                                        {"atom_id": "a007", "source": "Which flag enables the accelerator on driver 2.1?",
                                         "candidate": "Which flag enables the accelerator?",
                                         "reasons": ["anchor_dropped"]}]}}}

rejected_examples keeps the first 20 rejected wordings of each kind (an empty generator row is kept with candidate ""), so a reader can audit the rate; reasons still counts every rejection.

Read it as a budget statement, not a quality score. The denominator is atoms asked for, not rows the generator returned, so a failed or truncated generation counts: a malformed_rate of 0.12 on paraphrases means that kind probed 24 of 27 atoms, and a redundant verdict that was supposed to be confirmed under reworded phrasing was not confirmed for three of them. Above 0.2 the run says so in warnings, which names probes.by_kind.<kind>.rejected_examples. The checks reject on evidence only, so a rate of 0.0 is the absence of detectable corruption — not proof that the wordings are faithful.

Can the artifact be selected at all

python cli.py skill routing skill:path/to/skill \
    --competitors skill:sibling-a skill:sibling-b ... \
    --queries queries.json [--model M [--reps N]]

A bare path, as SKILL or as a --competitors value, is a skill: its directory or SKILL.md. As SKILL, a file that is not a SKILL.md is refused; as a competitor it is skipped with a warning. Pass text:PATH to use a file's text as a candidate.

--against <dir> takes the competitors from a skill directory instead: every skill the catalog lists except the artifact itself. A skills.yaml at the root decides what the catalog lists; without one, every SKILL.md under it counts, except a template/ copy and vendored or VCS directories such as .git and node_modules, which are not walked. A byte-identical copy under another path counts once. A declared skill that cannot be loaded is skipped with a warning. Two catalog skills with the same name and different content are both skipped, with a warning that names every path of that name: the rest of the field stays. Only the copies the field lists count: a disabled copy (unless --include-disabled) or a spec-error copy (unless --include-invalid) is left out first, so it does not make its name a conflict. Rename one, delete the copy you do not mean to route against, or keep only one directory's copies with --keep-copies-under <dir>, to route the name. dokimi catalog check lists the same names as name-conflict warnings, for the copies it lists. A skill with a spec error (a name that is not kebab-case or not its directory name) is also left out, with a warning naming the error; pass --include-invalid to keep it, as a harness that refuses to list such a skill would not. A skill: competitor with a spec error is skipped with the same warning. The one exception is a description over 1024 characters as the only error: harnesses differ on it, so the skill stays in the field with its full description, and the run warns with its name and length (WARNING: skill 'x': description is 1100 characters ...) and records it under spec_warnings in the saved field rule. Claude Code (2.1.318, probed 2026-11-04) lists such a skill with the description cut to about 1,536 characters and an ellipsis, so a tail past that is never seen by its model (anthropics/skills#881); pi.dev rejects the skill (#1622). Where a harness truncates, the rate for such a skill may differ from the one measured on the full text; shorten the description to 1024 characters or fewer to make every harness agree. The directory-name check applies to a skill: competitor under a skills/ directory (skills/<dir>/SKILL.md, plugins/x/skills/<dir>/SKILL.md), as it does in a catalog. A skill: competitor anywhere else is read as a root skill, and its name is not checked against its directory: tools/database/SKILL.md named db is routed when passed explicitly, while a --against scan of its tree leaves it out with a name error. Keep the directory name and the name field equal to get the same field from both. A name that conflicts with another catalog skill leaves the field, and the error names the directory of each copy and suggests --against <dir> for one of them, or --keep-copies-under <dir>. --keep-copies-under <dir> keeps only the copies under <dir>, a directory relative to --against, and only for a name whose copies differ and that have one content under <dir>; the others of that name are named on stderr and left out, and the rest of the field is unchanged (unlike --against <dir>, which leaves out every skill outside that directory). A copy of that name outside <dir> that fails to load is left out too, with a note, once a copy under <dir> is in the field. An absolute path, a path that leaves --against (../), a file, or an empty value is refused with exit 2. A skill directory directly beneath the catalog (review/SKILL.md) is kept by its own name, --keep-copies-under review, since --against has no directory to point at for it. A SKILL.md in the catalog root itself cannot be picked by --against or --keep-copies-under: dedupe or rename it. A skill: competitor that is not a SKILL.md, or a directory without one, is skipped with a warning. A shell glob must be expanded first, with the prefix on each path (skill:dir/a/SKILL.md skill:dir/b/SKILL.md): an unexpanded skill:dir/* is refused as a missing path. A skill that sets disable-model-invocation is left out of the field, both from a catalog and as --competitors: no harness lists it, so the model cannot select it. Pass --include-disabled to keep it. A disabled artifact is still routed, with a warning; the flag does not change that. A catalog that holds the same SKILL.md under two paths (a plugin copy of its skills/ tree) counts it once: the copy nearest the catalog root stands for the card, and the others are named on stderr.

--dry-run prints, as JSON, the calls, input and output tokens and the list-price expected_usd the --model arm would make, and makes no model call. Without --model the run is lexical and the bill is zero. Input is the selection prompt sized at chars_per_input_token (2.6) characters per token, counted locally with no tokenizer, so it is a projection, not a count. Output is output_tokens_per_call (150) times the calls: one flat allowance, inside the 114 to 193 tokens a call that Sonnet 5.5 and Haiku 5.5 billed. The prompt asks for one {"pick": N} object, about 10 tokens, which underestimated a measured run 6.5 times, so the estimate does not use it. Both allowances come from one measured catalog (35 skills, 90 queries, Bedrock): with chars / 4 and 65 tokens the estimate was about 1.55x below the bills there. Another model, a catalog of other text, or a reasoning model can bill more or less, so read the figure as an estimate, not a bound. The command prints both allowances.

Two numbers, reported side by side and never merged:

  • Lexical — BM25 over each candidate's name + description, which is exactly the text a tool schema shows. Free, deterministic, and a floor.

  • Model (--model, optional) — a model picks from the same cards, with the card order a seeded random permutation per query (--seed), so a model that always picks the first option tends to 1/N rather than to a figure set by how the query count lines up with the candidate count. It tends to it: at five queries the realised rate is a fixed offset from 1/N, so read small query sets as such. --seed fixes that card order and nothing else: the model's answers are still sampled and can differ between runs, so measure that spread with --reps. Each permutation and the position the gold card was shown at are recorded per query. An abstention counts against selection_rate — not picking anything is the routing failure — with selection_rate_among_answered beside it; a failed call is excluded from both and counted, and one failed query does not lose the rest. Each abstention or unparseable pick keeps the model's raw reply under per_query[].raw_reply (the first 2000 characters), so a decline can be read. A reply cut at the output ceiling is an abstention too, whether or not its price is known. --reps N asks each query N times with the same card order, so the spread between repeats is the model's own sampling noise. The result's noise block gives each query's agreement across its repeats (per_query), the selection rate of each repeat, and half_range, half the gap between the highest and lowest of those rates: a crude noise floor. The rates cover only the queries with no failed call in any repeat (n_queries_compared), so a transient error is not read as noise. Each repeat is a fresh sample, so under DOKIMI_RESPONSE_CACHE a repeat is not a replay. Repeats need --model, and cost N times the calls. With repeats, n_calls is queries x repeats, n_abstained and n_failed count calls, and each per_query row carries its repeat index. In a catalog routing run each noise row also names its gold skill, since two skills can list the same request. noise is always an object: n_repeats is the repeat count, and with --reps 1 it is 1 with mean_agreement, half_range, unstable_queries and each row's agreement null (nothing to agree with), so a reader tests those fields, not noise, for null.

A single-artifact --model run also writes a cost block (calls, input and output tokens, cache read and write tokens, and usd, which is null when any call this run paid for had no known price) and prints the same totals on stdout. Cache tokens are reported separately from input tokens, and depending on the provider they may or may not be counted inside input_tokens. A run without --model makes no calls and has no cost block. usd is also null when a call returned no usage, and a call that raised is not counted. A call replayed from the response cache is counted in replayed_calls and left out of the token and usd totals, since this run did not pay for it; llm_calls still counts it. catalog routing writes the same cost block over its model arm.

recall_at_3 comes back null with three or fewer candidates, where every rank is <= 3 and the figure would be a structural 1.0. The lexical arm also reports n_queries_given next to n_queries_scored, since a query with no content words is dropped rather than counted as a miss.

All skills against each other. catalog routing <dir> --queries-by-skill queries.json --out routing.json (add --model M for the model arm) makes every skill that has queries the gold in turn, routed against the whole field. The file is a JSON object of skill name to the requests that should select it, each written without the skill's own text. A skill named twice in the file is refused. --out must name a file: a directory, a path under a non-directory, a FIFO or device, a symlink loop (ELOOP, or WinError 1921 on Windows), or a path that refuses a trial write (an existing file opened for append, nothing truncated; a directory given a temporary file as long as the output's own name, so a name over the file system's limit is refused) is refused before any model call (the same check is made for a single-artifact routing --out); a missing parent directory is created. The output has a confusion matrix (gold to picked to count, with (none) for a query no card shares a word with or, in the model arm, an abstention, and (tie) for a query on which two or more other cards tie for the top lexical score, so no field order decides it), an own rate per skill, and an attractor table: a skill picked for other skills' queries, with wrongly_picked of sibling_queries and the skills whose queries it took (from). Skills whose descriptions have the same words (case and punctuation aside) are a tied group (tied_groups, named once on the console): a pick between them is in the confusion matrix but is no attractor, and a tied skill's own rate is lower by the picks inside its group. Every rate is over the queries that were scored: n_scored and n_unscored per skill say how many, a query with no content word or a failed model call is unscored, and a skill with none scored has an own rate of null, not 0.0. The lexical arm also keeps per_query, one row per query whatever --reps is, in the shape of a single-artifact run's per_query plus the gold skill: query, gold, rank of the gold card and picked (rank is null and a reason replaces picked for a query with no content word). picked follows the confusion matrix, so it is (none) for a query that shares no word with any card and (tie) when two or more other cards tie at the top, where a single-artifact run names the first card in the field. rank and picked hold for the row's gold only, so each row also keeps scores (card name to BM25 score, in the order of the field), which do not depend on the gold: rescore_lexical_row(row, gold) in dokimi.novelty.all_vs_all gives rank and picked for a corrected gold, ties included, and keeps a row with no content word unscored. A saved run can be rescored from them for corrected gold labels (one gold per row), split by query set half, or compared query by query with another run (catalog routing-compare, below). The model arm's rows are model.noise.per_query (query, gold, picks, n_correct), also kept with one repeat. A run with any failed model call writes the result and exits non-zero. The saved file records the field rule under field (include_disabled, include_invalid, keep_copies_under, the competitors and what was left_out, which also names each skill left out for a conflicting name or a spec error, and spec_warnings, one {skill, length, limit, message} per kept skill whose description is over 1024 characters); a single-artifact run records it too. An all-vs-all result also records shared_queries ({shared, total}: how many of the queries with a content word are listed for more than one skill), so a file saved from a run on shared queries says so. An all-vs-all run also lists in field.dropped_queries each skill whose queries it dropped, as {skill, reasons, keep_flags, queries}, one record per skill, with each reason disabled, invalid or conflict. A query for a catalog skill that failed to load refuses the run and names the load error. It refuses --artifact, --queries and --queries-from-headings: it takes --queries-by-skill only. --dry-run prints the calls and the list-price cost of the whole run as JSON, in the shape of a single-artifact estimate, with no client built and no query sent; it needs no --out. --reps needs --model and asks each query that many times, as a single-artifact run does: the model arm then carries a noise block (agreement per query, the rate of each repeat, half_range), and its counts are calls, one per query per repeat. The model arm also records the selector model, so two runs with different models can be told apart. It is refused with fewer than two skills, a name repeated in the field, or no queries at all. A query file that names a skill the field leaves out (disable-model-invocation, a spec error or a name that two different skills share) drops that skill's queries with a WARNING naming the flag that keeps it; the run goes on with the rest, and is refused only when no query is left. A name no rule explains is refused, since it is more likely a typo. Missing --queries-by-skill and --out are reported in one error.

Acceptable alternatives. A request in the queries file may be an object instead of a string: {"query": "<request>", "acceptable": ["<other skill name>", ...]}, for a request a second skill answers as well as the gold. A file of strings reads and saves as before: no new key is written. acceptable must be a list of strings and the object has no key besides query and acceptable, or the file is refused naming the file, the skill and the query; the gold named as its own alternative is dropped (also from a direct all_vs_all call, so a pick of the gold is never counted as both), and a blank query is dropped with its object. An acceptable name that is not in the field is refused, naming the skill, the query and the name, before a --dry-run too; the alternatives of a skill the field leaves out (its queries are dropped with a WARNING) are moot and not checked. When the file names at least one alternative, each arm adds acceptable_rate per gold skill beside own_rate: the share of its scored queries (the same denominator) whose pick is the gold or one of that query's alternatives, and the summary prints the pooled gold and gold-or-acceptable counts, taken from confusion and from acceptable_picks (the exact count per gold skill of picks that were an acceptable name), not from the rounded rates. (none), (tie) and a failed call never count, and the model arm counts per call as its other counts do. confusion and attractors stay defined by the gold alone: an acceptable pick of another skill is still counted there. The rows of a query with alternatives (lexical.per_query and model.noise.per_query) keep acceptable; the rows of other queries do not get the key.

Comparing two saved runs. catalog routing-compare BASE.json OTHER.json [--arm lexical|model] [--out FILE] reads two files catalog routing saved and makes no model call. Rows are paired by (gold, query) (a request listed twice for one gold pairs in order). --arm lexical (the default) reads result.lexical.per_query; --arm model reads result.model.noise.per_query and is refused when either run was made without --model. --out writes the comparison as JSON and creates a missing parent directory, as catalog routing --out does. A file that is not JSON, not an all-vs-all result, has no result object, or has no per-query rows (a file saved before the lexical arm kept them) is refused with the file and the cause, and so is a row whose query or gold is not a string, whose acceptable is not a list of strings, or, with the lexical arm, whose rank is missing or is neither null nor a positive integer, or whose picked is not a string while rank is set (a null rank and the picks (none) and (tie) are kept), or, with --arm model, whose picks is not a list of strings (the message names the file and the row number), and so are two runs with no pair in common. A query in one run only is counted and shown by example, and left out of every figure. A row left unscored in either run is left out and counted: a lexical row with no content word, and in the model arm a query with no answered call or, with --reps, one whose most common pick is not unique (the modal pick is the pick otherwise). The report gives the pairs scored, each run's number right, the pairs right in BASE only and in OTHER only, the exact two-sided sign test p (binomial, p = 0.5; 1.0 with none), and the queries whose pick changed with both picks. The test counts distinct (gold, query) queries, not pairs: a request listed twice is one query, right in BASE only when more of its pairs are right there than in OTHER, in OTHER only when fewer, and neither when equal, so repeating a request does not add evidence (discordant_queries in the JSON; discordant keeps the pair counts). For example, 10 distinct queries with BASE right on 5 that OTHER misses and OTHER right on none give p = 0.0625, not significant at 0.05, and 6 and 0 give p = 0.03125. A pair is right when the pick is the gold; when both runs name the same acceptable for it, the gold or one of those names. When only one run names alternatives, or the two differ, that pair is scored on the gold alone and the report prints a note, so the two runs are never scored on different keys. --out writes the same figures as JSON (mode routing_compare; no schema, as for catalog routing --out).

Cost of --model in all-vs-all. The model arm makes one selector call per query and repeat, across every skill in the field: the call count is the number of queries in queries.json that have a content word (one without is unscored in both arms and not sent) times --reps, and a failed call still counts. Each call sends the whole field's cards, so a large field costs more per call as well as in calls. Before the first call the run prints that count to stderr (all-vs-all: --model makes N model calls, one per query and repeat, ...). The run does not pause for it, so count the queries first, or pass --max-usd to stop the run at a spend limit. A lexical-only run (no --model) makes no model calls. A stored response in DOKIMI_RESPONSE_CACHE is replayed without a call, so a rerun can make fewer calls than the printed count. The response cache is opt-in: without DOKIMI_RESPONSE_CACHE set to a writable directory nothing is stored, and a rerun pays for every call again. Set it for research runs and for any run you may repeat. --cache-dir keeps only the retention verdicts.

A permanent provider error that every call would meet stops a routing run the way the cap does. An authentication or permission error, an unknown model ID (not found), a parameter the provider does not take (every call sends the same ones) or missing credentials (with claude-cli: not logged in, a usage limit, no claude binary; with AWS: "Unable to locate credentials", a missing config profile or an expired SSO session, whichever class litellm wraps it in) would fail every later call alike, so the run stops at that call, keeps the rows made before it and writes the partial result below, with "reason": "permanent_error" and the error text as the message (--max-usd is not involved; the exit line gives calls_done of calls_planned). Any other failure is one failed row and the run goes on: a refusal, a request one query makes too long, an unparseable reply, an error the client does not recognise, a transient error that ran out of retries. skill novelty atoms, probe and analyze and skill shorten stop the same way at the first such error in an atom extraction call, the faithfulness check, a probe wording, an answer, a grade, a value or conflict batch or a retention adjudication, and keep what they paid for as they do at the cap, with "reason": "permanent_error"; a refusal, an unparseable reply or a request one item makes too long is still one failed item.

A routing run stopped by --max-usd keeps what it paid for. skill routing --model, single artifact or catalog routing, writes the result of the calls made before the cap (or a call with no known price) stopped it, prints the summary and cost lines, and exits 3 with the cap message and the path of the file (1 for a permanent_error stop). The file carries "partial": {"reason": "spend_cap", "calls_done": N, "calls_planned": M, "message": ...} ("permanent_error" for the stop above, "no_price" for an unpriced call) at the top level (and under the model arm), and no partial key when the run finished. The record's status is then "partial" instead of "ok" (a single run; an all-vs-all file carries status only when partial), so a script that checks status == "ok" does not take a prefix of the run for a finished measurement. The model line says partial: N of M calls in place of the query count, and warns when fewer than five calls were answered. When --out already holds a result that is not itself partial, the partial one goes to the first of <out stem>.partial.json, <out stem>.partial2.json, ... beside it that is free or a partial result it can write (a sidecar that is not a regular file, such as a FIFO or a symlink, is skipped without being opened or followed; a stem that fits its own sidecar name keeps it (bar the digest-shaped case below), and one too long for a name to fit the file system is cut for that name (leaving room for a counter of six digits, so the numbered names share one stem) and ends in a digest of the whole stem, so the partial result is still saved and two long outs keep separate sidecars, and a short stem that ends in a digest-shaped tag (in either case) as long as a cut one is cut again, so it never takes a cut one's sidecar), and the exit message names that path, so a cap never replaces a finished measurement. The calls made are scored as in a run with failed calls: a single run's model.per_query holds them, and model.n_calls is N rather than queries times repeats. In all-vs-all the calls never made are in n_unscored, a skill the run never reached has an own_rate of null, and a query stopped between repeats keeps its picks but is left out of noise. The lexical arm is complete either way. Treat a partial file as a prefix of the run, not a measurement of the whole field: the skills and queries reached first are over-represented. To finish, raise --max-usd and rerun with DOKIMI_RESPONSE_CACHE set (it must also have been set on the capped run), which replays the calls already paid for at no cost. skill shorten still writes nothing when the cap stops it (it keeps its verdicts in --cache-dir, below); atoms, probe and analyze keep the calls they made as a partial result.

Three properties worth knowing before quoting either:

  • Competitors are mandatory. The existing skill-agent: arm offers one skill, which makes selection a binary did-it-load question. The real failure is picking the wrong sibling. Siblings built from one template have identical heading queries, so heading-query recall@1 at the family level measures the template; check sibling confusion with queries written independently of the skills.
  • The queries must come from outside the artifact, or it defines both the problem scope and its own relevance. --queries-from-headings exists for triage, warns, and stamps queries_self_derived: true into the result; corpus-wide those self-derived queries gave recall@1 0.225, and a skill's own bundled evals/ questions gave 0.667. Headings inside fenced code blocks are not offered as queries. Only ## and ### headings of two or more content words count, and a skill whose headings give none has no self-derived query: its description is not used as one. queries_source (headings, none, or null for --queries) says what was used. A run with no usable query exits non-zero, says why, and still writes the result with "status": "no_queries". Every rate line prints its n_queries (and triage: self-derived when it is self-derived), and fewer than five scored queries draw a warning.

  • The model figure is an upper bound on harness behaviour. A harness whose own skill listing truncates or omits descriptions selects on less text than this command shows — which has been observed. Only a run inside the harness settles it.

Measured example, linux-perf against the other 32 corpus skills with five independently written user requests: recall@1 0.0, recall@3 0.8, MRR 0.43. It lost every query, three of the five to an xpu-* skill whose description is phrased the way a user phrases the problem. The content is fine; the card is not winning.

Do the probes measure anything

Two LLM-free item-analysis checks, answering different questions.

Kind agreement, inside one run. An atom asked twice — its own question and a reworded one — should get the same verdict in the same arm. When it does not, that atom's outcome is a property of the wording: prior knowledge that holds only under the artifact's own phrasing is not prior knowledge, which is the whole reason the paraphrase kind exists. Reversal probes are excluded (their key is "refuse", so disagreeing with the others is their job). The figure is the share of multi-kind atoms that were unanimous — an atom asked three ways where two agree counts as a disagreement, since one of its three answers is wrong either way. Reported per arm in items.kind_agreement, warned below 0.8 in either arm, and checked by the gate as probe_kind_agreement, which takes the worse arm, names it, and reports without judging when there are fewer than five multi-kind atoms. Read the baseline arm first: a low figure there means the redundant share is wording-matched recall rather than prior knowledge.

Discrimination, across runs. Corrected (rest-score) point-biserial with the models as the respondents: an atom every model gets right separates nothing, and one the weaker models pass more often than the stronger ones is measuring something other than the knowledge it names. Each atom is correlated against the models' scores on the other atoms — a total containing the item correlates it with itself, which at three respondents is enough to report a perfect r on no evidence.

python cli.py skill novelty probe --artifact skill:s --atoms atoms.json --model M1 --out m1.json
python cli.py skill novelty probe --artifact skill:s --atoms atoms.json --model M2 --out m2.json
python cli.py skill novelty probe --artifact skill:s --atoms atoms.json --model M3 --out m3.json
python cli.py skill novelty items --probes m1.json m2.json m3.json

Program checks. An atom may carry meta.grading, the grading.checks block of reference checks; every probe built from it except the reversal gets it, and its non-judge checks run on each answer next to the judge. skill novelty ground --atoms atoms.json --tool "perf report" writes one such check: a veto that fails an answer naming a perf report --flag the tool's own --help does not list. With --header and --shared-lib and a --prefix (cblas_), it vetoes a C API name no header declares and no library exports. The judge's verdict is kept on each checked run and the record's checks block counts how often the judge passed an answer a veto failed. Design and evidence: grading-tiers.md.

Three distinct models is the minimum; below that — including three runs of one model, which are repeated measurements of one respondent — the command says the statistic is not computable rather than printing one. Runs of one model are folded into one respondent before the count, and the count is of models with usable runs. Runs of different artifacts, or of one artifact at different revisions (artifact or ref_digest differ), are refused. Three is also too few for the floor: enumerating every 3×6 pass matrix under a uniform null puts 30% of atoms above r = 0.2 and 32% below zero by chance, and the attainable values are a lumpy set that 0.2 does not land on. So the 0.2 floor is not applied below 12 cells (min_discrimination comes back null, floor_applies false), the r column is a ranking until then, and the result's own note says which regime it is in. r is None — with the reason named — when an item or the totals have no variance, or when nothing is left to correlate against. Only atoms every cell scored are correlated (the rest are reported in atoms_dropped): counting a missing probe as a failure would manufacture a correlation, and leaving a one-cell atom in the rest score moved the shared atoms' totals and could flip their sign. The correlation itself lives in eval/correlation.py, next to the other statistics, so the next caller finds it instead of writing its own.

Read the output as a statement about the measurement, not the atom: a non-discriminating atom can be true and simply universal. A negative r is the one to treat as a defect.

Is added above placebo and above noise

Three controls bound the headline added rate. The placebo and noise-floor fields are added to the paired block only when their arm ran. The atom-clustered interval applies to every run, so on a two-arm run too ci95_added changes (and is null below 5 atoms).

  • Placebo-gated added (added_over_placebo, needs the placebo arm). This counts a probe only when it is right with the artifact, wrong without it, and wrong with the placebo text. A gain the placebo also gets is a context effect, not knowledge.

  • Noise floor (noise_floor, needs the no_artifact_repeat arm). That arm asks every baseline question again as a new sample (a new cache draw). Its flips against the baseline are what added and degraded would be if the artifact did nothing.

    • added_net_of_noise subtracts the floor's added from the measured one, over the probes that all three arms answered. It is omitted when there are none.
    • degraded_within_noise is true when degraded is no larger than the floor's own degraded, over the same probes. Do not report such a degraded as a defect.
    • In the review rerun the floor was 5–10% in each direction, and every model's degraded fell inside it.
    • Both are point estimates; the floor carries its own ci95_added to read them against. The floor is only as wide as the answerer's sampling: at temperature 0 it can read 0. An injected transport is not given the draw, so there the repeat is no new sample.
  • Atom-clustered interval. The paraphrases of one atom succeed or fail together, so ci95_added (and the placebo-gated ci95) resamples atoms, not probes (ci_cluster: "atom"). A probe-level bootstrap reads three correlated wordings as three data points, so its interval comes out too narrow. A record or scorecard cell without ci_cluster (or with it null) predates this change and its interval is probe-level.

--context-framing neutral changes the preamble from "Reference material:" to "Below is a document. It may or may not be relevant to the question." Use it to check whether placebo abstention is caused by the prompt. In the rerun the framing did not move the full arm on any model (±0.02). With the placebo, one model's abstention fell from 0.845 to 0.703. The framing is recorded as context_framing in each probe record and in the run config (absent there for reference). prompts_sha256 covers the text of both preambles, not which one was used. skill novelty items refuses probe records of different framings.

python cli.py skill novelty analyze --artifact skill:s --model M \
  --arms no_artifact,full,placebo,no_artifact_repeat \
  --placebo-text other-domain.md \
  --context-framing neutral

Test-retest noise of the headline score

The noise floor above is per run: it is the flip rate of the baseline answers against themselves. It does not say how far the headline k0 score of one skill moves when the whole pipeline runs again (extraction, sampling and judging all redrawn). For that, run the same items twice and compare:

# run 1: the usual sweep
python cli.py skill novelty analyze --artifact skill:$S --tier triage --seed 0 --out-dir runs/a/$S ...
# run 2: the retest, another seed, a fresh --cache-dir (the retention verdicts) and no response
# cache: DOKIMI_RESPONSE_CACHE=0 (or unset) so that no answer is replayed
DOKIMI_RESPONSE_CACHE=0 python cli.py skill novelty analyze --artifact skill:$S --tier triage --seed 2 \
  --cache-dir runs/cache-retest --out-dir runs/b/$S ...
# the floor, pairwise comparisons, no model calls
python cli.py skill novelty retest --baseline runs/a --retest runs/b --out-dir runs/retest

retest pairs the baseline run and the retest by artifact ref and writes retest.md and retest.json (novelty_retest.v1). Its statistics are over k0.lenient by default (--scoring strict for the strict one):

  • Noise floor = 1.96 × the sample standard deviation of second − first. A difference between two single-run scores smaller than the floor is not evidence of a difference.
  • Pearson r between the two runs, the mean |diff| and the mean shift (second − first). A shift moves every item alike, so it does not reorder items, but it does move a score against a score from another run.
  • Comparisons below the floor: pairs of items whose first-run scores differ by less than the floor. They are listed in retest.json.

Items that appear in one run only, have no usable score, or are partial runs are left out and named as warnings (the first five by ref, the rest counted). When both runs record an artifact.ref_digest and the digests differ, the runs measured different content. The ref is listed in unscored and excluded from the floor and all other retest statistics. Runs without a digest still pair by ref. A warning names the ref when only one run has a digest. If these exclusions leave no pairs, the command exits with no item scored in both runs. This also applies when all shared items have scores but were measured on different content. Warnings also name a retest that does not vary what it should:

  • the same seed, or another model;
  • another judge: judge_model;
  • calls served from the response cache: cost.replayed_calls above zero in either run. A replayed answer is the baseline's answer again, so the floor shrinks toward zero;
  • a run_config that differs in any key other than seed (max_atoms, arms, paraphrases, tier, prompts_sha256, ...). Such cells do not compare, and the floor inflates.

The retention verdicts of --cache-dir are memoized on disk and are not counted in replayed_calls, so a retest must not reuse the baseline's --cache-dir either.

A baseline or retest given as a directory is searched for files named novelty.json: a run saved under another name (for example analyze --out-json foo.json) is not read there, and the item shows up as unmatched. A file passed directly is read whatever its name. A directory under it that cannot be listed is an input error (exit 2), not a smaller set of runs. A run with no probed atom (atoms.n_probed 0) is left out as unscored.

Below ten items the floor is a rough guide: retest.md and the stdout say so. With two items the spread has one degree of freedom.

Corpus evidence (2026-11-09, 10 S2 skills, triage; the ten pairs are pinned as S2_RETEST in tests/test_novelty_retest.py): r = 0.86, mean |diff| 0.10, mean shift +0.067, floor about 0.21. 26 of the 45 pairs of those ten skills are below that floor. Use at least two runs per item before reading a per-skill difference under 0.2. The retest costs one full run per item, so the cost is the sweep again; there is no default, because it is a choice of spend.

Provenance, judge vendors, a second judge, reversal both ways

Every novelty analyze and novelty probe JSON carries a provenance block, so a quoted number can be traced to what produced it:

  • dokimi_version, and git_commit when dokimi runs from a git checkout (null otherwise).
  • artifact_digest (the measured text's ref_digest) and prompts_sha256.
  • answerer_model, judge_model and context_framing.
  • answerer_vendor and judge_vendor, read off the model id (claude/anthropic, gpt/openai, grok/xai, gemini/google, nemotron/nvidia, llama/meta, else unknown), and same_vendor. A judge of the answerer's vendor is not refused, as the same model is (--allow-self-judge); it is warned about on stderr and, in analyze, in warnings.

--judge2 MODEL regrades a seeded --judge2-frac share (default 0.15) of the graded runs with a second judge (--judge2-provider, default the judge's provider) and writes judge2: lenient_agreement, kappa_lenient (Cohen's kappa on the lenient collapse) and exact_agreement over n_compared runs, plus that judge's cost. A second judge that is the answering model, or the same model as the first judge, is refused unless --allow-self-judge.

controls.reversal_resisted is the with-artifact arm's share of refused planted inversions. reversal_resisted_by_arm gives it for the baseline too, and reversal_paired pairs each inversion probe across the two arms: resisted_only_with, resisted_only_without, and difference over n_paired. In the study a correct artifact raised resistance (§10.2).

python cli.py skill novelty analyze --artifact skill:s --model M --judge2 gpt-6-luna \
  --judge2-provider openai --judge2-frac 0.2

Comparing knowledge: which matcher is allowed to answer

Two steps ask "is this the same knowledge?" — the retention oracle ("does the shortened text still carry atom A?") and the atom↔need match ("does A answer need N?"). Measured on 714 constructed pairs (restates / entails / unrelated / reverses):

approach macro-F1 LLM calls catches a reversal?
llm_direct 0.953 100% yes
hybrid — retrieval → NLI → LLM band 0.848 25.6% yes
nli only 0.732 0% sometimes
graph structure matcher 0.551 0% —
lexical overlap 0.446 0% no (recall 0.00)
embeddings (potion / bge) 0.444 / 0.438 0% no (recall 0.00)

The hybrid ships. Two consequences worth remembering when reading a knowledge number:

  • Never accept an embedding-only retention score. Both cheap matchers scored 0.00 recall on the contradiction label: they cannot tell restates from reverses, so a rewrite that inverted a rule would be reported as faithfully retained.

  • The oracle fails safe. With no adjudicator configured, the ambiguous band resolves to absent, so reported knowledge is a floor — a shortening can look worse than it is, never better.

Which cheap scorer fills the first stage was measured separately, and the answer is not NLI. Scoring every candidate on the 3972 pairs that actually escalated — reference labels being the adjudicator's own cached verdicts, so this is approximation of the adjudicator and not truth — a cross-encoder NLI stage lands at AUC 0.576, κ −0.001, balanced accuracy 0.500 against a 0.896 majority baseline: chance at its threshold. HHEM-2.1-open reaches 0.804 at the same cost (59 vs 57 CPU s/1000, 946 vs 856 MB), and the score decay as more surrounding context is supplied (−0.046 heading→whole file, 50.8% of atoms, p = 0.005) reverses to +0.047. Two things not to conclude from that:

  • It buys accuracy, not cost. An ends-only shortcut at ≥0.90 agreement removes 0.003 of adjudications, ≤0.0072 even at 0.80 agreement, and replacing per-pair verdicts with a calibrated aggregate collapses to a constant. The escalation is the oracle. Shortcut only at hhem ≥ 0.995 AND top_sim ≥ 0.6 AND the atom carries no number or version, and never shortcut the "no" end.

  • No cheap matcher may score a protected atom. Agreement against the band mean falls −0.18 to −0.25 on numeric atoms, −0.07 to −0.10 on version-bound ones, −0.03 to −0.05 on negations, because a similarity score reads topic and not value: _mm512_reduce_add_epi64 scores mid-scale against an atom about _mm512_reduce_add_pd. The same blindness defeats a prompt compressor told to pin the words (above) and a reader model shown a wrong number (below).

The graph matcher's 0.551 is not an argument against the graph. Structural overlap is the wrong instrument for semantic equivalence; the graph's job is the step before, deciding which question is being asked at all.

Tracking it on a subject scorecard

A novelty run is attached to a subject run, not produced by one — the measurement is atoms × probes × arms × (answer + grade) and would dominate a subject's cost. Produce it with skill novelty analyze, then name the artifacts by path:

python cli.py subjects run subject.toml \
  --novelty-artifact results/novelty/accel-tuning-on-opus.json \
  --novelty-artifact results/novelty/accel-tuning-on-haiku.json

The scorecard (subject_scorecard.v2) then carries a novelty block with one cell per (artifact, model) pair and no aggregate: a strong model has both a smaller added and less headroom, so a mean over cells mixes two effects, and ranking artifacts by added inside one model correlated with the measured task delta at ρ −0.446. The block states status: not_run when nothing was attached, so an unmeasured subject never reads as a subject with no novelty. The rendered report gets a ## Novelty section with the same per-cell rows plus the caveats.

Each cell carries a soft-gate verdict (dokimi/gate/novelty_gate.py): added_floor, harmful_atoms, dead_tokens, protection_invariant, span_citations_confirmed, value_is_measured, order_independence. Every one of them is soft and none blocks a build — a threshold on added flipped its verdict on up to 24% of artifacts at a 0.25 probe budget, so a blocking novelty check would be a blocking opinion about probe count. Checks whose input a run did not produce are marked measured: false and listed in the verdict's not_measured (rendered as PASS (k not measured)) rather than passed silently, so a skipped stage never reads as a cleared one. Such a check is at info severity, except harmful_atoms and protection_invariant, which stay at warn. A cell with no check measured at all is NOT MEASURED, not PASS. Failing warn-severity checks and the artifact's own warnings also surface in the scorecard's top-level warnings.

Corpus sweep: catalog novelty

catalog novelty ROOT --out-dir DIR --max-usd USD runs skill novelty analyze on every SKILL.md under ROOT and writes one row per skill to --jsonl (default DIR/sweep.jsonl) as each finishes, so a killed sweep keeps what it paid for. An ok skill also gets DIR/<skill>/novelty.json and novelty.md. The calls are paid: --max-usd is required.

  • Budget. --max-usd is the whole-run budget, shared by the skills analysed at once (--jobs, threads). --max-usd-per-skill caps one skill inside it; a skill that hits either cap is a partial row with no novelty file, and the sweep goes on. Once the whole-run budget is spent, no further skill starts: it is not in the JSONL, and the run says how many were not run. A skill stopped by a call with no price or by a permanent provider error (see above, routing) stops the sweep the same way, since every later skill would meet it on its first calls. A run that leaves any skill it took on partial, error or not run exits 1 after it has written its rows and the summary; a run that measured every one of them exits 0.
  • Resume. --resume keeps the ok rows whose skill directory digest, measurement settings and dokimi version are unchanged, rewrites the JSONL with them and with the rows of skills this run does not select (a narrower --limit), and runs the other skills. Set DOKIMI_RESPONSE_CACHE so the calls already paid replay at $0. Without --resume, an existing --jsonl is refused rather than overwritten. A --resume whose settings differ from those of an ok row of a selected skill (or whose dokimi version does) is refused and names the fields, since rewriting the file would delete that paid row before its rerun; pass --rerun-changed to measure those skills again on purpose.
  • Settings. The sweep takes the measurement flags it needs (--model, --judge-model, --tier, --max-atoms, --token-budgets, --arms, --include-resources, ...); the rest keep their skill novelty analyze defaults. --judge2 and a judge panel (--judge more than once, --judge-aggregate) are not part of the sweep, which refuses them: run them on one skill.
  • Summary. The first line of the summary is the count of measured, partial and error skills and the spend. The second line is the share the model already knew without the skill, k0.lenient, and the share it did not know (1 - known): the new-to-the-model share. Each interval is a 95% percentile bootstrap over the skills (2000 resamples, --bootstrap-resamples). --strata CSV adds one line per stratum: the CSV has a skill column (the skill's directory under ROOT, or its name) and a stratum column (--stratum-column, default stratum); a skill the CSV does not name is (unassigned).
  • Summary only. --summary-only --jsonl FILE prints the summary of a finished or partial sweep with no model call. --summary-out FILE also writes it as JSON. A file whose ok rows were measured under different settings or dokimi versions (a --resume --limit with a changed --model) is refused: one interval would pool two models' shares. An identical bundle (same files, so the same digest) is counted once, by its last ok row, even if it was moved to another directory or renamed. If differently named bundles with the same digest coexist in the catalog, each has a separate measurement. The JSONL records a bundle_instance number for additional copies so --summary-only can distinguish them without the catalog. Older rows without that evidence use instance zero. The spend counts every paid row, including rows written before a rename. After the already-known share, the summary ranks skills by new share (new_lenient). Equal shares sort by smaller token count, then by skill key. Text shows the top ten, and the JSON ranking includes every skill whose latest successful measurement has a new share and a positive token count.
  • Identical copies. Directories under ROOT whose files (SKILL.md and everything bundled with it) are byte-identical and name the same skill (the frontmatter name, or the directory name when it has none) are one skill: the shallowest path is kept, the other copies get no row and no call, and stderr names them (not an error). Two directories with the same SKILL.md and different bundled files are two skills.
  • Interrupt. Ctrl-C or SIGTERM stops the sweep without new calls: the skills not yet started are cancelled, the skills in flight finish and keep their rows, and the run exits nonzero (130 for SIGINT, 143 for SIGTERM). A SIGTERM therefore waits for the calls in flight. The rows already written stay in the JSONL, so --resume continues from them. A second signal kills the subprocess calls in flight (their paid work is lost, so set DOKIMI_RESPONSE_CACHE to replay what was done) and stops at once. An API call in flight cannot be killed: its row is not written, and the process waits for it to end before it exits, so its paid call is lost unless DOKIMI_RESPONSE_CACHE is set. No call after it starts. A skill that is measured again (--resume) first loses its earlier novelty.json and novelty.md, so a partial or error row never sits beside a file from an older run. --summary-out may not be the --jsonl file, and neither may be a skill's novelty.json or novelty.md under --out-dir (a symlinked skill directory counts), and neither --out-dir nor --jsonl may be inside a skill directory (its files would change the skill's digest, so each --resume would measure it again). An existing --out-dir that cannot be listed makes --summary-out and --jsonl an input error (exit 2), since the skill directories that are symlinks cannot be checked; a missing --out-dir is not an error.
dokimi catalog novelty skills/ --out-dir out/sweep --max-usd 20 --max-usd-per-skill 1 \
  --jobs 4 --model <answerer> --judge-model <judge> --strata strata.csv
dokimi catalog novelty skills/ --out-dir out/sweep --summary-only

Cost, and how it is kept down

The measurement is LLM-call bound, and the probe term is predictable: every probe costs an answer and a grade in every arm. Counted with a stub client over three real skills at all three tiers, the projection in novelty/tiers.py landed within 1–3% of the counted total at all nine points — on a corpus whose atoms the retention oracle resolves locally.

That caveat is the one to carry. The oracle escalates its ambiguous band to a model, once per atom for carrier confirmation and once per atom per shortening candidate, so its cost is a range rather than a number: on a corpus engineered to escalate, the real total came to 1.4–1.6× the no-escalation projection, and the oracle was 35% of the calls. estimate_calls therefore reports total_calls (nothing escalates) and total_calls_if_every_pair_escalates; the truth is between them and depends on your content, not on the tier.

tier atoms probe kinds stages calls on a 1,700-word skill
triage 25 direct none 103
standard 60 direct + paraphrase verify, shorten, carriers 549
study 120 direct + paraphrase + reversal all 1,078
python cli.py skill novelty analyze --artifact skill:s --tier triage          # ~10x cheaper
python cli.py skill novelty analyze --artifact skill:s --tier study --dry-run

--dry-run prints the projected bill and exits without constructing a client, so the decision costs nothing. Pricing imports litellm, which tries to fetch its price map from the network before it falls back to the copy bundled with the package; on a host with no network that is a pause of a few seconds and a warning. Setting LITELLM_LOCAL_MODEL_COST_MAP=True skips the fetch and uses the bundled prices.

Spend cap on atoms, probe and analyze. --max-usd stops these at the limit and keeps the work it paid for. atoms writes <stem>.partial.json beside the --out file (atoms.json by default; the spans read so far, the rest marked unread), and probe does the same beside its --out file (probes.json by default; the answers so far). Both exit 3 (1 for a permanent_error stop) with a message naming the file. A partial file is never read as a finished one: probe and the other atom readers refuse atoms.partial.json, and novelty items refuses a partial probe file. A partial probe file keeps its runs and probes and holds null for the summaries computed over the answers the cap left (paired, arms, abstentions, the reversal and confidence blocks, and judge2: the second judge shares the cap, so it cannot regrade at all once the cap stops the run). A partial file is for inspection; rerun to get a finished one. analyze does the same beside its novelty.json (<out stem>.partial.json, never over a finished file; the --out file, novelty.json in --out-dir by default). Its partial file has "status": "partial" and a partial block: reason (spend_cap, no_price for a call with no known price, or permanent_error), stage (extraction, verify, need_graph, probes, measurement, classify or attribution: the stage that was running), message, cause (the cap's own text, with what was spent), and spans_read / spans_total for an extraction stop or calls_done / calls_planned (probe answers) once the measurement started. It keeps the extracted_atoms and source_spans (the unread spans are in extraction.unread_span_ids), the probes once built (with the wordings and answer keys in probes.items, so a stop before the first answer still keeps them) and the runs (probe answers and judgments) so far; it has no paired, arms, k0 or view summaries, and no novelty.md or annotated view is written. The exit is 3 (1 for a permanent_error stop), the message names the file and how to get the paid calls back: with DOKIMI_RESPONSE_CACHE set to a writable directory on the capped run, a rerun with a higher --max-usd and the same cache replays them at $0 (a reply that was cut off or unusable is asked again; after a no_price stop the message says to price the model or drop --max-usd instead, since a higher cap does not help); without it, or when it could not be written, the message says the calls were not cached. skill novelty view, subjects (--novelty-artifact) and every other reader of a novelty.json refuse a partial file by name, and runs list does not list it (it opens with status, not schema_version). A record with status: "partial" but no partial block is refused too, and so is saving one with save_artifact("novelty", ...). Its atoms.n counts the probed sample once the cap's sample is chosen, as a finished record does, and every extracted atom for a stop in extraction (atoms.sampling is then none, and run_config holds the settings of the run but not its tier). A library caller of dokimi.novelty.analyze() checks result.partial before it saves result.artifact. shorten writes no candidate table and no --out file at the cap (a table scored on part of the verdicts would read as a result), but each retention verdict is stored in --cache-dir the moment it is adjudicated: the exit message names how many verdicts are stored (or, without --cache-dir, were adjudicated) and, with --cache-dir, that a rerun with a higher --max-usd and the same --cache-dir replays them at $0; without it, that --cache-dir <dir> would have kept them, or, with DOKIMI_RESPONSE_CACHE set to a writable directory, that the paid calls are in the response cache and a rerun replays them at $0. After a no_price stop (a model with no known price) the call that came back was paid for but its verdict is not stored, and the message says so. Before its first paid call analyze prints the run's expected cost at list prices to stderr.

The estimate payload has expected_calls, the point figure between the two totals (stages, every probe, and 0.37 of the oracle pairs, split by by_role), and expected_usd: those calls priced at list prices by role, null when a model has no price. usd_by_role splits expected_usd into extractor, answerer and judge (panel judges after the first count under judge), and least_sure_role names the role the figure is least sure of with a reason; both are null with expected_usd, and --dry-run prints the role and its share on stderr. One rule at every tier: the role with the largest dollars, a tie going to the first of extractor, answerer, judge. Each priced at its own --dry-run call counts, 15 of the 17 paid runs of 2026-11-28 had their largest dollar error in that role; in the other two, triage runs, every role was off by under $0.01. At standard, study and untiered the role furthest off was always the extractor, mostly through its call count, not its tokens. The token profile is fitted on 10 of those 17 runs: seven skills of 640 to 5,954 tokens, every tier and one untiered run. Priced from their own calls, the other 7 land within 11% per run and 16% per role. Study and untiered runs were measured and share the standard extractor profile, since the extractor does the same work per call at all three. The atom and call constants (TOKENS_PER_ATOM = 33, ESCALATION_SHARE = 0.37) were refitted on the 12 held October runs together with the 17 runs of 2026-11-28; the 13 October runs they were first fitted on are not in the tree, so nothing is held out any more for these two constants. TOKENS_PER_ATOM is the value with the smallest root-mean-square relative error over the 10 uncapped runs (atoms below the tier's cap: n01 to n04, n06, n13, n14, held-01 to held-03; 21 to 47 tokens per atom, median 28.5, which would leave n13 60% high); no single value holds all 10 to 35%: the worst are n13 (+41%) and held-02 (-39%). A run at the cap says only that the artifact has at least that many atoms, so the runs at the cap (and n10 at 118 of 120) bound the fit and are not fitted as exact; the projection reaches the cap on each. ESCALATION_SHARE is the median of the share of oracle pairs the extractor's measured calls show escalated, over the 13 standard, study and untiered runs with an exact atom count (n02 to n04, n06, n09, n10, n13, n14, n16, n17 and held-01 to held-03): 0.27 (n13) to 0.70 (held-03), median 0.372. On the 12 October runs calls landed within 41% (held-02) and atoms within 39%; dollars within 36%, the worst held-02 (-36%). The dollar projections ran high on 2 runs (up to +24%) and low on 10 (down to -36%), so expected_usd is not a ceiling; the triage projection ran lower the larger the artifact was (-2% at 1,153 tokens, -14% at 6,723). The largest artifact measured has 6,723 tokens: above that the dollar figure extrapolates, and the payload says so (usd_extrapolated: true, with a note on stderr). The answerer's artifact term is priced per arm that carries the artifact (every arm but no_artifact), so a three-arm run costs more per answerer call than a two-arm one; a --placebo-text of another length is not read. On the November runs the atom count (TOKENS_PER_ATOM) and the escalation share were the largest source of dollar error at standard and study, +168% on n13, +104% on n14 and +46% on n06 with the earlier constants (23 and 0.5); after the refit the 17 projected dollars are within 60% of the billed figure (worst n13, +57%; n14 +23%, n06 -1%), the atoms within 45% of the measured count and the extractor calls at standard and study within 80% (n13 +74%). The 25 October runs predate the spread cap: their extraction stopped at the cap, and their held-out figures above are for the runs as they were measured. A capped run now asks every extraction batch, and the projection counts one extraction call per batch of 25 spans, as the run asks them, while the probes stay at the cap. The 17 runs of 2026-11-28 have the spread cap and asked every batch: 6 of their 7 triage runs (31 to 151 spans) made exactly one extractor call per batch plus the need graph, 3 to 8 calls, and the seventh (148 spans, 6 batches) made 9 against the projected 7. The October rule, one call per 12 of the 25 capped atoms, counts 3 for each. An explicit flag always beats the tier, and the override is recorded — a --tier triage --max-atoms 90 run is not a stock triage run and does not get to be read as one.

Each tier carries the claims it forfeits, and those strings are written into run_config.tier and appended to the artifact's warnings. They follow the settings the run used and the atoms it extracted, not the tier's name: --no-verify adds the faithfulness forfeit, and --all-atoms or a skill with no more atoms than the cap (which keeps every atom: extraction.sampled is null) drops the cap's one (that added is a rate over the sample of extracted atoms the cap kept, not over every atom). A capped run indexes its spans from every extracted atom, so frac_carrying_nothing is not forfeit. The forfeits do not depend on which atoms the cap kept (--dry-run lists them before it is known). With shortening on, a cap that left atoms out adds that shortening candidates are scored against a spread sample of 60 of the extracted atoms: `knowledge` and `value` are retention of that sample, not of every atom, though the sole carriers a safe candidate keeps come from every atom (60 at standard, 120 at study). --dry-run cannot know the atom count yet, so it lists them:

tier triage forfeits: no paraphrase probe, so a redundant verdict is unprotected against the model matching the artifact's own wording

The cap is a spread sample, not the opening. Extraction reads every span of the input, and when it yields M atoms, more than the cap n, the run probes the atoms at indices floor((i + 0.5) * M / n) for i in 0..n-1 of the extracted list sorted by the earliest span each atom cites (spread_sample in dokimi/novelty/atoms.py): every (M/n)-th atom in document order, starting in the middle of the first stride, so the sample estimates the per-atom rate an uncapped run reports. Like any fixed stride, it can fall in step with a repeated structure: with M = 100 and n = 25 it always takes atoms 2, 6, ..., 98 (from 0), so an input of four-atom sections of the same shape, each with its new fact in the same place, can give a sampled rate far from the whole input's, and re-extracting the same atoms gives the same sample, so it cannot show the gap. For an artifact of repeated, same-shaped sections (a template per item), or a rate that decides something, pass --all-atoms. The sort is needed because the extractor's reply lists a batch's atoms in its own order; it is stable, so atoms citing the same span keep that order, and with M ≤ n nothing is sorted and every atom is probed in extraction order. A stride needs no seed: the same extracted atom list gives the same sample. A fresh extraction is new model calls, so the same text can give other atoms and so another sample; to probe identical atoms across runs or models, extract once with skill novelty atoms and pass its atoms.json to skill novelty probe --atoms (and skill shorten --atoms), which measure the sample it records without sampling again. The input is the text that was segmented: the entry point, plus on a bundle run the files its roles and budgets selected, in that order. The stride runs over the concatenated atom list of those files, so a file's expected share of the probes is its share of the atoms, but a file with few atoms can fall between two sampled indices and get no probe; a higher cap spreads more probes without promising each file one, and --all-atoms probes every extracted atom. A bundled file left out has no atom in it (the coverage: line says how much of the artifact went into the input). The run records atoms.sampling as cap-spread:<n> and extraction.sampled as {"atoms": n, "of": M, "rule": "cap-spread"}; a run whose cap kept every atom (M ≤ n) records full, as an uncapped run does, and null. When every span was read it warns atom extraction read the whole input, and the atom cap probes 25 of the input's 61 atoms, spread over all of it (a stride of 2.44 atoms in document order): rates are estimated from that sample; pass --all-atoms to probe every atom. When some spans were left unread (extraction.unread_span_ids: a failed call, an empty or unparseable reply), M counts only the atoms of the spans that were read, and the warning says so instead: atom extraction could not read 25 of the input's spans, and the atom cap probes 2 of the 25 atoms extracted from the spans that were read, spread over those (a stride of 12.5 atoms in document order; 25 of the input's spans were not read, see extraction.unread_span_ids): .... The novelty.md header says the same, and the headline's coverage: line says the words went into the input and the cap probed 25 of the input's 61 atoms, or of the atoms extracted from the spans that were read (the warning under that line, when half or less of the words went in, says "went into the input" too). skill novelty atoms prints the same warning on stderr and records the same sample in atoms.json; probe and shorten, which read it, do not repeat the warning.

What a capped run probes is the sample; what it indexes and writes is every extracted atom. Faithfulness, the need-graph match, the probes, the conflict check, carrier confirmation and the shortening oracle run on the n sampled atoms, so the bill stays at the cap. The spans' atom_ids, spans (frac_carrying_nothing, sole_carrier, n_atoms_indexed, which is M), the span labels, dead weight, sole carriers and shortening's structure come from all M: a span whose atoms fell outside the sample reads unscored (or protected), not empty. atoms.json holds all M atoms, the ones outside the sample with faithfulness: "unchecked", and sampled_atom_ids lists the sample's ids in probe order (null when the cap kept every atom). skill novelty probe and skill shorten measure only those atoms by default, say so on stderr (NOTE probe measures the 60 atoms atoms.json records as the cap's sample, of its 200), and index spans from all of them; --all-atoms measures every atom in the file, reusing the extraction instead of paying for a new one. Those outside the sample were never checked for faithfulness, so when any of them reads unchecked, --all-atoms prints a WARNING with how many, and that skill novelty atoms --all-atoms (a new, uncapped extraction) verifies every atom it extracts. On a bundle, skill shorten keeps only the entry point's atoms; when none of the sample is among them it would score nothing, so it exits 2 and asks for --all-atoms. skill novelty view colours spans from every atom. An atoms.json with no sampled_atom_ids, written before the record existed, held only the atoms its run probed, and is read as all of them sampled; one whose sampled_atom_ids names an atom the file does not hold, or names one twice, is refused (exit 2). When such an older file's record shows a cap that bound (extraction.sampled set, or cap set with any extraction.reached object, which a document-order cap wrote only when it bound), skill novelty probe, skill shorten and skill novelty view print a WARNING on stderr: the file holds only the atoms its run probed, so spans whose atoms fell outside them read as carrying nothing and a shortening can cut them; re-run skill novelty atoms to index every atom. A document-order cap whose reached is the input's last span (spans equal to of) may still have cut atoms from that last reply, so the warning says the file may hold only the atoms its run probed. A file from before extraction.reached existed (#299), with cap set, no reached key and at least cap atoms, gets the same "may hold" warning, since its document-order cap stopped at exactly cap atoms when it bound and the file cannot say whether it did; one with fewer atoms than cap gets none. A file this version wrote always has the key, so one whose cap kept every atom (sampled_atom_ids: null) gets no warning.

Runs written before the spread rule recorded cap-per-artifact:<n>: extraction walked the spans in document order and stopped at the cap, so their atoms cover the input up to the span it stopped at, and extraction.reached says how far (extraction.sampled is absent). Their novelty.md header and coverage: line still say so, as in the capped atoms come from the first 23% of the input's tokens, or, for a cap met on the input's last span, the capped atoms reach the input's last span, and the cap dropped any atoms past it.

That is the point of naming tiers at all. The cheap run is useful; a cheap run quoted as a sweep is not.

Two further savings are orthogonal to the tier. Atoms are model-independent, so extraction amortizes across models:

python cli.py skill novelty atoms --artifact skill:path/to/skill --extract-model E \
    [--include-resources] --out atoms.json        # once
python cli.py skill novelty probe --artifact skill:path/to/skill --atoms atoms.json --model M1
python cli.py skill novelty probe --artifact skill:path/to/skill --atoms atoms.json --model M2

atoms.json records which files it was extracted from, and probe rebuilds exactly that file set rather than trusting flags: probing bundle-derived atoms against an entry-point-only context would score every atom from a reference file still_missing for the wrong reason. If the artifact's files changed since extraction — edited, removed, or a new text file added — probe refuses instead of mis-scoring (a new image or symlink is not text any mode reads, so it does not). The entry point alone may change (that is the re-measure step); the result's ref_digest and bundle then describe the text that was probed, and atoms_ref_digest the text the atoms came from. Its sampling, {"atoms": n, "of": M, "all_atoms": false}, says probe measured n of the file's M atoms (the recorded sample) or, with all_atoms: true, every one, so a rate over a sample is not quoted as the file's; records written before it have no sampling. Every novelty ref_digest is the bundle's measured_digest (the measured files' paths and text digests); the subject scorecard's subject.ref_digest is a different hash, of every file under the subject path (each file's path and content as separate fixed-width digests; a scorecard written by an earlier release hashed them differently, so its ref_digest differs for the same tree), and the two are not meant to match. shorten rewrites one file, so with a bundle-derived atom set it scores only the entry point's spans and says so.

And the retention oracle runs retrieval → NLI locally, escalating to an LLM only for the ambiguous band, with a disk memo of its verdicts (--cache-dir, keyed on (atom, text); the response cache is DOKIMI_RESPONSE_CACHE, also opt-in). Full sweeps stay opt-in (--all-atoms).

The cache key carries a version (retention-cache-v6). Entries written before failed adjudications were kept out of the cache can hold a failure stored as absent, entries written before a hedged verdict (retained?) counted as no verdict can hold it stored as retained, and entries written before a reply cut at the output ceiling was an error can hold a verdict parsed from a truncated reply, and entries written by a --lexical-only run can hold its ambiguous-band placeholder stored as absent; all of them look like real ones, so none of them is read. The old files stay in --cache-dir and can be deleted. The first run after upgrading therefore pays one adjudication call per pair the old cache held, unless DOKIMI_RESPONSE_CACHE replays it, but the response-cache key carries max_tokens, and novelty calls now send 16384 where they sent none, so those entries miss too.

Entries written under retention-cache-v5 are not read either: that key used to join the statement and the text with a bare NUL byte, so a statement ending in NUL and a text starting with NUL hashed the same bytes and one atom could replay another atom's verdict. The key now hashes the statement's byte length as 8 bytes (big-endian) before the statement, which no statement and text can collide on. The old files stay in --cache-dir and can be deleted, and the first run after upgrading pays the adjudication calls again.

Pass --max-output-tokens when a reply can outgrow the output ceiling. Novelty calls ask for 16384 output tokens unless --max-output-tokens names a ceiling. litellm sends 4096 to Bedrock-hosted Claude when none is given, and on a dense skill a 25-span extraction batch can need more than that: in the run below, replies came back with finish_reason=length at exactly 4096 tokens, cut mid-array. A reply cut at the ceiling (finish_reason length or max_tokens) is an error, not a parse that happens to succeed: its cost is still recorded, and the call fails with "reply cut at the output ceiling". Extraction recovers by splitting a batch that was cut or unparseable (or one whose rows are all unusable) in half and re-asking, down to one span per call, so a truncation costs extra calls rather than atoms: up to 2n−1 calls for an n-span batch that never parses. The artifact's extraction block counts them (calls against batches, the calls the run would make with no splitting; a capped run asks every batch too), and a warning (atom extraction re-asked N unparseable batches as halves) says what they cost; a higher --max-output-tokens avoids the truncated ones, not those with unusable rows. A call that fails or returns an empty reply is not split, since half a batch fails the same way.

Spans that still cannot be read are unread, not text that carries nothing. The warning (atom extraction could not read N of M spans) gives their count and token cost, and separates four causes: spans whose reply never parsed, even alone (raise --max-output-tokens); spans whose call came back empty, which is what a reasoning model returns when it spends the output ceiling before answering (raise --max-output-tokens too); spans whose reply parsed to rows none of which is a usable atom (wrong keys, strings, span ids outside the document; an empty array is a result, not this); and spans lost to a failed call (with its error). The extraction block, in the artifact and in atoms.json, records:

field meaning
unread_span_ids, unread_tokens spans no call read, in document order, and their token cost
unparseable_span_ids the subset whose reply arrived and never parsed, even alone
unusable_span_ids the subset whose reply parsed to rows none of which is a usable atom
retried_batches batches whose reply did not parse, or had no usable atom, and were split and re-asked
calls, batches calls made, splits included, against the calls the run would make with no splitting
last_error the error behind the unread spans (a failed call first); errors a split recovered from are not recorded
sampled on a run whose cap left atoms out, what it probed: atoms, the cap; of, the atoms extracted from every span some call read; rule, cap-spread. null when every atom was probed
reached null on a cap-spread run. On a run before it, how far through the input (the spans segmented, not the files the bundle left out) the cap reached: last_span, the last span any kept atom cites among the spans some call was sent (a batch the cap cut mid-reply was sent whole, but its later spans gave no atom; a cited span no call was sent does not count); spans, the spans up to and including it, of all the input's spans; tokens_share, those spans' share of the input's span tokens. null when the cap did not bind

probe, shorten and view read atoms.json and repeat the warning. Unread spans are left out of frac_carrying_nothing (numerator and denominator) and dead weight, reported as spans.n_unread / spans.tokens_unread, labelled unread in the span views, and kept by every shortening candidate, since a cut could not be scored. Below 80% of the tokens read (min_frac_read in the gate's DEFAULTS), the dead_tokens check is not judged (measured: false): the fraction then describes a remnant of the text. The scorecard's dead tok column marks any unread share, as 0.000 (98% unread). Before this check, a run over 38 skills lost at least one batch in 17 of them, silently, with ~33k of 62.8k tokens never extracted.

Two more warnings come from the oracle and the judged stages. N of M retention adjudications got no usable verdict counts adjudicator calls that failed, did not parse, or parsed without naming a verdict (retention.llm_errors); each is answered absent for that decision and is not cached, on disk or in DOKIMI_RESPONSE_CACHE, so carrier confirmation and shortening scores under-count retention by up to that many decisions. A hedged verdict ("retained?") counts as no verdict. analyze and shorten both print it, and shorten repeats it beside its best candidate (knowledge under-counted: N adjudications got no usable verdict). The value judge and the conflict check split a batch whose reply does not parse, or has no row it can use, the same way as extraction, and say so (content classification re-asked N unparseable batches as halves, or unusable when no row was usable; only the first is cured by --max-output-tokens). A judge row whose needed is not a real boolean is counted as malformed, apart from a statement the judge skipped, unless no row of its reply is usable (then the batch is split and the atoms count as unusable); a conflict row that names no pair of its batch is dropped and counted. Every novelty call passes a test of a usable reply to the response cache, so a reply that fails it is never stored or replayed: extraction, the batched judges and the oracle pass their parse test; the probe grader, the faithfulness check and the need graph also require the field they read (a named verdict, a node), so {"verdict": null} or {"nodes": []} parses and is still asked again; routing requires a pick; and the answerer requires the closing confidence: line it was asked for. An answer the provider reports as cut at the ceiling errors its pair, which is dropped, and replays as the same error from the cache; one cut without a reported reason lacks that line, so it is graded but never stored. An empty answer is a failed probe run (its pair is dropped), not a wrong answer.

Limits to state when quoting these numbers

  • Extractor coverage reproduces; atom granularity does not. Three extractors over the same artifacts cited the same spans (Jaccard 0.87–0.99, each one's blind spot ≤2.4% of union tokens), including one with no exposure to the reference atom set at all, so "which text carries knowledge" is stable and frac_carrying_nothing is not hiding unformalizable knowledge. But the other two produced 17–19% more, ~30% shorter atoms, and at statement level the recovery rate is asymmetric and far from 1 (0.629 one way, 0.851 the other, over 1134 oracle comparisons, and 0.733/0.876 with a third extractor that never saw the reference set). An atom count is extractor-conditional; an added rate is a ratio over whatever inventory the extractor produced and is far more robust. Quote counts with the extractor named.

  • Tag labelling reproduces; the type vocabulary does not. Holding extraction fixed and having two other models re-label the same 2640 atoms under the same glossary, six of nine tags reach κ 0.52–0.73 and the knowledge-type table above re-derives to within 0.08 under every labeller — so the cut-conceptual-prose recommendation is a property of the knowledge, not of one labeller. Three exceptions to respect: rare-critical (κ 0.39–0.45) and temporal (one labeller tagged it at 2.7× the reference rate) are not gate-grade, and the 5-way type vocabulary agrees at only κ 0.32–0.38, with both labellers moving contract and edge atoms into motif. Gate on the protection tags (routing, negative-constraint, version-bound — the top three by κ); report shape slices without gating on them.

  • Judge calibration — and a 0.15 band on added differences. Signs and rankings, not second decimals. Quantified: the two graders' fine-scale κ is 0.576 (the 0.664 figure is raw agreement), and they differ by +7.7pp under strict grading and −11.6pp under lenient — opposite directions, which is the bias shape that survives paired differencing. Measured delta-of-deltas across graders is 0.149, CI [0.106, 0.194], so no added difference below 0.15 may be quoted, and for one model that band covers almost the entire between-artifact spread. Narrowing it needs more dual grading (only 25 probes have both arms dual-graded), not more probes.

  • Retention is not monotone in the text you supply. The matcher retrieves its top chunks before it entails, so a longer text can score lower than a subset of itself: atom recovery from a cited span is 0.833, rises to 0.907 with the heading path, then falls to 0.809 when the whole file is supplied. Compare retention only between texts of similar length — which the shortening candidates are, by construction — and never read a retention figure across a large length gap.

  • The need graph has a 14% noise floor (author/critic path-label agreement was 86%), which propagates into relevance-weighted value.

  • Need frequency is assumed uniform. Nothing here measures how often each need actually arises, so value ranks atoms within one artifact and must not be compared across artifacts. Real query or issue traffic is what closes that, not another judge.

  • Category boundaries are partly judged. In the study, where both axes were judged, an independent reviewer agreed with the five-category assignment on 72% of atoms; the disagreements concentrate on useful-vs-inert (±3 points) and known-vs-novel (±2 points). The scaffolding share is the most robust of them. Here useful-vs-inert is still judged and the ±3 applies; known-vs-novel is measured by the paired probes, so it carries the probe grading's error instead.

  • Per-artifact added is a profile, not a ranking. Paired probes per artifact were 12–29 in the study, and subsampling shows the cross-artifact ranking destabilizing below a 0.75 probe budget (Spearman ρ 0.43–0.63 at 0.10). Correlating added against the measured task delta says the same thing from the other side: across 12 (artifact, model) cells, strict added ranks models inside one artifact at ρ 0.625 with the same sign in all four artifacts, and ranks artifacts inside one model at ρ −0.105 with the three per-model correlations at +1.0, −0.32 and −1.0. Re-run at the planned artifact count — 13 artifacts ranked inside one model, 24 cells — the artifact ranking gets worse, not better: ρ −0.446, signs still disagreeing across models (+0.60 / −0.30 / −0.45), and in that group the two validity checks flip as well, because comparing artifacts varies task difficulty along with the artifact. So the cross-artifact ranking is refuted, not just unproven. Compare an artifact to itself over time, use added to choose the tier an artifact is for, and keep any added gate soft. Two validity checks come with it: K0 and degraded both predict the delta negatively in every group, as designed. All of it under strict grading — lenient added correlates at 0.126 pooled and 0.000 within-artifact, so partial credit does not survive to task outcomes.

  • A topic-level verdict is a distribution, never a label. No whole artifact in the study had unanimous atom outcomes under strict grading, on any model; at heading level unanimity was 0.39–0.44 and roughly one atom in four disagreed with its own section's majority. "This section is redundant" is not a statement this instrument can make.

  • Loading a correct artifact raises resistance to a reversed premise. An earlier reading of the study (45 probes worse, 14 better) had the sign inverted by its analysis script; recomputed on the planted-inversion probes, paired by probe and model, 49 got worse and 367 better (§10.2). reversal_paired reports the binary version of this pairing (31 worse, 96 better in the evidence page). Correctness of content still gates before volume: for a false premise inside the artifact, a planted wrong value is stated 0.942 of the time when plausible, 0.846 when absurd, and flagged 3% of the time. degraded is the visible tip of that; the channel underneath it transmits at 85–94%.

  • A cell can stop being re-measurable. Two of the models behind most of these numbers no longer resolve, and one that does no longer accepts temperature=0. A novelty figure is quotable only with the served model named and the date attached; a cell whose model is gone is a dead cell, not a cell to re-point at a successor model.

See also