Commit Graph

1317 Commits

Author SHA1 Message Date
Steve Yegge
cdb206a685 bd sync: 2025-12-23 00:19:19 2025-12-23 00:19:42 -08:00
Steve Yegge
f517d876cd bd sync: 2025-12-23 00:15:48 2025-12-23 00:19:41 -08:00
Steve Yegge
b7185472bf bd sync: 2025-12-23 00:17:59 2025-12-23 00:17:59 -08:00
Steve Yegge
1287aadeb8 bd sync: 2025-12-23 00:17:58 2025-12-23 00:17:58 -08:00
Steve Yegge
74cd387b47 bd sync: 2025-12-23 00:17:50 2025-12-23 00:17:50 -08:00
Steve Yegge
20e2a13dc4 feat: Add mol-ready-work protomolecule
Adds autonomous backlog processing patrol molecule for crew workers.
The molecule scans PRs, GitHub issues, and beads; selects work using
an ROI heuristic; executes items; and loops until context is low.

Key features:
- Vapor phase (wisp) - ephemeral patrol cycles
- Scans 4 backlogs: PRs > untriaged > beads > triaged
- ROI-based selection with context awareness
- Per-type execution handlers (PR review, triage, implementation)
- Clean handoff protocol with digest squashing

Issue: gt-tnca.1

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 00:17:49 -08:00
Steve Yegge
049dd13cd1 Witness: Verify POLECAT_DONE before stopping sessions (gt-ldk8)
- Add handling for POLECAT_DONE messages in processShutdownRequests()
- Track which polecats have signaled done (using SpawnedIssues with "done:" prefix)
- For LIFECYCLE:shutdown requests, wait for POLECAT_DONE before cleanup
- Add checkPendingCompletions() to nudge polecats with closed issues
- Add 10-minute timeout with force-kill after waiting for POLECAT_DONE
- Protects against losing MR submissions when Witness cleans up too early

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 00:17:35 -08:00
Steve Yegge
0b5fda69fd Add patrol awareness and wiring to gt rig add / gt doctor (gt-7923)
gt rig add changes:
- Seed patrol molecules (Deacon, Witness, Refinery) when adding rig
- Create plugin directories at town (~gt/plugins/) and rig levels
- Update command documentation and structure output

gt doctor changes:
- patrol-molecules-exist: Verify patrol molecules exist
- patrol-hooks-wired: Verify daemon triggers patrols
- patrol-not-stuck: Detect stale wisps (>1h in_progress)
- patrol-plugins-accessible: Verify plugin directories exist
- patrol-roles-have-prompts: Verify role prompts exist

All patrol checks support --fix where applicable.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 00:17:32 -08:00
Steve Yegge
f74687486c Implement Witness handoff bead state persistence (gt-caih)
Add persistent state storage for Witness across wisp burns:
- Add WorkerState and WitnessHandoffState types
- Implement loadHandoffState/saveHandoffState for bead persistence
- Update getNudgeCount/recordNudge to use persistent state
- Add activity tracking integration into healthCheck

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 00:15:16 -08:00
Steve Yegge
cdc5664948 bd sync: 2025-12-23 00:12:16 2025-12-23 00:12:16 -08:00
Steve Yegge
7f79376d4d bd sync: 2025-12-23 00:12:05 2025-12-23 00:12:05 -08:00
Steve Yegge
40a4d2edb2 Implement Witness handoff bead state persistence (gt-caih)
Add persistent state storage for Witness across wisp burns:
- Add WorkerState and WitnessHandoffState types
- Implement loadHandoffState/saveHandoffState for bead persistence
- Update getNudgeCount/recordNudge to use persistent state
- Add activity tracking integration into healthCheck

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 00:11:56 -08:00
Steve Yegge
b285fef4ea bd sync: 2025-12-23 00:11:54 2025-12-23 00:11:54 -08:00
Steve Yegge
af61daa2ee bd sync: 2025-12-23 00:11:33 2025-12-23 00:11:33 -08:00
Steve Yegge
dfcd47c228 bd sync: 2025-12-23 00:11:18 2025-12-23 00:11:28 -08:00
Steve Yegge
09b24cb975 bd sync: 2025-12-23 00:09:07 2025-12-23 00:11:28 -08:00
Steve Yegge
bae710ca26 bd sync: 2025-12-23 00:08:47 2025-12-23 00:11:28 -08:00
Steve Yegge
10a5d88958 bd sync: 2025-12-23 00:08:26 2025-12-23 00:11:28 -08:00
Steve Yegge
8d935093b3 bd sync: 2025-12-23 00:02:55 2025-12-23 00:11:28 -08:00
Steve Yegge
ab73cee853 bd sync: 2025-12-23 00:02:35 2025-12-23 00:11:28 -08:00
Steve Yegge
a52353c202 bd sync: 2025-12-22 23:58:04 2025-12-23 00:11:28 -08:00
Steve Yegge
8bb0ad8e40 Close gt-j6s8: Refinery patrol auto-bond implemented 2025-12-23 00:11:07 -08:00
Steve Yegge
ef1f5ac2f3 Refinery startup: auto-bond mol-refinery-patrol on start
Add outputRefineryPatrolContext to gt prime that automatically spawns
the refinery patrol molecule when no active patrol is found. This ensures
the merge queue is always monitored when Refinery starts up.

Key changes:
- Add RoleRefinery to outputMoleculeContext
- Implement outputRefineryPatrolContext with auto-spawn logic
- Check for existing in-progress or open patrol molecules
- Spawn mol-refinery-patrol wisp if none found

