Commit Graph

937 Commits

Author SHA1 Message Date
Steve Yegge
7caf3ff28e bd sync: 2025-12-23 15:57:06 2025-12-23 15:57:06 -08:00
Steve Yegge
143959943b bd sync: 2025-12-23 15:56:29 2025-12-23 15:56:39 -08:00
Steve Yegge
76697c5105 bd sync: 2025-12-23 15:05:40 2025-12-23 15:56:39 -08:00
Steve Yegge
3e72146673 Clarify molecule vs epic distinction in beads-data-plane.md
The document conflated epics and molecules. This revision:
- Explains molecules as the general abstraction for executable work
- Introduces the concept of molecular shapes (Epic, Christmas Ornament, etc.)
- Clarifies that epics are just ONE shape (a simple TODO list pattern)
- Adds the key insight: All epics are molecules. Not all molecules are epics.
- Explains why the data plane stores all shapes the same way
- Updates Related Documents with better descriptions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 15:24:16 -08:00
Steve Yegge
c8bb8ac6b9 Add Dependency Trap warning to all gt prime role templates
Temporal language like "Phase 1 blocks Phase 2" triggers incorrect
dependency direction. Added a concise warning to all 6 role templates
(crew, polecat, mayor, witness, refinery, deacon) reminding agents:
- Think "X needs Y", not "X comes before Y"
- Verify with `bd blocked`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 15:13:32 -08:00
Steve Yegge
683989dfd8 Add session-lifecycle.md: unified context cycling model
Documents foundational architecture for session lifecycle:
- Single-Bond Principle (one bead ≈ one session)
- Context Budget Model (what N-heuristics really proxy for)
- Unified cycling model across all roles
- Mid-step handoff mechanics
- Happy Path (decomposition) vs Sad Path (compaction)
- Oversized Bead Protocol

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 15:02:33 -08:00
Steve Yegge
c3e7baf3f9 Document session cycling protocol in templates (gt-5xph)
- Crew: Updated to use 'gt handoff' instead of manual mail
- Crew: Added note about relaxed cycling (no fixed heuristic)
- Polecat: Added note that 'gt handoff' redirects to 'gt done'

Patrol workers (Deacon, Witness, Refinery) already had their
N-rounds heuristics documented in previous commits.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 14:43:11 -08:00
Steve Yegge
3a8a81a59f bd sync: 2025-12-23 14:43:07 2025-12-23 14:43:07 -08:00
Steve Yegge
127fde8943 bd sync: 2025-12-23 14:35:29 2025-12-23 14:35:29 -08:00
Steve Yegge
cf16bfa309 bd sync: 2025-12-23 14:32:27 2025-12-23 14:35:16 -08:00
Steve Yegge
774bed3fba Fix beads architecture: two tiers with persistent+ephemeral each
Corrected from 'three-tier' to 'two-tier' model:
- Town level: persistent (.beads/) + ephemeral (.beads-wisp/)
- Rig level: persistent (.beads/) + ephemeral (.beads-wisp/)

Each tier has both durable and wisp storage, not three separate tiers.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 14:35:03 -08:00
Steve Yegge
804dc75722 Update beads-data-plane.md with three-tier architecture
- Renamed from "Two-Level" to "Three-Tier" to include wisps
- Added rig wisps tier (.beads-wisp/) for ephemeral patrol state
- Clarified deacon uses town beads (not rig beads)
- Added git tracking status for each tier

Related: gt-ci84 (deacon wisp storage bug)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 14:29:27 -08:00
Steve Yegge
0a8234ba78 bd sync: 2025-12-23 14:29:18 2025-12-23 14:29:18 -08:00
Steve Yegge
d47f77aaa6 bd sync: 2025-12-23 14:27:54 2025-12-23 14:28:03 -08:00
Steve Yegge
d8745569f9 bd sync: 2025-12-23 14:23:01 2025-12-23 14:28:03 -08:00
Steve Yegge
3a6e0afe51 bd sync: 2025-12-23 14:17:00 2025-12-23 14:28:03 -08:00
Steve Yegge
54c82694d0 Add Beads Universal Data Plane documentation
Documents how beads serves as the universal data store for all agent
coordination: work molecules, mail messages, hooks, and inboxes are
all issues with consistent field semantics.

Key insights:
- Mail reuses assignee (to), title (subject), labels (from:)
- Hooks and inboxes are queries, not containers
- Two-level architecture: town beads (mail) vs rig beads (work)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 14:14:59 -08:00
Steve Yegge
884a26afa5 bd sync: 2025-12-23 14:14:48 2025-12-23 14:14:48 -08:00
Steve Yegge
d823ced14c refactor: Nuanced refinery context heuristic - 20 simple or immediate on complex (gt-nqrh)
Most MRs are button-pushes (clean rebase + push). Only complex rebases
(conflicts, test failures) consume significant context.

- 20 simple MRs before handoff
- Immediate handoff after any complex rebase

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 14:11:40 -08:00
Steve Yegge
366d3c8ca7 feat: Add context management heuristics to patrol role templates (gt-nqrh)
Each patrol role now has role-specific context management:
- Deacon: 20 loops or immediate on extraordinary action
- Witness: 15 polecats processed (spawns + nudges + decommissions)
- Refinery: 7 merge requests processed

