Repository navigation
fix(education): cut the model-read ecosystem specifics from teach - #17047
Conversation
Lane-Activity: work-resolve-issue/resolve-issue
|
claude-security-review reviewed Security review: PR #17047 (incremental, blocking only)I found no security issues in this push. This review covers only what changed since
critical-findings: 0 |
|
claude-review reviewed No findings. I reviewed only the push since What changed. The changelog fragment gets a new Correctness. The entry matches the guard at head: Rules and inputs.
Spend. Nothing billable. Verifier dropped 0 of 0 candidates. |
|
Unattended merge: native auto-merge leaves this pull request unarmed at head |
|
Held for its eval: #16781 is a cut item, so its before/after eval runs after this PR (D367). A session runs it and posts the eval-pair record for the current head. The pr-merge sweep removes this hold once that record is posted (release-eval-hold.mjs). |
…orkspace path The slug-collision guard read as a condition a model could assume false: "before creating a workspace whose slug directory exists". Without the cut example, runs gave a path without listing anything. Say that slugifying strips symbols, so different raw names share a slug, and that the model lists the directory the slug would sit in before giving or creating a workspace path. Refs: #16781 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Targeted eval result: NOT PASSOne targeted case per changed skill, run on the old text (before) and the new text (after), on What this gate checks: that the new text does no worse than the old on these cases. By the owner's decision of 2026-11-17 the gate is this no-loss compare alone. There is no wrong-text side, so this case set has not been shown to detect wrong text: a PASS says the cases did not get worse, not that they would have noticed a bad edit. Scope: pure cut of three R11 rows in the education teach skill, each part of a page: F0186 (the C++/C# slug-collision example, SKILL.md:77 deleted; lessons.md:80 subject replaced by 'two concepts whose raw names normalize to one slug'), F0185 (.cursor/rules/ in Codebase Mode step 1), F0184 (the manifest file list in Codebase Mode step 2); the touched lines are rewrapped. Measured: F0186 by the existing case te-slug-collision-guard (copied, renamed), whose three deterministic graders read the guard the cut example illustrated; its lessons.md half counts only if opened in 2 of 3 runs a side (not expected: the run writes no HTML lesson). F0184 and F0185 sit in SKILL.md, which loads with the skill, so the kit lists them measured, but no grader of this topic-mode case depends on that codebase-mode text. Unmeasured: none by row; behaviour of F0184 and F0185 is not graded.
Passing runs per grader, per side:
Graders that cannot show a loss, because they failed on the old text in every run:
Changed files the compare runs opened, per case and side:
Rows these runs measured (the row's file opened in at least 2 of 3 runs on each side, or loaded with the skill or agent):
Rows these runs did not measure:
Verdicts:
Cost: 0.92 USD (smoke and compare, the runs' The cases live outside the repository; their full text: The 1 cases: prompt.md and case.yaml
|
Trace read: eval-pr-17047 (education
|
| Grader | Before | After |
|---|---|---|
hash-computed |
3/3 | 0/3 |
reads-existing-mission |
0/3 | 0/3 |
workspace-path |
3/3 | 0/3 |
| mean case score | 0.667 | 0.000 |
Smoke: before 0.667 (hash-computed and workspace-path pass), after 0.333 (hash-computed passes,
workspace-path fails). Spend 0.1216 + 0.1065 + 0.3632 + 0.3321 = 0.9234 USD. Every check file
reads denials: none, errors: none, unloaded: none; the script's own scan of the 8 traces finds
0 tool results marked as errors and an empty permission_denials on every final result record; every validity file reads VALID with only
the skill-fired and models warnings, and check scaffold: PASS.
1. What the runs did
After runs (compare):
TFP73k: Grep for the workspace-root line in CLAUDE.md, a Bash call canonicalizing the path and
hashing it, a second Bash call checking the git dir. No listing oflearning-root. Reply path ends
topic/c-sharp/; "Collision guard: the directory doesn't exist yet, so there is nothing to compare
and no hash suffix is needed."lNJtgV: Read CLAUDE.md, the same two Bash calls. No listing. Reply path endstopic/c/;
"Collision guard: no directory exists at that path yet".siKWB5: Grep CLAUDE.md, one Bash call for path and hash. No listing. Reply path ends
topic/c/; "No directory exists yet, so there is no collision now."
hash-computed failed because no after run hashed C# (the result file records "Bash called 0x",
meaning no Bash call matched the pattern; each run made one or two Bash calls). workspace-path
failed because no reply carried a c-<4 hex> slug: two said c/, one c-sharp/. Two of the three
did derive slug c for C#, so losing the "C# → c" mapping is not the whole story; the step
they skipped is checking whether the slug directory already exists.
Smoke after (6kytE7) is the same shape: it hashed C# up front (so hash-computed passed), chose
c-sharp, and said "I did not check whether topic/c-sharp/ already exists under the root."
Before runs (jgea90, Ly923L, uKu1IP, smoke PFjmJg): each hashed C# in its first or second
Bash call, before finding any collision (for example printf '%s' 'C#' | { sha256sum ... } | cut -c1-4
giving 0402), then listed the root (ls -d learning-root/*/topic/* and similar), found
topic/c, read MISSION.md with Bash head, and replied with a path ending topic/c-0402.
jgea90: "That directory already exists, and its MISSION.md title is # Mission: C++, a
different subject." Hashing C# before knowing a collision existed suggests the example primed the
before runs to treat this exact subject as the collision case.
2. Text difference between the copies
diff -rq over the whole built plugin: only skills/teach/SKILL.md and
skills/teach/context/lessons.md differ. The changes:
SKILL.md:77(F0186):**Guard against slug collisions** (C++andC#→c): before ...
becomes**Guard against slug collisions**: before .... The hash instruction itself
(printf '%s' '<raw-name>' | ... | cut -c1-4) is kept word for word.SKILL.md:320(F0185):.cursor/rules/dropped from the guidance-file list.SKILL.md:326(F0184): the manifest list (package.json,*.csproj/*.sln, ...pom.xml)
dropped.lessons.md:80(F0186): "C++andC#, which both normalize toc" becomes "two concepts whose
raw names normalize to one slug".
The line the before runs followed is the F0186 parenthetical (C++andC#→c). It is one of
the issue's rows; the PR removed nothing beyond its rows. The slug-hash and workspace-path rules
were not removed. F0184 and F0185 are Codebase Mode text this topic-mode case never uses, and the
lessons.md half was opened in 0 runs on either side.
3. Behavior loss or artifact
Behavior loss. Checked and ruled out:
- Copy fidelity: each changed file in the after copy equals
git show 022ea774:<path>, and in the
before copy equalsgit show 8ee97472:<path>.git diff --statbetween the two commits lists
only those two plugin files plus a.changes/fragment. - Setup: same case (case hash
5d18c056...both sides), same scaffold, same flags; plugin loaded
in every run; no denial, no error. Every after run used Bash and Grep or Read normally, and their
replies apply the skill's own rules (rung 1 of the root ladder, thepwd -Pcanonical path, the
worktree check), so the skill was loaded. - Graders:
hash-computedandworkspace-pathtest the guard's outcome, not the cut words. The
after replies fail them because the path is wrong for a project that already has aC++
workspace attopic/c, not because they phrased a correct answer differently. No grader matches
the literalC++or the cut parenthetical.hash-computedis
C#.*(?:sha256sum|shasum)|(?:sha256sum|shasum).*C#on a Bash call;C#comes from the prompt, and
no Bash call in any after run containsC#at all (script scan).workspace-pathis
\blearning-root/(?:[a-z0-9]+-)+[0-9a-f]{8}/topic/c-[0-9a-f]{4}(?![0-9A-Za-z_-])on the last
message; the after replies end.../topic/c/(lNJtgV,siKWB5) and.../topic/c-sharp/
(TFP73k). Thec-<4 hex>suffix is the guard's outcome, which the after text still specifies. - Smoke: the after smoke already showed the failure (0.333;
workspace-pathfailed, and the run
said it never checked for an existing directory).
Not proven from the after traces: that the scaffolded topic/c directory existed on the after side,
because no after run listed it. The scaffold and case are byte-identical across sides and the
scaffold check passed, so a missing directory is unlikely, and it would not change the reading: the
after runs never looked.
4. reads-existing-mission
It requires a Read tool call whose input matches topic[/\\]c[/\\]MISSION\.md. Every before run
read that file with Bash instead (uKu1IP: head -5 ".../topic/c/MISSION.md"; jgea90:
head -5 learning-root/cwd-7cb2f943/topic/c/MISSION.md; Ly923L: cd .../topic/c && ... head -3 MISSION.md; smoke PFjmJg: cd ".../topic/c" && ls -la; head -5 MISSION.md), so no run satisfies
it. The grader fixes the tool rather than the outcome, so it fails runs that read the file with Bash.
It cannot show a loss here (0/3 both sides), and accepting Bash reads would not change the verdict:
no after run read the file with any tool. Re-running the same pattern over Bash inputs matches only
jgea90 and uKu1IP; Ly923L and PFjmJg cd into the directory first, which splits the path.
5. Smallest text that would restore the before behavior
The before runs relied on the parenthetical (C++andC#→c) on the guard line. Restoring it
verbatim would restore the case, but it names two languages, which is the ecosystem-specific text
the issue wants cut.
What the after runs lacked is ecosystem-neutral: an instruction to check whether the slug directory
exists (list it) before giving or creating a workspace path, and a reminder that slugifying strips
symbols, so different raw names can land on one slug. The current wording ("before creating a
workspace whose slug directory exists, read its recorded raw name") reads as a condition the model
can assume false without looking, and three after runs did exactly that. One neutral sentence on the
guard line (check for the directory first; names that differ only in stripped symbols collide) is the
smallest change likely to carry the behavior without naming any language. Whether such a sentence
restores the score is UNVERIFIED: it does not name the case's subject the way the cut example did.
The c-sharp slug in two of four after runs is a second, smaller drift: the slug rule
("lowercase alphanumerics and hyphens only") was applied as "spell the symbol out" once no example
showed # being stripped.
Options
- Keep the hold and change the PR: replace the cut parenthetical with a one-line neutral
existence-check instruction on the guard line, then rerun this compare. Recommended. Basis: the
after traces show the missing step is the existence check, which is ecosystem-neutral, and the
loss test (0.667 drop) is far past its 0.15 line. - Drop F0186's SKILL.md half from the PR (keep the parenthetical), ship F0184, F0185 and the
lessons.md rewording. Basis: no grader touches F0184 or F0185, and the lessons.md half was never
opened, so this compare shows no loss for them; it also shows nothing for them. - Accept the cut as is, on the view that the case tests recall of the removed example. Not
recommended. Basis: two after runs derived slugccorrectly and still skipped the existence
check, so the skill's guard behavior changed, not only the case's cue.
|
Held for the owner's decision, whatever the second eval shows: after the first eval's loss, an agent added one sentence to |
|
The head moved to 56709e6 to address the eval loss on One line changed, the slug-collision guard in Before (at
After (at
The trace read found that no after run ever listed the existing workspaces: three runs said no directory existed without checking, two of them after slugging The earlier eval result (LOSS) stands for |
Targeted eval result: PASSOne targeted case per changed skill, run on the old text (before) and the new text (after), on What this gate checks: the new text must do no worse than the old on this case, and workspace-path must pass in at least 2 of 3 after runs. The first compare (head 022ea77) read a loss: with the C++/C# example cut, no run checked whether the slug directory already existed. The new head replaces the example with a language-neutral instruction to list the directory the slug would sit in before giving or creating a workspace path, so the target asks that the existence check, and the hashed path it leads to, come back. There is no wrong-text side, so a PASS says the case did not get worse and the target was met, not that the case would notice every bad edit. Scope: three R11 rows in the education teach skill, each part of a page, plus one replacement. F0186: the C++/C# slug-collision example is deleted from SKILL.md and, at this head, replaced by a language-neutral instruction on the same guard line (slugifying strips symbols, so different raw names can share one slug; list the directory the slug would sit in before giving or creating a workspace path), so F0186's SKILL.md half is a cut plus a behaviour instruction, not a pure cut; lessons.md:80's subject is replaced by 'two concepts whose raw names normalize to one slug'. F0185 (.cursor/rules/ in Codebase Mode step 1) and F0184 (the manifest file list in Codebase Mode step 2) are pure cuts. Measured: F0186 by the existing case te-slug-collision-guard (copied, renamed), whose deterministic graders read the guard; workspace-path is also a target (after_min 2). Its lessons.md half counts only if opened in 2 of 3 runs a side. F0184 and F0185 load with SKILL.md, so the kit lists them measured, but no grader of this topic-mode case depends on that codebase-mode text.
Passing runs per grader, per side:
Graders that cannot show a loss, because they failed on the old text in every run:
Changed files the compare runs opened, per case and side:
Rows these runs measured (the row's file opened in at least 2 of 3 runs on each side, or loaded with the skill or agent):
Rows these runs did not measure:
Verdicts:
Cost: 0.95 USD (smoke and compare, the runs' The cases live outside the repository; their full text: The 1 cases: prompt.md and case.yaml
|
The fragment listed only the three cuts. Add a Changed entry for the guard sentence: teach lists the slug's directory before it gives or creates a workspace path. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
Owner decision, 2026-11-18, typed in the owning session: "go w/ recommendations" on Q66, option A: keep the cut plus the added sentence (list the slug directory before giving a path) and merge on the second eval's PASS. The hold is lifted. |
Lane run report
Failed GitHub API calls
|
|
pr-unblock / address-feedback finished round 1 of max 4 on 45e019b. |
|
The unattended merge path armed native auto-merge at head |
Verification evidence for 45e019bThe verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file. Capture artifact: pr-capture-17047-45e019b55061f1d31b62c5cebc139f0752ad09ff, expires on 2026-12-18. One comment per pull request, updated in place for each new head. |
|
Merge-Risk: max=MEDIUM demote=false head=45e019b55061f1d31b62c5cebc139f0752ad09ff rubric=10.3.3 rater=claude-opus-5-5 checker=claude-opus-5-5 |
Lane run report
Failed GitHub API calls
|
|
The pr-unblock lane stopped
When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean. To run it again on this head now, dispatch the gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=17047 -f activity=address-feedback |
Lane run report
Failed GitHub API calls
|
Lane run report
Failed GitHub API calls
|
Closes #16781
Summary
Opened by the work-resolve-issue lane. The run's own summary, written at head 022ea77:
Row outcomes at the current head:
.cursor/rules/entry).C++/C#parenthetical is no longer deleted with no replacement: after the first eval read a LOSS at 022ea77 (the after runs stopped checking for an existing slug directory), it was replaced at 56709e6 by the sentence that slugifying strips symbols, so different raw names can share one slug, plus the instruction to list the slug's directory before giving or creating a workspace path. That text names no language, tool or library, so it fits R11. The lessons.md half is the generic subject described above.Eval record
workspace-path0/3 before, 3/3 after; mean 0.778 before, 0.667 after, no loss). Record: fix(education): cut the model-read ecosystem specifics from teach #17047 (comment).changes/education/...);SKILL.mdandcontext/lessons.md, the files the second eval measured, are unchanged.Not verified
Fix
.cursor/rules/guidance-file entry (F0185) and the manifest file list in Codebase Mode step 2 (F0184); replaced theC++/C#slug-collision parenthetical (F0186) with the ecosystem-neutral sentence and the list-the-slug-directory instruction above; rewrapped the touched linesC++/C#example at line 80 with the generic subject the clause needs (F0186)Verification
The runner ran each check from the base copy against 022ea77:
The run reports:
Left out: the items under Not verified.
Related
#16781
🤖 Generated with Claude Code