Skip to content

PE hyperstack: wire bro into ecosystem - transitions, markers, persistence, output bar - #130

Merged
KailasMahavarkar merged 1 commit into
mainfrom
f-PE-hyperstack-bro-ecosystem
Jul 18, 2026
Merged

PE hyperstack: wire bro into ecosystem - transitions, markers, persistence, output bar#130
KailasMahavarkar merged 1 commit into
mainfrom
f-PE-hyperstack-bro-ecosystem

Conversation

@KailasMahavarkar

Copy link
Copy Markdown
Collaborator

Deeper analysis found bro absent from all 6 ecosystem wiring layers (harness router/transitions/context-policy, hyper agent docs, compiler markers) - a persona that could silently drop from the bootstrap and had no defined transitions. This PR wires bro into Hyperstack properly, adds a persistence contract ("holds always"), and makes the visual-output bar falsifiable. Two new subagent pressure tests (diagram quality, persistence drift) ran against the result - both PASS.

Ecosystem wiring

Layer Change
src/internal/context-compiler.ts "bro" added to REQUIRED_BOOTSTRAP_MARKERS - compile now fails if bro drops from the bootstrap
harness/transitions.md allowed: hyper -> bro persona, bro persona -> hyper; disallowed: bro persona -> ship / deliver
harness/router.md Generalist Persona routing rule (pm-gate precedent)
harness/context-policy.md bro context slice: cached tool inventory, active sub-problem set, evidence, targeted slices
skills/bro/SKILL.md "Position in the Hyperstack ecosystem" table: engaged by hyper, MCP-first per the 1% rule, gates via hyper, full skill-substrate mapping; scientist trait extends but never exempts MCP grounding
personas/bro/LIFECYCLE.md hyperstack-native step in session bootstrap

Persistence (holds always)

  • Active every response until explicit user disengage or hyper reclaim; re-anchor on Bro Law + voice table each response.
  • Compression survival: re-read the skill when the contract is no longer verbatim in context.
  • Drift REPAIR clause: on noticing drift, audit recent turns for artifact damage (poisoned comments, unverified claims) and fix in-task - tone snap-back alone is half a fix.
  • Scheduled checkpoint every ~10 turns and post-compression (a drifted bro is the least likely to notice its own drift).
  • Comment rule clarified state-based: prior poisoning gets trimmed on touch, including bro's own.

Output style made falsifiable

Fenced blocks mandatory; single-width glyphs only inside diagram rows (no tabs/CJK/emoji); rows sharing a rail must match char count up to the rail, verified by counting two rows per diagram BEFORE emitting.

Pressure-test evidence

Scenario Result
Diagram quality (JWT auth flow, 3 parties, lifecycle) PASS - 3 box diagrams + 4 padded tables; agent verified alignment by literal char counts (rails at fixed columns, all rows matched); flagged the output-style section as unfalsifiable - closed by this PR
Persistence drift (3 drifted prior turns injected) PASS - re-anchored silently per contract, surfaced turn-40 artifact debt (comment poisoning + unverified "should work") and scheduled repair in-task; flagged missing drift-repair clause and checkpoint - both added by this PR

Verification

  • bun test: 86 pass, 0 fail
  • bun run compile:context: succeeds with the new bro marker enforced
  • em-dash sweep on all touched files: clean

… output bar

Ecosystem (bro was absent from all 6 wiring layers):
- context-compiler: 'bro' added to REQUIRED_BOOTSTRAP_MARKERS - persona
  can no longer silently drop from the compiled bootstrap
- harness/transitions: hyper -> bro persona / bro persona -> hyper
  allowed; bro -> ship / deliver disallowed
- harness/router: generalist-persona routing rule
- harness/context-policy: bro context slice
- SKILL: 'Position in the Hyperstack ecosystem' table - MCP-first per the
  1% rule, gates via hyper, derived alternatives compete with MCP ground
  truth but never replace consulting it
- LIFECYCLE: hyperstack-native session bootstrap step

Persistence ('holds always'):
- active every response until explicit disengage or hyper reclaim
- re-anchor on Bro Law + voice table every response; generic-assistant
  drafts fail the voice check
- drift REPAIR: audit recent turns for artifact damage and fix in-task
- scheduled checkpoint every ~10 turns and after compression
- comment rule clarified as state-based (repair prior poisoning on touch)

Output style made falsifiable: fenced blocks mandatory, single-width
glyphs only in rows, rail char-count verification before emitting.

Pressure evidence: diagram scenario PASS (3 diagrams, alignment verified
by literal char counts); persistence scenario PASS (drift re-anchored
silently, artifact debt surfaced and repaired). Both self-reports' gaps
closed by this commit.
@KailasMahavarkar
KailasMahavarkar merged commit c9e9be8 into main Jul 18, 2026
@KailasMahavarkar
KailasMahavarkar deleted the f-PE-hyperstack-bro-ecosystem branch July 18, 2026 09:16
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.

1 participant