Templates include state.json format and handoff instructions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 14:08:35 -08:00
Steve Yegge
ee2e0b566d bd sync: 2025-12-23 13:38:37 2025-12-23 14:08:35 -08:00
Steve Yegge
90de119a09 bd sync: 2025-12-23 13:38:14 2025-12-23 14:08:35 -08:00
Steve Yegge
c5d36ee395 bd sync: 2025-12-23 13:37:50 2025-12-23 14:08:35 -08:00
Steve Yegge
e7f2b295f9 bd sync: 2025-12-23 13:37:26 2025-12-23 14:08:35 -08:00
Steve Yegge
92c04042a6 bd sync: 2025-12-23 13:37:03 2025-12-23 14:08:35 -08:00
Steve Yegge
ced054b118 bd sync: 2025-12-23 13:36:40 2025-12-23 14:08:35 -08:00
Steve Yegge
f228b78382 bd sync: 2025-12-23 13:36:18 2025-12-23 14:08:35 -08:00
Steve Yegge
e7b631efcc bd sync: 2025-12-23 13:35:56 2025-12-23 14:08:35 -08:00
Steve Yegge
fbab402d89 bd sync: 2025-12-23 13:35:34 2025-12-23 14:08:35 -08:00
Steve Yegge
b7fd837258 bd sync: 2025-12-23 13:35:13 2025-12-23 14:08:35 -08:00
Steve Yegge
266818b117 bd sync: 2025-12-23 13:34:52 2025-12-23 14:08:35 -08:00
Steve Yegge
76914a6c57 bd sync: 2025-12-23 13:34:32 2025-12-23 14:08:35 -08:00
Steve Yegge
297a2f85d3 bd sync: 2025-12-23 13:34:12 2025-12-23 14:08:35 -08:00
Steve Yegge
9c85b834cd Support full session paths in gt handoff (gt-tocb)
resolveRoleToSession now accepts paths like <rig>/crew/<name>,
<rig>/witness, and <rig>/refinery in addition to role shortcuts.
For example: 'gt handoff gastown/crew/max' now works.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 13:25:59 -08:00
Steve Yegge
e804d4d52d bd sync: 2025-12-23 13:25:47 2025-12-23 13:25:47 -08:00
Steve Yegge
0373c34931 bd sync: 2025-12-23 13:20:36 2025-12-23 13:20:36 -08:00
Steve Yegge
1414081e10 Standardize session end with gt handoff (gt-yt6g)
- Update gt handoff to detect polecats (via GT_POLECAT env var) and
  call gt done instead of respawning - polecats have Witness-managed lifecycle
- Update CLAUDE.md Session End Checklist to use gt handoff
- This is the canonical way to end any agent session - it handles mail,
  respawn, and context restoration via SessionStart hook

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 13:07:26 -08:00
Steve Yegge
6932fcf75d Update role prompts to use gt handoff for session cycling (gt-yt6g)
- crew.md: Use gt handoff instead of manual mail for handoff
- witness.md: Use gt handoff in Session Self-Cycling section
- refinery.md: Simplify Session Self-Cycling to use gt handoff
- deacon.md: Add Session Self-Cycling section with gt handoff

All non-polecat roles now consistently document gt handoff as the
canonical way to end sessions. Polecats use gt done (handled by Witness).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 13:06:31 -08:00
Steve Yegge
e69b71c628 bd sync: 2025-12-23 13:05:18 2025-12-23 13:05:18 -08:00
Steve Yegge
e3500543f3 Fix handoff to set correct working directory for each role
buildRestartCommand now detects the town root and includes a cd to the
appropriate directory before launching claude. This ensures each role
starts in its correct working directory:
- gt-mayor → town root (~/gt)
- gt-deacon → ~/gt/deacon
- crew sessions → ~/gt/<rig>/crew/<name>
- witness sessions → ~/gt/<rig>/witness
- refinery sessions → ~/gt/<rig>/refinery

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 12:59:41 -08:00
Steve Yegge
8d47911623 Fix deacon startup: use ~/gt/deacon dir and export GT_ROLE
The daemon was creating the deacon session in ~/gt (town root) which loaded
the Mayor CLAUDE.md instead of the Deacon CLAUDE.md. Also, tmux SetEnvironment
does not export variables to spawned processes.

Changes:
- Create deacon session in ~/gt/deacon (correct CLAUDE.md)
- Export GT_ROLE=deacon in launch command (process inherits env)
- Apply to both initial launch and restart paths

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 12:39:04 -08:00
Steve Yegge
d8a1c64b8c bd sync: 2025-12-23 12:37:23 2025-12-23 12:37:23 -08:00
Steve Yegge
0d821a734a bd sync: 2025-12-23 12:32:49 2025-12-23 12:32:49 -08:00
Steve Yegge
2afd2a25ce bd sync: 2025-12-23 12:27:24 2025-12-23 12:27:31 -08:00
Steve Yegge
a4f1bf66f0 bd sync: 2025-12-23 12:24:34 2025-12-23 12:27:31 -08:00
Steve Yegge
99b4282554 bd sync: 2025-12-23 12:23:03 2025-12-23 12:27:31 -08:00
Steve Yegge
a1319c7780 bd sync: 2025-12-23 12:16:52 2025-12-23 12:27:31 -08:00
Steve Yegge
757e14c013 bd sync: 2025-12-23 12:15:58 2025-12-23 12:27:31 -08:00
Steve Yegge
5639dd7f84 Document bd pinned field bug in beads.Pin() (gt-o3is)
Added comment explaining that the pinned field gets overwritten by
subsequent bd commands due to a bug in the beads auto-import logic.
The handoff bead attachment mechanism works correctly and is the
primary work assignment mechanism.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 12:27:18 -08:00
Steve Yegge
6383ae6075 Add gt broadcast command to nudge all workers
New command that sends a message to all active workers (polecats + crew).
Supports filtering by rig with --rig flag, and can include infrastructure
agents (mayor, deacon, witness, refinery) with --all flag.

Usage:
  gt broadcast "Check your mail"
  gt broadcast --rig gastown "New work available"
  gt broadcast --all "System maintenance in 5 minutes"
  gt broadcast --dry-run "Test"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 12:15:25 -08:00