Skip to content

docs: measured findings on invocation, verifiers and path stability - #1398

Merged
napetrov merged 11 commits into
intel:mainfrom
napetrov:docs/skill-eval-findings
Dec 2, 2026
Merged

napetrov merged 11 commits into
intel:mainfrom
napetrov:docs/skill-eval-findings

Conversation

@napetrov

@napetrov napetrov commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds the measured findings from the skill-evaluation experiments to the two guides that cover them, so a reader who evaluates a skill or a gate knows what to measure first:

  • A skill's effect runs through invocation. Report P(invoke) and split done-right by invoked / not invoked.
  • Where the pointer lives matters, and so does the description's wording.
  • A Stop-hook gate does not depend on invocation, but check that it fired before crediting it.
  • The harness result is not a verdict: use a verifier.
  • Path stability at n = 6 is noisy, and the paraphrase effect did not replicate on real tasks.

Docs only. No code, no changelog fragment.

Changes

  • docs/evaluating-treatments.md: new section "Measure invocation before the effect", after "How to measure tool choice".
  • docs/run-consistency.md: a paragraph under "Where the outcome comes from" (verifier vs harness result), and a paragraph at the end of "Designing the experiment" (small-sample path distances, Wilson intervals).

Evidence

Every number was checked against the experiment report (sections B, C, D) by a fresh-context review pass. Statistics as reported there: permutation tests (toy), Fisher exact (real tasks), bootstrap per cell.

Claim Figure Scope
Invoked runs done right 11/11 invoked, 0/25 not invoked toy, skill-selection series, haiku-4-5
Real-task split 5/9 vs 0/9, Fisher p = 0.029 two real tasks, prose skill arm
CLAUDE.md pointer invocation 2/12 to 12/12, p = 0.0001 toy
README pointer no effect; README opened in at most 1/12 runs toy, nearly empty test
Trigger-heavy description invocation 2/12 to 7/12, p = 0.087; done right p = 0.096 toy, directional
Hook vs script-only skill 5/6 vs 0/6, permutation p = 0.015 toy, repeat series
Hook vs no guidance 5/12 vs 0/12, p = 0.037 real, rename task
Hook vs prose skill 5/12 vs 2/12, p = 0.37 real, rename task, not significant
Harness result vs verdict success in 96/96 runs; 40/96 done right toy
Procedure failures claimed as passed 25/33 real tasks
Paraphrase, path spread order distance 0.18 to 0.40 to 0.53 to 0.62, p = 0.0002 toy; real tasks −0.04, p = 0.18 (no replication)

Caveats are in the text: haiku-4-5 on one toy task and two real tasks, 6 runs per toy cell, at most 12 per real cell, not corrected for multiple comparisons, directional. The first degrade hook used a cwd-relative path and failed silently in 4 of 6 runs. The fixed-path rerun gave 5/6 done right against 0/7 with no guidance (p = 0.005) and 3/6 with the prose skill (p = 0.55). Pooling that rerun with rename gives 10/18 against 0/19 with no guidance (p < 0.001) and 5/18 with prose (p = 0.18).

Checks reported before the review fixes: strict mkdocs build; tests/test_docs_links.py and tests/test_docs_review_triggers.py (54 passed); mypy clean; full pytest 31,061 passed, 28 skipped, 3 failed (see Merge danger); ruff in the CI scope (dokimi/) clean via the pre-push ci-local static job.

The review round also ran the focused documentation and Stop-hook checks on the synced branch (58 passed).

Merge danger

Nothing in this PR changes behaviour. Two things a reviewer should know:

  • The full pytest run had 3 failures under -n auto: test_process.py::test_sighup_kills_the_live_groups_too, test_docker_cmd.py::test_interrupt_while_stdout_waits_for_a_reader_kills_nothing, test_repo_host.py::test_ctrl_c_in_a_threaded_batch_kills_each_container_a_worker_started. All three pass when run serially on this branch and on the merge base. These signal and process-group failures did not reproduce serially. Their cause under parallel execution is unconfirmed.
  • ruff check . at the repo root reports 21 findings (scripts under .agent-eval/), identical on the merge base. CI runs ruff from dokimi/, where it is clean.

