Skip to content

fix(education): cut the model-read ecosystem specifics from teach - #17047

Merged
kyle-sexton merged 3 commits into
mainfrom
work-resolve-issue/issue-16781-44241110801-1
Nov 18, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
work-resolve-issue/issue-16781-44241110801-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Closes #16781

Summary

Opened by the work-resolve-issue lane. The run's own summary, written at head 022ea77:

Cuts all 3 R11 rows (row count: 3) from the education plugin's teach skill. None was replaced with generic text, because none sits at a routing site where the skill takes a language-specific step. Rows: F0184 (R11, K2): cut, deleting the manifest file list (package.json, .csproj/.sln, pyproject.toml, go.mod, Cargo.toml, pom.xml) from Codebase Mode step 2, which keeps the generic 'identify languages and frameworks from the manifest files present'. F0185 (R11, K5): cut, deleting .cursor/rules/ from Codebase Mode step 1's guidance-file list. F0186 (R11, K7): cut. In SKILL.md the C++/C# parenthetical is deleted with no replacement. In context/lessons.md:80 the example was the subject of its clause, so it became the minimal subject 'two concepts whose raw names normalize to one slug'. Script-reader search (Grep, the equivalent of git grep -n -F over the repo, for 'teach/SKILL.md', 'teach/context/lessons.md' and 'context/lessons.md'): no script reads the cut text. Only two things read these files: plugins/education/skills/teach/scripts/build-lesson.test.sh:102 reads lessons.md and asserts only on 'build-lesson.mjs' and 'Do not hand-write the HTML', both untouched; and scripts/skill-stack-fences.py scans every skill .md for fences. So all three rows stay cuttable and none needs reporting on #15730. Eval cases that read the cut text: F0186 is read by plugins/education/evals/te-slug-collision-guard. F0184 and F0185 are read by the codebase-mode cases te-codebase-grounds-in-files, te-codebase-no-grounding-asks and ex-codebase-reads-files. SKILL.md loads whole on every teach invocation. The lane ran none of them. Whole page or part: SKILL.md is a partial cut (3 spots) and context/lessons.md is a partial cut (1 clause), so each needs a detection-control result, not a sensitivity control. Fence ratchet: lessons.md's only counted fence is the ```html splice-marker block near line 127, which the cut does not touch. Its count stays 1, so the skill-stack-fences ceiling in .performance/ratchets.json is unchanged and its entry is not stale. AC10: no enforcement-placing skill was added.

Row outcomes at the current head:

  • F0184: cut (the manifest file list).
  • F0185: cut (the .cursor/rules/ entry).
  • F0186: cut, then guarded. The SKILL.md 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

  • First eval, AFTER 022ea77: LOSS on the slug guard (mean 0.667 before, 0.000 after); the trace read traced it to the cut example.
  • Second eval, AFTER 56709e6: PASS, every registered target met (workspace-path 0/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)
  • The owner chose to keep the cut plus the added sentence and merge (2026-11-18).
  • Since 56709e6 the head changes only the changelog fragment (.changes/education/...); SKILL.md and context/lessons.md, the files the second eval measured, are unchanged.

Not verified

  • The controls are host-session work per the issue; no detection-control result was run.
  • Tidy did not run every pass in full. The ai-slop detector (detect.sh) and its digest guard are not among the wrappers this lane may run, so pass 5 was a manual rubric read of the listed lines (no findings). Passes 1-3 had no code lines. Pass 4 (write-for-agents, write-for-humans) made no edits.
  • check-affected skipped typos (not installed) and comment-hygiene (its action fetch failed under the sandbox network policy); markdownlint and script tests skipped inside check-changed-skills by lane setting; these run in the PR's CI.

