Merge remote-tracking branch 'origin/polecat/Scabrous'

# Conflicts:
#	docs/architecture.md
#	docs/harness.md
#	internal/beads/builtin_molecules.go
#	internal/cmd/mail.go
#	internal/cmd/molecule.go
#	internal/cmd/mq.go
#	internal/git/git.go
#	internal/mail/router.go
This commit is contained in:
Steve Yegge
2025-12-19 17:59:36 -08:00
6 changed files with 32 additions and 15 deletions

View File

@@ -1001,7 +1001,7 @@ Workers process issues independently. Work flows through the merge queue. No "sw
Gas Town Daemon (gt daemon)
├── Pokes Mayor periodically
├── Pokes all Witnesses periodically
├── Processes lifecycle requests from daemon/ inbox
├── Processes lifecycle requests from deacon/ inbox
└── Restarts sessions when cycle requested
Lifecycle Hierarchy:
@@ -1027,8 +1027,8 @@ gt handoff --restart # Fresh restart, no handoff
|-------|---------|------------------|
| Polecat | --shutdown | rig/witness |
| Refinery | --cycle | rig/witness |
| Witness | --cycle | daemon/ |
| Mayor | --cycle | daemon/ |
| Witness | --cycle | deacon/ |
| Mayor | --cycle | deacon/ |
**Lifecycle request protocol**:
1. Agent runs `gt handoff` (verifies git clean, sends handoff mail)
@@ -1044,7 +1044,7 @@ gt handoff --restart # Fresh restart, no handoff
- Poke Mayor: "HEARTBEAT: check your rigs"
- Poke each Witness: "HEARTBEAT: check your workers"
- Agents ignore poke if already working
- Process any lifecycle requests in daemon/ inbox
- Process any lifecycle requests in deacon/ inbox
- Restart dead sessions if cycle was requested
```mermaid