Commit Graph

2475 Commits

Author SHA1 Message Date
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
Steve Yegge 288334f8b4 bd sync: 2025-12-30 16:02:24 2025-12-30 16:02:24 -08:00
Steve Yegge 84a7cea35e bd sync: 2025-12-30 15:59:32 2025-12-30 15:59:32 -08:00
Steve Yegge be46c18850 bd sync: 2025-12-30 15:47:21 2025-12-30 15:56:52 -08:00
Steve Yegge a98ba7d2bc bd sync: 2025-12-30 15:44:48 2025-12-30 15:56:52 -08:00
Steve Yegge 8916780c74 bd sync: 2025-12-30 15:44:39 2025-12-30 15:56:52 -08:00
Steve Yegge 32c295c7d9 bd sync: 2025-12-30 10:38:01 2025-12-30 15:56:52 -08:00
Steve Yegge 087a9dd984 Show actor on status/pinned change events in activity feed
Added actor field to RPC client and set it before daemon requests.
This ensures status changes (like pinned events) show who performed
the action in bd activity output.

Changes:
- Added actor field to Client struct
- Added SetActor method to set actor for audit trail
- Modified ExecuteWithCwd to include actor in RPC requests
- Updated main.go to call SetActor after daemon connection

Fixes gt-1ydd9

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 15:56:52 -08:00
Steve Yegge 7f5378ba26 bd sync: 2025-12-30 00:55:05 2025-12-30 00:55:05 -08:00
Steve Yegge 553544f6ac bd sync: 2025-12-30 00:42:19 2025-12-30 00:42:25 -08:00
Steve Yegge 8f07b619ac bd sync: 2025-12-30 00:42:11 2025-12-30 00:42:25 -08:00
Steve Yegge 7f16c9d68c bd sync: 2025-12-30 00:28:24 2025-12-30 00:28:51 -08:00
Steve Yegge 99e205868e bd sync: 2025-12-30 00:07:05 2025-12-30 00:07:29 -08:00
Steve Yegge 0597d66275 bd sync: close bd-7t9a (MCP redirect fix) 2025-12-30 00:06:17 -08:00
Steve Yegge e20de54cb2 fix: MCP plugin follows .beads/redirect files (bd-7t9a, gt-tnw)
The _find_beads_db_in_tree() function now follows .beads/redirect files
to find shared beads databases. This is essential for polecat/crew
directories that use redirect files to share a central database.

Changes:
- Added _resolve_beads_redirect() helper function
- Updated _find_beads_db_in_tree() to check for redirect files before
  looking for local .db files
- Added comprehensive tests for redirect functionality

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 00:06:17 -08:00
Steve Yegge 99692b52f0 bd sync: 2025-12-30 00:00:49 2025-12-30 00:06:17 -08:00
Steve Yegge cb69f1c154 feat: Show actor on pinned/status change events (gt-1ydd9)
- Add Actor field to MutationEvent struct
- Use new assignee from update args instead of old issue state
- Include actor (who performed the action) in mutation events
- Display actor in bd activity output, falling back to assignee

When pinning/updating status, the activity feed now shows who performed
the action (e.g., "@gastown/crew/jack") instead of showing nothing.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 23:42:20 -08:00
Steve Yegge e5cf9b3199 bd sync: 2025-12-29 21:26:41 2025-12-29 23:42:20 -08:00
Steve Yegge 48cca7f73d bd sync: 2025-12-29 21:16:05 2025-12-29 23:42:20 -08:00
Steve Yegge 5f5a341624 bd sync: 2025-12-29 21:13:11 2025-12-29 21:13:11 -08:00
Steve Yegge 6b12efbb2b bd sync: 2025-12-29 21:10:00 2025-12-29 21:10:10 -08:00
Steve Yegge 35ffeea804 bd sync: 2025-12-29 21:09:05 2025-12-29 21:09:05 -08:00
Steve Yegge b8a5ee162b feat: Add tracks relation type for convoy tracking (bd-3roq)
Adds non-blocking tracks dependency type for convoy to issue relationships:
- Non-blocking: does not affect ready work calculation
- Cross-prefix capable: convoys in hq-* can track issues in gt-*, bd-*
- Reverse lookup: bd dep list <id> --direction=up -t tracks

