Skip to content

fix(adhd): cut the stack-specific examples from adhd:shape - #17254

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16791-44385729481-1
Nov 18, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16791-44385729481-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16791

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Row count: 1 row. F0006 (R11, K7, plugins/adhd/skills/shape/SKILL.md, cited 59-147): cut. The four Weak/Strong example pairs under rules 1, 2, 3 and 7 that named npm, jsonwebtoken and src/auth.ts (npm install jsonwebtoken / src/auth.ts:42; the src/auth.ts + verifyToken + npm test fenced list; npm test; npm run dev + /login) are deleted with no replacement. adhd:shape is not a routing site: it takes no language-specific step, so R11 deletes the text and adds no generic replacement. Each Weak line went with its Strong line, since the pair is one illustration and the Weak line was kept only for the Strong line beside it. Each rule's own prose still states the behavior. Script-reader search for R11: a repository-wide search (Grep tool, the lane runs no git grep) for adhd/skills/shape|skills/shape/SKILL over the checkout found no script reading the file. The hits are docs/architecture/landscape.json (citation graph data), docs/skill-cheat-sheet.md (a link), plugins/adhd/probes/shape.json (a trigger probe that holds only the skill_dir and reads the description) and plugins/adhd/schemas/adhd.schema.json (its description cites rule 6, which is unchanged). So the row is cut here, not reported on #15730. Eval cases whose runs read the cut text (every shape case loads the whole SKILL.md; these are the ones grading rules 1, 2, 3 and 7): sh-adhd-friendly-trigger (rules 1, 2, 3, 10; its prompt is a JWT/Express question), sh-multistep-action-first (rules 1, 2, 3) and sh-direct-answer-first (rule 1). None was run by this lane. Whole page or part: plugins/adhd/skills/shape/SKILL.md is a partial cut, so it needs a detection-control result. The new .changes fragment is a new file, not a cut. AC10: no enforcement-placing skill is added. Left alone, flagged for #15730: rule 8's Strong example (auth.spec.ts:42, Authorization: Bearer ${token}) is TypeScript/JS-flavoured but is not a listed row, and the issue keeps every unlisted row out of scope.

Not verified

  • Eval evidence of no loss (ADR 0101 decision 5): the targeted sonnet before-and-after cases and the detection-control result for this partial cut are the host session's work after the PR opens, per the issue; this lane ran no eval.
  • Tidy pass 5 (ai-slop): the detector script detect.sh could not run, because the lane allows only its named wrappers. The rubric was read by hand over the 7-line fragment and found nothing. Tidy passes 1-3 had no code lines to work on. The SKILL.md hunks are pure deletions, so they had no lines to…
  • check-affected skipped typos (not installed) and comment-hygiene (its fetch was blocked by the sandbox). The portability-lint, evals-quality, eval-cases and line-citations checks are CI only.
  • Rule 8's Strong example in adhd:shape (auth.spec.ts:42, Authorization: Bearer ${token}) may also be stack-specific but is not a listed row; it is left for #15730 to classify.
  • Build and test: this change is markdown only, with no build or test suite for it beyond the checks above.

Fix

  • plugins/adhd/skills/shape/SKILL.md: deleted the Weak/Strong example pairs under rules 1, 2, 3 and 7 that named npm, jsonwebtoken and src/auth.ts, with rule 3's ai-slop-ignore marker on its deleted Weak line (row F0006).
  • .changes/adhd/work-resolve-issue-issue-16791-44385729481-1-72633a5d.md: new patch changelog fragment recording the cut.

Verification

The runner ran each check from the base copy against d18d9c0:

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

