Repository navigation
feat(catalog): flag eval sets that name their skill; report routing boundaries - #1562
vchamarthi wants to merge 9 commits into
Conversation
…trigger queries, and report routing boundaries catalog check warns evals-name-skill when most prompts in a skill's evals/evals.json name the skill; eval triggers derive writes the prompts with the name and lead-in stripped (free). catalog routing gains a boundaries list per arm: skill pairs that take a large share of each other's queries, with the terms both descriptions share. Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
CLI interface change detectedThis PR changes dokimi's user-facing CLI surface (commands and/or options): + added command `dokimi eval triggers derive`
+ argument `evals`
+ option `--format`
+ option `--help/-h`
+ option `--out`Updated on every push; the |
There was a problem hiding this comment.
🟡 Changes recommended
Active defects cause incorrect boundary detection and misleading query counts, while prompt stripping silently drops evaluations and produces malformed requests.
5 open issues
Remove invocation connectors when stripping skill names · New Report discarded empty prompts and include them in the stripping count · New Apply minimum support to query-level crossings, not repeated calls · New Round only the reported crossing rate, not the threshold comparison · New Label model confusion counts as calls, not distinct queries · New
What changed in this PR
6 findings. This PR extends Dokimi’s skill evaluation tools to detect name-revealing prompts and identify overlapping routing descriptions.
Changes:
- Adds the
evals-name-skillcatalog warning. - Adds free derivation of implicit trigger queries.
- Reports routing boundaries with shared terms and suggested remedies.
| File | Description |
|---|---|
dokimi/tests/test_novelty_routing_boundaries.py |
Tests boundary detection and reporting. |
dokimi/tests/test_eval_naming.py |
Tests naming detection and query derivation. |
dokimi/tests/fixtures/finding_codes/evals-name-skill/SKILL.md |
Adds warning fixture skill. |
dokimi/tests/fixtures/finding_codes/evals-name-skill/evals/evals.json |
Supplies explicit-invocation fixture. |
dokimi/dokimi/novelty/boundaries.py |
Detects and formats routing boundaries. |
dokimi/dokimi/novelty/all_vs_all.py |
Adds boundaries to routing results. |
dokimi/dokimi/external/validate.py |
Integrates naming warning into validation. |
dokimi/dokimi/external/eval_naming.py |
Reads evals and strips skill mentions. |
dokimi/dokimi/commands/novelty_routing_report.py |
Prints boundary recommendations. |
dokimi/dokimi/commands/eval_triggers_derive.py |
Implements derivation command. |
dokimi/dokimi/commands/catalog.py |
Registers derivation command. |
dokimi/dokimi/cli_routes.py |
Classifies derivation as free. |
dokimi/docs/skill-novelty.md |
Documents routing boundaries. |
dokimi/docs/reference/cli-interface.json |
Records new CLI interface. |
dokimi/docs/finding-codes.md |
Documents naming warning. |
dokimi/docs/evaluating-treatments.md |
Explains trigger-query derivation. |
dokimi/changelog.d/20261202_130000_eval-naming-and-routing-boundaries.md |
Announces both features. |
Review effort: Balanced
|
OpenCodeReview: Commit ac58815 was not reviewed. This PR has reached its review limit (6 reviews). CI at `ac58815`: 5 still running, 16 passing, 3 skipped
To review this commit: re-request review from exai-bot in the Reviewers list. Last review (cff2df8): 2 mediumOpen threads from the bot: 0 |
Mutation of changed linesAt ac58815: 78 caught · 2 missed Each row is a small deliberate break (a mutant) of a line this PR changes that every test reaching that line still passes. Add a test that fails on it or, if it cannot change behaviour, put
Not checked:
Warning only: a missed break does not fail the job. Updated on every push; the full report is in the ci run summary. |
napetrov
left a comment
There was a problem hiding this comment.
Change class: CONTRACT (head d74891c)
- Contract: changed. errors dokimi/dokimi/commands/eval_triggers_derive.py:31; errors dokimi/dokimi/commands/eval_triggers_derive.py:32
- Responsibility: candidate (count signal only, no file:line)
- Dependency: none
- Review depth: check the changed surface: callers, docs, tests pin new behaviour
- Coverage gaps: none
0 new must-fix findings. The earlier items below remain open. The CLI and routing tests pass. Existing threads cover destructive prompt rewrites and using calls as query counts in the boundaries.
Checked the diff, input edges, and focused offline Linux tests (head: 139 passed, 1 skipped in 9.64s). The hosted Python 3.14 check was red. Its log was unavailable at review time, and the focused Linux tests pass.
- Still open. Some explicit invocations produce malformed requests. Earlier thread
- Still open. A repeated call can count as a second query. Earlier thread
vlad-perevezentsev
left a comment
There was a problem hiding this comment.
🟡 Changes needed · reviewed d74891c
To fix: a skill named after a common word (pdf, xlsx) gets a false warning and damaged queries, and the acceptable advice never clears a boundary (line comments); the smaller gaps there are optional. Also answer the @Copilot and @exai-bot threads below.
make ci-local --offline: 34,144 passed, 1 failed (eval score ragas fault test, fails on the base too) · ✅ changed lines 96% covered · ✅ repeat of changed tests, 20 seeds
The eval-naming check and the boundary table fill a real gap and stay free of model calls.
Agreed with @Copilot: broken text after stripping (one more case in its thread); empty prompts dropped silently; repeats counted as queries, and "queries" printed for calls; and 1 more.
Agreed with @exai-bot: backticks around $skill; repeats counted as queries; the threshold checked on a rounded rate.
Fixes the review points on eval naming and routing boundaries: - strip the connector after an invocation, quotes around it, and only `skill`/`skills` as a whole word - a single-word skill name counts only with a sigil or `skill` after it - report prompts left empty after stripping instead of dropping them - skip a symlinked or oversized evals.json and hidden skills - boundaries need two distinct crossed queries, compare the rate unrounded, ignore acceptable picks, and say calls for repeats Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
The import-architecture test refuses imports of dokimi.utils; main moved InputError to dokimi.files. Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
|
@vlad-perevezentsev, this is ready for another look: 3 commits on Threads:
What I checked on the new commit: all 8 new tests fail before the fix and pass after it; the full test suite passes with main merged in (35,968 tests), apart from 1 failure main has too. |
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1562 +/- ##
==========================================
- Coverage 96.47% 96.44% -0.04%
==========================================
Files 558 578 +20
Lines 73923 76078 +2155
Branches 12769 13104 +335
==========================================
+ Hits 71314 73370 +2056
- Misses 1593 1653 +60
- Partials 1016 1055 +39
🚀 New features to boost your workflow:
|
strip_skill_name('Use $x!') left '!' and derive wrote it as a query
without the dropped-prompt warning; it now returns empty text.
eval_naming_findings followed a symlinked evals/ directory outside the
skill; it now gives no finding for it.
Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
|
This is ready for another look: I've pushed 1 commit on Threads:
What I checked on the new commit: all 2 new tests fail before the fix and pass after it; the full test suite passes with main merged in (36,060 tests), apart from 1 failure main has too. What each test shows
|
vlad-perevezentsev
left a comment
There was a problem hiding this comment.
🟡 Changes needed · re-checked e919587
To fix: a skill name of several words that is also a plain phrase (brand-guidelines) is still cut out of the task (reply in its thread).
✅ GitHub CI on e919587: 22 jobs pass · ✅ pdf, xlsx prompts left alone · ✅ two acceptable picks: no boundary · ✅ Use $x! reported as dropped
The earlier points are fixed with tests, and the boundary now counts distinct queries.
…name A bare 'brand guidelines' no longer counts as naming brand-guidelines, so evals-name-skill and eval triggers derive leave it in the task. The hyphen and underscore spellings still count bare; a sigil or 'skill' counts any spelling. Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
|
@vlad-perevezentsev, this is ready for another look: 1 commit on Changes:
PR description updated:
Your comment:
Threads:
What I checked on the new commit: all 2 new tests fail before the fix and pass after it; the full test suite passes with main merged in (36,664 tests), apart from 1 failure main has too. What each test shows
|
napetrov
left a comment
There was a problem hiding this comment.
Change class: CONTRACT (head 6bc41f6)
- Contract: changed. errors dokimi/dokimi/commands/eval_triggers_derive.py:33; errors dokimi/dokimi/commands/eval_triggers_derive.py:34
- Responsibility: candidate (count signal only, no file:line)
- Dependency: none
- Review depth: check the changed surface: callers, docs, tests pin new behaviour
- Coverage gaps: none
No new blocking findings on 6bc41f62.
Reviewed the diff, edge cases and prior threads. Focused tests: 46 passed on head. Routing and derivation tests used local fixtures. The full local suite was outside coverage.
antonwolfy
left a comment
There was a problem hiding this comment.
The detection, the boundary maths and the earlier review fixes hold up. One thing is worth fixing before merge: eval triggers derive still writes broken requests for some invocation forms, with still_named: 0 (inline).
What I ran, on a Linux review host at 6bc41f6:
tests/test_eval_naming.pyandtests/test_novelty_routing_boundaries.py: 46 passed.- Tests for finding codes, CLI interface and routes, growth ratchet, catalog and all-vs-all: 3100 passed, 6 failed (
test_catalog_unrestricted_bash.py, onetest_arm_specs.pycase). The same files fail on the PR's base, so they are not this PR's. make ci-localdid not finish, so I have no full-suite or changed-line coverage number.- Reproductions for the finding, with no model called.
Checked, no issues
- Boundaries: the threshold is compared unrounded, repeats of one query count once, and an
acceptablepick is no crossing; the code matches the changelog andskill-novelty.md. - Catalog check:
evals-name-skillskips hidden skills, symlinked files andevalsdirectories, and files over the size cap. - Docs and CLI:
cli-interface.json,cli_routes.py(FREE) andfinding-codes.mdmatch the new command; every commit hasSigned-off-by.
strip_skill_name now returns a prompt unchanged, so derive counts it in still_named, when the invocation is negated (Do not use $x, without using $x) or leaves an object with no verb (First, run $x on the log). It also collapses the doubled period left by a trailing invocation and drops the 'then' after 'and' in 'Use $x and then fix it'. Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com> The doubled stop is collapsed only where an invocation was removed, so `..` in `cd ..`, `../src` and `git log main..` is untouched.
|
@antonwolfy, this is ready for another look: 1 commit on Changes:
Your comment:
Threads:
What I checked on the new commit: all 4 new tests fail before the fix and pass after it; the full test suite passes with main merged in (37,067 tests), apart from 1 failure main has too. What each test shows
|
napetrov
left a comment
There was a problem hiding this comment.
Change class: CONTRACT (head 2be0355)
- Contract: changed. errors dokimi/dokimi/commands/eval_triggers_derive.py:33; errors dokimi/dokimi/commands/eval_triggers_derive.py:34
- Responsibility: candidate (count signal only, no file:line)
- Dependency: none
- Review depth: check the changed surface: callers, docs, tests pin new behaviour
- Coverage gaps: none
1 blocking, 0 minor.
catalog check detects explicit skill naming in evals, eval triggers derive removes invocations, and routing reports flag repeated crossings. The stripper currently treats path components as slash commands.
The clean merge with #1654 trips that PR’s encoding check at the new trigger-query JSON writer. See #1654 for the combined finding.
CI on head 2be0355: 0 failing Actions jobs; merge base 69264e1 is behind base tip 5225c2a.
Compared the change and input edges against the merge base and checked existing threads and GitHub Actions. Runtime checks used focused Linux tests and local fixtures. Focused tests on the head: extra 10 passed in 0.59s, head 45 passed in 1.46s.
A sigil ($, / or @) now has to start a token, so https://example.org/pdf, docs/pdf and src/my-skill/run.py are no longer reported as naming the skill or stripped by eval triggers derive. Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
|
@napetrov, this is ready for another look: 1 commit on Changes:
Your comment:
Threads:
What I checked on the new commit: the new test fails before the fix and passes after it; the full test suite passes with main merged in (37,304 tests), apart from 1 failure main has too. What each test shows
|
napetrov
left a comment
There was a problem hiding this comment.
Change class: CONTRACT (head cff2df8)
- Contract: changed. errors dokimi/dokimi/commands/eval_triggers_derive.py:33; errors dokimi/dokimi/commands/eval_triggers_derive.py:34
- Responsibility: candidate (count signal only, no file:line)
- Dependency: none
- Review depth: check the changed surface: callers, docs, tests pin new behaviour
- Coverage gaps: none
The path-stripping blocker remains.
The previous path-stripping thread is partly fixed. A plain URL and docs/pdf now survive, and /pdf still works as an invocation. The name + skill branch still strips the basename from Open https://example.org/pdf skill documentation. and from a quoted relative path followed by “skill”. Apply the path boundary to that branch too. C3 remains open. The clean merge with #1654 still fails the UTF-8 writer check in eval triggers derive.
CI on head cff2df8: 0 failing Actions jobs; merge base 69264e1 is behind base tip 60948d0.
Rechecked the inference and routing tests (62 passed), compared the previous and current heads on paths and slash commands, and ran the encoding checker on the combined tree with #1654.
`Open https://example.org/pdf skill documentation.` lost `pdf` because the name-plus-`skill` form ignored the path boundary the sigil form already applies. Apply the same boundary there. Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
|
@napetrov, this is ready for another look: 1 commit on Changes:
Your comment:
What I checked on the new commit: the new test fails before the fix and passes after it; the full test suite passes with main merged in (37,411 tests), apart from 1 failure main has too. What each test shows
|