Revert

Revert the commit. No stored records, schema versions or generated artifacts are involved.


🤖 Generated with Claude Code

Add what the skill-evaluation experiments measured to the two guides:
- evaluating-treatments: report invocation and split done-right by
  invoked / not invoked; pointer placement (CLAUDE.md vs README);
  trigger-heavy descriptions; Stop-hook gates, and checking the hook
  fired before crediting it.
- run-consistency: the harness result is not a verdict (use a verifier
  for --outcomes); path distances at n = 6 are noisy and the paraphrase
  effect did not replicate on real tasks.

Numbers are haiku-4-5 on one toy task and two real tasks, directional.

Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
@napetrov
napetrov requested a review from a team as a code owner November 29, 2026 04:48
@exai-bot

exai-bot commented Nov 29, 2026 •

Copy link
Copy Markdown

✅ OpenCodeReview: Review complete: 0 finding(s) across 2 selected item(s).

CI at 6fae62d: 17 passing, 4 skipped.

Review limit reached. This PR has had 6 reviews, so it will only be reviewed again when you ask.
To ask: re-request review from exai-bot in the Reviewers list.

Review details
  • Commit reviewed: 6fae62d against merge base 57a3155
  • Coverage: 2 files in 1 groups
  • Engine: OpenCodeReview v1.13.5-exai.4.8f73eada, us.openai.gpt-6.1-sol
  • Usage: 104k tokens (62k from cache), 35s
  • Tool calls: 11 (7 file_read, 2 code_search, 1 local_check_results, 1 pr_threads)
  • small change set: 2 files

Comment thread dokimi/docs/run-consistency.md Resolved
Thread: PRRT_kwDOVBg7g869LCA1
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
@codecov-commenter

codecov-commenter commented Nov 29, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.33%. Comparing base (3ab27d8) to head (6fae62d).
⚠️ Report is 10 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1398      +/-   ##
==========================================
- Coverage   96.34%   96.33%   -0.01%     
==========================================
  Files         517      519       +2     
  Lines       69116    69426     +310     
  Branches    11971    12037      +66     
==========================================
+ Hits        66587    66882     +295     
- Misses       1557     1567      +10     
- Partials      972      977       +5     

see 8 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…esults

The degrade-task hook arm is now valid: hook 5/6 vs none 0/7 (p = 0.005),
vs prose 3/6 (p = 0.55). Pooled over both real tasks, hook 10/18 vs none
0/19 (p < 0.001) and vs prose 5/18 (p = 0.18). The hook beats no guidance
on both tasks; a hook vs prose skill difference is not shown.

