feat(pst): add Rule 25 context hygiene and output compression#73
Merged
Conversation
Inspired by headroom (headroomlabs-ai/headroom). Adds bash output limiting, content-type routing, CCR pattern (scratchpad-backed), accurate prefix-cache guidance, and verbosity-at-tail heuristic. Numbered 25 (Rule 24 = Best-of-N tournament). Stage 0.5 pre-flight updated to apply Rule 25 heuristics when assembling context bundles. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Owner
Author
|
pst:ready attestation -- tournament winner: Strategy A (15/15) Auto-validated test plan items:
CI: lint pass. Open threads: 0. Ready to merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SKILL.md: context hygiene and output compression, covering pre-execution bash output limiting, content-type routing, and a ~50-line skip threshold. Numbered 25 (Rule 24 is already Best-of-N tournament).REFERENCE.mdwith: pre-execution limiting examples (table), content-type routing table, CCR pattern grounded in the session scratchpad, accurate Anthropic prefix-cache note, and verbosity-at-tail drafting heuristic.Inspired by headroom. Adversarial-reviewed; five findings addressed (removed inapplicable recency clause, replaced 250-token threshold with ~50-lines, corrected prefix-cache claim, grounded CCR in Read tool + scratchpad, reframed verbosity-at-tail as a heuristic).
Test plan
/pstloads without errors; Rule 25 appears in doctrinescripts/pst-emdash.rb check)🤖 Generated with Claude Code