Fix

  • plugins/education/skills/teach/SKILL.md: removed the .cursor/rules/ guidance-file entry (F0185) and the manifest file list in Codebase Mode step 2 (F0184); replaced the C++/C# slug-collision parenthetical (F0186) with the ecosystem-neutral sentence and the list-the-slug-directory instruction above; rewrapped the touched lines
  • plugins/education/skills/teach/context/lessons.md: replaced the C++/C# example at line 80 with the generic subject the clause needs (F0186)
  • .changes/education/work-resolve-issue-issue-16781-44241110801-1-28647a13.md: patch fragment with a Changed entry (the slug-collision guard now lists the slug's directory before giving or creating a workspace path) and a Removed entry naming the three cuts, linking #16781

Verification

The runner ran each check from the base copy against 022ea77:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 38 fragments valid (run before and after tidy and review)
  • check-changed-skills: CHECK-SKILL teach PASS, 0 errors, 5 warnings that were already there (body size, no Gotchas, no 'Use when:', completion criteria)
  • check-affected: 14 passed, 8 skipped (shellcheck/ruff have no changed files; typos not installed; comment-hygiene could not fetch its action; the validate-plugins and changed-skills subchecks skip by design in this lane), rest CI only
  • Grep for 'teach/SKILL.md', 'teach/context/lessons.md', 'context/lessons.md' repo-wide: only .performance/ratchets.json:173 and build-lesson.test.sh:102 read them, and neither depends on the cut text
  • Grep of plugins/education for cursor, C++, C#, csproj, pyproject, go.mod, Cargo, pom.xml: no model-read hit remains in teach outside evals, CHANGELOG history and a test input (build-lesson.test.sh:89 concept 'C++')
  • Grep for 'teach/SKILL.md:<n>' or 'lessons.md:<n>' line citations: none, so the line shifts break no citation
  • Read scripts/skill-stack-fences.py: counted fences exclude bash/text tags, so lessons.md's single counted fence is the ```html block, untouched
  • Fresh-context review subagent over the diff at 022ea77: no correctness bugs; finding 2 (a generic parenthetical at a non-routing site) was then fixed by deleting it; finding 3 (the lessons.md generic subject) was kept because the clause needs a subject; finding 1 is in not_done. The guard sentence was added after the LOSS eval at 022ea77, and the second eval ran on 56709e6.
  • After the fragment edit: scripts/check-changelog-fragments.sh --check reports all 38 fragments valid.
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44241110801

Left out: the items under Not verified.

Related

#16781

🤖 Generated with Claude Code

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 45e019b55061f1d31b62c5cebc139f0752ad09ff: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #17047 (incremental, blocking only)

I found no security issues in this push.

This review covers only what changed since 56709e63542fb3bc0fba8a4379519e9fe4eb61b2. That change is one file, .changes/education/work-resolve-issue-issue-16781-44241110801-1-28647a13.md, and I read all of it. This lane already reviewed an earlier head, so the review was blocking only: it reports CRITICAL and IMPORTANT findings and drops suggestions.

  • Changelog fragment: the push adds a ### Changed entry. It says teach now lists the directory a slug would sit in before it gives or creates a workspace path. The file is release-note prose only. Nothing executes it, and no lane reads it as an instruction. It matches none of the trusted-path globs and touches no plugin manifest, trust control or merge hold.
  • Instruction-surface lens: the push deletes, narrows and softens no standing instruction. It only adds a release note.
  • Prior findings: the one earlier post was the previous summary, which reported no findings, so nothing carries forward.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 45e019b55061f1d31b62c5cebc139f0752ad09ff: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

No findings. I reviewed only the push since 56709e63, and only for blocking findings, because this lane already reviewed an earlier head. I read the whole diff of the one changed file, .changes/education/work-resolve-issue-issue-16781-44241110801-1-28647a13.md.

What changed. The changelog fragment gets a new ### Changed entry. It says teach now lists the directory a slug would sit in before it gives or creates a workspace path, because different raw names can share one slug. The entry sits above the existing ### Removed entry, and the bump stays patch.

Correctness. The entry matches the guard at head: SKILL.md:77-81 says "slugifying strips symbols, so different raw names can share one slug. Before giving or creating a workspace path, list the directory its slug would sit in". A patch bump fits a change to how the skill behaves that keeps its interface, and the entry links #16781. The PR body says SKILL.md and context/lessons.md, the files the second eval measured, have not changed since 56709e63. The incremental diff confirms that.

Rules and inputs.

  • No manifest changed.
  • Loosened-check verdict: fail. The wrapper gave no verdict or patterns, so this is the default with no consumer entries. The diff loosens no check.
  • The PR context file has no embedded directives.

Spend. Nothing billable.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 022ea7741e236e84c048fd5d87c622176cb35a99. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 18, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

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]>
@kyle-sexton

Copy link
Copy Markdown
Member

Targeted eval result: NOT PASS