Replaces the untested-arm note with the detection point: dokimi reads
stop-hook errors (intel#1405), and a relative hook path fails silently.

Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Comment thread dokimi/docs/evaluating-treatments.md Resolved
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g869Li0E
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
@xaleryb

xaleryb commented Dec 1, 2026

Copy link
Copy Markdown
Contributor
  • Ran on head f4cdcfc merged with main e1f7740: docs check --strict (rc 0), the docs link and review-trigger tests (54 passed), the full suite (failures limited to two known host-only files, which also fail on main). Every Fisher and Wilson figure was recomputed from the counts in the text.
  • Stale after fix(consistency): a Stop hook that could not run is a failed step #1405: evaluating-treatments.md, "Before you credit a gate", still sends readers to the raw transcript for standalone stop-hook-error notifications. Input: a trace with Edit, then a lone stop-hook-error notification, then a success result -> trace consistency on head+main prints Edit -> Hook:Stop-error -> expected: the doc describes that step. Suggested text after merging main: "trace consistency records a blocked stop as a failed Hook:Stop step, and a hook that could not run or failed without blocking (a lone stop-hook-error notification) as a failed Hook:Stop-error step (run-consistency.md)."
  • No commits from us. Left for the author: merge main and apply the rewording.

@vchamarthi vchamarthi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@napetrov, could you fix the 3 small things I've marked fix before merge (in the line comments) and answer my question below? I'll approve once that's done.
I'll approve once that's done.

My question before I approve:

  • Which runs gave 5 of 6 against 0 of 7 on the degrade task: a rerun with the hook path fixed, or the first run where the hook failed silently in 4 of 6 runs. State in the doc which runs those were and that the hook path was fixed for them, and update the PR description to match; or drop the degrade and pooled figures from that paragraph.

What I checked on f4cdcfc: the full test suite passes with main merged in (32,123 tests), apart from failures main has too; it merges cleanly onto main.

Comment thread dokimi/docs/evaluating-treatments.md Resolved
Comment thread dokimi/docs/evaluating-treatments.md Resolved
Comment thread dokimi/docs/evaluating-treatments.md Resolved
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g86-G2OF
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g86-G2Oe
Thread: IC_kwDOVBg7g88AAAABs3UqIA
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g86-G2O1
Thread: PRR_kwDOVBg7g88AAAABbZXZrw
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Copilot AI balanced review requested due to automatic review settings December 1, 2026 16:25
@napetrov

napetrov commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Re: review by vchamarthi

Which runs gave 5 of 6 against 0 of 7 on the degrade task?
The fixed-path rerun supplied those counts and the degrade portion of the pooled totals, as recorded in 77b7c68. The guide and PR description now identify that rerun.

@napetrov

napetrov commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Re: comment by xaleryb

Stale after #1405
With main merged, the guide now identifies a lone notification as a failed Hook:Stop-error step. The blocked-stop case remains Hook:Stop.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

2 open issues
What changed in this PR

Adds measured findings from skill/gate evaluation experiments to the two relevant docs so readers know what to measure (invocation, verifiers vs harness results, and small-sample path stability) before interpreting treatment effects.

Changes:

  • Add guidance to measure skill invocation and split outcomes by invoked/not-invoked, plus notes on pointer placement and gate firing verification.
  • Clarify that harness “success” is not a verdict; recommend verifier-based outcomes.
  • Add guidance on small-sample noise in path distances and reporting intervals for small n.
File Description
dokimi/​docs/​run-consistency.md Adds verifier-vs-harness guidance and small-sample considerations for path-distance stats.
dokimi/​docs/​evaluating-treatments.md Adds a new section centered on measuring invocation and interpreting skill/gate treatment effects.

Review effort: Lite

Comment on lines +739 to +743
of 12 runs, against 0 of 12 with no guidance (p = 0.037). In the degrade rerun with the hook path fixed, it was
5 of 6 against 0 of 7 (p = 0.005). Pooling the rename runs with that rerun gives 10 of 18 against 0 of 19
(p < 0.001). Against the prose skill the hook was not clearly better: rename 5 of 12
against 2 of 12 (p = 0.37), degrade 5 of 6 against 3 of 6 (p = 0.55), pooled 10 of 18
against 5 of 18 (p = 0.18). So the hook beats no guidance on both real tasks, and a

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current PR description identifies both runs. The initial hook failed silently in four of six runs. The fixed-path rerun supplied 5/6 versus 0/7 and contributed those counts to the pooled 10/18 versus 0/19.

Comment thread dokimi/docs/run-consistency.md Resolved
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
PRRT_kwDOVBg7g86-K44r

Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>

@vchamarthi vchamarthi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving 6fae62d.
What I checked: the full test suite passes with main merged in (33,390 tests), apart from failures main has too; it merges cleanly onto main.
The 3 earlier problems I raised are fixed now (link, link, link).

@napetrov
napetrov merged commit 1aa90c3 into intel:main Dec 2, 2026
31 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants