You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
2026-11-29: A cap on the total size of the always-loaded instruction set (CORE-595). Before this, the instruction-growth gate limited only how many bytes one change added to the modelled set (CLAUDE.md, its @
imports, .claude/rules without paths:). Changes that each stayed under that budget could still pile up: this
repository's own CLAUDE.md went from 97,252 bytes to 186,861 bytes in twelve days in 2026-09/10. Every fresh stage
context pays for this set again (pharn/LIMITS.md §3g).
budget.instructionTotalBytes in pharn.config.json sets the cap. It is read from the base commit's copy, like budget.instructionGrowthBytes, so a change cannot raise its own cap. With no key there is no cap, so an
existing install behaves exactly as before. A value that is not a non-negative integer is threshold-malformed
(exit 2).
check-instruction-files.mjs --growth judges both budgets in one verdict, so /pharn-verify's instruction-growth
gate fails when the set's total is over the cap even if the change itself is small. The output now always carries total_bytes, total_cap, total_cap_source (config or unset) and exceeded (growth, total, both, or
neither).
Stated limits (pharn/LIMITS.md §3e, edited by a human in this release): the verdict is over the checker's model of
the set, not over what Claude Code loads. A set already over its cap fails every verify until a person raises the
cap or shrinks the set on the base branch; /pharn-loop does not check the cap at entry. While a cap is set, a set
that reaches a git submodule is submodule-unmeasured (exit 2), unless the bytes the checker can read are already
over the cap. If pharn update drops the key, the cap is off.
This repository sets the cap to 40,960 bytes (CLAUDE.md is 31,456 bytes). CI's existing instruction-growth step
applies it to pull requests opened after this one merges.
2026-11-29: A proposed pharn/LIMITS.md patch for what pharn status reports from pharn-cli 0.23.0 on: a
project settings file that sets "disableAllHooks": true, and a write guard wired without "onFailure": "block"
(CORE-594)..dev/features/hook-wiring-flags/proposed/ holds the patch and its APPLY.md, which maps each new
claim to the pharn-cli source line behind it. The patch rewrites §6's "nothing PHARN ships checks either file" and
adds a passage to §7's onFailure bullet, stating the report's bounds there. Nothing is applied: pharn-cli 0.23.0
is not published yet, and APPLY.md says to wait for it. No shipped file changes, so SKILLS_VERSION stays
7.29.1.