Skip to content

docs(context-budget): record 2.1.330 lean-prompt rule for unrecognized names and the =0 setting - #17864

Merged
kyle-sexton merged 3 commits into
mainfrom
work-resolve-issue/issue-17836-44882488084-1
Nov 21, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
work-resolve-issue/issue-17836-44882488084-1

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #17836

Summary

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

The lean-prompt probe record said the selector falls back to a legacy model-id list, so an unrecognized name containing sonnet or haiku could get the full prompt. The 2.1.330 changelog makes those names get the shorter prompt like other unrecognized names, and CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=0 gives every model the full prompt. The record now says this, citing the changelog and the env-vars row. The simple-system-prompt lever in levers.json now describes =0 beside =1 in its mechanism and in a new caveat. =0 adds weight, so the caveat says it is never the emitted config and only explains a full-prompt baseline. The 2.1.296 probe observation is kept and dated separately, because this run did not re-probe a 2.1.330 binary. The lever's conditions field still names no model or version, as levers.test.sh requires.

Not verified

  • Tidy skipped: the change spans 2 areas (docs/upstream and plugins/context-budget), over the tidy cutoff of 1 area.
  • Did not re-probe a 2.1.330 binary (no claude binary probe in this lane). The record's 2.1.296 capability-table observation stands, dated, and the 2.1.330 rule is labeled docs-sourced, not re-probed.
  • check-affected skipped comment-hygiene (fetching from raw.githubusercontent.com was denied), size-check (script missing in the lane), typos (not installed), and the validate-plugins/changed-skills sub-steps that run code from the checked tree. These are left to the PR's CI.
  • levers.test.sh was not run directly (the lane allows no interpreter). The review checked its conditions constraints by hand. Left to the PR's CI.

Fix

  • docs/upstream/claude-code-lean-prompt-selector.md: Observation section drops the legacy-fallback claim. It states the 2.1.330 rule (unrecognized names, sonnet/haiku included, get the shorter prompt), what =0 does, and the env-vars row's unset defaults. The As of line separates the 2.1.296 probe… The opening sentence now says the env-vars docs name the default only by model family, and no docs page lists it per model id, matching the lever's conditions field.
  • plugins/context-budget/skills/audit/reference/levers.json: simple-system-prompt mechanism covers =1 and =0. A new caveat describes =0 (also false/no/off) as forcing the full prompt and never emitted. The conditions field now says the env-vars row names the default by model family only. verified…
  • plugins/context-budget/skills/audit/scripts/levers.test.sh: the simple-system-prompt check now requires the mechanism or caveats to describe =0 and the emitted config never to carry =0. A new check reads the probe record (skipped where the record is absent, as in an installed plugin copy) and requires it to name CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=0 and the unrecognized-name rule, with no legacy or fallback model-id claim.
  • .changes/context-budget/work-resolve-issue-issue-17836-44882488084-1-e401d9e9.md: patch changelog fragment for context-budget

Verification

The runner ran each check from the base copy against 9b8bf41:

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

The run reports:

  • read https: //code.claude.com/docs/en/changelog: 2.1.330 'Changed unrecognized model names containing "sonnet" or "haiku" to use the shorter system prompt, like other unrecognized names; CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=0 gives every model the full one'
  • read https: //code.claude.com/docs/en/env-vars: CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT row. Unset gives Haiku 4.5, Sonnet 5, Opus 4.7 and earlier the full prompt and newer models the shorter one. 1 gives the shorter prompt on any model. 0/false/no/off give the full prompt on any model, even where an…
  • check-changelog-fragments: all 5 fragments valid (after adding the missing ### Fixed heading)
  • check-changed-skills: context-budget audit PASS, 0 errors, 3 warnings (warnings existed before this change: description length, body size)
  • check-affected: 14 passed, 9 skipped, 0 failed
  • fresh-context review subagent over the three changed files: no findings. It checked the claims against both pages and the conditions field against the levers.test.sh constraints.
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44882488084

Left out: the items under Not verified.

Related

#17836

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

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs

Run 44883859096, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44883859096

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental, blocking only): no security issues found

This review covers only the changes since 3f3de152fe516ad33911fd3f4120e337572ca2ac. One file is in scope, and I read its whole change. This lane already reviewed an earlier head, so this review reports only CRITICAL and IMPORTANT findings. It found none.

What changed

Other checks

  • Instruction surface: no standing instruction is deleted, narrowed or softened.
  • Trust controls: no trust control, token scope, kill switch, merge hold or plugin manifest is touched.
  • Prior findings: the lane's earlier posts reported no findings, so nothing carries forward.
  • PR context: it holds no embedded directives aimed at this lane.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 9b8bf41933c76b12fb7205b84b260b5773adb7c3. 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)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 3 inline finding(s) on 9b8bf41933c76b12fb7205b84b260b5773adb7c3; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #17864 (incremental, 3f3de15..5558e60)

No blocking findings in this push. This lane already reviewed an earlier head, so this review only looked for blocking findings.

What changed: the one file in scope is plugins/context-budget/skills/audit/scripts/levers.test.sh, and I read its whole change. The push adds a single comment line (L171) with the full URL of issue #17836, directly under the existing # #17836: comment above the probe-record check. It starts with # inside a shell comment block, so the test does exactly what it did before. The commit message says this push fixes failing CI checks. A comment line that links an issue fits a lint that wants full issue URLs in comments, but I couldn't see the CI output to confirm that.

Earlier threads: all three threads from earlier reviews are resolved, and their lines have not changed since they were resolved. This push touches none of them.

Closing issue #17836: this push doesn't change how the PR meets the issue's criteria. They are still met, and tests still cover them, as the previous review of this lane found.

Not verified: this lane has no shell, so I did not run levers.test.sh or any lint. That CI now passes is the author's claim and I have not confirmed it.

Policy lines:

  • Loosened checks would be marked: fail. That is the default, because the prompt had no loosened_check_verdict: or loosened_check_patterns: line; patterns: 0. I did not check the citation requirement, because the prompt had no loosened_check_decision_record: line. This push adds a comment and weakens no check.
  • No plugin manifest changed. No paved-path entry applies. The changed line has no text addressed to the review lane.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback

Run 44884816201, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44884816201

Failed GitHub API calls

No failed call recorded by the run job's scripts.

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM66UHB8
Lane-Thread: PRRT_kwDOTCGFQM66UHCB
Lane-Thread: PRRT_kwDOTCGFQM66UHCH
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch

Run 44884816201, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 3f3de15
Run 44884816201

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 3f3de15.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback

Run 44884816201, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44884816201

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci

Run 44886054346, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44886054346

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-patch

Run 44886054346, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 5558e60
Run 44886054346

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 01c2a09 Nov 21, 2026
45 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-17836-44882488084-1 branch November 21, 2026 09:13
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: lean prompt selector gives unrecognized sonnet/haiku names the shorter prompt (2.1.330)

1 participant