(gt-j6s8)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 00:10:39 -08:00
Steve Yegge
66710aef69 bd sync: 2025-12-23 00:08:26 2025-12-23 00:08:26 -08:00
Steve Yegge
d30a428447 bd sync: 2025-12-23 00:02:55 2025-12-23 00:02:55 -08:00
Steve Yegge
21b3b626c8 bd sync: 2025-12-23 00:02:35 2025-12-23 00:02:35 -08:00
Steve Yegge
d9eecf864c Fix crew loadState to handle empty/incomplete state.json
When state.json contains empty JSON {}, the ClonePath and other fields
were left empty, causing "can't find pane/session" errors in gt crew at.
Now backfills essential fields (Name, Rig, ClonePath) if missing.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 00:02:23 -08:00
Steve Yegge
1832ee321c bd sync: 2025-12-22 23:58:04 2025-12-22 23:58:24 -08:00
Steve Yegge
378d3cd569 Fix: Self-mail should suppress tmux notification (gt-utwc) 2025-12-22 23:57:55 -08:00
Steve Yegge
9f50615bfa bd sync: 2025-12-22 23:54:45 2025-12-22 23:54:45 -08:00
Steve Yegge
cb097993df bd sync: 2025-12-22 23:53:14 2025-12-22 23:53:14 -08:00
Steve Yegge
a0d54418cb bd sync: 2025-12-22 23:53:05 2025-12-22 23:53:13 -08:00
Steve Yegge
0287aea86b bd sync: 2025-12-22 23:50:19 2025-12-22 23:53:13 -08:00
Steve Yegge
2e5fcbc307 Add gt molecule current command (gt-ay1r)
Implements a new command to query what an agent should be working on:
- Finds handoff bead by agent identity
- Parses attached molecule and tracks progress through steps
- Identifies current/next step (in_progress or first ready)
- Reports status: working, naked, complete, or blocked

Usage:
  gt molecule current [identity]
  gt mol current gastown/furiosa
  gt mol current --json

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 23:52:35 -08:00
Steve Yegge
3cc17d75da Add argument support to /handoff command
Now supports: /handoff let's continue with feature X

Uses Claude Code's $ARGUMENTS placeholder to pass user's
message to gt handoff --cycle -m flag.
2025-12-22 23:51:33 -08:00
Steve Yegge
dbb8f185bd Extend auto-continue to polecats (gt-rp0k)
Rename outputCrewAttachmentStatus to outputAttachmentStatus and extend
to support both RoleCrew and RolePolecat. The Propulsion Principle
("If you find something on your hook, YOU RUN IT.") now applies to
all worker types, not just crew.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 23:49:45 -08:00
Steve Yegge
c6c924e746 Fix builtin_molecules_test.go expectations (gt-7919)
- Update molecule count from 9 to 12 (added WitnessPatrol, etc.)
- Fix PolecatWorkMolecule: update-handoff -> exit-decision
- Fix DeaconPatrolMolecule: add trigger-pending-spawns step (7->8 steps)
- Add TestWitnessPatrolMolecule for the new molecule

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 23:49:02 -08:00
Steve Yegge
3ce316641b bd sync: 2025-12-22 23:48:56 2025-12-22 23:48:56 -08:00
Steve Yegge
33dc2dbef1 Close gt-i4kq: Propulsion Principle templates complete 2025-12-22 23:48:09 -08:00
Steve Yegge
27589d5662 Update role templates for Propulsion Principle (gt-i4kq)
Apply the Universal Gas Town Propulsion Principle to all agent templates:
"If you find something on your hook, YOU RUN IT."

Changes:
- deacon.md.tmpl: Hook-first startup, no decision logic
- polecat.md.tmpl: Simplified propulsion startup, molecule-following
- witness.md.tmpl: Wisp slinging when spawning, propulsion loop
- refinery.md.tmpl: Accept slung branches, hook-based execution

Key principle: Agents don't decide whether to do work. They check their hook
and execute what's there. The hook IS the decision.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 23:48:04 -08:00
Steve Yegge
739e2b4d76 bd sync: 2025-12-22 23:46:48 2025-12-22 23:46:48 -08:00
Steve Yegge
a739904e79 Add mol-polecat-lease proto for Witness polecat lifecycle tracking
Semaphore molecule with 3 steps: boot, working, done.
Used by Witness to track polecat lifecycle during patrol.

Proto: gt-2k4f
Closes: gt-cp2s

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 23:45:08 -08:00
Steve Yegge
2f06c1333e bd sync: 2025-12-22 23:40:37 2025-12-22 23:40:37 -08:00
Steve Yegge
c6641e9d37 bd sync: 2025-12-22 23:39:24 2025-12-22 23:39:32 -08:00
Steve Yegge
3538f8b473 bd sync: 2025-12-22 23:38:40 2025-12-22 23:39:32 -08:00
Steve Yegge
82d4cd3bb2 bd sync: 2025-12-22 23:38:24 2025-12-22 23:39:32 -08:00
Steve Yegge
080714c31e bd sync: 2025-12-22 23:38:09 2025-12-22 23:39:32 -08:00
Steve Yegge
6258f0f899 bd sync: 2025-12-22 23:37:54 2025-12-22 23:39:32 -08:00
Steve Yegge
cb4029a19f bd sync: 2025-12-22 23:37:40 2025-12-22 23:39:32 -08:00
Steve Yegge
411a1180f7 bd sync: 2025-12-22 23:27:02 2025-12-22 23:39:32 -08:00