One targeted case per changed skill, run on the old text (before) and the new text (after), on sonnet at 3 runs a side, Claude Code 2.1.327 (Claude Code).

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.

  • Copied case: te-slug-collision-guard, byte-identical except the folder and name: renamed to p17047-te-slug-collision-guard for the case glob.

  • F0184 and F0185 (Codebase Mode text in SKILL.md) are loaded with the skill but graded by no grader of this topic-mode case; F0186's lessons.md half is reported by its open count.

  • Control result (the issue's acceptance item): not run: the owner's decision of 2026-11-17 gates cut pull requests on the no-loss compare alone.

  • Before: 8ee974728775d4ec815dc87110784bbddde9906a (merge base with main)

  • After: 022ea7741e236e84c048fd5d87c622176cb35a99 (pull request head; live head when this was written: 022ea7741e236e84c048fd5d87c622176cb35a99)

  • Loss: the mean case score falls by 0.15 or more, or any one grader passes in 2 or more fewer after runs than before runs.

Passing runs per grader, per side:

Case Grader Before After
p17047-te-slug-collision-guard hash-computed 3/3 0/3
p17047-te-slug-collision-guard reads-existing-mission 0/3 0/3
p17047-te-slug-collision-guard workspace-path 3/3 0/3
p17047-te-slug-collision-guard mean case score 0.667 0.000

Graders that cannot show a loss, because they failed on the old text in every run:

  • p17047-te-slug-collision-guard reads-existing-mission: cannot show a loss: failed on the old text in every run (0/3)

Changed files the compare runs opened, per case and side:

  • p17047-te-slug-collision-guard before: opened no changed file in 3 runs
  • p17047-te-slug-collision-guard after: opened no changed file in 3 runs

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):

  • F0186 (skills/teach/SKILL.md, case p17047-te-slug-collision-guard): measured; the file is loaded with the skill or agent, never opened, so no open count applies
  • F0184 (skills/teach/SKILL.md, case p17047-te-slug-collision-guard): measured; the file is loaded with the skill or agent, never opened, so no open count applies
  • F0185 (skills/teach/SKILL.md, case p17047-te-slug-collision-guard): measured; the file is loaded with the skill or agent, never opened, so no open count applies

Rows these runs did not measure:

  • F0186 (skills/teach/context/lessons.md, case p17047-te-slug-collision-guard): opened in 0 of 3 before, 0 of 3 after runs: below the measured line

Verdicts:

  • verdict p17047-te-slug-collision-guard (teach): LOSS (after 0.000 is 0.667 below before; trace read and opus confirm next)

Cost: 0.92 USD (smoke and compare, the runs' costUsd).

The cases live outside the repository; their full text:

The 1 cases: prompt.md and case.yaml

p17047-te-slug-collision-guard

prompt.md:

---
description: "teach derives <project-slug> as the canonical project basename plus an 8-hex sha256, and guards a topic slug collision: a new C# topic whose slug `c` is taken by an existing C++ workspace gets `c-` plus a 4-hex hash of its raw name"
tags: [education, teach, outcome, project-slug, scaffold]
max_turns: 25
timeout_seconds: 900
allowed_tools: [Skill, Read, Glob, Grep, Bash]
expected_outcome: "The existing topic/c/MISSION.md is read, sha256 of the raw name C# is computed with sha256sum or shasum, and the reply gives the new workspace path as learning-root/<basename>-<8 hex>/topic/c-<4 hex>."
---

/education:teach topic C#

Goal: read and fix the C# services at work. Success looks like shipping one bug fix in a C# service without help. Constraint: about an hour a week. This repository's CLAUDE.md declares the teach workspace root. This run cannot write files, so print the full path of the workspace directory you would create for this topic and show how you derived each part of it.

case.yaml:

schema_version: "1.1"
name: p17047-te-slug-collision-guard
context:
  scaffold_script: scaffold.sh
graders:
  - name: hash-computed
    type: tool_used
    tool: Bash
    input_match: 'C#.*(?:sha256sum|shasum)|(?:sha256sum|shasum).*C#'
  - name: reads-existing-mission
    type: tool_used
    tool: Read
    input_match: 'topic[/\\]c[/\\]MISSION\.md'
  - name: workspace-path
    type: regex
    pattern: '\blearning-root/(?:[a-z0-9]+-)+[0-9a-f]{8}/topic/c-[0-9a-f]{4}(?![0-9A-Za-z_-])'
    target: last_message

Posted by an agent session.

@kyle-sexton

Copy link
Copy Markdown
Member

Trace read: eval-pr-17047 (education teach cut, #16781)

BEFORE 8ee974728775d4ec815dc87110784bbddde9906a, AFTER 022ea7741e236e84c048fd5d87c622176cb35a99,
sonnet, Claude Code 2.1.327, 3 runs a side, case p17047-te-slug-collision-guard. Read from the
result JSON files and every run's trace in the eval folder; no rerun, no model call.

Bottom line

The loss is a behavior change, not a setup or grader fault. All 4 before runs (smoke plus compare)
listed the workspace root, found the existing topic/c directory, read its # Mission: C++ title
and suffixed the new slug with the hash of C#. None of the 4 after runs looked for an existing
directory at all; each gave a path without the suffix, and three of them stated that no directory
existed without having checked. The only text that differs between the two copies is the PR's three
rows, so the cut is the cause. The cut example named the case's own subject (C# colliding with
C++ at slug c), so the case mainly measures whether the model recalls that example; whether the
guard also regressed for subjects the example never named is not shown by this eval.

Numbers, verified

A script in the eval folder's trace-read-tools/ re-read both result files and re-ran each
deterministic grader's pattern over every trace (tool calls for tool_used, the last assistant
text for regex). Recorded and re-graded verdicts agree in all 8 runs: no mismatch.

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 of learning-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 ends topic/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++ and C#, which both normalize to c" 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 equals git show 8ee97472:<path>. git diff --stat between 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, the pwd -P canonical path, the
    worktree check), so the skill was loaded.
  • Graders: hash-computed and workspace-path test the guard's outcome, not the cut words. The
    after replies fail them because the path is wrong for a project that already has a C++
    workspace at topic/c, not because they phrased a correct answer differently. No grader matches
    the literal C++ or the cut parenthetical. hash-computed is
    C#.*(?:sha256sum|shasum)|(?:sha256sum|shasum).*C# on a Bash call; C# comes from the prompt, and
    no Bash call in any after run contains C# at all (script scan). workspace-path is
    \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). The c-<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-path failed, 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

  1. 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.
  2. 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.
  3. Accept the cut as is, on the view that the case tests recall of the removed example. Not
    recommended. Basis: two after runs derived slug c correctly and still skipped the existence
    check, so the skill's guard behavior changed, not only the case's cue.

