Commit Graph

1331 Commits

Author SHA1 Message Date
Steve Yegge
57a84c6bad Update documentation and priming (gt-xmyha)
- Fix CLAUDE.md: joe→max for correct crew worker identity
- Add TOML formula documentation to molecules.md
- Update wisp-architecture.md with wisp-gc docs
- Update architecture.md with bd formula commands
- Update molecular-chemistry.md with TOML examples
- Add diagnostics section to CLAUDE.md

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 22:06:05 -08:00
Steve Yegge
f7e29236d1 Fix dry-run bug in gt handoff - check before side effects (gt-sq0t3) 2025-12-25 22:06:05 -08:00
Steve Yegge
fa0a5b1288 bd sync: 2025-12-25 22:05:54 2025-12-25 22:05:54 -08:00
Steve Yegge
58147e5318 bd sync: 2025-12-25 22:03:22 2025-12-25 22:03:22 -08:00
Steve Yegge
4a22df2093 bd sync: 2025-12-25 22:00:29 2025-12-25 22:00:37 -08:00
Steve Yegge
60556534da Add TOML versions of formulas (gt-xmyha)
Converted all .formula.json files to .formula.toml using bd formula convert.
TOML provides better ergonomics:
- Multi-line strings without \n escaping
- Human-readable diffs
- Comments allowed

Original JSON files retained for backwards compatibility.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 22:00:00 -08:00
Steve Yegge
db5134175c bd sync: 2025-12-25 21:59:51 2025-12-25 21:59:51 -08:00
Steve Yegge
4c191b1f27 bd sync: 2025-12-25 21:49:45 2025-12-25 21:49:45 -08:00
Steve Yegge
0a38ae3a18 bd sync: 2025-12-25 21:40:11 2025-12-25 21:44:36 -08:00
Steve Yegge
0de7b980f7 Add wisp-gc doctor check, integrate into gt doctor --fix (gt-psj76.2)
- Implement WispGCCheck in internal/doctor/wisp_check.go
  - Scans rigs for wisps older than 1 hour threshold
  - Fix runs `bd --no-daemon wisp gc` in each affected rig
- Register wisp-gc check in gt doctor
- Update help text to document cleanup checks
- Simplify Deacon patrol session-gc step to just use gt doctor --fix

Now `gt doctor --fix` handles all cleanup:
- orphan-sessions: Kill orphaned tmux sessions
- orphan-processes: Kill orphaned Claude processes
- wisp-gc: Garbage collect abandoned wisps (>1h)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 21:44:27 -08:00
Steve Yegge
fc4bddd694 Add gt doctor --fix for session cleanup in Deacon patrol (gt-psj76.2)
The previous commit only fixed wisp gc, but the session cleanup
was also using non-existent commands. Now session-gc step properly
documents:

1. gt doctor --fix for orphaned sessions and processes
2. bd --no-daemon wisp gc for orphaned wisps

Also noted that log pruning and molecule archival are handled
elsewhere (not implemented / bd mol squash|burn respectively).

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 21:40:05 -08:00
Steve Yegge
d8886eea32 bd sync: 2025-12-25 21:36:09 2025-12-25 21:36:09 -08:00
Steve Yegge
d76587072b bd sync: 2025-12-25 21:35:19 2025-12-25 21:35:59 -08:00
Steve Yegge
7814d8981d Update Deacon patrol formula to use bd wisp gc command (gt-psj76.2)
The session-gc step was referencing non-existent `gt gc --wisps` command.
Updated to use the correct `bd --no-daemon wisp gc` command with examples.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 21:35:50 -08:00
Steve Yegge
7d4a5de697 Refactor burn/squash cleanup to recursive helper (gt-psj76.1)
Extract closeDescendants() helper that:
- Recursively closes all descendants (not just direct children)
- Logs errors instead of silent failure
- Uses distinct variable names (no shadowing)
- Is reused by both burn and squash

This handles nested molecules from the Christmas Ornament pattern.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 21:30:38 -08:00
Steve Yegge
a293b0f152 Fix burn/squash to close step issues (gt-psj76.1)
When burning or squashing a molecule, now also closes all child step
issues. Previously only the molecule attachment was detached, leaving
orphaned step issues that accumulated over time.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 21:14:32 -08:00
Steve Yegge
1583aafb75 bd sync: 2025-12-25 21:14:21 2025-12-25 21:14:22 -08:00
Steve Yegge
97818409bd bd sync: 2025-12-25 21:05:47 2025-12-25 21:05:47 -08:00
Steve Yegge
9e0fa35809 bd sync: 2025-12-25 21:02:13 2025-12-25 21:02:13 -08:00
Steve Yegge
3c34f37017 bd sync: 2025-12-25 20:56:59 2025-12-25 20:56:59 -08:00
Steve Yegge
b0aa44719b bd sync: 2025-12-25 20:55:06 2025-12-25 20:55:06 -08:00
Steve Yegge
5acdf597d7 bd sync: 2025-12-25 20:48:40 2025-12-25 20:48:40 -08:00
Steve Yegge
e00f48f9c1 bd sync: 2025-12-25 20:46:47 2025-12-25 20:47:01 -08:00
Steve Yegge
71a9bd00e2 bd sync: 2025-12-25 20:46:38 2025-12-25 20:47:01 -08:00
Steve Yegge
ffe552398a bd sync: 2025-12-25 20:04:32 2025-12-25 20:47:01 -08:00
Steve Yegge
c5934273ef Rename Engineer in Box to Shiny (gt-8tmz.10)
Renamed mol-engineer-in-box to mol-shiny across all documentation
and test code. This is a Mad Max reference - the canonical 'right
way to engineer'.