Why
Measured with Dokimi on Claude Haiku:
catalog checksaid nothing.What changes
catalog checkgains the warningevals-name-skill. It fires when more than half the prompts in a skill'sevals/evals.jsonname the skill: whole word; a name counts bare only in its hyphen or underscore spelling, and any spelling counts with a$///@sigil or a followingskill. The message gives the count. It is listed inFINDING_CODESanddocs/finding-codes.md, with a fixture skill.eval triggers derive EVALS... --out PATH [--format reach|questions]is new and free, with no model call. It strips the name and its lead-in ("Use $x to", "Using the x skill,", "… with x") and writes a skill-reach QuerySet, or a questions set labelled with the skill. It reports how many prompts were stripped and how many still name the skill, for hand edits.catalog routingreportsboundaries: pairs where one skill took at least 25% of the other's queries, with at least 2 crossing. It shows picks and rates each way and the content words both descriptions share. The console suggests a fix: a boundary sentence in one description, oracceptablealternatives for the shared queries. Tied groups are excluded.Evidence
evals-name-skill(33 of 33)eval triggers deriveboundarywith shared words and a fixHow to test
Full offline CI: 34,133 passed, 1 failed (
test_repo_compare_interval::…, which fails the same way on unchanged main).Mutation: the CI run listed 12 missed mutants. Tests now cover 9 of them: duplicate ids across
--evals, thestill_namedcount and warning,source_textkept only for stripped prompts, the summary indent, a badevalsvalue,skill_nameread from the file, blank prompts skipped, boundaries on the model arm, and the cap of five printed boundaries. The other 3 could not change behaviour, so the code was simplified to remove them: the variant sort key (all spellings are the same length),count=1on a^-anchored sub, andnot total or(0 <= 0 already covers an empty set).References
catalog check,catalog routing. Acceptable alternatives per query: intel/dokimi#915