@kyle-sexton

Copy link
Copy Markdown
Member

Held for the owner's decision, whatever the second eval shows: after the first eval's loss, an agent added one sentence to teach (list the slug directory first) in place of the cut example. The owner chooses between keeping that sentence, restoring the example, or accepting the cut as it was (question Q66 in the backlog drive's morning report). do-not-merge stays until he answers.

@kyle-sexton

Copy link
Copy Markdown
Member

The head moved to 56709e6 to address the eval loss on 022ea774.

One line changed, the slug-collision guard in plugins/education/skills/teach/SKILL.md:

Before (at 022ea774):

Guard against slug collisions: before creating a workspace whose slug directory exists, read its recorded raw name; if it names a different subject, append - plus printf '%s' '<raw-name>' | { sha256sum 2>/dev/null || shasum -a 256; } | cut -c1-4 to the new slug.

After (at 56709e63):

Guard against slug collisions: slugifying strips symbols, so different raw names can share one slug. Before giving or creating a workspace path, list the directory its slug would sit in; if the slug directory exists, read its recorded raw name; if it names a different subject, append - plus printf '%s' '<raw-name>' | { sha256sum 2>/dev/null || shasum -a 256; } | cut -c1-4 to the new slug.

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 C# to c correctly, so the step lost was the existence check, which needs no language example. The C++/C# example stays cut.

The earlier eval result (LOSS) stands for 022ea774 only. A second eval on 56709e63 follows, with the same case and graders plus one target written before any run: workspace-path passes in at least 2 of 3 after runs. The do-not-merge hold stays.

@kyle-sexton

Copy link
Copy Markdown
Member

Targeted eval result: PASS

One targeted case per changed skill, run on the old text (before) and the new text (after), on sonnet at 3 runs a side, Claude Code 2.1.327 (Claude Code).

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.

  • Copied case: te-slug-collision-guard, byte-identical except the folder and name: renamed to p17047-te-slug-collision-guard for the case glob; the same copy the first compare (head 022ea77) used.

  • The first compare read a LOSS for head 022ea77 (hash-computed and workspace-path 3/3 before, 0/3 after); that result stands for that head only. This compare measures the new head.

  • reads-existing-mission failed 0/3 on both sides of the first compare because it requires a Read tool call while the runs read MISSION.md with Bash; the grader is left unchanged, so it is expected to report that it cannot show a loss.

  • F0184 and F0185 (Codebase Mode text in SKILL.md) are loaded with the skill but graded by no grader of this topic-mode case; F0186's lessons.md half is reported by its open count.

  • Control result (the issue's acceptance item): not run: the owner's decision of 2026-11-17 gates cut pull requests on the no-loss compare alone.

  • Before: 8ee974728775d4ec815dc87110784bbddde9906a (merge base with main)

  • After: 56709e63542fb3bc0fba8a4379519e9fe4eb61b2 (pull request head; live head when this was written: 56709e63542fb3bc0fba8a4379519e9fe4eb61b2)

  • Loss: the mean case score falls by 0.15 or more, or any one grader passes in 2 or more fewer after runs than before runs.

Passing runs per grader, per side:

Case Grader Before After
p17047-te-slug-collision-guard hash-computed 3/3 3/3
p17047-te-slug-collision-guard reads-existing-mission 1/3 0/3
p17047-te-slug-collision-guard workspace-path 3/3 3/3
p17047-te-slug-collision-guard mean case score 0.778 0.667
p17047-te-slug-collision-guard target: workspace-path passes in at least 2 after runs 3/3 3/3

Graders that cannot show a loss, because they failed on the old text in every run:

  • none: every grader passed in at least one run on the old text

Changed files the compare runs opened, per case and side:

  • p17047-te-slug-collision-guard before: opened no changed file in 3 runs
  • p17047-te-slug-collision-guard after: opened no changed file in 3 runs

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):

  • F0186 (skills/teach/SKILL.md, case p17047-te-slug-collision-guard): measured; the file is loaded with the skill or agent, never opened, so no open count applies
  • F0184 (skills/teach/SKILL.md, case p17047-te-slug-collision-guard): measured; the file is loaded with the skill or agent, never opened, so no open count applies
  • F0185 (skills/teach/SKILL.md, case p17047-te-slug-collision-guard): measured; the file is loaded with the skill or agent, never opened, so no open count applies

Rows these runs did not measure:

  • F0186 (skills/teach/context/lessons.md, case p17047-te-slug-collision-guard): opened in 0 of 3 before, 0 of 3 after runs: below the measured line

Verdicts:

  • verdict p17047-te-slug-collision-guard (teach): PASS (no loss: after 0.667, before 0.778, every registered target met)

Cost: 0.95 USD (smoke and compare, the runs' costUsd).

The cases live outside the repository; their full text:

The 1 cases: prompt.md and case.yaml

p17047-te-slug-collision-guard

prompt.md:

---
description: "teach derives <project-slug> as the canonical project basename plus an 8-hex sha256, and guards a topic slug collision: a new C# topic whose slug `c` is taken by an existing C++ workspace gets `c-` plus a 4-hex hash of its raw name"
tags: [education, teach, outcome, project-slug, scaffold]
max_turns: 25
timeout_seconds: 900
allowed_tools: [Skill, Read, Glob, Grep, Bash]
expected_outcome: "The existing topic/c/MISSION.md is read, sha256 of the raw name C# is computed with sha256sum or shasum, and the reply gives the new workspace path as learning-root/<basename>-<8 hex>/topic/c-<4 hex>."
---

/education:teach topic C#

Goal: read and fix the C# services at work. Success looks like shipping one bug fix in a C# service without help. Constraint: about an hour a week. This repository's CLAUDE.md declares the teach workspace root. This run cannot write files, so print the full path of the workspace directory you would create for this topic and show how you derived each part of it.

case.yaml:

schema_version: "1.1"
name: p17047-te-slug-collision-guard
context:
  scaffold_script: scaffold.sh
graders:
  - name: hash-computed
    type: tool_used
    tool: Bash
    input_match: 'C#.*(?:sha256sum|shasum)|(?:sha256sum|shasum).*C#'
  - name: reads-existing-mission
    type: tool_used
    tool: Read
    input_match: 'topic[/\\]c[/\\]MISSION\.md'
  - name: workspace-path
    type: regex
    pattern: '\blearning-root/(?:[a-z0-9]+-)+[0-9a-f]{8}/topic/c-[0-9a-f]{4}(?![0-9A-Za-z_-])'
    target: last_message

Posted by an agent session.

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]>
@kyle-sexton

Copy link
Copy Markdown
Member

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.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44329897113

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 45e019b.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 45e019b55061f1d31b62c5cebc139f0752ad09ff, the head its arming checks judged.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

Verification evidence for 45e019b

The 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.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=45e019b55061f1d31b62c5cebc139f0752ad09ff rubric=10.3.3 rater=claude-opus-5-5 checker=claude-opus-5-5

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44329897113

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 18, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the merge gate refuses this head verify:earlier-fail, and the lane found every note of that earlier pr-verify FAIL already addressed by the diff, so it pushed nothing; only a session can move the head for the verifier to judge again. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

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 pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=17047 -f activity=address-feedback

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44329897113

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 18, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot removed this pull request from the merge queue due to a manual request Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44330530080

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 88f501e Nov 18, 2026
66 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-16781-44241110801-1 branch November 18, 2026 16:30
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cut the model-read ecosystem specifics from education

1 participant