Skip to content

chore(check-plugin): remove the text budgets - #329

Merged
bfcarrasco merged 1 commit into
mainfrom
chore/remove-check-plugin-budgets
Dec 5, 2026
Merged

bfcarrasco merged 1 commit into
mainfrom
chore/remove-check-plugin-budgets

Conversation

@bfcarrasco

Copy link
Copy Markdown
Owner

Request

#319, from the spec #318 (owner's decision, 5 Dec 2026: the plugin's text budgets are removed).

  • The per-file, per-playbook, per-skill and total size budgets are gone from the check and from its tests.
  • Frontmatter, description length, links, plugin-root references and the public-content check still run and still fail as before.
  • The check still prints the total markdown size, so the weekly numbers can follow it.
  • Text that names the budget (the evals README, the CI step name, the README) says what holds now.
  • The PR says it weakens a check on the owner's decision and links this ticket.

Closes #319

Why

The markdown total sat exactly at its cap (64,848 of 64,848 bytes), so every addition first had to cut the same bytes elsewhere.

What changed

  • This weakens a check on the owner's decision (Orchestrator: one T3 Code thread that runs work in all repos from goal to merged #318, check-plugin: remove the text budgets #319): tools/check-plugin.mjs no longer fails on the size of any plugin markdown file or on the total.
  • It still prints ok: <n> markdown files, <total> bytes.
  • CI step renamed to "Plugin structure, markdown total and public-content check"; the evals README says the suite does not count in the printed total.
  • Tests: oversized markdown passes and the total is printed; frontmatter, a description over 400 characters, a broken link and a missing plugin-root file still fail.

Scope

  • The 400-character description limit stays. No plugin text cut or rewritten.
  • The root README never named the budget, so it is unchanged. The old "cut for the byte budget" line in judge-bench-cases.json is a recorded PR body, left as data.

Verification

  • node --test "tests/*.test.mjs": tests 904, pass 878, fail 0 (rest skipped).
  • node tools/check-plugin.mjs: ok: 28 markdown files, 64848 bytes.
  • The new size test against the base check-plugin.mjs: fail 1 (#319: markdown of any size passes and the total is still printed).

@bfcarrasco

Copy link
Copy Markdown
Owner Author

bstack-judge: PASS tier=1 sha=9af8a57e734de818def30d4bcf4b54d354b30a96

PR 329 passes. I found no blocking defects. Head SHA is 9af8a57.

Criteria and proof:

  • Budgets gone from the check and its tests: met. The diff deletes BUDGET, PLAYBOOK_BUDGET, SKILL_BUDGET and TOTAL_TEXT_BUDGET and the size loop. A repo-wide case-insensitive grep for "budget" and "Subtract before", with JSON files excluded, returns no matches.
  • Frontmatter, description length, links and plugin-root references still fail: met. node --test tests/check-plugin.test.mjs on head gives 12 pass, 0 fail. That includes four new check-plugin: remove the text budgets #319 tests, one per failure: missing frontmatter, a description over 400 characters, a broken link, and a missing plugin-root file. The public-content tests in the same file also pass. Only the size checks were removed from tools/check-plugin.mjs.
  • Total markdown size still printed: met. node tools/check-plugin.mjs prints ok: 28 markdown files, 64848 bytes. The new test pushes two fixture files of about 200 KB each through the check. It exits 0 and the output matches /^ok: \d+ markdown files, \d+ bytes$/ with a total over 400000.
  • Text naming the budget says what holds now: met. The CI step is renamed to "Plugin structure, markdown total and public-content check". The evals README and the header comment in tools/check-plugin.mjs are reworded. The root README had no budget text. The only remaining mention is the recorded PR body in judge-bench-cases.json, and the PR body says it is left as data.
  • PR says it weakens a check on the owner's decision and links the ticket: met. The body says "This weakens a check on the owner's decision (Orchestrator: one T3 Code thread that runs work in all repos from goal to merged #318, check-plugin: remove the text budgets #319)" and "Closes check-plugin: remove the text budgets #319".

New test fails on base: I restored the base tools/check-plugin.mjs and ran the suite. #319: markdown of any size passes and the total is still printed failed (fail 1). I then restored head.

Attack hypotheses, all dropped:

  • Another consumer of the old "of 64848" output format: the grep found none.
  • Other tests or scripts that rely on the budget error strings: none.
  • The new md.reduce with statSync: it reads the same files the old loop did. The test shows the total counts correctly.
  • The only other change is the CI step name. A grep found no other reference to the old name.
[]

@bfcarrasco
bfcarrasco merged commit e76b1ba into main Dec 5, 2026
4 checks passed
@bfcarrasco
bfcarrasco deleted the chore/remove-check-plugin-budgets branch December 5, 2026 17:17
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.

check-plugin: remove the text budgets

1 participant