Skip to content

docs: cut restated upstream behavior left by the stamp sweep (batch 7) - part 2 of 8 - #17119

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

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16845

Summary

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

Cut the listed restatements of upstream Claude Code behavior in context-budget and context-usage. Each one now points at the upstream page or is rewritten as this repo's own rule with its reason. Four of the listed context-budget passages (README:128 and :143, setup SKILL.md:62 and :87) were already gone: the 2.0.0 move of the settings-write hook to guardrails removed them, and 1.1.1/1.1.3 rewrote the others. context-usage setup SKILL.md:238 (uninstall) and reader-contract.md:206 (input side) were already a pointer and a rule with a reason, so they are unchanged. The audit skill's print-only reason changed from 'in auto mode the classifier, not a person, decides' to this repo's rule, 'a protected-path prompt never counts as a person confirming the write'. That changes what the agent says, so the au-fix-user-global-print-only eval's grader and samples now grade the new reason. It is the stated basis the parent issue asks for. I also cut the same restatements where they repeat in these files (context-usage README:67, setup SKILL.md:151, reader-contract.md:695/698/711, cloud-headless-capture.md:249), so the plugin does not cut a claim in one place and keep it in another.

Not verified

  • Tidy not run: the change spans two areas (plugins/context-budget and plugins/context-usage with their .changes dirs), over the 1-area tidy cutoff
  • eval-cases (validate-cases.py) and evals-quality are CI-only here; check-evals-quality takes a JSON eval set and this plugin uses per-case directories. The new prompt-not-confirmation regex was checked by hand against its four samples (both pass samples match, neither fail sample does); left to the…
  • Lane-local checks skipped: typos (not installed), comment-hygiene (its action fetch was blocked by the sandbox), lychee links (CI only); left to the PR's CI
  • Left unchanged on purpose: the cloud-headless-capture.md channel table row for $.session.usage() (the parent issue's 'Kept, unsure' list keeps that dated table), and the As of and Recheck stamp on reader-contract.md's mods pointer record (not listed in this part)
  • No upstream page was fetched: every edit removes or re-points a claim and adds no new external fact

Fix

  • plugins/context-budget/skills/audit/SKILL.md: user-global write-posture bullet gives this repo's rule (a protected-path prompt is never counted as a person's confirmation) instead of restating who decides in auto mode; keeps the permission-modes pointer
  • plugins/context-budget/evals/au-fix-user-global-print-only/case.yaml: the classifier-reason grader becomes prompt-not-confirmation, matching a protected-path mention near confirm/approve
  • plugins/context-budget/evals/au-fix-user-global-print-only/prompt.md: description and expected_outcome grade the new reason and cite the Fix path user-global bullet
  • plugins/context-budget/evals/au-fix-user-global-print-only/samples/prompt-not-confirmation.json: renamed from classifier-reason.json; pass and fail samples follow the new reason
  • plugins/context-usage/README.md: options-reload restatement cut to 'reads its options when it loads, and only then' plus the Register pointer; dropped that pointer record's As of and Recheck lines; dropped 'after an options change' from the resume-row trigger list
  • plugins/context-usage/skills/setup/SKILL.md: the node check no longer says installing Claude Code puts no node on PATH, but says the check never counts an install as supplying node (pointer below); the options-reload restatement is cut and points at the README Configuration section
  • plugins/context-usage/reference/cloud-headless-capture.md: Verdict no longer lists what $.session.usage() reports or which session kinds run a mod; the pointer record drops its As of and Recheck lines; the WSL 'plugins are not available' restatements (Verdict and 'What would have to change…
  • plugins/context-usage/reference/reader-contract.md: the statusline-percentage decision reads as our rule (a gap from /context is never a fault) with the pointer; the 'interactive, -p, SDK and --bg' list and the WSL restatement in 'Sessions with no writer' are cut to pointers
  • .changes/context-budget/work-resolve-issue-issue-16845-44275702400-1-13d33954.md: patch fragment
  • .changes/context-usage/work-resolve-issue-issue-16845-44275702400-1-b4b13730.md: patch fragment

Verification

The runner ran each check from the base copy against 0f7d29f:

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

The run reports:

  • check-changelog-fragments: all 10 fragments valid
  • check-changed-skills: context-budget audit and context-usage setup PASS, 0 errors (warnings were already there: description length, body size, Gotchas, an unguarded injected command)
  • check-affected: 14 passed, 8 skipped (typos not installed, comment-hygiene fetch blocked, checks that run the checked tree's code), no failures
  • fresh-context review subagent over the whole diff: found the eval grader pattern in case.yaml still required 'classifier' (fixed), plus leftover duplicate restatements and an overclaiming fragment (fixed); it confirmed against register.tsx:811-812 and :418/:437-438 that options are parsed once at…
  • grep across plugins/context-budget and plugins/context-usage (CHANGELOGs excluded): no remaining 'classifier, not a person', 'reloads a module', 'plugins are not available' or 'does not put node' text in the edited files
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44275702400

Left out: the items under Not verified.

Related

#16845

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

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44282712667

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #17119, no findings

The change is documentation and eval only. I read every hunk of all 10 listed files and the deleted samples/classifier-reason.json. No security issues found.

What I checked

  • Instruction surface (plugins/context-budget/skills/audit/SKILL.md): this hunk changes a standing instruction, so it got the deletion lens. The rule itself is unchanged. User-global ~/.claude/settings.json is still "never written by this skill", and the operator still pastes the printed edit. Only the stated reason changed: the auto-mode classifier explanation became "this skill never counts a protected-path prompt as a person confirming the write". That keeps the posture and adds an instruction to say it when printing. Nothing that was forbidden is now allowed, so no protected class is exposed. The register file was not needed, because nothing it protects was removed.
  • Eval (au-fix-user-global-print-only): the regex grader was renamed and its pattern replaced, and the prompt, expected outcome and samples were updated to match. The not_contains graders for disallowedTools and the no-settings-write expectation are untouched, so the eval still catches a settings write.
  • context-usage README, setup skill and references: upstream behaviour that was restated is cut back to pointers, and some As-of and Recheck lines are dropped. All are prose; no hook, script, manifest, permission or token is touched.
  • Changelog fragments: patch-bump prose only.

Not touched: no trust control, merge hold, kill switch, token scope, workflow, or plugin manifest / userConfig key. No changed file matches a trusted-path glob.

Spend: none; nothing changes what the evals or lanes run.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #17119 (docs: cut restated upstream behavior, batch 7 part 2)

I read all 10 changed files in full, plus the deleted classifier-reason.json. This is a docs and eval change. It trims restated upstream Claude Code behavior in context-budget and context-usage down to pointers, or rewrites it as the repo's own rule.

What I checked

  • Pointer records. Dropping the As of and Recheck trigger lines from the options-reload, $.session.usage() and WSL pointers follows .claude/rules/skill-bodies-state-current-rules.md: a pointer carries no as-of date and no recheck trigger. Every "(pointer below)" reference I followed still leads to a pointer: setup SKILL.md step 2 → "Install with npm", cloud-headless-capture's WSL pointer, and reader-contract's mods and WSL pointers.
  • Eval grader. I worked the new prompt-not-confirmation regex in case.yaml against its samples by hand; I did not run it. Both pass samples match. Fail sample 1 has no "protected path"; fail sample 2 has "protected path" but no confirm/approve word. prompt.md's description and expected_outcome match the new SKILL.md wording ("say that when you print"). Nothing else in the plugins references classifier-reason, apart from a CHANGELOG line about past releases.
  • Leftover text. A grep of both plugins, CHANGELOGs excluded, finds no remaining "classifier, not a person", "reloads a module", "plugins are not available" or "does not put node".
  • Changelog fragments. Both are bump: patch, which fits a docs and grader change with no behavior change.
  • Verification. The PR's checks (changelog-fragment and changed-skill validation, and the hand check of the regex against the samples) are author-claimed and unverified. I could not run them.

Closing issue #16845. Both criteria are "each listed passage is cut to its anchored pointer or rewritten as our own rule with its reason". The passage list itself is in parent #15515, which the PR context file does not include, so I could only check that list against the PR's own enumeration. The four context-budget passages the PR says are already gone (README and setup SKILL.md) show no leftover restatement in a grep of that plugin. I could not independently confirm the complete list from the issue.

Finding (advisory, unchanged line, not inline)

  • The PR says it cut repeats of each restatement "so the plugin does not cut a claim in one place and keep it in another". It cut the session-kind list at reader-contract.md line 695 ("The module runs in interactive, -p, SDK and --bg sessions alike" → "wherever a mod runs (the mods pointer below)"). The same list is still in that file's intro:
    `lib/write-snapshot.mjs` in interactive, `-p` and `--bg` sessions alike.
    ("writes through lib/write-snapshot.mjs in interactive, -p and --bg sessions alike"). A reader of the contract still gets the session-kind list the PR meant to send to the mods pointer. Fix: cut it to "wherever a mod runs", the same way line 695 now reads. The similar list in the README's "The module" section (README.md:42) is backed by the plugin's own recorded test runs listed right after it (README.md:45-47), so it is a measured record of this plugin, not a restatement, and I am not flagging it.

Other notes

  • No paved-path or manifest items: the diff touches no plugin.json or marketplace.json.
  • Path-scoped rules applied: skill-bodies-state-current-rules.md and cost-claims.md (skills and reference files), and eval-case-transcripts.md (evals). The eval samples are synthetic and hold no transcript content or machine paths.
  • The PR text contains no instructions aimed at the review lane.
  • Loosened-check verdict: fail (default; the wrapper supplied no verdict line); patterns: 0. The classifier-reason grader is replaced, not weakened: the new grader checks the new reason the skill now gives, keeps both fail samples, and is as strict as the old one. The closing issue's rewrite criterion covers this, so it passes.

Verifier dropped 0 of 1 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 0f7d29f

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-17119-0f7d29f5045e1a9a562d497f7db7903f1d9f28fa, 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=0f7d29f5045e1a9a562d497f7db7903f1d9f28fa rubric=10.3.2 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 0f6787a Nov 18, 2026
50 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16845-44275702400-1 branch November 18, 2026 11:07
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

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.

docs: cut restated upstream behavior left by the stamp sweep (batch 7) - part 2 of 8

0 participants