Also adds bd dep list command with direction and type filtering for
querying dependencies/dependents.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 21:04:45 -08:00
Steve Yegge 61edfafe4c bd sync: 2025-12-29 20:49:22 2025-12-29 20:49:22 -08:00
Steve Yegge 447fe84bf0 bd sync: 2025-12-29 20:47:42 2025-12-29 20:47:55 -08:00
Steve Yegge fd781cee5b bd sync: 2025-12-29 18:30:11 2025-12-29 20:47:55 -08:00
Steve Yegge a7f34d8f89 bd sync: 2025-12-29 17:54:03 2025-12-29 17:54:03 -08:00
Steve Yegge 6e9004bb94 bd sync: 2025-12-29 17:52:01 2025-12-29 17:52:18 -08:00
Steve Yegge a6b37796d1 bd sync: 2025-12-29 17:50:18 2025-12-29 17:50:18 -08:00
Steve Yegge f5ec63df8f bd sync: 2025-12-29 17:49:07 2025-12-29 17:49:07 -08:00
Steve Yegge 2ca76dcae8 bd sync: 2025-12-29 17:10:34 2025-12-29 17:10:40 -08:00
Steve Yegge de239e09f9 bd sync: 2025-12-29 17:05:12 2025-12-29 17:05:12 -08:00
Steve Yegge f312101d5d bd sync: 2025-12-29 17:02:23 2025-12-29 17:02:23 -08:00
Steve Yegge a4035b1422 bd sync: 2025-12-29 16:40:06 2025-12-29 16:40:20 -08:00
Steve Yegge 1b15ec2765 bd sync: 2025-12-29 15:27:19 2025-12-29 16:40:20 -08:00
Steve Yegge c2c2ef5d07 feat: Update agent ID validation for canonical naming (gt-zvte2)
Updates ValidateAgentID to accept canonical format: prefix-rig-role-name
- Rig-level: gt-<rig>-witness (was gt-witness-<rig>)
- Named: gt-<rig>-crew-<name> (was gt-crew-<rig>-<name>)

Town-level agents unchanged: gt-mayor, gt-deacon

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 14:55:06 -08:00
Steve Yegge e652449634 bd sync: 2025-12-29 14:04:26 2025-12-29 14:55:06 -08:00
Steve Yegge 59bc2cd059 fix: remove gitignore negations that override fork protection (#796)
The negation patterns (!issues.jsonl, !interactions.jsonl, etc.) in
.beads/.gitignore had higher precedence than the fork protection
exclusion in .git/info/exclude, effectively defeating fork protection.

Contributors could accidentally stage and commit upstream issue
databases because:
1. Fork protection added .beads/issues.jsonl to .git/info/exclude
2. .beads/.gitignore had !issues.jsonl which overrode the exclusion
3. .gitignore files have higher precedence than .git/info/exclude

The negation patterns were unnecessary anyway since no pattern in
.beads/.gitignore matches those files. Added a comment explaining
why negations should not be added.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 14:52:29 -08:00
Jordan Hubbard 9cefa98528 test: refactor claude setup for coverage 2025-12-29 14:17:44 -08:00
Jordan Hubbard 283a275740 test: refactor claude setup for coverage 2025-12-29 14:16:44 -08:00
Steve Yegge 9eb61f9dd0 bd sync: 2025-12-29 14:03:20 2025-12-29 14:03:20 -08:00
Steve Yegge 31bed17090 bd sync: 2025-12-29 13:46:54 2025-12-29 13:47:12 -08:00
Steve Yegge 04da559511 bd sync: 2025-12-29 13:45:51 2025-12-29 13:45:51 -08:00
Steve Yegge 6ee7be5fe9 bd sync: 2025-12-29 13:40:37 2025-12-29 13:40:37 -08:00
Steve Yegge 0183af11d5 bd sync: 2025-12-29 13:34:01 2025-12-29 13:34:14 -08:00
Steve Yegge 9e5a548339 bd sync: 2025-12-29 12:59:10 2025-12-29 13:34:14 -08:00
Steve Yegge 75e2afdae5 bd sync: 2025-12-29 12:58:08 2025-12-29 12:58:08 -08:00
Steve Yegge bd750b10ea bd sync: 2025-12-29 12:48:20 2025-12-29 12:48:35 -08:00
Steve Yegge 93cc9df9ad bd sync: 2025-12-29 12:43:14 2025-12-29 12:43:14 -08:00
Steve Yegge c45242a8d3 feat: Add --reason flag to bd delete for audit trail 2025-12-29 12:40:03 -08:00