The run reports:

  • check-changelog-fragments: all 9 fragments under .changes/ valid (run before and after tidy).
  • check-changed-skills: CHECK-SKILL shape PASS, 0 errors, 3 pre-existing warnings (description length, body length, pre-send numbered list), all 6 trigger phrases preserved.
  • check-affected: 14 passed, 8 skipped (typos not installed; comment-hygiene fetch blocked by the sandbox; checks that run the checked tree's own code), rest CI-only.
  • Grep over plugins/adhd outside evals for npm|jsonwebtoken|src/auth|magic link: the only hit is the executed adapter plugins/adhd/lib/prerequisites.mjs:151, a kept class.
  • Grep for adhd/skills/shape|skills/shape/SKILL across the checkout: no script reader (hits listed in summary).
  • Fresh-context review subagent over the whole diff: no defects. No dangling back-reference (rule 5's 'the backfill above' still has its example), structure and rule numbering intact, nothing outside evals cites the deleted text, no skill-stack-fences ceiling for this file, fragment accurate. Its nit…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44385729481

Left out: the items under Not verified.

Related

#16791

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

Copy link
Copy Markdown
Contributor

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

Code review: no findings.

This PR deletes the Weak/Strong example pairs under rules 1, 2, 3 and 7 of plugins/adhd/skills/shape/SKILL.md. Those examples named npm, jsonwebtoken and src/auth.ts. It also adds a bump: patch changelog fragment. I read every hunk of both changed files and the whole SKILL.md at head.

  • Structure: The rule numbering and headings are intact. No text still points at a deleted example. Rule 5's "as the backfill above is" refers to rule 5's own example, which is kept. Each rule whose examples were cut still states what to do in its own text.

  • Closing issue Cut the model-read ecosystem specifics from adhd #16791: The issue's done-when items are things the PR body must state, and it states them all:

    • the row count is 1;
    • F0006 is listed with rule R11 and the outcome "cut";
    • the script-reader search is quoted;
    • the eval cases that read the cut text are named;
    • it says this is a partial cut, not a whole-page deletion;
    • it addresses AC10.

    The listed row's cited text is gone at head. Rule 8's example still names auth.spec.ts, but the issue does not list that row and keeps unlisted rows out of scope; the PR flags it for Classify the remaining guidance rows blind and count the cuts per plugin #15730.

  • Eval samples: The samples under plugins/adhd/evals/sh-adhd-friendly-trigger/samples/ still contain npm install jsonwebtoken answers. They are graded fixtures, not text the skill reads at runtime, so this cut does not cover them. The issue leaves the no-loss eval to a host session after the PR opens, under a do-not-merge hold.

  • Changelog fragment: The fragment's text matches the change. A patch bump fits a change that removes illustrative examples from a skill.

  • Path-scoped rules: .claude/rules/cost-claims.md and .claude/rules/skill-bodies-state-current-rules.md match the changed skill file. The diff only deletes lines, so it adds no cost claims and no history narration.

  • Not verified by this review: The PR's verification is the author's claim; this lane ran no checks. That covers the check-changelog-fragments and check-changed-skills results and the eval runs.

Loosened-check verdict: fail (default; the prompt gave no loosened_check_verdict: or loosened_check_patterns: lines); patterns: 0. The prompt gave no decision-record line either, so I did not check the citation requirement. The diff loosens no check. The ai-slop-ignore marker it removes went with the deleted line it covered; removing a suppression is not a loosening.

No plugin manifest changed. No paved-path entries applied.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: no security issues

I read the whole diff for both changed files:

  • plugins/adhd/skills/shape/SKILL.md deletes the Weak/Strong example pairs under rules 1, 2, 3 and 7. The pairs named npm install jsonwebtoken, src/auth.ts, npm test and npm run dev.
  • .changes/adhd/work-resolve-issue-issue-16791-44385729481-1-72633a5d.md is a new patch changelog fragment that records the cut.

Instruction-surface lens. This change removes text from a skill body, so I checked it as a possible guardrail removal. Every deleted line is an example that shows how a reply is shaped. None of them forbids, gates or confirms an action, so no protected-class rule is removed. Each rule's own text is unchanged, and it still states what the reply does. Nothing here touches tokens, secrets, credentials, trust controls, merge holds, workflows or plugin manifests. No changed file matches a trusted path.

The protected-class list in docs/contracts/instruction-exception-register/README.md was not read. I judged the deletions by what they do: they are examples, not standing instructions.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for d18d9c0

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-17254-d18d9c0878b3c14bdb890eaabea48c262f9150bf, 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=d18d9c0878b3c14bdb890eaabea48c262f9150bf rubric=10.4.0 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 88ce067 Nov 18, 2026
49 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16791-44385729481-1 branch November 18, 2026 20:37
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 88ce067688312cd53ecd910d250098e6f0c9cd73; later checks count it verified from this comment.

@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: 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 one R11 K7 row, part of a page; a post-merge check (PR 17254 merged before its eval hold landed), with AFTER the PR head d18d9c0 and BEFORE its merge base. F0006: skills/shape/SKILL.md drops the Weak/Strong example pairs under rules 1, 2, 3 and 7 (npm, jsonwebtoken, src/auth.ts); each rule's prose stays. Measured by the existing case p17254-sh-multistep-action-first, whose graders test rules 1 (first-line-action), 2 (numbered-steps) and 3 (ends-with-next-action); the row's file is SKILL.md, loaded with the skill, so no open count applies. No grader targets rule 7 (make finished work visible). Unmeasured: none.

  • Copied case p17254-sh-multistep-action-first: sh-multistep-action-first at d18d9c0, unchanged except the folder, the name: field, a source note in its description and a routine tag; PR 17254's body names it among the cases grading rules 1, 2 and 3.

  • Unmeasured rows: none (F0006 lives in SKILL.md, loaded with the skill); no grader targets rule 7's removed example.

  • Post-merge check: the PR merged before its eval hold landed; a loss here means a revert PR, not a hold.

  • 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: 72ae91f7bb30a4057dce6af8e916a6f8a3953fb4 (merge base with main)

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

  • 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
p17254-sh-multistep-action-first first-line-action 3/3 3/3
p17254-sh-multistep-action-first numbered-steps 3/3 3/3
p17254-sh-multistep-action-first no-preamble-opener 3/3 3/3
p17254-sh-multistep-action-first no-pleasantry-closer 3/3 3/3
p17254-sh-multistep-action-first ends-with-next-action 3/3 3/3
p17254-sh-multistep-action-first mean case score 1.000 1.000

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:

  • p17254-sh-multistep-action-first before: opened no changed file in 3 runs
  • p17254-sh-multistep-action-first 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):

  • F0006 (skills/shape/SKILL.md, case p17254-sh-multistep-action-first): measured; the file is loaded with the skill or agent, never opened, so no open count applies

Rows these runs did not measure:

  • none

Verdicts:

  • verdict p17254-sh-multistep-action-first (shape): PASS (no loss: after 1.000, before 1.000)

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

The cases live outside the repository; their full text:

The 1 cases: prompt.md and case.yaml

p17254-sh-multistep-action-first

prompt.md:

---
description: "With shape set, a multi-step how-to opens on an action, numbers the steps, has no preamble opener or pleasantry closer, and ends on one concrete next action. Source: plugins/adhd/evals/sh-multistep-action-first at d18d9c08, copied unchanged except the folder, name: and this description; PR 17254's body names it among the cases grading rules 1, 2 and 3, whose examples the cut removes. Routine: one how-to question, no scaffold."
tags: [adhd, shape, outcome, action-first, routine]
max_turns: 6
timeout_seconds: 300
allowed_tools: [Skill, Read]
expected_outcome: "First line is a command, path or imperative (no 'Great question', 'Sure', 'Let me'); the steps are a numbered list of at least three items; no 'hope this helps' or 'let me know' closer; the last line is a single concrete next action."
---

/adhd:shape

How do I set up a Python virtual environment for my project in ~/code/invoicer, install requests and pytest into it, and run the test suite?

case.yaml:

schema_version: "1.1"
name: p17254-sh-multistep-action-first
graders:
  - name: first-line-action
    type: regex
    pattern: '^\s*(?:#{1,6}\s*)?(?:\*\*|__)?(?:(?:step\s*)?1[.):]\s*)?(?:\*\*|__)?\s*(?:```|`|\$\s|(?:run|open|create|install|make|cd|mkdir|python3?|source|activate|go to|navigate|type|paste|execute|start|use|set up|add|copy|pip3?)\b)'
    flags: i
    target: last_message
  - name: numbered-steps
    type: regex
    pattern: '^\s*(?:\*\*)?(?:step\s+)?1[.):][\s\S]*?^\s*(?:\*\*)?(?:step\s+)?2[.):][\s\S]*?^\s*(?:\*\*)?(?:step\s+)?3[.):]'
    flags: mi
    target: last_message
  - name: no-preamble-opener
    type: regex
    pattern: '^\s*(?:#{1,6}\s*)?(?:\*\*)?(?:great|sure|certainly|of course|absolutely|happy to|good question|let me|let(?:''|’)s|i(?:''|’)ll|i will|here(?:''|’)s how|here is how|okay|ok\b|alright|got it|(?:adhd|shape|shaping)\b[^\n]*\b(?:on|active|enabled|applied)\b)'
    flags: i
    match: not_contains
    target: last_message
  - name: no-pleasantry-closer
    type: regex
    pattern: 'hope (?:this|that|it) helps|let me know if|feel free to|happy to help|anything else\b|good luck|happy coding'
    flags: i
    match: not_contains
    target: last_message
  - name: ends-with-next-action
    type: regex
    pattern: '(?:^|\n)[ \t]*(?:[-*>]\s*|\d+[.)]\s*|\*\*|__)*(?:next\b|run\b|open\b|paste\b|check\b|try\b|activate\b|type\b|verify\b|confirm\b|start\b|then\b)[^\n]*(?:\n[ \t]*```[^\n]*(?:\n(?![ \t]*```)[^\n]*){0,6}\n[ \t]*```)?\s*$'
    flags: i
    target: last_message

Posted by an agent session.

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.

Cut the model-read ecosystem specifics from adhd

1 participant