Skip to content

fix(dometrain): route plain topic questions to grounding - #12878

Merged
kyle-sexton merged 5 commits into
mainfrom
test/12142-dometrain-grounding-gaps
Nov 3, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
test/12142-dometrain-grounding-gaps

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #12142

Summary

The grounding description now says a plain how-to or design question on a covered topic qualifies without naming Dometrain (finding 1). Finding 2 keeps main's text: its control could not show the cases detect a loss, so #12142 stays open for it.

Fix

  • plugins/dometrain/skills/grounding/SKILL.md: one description line gains the plain-question cue. The body is unchanged.
  • History on the branch: committed, reverted when preregistration v1's pooled Sonnet 4-case compare read "not shown non-inferior" (+0.19, 95% interval -0.18 to +0.55), then restored on preregistration v2. Per case, v1's deltas were +0.75 on the target and 0 on the three others, so no change that met its own target could pass the pooled bar. The issue's decision record sets the no-loss bar on the other grounding cases, and v2 bars each non-target case per case on fresh runs, written before those runs.

Verification

Sonnet 5.5 and Opus 5.5, 10 runs per version per case, judge Opus. Every counted result reads VALID under run-validity.

  • Target: gr-covered-topic routes-grounding on Sonnet 0/10 before and 10/10 after, in both v1 and v2; Opus 10/10 before and after.
  • No loss (v2, Sonnet): gr-deep-link-demand 0.975 to 0.975, gr-off-catalog 1.00 to 1.00 (no-grounding 10/10), gr-export-injection 1.00 to 1.00, no case drop. The first v2 desc injection leg was INVALID (one denied Read of the plugin copy's own path) and was rerun as a fresh pair, per a dated addendum written before the rerun.
  • No loss (v1, Opus): 4-case compare -0.01 (-0.02 to +0.00), non-inferior.
  • Trigger probes (19, competitor plugins loaded): non-inferior on Sonnet (+0.06, -0.01 to +0.14) and Opus (+0.11, +0.01 to +0.20), no case drop, no split worse by more than 0.05. The generic-description control dropped 3 cases, so the probes detect a loss.
  • Finding 2 (not shipped): names-injection on Opus 8/10 to 9/10 and both compares non-inferior, but the frontmatter-only control fell 0.122 (0.148 with the own-copy-denial case kept), short of the preregistered 0.15.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 5 commits November 3, 2026 09:23
The grounding description now says a plain how-to or design question on
a listed topic qualifies without naming Dometrain. Measured on
gr-covered-topic, 10 runs per version: Sonnet 5.5 fired 0/10 before and
10/10 after; Opus 5.5 fired 10/10 before and after.

Refs: #12142

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VQb9Q1Asjw331T5WUQHJyF
The preregistered no-loss bar for the description cue requires the
4-case compare to read non-inferior at margin 0.05 on each model. On
Sonnet 5.5 it reads "not shown non-inferior": paired change +0.19,
95% interval -0.18 to +0.55 (s-desc-cases.merged.json.compare.txt).
The interval is wide because one case gained (gr-covered-topic 0.25 to
1.00) and three held; no case fell. The preregistration binds: a missed
bar keeps main's text.

The other bars were met, 10 runs per version per case:
- gr-covered-topic routes-grounding: Sonnet 0/10 before, 10/10 after;
  Opus 10/10 before and after (paired rerun o2).
- Opus 4-case compare: -0.01, interval -0.02 to +0.00, non-inferior.
- gr-off-catalog no-grounding 10/10 on both models, before and after.
- 19 probes: Sonnet +0.06 (interval -0.01 to +0.14), Opus +0.11
  (+0.01 to +0.20), both non-inferior with no case drop; every split's
  positive fire rate rose or held and negative false-fire rate fell or
  held.
- Generic-description control on Sonnet probes: -0.11 with three case
  drops, so the probe suite can detect a loss.

This reverts commit 962ea63 and its changeset fragment.

Refs: #12142

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…asurement

Preregistration v2 replaced v1's pooled Sonnet 4-case compare, which the
target's own gain (+0.75, three other cases 0) could never pass, with a
per-case bar written before fresh runs. Sonnet 5.5, 10 runs per version
per case, every counted leg VALID:
- gr-covered-topic routes-grounding 0/10 before, 10/10 after (score
  0.25 to 1.00);
- gr-deep-link-demand 0.975 to 0.975, gr-off-catalog 1.00 to 1.00
  (no-grounding 10/10), gr-export-injection 1.00 to 1.00 (fresh pair
  after the first desc leg was INVALID on one own-copy read);
- no case drop.
Kept from v1: Opus routing 10/10 and 4-case compare non-inferior
(-0.01, -0.02 to +0.00); 19 probes non-inferior on both models (Sonnet
+0.06, Opus +0.11), no split regressed; the generic-description control
dropped 3 cases.

Refs: #12142

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 3, 2026 17:13
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T17:14:34.435897Z 093a4e8 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 093a4e8007f3cb6ea53983e8b77d5c2d6e0a0266: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #12878

I found no security issues in this pull request.

I read the whole change in both changed files:

  • plugins/dometrain/skills/grounding/SKILL.md: the only change is the frontmatter description string. It adds one sentence, "Plain how-to or design questions on these topics qualify without naming Dometrain." argument-hint, user-invocable and disable-model-invocation are unchanged, and so is the skill body. The skill could already be invoked by the model for these topics. The new sentence only makes it trigger more often on questions about topics it already covered. It adds no tools, grants no permissions and reaches no new MCP server, and it lets no new untrusted input into a credentialed context.
  • .changes/dometrain/test-12142-dometrain-grounding-gaps-40362f1a.md: a new changelog fragment (bump: patch) that is prose only.

Instruction-surface lens: the diff deletes, narrows or softens no standing instruction. It only widens when the skill should fire. No trust control, merge hold, token scope, kill switch or plugin manifest (plugin.json / marketplace.json) is touched, so there are no manifest lines to report. No changed file matches a trusted-path glob.

The PR context contains no embedded instructions aimed at this lane.

Spend: because the skill now fires on more plain topic questions, it may make more Dometrain MCP calls in user sessions. That is subscription or prepaid usage only, so it is not a finding and not a hold.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed 093a4e8007f3cb6ea53983e8b77d5c2d6e0a0266: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

I read the full diff for both changed files: plugins/dometrain/skills/grounding/SKILL.md and the new changelog fragment .changes/dometrain/test-12142-dometrain-grounding-gaps-40362f1a.md.

What changed. One sentence is added to the end of the grounding skill's description: "Plain how-to or design questions on these topics qualify without naming Dometrain." Nothing in the skill body changes.

Checks

  • Body consistency: nothing in the body requires the user to name Dometrain before the skill applies. The only exclusion in the body is "Skip it for topics clearly outside the catalog" (SKILL.md#L44), and the new cue covers only the topics already in the catalog, so the two agree.
  • Changelog fragment: it sits in the plugin's .changes/dometrain/ folder like the other fragments. Its bump: patch matches a description-only wording change, and its text describes the change correctly.
  • Path-scoped rules: skill-bodies-state-current-rules.md and cost-claims.md both apply to this path. The new sentence breaks neither: it restates no volatile upstream detail and makes no cost claim.
  • Plugin manifests: no plugin.json or marketplace.json is changed, so the manifest checks don't apply.
  • Closing issue: the PR only references dometrain: grounding misses a plain JWT question on Sonnet; export-injection replies skip the planted note #12142 ("Refs") and closes no issue, so there are no acceptance criteria to check.
  • Prior findings: this lane has no earlier findings on this PR (round 0 of a cap of 3), so the cap doesn't apply.

Verification. The before/after eval results in the PR description (routing went from 0/10 to 10/10 on Sonnet, with no loss on the other cases) are the author's claims. I had no way to run evals here, so I have not checked them.

Spend: none. This is a text change to a skill description.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit 346ca14 Nov 3, 2026
68 of 81 checks passed
@kyle-sexton
kyle-sexton deleted the test/12142-dometrain-grounding-gaps branch November 3, 2026 17:44
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.

1 participant