Skip to content

chore(settings): lower skillListingBudgetFraction to 0.06 after re-measuring the listing - #13454

Merged
kyle-sexton merged 3 commits into
mainfrom
chore/6846-listing-fraction
Nov 5, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
chore/6846-listing-fraction

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #6846

Summary

Lowers skillListingBudgetFraction in .claude/settings.json from 0.07 to 0.06, re-measured after #6476 closed, under the owner's Option A (decision): the smallest value that fits on a 1M window at 3 bytes per token with 15% headroom and no descriptions shed. docs/cloud-sessions.md states the new value and measurement.

Fix

Verification

Claude Code 2.1.318, claude-opus-5-5, contextWindow 1,000,000 in each session's result JSON. Capture audits ran audit_skill_visibility.py --installed --context-window 1000000 --bytes-per-token 3 --listing-capture <transcript> (the engine behind /harness-ops:audit-skill-visibility).

Session Fraction Budget at 3 bytes/token Captured listing Skills Shed
fresh, main checkout 0.07 210,000 114,261 225 0
fresh, this branch's worktree 0.06 180,000 114,261 225 0
probe, --settings override 0.03 90,000 89,974 225 48
  • The 0.03 probe truncated at 89,974 against 90,000, so this model runs at 3 bytes per token (at 4 the budget would be 120,000 and nothing would shed).
  • Done-when 1: CHECK_SKILL_LISTING_BUDGET_CHARS=180000 bash plugins/skill-quality/scripts/check-listing-budget.sh plugins/*/skills (this branch) reports OK — aggregate 138574/180000; headroom 1 - 138,574/180,000 = 23%.
  • Live headroom at 0.06: 1 - 114,261/180,000 = 36.5%.
  • The engine's verdict is fit-unconfirmed because of one longer_in_capture entry (claude-security:scan, which the capture renders longer than the engine counts it; the skill's own rule keeps the verdict fit-unconfirmed then); the capture itself shows 0 descriptions name-only.
  • markdownlint-cli2 docs/cloud-sessions.md: 0 issues.

Decision rule, disclosed. Before reading the live number, the Brief fixed: 15% headroom = listing <= 0.85 x 3,000,000 x f, candidates in steps of 0.01. Applied to the live listing alone that gives 0.05 (114,261 <= 127,500). Done-when 1 separately requires the static check over every listing-eligible repo skill to show 15% headroom, which 0.05 fails (138,574 > 127,500) and 0.06 meets, so 0.06.

Against the body's acceptance criterion 1 (at least 28,000 shorter than 177,000, so at most 149,000): the live listing is 114,261. Most of that drop is a smaller installed fleet (225 skills now against 302 competing on 2026-10-10), not trims: this repo's own skills fell about 8,000 characters (146,814 on 2026-10-11 to 138,574). The trim criterion was moved to #6476 by the 2026-10-12 scope note, and #6476's rewrite series was stopped by the owner on 2026-11-02.

Scope notes. The measurement is one WSL host's fleet: project-scope enabledPlugins is tracked, but user scope is partly per-host, so the doc says to re-measure. User scope (~/.claude/settings.json) sets no skillListingBudgetFraction, so there is no user-scope value to reassess. Problem and scope were taken as pre-confirmed by the owner's recorded decision (agent choice under the owner's standing direction, not a new owner answer).

Related

🤖 Generated with Claude Code

kyle-sexton and others added 3 commits November 5, 2026 01:27
…asuring the listing

A fresh claude-opus-5-5 session (1M window, Claude Code 2.1.318) lists
225 skills in 114,261 characters and sheds none at 0.06. A 0.03 probe
captured 89,974 characters against a 90,000 budget, confirming 3 bytes
per token. 0.06 is the smallest 0.01 step that keeps 15% headroom on the
1M/3 budget for both the live listing and all 268 listing-eligible repo
skills (138,574 characters, 23% spare at 180,000).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 5, 2026 06:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T06:33:35.022532Z 600eef1 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

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

Security review: no findings

I read every hunk of the three changed files and found no security issues.

  • .claude/settings.json (trusted path **/.claude/**): the only change is "skillListingBudgetFraction": 0.07 → 0.06 at line 61. The key only sizes how many characters of skill descriptions go into each turn's listing. It does not touch permissions, hooks, MCP servers, enabledPlugins, marketplaces or environment variables. Nothing new gets trusted, no token scope grows, and no new untrusted text reaches a lane, so no control is widened.
  • .github/workflows/pr-require-checks.yml (trusted path; its ci-status hold steps are a merge-hold control): one YAML comment line changed, near line 3306. It now says the fix is trimming descriptions instead of naming perf(skills): trim skill descriptions until the listing fits, then lower skillListingBudgetFraction #6846. No step, if:, permissions:, environment variable or script call changed, so no merge hold is weakened.
  • docs/cloud-sessions.md: the budget section's prose and measurement table are rewritten. No standing instruction or guardrail is deleted or softened, so the instruction-surface lens finds nothing to check against the exception register.

The PR context contained no embedded instructions aimed at this lane. There are no plugin manifest changes and no earlier findings from this lane (first review of this pull request, not blocking only).

Spend: a lower fraction makes each session's skill listing a little smaller, which slightly reduces subscription token use per turn. No real charge.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

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

Code review: PR #13454, lower skillListingBudgetFraction to 0.06

I read all three changed files in full: .claude/settings.json, .github/workflows/pr-require-checks.yml and docs/cloud-sessions.md. .claude/settings.json matches a trusted path (**/.claude/**), so I gave it a closer look. The only change there is the one numeric value, 0.07 → 0.06. Nothing else in that file changed.

Correctness checks I ran by hand on the numbers in the diff

  • New budget table: 1M×3×0.06 = 180,000; 1M×4×0.06 = 240,000; 750k×3×0.06 = 135,000; 750k×4×0.06 = 180,000; 200k gives 36,000 and 48,000. All match the doc.
  • "36% spare": 1 − 114,261/180,000 = 36.5%. Correct.
  • Why 0.06 and not 0.05: 0.85 × 150,000 = 127,500, which is below this repository's 138,574. 0.85 × 180,000 = 153,000, which is above it. The doc's claim that 0.06 is the smallest 0.01 step with 15% headroom holds.
  • The new workflow comment still fits the step below it. That step reads the fraction from settings. At 0.06 its 750k/4 basis gives 180,000, the same as the 1M/3 budget.
  • No other file in the repository still states 0.07 or names perf(skills): trim skill descriptions until the listing fits, then lower skillListingBudgetFraction #6846 as the owner of the trim.

Measurements are author-claimed, not verified. The 114,261-character capture, 0 descriptions shed, the 0.03 probe and the check-listing-budget.sh output of 138,574/180,000 come from the PR body. I had no shell, so I could not re-run any of them. The PR also says the engine's verdict was fit-unconfirmed, so the "0 shed" claim rests on reading the capture itself.

Closing issue #6846

Finding (advisory, cross-file): nothing can fail when criterion 2's 15% headroom is lost

  • Criterion 2 and Done-when 1 require at least 15% headroom on the 1M/3 budget. The only standing check is the scheduled step at pr-require-checks.yml#L3307-L3322.
  • That step is continue-on-error, report-only (the script always exits 0), and warns only at overflow, not when headroom drops below 15%.
  • The doc rewrite also removed the old "This is a stopgap" paragraph and its growth rate of about 1,620–1,700 description characters a day (docs/cloud-sessions.md#L255-L264).
  • At that rate, the repository's 138,574 characters pass the 153,000 line (85% of 180,000) in about 9 days. Nothing would turn red, and the doc no longer warns a reader that the margin erodes.
  • Suggested fix: keep a one-line growth or re-measure note in the doc, or file a follow-up for a check that fails at 15% headroom. Either keeps the criterion this PR closes from quietly lapsing.

Other checks

  • Path-scoped rules: .claude/rules/cost-claims.md applies to docs/**/*.md. The doc's character counts and headroom percentages are not prices or cost savings, so it passes.
  • Paved paths: the standards index has no paved-path row, so there is nothing to check.
  • Plugin manifests: none changed.
  • Prior findings: none; this is the first review of this PR.
  • Embedded text in the PR context: none that addresses this lane.
  • Spend: lowering the fraction shrinks the skill listing sent each turn, so per-turn context goes down slightly. There is no billing impact.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 5, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

claude-review finding (advisory): nothing fails when the 15% headroom is lost. CORRECT.

The rewrite dropped the stopgap paragraph's growth note, and the scheduled step reports overflow only. The fix is a doc sentence: growth erodes the margin with no check failing. It gives the July to September rate (1,620 to 1,700 characters a day), the fall from 146,814 (2026-10-11) to 138,574 (2026-11-05), and 153,000 as the line where 15% ends. No new check: the scheduled step already reports overflow, and the remedy for lost headroom is a person re-measuring.

This PR entered the merge queue at 06:46Z on this head, before the fix was pushed, and the queue refused the push. The sentence ships in a follow-up PR once this one merges, so the green, reviewed head is not dequeued.

Merged via the queue into main with commit 76c7ebb Nov 5, 2026
88 of 89 checks passed
@kyle-sexton
kyle-sexton deleted the chore/6846-listing-fraction branch November 5, 2026 06:57
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.

perf(skills): trim skill descriptions until the listing fits, then lower skillListingBudgetFraction

1 participant