Commit Graph

926 Commits

Author SHA1 Message Date
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
Steve Yegge
0683981d31 bd sync: 2025-12-23 12:14:58 2025-12-23 12:14:58 -08:00
Steve Yegge
5bd6d3cb6f bd sync: 2025-12-23 12:08:48 2025-12-23 12:08:48 -08:00
Steve Yegge
cab9dc9ae8 bd sync: 2025-12-23 12:08:24 2025-12-23 12:08:33 -08:00
Steve Yegge
923f7eddf2 bd sync: 2025-12-23 12:07 2025-12-23 12:08:22 -08:00
Steve Yegge
4b12c40878 bd sync: 2025-12-23 12:08:01 2025-12-23 12:08:01 -08:00
Steve Yegge
67994e46c2 bd sync: 2025-12-23 12:03:33 2025-12-23 12:03:33 -08:00
Steve Yegge
5b399d782d bd sync: 2025-12-23 12:01:31 2025-12-23 12:01:31 -08:00
Steve Yegge
6259b707ce bd sync: 2025-12-23 11:55:27 2025-12-23 11:55:27 -08:00
Steve Yegge
6fac52da7b bd sync: 2025-12-23 11:51:21 2025-12-23 11:51:21 -08:00
Steve Yegge
fc38fb35d7 feat(doctor): add orphaned-attachments check (gt-h6eq.3)
Add doctor check to detect handoff beads for agents that no longer exist.
This happens when a polecat worktree is deleted but its handoff bead remains.

- Check: orphaned-attachments
- Warning if: Handoff bead exists for agent that no longer has worktree
- Supports polecats (rig/name), crew (rig/crew/name), mayor, witness, refinery
- Suggests re-sling to active agent or close the molecule

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 11:50:31 -08:00
Steve Yegge
e50e714462 bd sync: 2025-12-23 11:47:59 2025-12-23 11:50:31 -08:00