PE hyperstack: token economy (lite) register with hard never-compress gate - #134
Merged
Merged
Conversation
…compress gate Default output register compiled into every session's bootstrap: say it once, fewer words, grammar intact (lite, not caveman - words never break). Compress ONLY prose glue: preamble, restating, hedging, narration, option lists without a verdict. NEVER compress (hard gate, marker-guarded): diagrams/tables/visuals (padding rules stay), evidence (command output, errors, verification lines, numbers, ids), code/config, security + irreversible-action warnings, anything whose omission could change a decision. Seams closed from live pressure test: visuals are mandated where they beat prose (gate protects them once they exist AND requires them); user brevity requests compress prose only - they never touch the NEVER list; clarity beats economy on conflict. Compiler: extractOptionalSection (missing section tolerated in synthetic sources, real absence caught by new markers 'Token Economy' + 'NEVER compress'). Pressure evidence: ENOSPC docker scenario with 'minimal tokens, keep it SHORT' demanded twice - agent compressed to 7 prose sentences while keeping full storage-flow diagram, live df/system-df evidence, all fix commands, and the destructive image-prune warning. 87 tests pass.
KailasMahavarkar
added a commit
that referenced
this pull request
Jul 18, 2026
…rsona refs, trigger dedup, changelog (#135) Deep coherence pass over the whole system after #126-#134: - skills/hyperstack/SKILL.md: stale 3-persona Layer 4 table KILLED (not updated - updating recreates the drift class); replaced with pointer to the manifest-compiled registry - README: Three-Layer -> Four-Layer Framework; Layer 4 Personas section added; Product & Growth plugin row added; tool count corrected 80 -> 118 (measured by registering all 16 plugins against a counting mock) - summary.md: four-layer phrasing - reflect manifest: 12 overlapping trigger phrasings deduped to 5 canonical (bootstrap 11224 -> 11011 chars) - CHANGELOG: [Unreleased] block covering all 9 unreleased feature PRs - release debt now visible instead of silent Verified live during the pass: audit harness clean (0 major-behind, 0 lint findings), all 5 platform manifests consistent at 1.3.2, Dockerfile persona-absence is not a bug (server runtime never loads personas - compile-time only). 87 tests pass, tsc clean. Known-and-deliberate: ghcr :main image stale while Actions stay disabled; release pin to 1.4.0 left as an explicit user decision.
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.
Adds a Token Economy (lite) register to the Hyperstack bootstrap: economical prose by default, with a hard never-compress gate so economy cannot eat visuals, evidence, code, or safety content. Lite means fewer words, never broken words - grammar stays intact (distinct from any user-level caveman tooling).
Design
Token Economy+NEVER compressmarkers - the section cannot silently drop from the bootstrapextractOptionalSectionlets synthetic test sources omit the section; real absence still fails compile via markersThe gate
Compress ONLY: preamble, restating, hedging, narration, connective prose, option lists without a verdict.
NEVER compress: diagrams/tables/visuals (full padding rules), evidence (command output, errors, verification lines, numbers, ids), code/config, security + irreversible-action warnings, anything whose omission could change a decision.
Seam-closers from the live test: visuals are mandated where they beat prose (not just protected once they exist); user brevity requests ("SHORT", "minimal tokens") compress prose only - they never touch the NEVER list; clarity beats economy on conflict.
Pressure-test evidence
Scenario: docker ENOSPC error, user demands "minimal tokens" and "keep it SHORT" twice, but asks for storage-flow explanation + fix commands.
df+docker system dfevidence (agent ran the commands), 4 fix commands + verify step, destructiveimage prune -awarning.Verification
bun test: 87 pass, 0 failbun run compile:context: succeeds with new markers enforced