@@ -471,75 +471,97 @@ git push origin gh-pages --force
471471
472472## Ralph Autonomous Development (MANDATORY)
473473
474- ** ALL development MUST go through Ralph. ** This saves time by enforcing quality gates, tech tree navigation, memory consultation, and structured workflows automatically.
474+ ### Single Source of Truth: GitHub Issues
475475
476- ### Why Ralph-Only
476+ ALL work flows through GitHub Issues. No internal task queues, no ` fix_plan.md ` as primary source.
477477
478- | Without Ralph | With Ralph |
479- | --------------| -----------|
480- | Manual quality checks | Automated gates (build + test + format) |
481- | Forget to update tech tree | Tree updated every cycle |
482- | Repeat past mistakes | REGRESSION_PATTERNS.md consulted |
483- | No structured progress | fix_plan.md + TECH_TREE.md tracking |
484- | Commits to main | Feature branches enforced |
478+ | Component | Role |
479+ | -----------| ------|
480+ | ** GitHub Issues** | Task queue, status tracking, progress |
481+ | ** GitHub Projects** | Board view (VIBECODER #6 ) |
482+ | ** GitHub PRs** | Code delivery, auto-closes issues on merge |
483+ | ** MCP Swarm** | Execution engine (Zig, 11+ tools) |
484+ | ** Oracle Watchdog** | 24/7 monitoring → Telegram @vibee_dev_bot |
485+
486+ ### How Work Happens
487+
488+ 1 . ** Issue created** with ` assign:ralph ` label → appears on VIBECODER board
489+ 2 . ** Agent picks issue** → ` gh issue edit N --add-label status:in-progress `
490+ 3 . ** Agent creates branch** → ` ralph/w{N}/{slug} `
491+ 4 . ** Agent works** → VIBEE-first: spec → gen → test → assess
492+ 5 . ** Agent creates PR** → ` Closes #N ` in body, all metadata filled (RULE #20 )
493+ 6 . ** General reviews** → merge → issue auto-closes → board updates
494+ 7 . ** Oracle reports** → Telegram notification of progress
495+
496+ ### Issue Requirements (RULE #19 )
497+
498+ Every issue MUST have:
499+ 1 . Assignee
500+ 2 . Labels: ` assign:ralph ` + ` priority:P0-P3 ` + ` status:pending `
501+ 3 . Milestone: current active milestone
502+ 4 . Project: VIBECODER (#6 )
503+ 5 . Relationship: linked to parent epic
504+
505+ ### PR Requirements (RULE #20 )
506+
507+ Every PR MUST have:
508+ 1 . Assignee
509+ 2 . Labels (same as linked issue + ` status:in-progress ` )
510+ 3 . Milestone
511+ 4 . Reviewer: gHashTag
512+ 5 . Body: ` Closes #N ` for linked issues
513+ 6 . Project: VIBECODER (#6 )
514+
515+ ### Branch Strategy
516+
517+ - ` main ` — protected, merge only via PR
518+ - ` ralph/w{N}/{issue-slug} ` — agent worktree branches
519+ - Never push to main directly
520+
521+ ### MCP Swarm Tools
522+
523+ | Tool | Purpose |
524+ | ------| ---------|
525+ | ` swarm_task_add ` | Creates GitHub Issue + links to parent |
526+ | ` swarm_task_get ` | Gets next pending issue |
527+ | ` swarm_status ` | Reads GitHub API, returns board state |
528+ | ` swarm_heartbeat ` | Comments progress on issue |
529+ | ` swarm_register ` | Register agent in swarm |
530+ | ` swarm_agents ` | List active agents |
531+ | ` oracle_start/stop/status ` | Control Telegram watchdog |
485532
486533### Configuration
487534
488535```
489536.ralph/
490537├── PROMPT.md # Autonomous work instructions
491538├── AGENT.md # Build/test/run commands
492- ├── RULES.md # Universal development guardrails (16 sections)
493- ├── TECH_TREE.md # Tech tree navigation (35 nodes, 6 branches)
494- ├── fix_plan.md # Current sprint tasks with acceptance criteria
495- ├── SUCCESS_HISTORY.md # Working patterns + commit hashes
496- ├── REGRESSION_PATTERNS.md # Anti-patterns + root causes
539+ ├── AGENTS.md # Agent work rules (GitHub Issues lifecycle)
540+ ├── RULES.md # Universal development guardrails (22 rules)
541+ ├── TECH_TREE.md # Tech tree navigation
542+ ├── memory/
543+ │ ├── SUCCESS_HISTORY.md # Working patterns + commit hashes
544+ │ └── REGRESSION_PATTERNS.md # Anti-patterns + root causes
497545├── specs/ # Ralph-specific specs
498- ├── examples/ # Workflow examples
499- ├── logs/ # Execution logs
500- └── docs/generated/ # Auto-generated docs
546+ └── logs/ # Execution logs
501547.ralphrc # Runtime settings (tools, timeouts, gates)
502548```
503549
504- ### How to Use
505-
506- ``` bash
507- # 1. Add task to .ralph/fix_plan.md (with acceptance criteria)
508- # 2. Start Ralph
509- ralph --monitor
510-
511- # Ralph will:
512- # - Read TECH_TREE.md, fix_plan.md, SUCCESS_HISTORY.md, REGRESSION_PATTERNS.md
513- # - Pick highest-priority task
514- # - Create ralph/<task-slug> branch
515- # - Implement via Golden Chain cycle (spec → gen → test → assess → tree → commit)
516- # - Run quality gates (build + test + format)
517- # - Update tech tree and memory files
518- # - Loop until EXIT_SIGNAL = true
519- ```
520-
521- ### Commands
522-
523- ``` bash
524- ralph --monitor # Start with live monitoring dashboard
525- ralph --help # Show options
526- ralph-enable # Enable Ralph in project
527- ralph-import prd.md # Convert PRD to Ralph tasks
528- ```
529-
530550### Safeguards
531551
532- - Rate limiting: 100 calls/hour (configurable)
533- - Circuit breaker: 3 no-progress loops → cooldown
534- - Branch safety: never commits to main
535- - Quality gates: build + test + format before every commit
552+ - Circuit breaker: 5 no-progress loops → OPEN
553+ - Branch safety: hooks warn on main branch
554+ - Quality gates: build + test + format before commit
536555- Memory: consults SUCCESS_HISTORY and REGRESSION_PATTERNS every loop
537- - Dual-condition exit: heuristic indicators + explicit EXIT_SIGNAL
556+ - GOD MODE: ` /god-mode ` skill for full dashboard
557+ - Oracle: 24/7 Telegram monitoring
538558
539- ### Current Task (via Ralph )
559+ ### Automation (GitHub Actions )
540560
541- ** VSA Mathematical Framework** — proofs + optimizations for bind/unbind/bundle, multilingual code gen.
542- See ` .ralph/fix_plan.md ` and ` .ralph/TECH_TREE.md ` for details.
561+ | Workflow | Trigger | Action |
562+ | ----------| ---------| --------|
563+ | ` project-auto-add.yml ` | Issue/PR labeled | Auto-add to VIBECODER board |
564+ | ` project-auto-status.yml ` | PR merged / Issue closed | Auto-move to Done |
543565
544566Repository: https://github.com/frankbria/ralph-claude-code
545567
@@ -599,6 +621,7 @@ Full Claude Code modernization: MCP servers, custom skills, automation hooks, pa
599621| ** trinity** | ` zig-out/bin/trinity-mcp ` | 35+ (codegen, math, git, sacred, omega) | ` .mcp.json ` |
600622| ** needle** | ` zig-out/bin/needle-mcp ` | 6 (structural_replace, search, quality_gates, preview, batch_edit, autonomous_refactor) | ` .mcp.json ` |
601623| ** zig-docs** | ` npx @nichochar/zig-mcp ` | 4 (list/get builtins, search/get std lib) | ` .mcp.json ` |
624+ | ** railway** | ` npx @railway/mcp-server ` | deploy, logs, env vars, domains, services | ` .mcp.json ` |
602625| ** vibee** | ` vibee/gleam/run_mcp.sh ` | VIBEE compiler tools | ` ~/.claude/settings.json ` |
603626| ** neon** | ` npx @neondatabase/mcp-server-neon ` | Database management | ` ~/.claude/settings.json ` |
604627
@@ -610,6 +633,8 @@ Full Claude Code modernization: MCP servers, custom skills, automation hooks, pa
610633| ` /vsa-verify ` | VSA mathematical proof verification | ` .claude/skills/vsa-verify/SKILL.md ` |
611634| ` /vibee-gen ` | Generate Zig/Verilog from .vibee specs | ` .claude/skills/vibee-gen/SKILL.md ` |
612635| ` /trinity-test ` | Run test suites with analysis | ` .claude/skills/trinity-test/SKILL.md ` |
636+ | ` /god-mode ` | Agent monitoring dashboard (GOD MODE) | ` .claude/skills/god-mode/SKILL.md ` |
637+ | ` /railway-ssh ` | Railway cloud server management | ` .claude/skills/railway-ssh/SKILL.md ` |
613638
614639### Automation Hooks (6 events)
615640
@@ -641,7 +666,12 @@ Full Claude Code modernization: MCP servers, custom skills, automation hooks, pa
641666
642667| Variable | Value | Purpose |
643668| ----------| -------| ---------|
644- | ` TRINITY_PROJECT_ROOT ` | ` /Users/playra/trinity-w1 ` | Project root for hooks/scripts |
669+ | ` GH_TOKEN ` | (secret) | GitHub API for swarm tools |
670+ | ` TELEGRAM_BOT_TOKEN ` | (secret) | Oracle → Telegram |
671+ | ` TELEGRAM_CHAT_ID ` | ` 144022504 ` | Oracle chat target |
672+ | ` ORACLE_ENABLED ` | ` true ` | Auto-start Oracle on MCP init |
673+ | ` GITHUB_OWNER ` | ` gHashTag ` | Repo owner for swarm |
674+ | ` GITHUB_REPO ` | ` trinity ` | Repo name for swarm |
645675| ` ZIG_VERSION ` | ` 0.15 ` | Zig version constraint |
646676| ` TRINITY_MCP_PORT ` | ` 8899 ` | MCP server port |
647677
@@ -652,7 +682,7 @@ Trinity packaged as Claude Code plugin in `.claude-plugin/`:
652682```
653683.claude-plugin/
654684 plugin.json # trinity-vsa-framework v1.0.0
655- skills/ # 4 custom skills
685+ skills/ # 6 custom skills
656686 hooks/hooks.json # 6 hook events (all synced with global)
657687 .mcp.json # trinity + needle + zig-docs servers
658688```
0 commit comments