Back to project回到專案

Permanent Loop Plan 永久迴圈計畫

synthesis Updated 2026-05-16

Phase 5 — Permanent Loop Install Plan

Mission Control authored. Sandbox restrictions prevent direct writes to ~/.claude/ and launchctl from inside this session. Phase 5 outputs are staged for Raychard to run from Terminal.app on wake.

What “permanent” means

The hackathon system being built IS the deliverable. Phase 5 freezes the parts that should run forever (or until v2 of the hackathon supersedes them).

4 install streams

StreamWhat it doesCadenceStatus
A. Identity patchesApply 7 × identity-update-patch.md to live cofounder identity filesOne-time (gated on Raychard review)🟡 staged, awaiting approval
B. Skill promotionMove 28 codified skills (7 × 4) into ~/.claude/skills/ namespaceOne-time per skill🟡 staged
C. Cadence loopslaunchd jobs for daily reflection + weekly retro + monthly synthesis-v2Continuous🟡 plist files staged
D. Knowledge pipelineContinue atomization → linking → sublimation as new cofounder work arrivesContinuous (existing rhcf-* daemons)🟢 running

Stream A — Identity patches (review-gated)

Each cofounder produced an identity-update-patch at outputs/phase4/{role}/identity-update-patch.md. They are non-breaking, additive. None auto-applies.

Raychard wake-time action (~45 min total, 7 × ~6 min review each):

  1. Read each outputs/phase4/{role}/identity-update-patch.md
  2. Approve / amend / reject per role
  3. Apply approved patches to /Users/raychard/.claude/agents/co-founders/{role}/identity.md

Recommended order (lowest-risk first): CGO → CFO → CPO → CTO → CSO → CEO → CAIO (CAIO last because its patch is gated on first held-out eval at T+45 per CAIO orchestrator-flag).

Stream B — Skill promotion

28 skills produced under outputs/phase4/{role}/skills/. Target paths:

Each skill file already has Claude Code skill frontmatter. Promotion = copy or symlink.

Recommended approach: symlink from outputs/phase4 into ~/.claude/skills so iterations to the corpus auto-reflect. Sandbox blocks ln against ~/.claude/ from inside session, so Raychard runs the staged shell script outputs/phase5/scripts/promote-skills.sh in Terminal.

Stream C — Cadence loops (launchd)

Three launchd jobs staged at outputs/phase5/launchd/:

  1. com.rh.cofounders.daily-reflection.plist — fires 23:30 daily. Runs cofounder-daily.sh which:

    • Reads day’s audit/cozempic events
    • For each cofounder, asks: “what fired today? what should have but didn’t?”
    • Appends to ~/Dev/RH-CoFounders/journal/daily/{YYYY-MM-DD}.md
    • No external network. Local Claude session via claude --bg.
  2. com.rh.cofounders.weekly-retro.plist — fires Sunday 22:00. Runs cofounder-weekly.sh which:

    • Each cofounder writes 200-word status (what compounded, what didn’t)
    • CEO synthesizes into ~/Dev/RH-CoFounders/journal/weekly/{YYYY-WW}.md
    • Pairing suggestions for next week’s cross-pollination
  3. com.rh.cofounders.monthly-synthesis-v2.plist — fires 1st of month 02:00. Runs cofounder-monthly.sh which:

    • Each cofounder reads journal/daily for past month
    • Produces synthesis-v{N+1}.md if material drift
    • Otherwise notes “no drift, synthesis-v1 holds”

Install command (Raychard runs in Terminal):

cp ~/Dev/RH-CoFounders/briefs/2026-05-16-36hr-cofounder-hackathon/outputs/phase5/launchd/*.plist ~/Library/LaunchAgents/
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.rh.cofounders.daily-reflection.plist
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.rh.cofounders.weekly-retro.plist
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.rh.cofounders.monthly-synthesis-v2.plist

Stream D — Knowledge pipeline (already running)

The rhcf-* daemons (extractor, curator, evolver, federator) already do atomization → linking → sublimation. Hackathon corpus is now indexed by:

One-time backfill action: feed atoms.jsonl into rhcf.db. Script staged at outputs/phase5/scripts/backfill-atoms-to-sqlite.sh.

Cross-mesh promotion (CEO synthesis §5 recommendation)

Once Stream A applied, each cofounder can [[cite]] peer atoms. Implementation:

Retrieval-bridge fix (per CTO Phase-2 maestros-self-application D1): investigate mcp_not_registered errors in ~/.claude/audit/retrieval-failures.jsonl. This is the prerequisite for cross-mesh promotion to work end-to-end. Mark as blocker in handoff.

What is explicitly NOT being installed

Per debate-5 master verdict (MaestrOS internal-only), the following are deferred:

Per CPO stop-the-line skill: until external persona + reference customer + opportunity assessment exist, productization features are blocked.