beads/internal/rpc
Steve Yegge 21a0ff6d0d Add type: event for state transitions (bd-ecmd)
Adds TypeEvent issue type for recording operational state changes as
immutable beads. Events capture:
- event_category: namespaced category (e.g., patrol.muted, agent.started)
- event_actor: entity URI who caused the event
- event_target: entity URI or bead ID affected
- event_payload: event-specific JSON data

Changes:
- Add TypeEvent constant and IsValid() support in types.go
- Add event fields to Issue struct with ComputeContentHash support
- Add --event-category/actor/target/payload flags to bd create
- Add event fields to RPC CreateArgs and UpdateArgs
- Add migration 033_event_fields to add columns to issues table
- Update insertIssue and queries to include event fields
- Fix migrations_test.go for new column requirements

This enables:
- bd activity --follow showing events
- bd list --type=event --target=agent:deacon
- Full audit trail for operational state
- HOP-compatible transaction records

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 16:27:59 -08:00
..
additional_coverage_test.go Add comprehensive RPC test coverage (44.7% → 61.7%) 2025-12-23 23:08:04 -08:00
bench_test.go test: replace manual os.Chdir with t.Chdir in tests (#457) 2025-12-04 11:21:43 -08:00
client.go Show actor on status/pinned change events in activity feed 2025-12-30 15:56:52 -08:00
client_gate_shutdown_test.go refactor: remove unused bd pin/unpin/hook commands (bd-x0zl) 2025-12-27 16:02:15 -08:00
client_selfheal_test.go Fix race condition in client socket cleanup (bd-4owj) 2025-11-23 20:58:11 -08:00
comments_test.go test: Tag 16 slow integration tests with build tags 2025-11-21 14:40:22 -05:00
coverage_test.go feat: add daemon RPC endpoints for config and mol stale (bd-ag35) 2025-12-30 06:59:51 -08:00
isolation_test.go Add database isolation canary test 2025-10-21 22:44:45 -07:00
limits_test.go fix(unix): handle Statfs field types for disk space check (#646) 2025-12-19 17:50:14 -08:00
list_filters_test.go test: replace manual os.Chdir with t.Chdir in tests (#457) 2025-12-04 11:21:43 -08:00
metrics.go Fix TestMetricsSnapshot/uptime flakiness on Windows 2025-11-02 09:56:42 -08:00
metrics_test.go Fix TestMetricsSnapshot/uptime flakiness on Windows 2025-11-02 09:56:42 -08:00
protocol.go Add type: event for state transitions (bd-ecmd) 2025-12-30 16:27:59 -08:00
protocol_test.go Add native Windows support (#91) 2025-10-20 21:08:49 -07:00
rpc_test.go test: replace manual os.Chdir with t.Chdir in tests (#457) 2025-12-04 11:21:43 -08:00
server.go Complete cache audit (bd-bc2c6191) 2025-11-06 19:51:16 -08:00
server_compact.go Fix #249: Add nil storage checks to prevent RPC daemon crashes (#250) 2025-11-07 14:21:14 -08:00
server_core.go feat: Show actor on pinned/status change events (gt-1ydd9) 2025-12-29 23:42:20 -08:00
server_delete_test.go test(rpc): Add comprehensive tests for daemon RPC delete handler 2025-12-24 00:10:23 -08:00
server_export_import_auto.go fix: daemon delete creates tombstones, export includes tombstones (bd-rp4o) 2025-12-17 01:15:40 -08:00
server_issues_epics.go Add type: event for state transitions (bd-ecmd) 2025-12-30 16:27:59 -08:00
server_labels_deps_comments.go chore: remove issue ID references from comments and changelogs 2025-12-28 10:05:16 -08:00
server_lifecycle_conn.go fix: address critical resource leaks and error handling issues (#327) 2025-11-20 08:13:06 -08:00
server_mutations_test.go refactor: remove unused bd pin/unpin/hook commands (bd-x0zl) 2025-12-27 16:02:15 -08:00
server_routing_validation_diagnostics.go feat: add daemon RPC endpoints for config and mol stale (bd-ag35) 2025-12-30 06:59:51 -08:00
signals_unix.go Add native Windows support (#91) 2025-10-20 21:08:49 -07:00
signals_windows.go Add native Windows support (#91) 2025-10-20 21:08:49 -07:00
status_test.go feat(daemon): add auto_pull config parameter for periodic remote sync 2025-12-22 18:47:18 -05:00
test_helpers.go fix(unix): handle Statfs field types for disk space check (#646) 2025-12-19 17:50:14 -08:00
transport_unix.go Add native Windows support (#91) 2025-10-20 21:08:49 -07:00
transport_windows.go Add native Windows support (#91) 2025-10-20 21:08:49 -07:00
version_test.go test: replace manual os.Chdir with t.Chdir in tests (#457) 2025-12-04 11:21:43 -08:00
worker_status_test.go bd sync: 2025-12-23 23:38:57 2025-12-24 00:06:41 -08:00