PE hyperstack: one framework - personas auto-triggered, compiled from manifests - #133
Merged
Merged
Conversation
…rom manifests
Personas, skills, MCP, roles declared and wired as ONE framework:
- Bootstrap critical block: Three-Layer Ecosystem -> ONE framework with
four layers; 1% Rule extended to persona triggers ('the user never has
to name them')
- Personas layer now GENERATED from personas/<id>/persona.json manifests
(single source of truth): id, mode, description, full engages_when
trigger table compiled into every session's bootstrap. Hand-maintained
bullets in skills/hyperstack/SKILL.md removed (drift killed) - proof:
a manifest trigger edit reaches the bootstrap with zero SKILL.md edits
- persona.schema.json + all 4 manifests gain description field
- Markers extended: marketing, reflect, Triggers: guarded at compile
- Gate semantics hardened from live-test gaps: PASS requires evidence
(populated fields = NEEDS-INPUT), 'acting' defined (inspection and
classification only pre-gate), net-new vs tweak boundary stated
Also folded in (user feedback):
- bro sidekick format: quote-block with kanji breakdown + how natives
ACTUALLY use the word + simplified usage - never a dense run-on line
- reflect reviews features too (shipped or planned): value verdict
(want it / don't care / against + the one flipping condition), never
invented-UI commentary; screens still get the react; panel mode works
on features (value collisions)
Pressure evidence: hyper agent given only the compiled bootstrap and
'build a referral program' (no persona named) auto-engaged product-manager
per the trigger line, ran 4 product_manager_* MCP tools, held the gate
NEEDS-INPUT for lack of evidence, and queued the full skill pipeline
post-PASS. Its 5 reported wording gaps: top 4 closed here.
87 tests pass; compiler invariant test now feeds an explicit minimal
manifest (compiler stays pure via injectable personas param).
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.
Unifies MCP + skills + roles + personas into one declared Hyperstack framework, and makes personas AUTO-TRIGGER: the compiled bootstrap now carries the full trigger table generated from persona manifests, so
hyperengages a persona the moment a trigger matches - the user never has to name it.The sync problem this solves
personas/<id>/persona.jsonheldengages_whentriggers that never reached the runtime context; the bootstrap's persona bullets were hand-maintained prose inskills/hyperstack/SKILL.md- two sources, guaranteed drift, and no deterministic trigger list in front of the agent.Proof of sync: a trigger appended to
bro/persona.jsonappeared in the recompiled bootstrap with zero SKILL.md edits.Changes
context-compiler.tscompilePersonaLines()generates the Personas layer fromloadPersonas()(injectable param keeps the function pure for tests); gates sorted first; markers extended (marketing,reflect,Triggers:)skills/hyperstack/SKILL.mdpersona.schema.json+ 4 manifestsdescriptionfield (compiled into the bootstrap bullet)Pressure-test evidence
hyperagent, given only the compiled bootstrap and "let's add a referral program - build it" (no persona, skill, or gate named):product-manager, quoting the exact trigger line ("net-new feature; build request")product_manager_*MCP tools, then HELD the gate at NEEDS-INPUT because its own assessments lacked evidence - even though the MCP resolve tool returned a mechanical PASSVerification
bun test: 87 pass, 0 fail (compiler invariant test feeds an explicit minimal manifest)tsc --noEmit: clean