Files updated:
- docs/architecture.md (15 references)
- docs/molecules.md (7 references)
- docs/bootstrap.md (1 reference)
- docs/molecular-chemistry.md (1 reference)
- docs/polecat-wisp-architecture.md (1 reference)
- internal/beads/molecule_test.go (test function rename)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 19:58:43 -08:00
Steve Yegge
11545b5e1f bd sync: 2025-12-25 19:57:59 2025-12-25 19:57:59 -08:00
Steve Yegge
25d5ba88e9 bd sync: 2025-12-25 19:56:59 2025-12-25 19:56:59 -08:00
Steve Yegge
ee7f8fb8fd bd sync: 2025-12-25 19:56:56 2025-12-25 19:56:56 -08:00
Steve Yegge
3224fc2924 bd sync: 2025-12-25 19:56:22 2025-12-25 19:56:22 -08:00
Steve Yegge
810ccffcad bd sync: 2025-12-25 19:56:17 2025-12-25 19:56:17 -08:00
Steve Yegge
bf8d55a20c Remove step lists from patrol role templates (gt-ingm.4)
Templates now instruct agents to discover steps at runtime via
bd ready / bd show instead of listing steps inline. This prevents
duplication between templates and formula YAML.
2025-12-25 19:56:11 -08:00
Steve Yegge
109bc08f17 bd sync: 2025-12-25 19:47:49 2025-12-25 19:56:11 -08:00
Steve Yegge
3d7b60d3eb bd sync: 2025-12-25 19:47:37 2025-12-25 19:56:11 -08:00
Steve Yegge
d5bd7fd983 bd sync: 2025-12-25 19:47:11 2025-12-25 19:56:11 -08:00
Steve Yegge
b9ad30a4a9 fix(spawn): reset stale polecat branches to origin/main
When recreating a polecat worktree, the branch deletion might fail
silently, leaving a stale branch with old commits. The worktree would
then be created from this stale branch, missing recent main changes.

Fix:
- Add ResetBranch() method to git package for force-updating branches
- Fetch from origin before recreation to ensure fresh commits
- If branch deletion fails, force-reset the branch to origin/main
- This ensures polecats always start with the latest code

Discovered during gt-8tmz swarm when nux polecat was missing the
internal/formula/ directory that was added after its branch diverged.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 19:37:14 -08:00
Steve Yegge
619ff02aa7 Add crew tmux configuration documentation
Explains how to set up personal tmux config for quick cycling
between crew sessions using hardwired C-b n/p keybindings.
2025-12-25 19:27:41 -08:00
Steve Yegge
e3d33770c6 Remove unused LinkWindow function from tmux package 2025-12-25 19:18:24 -08:00
Steve Yegge
483d556afb bd sync: 2025-12-25 19:12:53 2025-12-25 19:12:53 -08:00
Steve Yegge
a36bc84ce1 bd sync: 2025-12-25 19:11:58 2025-12-25 19:11:58 -08:00
Steve Yegge
b9158289c6 docs: Update architecture.md for bare repo pattern (gt-gmqe)
Clarify that mayor is a regular clone (not worktree) while refinery
and polecats are worktrees of .repo.git. Add .repo.git to ASCII
diagram and fix all references that incorrectly stated mayor was
a worktree.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 19:03:45 -08:00
Steve Yegge
1569ba2290 fix: Match rig add architecture to working gastown pattern
- Mayor is now a regular clone (doesn't need branch visibility)
- Refinery is a worktree on main (can see polecat branches, direct merge)
- This matches migrated gastown and satisfies doctor branch check
2025-12-25 18:58:12 -08:00
Steve Yegge
a2307511ae docs: Fix misleading comment about refinery branch 2025-12-25 18:55:00 -08:00
Steve Yegge
adf3c8bfa3 bd sync: 2025-12-25 18:54:09 2025-12-25 18:54:09 -08:00
Steve Yegge
1b66b9a2f2 feat: Implement bare repo architecture for branch visibility (gt-gmqe)
- Add .repo.git as shared bare repo for worktrees
- Update polecat manager to use bare repo when available
- Add git.NewGitWithDir() and CloneBare() for bare repo support
- Update gt rig init to create bare repo architecture for new rigs
- Refinery and polecats now share branch visibility via shared .git

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 18:49:34 -08:00
Steve Yegge
200b2065a6 bd sync: 2025-12-25 18:45:54 2025-12-25 18:45:54 -08:00
Steve Yegge
839f7eb82b bd sync: 2025-12-25 18:40:30 2025-12-25 18:40:30 -08:00
Steve Yegge
cfe565d621 bd sync: 2025-12-25 18:31:15 2025-12-25 18:31:15 -08:00
Steve Yegge
2eaebd4451 docs: Update architecture for bare repo pattern (gt-gmqe)
- Add .repo.git/ as single git source of truth
- Refinery as worktree on main (can see polecat branches)
- Document why bare repo pattern (standard git server pattern)
- Update key points for new architecture

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 18:31:04 -08:00
Steve Yegge
5d2a9b2d43 bd sync: 2025-12-25 18:30:57 2025-12-25 18:30:57 -08:00