Steve Yegge
96ffbf0188
Implement Witness-Refinery protocol handlers (gt-m5w4g.2)
Add internal/protocol/ package with handlers for:
- MERGE_READY (witness→refinery): worker done, branch ready
- MERGED (refinery→witness): merge succeeded, cleanup ok
- MERGE_FAILED (refinery→witness): merge failed, needs rework
- REWORK_REQUEST (refinery→witness): rebase needed due to conflicts
Package structure:
- types.go: Protocol message types and payload structs
- messages.go: Message builders and body parsers
- handlers.go: Handler interface and registry for dispatch
- witness_handlers.go: DefaultWitnessHandler implementation
- refinery_handlers.go: DefaultRefineryHandler implementation
- protocol_test.go: Comprehensive test coverage
Also updated docs/mail-protocol.md with:
- MERGE_FAILED and REWORK_REQUEST message type documentation
- Merge failure and rebase required flow diagrams
- Reference to internal/protocol/ package
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 10:48:00 -08:00
..
2025-12-30 02:13:14 -08:00
2025-12-29 18:05:50 -08:00
2025-12-30 10:45:31 -08:00
2025-12-29 18:31:58 -08:00
2025-12-28 17:18:03 -08:00
2025-12-28 15:57:53 -08:00
2025-12-30 02:13:14 -08:00
2025-12-30 00:52:02 -08:00
2025-12-30 10:38:18 -08:00
2025-12-30 10:43:34 -08:00
2025-12-30 02:12:01 -08:00
2025-12-27 17:19:02 -08:00
2025-12-28 16:40:04 -08:00
2025-12-28 17:13:34 -08:00
2025-12-30 10:47:05 -08:00
2025-12-30 01:45:04 -08:00
2025-12-30 10:20:51 -08:00
2025-12-30 10:48:00 -08:00
2025-12-30 02:12:43 -08:00
2025-12-29 23:46:59 -08:00
2025-12-29 22:00:07 -08:00
2025-12-28 16:38:04 -08:00
2025-12-29 23:46:59 -08:00
2025-12-30 02:12:43 -08:00
2025-12-29 22:01:59 -08:00
2025-12-29 23:52:38 -08:00
2025-12-30 01:55:09 -08:00
2025-12-28 19:19:10 -08:00
2025-12-30 10:44:34 -08:00