diff --git a/.beads/issues.jsonl b/.beads/issues.jsonl index d56a985a..a53f5448 100644 --- a/.beads/issues.jsonl +++ b/.beads/issues.jsonl @@ -1,14 +1,14 @@ {"id":"bd-0088","title":"Create npm package structure for bd-wasm","description":"Set up npm package for distribution:\n- Create package.json with bd-wasm name\n- Bundle bd.wasm + wasm_exec.js\n- Create CLI wrapper (bin/bd) that invokes WASM\n- Add installation scripts if needed\n- Configure package for Claude Code Web sandbox compatibility","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-02T21:58:07.295058-08:00","updated_at":"2025-11-03T20:56:22.700641-08:00","closed_at":"2025-11-03T20:56:22.700641-08:00","dependencies":[{"issue_id":"bd-0088","depends_on_id":"bd-44d0","type":"parent-child","created_at":"2025-11-02T22:23:49.475356-08:00","created_by":"stevey"}]} -{"id":"bd-00pel","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T10:33:47.827185-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T10:33:47.889461-08:00","closed_at":"2026-01-11T10:33:47.889461-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-00pel","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T10:33:47.827185-08:00","updated_at":"2026-01-11T10:33:47.889461-08:00","closed_at":"2026-01-11T10:33:47.889461-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-00u3","title":"Deprecate bd mol run after gt absorbs its semantics","description":"bd mol run is a convenience combo (pour + update + pin) that feels like orchestration but lives in the data layer. This blurs the bd/gt architectural boundary.\n\n## Current State\n- bd mol run = bd pour + bd update --status=in_progress + bd pin --for me\n- gt spawn depends on bd mol run (shells out to it)\n\n## Proposed Change\nOnce gt spawn inlines the pour+assign+pin logic:\n1. Deprecate bd mol run with a warning pointing to gt spawn\n2. Eventually remove bd mol run entirely\n\n## Why\n- bd should be pure data operations (pour, update, pin, close)\n- gt should own orchestration (spawn, sling, hook, handoff)\n- Standalone bd users can run the three commands separately or script them\n\n## Blocked By\ngastown issue gt-r7jj2 (Move mol run semantics from bd into gt spawn)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T00:59:03.667211-08:00","updated_at":"2025-12-25T01:04:51.755145-08:00","closed_at":"2025-12-25T01:04:51.755145-08:00"} {"id":"bd-0134cc5a","title":"Fix auto-import creating duplicates instead of updating issues","description":"ROOT CAUSE: server_export_import_auto.go line 221 uses ResolveCollisions: true for ALL auto-imports. This is wrong.\n\nProblem:\n- ResolveCollisions is for branch merges (different issues with same ID)\n- Auto-import should UPDATE existing issues, not create duplicates\n- Every git pull creates NEW duplicate issues with different IDs\n- Two agents ping-pong creating endless duplicates\n\nEvidence:\n- 31 duplicate groups found (bd duplicates)\n- bd-236-246 are duplicates of bd-224-235\n- Both agents keep pulling and creating more duplicates\n- JSONL file grows endlessly with duplicates\n\nThe Fix:\nChange checkAndAutoImportIfStale in server_export_import_auto.go:\n- Remove ResolveCollisions: true (line 221)\n- Use normal import logic that updates existing issues by ID\n- Only use ResolveCollisions for explicit bd import --resolve-collisions\n\nImpact: Critical - makes beads unusable for multi-agent workflows","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-10-27T21:48:57.733846-07:00","updated_at":"2025-10-30T17:12:58.21084-07:00","closed_at":"2025-10-27T22:26:40.627239-07:00"} -{"id":"bd-027eo","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:34:55.204672-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T22:34:55.269461-08:00","closed_at":"2026-01-11T22:34:55.269461-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-027eo","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:34:55.204672-08:00","updated_at":"2026-01-11T22:34:55.269461-08:00","closed_at":"2026-01-11T22:34:55.269461-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-02a4","title":"Modify CreateIssue to support parent resurrection","description":"Update internal/storage/sqlite/sqlite.go:182-196 to call TryResurrectParent before failing on missing parent. Coordinate with EnsureIDs changes for consistent behavior. Handle edge case where parent never existed in JSONL (fail gracefully).","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-04T12:31:59.701571-08:00","updated_at":"2025-11-05T00:08:42.811436-08:00","closed_at":"2025-11-05T00:08:42.81144-08:00"} {"id":"bd-02gts","title":"Digest: mol-refinery-patrol","description":"Patrol complete: MQ empty, 0 branches processed, no issues","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T18:25:13.410273-08:00","updated_at":"2026-01-10T18:25:13.410273-08:00","closed_at":"2026-01-10T18:25:13.410234-08:00","close_reason":"Squashed from 11 wisps","dependencies":[{"issue_id":"bd-02gts","depends_on_id":"bd-wisp-xwx","type":"parent-child","created_at":"2026-01-10T18:25:13.41112-08:00","created_by":"beads/refinery"}]} -{"id":"bd-02st0","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:17:11.51817-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T20:17:11.592093-08:00","closed_at":"2026-01-11T20:17:11.592093-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-02st0","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T20:17:11.51817-08:00","updated_at":"2026-01-11T20:17:11.592093-08:00","closed_at":"2026-01-11T20:17:11.592093-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-03r","title":"Document deletions manifest in AGENTS.md and README","description":"Parent: bd-imj\n\n## Task\nAdd documentation about the deletions manifest feature.\n\n## Locations to Update\n\n### AGENTS.md\n- Explain that deletions.jsonl is tracked in git\n- Document that `bd delete` records to the manifest\n- Explain cross-clone propagation mechanism\n\n### README.md \n- Brief mention in .beads directory structure section\n- Link to detailed docs if needed\n\n### docs/deletions.md (new file)\n- Full technical documentation\n- Format specification\n- Pruning policy\n- Git history fallback\n- Troubleshooting\n\n## Acceptance Criteria\n- AGENTS.md updated with deletion workflow\n- README.md mentions deletions.jsonl purpose\n- New docs/deletions.md with complete reference","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-25T14:56:49.13027-08:00","updated_at":"2025-11-25T15:17:23.145944-08:00","closed_at":"2025-11-25T15:17:23.145944-08:00"} -{"id":"bd-03z45","title":"Review \u0026 merge PR #1019: feat(ui) Markdown in comments","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #1019: https://github.com/steveyegge/beads/pull/1019\n\n## Summary\nApply ui.RenderMarkdown() to comment text in bd show and bd comments commands. Enables syntax highlighting and code blocks in comments.\n\n## Changes\n- cmd/bd/comments.go - Use RenderMarkdown for comment text\n- cmd/bd/show.go - Use RenderMarkdown for comment display (2 places)\n\n## Review Checklist\n- [ ] Pull the branch locally\n- [ ] Run tests: go test ./...\n- [ ] Test manually: create a comment with markdown, verify it renders\n- [ ] Merge with gh pr merge 1019 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/giles","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:14:20.034175-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T18:17:39.763095-08:00","closed_at":"2026-01-11T18:17:39.763095-08:00","close_reason":"PR #1019 reviewed, tested, and merged. All CI checks passed. Manual testing confirmed markdown rendering works in both bd comments and bd show commands.","comments":[{"id":15,"issue_id":"bd-03z45","author":"beads/crew/giles","text":"Testing markdown:\n\n- Bullet 1\n- Bullet 2\n\n```go\nfunc hello() {\n fmt.Println(\"Hello\")\n}\n```\n\n**Bold** and *italic*","created_at":"2026-01-12T02:16:51Z"}]} -{"id":"bd-03ze8","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T19:20:04.655276-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-07T19:20:04.694807-08:00","closed_at":"2026-01-07T19:20:04.694807-08:00","close_reason":"auto-closed session event"} +{"id":"bd-03z45","title":"Review \u0026 merge PR #1019: feat(ui) Markdown in comments","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #1019: https://github.com/steveyegge/beads/pull/1019\n\n## Summary\nApply ui.RenderMarkdown() to comment text in bd show and bd comments commands. Enables syntax highlighting and code blocks in comments.\n\n## Changes\n- cmd/bd/comments.go - Use RenderMarkdown for comment text\n- cmd/bd/show.go - Use RenderMarkdown for comment display (2 places)\n\n## Review Checklist\n- [ ] Pull the branch locally\n- [ ] Run tests: go test ./...\n- [ ] Test manually: create a comment with markdown, verify it renders\n- [ ] Merge with gh pr merge 1019 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T18:14:20.034175-08:00","updated_at":"2026-01-11T18:17:39.763095-08:00","closed_at":"2026-01-11T18:17:39.763095-08:00","close_reason":"PR #1019 reviewed, tested, and merged. All CI checks passed. Manual testing confirmed markdown rendering works in both bd comments and bd show commands.","created_by":"beads/crew/emma"} +{"id":"bd-03ze8","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T19:20:04.655276-08:00","updated_at":"2026-01-07T19:20:04.694807-08:00","closed_at":"2026-01-07T19:20:04.694807-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/grip"} {"id":"bd-0447029c","title":"bd find-duplicates - AI-powered duplicate detection","description":"Find semantically duplicate issues.\n\nApproaches:\n1. Mechanical: Exact title/description matching\n2. Embeddings: Cosine similarity (cheap, scalable)\n3. AI: LLM-based semantic comparison (expensive, accurate)\n\nUses embeddings by default for \u003e100 issues.\n\nFiles: cmd/bd/find_duplicates.go (new)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T16:43:28.182327-07:00","updated_at":"2025-10-30T17:12:58.188016-07:00","closed_at":"2025-10-29T16:15:10.64719-07:00"} {"id":"bd-0458","title":"Consolidate export/import/commit/push into sync.go","description":"Create internal/daemonrunner/sync.go with Syncer type. Add ExportOnce, ImportOnce, CommitAndMaybePush methods. Replace createExportFunc/createAutoImportFunc with thin closures calling Syncer.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-01T11:41:14.874539-07:00","updated_at":"2025-11-02T12:32:00.157369-08:00","closed_at":"2025-11-02T12:32:00.157375-08:00"} {"id":"bd-05a1","title":"Isolate RPC server startup into rpc_server.go","description":"Create internal/daemonrunner/rpc_server.go with StartRPC function. Move startRPCServer logic here and return typed handle.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-01T11:41:14.876839-07:00","updated_at":"2025-11-02T12:32:00.158054-08:00","closed_at":"2025-11-02T12:32:00.158057-08:00"} @@ -20,13 +20,13 @@ {"id":"bd-0702","title":"Consolidate ID generation and validation into ids.go","description":"Extract ID logic into ids.go: ValidateIssueIDPrefix, GenerateIssueID, EnsureIDs. Move GetAdaptiveIDLength here. Unify single and bulk ID generation flows.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-01T11:41:14.877886-07:00","updated_at":"2025-11-02T15:28:11.996618-08:00","closed_at":"2025-11-02T15:28:11.996624-08:00"} {"id":"bd-077e","title":"Add close_reason field to CLI schema and documentation","description":"PR #551 persists close_reason, but the CLI documentation may not mention this field as part of the issue schema.\n\n## Current State\n- close_reason is now persisted in database\n- `bd show --json` will return close_reason in JSON output\n- Documentation may not reflect this new field\n\n## What's Missing\n- CLI reference documentation for close_reason field\n- Schema documentation showing close_reason is a top-level issue field\n- Example output showing close_reason in bd show --json\n- bd close command documentation should mention close_reason parameter is optional\n\n## Suggested Action\n1. Update README.md or CLI reference docs to list close_reason as an issue field\n2. Add example to bd close documentation\n3. Update any type definitions or schema specs\n4. Consider adding close_reason to verbose list output (bd list --verbose)","status":"hooked","priority":3,"issue_type":"task","created_at":"2025-12-14T14:25:28.448654-08:00","updated_at":"2025-12-30T15:44:43.350245-08:00","dependencies":[{"issue_id":"bd-077e","depends_on_id":"bd-z86n","type":"discovered-from","created_at":"2025-12-14T14:25:28.449968-08:00","created_by":"stevey"}]} {"id":"bd-07af","title":"Need comprehensive daemon health check command (bd daemon doctor?)","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-10-31T21:08:09.092473-07:00","updated_at":"2025-11-01T20:10:41.957435-07:00","closed_at":"2025-11-01T20:10:41.957435-07:00","dependencies":[{"issue_id":"bd-07af","depends_on_id":"bd-2752a7a2","type":"discovered-from","created_at":"2025-10-31T21:08:09.093276-07:00","created_by":"stevey"}]} -{"id":"bd-08ag","title":"Merge: topaz-mjwb6bxt","description":"branch: polecat/topaz-mjwb6bxt\ntarget: main\nsource_issue: topaz-mjwb6bxt\nrig: beads\nagent_bead: gt-beads-polecat-topaz","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-01T19:31:40.026984-08:00","created_by":"beads/polecats/topaz","updated_at":"2026-01-01T19:33:42.040063-08:00","closed_at":"2026-01-01T19:33:42.040063-08:00","close_reason":"Merged to main"} +{"id":"bd-08ag","title":"Merge: topaz-mjwb6bxt","description":"branch: polecat/topaz-mjwb6bxt\ntarget: main\nsource_issue: topaz-mjwb6bxt\nrig: beads\nagent_bead: gt-beads-polecat-topaz","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-01T19:31:40.026984-08:00","updated_at":"2026-01-01T19:33:42.040063-08:00","closed_at":"2026-01-01T19:33:42.040063-08:00","close_reason":"Merged to main","created_by":"beads/polecats/topaz"} {"id":"bd-08e556f2","title":"Remove Cache Configuration Docs","description":"Remove documentation of deprecated cache env vars","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-28T10:50:15.125488-07:00","updated_at":"2025-10-30T17:12:58.216329-07:00","closed_at":"2025-10-28T10:48:20.606979-07:00"} {"id":"bd-08ea","title":"bd cleanup should also prune expired tombstones","description":"## Problem\n\nbd cleanup deletes closed issues (converting them to tombstones) but does NOT prune expired tombstones. Users expect 'cleanup' to do comprehensive cleanup.\n\n## Current Behavior\n\n1. bd cleanup --force converts closed issues to tombstones\n2. Expired tombstones (\u003e30 days) remain in issues.jsonl \n3. User must separately run bd compact to prune tombstones\n4. bd doctor warns about expired tombstones: Run bd compact to prune\n\n## Expected Behavior\n\nbd cleanup should also prune expired tombstones from issues.jsonl.\n\n## Impact\n\nWith v0.30.0 making tombstones the default migration path, this UX gap becomes more visible. Users cleaning up their database should not need to know about a separate bd compact command.\n\n## Proposed Solution\n\nCall pruneExpiredTombstones() at the end of the cleanup command (same function used by compact).\n\n## Files to Modify\n\n- cmd/bd/cleanup.go - Add call to pruneExpiredTombstones after deleteBatch\n\n## Acceptance Criteria\n\n- bd cleanup --force prunes expired tombstones after deleting closed issues\n- bd cleanup --dry-run shows what tombstones would be pruned\n- JSON output includes tombstone prune results","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-14T00:27:34.718433-08:00","updated_at":"2025-12-14T00:41:54.583522-08:00","closed_at":"2025-12-14T00:36:44.488769-08:00"} {"id":"bd-08fd","title":"Test child issue","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-02T11:50:40.640901-08:00","updated_at":"2025-11-02T11:50:47.309652-08:00","closed_at":"2025-11-02T11:50:47.309652-08:00"} {"id":"bd-08lym","title":"Digest: mol-refinery-patrol","description":"Patrol complete: Merge queue empty, no branches to process","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:32:44.068323-08:00","updated_at":"2026-01-12T01:32:44.068323-08:00","closed_at":"2026-01-12T01:32:44.068273-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-09b5f2f5","title":"Daemon fails to auto-import after git pull updates JSONL","description":"After git pull updates .beads/issues.jsonl, daemon doesn't automatically re-import changes, causing stale data to be shown until next sync cycle (up to 5 minutes).\n\nReproduction:\n1. Repo A: Close issues, export, commit, push\n2. Repo B: git pull (successfully updates .beads/issues.jsonl)\n3. bd show \u003cissue\u003e shows OLD status from daemon's SQLite db\n4. JSONL on disk has correct new status\n\nRoot cause: Daemon sync cycle runs on timer (5min). When user manually runs git pull, daemon doesn't detect JSONL was updated externally and continues serving stale data from SQLite.\n\nImpact:\n- High for AI agents using beads in git workflows\n- Breaks fundamental git-as-source-of-truth model\n- Confusing UX: git log shows commit, bd shows old state\n- Data consistency issues between JSONL and daemon\n\nSee WYVERN_SYNC_ISSUE.md for full analysis.","notes":"**Fixed in v0.21.2!**\n\nThe daemon auto-import is fully implemented:\n- internal/autoimport package handles staleness detection\n- internal/importer package provides shared import logic (used by both CLI and daemon)\n- daemon's checkAndAutoImportIfStale() calls autoimport.AutoImportIfNewer()\n- importFunc uses importer.ImportIssues() with auto-rename enabled\n- All tests passing\n\nThe critical data corruption bug is FIXED:\n✅ After git pull, daemon detects JSONL is newer (mtime check)\n✅ Daemon auto-imports before serving requests\n✅ No stale data served\n✅ No data loss in multi-agent workflows\n\nVerification needed: Run two-repo test to confirm end-to-end behavior.","status":"closed","priority":0,"issue_type":"epic","created_at":"2025-10-25T23:13:12.270766-07:00","updated_at":"2025-11-01T16:52:50.931197-07:00","closed_at":"2025-11-01T16:52:50.931197-07:00"} -{"id":"bd-09kt","title":"GHI #888: Add flag aliases for dep add command to reduce Claude token waste","description":"GitHub Issue #888: Add flag aliases for dep add command to reduce Claude token waste\n\nhttps://github.com/steveyegge/beads/issues/888","status":"closed","priority":3,"issue_type":"feature","created_at":"2026-01-04T11:22:14.966615-08:00","created_by":"mayor","updated_at":"2026-01-04T15:22:07.766098-08:00","closed_at":"2026-01-04T11:29:52.943493-08:00","close_reason":"Implemented --blocked-by and --depends-on flag aliases for bd dep add command"} +{"id":"bd-09kt","title":"GHI #888: Add flag aliases for dep add command to reduce Claude token waste","description":"GitHub Issue #888: Add flag aliases for dep add command to reduce Claude token waste\n\nhttps://github.com/steveyegge/beads/issues/888","status":"closed","priority":3,"issue_type":"feature","created_at":"2026-01-04T11:22:14.966615-08:00","updated_at":"2026-01-04T15:22:07.766098-08:00","closed_at":"2026-01-04T11:29:52.943493-08:00","close_reason":"Implemented --blocked-by and --depends-on flag aliases for bd dep add command","created_by":"mayor"} {"id":"bd-0a43","title":"Split monolithic sqlite.go into focused files","description":"internal/storage/sqlite/sqlite.go is 1050 lines containing initialization, 20+ CRUD methods, query building, and schema management.\n\nSplit into:\n- store.go: Store struct \u0026 initialization (150 lines)\n- bead_queries.go: Bead CRUD (300 lines)\n- work_queries.go: Work queries (200 lines) \n- stats_queries.go: Statistics (150 lines)\n- schema.go: Schema \u0026 migrations (150 lines)\n- helpers.go: Common utilities (100 lines)\n\nImpact: Impossible to understand at a glance; hard to find specific functionality; high cognitive load\n\nEffort: 6-8 hours","status":"tombstone","priority":0,"issue_type":"task","created_at":"2025-11-16T14:51:16.520465-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-0a90","title":"bd show --json doesn't include dependency type field","description":"Fix GitHub issue #202. The JSON output from bd show and bd list commands should include the dependency type field (and optionally created_at, created_by) to match internal storage format and enable better tooling integration.","notes":"PR #203 updated with cleaner implementation: https://github.com/steveyegge/beads/pull/203\n\n## Final Implementation\n\nCleanest possible approach - no internal helper methods needed:\n\n**Design:**\n- `GetDependenciesWithMetadata()` / `GetDependentsWithMetadata()` - canonical implementations with full SQL query\n- `GetDependencies()` / `GetDependents()` - thin wrappers that strip metadata for backward compat\n- `scanIssuesWithDependencyType()` - shared helper for scanning rows with dependency type\n\n**Benefits:**\n- Single source of truth - the `...WithMetadata()` methods ARE the implementation\n- Eliminated ~139 lines of duplicated SQL and scanning code\n- All tests passing (14 dependency-related tests)\n- Backward compatible\n- dependency_type field appears correctly in JSON output\n\n**Note on scan helpers:**\nThe duplication between `scanIssues()` and `scanIssuesWithDependencyType()` is necessary because they handle different SQL result shapes (16 vs 17 columns). This is justified as they serve fundamentally different purposes based on query structure.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-02T09:42:08.712725096Z","updated_at":"2025-12-14T12:12:46.527719-08:00","closed_at":"2025-11-02T16:40:27.353076-08:00"} {"id":"bd-0b2","title":"Need --no-git-history flag to disable git history backfill during import","description":"During JSONL migration (beads.jsonl → issues.jsonl), the git history backfill mechanism causes data loss by finding issues in the old beads.jsonl git history and incorrectly treating them as deleted.\n\nA --no-git-history flag for 'bd import' and 'bd sync' would allow users to disable the git history fallback when it's causing problems.\n\nUse cases:\n- JSONL filename migrations\n- Repos with complex git history\n- Debugging import issues\n- Performance (skip slow git scans)\n\nRelated: bd-0gh (migration causes spurious deletions)","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-26T22:28:22.5286-08:00","updated_at":"2025-11-26T23:10:49.354436-08:00","closed_at":"2025-11-26T23:10:49.354436-08:00"} @@ -34,68 +34,68 @@ {"id":"bd-0d9c","title":"YABB: Spurious issue updates during normal operations","description":"Issue bd-627d was updated during config refactoring session without any actual changes to it. Only timestamps and content_hash changed.\n\nObserved: Running various bd commands (list, create, etc.) caused bd-627d updated_at to change from 14:14 to 14:31.\n\nExpected: Issues should only be updated when explicitly modified.\n\nThis causes:\n- Dirty JSONL after every session\n- False conflicts in git\n- Confusing git history\n\nLikely culprit: Daemon auto-import/export cycle or database migration touching all issues.","notes":"Investigated thoroughly - unable to reproduce. The import logic has IssueDataChanged() checks before calling UpdateIssue (importer/importer.go:458). All tests pass. May have been fixed by recent refactorings. Closing as cannot reproduce - please reopen with specific repro steps if it occurs again.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-02T14:36:31.023552-08:00","updated_at":"2025-11-02T16:40:27.35377-08:00","closed_at":"2025-11-02T16:40:27.353774-08:00"} {"id":"bd-0dcea000","title":"Add tests for internal/importer package","description":"Currently 0.0% coverage. Need tests for JSONL import logic including collision detection and resolution.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T14:06:21.071024-07:00","updated_at":"2025-12-14T12:12:46.499486-08:00","closed_at":"2025-11-08T18:06:20.150657-08:00"} {"id":"bd-0do3","title":"Test issue 0","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-07T19:00:15.156832-08:00","updated_at":"2025-11-07T22:07:17.340826-08:00","closed_at":"2025-11-07T21:55:09.425092-08:00"} -{"id":"bd-0e02","title":"Code smell: Inconsistent error handling patterns","description":"Commands use a mix of error handling patterns:\n- FatalError()\n- FatalErrorRespectJSON()\n- fmt.Fprintf(os.Stderr, ...) + os.Exit(1)\n- Silent continue\n- Inconsistent resource cleanup (result.Close())\n\n**Example in show.go lines 89-146:**\nDifferent error paths use different patterns, some close resources, some don't.\n\n**Acceptance Criteria:**\n- [ ] Document error handling contract\n- [ ] Standardize on consistent pattern\n- [ ] Use defer for resource cleanup\n- [ ] Create helper for common fetch-and-handle pattern\n- [ ] Tests pass","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T18:59:30.118-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-30T15:44:43.362524-08:00","closed_at":"2025-12-30T07:02:03.530317-08:00","close_reason":"Implemented: Added LogError, LogErrorRespectJSON, LogNotFound, LogNotFoundRespectJSON helpers to errors.go. Standardized show.go to use these helpers. Updated ERROR_HANDLING.md documentation. Tests pass.","dependencies":[{"issue_id":"bd-0e02","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.683836-08:00","created_by":"daemon"}]} +{"id":"bd-0e02","title":"Code smell: Inconsistent error handling patterns","description":"Commands use a mix of error handling patterns:\n- FatalError()\n- FatalErrorRespectJSON()\n- fmt.Fprintf(os.Stderr, ...) + os.Exit(1)\n- Silent continue\n- Inconsistent resource cleanup (result.Close())\n\n**Example in show.go lines 89-146:**\nDifferent error paths use different patterns, some close resources, some don't.\n\n**Acceptance Criteria:**\n- [ ] Document error handling contract\n- [ ] Standardize on consistent pattern\n- [ ] Use defer for resource cleanup\n- [ ] Create helper for common fetch-and-handle pattern\n- [ ] Tests pass","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T18:59:30.118-08:00","updated_at":"2025-12-30T15:44:43.362524-08:00","closed_at":"2025-12-30T07:02:03.530317-08:00","close_reason":"Implemented: Added LogError, LogErrorRespectJSON, LogNotFound, LogNotFoundRespectJSON helpers to errors.go. Standardized show.go to use these helpers. Updated ERROR_HANDLING.md documentation. Tests pass.","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-0e02","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.683836-08:00","created_by":"daemon"}]} {"id":"bd-0e1f2b1b","title":"Event-driven daemon architecture","description":"Replace 5-second polling sync loop with event-driven architecture that reacts instantly to changes. Eliminates stale data issues while reducing CPU ~60%. Key components: FileWatcher (fsnotify), Debouncer (500ms), RPC mutation events, optional git hooks. Target latency: \u003c500ms (vs 5000ms). See event_driven_daemon.md for full design.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-10-28T16:20:02.430479-07:00","updated_at":"2025-10-30T17:12:58.221424-07:00","closed_at":"2025-10-28T16:30:26.631191-07:00"} -{"id":"bd-0e1gk","title":"Deacon patrol missing GitHub gate check and dispatch-gated steps","description":"bd-1ep6e was closed claiming implementation (commit b5091071), but the commit doesn't exist in gastown/main and the steps are missing from mol-deacon-patrol.formula.toml.\n\n**Missing steps:**\n\n1. `github-gate-check` - runs `bd gate discover` + `bd gate check --type=gh`\n2. `dispatch-gated-molecules` - runs `bd mol ready --gated` + `gt sling`\n\nWithout these, the async gate resume won't work - Deacon won't check GitHub CI gates or dispatch molecules waiting on resolved gates.\n\n**Location:** /Users/stevey/gt/gastown/crew/dennis/.beads/formulas/mol-deacon-patrol.formula.toml\n\n**Blocking:** Release workflow with gate-based async resume","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-09T00:29:07.092312-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T00:34:17.320877-08:00","closed_at":"2026-01-09T00:34:17.320877-08:00","close_reason":"Wrong rig - refiling in gastown beads as gt-*","dependencies":[{"issue_id":"bd-0e1gk","depends_on_id":"bd-ka761","type":"discovered-from","created_at":"2026-01-09T00:29:13.528803-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-0e1gk","title":"Deacon patrol missing GitHub gate check and dispatch-gated steps","description":"bd-1ep6e was closed claiming implementation (commit b5091071), but the commit doesn't exist in gastown/main and the steps are missing from mol-deacon-patrol.formula.toml.\n\n**Missing steps:**\n\n1. `github-gate-check` - runs `bd gate discover` + `bd gate check --type=gh`\n2. `dispatch-gated-molecules` - runs `bd mol ready --gated` + `gt sling`\n\nWithout these, the async gate resume won't work - Deacon won't check GitHub CI gates or dispatch molecules waiting on resolved gates.\n\n**Location:** /Users/stevey/gt/gastown/crew/dennis/.beads/formulas/mol-deacon-patrol.formula.toml\n\n**Blocking:** Release workflow with gate-based async resume","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-09T00:29:07.092312-08:00","updated_at":"2026-01-09T00:34:17.320877-08:00","closed_at":"2026-01-09T00:34:17.320877-08:00","close_reason":"Wrong rig - refiling in gastown beads as gt-*","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-0e1gk","depends_on_id":"bd-ka761","type":"discovered-from","created_at":"2026-01-09T00:29:13.528803-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-0e3","title":"Remove duplicate countIssuesInJSONLFile function","description":"init.go and doctor.go both defined countIssuesInJSONLFile. Removed the init.go version which is now unused. The doctor.go version (which calls countJSONLIssues) is the canonical implementation.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-29T00:35:52.359237464-07:00","updated_at":"2025-11-29T00:36:18.03477857-07:00","closed_at":"2025-11-29T00:36:18.034782016-07:00","dependencies":[{"issue_id":"bd-0e3","depends_on_id":"bd-63l","type":"discovered-from","created_at":"2025-11-29T00:35:52.366221162-07:00","created_by":"matt"}]} -{"id":"bd-0e3m","title":"Merge: jade-1767138549967","description":"branch: polecat/jade-1767138549967\ntarget: main\nsource_issue: jade-1767138549967\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T15:55:27.93798-08:00","created_by":"beads/polecats/jade","updated_at":"2025-12-30T18:12:30.971134-08:00","closed_at":"2025-12-30T18:11:08.020787-08:00"} +{"id":"bd-0e3m","title":"Merge: jade-1767138549967","description":"branch: polecat/jade-1767138549967\ntarget: main\nsource_issue: jade-1767138549967\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T15:55:27.93798-08:00","updated_at":"2025-12-30T18:12:30.971134-08:00","closed_at":"2025-12-30T18:11:08.020787-08:00","created_by":"beads/polecats/jade"} {"id":"bd-0e74","title":"Comprehensive testing for separate branch workflow","description":"Comprehensive testing for separate branch workflow including unit tests, integration tests, and performance testing.\n\nTasks:\n- Unit tests for worktree management\n- Unit tests for config parsing\n- Integration tests: create/update/close → beads branch\n- Integration test: merge beads → main\n- Integration test: protected branch scenario\n- Integration test: network failure recovery\n- Integration test: config change handling\n- Manual testing guide\n- Performance testing (worktree overhead)\n\nTest scenarios: fresh setup, issue operations, merge workflow, protected branch, error handling, migration, multiple workspaces, sparse checkout\n\nEstimated effort: 4-5 days","notes":"Completed comprehensive test coverage. Added 4 new integration tests: config change handling, multiple concurrent clones (3-way), performance testing (avg 77ms \u003c 150ms target), and network failure recovery. All tests pass. Coverage includes fresh setup, issue ops, error handling, multiple workspaces, sparse checkout, config changes, network failures, and performance.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-02T15:22:35.580741-08:00","updated_at":"2025-12-14T12:12:46.529579-08:00","closed_at":"2025-11-02T21:40:35.337468-08:00","dependencies":[{"issue_id":"bd-0e74","depends_on_id":"bd-a101","type":"parent-child","created_at":"2025-11-02T15:22:51.348226-08:00","created_by":"stevey"}]} -{"id":"bd-0fhj2","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T13:39:16.74575-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-10T13:39:16.78045-08:00","closed_at":"2026-01-10T13:39:16.78045-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-0fhj2","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T13:39:16.74575-08:00","updated_at":"2026-01-10T13:39:16.78045-08:00","closed_at":"2026-01-10T13:39:16.78045-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} {"id":"bd-0fvq","title":"bd doctor should recommend bd prime migration for existing repos","description":"bd doctor should detect old beads integration patterns and recommend migrating to bd prime approach.\n\n## Current behavior\n- bd doctor checks if Claude hooks are installed globally\n- Doesn't check project-level integration (AGENTS.md, CLAUDE.md)\n- Doesn't recommend migration for repos using old patterns\n\n## Desired behavior\nbd doctor should detect and suggest:\n\n1. **Old slash command pattern detected**\n - Check for /beads:* references in AGENTS.md, CLAUDE.md\n - Suggest: These slash commands are deprecated, use bd prime hooks instead\n \n2. **No agent documentation**\n - Check if AGENTS.md or CLAUDE.md exists\n - Suggest: Run 'bd onboard' or 'bd setup claude' to document workflow\n \n3. **Old MCP-only pattern**\n - Check for instructions to use MCP tools but no bd prime hooks\n - Suggest: Add bd prime hooks for better token efficiency\n\n4. **Migration path**\n - Show: 'Run bd setup claude to add SessionStart/PreCompact hooks'\n - Show: 'Update AGENTS.md to reference bd prime instead of slash commands'\n\n## Example output\n\n⚠ Warning: Old beads integration detected in CLAUDE.md\n Found: /beads:* slash command references (deprecated)\n Recommend: Migrate to bd prime hooks for better token efficiency\n Fix: Run 'bd setup claude' and update CLAUDE.md\n\n💡 Tip: bd prime + hooks reduces token usage by 80-99% vs slash commands\n MCP mode: ~50 tokens vs ~10.5k for full MCP scan\n CLI mode: ~1-2k tokens with automatic context recovery\n\n## Benefits\n- Helps existing repos adopt new best practices\n- Clear migration path for users\n- Better token efficiency messaging","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-12T03:20:25.567748-08:00","updated_at":"2025-12-23T22:33:23.931274-08:00","closed_at":"2025-12-23T22:33:23.931274-08:00"} -{"id":"bd-0gm4r","title":"bd delete --hard --force creates tombstones that block bd create","description":"dispatched_by: gastown/crew/max\n\n## Problem\n\nWhen using `bd delete --hard --force \u003cbead-id\u003e`, the bead is not truly deleted. Instead, a tombstone record is created (status='tombstone', deleted_at=X).\n\nThis tombstone:\n- Is invisible to `bd show` (returns 'not found')\n- Cannot be reopened with `bd reopen` (returns 'not found')\n- BUT blocks `bd create --id=\u003csame-id\u003e` with UNIQUE constraint error\n\n## Reproduction\n\n```bash\nbd create --id=bd-test-123 'Test bead'\nbd delete --hard --force bd-test-123\nbd show bd-test-123 # 'not found' (expected)\nbd reopen bd-test-123 # 'not found' (unexpected?)\nbd create --id=bd-test-123 'New bead' # UNIQUE constraint failed!\n```\n\n## Impact\n\nGas Town polecats that are removed and later respawned with the same name fail on agent bead creation. The workaround (PR #452 in gastown) uses `bd close` instead of `bd delete --hard --force`.\n\n## Expected Behavior\n\nEither:\n1. `bd delete --hard --force` should truly delete the record (no tombstone), OR\n2. Tombstones should be visible and reopenable, OR\n3. `bd create` should handle tombstones gracefully (delete tombstone and create fresh)\n\n## Discovered\n\nWhile investigating polecat respawn failures in Gas Town. See gastown PR #452 for the workaround.","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/dave","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T17:47:29.058886-08:00","created_by":"gastown/crew/max","updated_at":"2026-01-13T17:51:54.778096-08:00","closed_at":"2026-01-13T17:51:54.778096-08:00","close_reason":"Closed"} -{"id":"bd-0hi7","title":"Add --dry-run flag to bd create","description":"bd create should support a --dry-run flag to preview what would be created without actually creating the issue. Useful for scripting and validation.","status":"closed","priority":2,"issue_type":"feature","created_at":"2026-01-07T00:56:03.188474-08:00","created_by":"gastown/crew/george","updated_at":"2026-01-07T01:05:05.866595-08:00","closed_at":"2026-01-07T01:05:05.866595-08:00","close_reason":"Implemented --dry-run flag for bd create"} +{"id":"bd-0gm4r","title":"bd delete --hard --force creates tombstones that block bd create","description":"dispatched_by: gastown/crew/max\n\n## Problem\n\nWhen using `bd delete --hard --force \u003cbead-id\u003e`, the bead is not truly deleted. Instead, a tombstone record is created (status='tombstone', deleted_at=X).\n\nThis tombstone:\n- Is invisible to `bd show` (returns 'not found')\n- Cannot be reopened with `bd reopen` (returns 'not found')\n- BUT blocks `bd create --id=\u003csame-id\u003e` with UNIQUE constraint error\n\n## Reproduction\n\n```bash\nbd create --id=bd-test-123 'Test bead'\nbd delete --hard --force bd-test-123\nbd show bd-test-123 # 'not found' (expected)\nbd reopen bd-test-123 # 'not found' (unexpected?)\nbd create --id=bd-test-123 'New bead' # UNIQUE constraint failed!\n```\n\n## Impact\n\nGas Town polecats that are removed and later respawned with the same name fail on agent bead creation. The workaround (PR #452 in gastown) uses `bd close` instead of `bd delete --hard --force`.\n\n## Expected Behavior\n\nEither:\n1. `bd delete --hard --force` should truly delete the record (no tombstone), OR\n2. Tombstones should be visible and reopenable, OR\n3. `bd create` should handle tombstones gracefully (delete tombstone and create fresh)\n\n## Discovered\n\nWhile investigating polecat respawn failures in Gas Town. See gastown PR #452 for the workaround.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-13T17:47:29.058886-08:00","updated_at":"2026-01-13T17:51:54.778096-08:00","closed_at":"2026-01-13T17:51:54.778096-08:00","close_reason":"Closed","created_by":"gastown/crew/max"} +{"id":"bd-0hi7","title":"Add --dry-run flag to bd create","description":"bd create should support a --dry-run flag to preview what would be created without actually creating the issue. Useful for scripting and validation.","status":"closed","priority":2,"issue_type":"feature","created_at":"2026-01-07T00:56:03.188474-08:00","updated_at":"2026-01-07T01:05:05.866595-08:00","closed_at":"2026-01-07T01:05:05.866595-08:00","close_reason":"Implemented --dry-run flag for bd create","created_by":"gastown/crew/george"} {"id":"bd-0io","title":"Sync should cleanup snapshot files after completion","description":"## Problem\n`bd sync` leaves orphaned merge artifact files (beads.base.jsonl, beads.left.jsonl) after completion, causing:\n1. Doctor warnings about 'Multiple JSONL files found'\n2. Confusion during debugging\n3. Potential stale data issues on next sync\n\n## Root Cause\n`SnapshotManager` creates these files for 3-way merge deletion tracking but `Cleanup()` is never called after sync completes (success or failure).\n\n## Fix\nCall `SnapshotManager.Cleanup()` at end of successful sync:\n\n```go\n// sync.go after successful validation\nsm := NewSnapshotManager(jsonlPath)\nsm.Cleanup()\n```\n\n## Files\n- cmd/bd/sync.go (add cleanup call)\n- cmd/bd/snapshot_manager.go (Cleanup method exists at line 188)","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-28T17:06:20.881183-08:00","updated_at":"2025-12-02T17:11:19.725746076-05:00","closed_at":"2025-11-28T21:53:44.37689-08:00"} -{"id":"bd-0ixn3","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:15:49.96888-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:15:50.043429-08:00","closed_at":"2026-01-11T21:15:50.043429-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-0j5si","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T14:53:02.03388-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T14:53:02.070183-08:00","closed_at":"2026-01-10T14:53:02.070183-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-0ixn3","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:15:49.96888-08:00","updated_at":"2026-01-11T21:15:50.043429-08:00","closed_at":"2026-01-11T21:15:50.043429-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-0j5si","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T14:53:02.03388-08:00","updated_at":"2026-01-10T14:53:02.070183-08:00","closed_at":"2026-01-10T14:53:02.070183-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-0j5y","title":"Merge: bd-05a8","description":"branch: polecat/valkyrie\ntarget: main\nsource_issue: bd-05a8\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-23T20:50:27.125378-08:00","updated_at":"2025-12-23T21:21:57.69697-08:00","closed_at":"2025-12-23T21:21:57.69697-08:00"} -{"id":"bd-0jv3f","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T13:04:46.484846-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T13:04:46.568057-08:00","closed_at":"2026-01-13T13:04:46.568057-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-0jv3f","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T13:04:46.484846-08:00","updated_at":"2026-01-13T13:04:46.568057-08:00","closed_at":"2026-01-13T13:04:46.568057-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-0kai","title":"Work on beads-ocs: Thin shim hooks to eliminate version d...","description":"Work on beads-ocs: Thin shim hooks to eliminate version drift (GH#615). Replace full hook scripts with thin shims that call bd hooks run. When done, submit MR (not PR) to integration branch for Refinery.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-19T22:57:22.91347-08:00","updated_at":"2025-12-20T00:49:51.926425-08:00","closed_at":"2025-12-19T23:24:08.828172-08:00"} -{"id":"bd-0kue","title":"Merge: onyx-1767106262992","description":"branch: polecat/onyx-1767106262992\ntarget: main\nsource_issue: onyx-1767106262992\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T06:59:46.964658-08:00","created_by":"beads/polecats/onyx","updated_at":"2025-12-30T15:44:43.3647-08:00","closed_at":"2025-12-30T10:27:23.072233-08:00"} +{"id":"bd-0kue","title":"Merge: onyx-1767106262992","description":"branch: polecat/onyx-1767106262992\ntarget: main\nsource_issue: onyx-1767106262992\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T06:59:46.964658-08:00","updated_at":"2025-12-30T15:44:43.3647-08:00","closed_at":"2025-12-30T10:27:23.072233-08:00","created_by":"beads/polecats/onyx"} {"id":"bd-0kz8","title":"Fix default .beads/.gitignore to ignore merge artifacts (GH #274)","description":"Updated the default .gitignore template created by `bd init` to properly ignore merge artifacts and fix overly broad patterns.\n\nChanges:\n- Added `*.db?*` pattern for database files with query strings\n- Added explicit patterns for merge artifacts: beads.{base,left,right}.{jsonl,meta.json}\n- Changed `!*.jsonl` to `!issues.jsonl` to avoid including merge artifact JSONL files\n\nThis fixes GitHub issue #274 reported by rscorer.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-09T11:23:25.595551-08:00","updated_at":"2025-11-09T11:23:28.780095-08:00","closed_at":"2025-11-09T11:23:28.780095-08:00"} -{"id":"bd-0nn96","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:57:24.005917-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T22:57:24.043245-08:00","closed_at":"2026-01-09T22:57:24.043245-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-0nnqv","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T13:54:44.364691-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T13:54:44.441413-08:00","closed_at":"2026-01-13T13:54:44.441413-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-0nn96","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:57:24.005917-08:00","updated_at":"2026-01-09T22:57:24.043245-08:00","closed_at":"2026-01-09T22:57:24.043245-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-0nnqv","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T13:54:44.364691-08:00","updated_at":"2026-01-13T13:54:44.441413-08:00","closed_at":"2026-01-13T13:54:44.441413-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-0oqz","title":"Add GetMoleculeProgress RPC endpoint","description":"New RPC endpoint to get detailed progress for a specific molecule. Returns: moleculeID, title, assignee, and list of steps with their status (done/current/ready/blocked), start/close times. Used when user expands a worker in the activity feed TUI.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-23T16:26:38.137866-08:00","updated_at":"2025-12-23T18:27:49.033335-08:00","closed_at":"2025-12-23T18:27:49.033335-08:00"} {"id":"bd-0qeg","title":"Fix bd doctor hash ID detection for short all-numeric hashes","description":"bd doctor incorrectly flags hash-based IDs as sequential when they are short (3-4 chars) and all-numeric (e.g., pf-158).\n\nRoot cause: isHashID() in cmd/bd/migrate_hash_ids.go:328-358 uses faulty heuristic:\n- For IDs \u003c 5 chars, only returns true if contains letters\n- But base36 hash IDs can be 3+ chars and all-numeric (MinLength: 3)\n- Example: pf-158 is valid hash ID but flagged as sequential\n\nFix: Check multiple IDs (10-20 samples) instead of single-ID pattern matching:\n- Sample IDs across database \n- Check majority pattern (sequential vs hash format)\n- Sequential: 1-4 digits (bd-1, bd-2...)\n- Hash: 3-8 chars base36 (pf-158, pf-3s9...)\n\nImpact: False positive warnings in bd doctor output","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-16T13:45:20.733761-08:00","updated_at":"2025-11-16T14:27:48.143485-08:00","closed_at":"2025-11-16T14:27:48.143485-08:00"} -{"id":"bd-0qx5","title":"Implement Jira issue timestamp comparison for sync","description":"In cmd/bd/jira.go:633, there's a TODO for a full implementation that would fetch the Jira issue and compare timestamps to detect conflicts during sync.\n\nFile: cmd/bd/jira.go:633","status":"closed","priority":4,"issue_type":"feature","created_at":"2025-12-28T16:32:52.601594-08:00","created_by":"stevey","updated_at":"2025-12-30T18:12:30.977631-08:00","closed_at":"2025-12-30T16:00:07.968921-08:00","close_reason":"Implemented Jira timestamp comparison for sync. Added fetchJiraIssueTimestamp() to fetch timestamps from Jira REST API, updated detectJiraConflicts() to compare actual timestamps, and improved conflict resolution functions to display timestamp details."} -{"id":"bd-0qzfw","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T09:54:17.619911-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T09:54:17.682076-08:00","closed_at":"2026-01-11T09:54:17.682076-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-0sgd","title":"Design escalation inbox for stuck workflows","description":"## Summary\n\nExtend the existing `gt escalate` system with tiered routing, structured decision patterns, and integration with gates and patrol lifecycles.\n\n## Background\n\nFrom gate design discussion and workflow analysis. Gas Town needs:\n1. Structured way for workers to request decisions (not just free-form escalation)\n2. Tiered routing (Deacon -\u003e Mayor -\u003e Overseer) instead of direct-to-human\n3. Integration with gates (timeout -\u003e escalate)\n4. Formalized patterns for all worker exit scenarios\n\n## Current State (what exists)\n\nThe escalation system is already partially built:\n\n- `gt escalate` command: CRITICAL/HIGH/MEDIUM severity\n- Creates bead tagged `escalation`\n- Sends mail to `overseer`\n- Mayor checks pending escalations on `gt prime`\n- Exit type `ESCALATED` for polecats\n- Event logging: `escalation_sent`\n\nSee: `gastown/docs/escalation.md`\n\n## What's Missing\n\n| Gap | Current | Proposed |\n|-----|---------|----------|\n| Tiered routing | Direct to overseer | Deacon -\u003e Mayor -\u003e Overseer |\n| Decision pattern | Free-form topic | Structured options in issue |\n| Categories | Just \"escalation\" tag | decision, help, blocked, failed, emergency |\n| Gate integration | None | Gate timeout -\u003e escalate |\n| Patrol integration | Ad-hoc | Formalized paths |\n\n## Design\n\n### Escalation Categories\n\n| Category | Description | Default Destination |\n|----------|-------------|---------------------|\n| `decision` | Multiple valid paths, need choice | Deacon -\u003e Mayor |\n| `help` | Need guidance/expertise | Deacon -\u003e Mayor |\n| `blocked` | Waiting on unresolvable dependency | Mayor |\n| `failed` | Unexpected error, can't proceed | Deacon |\n| `emergency` | Security/data integrity | Overseer (direct) |\n| `gate_timeout` | Gate didn't resolve in time | Deacon |\n| `lifecycle` | Worker stuck/needs recycle | Witness |\n\n### Extended Command\n\n```bash\n# Current (unchanged)\ngt escalate \"Something went wrong\"\ngt escalate -s CRITICAL \"Data corruption\"\n\n# New: Category-based\ngt escalate --type decision \"Which auth approach?\"\ngt escalate --type help \"Need architecture guidance\"\ngt escalate --type blocked \"Waiting on bd-xyz\"\ngt escalate --type failed \"Tests failing unexpectedly\"\ngt escalate --type emergency \"Security vulnerability found\"\n\n# New: Tiered routing\ngt escalate --to deacon \"Infra issue\"\ngt escalate --to mayor \"Cross-rig coordination needed\"\ngt escalate --to overseer \"Human judgment required\"\n\n# New: Structured decision\ngt escalate --type decision \\\n --question \"Which authentication approach?\" \\\n --options \"JWT tokens,Session cookies,OAuth2\" \\\n --context \"Admin panel needs login\" \\\n --issue bd-xyz\n```\n\n### Decision Pattern in Issues\n\nWhen `--type decision` is used, the issue is updated with structured format:\n\n```markdown\n## Decision Needed\n\n**Question:** Which authentication approach?\n\n| Option | Description |\n|--------|-------------|\n| A | JWT tokens |\n| B | Session cookies |\n| C | OAuth2 |\n\n**Context:** Admin panel needs login\n\n**Escalated by:** beads/polecats/obsidian\n**Escalated at:** 2026-01-01T15:00:00Z\n\n**To resolve:**\n1. Comment with chosen option (e.g., \"Decision: A\")\n2. Reassign to work queue or original worker\n```\n\nThis makes the issue the async communication channel for decisions.\n\n### Tiered Escalation Flow\n\n```\nWorker encounters issue\n |\n v\ngt escalate --type \u003ccategory\u003e --to \u003ctier\u003e\n |\n v\n[Deacon receives]\n |\n +-- Can resolve? --\u003e Updates issue, re-slings work\n |\n +-- Cannot resolve? --\u003e gt escalate --to mayor --forward\n |\n v\n [Mayor receives]\n |\n +-- Can resolve? --\u003e Updates issue, re-slings\n |\n +-- Cannot resolve? --\u003e gt escalate --to overseer\n |\n v\n [Overseer resolves]\n```\n\nEach tier can resolve OR forward. The escalation bead tracks the chain via comments/notes.\n\n### Integration Points\n\n#### Gate Timeouts (bd-7zka.2)\n\n```go\n// In Witness patrol (timer gates)\nif gate.Expired() {\n exec.Command(\"gt\", \"escalate\",\n \"--type\", \"gate_timeout\",\n \"--severity\", \"HIGH\",\n \"--issue\", gate.BlockedIssueID,\n fmt.Sprintf(\"Gate %s timed out after %s\", gate.ID, gate.Timeout)).Run()\n}\n```\n\n#### Witness Patrol\n\nWitness already detects stuck polecats. Formalize as escalation:\n\n```go\n// Instead of ad-hoc mail\nexec.Command(\"gt\", \"escalate\",\n \"--type\", \"lifecycle\",\n \"--to\", \"mayor\",\n \"--issue\", polecat.CurrentIssue,\n fmt.Sprintf(\"Polecat %s stuck: no progress for %d minutes\", polecat.ID, minutes)).Run()\n```\n\n#### Refinery\n\nOn merge failures that can't be auto-resolved:\n\n```go\nexec.Command(\"gt\", \"escalate\",\n \"--type\", \"failed\",\n \"--issue\", mr.IssueID,\n \"Merge failed: \"+reason).Run()\n```\n\n### Polecat Exit with Escalation\n\n```bash\n# Worker reaches decision point\n\n# 1. Update issue with decision structure\nbd update $ISSUE --notes \"$(cat \u003c\u003cEOF\n## Decision Needed\n\n**Question:** Which approach for caching?\n\n| Option | Description |\n|--------|-------------|\n| A | Redis (external dependency) |\n| B | In-memory (simpler, no persistence) |\n| C | SQLite (local persistence) |\n\n**Context:** API response times are slow, need caching layer.\nEOF\n)\"\n\n# 2. Escalate\ngt escalate --type decision --issue $ISSUE \"Caching approach needs decision\"\n\n# 3. Exit cleanly\ngt done --exit ESCALATED\n```\n\n### New Issue Statuses\n\nConsider adding to beads:\n\n| Status | Meaning |\n|--------|---------|\n| `decision_needed` | Waiting for decision from escalation |\n| `escalated` | General escalation pending |\n\nOr keep using `blocked` with escalation tag - simpler.\n\n## Implementation Plan\n\n### Phase 1: Extend gt escalate\n- Add `--type` flag for categories\n- Add `--to` flag for routing (deacon, mayor, overseer)\n- Add `--forward` flag for tier forwarding\n- Keep backward compatibility\n\n### Phase 2: Decision Pattern\n- Add `--question`, `--options`, `--context` flags\n- Auto-update issue with decision structure\n- Parse decision from issue comments on resolution\n\n### Phase 3: Gate Integration\n- Add `gate_timeout` escalation type\n- Witness: check timer gates, escalate on timeout\n- Refinery: check GH gates, escalate on timeout/failure\n\n### Phase 4: Patrol Integration\n- Formalize Witness stuck-polecat as escalation\n- Formalize Refinery merge-failure as escalation\n- Unified escalation handling in Mayor\n\n## Acceptance Criteria\n\n- [ ] `gt escalate --type decision` creates structured issue update\n- [ ] `gt escalate --to deacon|mayor|overseer` routes correctly\n- [ ] Gate timeouts trigger escalation (after bd-7zka.2)\n- [ ] Witness uses escalation for stuck polecats\n- [ ] Refinery uses escalation for merge failures\n- [ ] Escalation chain tracked in bead (who forwarded to whom)\n- [ ] `bd list --tag=escalation --type=decision` filters work\n\n## References\n\n- bd-7zka.2: Gate evaluation (uses escalation for timeouts)\n- gastown/docs/escalation.md: Current escalation protocol\n- gastown/crew/max/internal/cmd/escalate.go: Current implementation","notes":"## Design Complete\n\nThe extended escalation design has been documented in gastown/docs/escalation.md.\n\n**Key design decisions:**\n1. Categories map to default routing tiers\n2. Decision pattern uses issue notes as async communication channel\n3. Gate integration via --type gate_timeout\n4. Lifecycle escalations formalized for Witness/Refinery\n\n**Implementation phases defined:**\n- Phase 1: Extend gt escalate command\n- Phase 2: Add decision pattern flags\n- Phase 3: Gate integration\n- Phase 4: Patrol integration\n\nThe acceptance criteria in this issue describe implementation, not design. Those will be verified when the implementation issues are completed.","status":"closed","priority":2,"issue_type":"feature","assignee":"beads/polecats/quartz","created_at":"2026-01-01T15:03:37.684701-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-01T16:14:14.115179-08:00","closed_at":"2026-01-01T16:14:14.115179-08:00","close_reason":"Design documented in gastown/docs/escalation.md. Implementation issues to follow."} -{"id":"bd-0t8ak","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:37:26.15333-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-08T14:37:26.187302-08:00","closed_at":"2026-01-08T14:37:26.187302-08:00","close_reason":"auto-closed session event"} +{"id":"bd-0qx5","title":"Implement Jira issue timestamp comparison for sync","description":"In cmd/bd/jira.go:633, there's a TODO for a full implementation that would fetch the Jira issue and compare timestamps to detect conflicts during sync.\n\nFile: cmd/bd/jira.go:633","status":"closed","priority":4,"issue_type":"feature","created_at":"2025-12-28T16:32:52.601594-08:00","updated_at":"2025-12-30T18:12:30.977631-08:00","closed_at":"2025-12-30T16:00:07.968921-08:00","close_reason":"Implemented Jira timestamp comparison for sync. Added fetchJiraIssueTimestamp() to fetch timestamps from Jira REST API, updated detectJiraConflicts() to compare actual timestamps, and improved conflict resolution functions to display timestamp details.","created_by":"stevey"} +{"id":"bd-0qzfw","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T09:54:17.619911-08:00","updated_at":"2026-01-11T09:54:17.682076-08:00","closed_at":"2026-01-11T09:54:17.682076-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-0sgd","title":"Design escalation inbox for stuck workflows","description":"## Summary\n\nExtend the existing `gt escalate` system with tiered routing, structured decision patterns, and integration with gates and patrol lifecycles.\n\n## Background\n\nFrom gate design discussion and workflow analysis. Gas Town needs:\n1. Structured way for workers to request decisions (not just free-form escalation)\n2. Tiered routing (Deacon -\u003e Mayor -\u003e Overseer) instead of direct-to-human\n3. Integration with gates (timeout -\u003e escalate)\n4. Formalized patterns for all worker exit scenarios\n\n## Current State (what exists)\n\nThe escalation system is already partially built:\n\n- `gt escalate` command: CRITICAL/HIGH/MEDIUM severity\n- Creates bead tagged `escalation`\n- Sends mail to `overseer`\n- Mayor checks pending escalations on `gt prime`\n- Exit type `ESCALATED` for polecats\n- Event logging: `escalation_sent`\n\nSee: `gastown/docs/escalation.md`\n\n## What's Missing\n\n| Gap | Current | Proposed |\n|-----|---------|----------|\n| Tiered routing | Direct to overseer | Deacon -\u003e Mayor -\u003e Overseer |\n| Decision pattern | Free-form topic | Structured options in issue |\n| Categories | Just \"escalation\" tag | decision, help, blocked, failed, emergency |\n| Gate integration | None | Gate timeout -\u003e escalate |\n| Patrol integration | Ad-hoc | Formalized paths |\n\n## Design\n\n### Escalation Categories\n\n| Category | Description | Default Destination |\n|----------|-------------|---------------------|\n| `decision` | Multiple valid paths, need choice | Deacon -\u003e Mayor |\n| `help` | Need guidance/expertise | Deacon -\u003e Mayor |\n| `blocked` | Waiting on unresolvable dependency | Mayor |\n| `failed` | Unexpected error, can't proceed | Deacon |\n| `emergency` | Security/data integrity | Overseer (direct) |\n| `gate_timeout` | Gate didn't resolve in time | Deacon |\n| `lifecycle` | Worker stuck/needs recycle | Witness |\n\n### Extended Command\n\n```bash\n# Current (unchanged)\ngt escalate \"Something went wrong\"\ngt escalate -s CRITICAL \"Data corruption\"\n\n# New: Category-based\ngt escalate --type decision \"Which auth approach?\"\ngt escalate --type help \"Need architecture guidance\"\ngt escalate --type blocked \"Waiting on bd-xyz\"\ngt escalate --type failed \"Tests failing unexpectedly\"\ngt escalate --type emergency \"Security vulnerability found\"\n\n# New: Tiered routing\ngt escalate --to deacon \"Infra issue\"\ngt escalate --to mayor \"Cross-rig coordination needed\"\ngt escalate --to overseer \"Human judgment required\"\n\n# New: Structured decision\ngt escalate --type decision \\\n --question \"Which authentication approach?\" \\\n --options \"JWT tokens,Session cookies,OAuth2\" \\\n --context \"Admin panel needs login\" \\\n --issue bd-xyz\n```\n\n### Decision Pattern in Issues\n\nWhen `--type decision` is used, the issue is updated with structured format:\n\n```markdown\n## Decision Needed\n\n**Question:** Which authentication approach?\n\n| Option | Description |\n|--------|-------------|\n| A | JWT tokens |\n| B | Session cookies |\n| C | OAuth2 |\n\n**Context:** Admin panel needs login\n\n**Escalated by:** beads/polecats/obsidian\n**Escalated at:** 2026-01-01T15:00:00Z\n\n**To resolve:**\n1. Comment with chosen option (e.g., \"Decision: A\")\n2. Reassign to work queue or original worker\n```\n\nThis makes the issue the async communication channel for decisions.\n\n### Tiered Escalation Flow\n\n```\nWorker encounters issue\n |\n v\ngt escalate --type \u003ccategory\u003e --to \u003ctier\u003e\n |\n v\n[Deacon receives]\n |\n +-- Can resolve? --\u003e Updates issue, re-slings work\n |\n +-- Cannot resolve? --\u003e gt escalate --to mayor --forward\n |\n v\n [Mayor receives]\n |\n +-- Can resolve? --\u003e Updates issue, re-slings\n |\n +-- Cannot resolve? --\u003e gt escalate --to overseer\n |\n v\n [Overseer resolves]\n```\n\nEach tier can resolve OR forward. The escalation bead tracks the chain via comments/notes.\n\n### Integration Points\n\n#### Gate Timeouts (bd-7zka.2)\n\n```go\n// In Witness patrol (timer gates)\nif gate.Expired() {\n exec.Command(\"gt\", \"escalate\",\n \"--type\", \"gate_timeout\",\n \"--severity\", \"HIGH\",\n \"--issue\", gate.BlockedIssueID,\n fmt.Sprintf(\"Gate %s timed out after %s\", gate.ID, gate.Timeout)).Run()\n}\n```\n\n#### Witness Patrol\n\nWitness already detects stuck polecats. Formalize as escalation:\n\n```go\n// Instead of ad-hoc mail\nexec.Command(\"gt\", \"escalate\",\n \"--type\", \"lifecycle\",\n \"--to\", \"mayor\",\n \"--issue\", polecat.CurrentIssue,\n fmt.Sprintf(\"Polecat %s stuck: no progress for %d minutes\", polecat.ID, minutes)).Run()\n```\n\n#### Refinery\n\nOn merge failures that can't be auto-resolved:\n\n```go\nexec.Command(\"gt\", \"escalate\",\n \"--type\", \"failed\",\n \"--issue\", mr.IssueID,\n \"Merge failed: \"+reason).Run()\n```\n\n### Polecat Exit with Escalation\n\n```bash\n# Worker reaches decision point\n\n# 1. Update issue with decision structure\nbd update $ISSUE --notes \"$(cat \u003c\u003cEOF\n## Decision Needed\n\n**Question:** Which approach for caching?\n\n| Option | Description |\n|--------|-------------|\n| A | Redis (external dependency) |\n| B | In-memory (simpler, no persistence) |\n| C | SQLite (local persistence) |\n\n**Context:** API response times are slow, need caching layer.\nEOF\n)\"\n\n# 2. Escalate\ngt escalate --type decision --issue $ISSUE \"Caching approach needs decision\"\n\n# 3. Exit cleanly\ngt done --exit ESCALATED\n```\n\n### New Issue Statuses\n\nConsider adding to beads:\n\n| Status | Meaning |\n|--------|---------|\n| `decision_needed` | Waiting for decision from escalation |\n| `escalated` | General escalation pending |\n\nOr keep using `blocked` with escalation tag - simpler.\n\n## Implementation Plan\n\n### Phase 1: Extend gt escalate\n- Add `--type` flag for categories\n- Add `--to` flag for routing (deacon, mayor, overseer)\n- Add `--forward` flag for tier forwarding\n- Keep backward compatibility\n\n### Phase 2: Decision Pattern\n- Add `--question`, `--options`, `--context` flags\n- Auto-update issue with decision structure\n- Parse decision from issue comments on resolution\n\n### Phase 3: Gate Integration\n- Add `gate_timeout` escalation type\n- Witness: check timer gates, escalate on timeout\n- Refinery: check GH gates, escalate on timeout/failure\n\n### Phase 4: Patrol Integration\n- Formalize Witness stuck-polecat as escalation\n- Formalize Refinery merge-failure as escalation\n- Unified escalation handling in Mayor\n\n## Acceptance Criteria\n\n- [ ] `gt escalate --type decision` creates structured issue update\n- [ ] `gt escalate --to deacon|mayor|overseer` routes correctly\n- [ ] Gate timeouts trigger escalation (after bd-7zka.2)\n- [ ] Witness uses escalation for stuck polecats\n- [ ] Refinery uses escalation for merge failures\n- [ ] Escalation chain tracked in bead (who forwarded to whom)\n- [ ] `bd list --tag=escalation --type=decision` filters work\n\n## References\n\n- bd-7zka.2: Gate evaluation (uses escalation for timeouts)\n- gastown/docs/escalation.md: Current escalation protocol\n- gastown/crew/max/internal/cmd/escalate.go: Current implementation","notes":"## Design Complete\n\nThe extended escalation design has been documented in gastown/docs/escalation.md.\n\n**Key design decisions:**\n1. Categories map to default routing tiers\n2. Decision pattern uses issue notes as async communication channel\n3. Gate integration via --type gate_timeout\n4. Lifecycle escalations formalized for Witness/Refinery\n\n**Implementation phases defined:**\n- Phase 1: Extend gt escalate command\n- Phase 2: Add decision pattern flags\n- Phase 3: Gate integration\n- Phase 4: Patrol integration\n\nThe acceptance criteria in this issue describe implementation, not design. Those will be verified when the implementation issues are completed.","status":"closed","priority":2,"issue_type":"feature","created_at":"2026-01-01T15:03:37.684701-08:00","updated_at":"2026-01-01T16:14:14.115179-08:00","closed_at":"2026-01-01T16:14:14.115179-08:00","close_reason":"Design documented in gastown/docs/escalation.md. Implementation issues to follow.","created_by":"beads/crew/fang"} +{"id":"bd-0t8ak","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:37:26.15333-08:00","updated_at":"2026-01-08T14:37:26.187302-08:00","closed_at":"2026-01-08T14:37:26.187302-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/wolf"} {"id":"bd-0v4","title":"Short tests taking 13+ minutes (performance regression)","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-27T00:54:03.350344-08:00","updated_at":"2025-11-27T13:23:19.376658-08:00","closed_at":"2025-11-27T01:36:06.684059-08:00"} {"id":"bd-0vfe","title":"Blocked issue","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-07T19:07:17.105974-08:00","updated_at":"2025-11-07T22:07:17.342098-08:00","closed_at":"2025-11-07T21:55:09.425545-08:00"} {"id":"bd-0vg","title":"Pinned issues: persistent context markers","description":"Add ability to pin issues so they remain visible and are excluded from work-finding commands. Pinned issues serve as persistent context markers (handoffs, architectural notes, recovery instructions) that should not be claimed as work items.\n\nUse Cases:\n1. Handoff messages - Pin session handoffs so new agents always see them\n2. Architecture decisions - Pin ADRs or design notes for reference \n3. Recovery context - Pin amnesia-cure notes that help agents orient\n\nCore commands: bd pin, bd unpin, bd list --pinned/--no-pinned","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-18T23:33:10.911092-08:00","updated_at":"2025-12-21T11:30:28.989696-08:00","closed_at":"2025-12-21T11:30:28.989696-08:00"} -{"id":"bd-0vtq","title":"Investigate JSONL hash mismatch warnings (bd-160)","description":"During v0.39.1 release, saw repeated warnings:\n\nWARNING: JSONL file hash mismatch detected (bd-160)\n This indicates JSONL and export_hashes are out of sync.\n Clearing export_hashes to force full re-export.\n\nThis appeared multiple times during wisp close operations. Questions:\n1. What causes export_hashes to drift from actual JSONL content?\n2. Is this expected during wisp operations (since wisps do not export)?\n3. Should wisp operations skip the hash check entirely?\n4. Is there actual data integrity risk or just noise?\n\nThe warning references bd-160 - may need to check that issue for context.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-27T22:51:25.448856-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-27T23:22:09.589444-08:00","closed_at":"2025-12-27T23:22:09.589444-08:00"} -{"id":"bd-0vu3q","title":"Issue to reopen with reason","status":"open","priority":1,"issue_type":"bug","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:00.860132-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:00.986032-08:00","comments":[{"id":13,"issue_id":"bd-0vu3q","author":"beads/crew/wolf","text":"BG found a regression in production","created_at":"2026-01-12T02:16:00Z"}]} +{"id":"bd-0vtq","title":"Investigate JSONL hash mismatch warnings (bd-160)","description":"During v0.39.1 release, saw repeated warnings:\n\nWARNING: JSONL file hash mismatch detected (bd-160)\n This indicates JSONL and export_hashes are out of sync.\n Clearing export_hashes to force full re-export.\n\nThis appeared multiple times during wisp close operations. Questions:\n1. What causes export_hashes to drift from actual JSONL content?\n2. Is this expected during wisp operations (since wisps do not export)?\n3. Should wisp operations skip the hash check entirely?\n4. Is there actual data integrity risk or just noise?\n\nThe warning references bd-160 - may need to check that issue for context.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-27T22:51:25.448856-08:00","updated_at":"2025-12-27T23:22:09.589444-08:00","closed_at":"2025-12-27T23:22:09.589444-08:00","created_by":"beads/crew/emma"} +{"id":"bd-0vu3q","title":"Issue to reopen with reason","status":"open","priority":1,"issue_type":"bug","created_at":"2026-01-11T18:16:00.860132-08:00","updated_at":"2026-01-11T18:16:00.986032-08:00","created_by":"beads/crew/wolf"} {"id":"bd-0w5","title":"Fix update-hooks verification in version-bump.yaml","description":"The update-hooks task verification command at version-bump.yaml:358 always succeeds due to '|| echo ...' fallback. Remove the fallback so verification actually fails when hooks aren't installed.","status":"tombstone","priority":3,"issue_type":"bug","created_at":"2025-12-17T22:23:06.55467-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} -{"id":"bd-0xi7q","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:35:08.899622-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T01:35:08.946726-08:00","closed_at":"2026-01-12T01:35:08.946726-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-0ydb","title":"Review PR #834: Add Windows ARM64 build support","description":"Review and potentially merge PR #834 from ramarivera adding native Windows ARM64 (aarch64) build support.\n\nKey changes:\n- GoReleaser: Added bd-windows-arm64 build configuration\n- CI Workflow: Installed gcc-mingw-w64-aarch64 toolchain\n- WinGet Manifest: Added ARM64 installer entry\n- Release Notes: Updated to mention Windows ARM64 support\n\nFixes #833. No code changes - purely build configuration.","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/wolf","created_at":"2026-01-01T10:45:50.99742-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-01T10:50:05.502922-08:00","closed_at":"2026-01-01T10:50:05.502922-08:00","close_reason":"Reviewed PR #834. Requested changes: gcc-mingw-w64-aarch64 package doesn't exist in Ubuntu. Recommended using CGO_ENABLED=0 since ncruces/go-sqlite3 is CGO-free."} +{"id":"bd-0xi7q","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T01:35:08.899622-08:00","updated_at":"2026-01-12T01:35:08.946726-08:00","closed_at":"2026-01-12T01:35:08.946726-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-0ydb","title":"Review PR #834: Add Windows ARM64 build support","description":"Review and potentially merge PR #834 from ramarivera adding native Windows ARM64 (aarch64) build support.\n\nKey changes:\n- GoReleaser: Added bd-windows-arm64 build configuration\n- CI Workflow: Installed gcc-mingw-w64-aarch64 toolchain\n- WinGet Manifest: Added ARM64 installer entry\n- Release Notes: Updated to mention Windows ARM64 support\n\nFixes #833. No code changes - purely build configuration.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-01T10:45:50.99742-08:00","updated_at":"2026-01-01T10:50:05.502922-08:00","closed_at":"2026-01-01T10:50:05.502922-08:00","close_reason":"Reviewed PR #834. Requested changes: gcc-mingw-w64-aarch64 package doesn't exist in Ubuntu. Recommended using CGO_ENABLED=0 since ncruces/go-sqlite3 is CGO-free.","created_by":"beads/crew/wolf"} {"id":"bd-0yzm","title":"GH#508: Orphan detection false positive when directory name contains dot","description":"Directory names with dots trigger orphan issue detection because dot is also used for orphan ID format. bd rename-prefix fixes it. See: https://github.com/steveyegge/beads/issues/508","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-14T16:32:01.725196-08:00","updated_at":"2025-12-16T01:27:29.023299-08:00","closed_at":"2025-12-16T01:27:29.023299-08:00"} -{"id":"bd-0zcnh","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:08:30.693688-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T22:08:30.735481-08:00","closed_at":"2026-01-09T22:08:30.735481-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-0zcnh","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:08:30.693688-08:00","updated_at":"2026-01-09T22:08:30.735481-08:00","closed_at":"2026-01-09T22:08:30.735481-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} {"id":"bd-0zp7","title":"Add missing hook calls in mail reply and ack","description":"The mail commands are missing hook calls:\n\n1. runMailReply (mail.go:525-672) creates a message but doesn't call hookRunner.Run(hooks.EventMessage, ...) after creating the reply in direct mode (around line 640)\n\n2. runMailAck (mail.go:432-523) closes messages but doesn't call hookRunner.Run(hooks.EventClose, ...) after closing each message (around line 487 for daemon mode, 493 for direct mode)\n\nThis means GGT hooks won't fire for replies or message acknowledgments.","status":"tombstone","priority":1,"issue_type":"bug","created_at":"2025-12-16T20:52:53.069412-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} -{"id":"bd-0zpye","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:34:41.149866-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T00:34:41.213552-08:00","closed_at":"2026-01-12T00:34:41.213552-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-0zpye","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:34:41.149866-08:00","updated_at":"2026-01-12T00:34:41.213552-08:00","closed_at":"2026-01-12T00:34:41.213552-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-1022","title":"Use external_ref as primary matching key for import updates","description":"Enable re-syncing from external systems (Jira, GitHub, Linear) by using external_ref as the primary matching key during imports. Currently imports treat any content change as a collision, making it impossible to sync updates from external systems without creating duplicates.\n\nSee GH #142 for detailed proposal and implementation plan.\n\nKey changes needed:\n1. Add findByExternalRef() query function\n2. Update DetectCollisions() to match by external_ref first\n3. Update import_shared.go to update existing issues when external_ref matches\n4. Add index on external_ref for performance\n5. Preserve local issues (no external_ref) from being overwritten\n\nThis enables hybrid workflows: import external backlog, break down with local tasks, re-sync anytime.","notes":"## Code Review Complete ✅\n\n**Overall Assessment**: EXCELLENT - Production ready\n\n### Implementation Quality\n- ✓ Clean architecture with proper interface extension\n- ✓ Dual backend support (SQLite + Memory)\n- ✓ Smart matching priority: external_ref → ID → content hash\n- ✓ O(1) lookups with database index\n- ✓ Timestamp-based conflict resolution\n- ✓ Comprehensive test coverage (11 test cases)\n\n### Follow-up Issues Filed\nHigh Priority (P2):\n- bd-897a: Add UNIQUE constraint on external_ref column\n- bd-7315: Add validation for duplicate external_ref in batch imports\n\nMedium Priority (P3):\n- bd-f9a1: Add index usage verification test\n- bd-3f6a: Add concurrent import race condition tests\n\nLow Priority (P4):\n- bd-e166: Improve timestamp comparison readability\n- bd-9e23: Optimize Memory backend with index\n- bd-537e: Add external_ref change tracking\n- bd-df11: Add import metrics\n- bd-9f4a: Document external_ref in content hash\n\n### Key Features\n✅ External systems (Jira, GitHub, Linear) can re-sync without duplicates\n✅ Hybrid workflows: import external backlog, add local tasks, re-sync anytime\n✅ Local issues protected from being overwritten\n✅ Timestamp checking ensures only newer updates applied\n✅ Performance optimized with database index\n\n**Confidence Level**: 95% - Ship it! 🚀","status":"closed","priority":0,"issue_type":"feature","created_at":"2025-11-02T14:55:56.355813-08:00","updated_at":"2025-11-02T15:52:05.786625-08:00","closed_at":"2025-11-02T15:52:05.78663-08:00"} {"id":"bd-1048","title":"Daemon crashes silently on RPC query after startup","description":"The daemon fails to handle 'show' RPC commands when:\n1) JSONL is newer than database (needs import)\n2) git pull fails due to uncommitted changes\n\nSymptoms:\n- Daemon appears to run (ps shows process)\n- 'bd list' and other commands work fine \n- 'bd show \u003cid\u003e' returns \"failed to read response: EOF\"\n- No panic or error logged in daemon.log\n\nRoot cause likely: auto-import deadlock or state corruption when import is blocked by git conflicts.\n\nWorkaround: \n- Restart daemon after syncing git state (commit/push changes)\n- OR use --no-daemon flag for all commands\n\nThe panic recovery added in server_lifecycle_conn.go:183 didn't catch any panics, confirming this isn't a panic-based crash.","notes":"Root cause found and fixed: Two bugs - (1) nil pointer check missing in handleShow causing panic, (2) double JSON encoding in show.go ID resolution. Both fixed. bd show now works with daemon.","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-02T17:05:03.658333-08:00","updated_at":"2025-11-03T12:08:12.947672-08:00","closed_at":"2025-11-03T12:08:12.947676-08:00"} -{"id":"bd-10go0","title":"Clean up beads-metadata branch: remove worktree and delete remote","description":"## Context\nTwo sync branches are competing:\n- beads-sync (configured, canonical)\n- beads-metadata (legacy, still receiving commits)\n\nmayor/rig has both worktrees. The beads-metadata worktree has uncommitted changes.\n\n## Steps\n1. Check for/stop any daemon still writing to beads-metadata\n2. Merge any divergent data from beads-metadata into beads-sync if needed\n3. Remove beads-metadata worktree from mayor/rig\n4. Delete origin/beads-metadata remote branch\n5. Verify beads-sync is working correctly\n\n## Related\n- bd-wayc3: Fix redirect + sync-branch incompatibility (closed, but cleanup incomplete)\n- bd-g66dq: beads-metadata sync branch deleted from origin (open bug)","status":"closed","priority":1,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T12:48:54.092114-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-13T12:50:42.815863-08:00","closed_at":"2026-01-13T12:50:42.815863-08:00","close_reason":"Cleanup complete: removed beads-metadata worktree from mayor/rig, deleted origin/beads-metadata remote branch. beads-sync is now the sole sync branch."} -{"id":"bd-10wg","title":"Migrate config.yaml to config.json","description":"The beads config file uses YAML format (config.yaml) but should use JSON (config.json) for consistency with the rest of the system. gastown has a fallback in internal/rig/manager.go:initBeads that writes YAML format - this needs to be updated once beads supports JSON config.","status":"closed","priority":3,"issue_type":"bug","created_at":"2026-01-01T11:16:55.668209-08:00","created_by":"gastown/crew/gus","updated_at":"2026-01-01T11:19:34.640683-08:00","closed_at":"2026-01-01T11:19:34.640683-08:00","close_reason":"Beads already migrating away from YAML config"} +{"id":"bd-10go0","title":"Clean up beads-metadata branch: remove worktree and delete remote","description":"## Context\nTwo sync branches are competing:\n- beads-sync (configured, canonical)\n- beads-metadata (legacy, still receiving commits)\n\nmayor/rig has both worktrees. The beads-metadata worktree has uncommitted changes.\n\n## Steps\n1. Check for/stop any daemon still writing to beads-metadata\n2. Merge any divergent data from beads-metadata into beads-sync if needed\n3. Remove beads-metadata worktree from mayor/rig\n4. Delete origin/beads-metadata remote branch\n5. Verify beads-sync is working correctly\n\n## Related\n- bd-wayc3: Fix redirect + sync-branch incompatibility (closed, but cleanup incomplete)\n- bd-g66dq: beads-metadata sync branch deleted from origin (open bug)","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-13T12:48:54.092114-08:00","updated_at":"2026-01-13T12:50:42.815863-08:00","closed_at":"2026-01-13T12:50:42.815863-08:00","close_reason":"Cleanup complete: removed beads-metadata worktree from mayor/rig, deleted origin/beads-metadata remote branch. beads-sync is now the sole sync branch.","created_by":"beads/crew/fang"} +{"id":"bd-10wg","title":"Migrate config.yaml to config.json","description":"The beads config file uses YAML format (config.yaml) but should use JSON (config.json) for consistency with the rest of the system. gastown has a fallback in internal/rig/manager.go:initBeads that writes YAML format - this needs to be updated once beads supports JSON config.","status":"closed","priority":3,"issue_type":"bug","created_at":"2026-01-01T11:16:55.668209-08:00","updated_at":"2026-01-01T11:19:34.640683-08:00","closed_at":"2026-01-01T11:19:34.640683-08:00","close_reason":"Beads already migrating away from YAML config","created_by":"gastown/crew/gus"} {"id":"bd-118d","title":"Commit release v0.33.2","description":"Stage and commit the version bump:\n\n```bash\ngit add cmd/bd/version.go cmd/bd/info.go CHANGELOG.md\ngit commit -m \"release: v0.33.2\"\n```\n\nDo NOT push yet - tag first.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T16:10:13.761725-08:00","updated_at":"2025-12-21T17:29:31.791368-08:00","deleted_at":"2025-12-21T17:29:31.791368-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-11e0","title":"Database import silently fails when daemon version != CLI version","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-10-31T21:08:09.096749-07:00","updated_at":"2025-11-01T19:29:35.267817-07:00","closed_at":"2025-11-01T19:29:35.267817-07:00"} -{"id":"bd-11lm","title":"Increase ClaudeStartTimeout for slow startup machines","description":"ClaudeStartTimeout is 15s but Claude can take 30s+ to start on some machines. If Claude takes longer than timeout, GUPP nudges arrive before Claude is ready.\n\nOptions:\n1. Increase timeout to 60s (simple)\n2. Improve WaitForClaudeReady detection (harder - has false positives)\n3. Retry nudge if no response within N seconds\n\nLocation: internal/constants/constants.go","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-30T21:20:58.529924-08:00","created_by":"mayor","updated_at":"2026-01-04T15:22:08.70212-08:00","closed_at":"2025-12-30T22:15:49.115555-08:00","close_reason":"Fixed: increased ClaudeStartTimeout from 15s to 60s in gastown commit 49117c9"} -{"id":"bd-1200","title":"Merge: jasper-1767106250817","description":"branch: polecat/jasper-1767106250817\ntarget: main\nsource_issue: jasper-1767106250817\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T07:05:01.45534-08:00","created_by":"beads/polecats/jasper","updated_at":"2025-12-30T18:12:30.984243-08:00","closed_at":"2025-12-30T18:11:08.06873-08:00"} -{"id":"bd-120z3","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T15:02:38.013724-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T15:02:38.050763-08:00","closed_at":"2026-01-09T15:02:38.050763-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-11lm","title":"Increase ClaudeStartTimeout for slow startup machines","description":"ClaudeStartTimeout is 15s but Claude can take 30s+ to start on some machines. If Claude takes longer than timeout, GUPP nudges arrive before Claude is ready.\n\nOptions:\n1. Increase timeout to 60s (simple)\n2. Improve WaitForClaudeReady detection (harder - has false positives)\n3. Retry nudge if no response within N seconds\n\nLocation: internal/constants/constants.go","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-30T21:20:58.529924-08:00","updated_at":"2026-01-04T15:22:08.70212-08:00","closed_at":"2025-12-30T22:15:49.115555-08:00","close_reason":"Fixed: increased ClaudeStartTimeout from 15s to 60s in gastown commit 49117c9","created_by":"mayor"} +{"id":"bd-1200","title":"Merge: jasper-1767106250817","description":"branch: polecat/jasper-1767106250817\ntarget: main\nsource_issue: jasper-1767106250817\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T07:05:01.45534-08:00","updated_at":"2025-12-30T18:12:30.984243-08:00","closed_at":"2025-12-30T18:11:08.06873-08:00","created_by":"beads/polecats/jasper"} +{"id":"bd-120z3","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T15:02:38.013724-08:00","updated_at":"2026-01-09T15:02:38.050763-08:00","closed_at":"2026-01-09T15:02:38.050763-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-1231","title":"CI failing on all 3/4 test jobs despite individual tests passing","description":"CI has been broken for a day+ with mysterious test failures. Issue #173 on GitHub tracks this.\n\n## Current Status\n- **Lint job**: ✅ PASSING\n- **Test (Linux)**: ❌ FAILING (exit code 1)\n- **Test (Windows)**: ❌ FAILING (exit code 1)\n- **Test Nix Flake**: ❌ FAILING (exit code 1)\n\n## Key Observations\nAll three failing jobs show identical pattern:\n- Individual test output shows PASS for every test\n- Final result: `FAIL github.com/steveyegge/beads/cmd/bd`\n- Exit code 1 despite no visible test failures\n- Last visible test output before failure: \"No Reason Issue\" test (TestCloseCommand/close_without_reason)\n\n## Investigation So Far\n1. All tests appear to pass when examined individually\n2. Likely causes:\n - Race detector finding data races during test cleanup (`-race` flag)\n - Panic/error occurring after main tests complete\n - Test harness issue not reporting actual failure\n - Possible regression from PR #203 (dependency_type changes)\n\n## Recent CI Runs\n- Run 19015040655 (latest): 3/4 failing\n- Multiple recent commits tried to fix Windows/lint issues\n- Agent on rrnewton/beads fork attempting fixes (2/4 passing there)\n\n## Next Steps\n1. Run tests locally with `-race -v` to see full output\n2. Check for unreported test failures or panics\n3. Examine test cleanup/teardown code\n4. Review recent changes around close command tests\n5. Consider if race detector is too sensitive or catching real issues","notes":"## Progress Update\n\n### ✅ Fixed (commits 09bd4d3, 21a29bc)\n1. **Daemon auto-import** - Always recompute content_hash in importer to avoid stale hashes\n2. **TestScripts failures** - Added bd binary to PATH for shell subprocess tests\n3. **Test infrastructure** - Added .gitignore to test repos, fixed last_import_time metadata\n\n### ✅ CI Status (Run 19015638968)\n- **Test (Linux)**: ✅ SUCCESS - All tests passing\n- **Test (Windows)**: ❌ FAILURE - Pre-existing Windows test failures\n- **Test Nix Flake**: ❌ FAILURE - Build fails with same test errors\n- **Lint**: ❌ FAILURE - Pre-existing issue in migrate.go:647\n\n### ❌ Remaining Issues (not related to original bd-1231)\n\n**Windows failures:**\n- TestFindDatabasePathEnvVar\n- TestHashIDs_MultiCloneConverge \n- TestHashIDs_IdenticalContentDedup\n- TestDatabaseReinitialization (5 subtests)\n- TestFindBeadsDir_NotFound\n- TestMetricsSnapshot/uptime\n\n**Lint failure:**\n- cmd/bd/migrate.go:647:37: cleanupWALFiles - result 0 (error) is always nil (unparam)\n\n**Nix failure:**\n- Build fails during test phase with same test errors\n\n### Next Steps\n1. Investigate Windows-specific test failures\n2. Fix linting issue in migrate.go\n3. Debug Nix build test failures","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-02T08:42:16.142128-08:00","updated_at":"2025-12-14T12:12:46.519626-08:00","closed_at":"2025-11-02T12:32:00.158346-08:00"} -{"id":"bd-1258f","title":"Fix: bd doctor doesn't detect lefthook jobs syntax (GH#981)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #981. Doctor only detects lefthook 'commands' not 'jobs' syntax.","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/dave","created_at":"2026-01-09T22:20:15.272208-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T22:56:14.017859-08:00","closed_at":"2026-01-09T22:56:14.017859-08:00","close_reason":"Fixed: added support for lefthook jobs array syntax"} +{"id":"bd-1258f","title":"Fix: bd doctor doesn't detect lefthook jobs syntax (GH#981)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #981. Doctor only detects lefthook 'commands' not 'jobs' syntax.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-09T22:20:15.272208-08:00","updated_at":"2026-01-09T22:56:14.017859-08:00","closed_at":"2026-01-09T22:56:14.017859-08:00","close_reason":"Fixed: added support for lefthook jobs array syntax","created_by":"beads/crew/dave"} {"id":"bd-12c2","title":"Add comprehensive tests for show.go commands (show, update, edit, close)","description":"Need to add tests for cmd/bd/show.go which contains show, update, edit, and close commands.\n\n**Challenge**: The existing test patterns use rootCmd.SetArgs() and rootCmd.Execute(), but the global `store` variable needs to match what the commands use. Initial attempt created tests that failed with \"no issue found\" because the test's store instance wasn't the same as the command's store.\n\n**Files to test**:\n- show.go (contains showCmd, updateCmd, editCmd, closeCmd)\n\n**Coverage needed**:\n- show command (single issue, multiple issues, JSON output, with dependencies, with labels, with compaction)\n- update command (status, priority, title, assignee, description, multiple fields, multiple issues)\n- edit command (requires $EDITOR, may need mocking)\n- close command (single issue, multiple issues, with reason, JSON output)\n\n**Test approach**:\n1. Study working test patterns in init_test.go, list_test.go, etc.\n2. Ensure BEADS_NO_DAEMON=1 is set\n3. Properly initialize database with bd init\n4. Use the command's global store, not a separate instance\n5. May need to reset global state between tests\n\n**Success criteria**: \n- All test functions pass\n- Coverage for show.go increases significantly\n- Tests follow existing patterns in cmd/bd/*_test.go","status":"closed","priority":0,"issue_type":"task","created_at":"2025-10-31T20:08:40.545173-07:00","updated_at":"2025-10-31T20:19:22.411066-07:00","closed_at":"2025-10-31T20:19:22.411066-07:00"} -{"id":"bd-12rpp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:38:07.05098-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T00:38:07.119058-08:00","closed_at":"2026-01-12T00:38:07.119058-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-13c2","title":"Merge: garnet-1767138539231","description":"branch: polecat/garnet-1767138539231\ntarget: main\nsource_issue: garnet-1767138539231\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T16:00:34.708302-08:00","created_by":"beads/polecats/garnet","updated_at":"2025-12-30T18:12:30.975825-08:00","closed_at":"2025-12-30T18:11:07.955982-08:00"} +{"id":"bd-12rpp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:38:07.05098-08:00","updated_at":"2026-01-12T00:38:07.119058-08:00","closed_at":"2026-01-12T00:38:07.119058-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-13c2","title":"Merge: garnet-1767138539231","description":"branch: polecat/garnet-1767138539231\ntarget: main\nsource_issue: garnet-1767138539231\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T16:00:34.708302-08:00","updated_at":"2025-12-30T18:12:30.975825-08:00","closed_at":"2025-12-30T18:11:07.955982-08:00","created_by":"beads/polecats/garnet"} {"id":"bd-1445","title":"Create shared insert/event/dirty helpers","description":"Create issues.go (insertIssue/insertIssues), events.go (recordCreatedEvent/recordCreatedEvents), dirty.go (markDirty/markDirtyBatch). Refactor single and bulk create paths to use these.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-01T11:41:14.882142-07:00","updated_at":"2025-11-02T15:28:11.99706-08:00","closed_at":"2025-11-02T15:28:11.997063-08:00"} {"id":"bd-149","title":"Auth tokens expire too quickly","description":"## Summary\n\n[Brief description of the bug]\n\n## Steps to Reproduce\n\n1. Step 1\n2. Step 2\n3. Step 3\n\n## Expected Behavior\n\n[What should happen]\n\n## Actual Behavior\n\n[What actually happens]\n\n## Environment\n\n- OS: [e.g., macOS 15.7.1]\n- Version: [e.g., bd 0.20.1]\n- Additional context: [any relevant details]\n\n## Additional Context\n\n[Screenshots, logs, or other relevant information]\n","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-03T19:54:10.671488-08:00","updated_at":"2025-11-05T00:25:06.427601-08:00","closed_at":"2025-11-05T00:25:06.427601-08:00"} {"id":"bd-14ie","title":"Work on beads-2vn: Add simple built-in beads viewer (GH#6...","description":"Work on beads-2vn: Add simple built-in beads viewer (GH#654). Add bd list --pretty with --watch flag, tree view with priority/status symbols. When done, submit MR (not PR) to integration branch for Refinery.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-19T22:56:47.305831-08:00","updated_at":"2025-12-19T23:28:32.429492-08:00","closed_at":"2025-12-19T23:23:13.928323-08:00"} {"id":"bd-14v0","title":"Add Windows code signing for bd.exe releases","description":"## Context\n\nGo binaries (including bd.exe) are commonly flagged by antivirus software as false positives due to heuristic detection. See docs/ANTIVIRUS.md for full details.\n\n## Problem\n\nKaspersky and other AV software flag bd.exe as PDM:Trojan.Win32.Generic, causing it to be quarantined or deleted.\n\n## Solution\n\nImplement code signing for Windows releases using:\n1. An EV (Extended Validation) code certificate\n2. Integration with GoReleaser to sign Windows binaries during release\n\n## Benefits\n\n- Reduces false positive rates over time as the certificate builds reputation\n- Provides tamper verification for users\n- Improves SmartScreen trust rating on Windows\n- Professional appearance for enterprise users\n\n## Implementation Steps\n\n1. Acquire EV code signing certificate (annual cost ~$300-500)\n2. Set up signtool or osslsigncode in release pipeline\n3. Update .goreleaser.yml to sign Windows binaries\n4. Update checksums to include signed binary hashes\n5. Document signing verification in ANTIVIRUS.md\n\n## References\n\n- docs/ANTIVIRUS.md - Current documentation\n- bd-t4u1 - Original Kaspersky false positive report\n- https://github.com/golang/go/issues/16292 - Go project discussion","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-23T23:46:48.459177-08:00","updated_at":"2025-12-23T23:54:41.912141-08:00","closed_at":"2025-12-23T23:54:41.912141-08:00","dependencies":[{"issue_id":"bd-14v0","depends_on_id":"bd-t4u1","type":"discovered-from","created_at":"2025-12-23T23:47:02.024159-08:00","created_by":"daemon"}]} -{"id":"bd-14xln","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:26:00.550234-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T22:26:00.615592-08:00","closed_at":"2026-01-11T22:26:00.615592-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-14xln","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:26:00.550234-08:00","updated_at":"2026-01-11T22:26:00.615592-08:00","closed_at":"2026-01-11T22:26:00.615592-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-164b","title":"Add template support for issue creation","description":"Support creating issues from predefined templates to streamline common workflows like epics, bug reports, or feature proposals.\n\nExample usage:\n bd create --from-template epic \"Phase 3 Features\"\n bd create --from-template bug \"Login failure\"\n bd template list\n bd template create epic\n\nTemplates should include:\n- Pre-filled description structure\n- Suggested priority and type\n- Common labels\n- Design/acceptance criteria sections\n\nImplementation notes:\n- Store templates in .beads/templates/ directory\n- Support YAML or JSON format\n- Ship with built-in templates (epic, bug, feature)\n- Allow custom project-specific templates","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-03T18:10:18.985902-08:00","updated_at":"2025-11-03T19:56:41.287303-08:00","closed_at":"2025-11-03T19:56:41.287303-08:00"} -{"id":"bd-16z7","title":"Update convoy queries to use labels","description":"Change convoy-related SQL queries to use gt:convoy label instead of TypeConvoy.\n\n## Work\n- Update closeConvoyIfComplete() in queries.go\n- Update closeConvoyIfCompleteTx() in transaction.go\n- Change issue_type='convoy' checks to label-based queries\n\n## Files\n- internal/storage/sqlite/queries.go\n- internal/storage/sqlite/transaction.go","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:40:23.24327-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-06T22:07:23.212033-08:00","closed_at":"2026-01-06T22:07:23.212033-08:00","close_reason":"Changed convoy queries to use gt:convoy label instead of issue_type","dependencies":[{"issue_id":"bd-16z7","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.645917-08:00","created_by":"beads/crew/dave"}]} +{"id":"bd-16z7","title":"Update convoy queries to use labels","description":"Change convoy-related SQL queries to use gt:convoy label instead of TypeConvoy.\n\n## Work\n- Update closeConvoyIfComplete() in queries.go\n- Update closeConvoyIfCompleteTx() in transaction.go\n- Change issue_type='convoy' checks to label-based queries\n\n## Files\n- internal/storage/sqlite/queries.go\n- internal/storage/sqlite/transaction.go","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:40:23.24327-08:00","updated_at":"2026-01-06T22:07:23.212033-08:00","closed_at":"2026-01-06T22:07:23.212033-08:00","close_reason":"Changed convoy queries to use gt:convoy label instead of issue_type","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-16z7","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.645917-08:00","created_by":"beads/crew/dave"}]} {"id":"bd-17d5","title":"bd sync false positive: conflict detection triggers on JSON-encoded angle brackets in issue content","description":"The bd sync --import-only command incorrectly detects conflict markers when issue descriptions contain the text '\u003c\u003c\u003c\u003c\u003c\u003c\u003c' or '\u003e\u003e\u003e\u003e\u003e\u003e\u003e' as legitimate content (e.g., documentation about git conflict markers).\n\n**Reproduction:**\n1. Create issue with design field containing: 'Read file, extract \u003c\u003c\u003c\u003c\u003c\u003c\u003c / ======= / \u003e\u003e\u003e\u003e\u003e\u003e\u003e markers'\n2. Export to JSONL (gets JSON-encoded as \\u003c\\u003c\\u003c...)\n3. Commit and push\n4. Pull from remote\n5. bd sync --import-only fails with: 'Git conflict markers detected in JSONL file'\n\n**Root cause:**\nThe conflict detection appears to decode JSON before checking for conflict markers, causing false positives when issue content legitimately contains these strings.\n\n**Expected behavior:**\nConflict detection should only trigger on actual git conflict markers (literal '\u003c\u003c\u003c\u003c\u003c\u003c\u003c' bytes in the raw file), not on JSON-encoded content within issue fields.\n\n**Test case:**\nVC project at ~/src/dave/vc has vc-85 'JSONL Conflict Parser' which documents conflict parsing and triggers this bug.\n\n**Suggested fixes:**\n1. Only scan for literal '\u003c\u003c\u003c\u003c\u003c\u003c\u003c' bytes (not decoded JSON content)\n2. Parse JSONL first and only flag unparseable lines\n3. Check git merge state (git status) to confirm actual conflict\n4. Add --skip-conflict-check flag for override","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-08T13:02:54.730745-08:00","updated_at":"2025-11-08T13:07:37.108225-08:00","closed_at":"2025-11-08T13:07:37.108225-08:00"} {"id":"bd-17fa2d21","title":"Batch test 2","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T15:29:01.877052-07:00","updated_at":"2025-10-31T12:00:43.183657-07:00","closed_at":"2025-10-31T12:00:43.183657-07:00"} -{"id":"bd-181ng","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:43:11.888621-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T18:43:11.922565-08:00","closed_at":"2026-01-09T18:43:11.922565-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-181ng","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:43:11.888621-08:00","updated_at":"2026-01-09T18:43:11.922565-08:00","closed_at":"2026-01-09T18:43:11.922565-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-1863608e","title":"Add TestNWayCollision for 5+ clones","description":"## Overview\nAdd comprehensive tests for N-way (5+) collision resolution to verify the solution scales beyond 3 clones.\n\n## Purpose\nWhile TestThreeCloneCollision validates the basic N-way case, we need to verify:\n1. Solution scales to arbitrary N\n2. Performance is acceptable with more clones\n3. Convergence time is bounded\n4. No edge cases in larger collision groups\n\n## Implementation Tasks\n\n### 1. Create TestFiveCloneCollision\nFile: beads_twoclone_test.go (or new beads_nway_test.go)\n\n```go\nfunc TestFiveCloneCollision(t *testing.T) {\n // Test with 5 clones creating same ID with different content\n // Verify all 5 clones converge after sync rounds\n \n t.Run(\"SequentialSync\", func(t *testing.T) {\n testNCloneCollision(t, 5, \"A\", \"B\", \"C\", \"D\", \"E\")\n })\n \n t.Run(\"ReverseSync\", func(t *testing.T) {\n testNCloneCollision(t, 5, \"E\", \"D\", \"C\", \"B\", \"A\")\n })\n \n t.Run(\"RandomSync\", func(t *testing.T) {\n testNCloneCollision(t, 5, \"C\", \"A\", \"E\", \"B\", \"D\")\n })\n}\n```\n\n### 2. Implement generalized testNCloneCollision\nGeneralize the 3-clone test to handle arbitrary N:\n\n```go\nfunc testNCloneCollision(t *testing.T, numClones int, syncOrder ...string) {\n t.Helper()\n \n if len(syncOrder) != numClones {\n t.Fatalf(\"syncOrder length (%d) must match numClones (%d)\", \n len(syncOrder), numClones)\n }\n \n tmpDir := t.TempDir()\n \n // Setup remote and N clones\n remoteDir := setupBareRepo(t, tmpDir)\n cloneDirs := make(map[string]string)\n \n for i := 0; i \u003c numClones; i++ {\n name := string(rune('A' + i))\n cloneDirs[name] = setupClone(t, tmpDir, remoteDir, name)\n }\n \n // Each clone creates issue with same ID but different content\n for name, dir := range cloneDirs {\n createIssue(t, dir, fmt.Sprintf(\"Issue from clone %s\", name))\n }\n \n // Sync in specified order\n for _, name := range syncOrder {\n syncClone(t, cloneDirs[name], name)\n }\n \n // Final pull for convergence\n for name, dir := range cloneDirs {\n finalPull(t, dir, name)\n }\n \n // Verify all clones have all N issues\n expectedTitles := make(map[string]bool)\n for i := 0; i \u003c numClones; i++ {\n name := string(rune('A' + i))\n expectedTitles[fmt.Sprintf(\"Issue from clone %s\", name)] = true\n }\n \n for name, dir := range cloneDirs {\n titles := getTitles(t, dir)\n if !compareTitleSets(titles, expectedTitles) {\n t.Errorf(\"Clone %s missing issues: expected %v, got %v\", \n name, expectedTitles, titles)\n }\n }\n \n t.Log(\"✓ All\", numClones, \"clones converged successfully\")\n}\n```\n\n### 3. Add performance benchmarks\nTest convergence time and memory usage:\n\n```go\nfunc BenchmarkNWayCollision(b *testing.B) {\n for _, n := range []int{3, 5, 10, 20} {\n b.Run(fmt.Sprintf(\"N=%d\", n), func(b *testing.B) {\n for i := 0; i \u003c b.N; i++ {\n // Run N-way collision and measure time\n testNCloneCollisionBench(b, n)\n }\n })\n }\n}\n```\n\n### 4. Add convergence time tests\nVerify bounded convergence:\n\n```go\nfunc TestConvergenceTime(t *testing.T) {\n // Test that convergence happens within expected rounds\n // For N clones, should converge in at most N-1 sync rounds\n \n for n := 3; n \u003c= 10; n++ {\n t.Run(fmt.Sprintf(\"N=%d\", n), func(t *testing.T) {\n rounds := measureConvergenceRounds(t, n)\n maxExpected := n - 1\n if rounds \u003e maxExpected {\n t.Errorf(\"Convergence took %d rounds, expected ≤ %d\", \n rounds, maxExpected)\n }\n })\n }\n}\n```\n\n### 5. Add edge case tests\nTest boundary conditions:\n- All N clones have identical content (dedup works)\n- N-1 clones have same content, 1 differs\n- All N clones have unique content\n- Mix of collisions and non-collisions\n\n## Acceptance Criteria\n- TestFiveCloneCollision passes with all sync orders\n- All 5 clones converge to identical content\n- Performance is acceptable (\u003c 5 seconds for 5 clones)\n- Convergence time is bounded (≤ N-1 rounds)\n- Edge cases handled correctly\n- Benchmarks show scalability to 10+ clones\n\n## Files to Create/Modify\n- beads_twoclone_test.go or beads_nway_test.go\n- Add helper functions for N-clone setup\n\n## Testing Strategy\n\n### Test Matrix\n| N Clones | Sync Orders | Expected Result |\n|----------|-------------|-----------------|\n| 3 | A→B→C | Pass |\n| 3 | C→B→A | Pass |\n| 5 | A→B→C→D→E | Pass |\n| 5 | E→D→C→B→A | Pass |\n| 5 | Random | Pass |\n| 10 | Sequential | Pass |\n\n### Performance Targets\n- 3 clones: \u003c 2 seconds\n- 5 clones: \u003c 5 seconds\n- 10 clones: \u003c 15 seconds\n\n## Dependencies\n- Requires bd-cbed9619.5, bd-cbed9619.4, bd-0dcea000, bd-4d7fca8a to be completed\n- TestThreeCloneCollision must pass first\n\n## Success Metrics\n- All tests pass for N ∈ {3, 5, 10}\n- Convergence time scales linearly (O(N))\n- Memory usage reasonable (\u003c 100MB for 10 clones)\n- No data corruption or loss in any scenario","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T20:02:47.954306-07:00","updated_at":"2025-10-30T17:12:58.182217-07:00","closed_at":"2025-10-28T20:47:28.317007-07:00"} {"id":"bd-197b","title":"Set up WASM build pipeline","description":"Configure Go→WASM compilation pipeline. Child of epic bd-44d0.\n\n## Tasks\n- [ ] Create build-wasm.sh script (GOOS=js GOARCH=wasm)\n- [ ] Test basic WASM module loading in Node.js\n- [ ] Set up wasm_exec.js wrapper\n- [ ] Add WASM build to CI/CD\n- [ ] Document build process\n\n## Validation\n- bd.wasm compiles successfully\n- Can load in Node.js without errors\n- Bundle size \u003c10MB","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-02T18:33:19.407373-08:00","updated_at":"2025-12-14T12:12:46.565523-08:00","closed_at":"2025-11-05T00:55:48.755941-08:00","dependencies":[{"issue_id":"bd-197b","depends_on_id":"bd-44d0","type":"blocks","created_at":"2025-11-02T18:33:19.407904-08:00","created_by":"daemon"}]} {"id":"bd-19er","title":"Create backup and restore procedures","description":"Disaster recovery procedures for Agent Mail data.\n\nAcceptance Criteria:\n- Automated daily snapshots (GCP persistent disk)\n- SQLite backup script\n- Git repository backup\n- Restore procedure documentation\n- Test restore from backup\n\nFile: deployment/agent-mail/backup.sh","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-07T22:43:43.417403-08:00","updated_at":"2025-12-14T00:32:11.045902-08:00","closed_at":"2025-12-13T23:30:58.726086-08:00","dependencies":[{"issue_id":"bd-19er","depends_on_id":"bd-z3s3","type":"blocks","created_at":"2025-11-07T23:04:28.122501-08:00","created_by":"daemon"}]} @@ -103,61 +103,61 @@ {"id":"bd-1ban","title":"Test actor direct","status":"closed","priority":4,"issue_type":"task","created_at":"2025-12-26T20:46:02.423367-08:00","updated_at":"2025-12-28T09:26:06.083095-08:00","closed_at":"2025-12-28T09:26:06.083095-08:00"} {"id":"bd-1c63eb84","title":"Investigate jujutsu integration for beads","description":"Research and document how beads could integrate with jujutsu (jj), the next-generation VCS. Key areas to explore:\n- How jj's operation model differs from git (immutable operations, working-copy-as-commit)\n- JSONL sync strategy with jj's conflict resolution model\n- Daemon compatibility with jj's more frequent rewrites\n- Whether auto-import/export needs changes for jj workflows\n- Example configurations and documentation updates needed","status":"closed","priority":3,"issue_type":"task","created_at":"2025-10-23T09:23:23.582009-07:00","updated_at":"2025-12-14T12:12:46.509042-08:00","closed_at":"2025-11-05T14:26:17.967073-08:00"} {"id":"bd-1c77","title":"Implement filesystem shims for WASM","description":"WASM needs JS shims for filesystem access. Child of epic bd-44d0.\n\n## Tasks\n- [ ] Implement file read/write shims\n- [ ] Map WASM syscalls to Node.js fs API\n- [ ] Handle .beads/ directory discovery\n- [ ] Test with real JSONL files\n- [ ] Support both absolute and relative paths\n\n## Technical Notes\n- Use Node.js fs module via syscall/js\n- Consider MEMFS for in-memory option","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-02T18:33:31.280464-08:00","updated_at":"2025-12-14T12:12:46.530982-08:00","closed_at":"2025-11-05T00:55:48.756432-08:00","dependencies":[{"issue_id":"bd-1c77","depends_on_id":"bd-197b","type":"blocks","created_at":"2025-11-02T18:33:31.281134-08:00","created_by":"daemon"}]} -{"id":"bd-1c9mr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:20:56.122787-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:20:56.188903-08:00","closed_at":"2026-01-11T19:20:56.188903-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-1c9mr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:20:56.122787-08:00","updated_at":"2026-01-11T19:20:56.188903-08:00","closed_at":"2026-01-11T19:20:56.188903-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-1dez","title":"Mol Mall: Formula marketplace using GitHub as backend","description":"Create a marketplace for sharing molecule formulas using GitHub repos as the hosting backend.\n\n## Architecture Update (Dec 2025)\n\n**Formulas are the sharing layer.** With ephemeral protos (bd-rciw), the architecture is:\n\n```\nFormulas ──cook──→ [ephemeral proto] ──pour/wisp──→ Mol/Wisp\n ↑ │\n └────────────────── distill ─────────────────────────┘\n```\n\n- **Formulas**: JSON source files (.formula.json) - the thing you share\n- **Protos**: Transient compilation artifacts - auto-deleted after use\n- **Mols/Wisps**: Execution instances - not shared directly\n\n**Key operations:**\n- `bd distill \u003cmol-id\u003e` → Extract formula from completed work\n- `bd mol publish \u003cformula\u003e` → Share to GitHub\n- `bd mol install \u003curl\u003e` → Fetch from GitHub\n- `bd pour \u003cformula\u003e` → Cook and spawn (proto is ephemeral)\n\n## Why GitHub?\n\nGitHub solves multiple problems at once:\n- **Hosting**: Raw file URLs for formula.json\n- **Versioning**: Git tags (v1.0.0, v1.2.0)\n- **Auth**: GitHub tokens for private formulas\n- **Discovery**: GitHub search, topics, stars\n- **Collaboration**: PRs for contributions, issues for bugs\n- **Organizations**: Natural scoping (@anthropic/, @gastown/)\n\n## URL Scheme\n\n```bash\n# Direct GitHub URL\nbd mol install github.com/anthropics/mol-code-review\n\n# With version tag\nbd mol install github.com/anthropics/mol-code-review@v1.2.0\n\n# Shorthand (via registry lookup)\nbd mol install @anthropic/mol-code-review\n```\n\n## Architecture\n\nEach formula lives in its own repo (like Go modules):\n```\ngithub.com/anthropics/mol-code-review/\n├── formula.json # The formula\n├── README.md # Documentation\n└── CHANGELOG.md # Version history\n```\n\n## ID Namespace\n\n| Entity | ID Format | Example |\n|--------|-----------|---------|\n| Formula (GitHub) | `github.com/org/repo` | `github.com/anthropics/mol-code-review` |\n| Installed formula | `mol-name` | `mol-code-review` |\n| Poured instance | `\u003cdb\u003e-mol-xxx` | `bd-mol-b8c` |","notes":"Deferred - focusing on Christmas launch first","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-25T12:05:17.666574-08:00","updated_at":"2025-12-25T21:53:13.415431-08:00","closed_at":"2025-12-25T21:53:13.415431-08:00"} {"id":"bd-1dez.1","title":"bd distill: Extract formula from mol/epic","description":"Extract a formula from completed work (mol, wisp, or epic).\n\n**Key change**: Distill works on execution artifacts (mols/wisps/epics), not protos.\nProtos are ephemeral - they don't persist. Distillation extracts patterns from\nactual executed work.\n\n## Usage\n```bash\nbd distill bd-mol-xyz -o my-workflow.formula.json\nbd distill bd-epic-abc -o feature-workflow.formula.json\n```\n\n## Use Cases\n- **Emergent patterns**: Structured work manually, want to templatize it\n- **Modified execution**: Poured a formula, added custom steps, want to capture\n- **Learning from success**: Extract what made a complex mol succeed\n\n## Implementation\n1. Load mol/wisp/epic subgraph (root + all children)\n2. Convert to formula JSON structure\n3. Extract variables from patterns (titles, descriptions)\n4. Generate step IDs from issue titles (slugify)\n5. Write .formula.json file\n\n## Output Format\n```json\n{\n \"formula\": \"my-workflow\",\n \"description\": \"...\",\n \"version\": 1,\n \"vars\": { ... },\n \"steps\": [ ... ]\n}\n```\n\n## Architecture Note\nThis closes the formula lifecycle loop:\n Formulas ──cook──→ Mols ──distill──→ Formulas\n\nAll sharing happens via formulas. Mols contain execution context and aren't shared.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T12:05:47.045105-08:00","updated_at":"2025-12-25T18:54:39.967765-08:00","closed_at":"2025-12-25T18:54:39.967765-08:00","dependencies":[{"issue_id":"bd-1dez.1","depends_on_id":"bd-1dez","type":"parent-child","created_at":"2025-12-25T12:05:47.045596-08:00","created_by":"daemon"}]} -{"id":"bd-1dez.2","title":"bd formula add: Import formula to local catalog","description":"Import a formula file to the local catalog (search path).\n\n**Replaces**: \"bd mol promote\" (proto-to-proto concept is obsolete with ephemeral protos)\n\n## Usage\n```bash\n# Add a formula file to project catalog\nbd formula add my-workflow.formula.json\n\n# Add to user-level catalog\nbd formula add my-workflow.formula.json --scope user\n\n# Add from URL\nbd formula add https://example.com/workflow.formula.json\n```\n\n## Implementation\n1. Parse the formula file (validate JSON structure)\n2. Determine target directory based on scope:\n - project: .beads/formulas/\n - user: ~/.beads/formulas/\n - town: ~/gt/.beads/formulas/\n3. Copy/download formula to target\n4. Verify it is loadable: bd formula show \u003cname\u003e\n\n## Flags\n- `--scope \u003clevel\u003e` - Where to add (project|user|town, default: project)\n- `--name \u003cname\u003e` - Override formula name (default: from file)\n\n## Note\nThis is for manually adding formulas. For GitHub-hosted formulas, use:\n bd mol install github.com/org/formula-name","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T12:05:48.588283-08:00","updated_at":"2025-12-25T19:54:35.242576-08:00","closed_at":"2025-12-25T19:54:35.242576-08:00","dependencies":[{"issue_id":"bd-1dez.2","depends_on_id":"bd-1dez","type":"parent-child","created_at":"2025-12-25T12:05:48.590203-08:00","created_by":"daemon"},{"issue_id":"bd-1dez.2","depends_on_id":"bd-1dez.1","type":"blocks","created_at":"2025-12-25T12:07:06.745686-08:00","created_by":"daemon"}]} +{"id":"bd-1dez.2","title":"bd formula add: Import formula to local catalog","description":"Import a formula file to the local catalog (search path).\n\n**Replaces**: \"bd mol promote\" (proto-to-proto concept is obsolete with ephemeral protos)\n\n## Usage\n```bash\n# Add a formula file to project catalog\nbd formula add my-workflow.formula.json\n\n# Add to user-level catalog\nbd formula add my-workflow.formula.json --scope user\n\n# Add from URL\nbd formula add https://example.com/workflow.formula.json\n```\n\n## Implementation\n1. Parse the formula file (validate JSON structure)\n2. Determine target directory based on scope:\n - project: .beads/formulas/\n - user: ~/.beads/formulas/\n - town: ~/gt/.beads/formulas/\n3. Copy/download formula to target\n4. Verify it is loadable: bd formula show \u003cname\u003e\n\n## Flags\n- `--scope \u003clevel\u003e` - Where to add (project|user|town, default: project)\n- `--name \u003cname\u003e` - Override formula name (default: from file)\n\n## Note\nThis is for manually adding formulas. For GitHub-hosted formulas, use:\n bd mol install github.com/org/formula-name","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T12:05:48.588283-08:00","updated_at":"2025-12-25T19:54:35.242576-08:00","closed_at":"2025-12-25T19:54:35.242576-08:00","dependencies":[{"issue_id":"bd-1dez.2","depends_on_id":"bd-1dez.1","type":"blocks","created_at":"2025-12-25T12:07:06.745686-08:00","created_by":"daemon"},{"issue_id":"bd-1dez.2","depends_on_id":"bd-1dez","type":"parent-child","created_at":"2025-12-25T12:05:48.590203-08:00","created_by":"daemon"}]} {"id":"bd-1dez.3","title":"bd mol install: Install formula from GitHub","description":"Download and cook a formula from a GitHub repository.\n\n## Usage\n```bash\n# Direct GitHub URL\nbd mol install github.com/anthropics/mol-code-review\n\n# With version tag \nbd mol install github.com/anthropics/mol-code-review@v1.2.0\n\n# Shorthand (future: via registry lookup)\nbd mol install @anthropic/mol-code-review\n```\n\n## Implementation\n1. Parse URL: extract org, repo, optional version tag\n2. Construct raw URL: `https://raw.githubusercontent.com/org/repo/[tag]/formula.json`\n3. Fetch formula.json via HTTP\n4. Validate formula structure\n5. Save to .beads/formulas/\n6. Run cook to create local proto\n7. Record in .beads/installed.json for update tracking\n\n## installed.json Format\n```json\n{\n \"mol-code-review\": {\n \"source\": \"github.com/anthropics/mol-code-review\",\n \"version\": \"v1.2.0\",\n \"installed_at\": \"2025-12-25T12:00:00Z\"\n }\n}\n```\n\n## Dependencies\n- Requires network access\n- Uses `gh` CLI or direct HTTP for auth (private repos)\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T12:05:49.757336-08:00","updated_at":"2025-12-25T21:53:13.417927-08:00","closed_at":"2025-12-25T21:53:13.417927-08:00","dependencies":[{"issue_id":"bd-1dez.3","depends_on_id":"bd-1dez","type":"parent-child","created_at":"2025-12-25T12:05:49.759176-08:00","created_by":"daemon"},{"issue_id":"bd-1dez.3","depends_on_id":"bd-1dez.7","type":"blocks","created_at":"2025-12-25T12:07:06.825716-08:00","created_by":"daemon"}]} {"id":"bd-1dez.4","title":"bd mol update: Check and update installed formulas","description":"Check for newer versions of installed formulas and update them.\n\n## Usage\n```bash\nbd mol update # Update all\nbd mol update mol-code-review # Update specific formula\nbd mol update --check # Just check, don't update\n```\n\n## Implementation\n1. Read .beads/installed.json\n2. For each installed formula:\n - Fetch latest tag from GitHub API\n - Compare with installed version\n - If newer: download, cook, update installed.json\n3. Report what was updated\n\n## Flags\n- `--check` - Only check for updates, don't install\n- `--force` - Reinstall even if up to date\n- `--json` - Machine-readable output\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T12:05:50.952041-08:00","updated_at":"2025-12-25T21:53:13.41919-08:00","closed_at":"2025-12-25T21:53:13.41919-08:00","dependencies":[{"issue_id":"bd-1dez.4","depends_on_id":"bd-1dez","type":"parent-child","created_at":"2025-12-25T12:05:50.952584-08:00","created_by":"daemon"},{"issue_id":"bd-1dez.4","depends_on_id":"bd-1dez.3","type":"blocks","created_at":"2025-12-25T12:07:06.90486-08:00","created_by":"daemon"},{"issue_id":"bd-1dez.4","depends_on_id":"bd-1dez.8","type":"blocks","created_at":"2025-12-25T12:07:06.99578-08:00","created_by":"daemon"}]} {"id":"bd-1dez.5","title":"bd mol search: Find formulas using GitHub API","description":"Search for formulas in the Mol Mall using GitHub's search API.\n\n## Usage\n```bash\nbd mol search \"code review\" # Free text search\nbd mol search --topic molecule # By GitHub topic\nbd mol search --org anthropics # By organization\nbd mol search --stars \"\u003e10\" # By popularity\n```\n\n## Implementation\n1. Use GitHub Search API: `/search/repositories`\n2. Filter by topic:mol-formula or naming convention\n3. Parse results, show name/description/stars/version\n4. Support pagination for large result sets\n\n## Output\n```\nNAME STARS DESCRIPTION\ngithub.com/anthropics/mol-code-review 42 AI-assisted code review workflow\ngithub.com/gastown/mol-polecat-work 12 Standard polecat work lifecycle\n```\n\n## Discovery Convention\nRepos should have:\n- Topic: `mol-formula` or `beads-molecule`\n- Name starting with `mol-`\n- formula.json in root\n","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-25T12:06:40.019394-08:00","updated_at":"2025-12-25T21:53:13.42047-08:00","closed_at":"2025-12-25T21:53:13.42047-08:00","dependencies":[{"issue_id":"bd-1dez.5","depends_on_id":"bd-1dez","type":"parent-child","created_at":"2025-12-25T12:06:40.01989-08:00","created_by":"daemon"}]} {"id":"bd-1dez.6","title":"bd mol publish: Push formula to GitHub repo","description":"Publish a formula to a GitHub repository for sharing.\n\n## Usage\n```bash\n# Create new repo and publish\nbd mol publish mol-my-workflow --repo github.com/myorg/mol-my-workflow\n\n# Update existing repo\nbd mol publish mol-my-workflow --repo github.com/myorg/mol-my-workflow --tag v1.1.0\n```\n\n## Implementation\n1. Export proto to formula.json (if not already a file)\n2. Validate formula structure\n3. Create GitHub repo if --create flag (uses `gh repo create`)\n4. Copy formula.json to repo\n5. Generate README.md from formula description\n6. Commit and push\n7. Create git tag if --tag specified\n8. Add mol-formula topic to repo\n\n## Flags\n- `--repo \u003curl\u003e` - Target GitHub repo (required)\n- `--tag \u003cversion\u003e` - Create version tag\n- `--create` - Create repo if doesn't exist\n- `--private` - Create as private repo\n\n## Workflow\n```bash\n# Full publish flow\nbd mol distill my-epic --name my-workflow\nbd mol promote bd-proto-xxx --as my-workflow\nbd mol publish mol-my-workflow --repo github.com/me/mol-my-workflow --create --tag v1.0.0\n```\n","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-25T12:06:41.419764-08:00","updated_at":"2025-12-25T21:53:13.421752-08:00","closed_at":"2025-12-25T21:53:13.421752-08:00","dependencies":[{"issue_id":"bd-1dez.6","depends_on_id":"bd-1dez","type":"parent-child","created_at":"2025-12-25T12:06:41.420209-08:00","created_by":"daemon"}]} {"id":"bd-1dez.7","title":"Formula versioning: Version field and git tag integration","description":"Add versioning support to formulas for tracking updates.\n\n## Formula Version Field\n```json\n{\n \"formula\": \"mol-code-review\",\n \"version\": \"1.2.0\",\n \"min_bd_version\": \"0.25.0\",\n ...\n}\n```\n\n## Version Semantics\n- Use semver: MAJOR.MINOR.PATCH\n- MAJOR: Breaking changes to step structure\n- MINOR: New optional steps or variables\n- PATCH: Documentation, bug fixes\n\n## Git Tag Integration\n- `bd mol install repo@v1.2.0` fetches that tag\n- `bd mol install repo` fetches latest tag (or main if no tags)\n- `bd mol publish --tag v1.2.0` creates tag\n\n## Proto Version Tracking\nLocal proto should store:\n```\nsource_repo: github.com/anthropics/mol-code-review\nsource_version: v1.2.0\ninstalled_at: 2025-12-25T12:00:00Z\n```\n\nThis enables `bd mol update` to check for newer versions.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T12:06:42.674849-08:00","updated_at":"2025-12-25T19:43:22.501926-08:00","closed_at":"2025-12-25T19:43:22.501926-08:00","dependencies":[{"issue_id":"bd-1dez.7","depends_on_id":"bd-1dez","type":"parent-child","created_at":"2025-12-25T12:06:42.67694-08:00","created_by":"daemon"}]} {"id":"bd-1dez.8","title":"Installation tracking: .beads/installed.json","description":"Track installed formulas for update checking and provenance.\n\n## File Format\n```json\n{\n \"mol-code-review\": {\n \"source\": \"github.com/anthropics/mol-code-review\",\n \"version\": \"v1.2.0\",\n \"installed_at\": \"2025-12-25T12:00:00Z\",\n \"formula_hash\": \"abc123...\"\n },\n \"mol-polecat-work\": {\n \"source\": \"local\",\n \"version\": \"1\",\n \"installed_at\": \"2025-12-24T10:00:00Z\"\n }\n}\n```\n\n## Commands That Update This\n- `bd mol install` - Adds entry\n- `bd mol update` - Updates version/timestamp\n- `bd cook` - Adds entry with source:local\n- `bd mol uninstall` - Removes entry (new command)\n\n## Usage\n```bash\nbd mol list --installed # Shows installed with source/version\nbd mol outdated # Shows formulas with available updates\n```\n\n## Sync Behavior\n- installed.json is gitignored (local state)\n- Only formulas/ directory is synced\n- Each clone tracks its own installations\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T12:06:43.934727-08:00","updated_at":"2025-12-25T19:38:04.14827-08:00","closed_at":"2025-12-25T19:38:04.14827-08:00","dependencies":[{"issue_id":"bd-1dez.8","depends_on_id":"bd-1dez","type":"parent-child","created_at":"2025-12-25T12:06:43.937653-08:00","created_by":"daemon"}]} -{"id":"bd-1dta","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T01:05:24.410784-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T01:05:24.44352-08:00","closed_at":"2026-01-07T01:05:24.44352-08:00","close_reason":"auto-closed session event"} -{"id":"bd-1e12","title":"Add tests for gate auto-discover workflow run ID","description":"Commit ee5bc593 added auto-discovery of workflow run IDs but lacks tests.\n\nWhen a gh:run gate has a non-numeric await_id (workflow name hint), gate check\nnow auto-discovers the run ID via gh run list --workflow=X.\n\nTest cases needed:\n- discoverRunIDByWorkflowName() returns most recent run ID\n- discoverRunIDByWorkflowName() handles no runs found\n- discoverRunIDByWorkflowName() handles gh CLI errors\n- checkGHRun() with workflow hint triggers discovery\n- checkGHRun() updates gate's await_id after discovery\n- queryGitHubRunsForWorkflow() parses JSON response correctly\n\nLocation: cmd/bd/gate.go:654-766\nSuggested test file: cmd/bd/gate_test.go\n\nNote: These involve external gh CLI calls, so tests may need mocking or integration setup.","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-07T01:18:09.795147-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T01:18:09.795147-08:00"} -{"id":"bd-1eak","title":"Add bd refile command to move issues between rigs","description":"Add a `bd refile \u003csource-id\u003e \u003ctarget-rig\u003e` command to move issues between rigs.\n\nBeads already has the routing infrastructure:\n- ResolveBeadsDirForID - routes reads by prefix\n- ResolveBeadsDirForRig - routes writes by rig name\n- GetRoutedStorageForID - opens cross-rig storage connections\n\nImplementation:\n1. Get source issue via routing\n2. Create new issue in target rig (existing --prefix mechanism)\n3. Close source issue with 'Refiled to \u003cnew-id\u003e'\n4. Optionally: migrate deps, link the two issues\n\nThis is pure beads - no gastown involvement needed.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-31T12:29:18.161088-08:00","created_by":"beads/crew/grip","updated_at":"2025-12-31T12:34:23.548938-08:00","closed_at":"2025-12-31T12:34:23.548938-08:00","close_reason":"Implemented bd refile command"} +{"id":"bd-1dta","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T01:05:24.410784-08:00","updated_at":"2026-01-07T01:05:24.44352-08:00","closed_at":"2026-01-07T01:05:24.44352-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-1e12","title":"Add tests for gate auto-discover workflow run ID","description":"Commit ee5bc593 added auto-discovery of workflow run IDs but lacks tests.\n\nWhen a gh:run gate has a non-numeric await_id (workflow name hint), gate check\nnow auto-discovers the run ID via gh run list --workflow=X.\n\nTest cases needed:\n- discoverRunIDByWorkflowName() returns most recent run ID\n- discoverRunIDByWorkflowName() handles no runs found\n- discoverRunIDByWorkflowName() handles gh CLI errors\n- checkGHRun() with workflow hint triggers discovery\n- checkGHRun() updates gate's await_id after discovery\n- queryGitHubRunsForWorkflow() parses JSON response correctly\n\nLocation: cmd/bd/gate.go:654-766\nSuggested test file: cmd/bd/gate_test.go\n\nNote: These involve external gh CLI calls, so tests may need mocking or integration setup.","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-07T01:18:09.795147-08:00","updated_at":"2026-01-07T01:18:09.795147-08:00","created_by":"beads/crew/emma"} +{"id":"bd-1eak","title":"Add bd refile command to move issues between rigs","description":"Add a `bd refile \u003csource-id\u003e \u003ctarget-rig\u003e` command to move issues between rigs.\n\nBeads already has the routing infrastructure:\n- ResolveBeadsDirForID - routes reads by prefix\n- ResolveBeadsDirForRig - routes writes by rig name\n- GetRoutedStorageForID - opens cross-rig storage connections\n\nImplementation:\n1. Get source issue via routing\n2. Create new issue in target rig (existing --prefix mechanism)\n3. Close source issue with 'Refiled to \u003cnew-id\u003e'\n4. Optionally: migrate deps, link the two issues\n\nThis is pure beads - no gastown involvement needed.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-31T12:29:18.161088-08:00","updated_at":"2025-12-31T12:34:23.548938-08:00","closed_at":"2025-12-31T12:34:23.548938-08:00","close_reason":"Implemented bd refile command","created_by":"beads/crew/grip"} {"id":"bd-1ece","title":"Remove obsolete renumber.go command (hash IDs eliminated need)","status":"closed","priority":2,"issue_type":"chore","created_at":"2025-10-31T21:27:05.559328-07:00","updated_at":"2025-10-31T21:27:11.426941-07:00","closed_at":"2025-10-31T21:27:11.426941-07:00"} -{"id":"bd-1ep6e","title":"Deacon patrol: discover and dispatch gate-ready molecules","description":"Add a step to mol-deacon-patrol.formula.toml after gate-evaluation:\n\n```toml\n[[steps]]\nid = \"dispatch-gated-molecules\"\ntitle = \"Dispatch molecules with resolved gates\"\nneeds = [\"gate-evaluation\"]\ndescription = \"\"\"\nFind molecules blocked on gates that have now closed.\n\nbd mol ready --gated --json\n\nFor each ready molecule, dispatch to the appropriate rig's polecat pool:\ngt sling \u003cmol-id\u003e \u003crig\u003e/polecats\n\nThis completes the async resume cycle without explicit waiter tracking.\n\"\"\"\n```\n\nParent: bd-ka761","status":"closed","priority":1,"issue_type":"task","assignee":"beads/crew/giles","created_at":"2026-01-08T20:53:38.854621-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T21:34:40.936747-08:00","closed_at":"2026-01-08T21:34:40.936747-08:00","close_reason":"Implemented dispatch-gated-molecules step in mol-deacon-patrol.formula.toml (commit b5091071). Uses bd mol ready --gated to find gate-ready molecules and gt sling to dispatch.","dependencies":[{"issue_id":"bd-1ep6e","depends_on_id":"bd-ka761","type":"parent-child","created_at":"2026-01-08T20:54:04.086038-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-1ep6e","depends_on_id":"bd-lhalq","type":"blocks","created_at":"2026-01-08T20:54:11.686108-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-1ep6e","title":"Deacon patrol: discover and dispatch gate-ready molecules","description":"Add a step to mol-deacon-patrol.formula.toml after gate-evaluation:\n\n```toml\n[[steps]]\nid = \"dispatch-gated-molecules\"\ntitle = \"Dispatch molecules with resolved gates\"\nneeds = [\"gate-evaluation\"]\ndescription = \"\"\"\nFind molecules blocked on gates that have now closed.\n\nbd mol ready --gated --json\n\nFor each ready molecule, dispatch to the appropriate rig's polecat pool:\ngt sling \u003cmol-id\u003e \u003crig\u003e/polecats\n\nThis completes the async resume cycle without explicit waiter tracking.\n\"\"\"\n```\n\nParent: bd-ka761","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-08T20:53:38.854621-08:00","updated_at":"2026-01-08T21:34:40.936747-08:00","closed_at":"2026-01-08T21:34:40.936747-08:00","close_reason":"Implemented dispatch-gated-molecules step in mol-deacon-patrol.formula.toml (commit b5091071). Uses bd mol ready --gated to find gate-ready molecules and gt sling to dispatch.","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-1ep6e","depends_on_id":"bd-ka761","type":"parent-child","created_at":"2026-01-08T20:54:04.086038-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-1ep6e","depends_on_id":"bd-lhalq","type":"blocks","created_at":"2026-01-08T20:54:11.686108-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-1ezg","title":"Investigate bd export/import sync issue - database and JSONL out of sync","description":"Observed in VC repo: database has 1137 issues but beads.jsonl only has 309. Running 'bd export -o .beads/issues.jsonl' doesn't update the file. Running 'bd import' hangs indefinitely.\n\nReproduction context:\n- VC repo: 1137 issues in DB, 309 in JSONL\n- Created 4 new issues with bd create\n- bd export didn't write them to JSONL\n- bd import hung (possibly daemon lock conflict?)\n\nNeed to investigate:\n1. Why export doesn't update JSONL when DB has more issues\n2. Why import hangs\n3. Daemon lock interaction with export/import\n4. File path handling (issues.jsonl vs beads.jsonl)","notes":"## Root Cause Analysis\n\nThe issue was NOT about file path handling or export failing to update JSONL. The actual problem was:\n\n**Import/Export hanging when daemon is running** due to SQLite lock contention:\n\n1. When daemon is connected, `PersistentPreRun` in main.go returns early without initializing the `store` variable\n2. Import/Export commands then tried to open the database directly with `sqlite.New(dbPath)` \n3. This blocked waiting for the database lock that the daemon already holds → **HANGS INDEFINITELY**\n\n## Solution Implemented\n\nModified both import.go and export.go to:\n1. Detect when `daemonClient` is connected\n2. Explicitly close the daemon connection before opening direct SQLite access\n3. Added debug logging to help diagnose similar issues\n\nThis ensures import/export commands always run in direct mode, avoiding lock contention.\n\n## File Path Handling\n\nThe file path confusion (issues.jsonl vs beads.jsonl) was a red herring. The code uses `filepath.Glob(\"*.jsonl\")` which correctly finds ANY `.jsonl` file in `.beads/` directory, so both filenames work.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-06T19:00:55.78797-08:00","updated_at":"2025-11-06T19:07:15.077983-08:00","closed_at":"2025-11-06T19:07:15.077983-08:00"} {"id":"bd-1f28","title":"Extract migration functions to migrations.go","description":"Move migrateDirtyIssuesTable, migrateExternalRefColumn, migrateCompositeIndexes, migrateClosedAtConstraint, migrateCompactionColumns, migrateSnapshotsTable, migrateCompactionConfig, migrateCompactedAtCommitColumn, migrateExportHashesTable, migrateContentHashColumn to a separate migrations.go file","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-01T19:28:54.892045-07:00","updated_at":"2025-11-01T20:00:09.038174-07:00","closed_at":"2025-11-01T20:00:09.038178-07:00"} {"id":"bd-1f4086c5","title":"Event-driven daemon architecture","description":"Replace 5-second polling sync loop with event-driven architecture that reacts instantly to changes. Eliminates stale data issues while reducing CPU ~60%. Key components: FileWatcher (fsnotify), Debouncer (500ms), RPC mutation events, optional git hooks. Target latency: \u003c500ms (vs 5000ms). See event_driven_daemon.md for full design.","notes":"Production-ready after 3 critical fixes (commit 349b892):\n- Skip redundant imports (mtime check prevents self-trigger loops)\n- Add server.Stop() in serverErrChan case (clean shutdown)\n- Fallback ticker (60s) when watcher unavailable (ensures remote sync)\n\nReady to make default after integration test (bd-1f4086c5.1) passes.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-10-29T23:05:13.969484-07:00","updated_at":"2025-10-31T20:21:25.464736-07:00","closed_at":"2025-10-31T20:21:25.464736-07:00"} {"id":"bd-1f4086c5.1","title":"Integration test: mutation to export latency","description":"Measure time from bd create to JSONL update. Verify \u003c500ms latency. Test with multiple rapid mutations to verify batching.","notes":"Test added to daemon_test.go as TestMutationToExportLatency().\n\nCurrently skipped with note that it should be enabled once bd-146 (event-driven daemon) is fully implemented and enabled by default.\n\nThe test structure is complete:\n1. Sets up test environment with fast debounce (500ms)\n2. SingleMutationLatency: measures latency from mutation to JSONL update\n3. RapidMutationBatching: verifies multiple mutations batch into single export\n\nOnce event-driven mode is default, remove the t.Skip() line and the test will validate \u003c500ms latency.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T20:49:49.103759-07:00","updated_at":"2025-10-30T17:12:58.195867-07:00","closed_at":"2025-10-29T14:19:19.808139-07:00","dependencies":[{"issue_id":"bd-1f4086c5.1","depends_on_id":"bd-1f4086c5","type":"parent-child","created_at":"2025-10-29T20:49:49.107244-07:00","created_by":"import-remap"}]} {"id":"bd-1f64","title":"Add comprehensive tests for config.yaml issue-prefix migration","description":"The GH #209 config.yaml migration lacks test coverage:\n\nMissing tests:\n- config.SetIssuePrefix() edge cases (empty file, comments, malformed YAML)\n- config.GetIssuePrefix() with various config states\n- MigrateConfigToYAML() automatic migration logic\n- bd init writing to config.yaml instead of DB\n- bd migrate DB→config.yaml migration path\n\nTest scenarios needed:\n1. SetIssuePrefix with empty config.yaml\n2. SetIssuePrefix with existing config.yaml (preserves other settings)\n3. SetIssuePrefix with commented issue-prefix line\n4. SetIssuePrefix atomic write (temp file cleanup)\n5. GetIssuePrefix fallback behavior\n6. MigrateConfigToYAML when config.yaml missing prefix but DB has it\n7. MigrateConfigToYAML when both missing (detect from issues)\n8. MigrateConfigToYAML when config.yaml already has prefix (no-op)\n9. Integration test: fresh bd init writes to config.yaml only\n10. Integration test: upgrade from v0.21 DB migrates to config.yaml\n\nPriority 1 because this is a user-facing migration affecting all users upgrading to v0.22.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-03T22:33:43.08753-08:00","updated_at":"2025-11-03T22:46:16.306565-08:00","closed_at":"2025-11-03T22:46:16.306565-08:00"} {"id":"bd-1fkr","title":"bd-hv01: Storage backend extensibility broken by type assertion","description":"Problem: deletion_tracking.go:69-82 uses type assertion for DeleteIssue which breaks if someone adds a new storage backend.\n\nFix: Check capability before starting merge or add DeleteIssue to Storage interface.\n\nFiles: cmd/bd/deletion_tracking.go:69-82, internal/storage/storage.go","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-06T18:16:20.770662-08:00","updated_at":"2025-11-06T18:55:08.666253-08:00","closed_at":"2025-11-06T18:55:08.666253-08:00","dependencies":[{"issue_id":"bd-1fkr","depends_on_id":"bd-rbxi","type":"parent-child","created_at":"2025-11-06T18:19:14.925961-08:00","created_by":"daemon"}]} -{"id":"bd-1gty6","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:56:03.595182-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T20:56:03.6637-08:00","closed_at":"2026-01-11T20:56:03.6637-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-1gty6","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T20:56:03.595182-08:00","updated_at":"2026-01-11T20:56:03.6637-08:00","closed_at":"2026-01-11T20:56:03.6637-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-1h8","title":"Fix compact --analyze/--apply error messages to clarify direct mode requirement","description":"**Problem:**\nWhen users run `bd compact --analyze` with daemon running, they get:\n```\nError: compact requires SQLite storage\n```\n\nThis is misleading because they ARE using SQLite (via daemon), but the command needs DIRECT SQLite access.\n\n**Current behavior:**\n- Error message suggests they don't have SQLite\n- No hint about using --no-daemon flag\n- Related to issue #349 item #1\n\n**Proposed fix:**\n1. Update error messages in cmd/bd/compact.go lines 106-114 (analyze) and 121-137 (apply)\n2. Add explicit hint: \"Use --no-daemon flag to bypass daemon\"\n3. Change SQLite check error from \"requires SQLite storage\" to \"failed to open database in direct mode\"\n\n**Files to modify:**\n- cmd/bd/compact.go (lines ~106-137)\n\n**Testing:**\n- Run with daemon: `bd compact --analyze` should show clear error + hint\n- Run with --no-daemon: `bd compact --analyze --no-daemon` should work\n- Verify error message is actionable","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-20T20:47:45.606924-05:00","updated_at":"2025-11-20T20:59:13.406952-05:00","closed_at":"2025-11-20T20:59:13.406952-05:00"} -{"id":"bd-1hc40","title":"Blocking issue","status":"open","priority":1,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:13.008593-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:13.008593-08:00"} -{"id":"bd-1hu59","title":"Test failures: schema mismatch after owner field addition","description":"Pre-existing test failures detected during refinery patrol:\n\n1. cmd/bd: TestResolveProtoIDOrTitle - sql: expected 31 destination arguments in Scan, not 32\n2. internal/storage/sqlite: TestGetIssuesByLabel - same scan mismatch\n3. internal/storage/sqlite: TestMigrateContentHashColumn - no such column: owner\n\nRoot cause: The 'owner' field was added (ceb5769c) but tests/fixtures are not updated to match the new schema.\n\nFiles affected:\n- cmd/bd template tests\n- internal/storage/sqlite/labels_test.go\n- internal/storage/sqlite/migrations_test.go","status":"closed","priority":1,"issue_type":"bug","assignee":"beads/crew/emma","created_at":"2026-01-10T22:00:41.275253-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T01:37:53.290357-08:00","closed_at":"2026-01-12T01:37:53.290357-08:00","close_reason":"Already fixed in 0de6b10a (add missing crystallizes column to SELECT queries)"} -{"id":"bd-1juu","title":"Merge: obsidian-mjxeci6l","description":"branch: polecat/obsidian-mjxeci6l\ntarget: main\nsource_issue: obsidian-mjxeci6l\nrig: beads\nagent_bead: bd-beads-polecat-obsidian","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T13:44:06.098083-08:00","created_by":"beads/polecats/obsidian","updated_at":"2026-01-02T17:14:50.490086-08:00","closed_at":"2026-01-02T17:14:50.490086-08:00","close_reason":"Orphaned MR - obsidian stopped (merged no-op), branch never pushed"} -{"id":"bd-1jylp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T00:42:19.49972-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T00:42:19.562255-08:00","closed_at":"2026-01-11T00:42:19.562255-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-1l5vn","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T07:56:14.028903-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T07:56:14.071442-08:00","closed_at":"2026-01-11T07:56:14.071442-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-1l7cm","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:25:54.564703-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T02:25:54.620403-08:00","closed_at":"2026-01-12T02:25:54.620403-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-1hc40","title":"Blocking issue","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-11T18:16:13.008593-08:00","updated_at":"2026-01-11T18:16:13.008593-08:00","created_by":"beads/crew/wolf"} +{"id":"bd-1hu59","title":"Test failures: schema mismatch after owner field addition","description":"Pre-existing test failures detected during refinery patrol:\n\n1. cmd/bd: TestResolveProtoIDOrTitle - sql: expected 31 destination arguments in Scan, not 32\n2. internal/storage/sqlite: TestGetIssuesByLabel - same scan mismatch\n3. internal/storage/sqlite: TestMigrateContentHashColumn - no such column: owner\n\nRoot cause: The 'owner' field was added (ceb5769c) but tests/fixtures are not updated to match the new schema.\n\nFiles affected:\n- cmd/bd template tests\n- internal/storage/sqlite/labels_test.go\n- internal/storage/sqlite/migrations_test.go","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-10T22:00:41.275253-08:00","updated_at":"2026-01-12T01:37:53.290357-08:00","closed_at":"2026-01-12T01:37:53.290357-08:00","close_reason":"Already fixed in 0de6b10a (add missing crystallizes column to SELECT queries)","created_by":"beads/refinery"} +{"id":"bd-1juu","title":"Merge: obsidian-mjxeci6l","description":"branch: polecat/obsidian-mjxeci6l\ntarget: main\nsource_issue: obsidian-mjxeci6l\nrig: beads\nagent_bead: bd-beads-polecat-obsidian","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T13:44:06.098083-08:00","updated_at":"2026-01-02T17:14:50.490086-08:00","closed_at":"2026-01-02T17:14:50.490086-08:00","close_reason":"Orphaned MR - obsidian stopped (merged no-op), branch never pushed","created_by":"beads/polecats/obsidian"} +{"id":"bd-1jylp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T00:42:19.49972-08:00","updated_at":"2026-01-11T00:42:19.562255-08:00","closed_at":"2026-01-11T00:42:19.562255-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-1l5vn","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T07:56:14.028903-08:00","updated_at":"2026-01-11T07:56:14.071442-08:00","closed_at":"2026-01-11T07:56:14.071442-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-1l7cm","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T02:25:54.564703-08:00","updated_at":"2026-01-12T02:25:54.620403-08:00","closed_at":"2026-01-12T02:25:54.620403-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-1ls","title":"Override test","description":"## Overview\n\n[Describe the high-level goal and scope of this epic]\n\n## Success Criteria\n\n- [ ] Criteria 1\n- [ ] Criteria 2\n- [ ] Criteria 3\n\n## Background\n\n[Provide context and motivation]\n\n## Scope\n\n**In Scope:**\n- Item 1\n- Item 2\n\n**Out of Scope:**\n- Item 1\n- Item 2\n","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-03T20:15:10.01471-08:00","updated_at":"2025-11-03T22:07:10.946574-08:00","closed_at":"2025-11-03T22:07:10.946574-08:00"} -{"id":"bd-1mc7t","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T00:10:16.382073-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T00:10:16.416022-08:00","closed_at":"2026-01-11T00:10:16.416022-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-1mc7t","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T00:10:16.382073-08:00","updated_at":"2026-01-11T00:10:16.416022-08:00","closed_at":"2026-01-11T00:10:16.416022-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-1mzt","title":"Client self-heal: remove stale pid when lock free + socket missing","description":"When client detects:\n- Socket is missing AND\n- tryDaemonLock shows lock NOT held\n\nThen automatically:\n1. Remove stale daemon.pid file\n2. Optionally auto-start daemon (behind BEADS_AUTO_START_DAEMON=1 env var)\n\nThis prevents stale artifacts from accumulating after daemon crashes.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-07T16:42:12.75205-08:00","updated_at":"2025-11-07T22:07:17.342845-08:00","closed_at":"2025-11-07T21:21:15.317562-08:00","dependencies":[{"issue_id":"bd-1mzt","depends_on_id":"bd-ndyz","type":"discovered-from","created_at":"2025-11-07T16:42:12.753099-08:00","created_by":"daemon"}]} -{"id":"bd-1onmd","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:05:16.256633-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T00:05:16.321546-08:00","closed_at":"2026-01-12T00:05:16.321546-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-1onmd","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:05:16.256633-08:00","updated_at":"2026-01-12T00:05:16.321546-08:00","closed_at":"2026-01-12T00:05:16.321546-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-1p8jx","title":"Digest: mol-refinery-patrol","description":"Patrol: Queue empty, no branches processed, inbox clear","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T23:04:23.826002-08:00","updated_at":"2026-01-10T23:04:23.826002-08:00","closed_at":"2026-01-10T23:04:23.82595-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-1pj6","title":"Proposal: Custom status states via config","description":"Proposal to add 'custom status states' via `bd config`.\nUsers could define an optional issue status enum (e.g., awaiting_review, review_in_progress) in the config.\nThis would enable multi-step pipelines to process issues where each step correlates to a specific status.\n\nExamples:\n- awaiting_verification\n- awaiting_docs\n- awaiting_testing\n","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-11-20T18:55:48.670499-05:00","updated_at":"2025-12-09T18:38:37.668809171-05:00","closed_at":"2025-11-28T23:18:45.862553-08:00"} {"id":"bd-1pr6","title":"Time-dependent worktree detection tests may be flaky","status":"hooked","priority":3,"issue_type":"task","created_at":"2025-12-26T01:21:22.065353-08:00","updated_at":"2025-12-30T15:44:43.360441-08:00"} -{"id":"bd-1qyxt","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T18:16:51.038541-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-12T18:16:51.087133-08:00","closed_at":"2026-01-12T18:16:51.087133-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-1qyxt","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T18:16:51.038541-08:00","updated_at":"2026-01-12T18:16:51.087133-08:00","closed_at":"2026-01-12T18:16:51.087133-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} {"id":"bd-1rh","title":"cmd/bd test suite is absurdly slow - 279 tests taking 8+ minutes","description":"# Problem\n\nThe cmd/bd test suite is painfully slow:\n- **279 tests** in cmd/bd alone\n- Full suite takes **8+ minutes** to run\n- Even with the 16 slowest integration tests now tagged with `integration` build tag, the remaining tests still take forever\n\nThis makes the development loop unusable. We can't wait 8+ minutes every time we want to run tests.\n\n# Root Cause Analysis\n\n## 1. Sheer Volume\n279 tests is too many for a single package. Even at 0.1s per test, that's 28 seconds minimum just for cmd/bd.\n\n## 2. Each Test Creates Full Database + Temp Directories\nEvery test does heavy setup:\n- Creates temp directory (`t.TempDir()` or `os.MkdirTemp`)\n- Initializes SQLite database\n- Sets up git repo in many cases\n- Creates full storage layer\n\nExample from the tests:\n```go\nfunc setupCLITestDB(t *testing.T) string {\n tmpDir := createTempDirWithCleanup(t)\n runBDInProcess(t, tmpDir, \"init\", \"--prefix\", \"test\", \"--quiet\")\n return tmpDir\n}\n```\n\nThis happens 279 times!\n\n## 3. Tests Are Not Properly Categorized\nWe have three types of tests mixed together:\n- **Unit tests** - should be fast, test single functions\n- **Integration tests** - test full workflows, need DB/git\n- **End-to-end tests** - test entire CLI commands\n\nThey're all lumped together in cmd/bd, all running every time.\n\n# What We've Already Fixed\n\nAdded `integration` build tags to 16 obviously-slow test files:\n- import_profile_test.go (performance benchmarking tests)\n- export_mtime_test.go (tests with time.Sleep calls)\n- cli_fast_test.go (full CLI integration tests)\n- delete_test.go, import_uncommitted_test.go, sync_local_only_test.go (git integration)\n- And 10 more in internal/ packages\n\nThese are now excluded from the default `go test ./...` run.\n\n# Proposed Solutions\n\n## Option 1: Shared Test Fixtures (Quick Win)\nCreate a shared test database that multiple tests can use:\n```go\nvar testDB *sqlite.SQLiteStorage\nvar testDBOnce sync.Once\n\nfunc getSharedTestDB(t *testing.T) storage.Storage {\n testDBOnce.Do(func() {\n // Create one DB for all tests\n })\n return testDB\n}\n```\n\n**Pros**: Easy to implement, immediate speedup\n**Cons**: Tests become less isolated, harder to debug failures\n\n## Option 2: Table-Driven Tests (Medium Win)\nCollapse similar tests into table-driven tests:\n```go\nfunc TestCreate(t *testing.T) {\n tests := []struct{\n name string\n args []string\n want string\n }{\n {\"basic issue\", []string{\"create\", \"Test\"}, \"created\"},\n {\"with description\", []string{\"create\", \"Test\", \"-d\", \"desc\"}, \"created\"},\n // ... 50 more cases\n }\n \n db := setupOnce(t) // Setup once, not 50 times\n for _, tt := range tests {\n t.Run(tt.name, func(t *testing.T) {\n // test using shared db\n })\n }\n}\n```\n\n**Pros**: Dramatically reduces setup overhead, tests run in parallel\n**Cons**: Requires refactoring, tests share more state\n\n## Option 3: Split cmd/bd Tests Into Packages (Big Win)\nMove tests into focused packages:\n- `cmd/bd/internal/clitests` - CLI integration tests (mark with integration tag)\n- `cmd/bd/internal/unittests` - Fast unit tests\n- Keep only essential tests in cmd/bd\n\n**Pros**: Clean separation, easy to run just fast tests\n**Cons**: Requires significant refactoring\n\n## Option 4: Parallel Execution (Quick Win)\nAdd `t.Parallel()` to independent tests:\n```go\nfunc TestSomething(t *testing.T) {\n t.Parallel() // Run this test concurrently with others\n // ...\n}\n```\n\n**Pros**: Easy to add, can cut time in half on multi-core machines\n**Cons**: Doesn't reduce actual test work, just parallelizes it\n\n## Option 5: In-Memory Databases (Medium Win)\nUse `:memory:` SQLite databases instead of file-based:\n```go\nstore, err := sqlite.New(ctx, \":memory:\")\n```\n\n**Pros**: Faster than disk I/O, easier cleanup\n**Cons**: Some tests need actual file-based DBs (export/import tests)\n\n# Recommended Approach\n\n**Short-term (this week)**:\n1. Add `t.Parallel()` to all independent tests in cmd/bd\n2. Use `:memory:` databases where possible\n3. Create table-driven tests for similar test cases\n\n**Medium-term (next sprint)**:\n4. Split cmd/bd tests into focused packages\n5. Mark more integration tests appropriately\n\n**Long-term (backlog)**:\n6. Consider shared test fixtures with proper isolation\n\n# Current Status\n\nWe've tagged 16 files with `integration` build tag, but the remaining 279 tests in cmd/bd still take 8+ minutes. This issue tracks fixing the cmd/bd test performance specifically.\n\n# Target\n\nGet `go test ./...` (without `-short` or `-tags=integration`) down to **under 30 seconds**.\n\n\n# THE REAL ROOT CAUSE (Updated Analysis)\n\nAfter examining the actual test code, the problem is clear:\n\n## Every Test Creates Its Own Database From Scratch\n\nLook at `create_test.go`:\n```go\nfunc TestCreate_BasicIssue(t *testing.T) {\n tmpDir := t.TempDir() // ← Creates temp dir\n testDB := filepath.Join(tmpDir, \".beads\", \"beads.db\")\n s := newTestStore(t, testDB) // ← Opens NEW SQLite connection\n // ← Runs migrations\n // ← Sets config\n // ... actual test (3 lines)\n}\n\nfunc TestCreate_WithDescription(t *testing.T) {\n tmpDir := t.TempDir() // ← Creates ANOTHER temp dir\n testDB := filepath.Join(tmpDir, \".beads\", \"beads.db\")\n s := newTestStore(t, testDB) // ← Opens ANOTHER SQLite connection\n // ... actual test (3 lines)\n}\n```\n\n**This happens 279 times!**\n\n## These Tests Don't Need Isolation!\n\nMost tests are just checking:\n- \"Can I create an issue with a title?\"\n- \"Can I create an issue with a description?\"\n- \"Can I add labels?\"\n\nThey don't conflict with each other. They could all share ONE database!\n\n## The Fix: Test Suites with Shared Setup\n\nInstead of:\n```go\nfunc TestCreate_BasicIssue(t *testing.T) {\n s := newTestStore(t, t.TempDir()+\"/db\") // ← Expensive!\n // test\n}\n\nfunc TestCreate_WithDesc(t *testing.T) {\n s := newTestStore(t, t.TempDir()+\"/db\") // ← Expensive!\n // test\n}\n```\n\nDo this:\n```go\nfunc TestCreate(t *testing.T) {\n // ONE setup for all subtests\n s := newTestStore(t, t.TempDir()+\"/db\")\n \n t.Run(\"basic_issue\", func(t *testing.T) {\n t.Parallel() // Can run concurrently - tests don't conflict\n // test using shared `s`\n })\n \n t.Run(\"with_description\", func(t *testing.T) {\n t.Parallel()\n // test using shared `s`\n })\n \n // ... 50 more subtests, all using same DB\n}\n```\n\n**Result**: 50 tests → 1 database setup instead of 50!\n\n## Why This Works\n\nSQLite is fine with concurrent reads and isolated transactions. These tests:\n- ✅ Create different issues (no ID conflicts)\n- ✅ Just read back what they created\n- ✅ Don't depend on database state from other tests\n\nThey SHOULD share a database!\n\n## Real Numbers\n\nCurrent:\n- 279 tests × (create dir + init SQLite + migrations) = **8 minutes**\n\nAfter fix:\n- 10 test suites × (create dir + init SQLite + migrations) = **30 seconds**\n- 279 subtests running in parallel using those 10 DBs = **5 seconds**\n\n**Total: ~35 seconds instead of 8 minutes!**\n\n## Implementation Plan\n\n1. **Group related tests** into suites (Create, List, Update, Delete, etc.)\n2. **One setup per suite** instead of per test\n3. **Use t.Run() for subtests** with t.Parallel()\n4. **Keep tests that actually need isolation** separate (export/import tests, git operations)\n\nThis is way better than shuffling tests into folders!","notes":"## Progress Update (2025-11-21)\n\n✅ **Completed**:\n- Audited all 280 tests, created TEST_SUITE_AUDIT.md ([deleted:bd-c49])\n- Refactored create_test.go to shared DB pattern ([deleted:bd-y6d])\n- Proven the pattern works: 11 tests now run in 0.04s with 1 DB instead of 11\n\n❌ **Current Reality**:\n- Overall test suite: Still 8+ minutes (no meaningful change)\n- Only 1 of 76 test files refactored\n- Saved ~10 DB initializations out of 280\n\n## Acceptance Criteria (REALISTIC)\n\nThis task is NOT complete until:\n- [ ] All P1 files refactored (create ✅, dep, stale, comments, list, ready)\n- [ ] Test suite runs in \u003c 2 minutes\n- [ ] Measured and verified actual speedup\n\n## Next Steps\n\n1. Refactor remaining 5 P1 files: dep_test.go, stale_test.go, comments_test.go, list_test.go, ready_test.go\n2. Measure actual time improvement after each file\n3. Continue with P2 files if needed to hit \u003c2min target","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-21T11:37:47.886207-05:00","updated_at":"2026-01-08T20:20:48.332191-08:00","closed_at":"2026-01-08T20:20:48.332191-08:00","close_reason":"Test suite now runs in ~17 seconds (was 8+ minutes). Issue is stale - optimizations were made.","dependencies":[{"issue_id":"bd-1rh","depends_on_id":"bd-c49","type":"blocks","created_at":"2025-11-21T11:49:26.347518-05:00","created_by":"daemon"}]} -{"id":"bd-1ri4","title":"Test prefix bd-","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-27T14:24:41.240483-08:00","created_by":"stevey","updated_at":"2025-12-27T14:24:50.419881-08:00","deleted_at":"2025-12-27T14:24:50.419881-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} +{"id":"bd-1ri4","title":"Test prefix bd-","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-27T14:24:41.240483-08:00","updated_at":"2025-12-27T14:24:50.419881-08:00","created_by":"stevey","deleted_at":"2025-12-27T14:24:50.419881-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} {"id":"bd-1slh","title":"Investigate charmbracelet-based TUI for beads","description":"Now that we've merged the create-form command (PR #603) which uses charmbracelet/huh, investigate whether beads should have a more comprehensive TUI.\n\nConsiderations:\n- Should this be in core or a separate binary (bd-tui)?\n- What functionality would benefit from a TUI? (list view, issue details, search, bulk operations)\n- Plugin/extension architecture vs build tags vs separate binary\n- Dependency cost vs user experience tradeoff\n- Target audience: humans who want interactive workflows vs CLI/scripting users\n\nRelated: PR #603 added charmbracelet/huh dependency for create-form command.","notes":"Foundation is in place (lipgloss, huh), but not a priority right now","status":"open","priority":3,"issue_type":"feature","created_at":"2025-12-17T14:20:51.503563-08:00","updated_at":"2026-01-02T00:17:14.232446-08:00"} -{"id":"bd-1ssmo","title":"Session ended: gt-gastown-crew-george","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T12:25:33.899111-08:00","created_by":"beads/refinery","updated_at":"2026-01-08T12:25:33.93188-08:00","closed_at":"2026-01-08T12:25:33.93188-08:00","close_reason":"auto-closed session event"} -{"id":"bd-1thk8","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:44:30.804415-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T13:44:30.845665-08:00","closed_at":"2026-01-09T13:44:30.845665-08:00","close_reason":"auto-closed session event"} -{"id":"bd-1tkd","title":"Code smell: ComputeContentHash() is 100+ lines of repetitive code","description":"attached_args: Refactor ComputeContentHash repetitive code\n\nThe ComputeContentHash() method in internal/types/types.go (lines 87-190) is over 100 lines of repetitive code:\n\n```go\nh.Write([]byte(i.Title))\nh.Write([]byte{0}) // separator\nh.Write([]byte(i.Description))\nh.Write([]byte{0})\nh.Write([]byte(i.Design))\n// ... repeated 40+ times\n```\n\nConsider:\n1. Using reflection to iterate over struct fields tagged for hashing\n2. Creating a helper function that takes field name and value\n3. Using a slice of fields to hash and iterating over it\n4. At minimum, extracting the repetitive pattern into a helper\n\nLocation: internal/types/types.go:87-190","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T15:31:55.514941-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T16:41:13.031194-08:00","closed_at":"2025-12-28T16:41:13.031194-08:00","dependencies":[{"issue_id":"bd-1tkd","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.204723-08:00","created_by":"daemon"}]} +{"id":"bd-1ssmo","title":"Session ended: gt-gastown-crew-george","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T12:25:33.899111-08:00","updated_at":"2026-01-08T12:25:33.93188-08:00","closed_at":"2026-01-08T12:25:33.93188-08:00","close_reason":"auto-closed session event","created_by":"beads/refinery"} +{"id":"bd-1thk8","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:44:30.804415-08:00","updated_at":"2026-01-09T13:44:30.845665-08:00","closed_at":"2026-01-09T13:44:30.845665-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-1tkd","title":"Code smell: ComputeContentHash() is 100+ lines of repetitive code","description":"attached_args: Refactor ComputeContentHash repetitive code\n\nThe ComputeContentHash() method in internal/types/types.go (lines 87-190) is over 100 lines of repetitive code:\n\n```go\nh.Write([]byte(i.Title))\nh.Write([]byte{0}) // separator\nh.Write([]byte(i.Description))\nh.Write([]byte{0})\nh.Write([]byte(i.Design))\n// ... repeated 40+ times\n```\n\nConsider:\n1. Using reflection to iterate over struct fields tagged for hashing\n2. Creating a helper function that takes field name and value\n3. Using a slice of fields to hash and iterating over it\n4. At minimum, extracting the repetitive pattern into a helper\n\nLocation: internal/types/types.go:87-190","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T15:31:55.514941-08:00","updated_at":"2025-12-28T16:41:13.031194-08:00","closed_at":"2025-12-28T16:41:13.031194-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-1tkd","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.204723-08:00","created_by":"daemon"}]} {"id":"bd-1tw","title":"Fix G104 errors unhandled in internal/storage/sqlite/queries.go:1186","description":"Linting issue: G104: Errors unhandled (gosec) at internal/storage/sqlite/queries.go:1186:2. Error: rows.Close()","status":"tombstone","priority":0,"issue_type":"bug","created_at":"2025-12-07T15:35:13.051671889-07:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-1u4","title":"Fix gosec lint warnings in doctor.go, main.go, and fix subdirectory","description":"CI lint job failing with 4 gosec warnings:\n- cmd/bd/doctor.go:664 (G304: file inclusion via variable)\n- cmd/bd/doctor/fix/database_config.go:166 (G304: file inclusion via variable) \n- cmd/bd/doctor/fix/untracked.go:61 (G204: subprocess launched with variable)\n- cmd/bd/main.go:645 (G304: file inclusion via variable)\n\nEither suppress with `// #nosec` if false positives, or refactor to validate paths properly.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-29T00:43:07.393406783-07:00","updated_at":"2025-11-29T23:31:20.977129-08:00","closed_at":"2025-11-29T23:31:16.4478-08:00"} -{"id":"bd-1vc13","title":"Remove or integrate unused EnsureSocketDir/CleanupSocketDir functions","description":"Code review follow-up from GH#1001 fix.\n\nEnsureSocketDir() and CleanupSocketDir() in internal/rpc/socket_path.go are defined but never called:\n- Server's ensureSocketDir() in server_lifecycle_conn.go:144 already handles directory creation\n- Server's Stop() doesn't call CleanupSocketDir()\n\nOptions:\n1. Remove unused functions (YAGNI)\n2. Integrate them into server lifecycle\n3. Keep as exported API for future use\n\nRelated: GH#1001, commit 3ecffa11","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-10T13:36:34.318095-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-10T13:36:34.318095-08:00"} +{"id":"bd-1vc13","title":"Remove or integrate unused EnsureSocketDir/CleanupSocketDir functions","description":"Code review follow-up from GH#1001 fix.\n\nEnsureSocketDir() and CleanupSocketDir() in internal/rpc/socket_path.go are defined but never called:\n- Server's ensureSocketDir() in server_lifecycle_conn.go:144 already handles directory creation\n- Server's Stop() doesn't call CleanupSocketDir()\n\nOptions:\n1. Remove unused functions (YAGNI)\n2. Integrate them into server lifecycle\n3. Keep as exported API for future use\n\nRelated: GH#1001, commit 3ecffa11","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-10T13:36:34.318095-08:00","updated_at":"2026-01-10T13:36:34.318095-08:00","created_by":"beads/crew/wolf"} {"id":"bd-1vup","title":"Test FK constraint via close","status":"closed","priority":4,"issue_type":"task","created_at":"2025-11-07T15:06:10.324045-08:00","updated_at":"2025-11-07T15:06:14.289835-08:00","closed_at":"2025-11-07T15:06:14.289835-08:00"} {"id":"bd-1vv","title":"Add WebSocket support","description":"## Feature Request\n\n[Describe the desired feature]\n\n## Motivation\n\n[Why is this feature needed? What problem does it solve?]\n\n## Use Cases\n\n1. **Use Case 1**: [description]\n2. **Use Case 2**: [description]\n\n## Proposed Solution\n\n[High-level approach to implementing this feature]\n\n## Alternatives Considered\n\n- **Alternative 1**: [description and why not chosen]\n- **Alternative 2**: [description and why not chosen]\n","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-03T19:56:41.271215-08:00","updated_at":"2025-12-14T00:32:11.04773-08:00","closed_at":"2025-12-13T23:30:18.69345-08:00"} -{"id":"bd-1wmwp","title":"Cost tracking performance and reliability improvements","description":"Post-merge improvements for the wisp-based cost tracking system (gt-cm900).\n\nThese are non-critical enhancements identified during code review.","status":"closed","priority":3,"issue_type":"epic","assignee":"mayor","created_at":"2026-01-08T22:54:54.812479-08:00","created_by":"mayor","updated_at":"2026-01-09T00:47:17.309176-08:00","closed_at":"2026-01-09T00:47:17.309176-08:00","close_reason":"All 4 child tasks completed and merged","dependencies":[{"issue_id":"bd-1wmwp","depends_on_id":"bd-3hqvs","type":"blocks","created_at":"2026-01-08T22:55:44.702562-08:00","created_by":"mayor"},{"issue_id":"bd-1wmwp","depends_on_id":"bd-i8zab","type":"blocks","created_at":"2026-01-08T22:55:44.730968-08:00","created_by":"mayor"},{"issue_id":"bd-1wmwp","depends_on_id":"bd-qv8f9","type":"blocks","created_at":"2026-01-08T22:55:44.758375-08:00","created_by":"mayor"},{"issue_id":"bd-1wmwp","depends_on_id":"bd-66z6a","type":"blocks","created_at":"2026-01-08T22:55:44.785431-08:00","created_by":"mayor"}]} +{"id":"bd-1wmwp","title":"Cost tracking performance and reliability improvements","description":"Post-merge improvements for the wisp-based cost tracking system (gt-cm900).\n\nThese are non-critical enhancements identified during code review.","status":"closed","priority":3,"issue_type":"epic","created_at":"2026-01-08T22:54:54.812479-08:00","updated_at":"2026-01-09T00:47:17.309176-08:00","closed_at":"2026-01-09T00:47:17.309176-08:00","close_reason":"All 4 child tasks completed and merged","created_by":"mayor","dependencies":[{"issue_id":"bd-1wmwp","depends_on_id":"bd-i8zab","type":"blocks","created_at":"2026-01-08T22:55:44.730968-08:00","created_by":"mayor"},{"issue_id":"bd-1wmwp","depends_on_id":"bd-qv8f9","type":"blocks","created_at":"2026-01-08T22:55:44.758375-08:00","created_by":"mayor"},{"issue_id":"bd-1wmwp","depends_on_id":"bd-66z6a","type":"blocks","created_at":"2026-01-08T22:55:44.785431-08:00","created_by":"mayor"},{"issue_id":"bd-1wmwp","depends_on_id":"bd-3hqvs","type":"blocks","created_at":"2026-01-08T22:55:44.702562-08:00","created_by":"mayor"}]} {"id":"bd-1yi5","title":"Use -short flag in CI for PR checks","description":"Update CI configuration to use -short flag for PR checks, run full tests nightly.\n\nThe slow tests already support testing.Short() and will be skipped.\n\nExpected savings: ~20 seconds for PR checks (fast tests only)\n\nImplementation:\n- Update .github/workflows/ci.yml to add -short flag for PR tests\n- Create/update nightly workflow for full test runs\n- Update README/docs about test strategy\n\nFile: .github/workflows/ci.yml:30","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-04T01:24:17.279618-08:00","updated_at":"2025-11-04T10:25:10.616119-08:00","closed_at":"2025-11-04T10:25:10.616119-08:00","dependencies":[{"issue_id":"bd-1yi5","depends_on_id":"bd-l5gq","type":"blocks","created_at":"2025-11-04T01:24:17.280453-08:00","created_by":"daemon"}]} -{"id":"bd-1zxcy","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:02:35.139135-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T15:02:35.177414-08:00","closed_at":"2026-01-10T15:02:35.177414-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-1zxcy","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:02:35.139135-08:00","updated_at":"2026-01-10T15:02:35.177414-08:00","closed_at":"2026-01-10T15:02:35.177414-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-20j","title":"sync branch not match config","description":"./bd sync\n→ Exporting pending changes to JSONL...\n→ No changes to commit\n→ Pulling from sync branch 'gh-386'...\nError pulling from sync branch: failed to create worktree: failed to create worktree parent directory: mkdir /var/home/matt/dev/beads/worktree-db-fail/.git: not a directory\nmatt@blufin-framation ~/d/b/worktree-db-fail (worktree-db-fail) [1]\u003e bd config list\n\nConfiguration:\n auto_compact_enabled = false\n compact_batch_size = 50\n compact_model = claude-3-5-haiku-20241022\n compact_parallel_workers = 5\n compact_tier1_days = 30\n compact_tier1_dep_levels = 2\n compact_tier2_commits = 100\n compact_tier2_days = 90\n compact_tier2_dep_levels = 5\n compaction_enabled = false\n issue_prefix = worktree-db-fail\n sync.branch = worktree-db-fail","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-08T06:49:04.449094018-07:00","updated_at":"2025-12-29T14:03:14.980166-08:00","closed_at":"2025-12-29T14:03:14.980166-08:00","close_reason":"Config mismatch: added warning to bd config list when config.yaml overrides database settings. Worktree issue was already fixed by GH#639."} {"id":"bd-22e0bde9","title":"Add TestNWayCollision for 5+ clones","description":"## Overview\nAdd comprehensive tests for N-way (5+) collision resolution to verify the solution scales beyond 3 clones.\n\n## Purpose\nWhile TestThreeCloneCollision validates the basic N-way case, we need to verify:\n1. Solution scales to arbitrary N\n2. Performance is acceptable with more clones\n3. Convergence time is bounded\n4. No edge cases in larger collision groups\n\n## Implementation Tasks\n\n### 1. Create TestFiveCloneCollision\nFile: beads_twoclone_test.go (or new beads_nway_test.go)\n\n```go\nfunc TestFiveCloneCollision(t *testing.T) {\n // Test with 5 clones creating same ID with different content\n // Verify all 5 clones converge after sync rounds\n \n t.Run(\"SequentialSync\", func(t *testing.T) {\n testNCloneCollision(t, 5, \"A\", \"B\", \"C\", \"D\", \"E\")\n })\n \n t.Run(\"ReverseSync\", func(t *testing.T) {\n testNCloneCollision(t, 5, \"E\", \"D\", \"C\", \"B\", \"A\")\n })\n \n t.Run(\"RandomSync\", func(t *testing.T) {\n testNCloneCollision(t, 5, \"C\", \"A\", \"E\", \"B\", \"D\")\n })\n}\n```\n\n### 2. Implement generalized testNCloneCollision\nGeneralize the 3-clone test to handle arbitrary N:\n\n```go\nfunc testNCloneCollision(t *testing.T, numClones int, syncOrder ...string) {\n t.Helper()\n \n if len(syncOrder) != numClones {\n t.Fatalf(\"syncOrder length (%d) must match numClones (%d)\", \n len(syncOrder), numClones)\n }\n \n tmpDir := t.TempDir()\n \n // Setup remote and N clones\n remoteDir := setupBareRepo(t, tmpDir)\n cloneDirs := make(map[string]string)\n \n for i := 0; i \u003c numClones; i++ {\n name := string(rune('A' + i))\n cloneDirs[name] = setupClone(t, tmpDir, remoteDir, name)\n }\n \n // Each clone creates issue with same ID but different content\n for name, dir := range cloneDirs {\n createIssue(t, dir, fmt.Sprintf(\"Issue from clone %s\", name))\n }\n \n // Sync in specified order\n for _, name := range syncOrder {\n syncClone(t, cloneDirs[name], name)\n }\n \n // Final pull for convergence\n for name, dir := range cloneDirs {\n finalPull(t, dir, name)\n }\n \n // Verify all clones have all N issues\n expectedTitles := make(map[string]bool)\n for i := 0; i \u003c numClones; i++ {\n name := string(rune('A' + i))\n expectedTitles[fmt.Sprintf(\"Issue from clone %s\", name)] = true\n }\n \n for name, dir := range cloneDirs {\n titles := getTitles(t, dir)\n if !compareTitleSets(titles, expectedTitles) {\n t.Errorf(\"Clone %s missing issues: expected %v, got %v\", \n name, expectedTitles, titles)\n }\n }\n \n t.Log(\"✓ All\", numClones, \"clones converged successfully\")\n}\n```\n\n### 3. Add performance benchmarks\nTest convergence time and memory usage:\n\n```go\nfunc BenchmarkNWayCollision(b *testing.B) {\n for _, n := range []int{3, 5, 10, 20} {\n b.Run(fmt.Sprintf(\"N=%d\", n), func(b *testing.B) {\n for i := 0; i \u003c b.N; i++ {\n // Run N-way collision and measure time\n testNCloneCollisionBench(b, n)\n }\n })\n }\n}\n```\n\n### 4. Add convergence time tests\nVerify bounded convergence:\n\n```go\nfunc TestConvergenceTime(t *testing.T) {\n // Test that convergence happens within expected rounds\n // For N clones, should converge in at most N-1 sync rounds\n \n for n := 3; n \u003c= 10; n++ {\n t.Run(fmt.Sprintf(\"N=%d\", n), func(t *testing.T) {\n rounds := measureConvergenceRounds(t, n)\n maxExpected := n - 1\n if rounds \u003e maxExpected {\n t.Errorf(\"Convergence took %d rounds, expected ≤ %d\", \n rounds, maxExpected)\n }\n })\n }\n}\n```\n\n### 5. Add edge case tests\nTest boundary conditions:\n- All N clones have identical content (dedup works)\n- N-1 clones have same content, 1 differs\n- All N clones have unique content\n- Mix of collisions and non-collisions\n\n## Acceptance Criteria\n- TestFiveCloneCollision passes with all sync orders\n- All 5 clones converge to identical content\n- Performance is acceptable (\u003c 5 seconds for 5 clones)\n- Convergence time is bounded (≤ N-1 rounds)\n- Edge cases handled correctly\n- Benchmarks show scalability to 10+ clones\n\n## Files to Create/Modify\n- beads_twoclone_test.go or beads_nway_test.go\n- Add helper functions for N-clone setup\n\n## Testing Strategy\n\n### Test Matrix\n| N Clones | Sync Orders | Expected Result |\n|----------|-------------|-----------------|\n| 3 | A→B→C | Pass |\n| 3 | C→B→A | Pass |\n| 5 | A→B→C→D→E | Pass |\n| 5 | E→D→C→B→A | Pass |\n| 5 | Random | Pass |\n| 10 | Sequential | Pass |\n\n### Performance Targets\n- 3 clones: \u003c 2 seconds\n- 5 clones: \u003c 5 seconds\n- 10 clones: \u003c 15 seconds\n\n## Dependencies\n- Requires bd-cbed9619.5, bd-cbed9619.4, bd-cbed9619.3, bd-cbed9619.2 to be completed\n- TestThreeCloneCollision must pass first\n\n## Success Metrics\n- All tests pass for N ∈ {3, 5, 10}\n- Convergence time scales linearly (O(N))\n- Memory usage reasonable (\u003c 100MB for 10 clones)\n- No data corruption or loss in any scenario","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T23:05:13.974702-07:00","updated_at":"2025-10-31T12:00:43.197709-07:00","closed_at":"2025-10-31T12:00:43.197709-07:00"} {"id":"bd-23a8","title":"Test simple issue","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-02T17:11:04.464726-08:00","updated_at":"2025-11-04T11:10:23.529727-08:00","closed_at":"2025-11-04T11:10:23.529731-08:00"} -{"id":"bd-23jdp","title":"No ref test","status":"open","priority":1,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-10T20:37:30.470102-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-10T20:37:30.470102-08:00"} +{"id":"bd-23jdp","title":"No ref test","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-10T20:37:30.470102-08:00","updated_at":"2026-01-10T20:37:30.470102-08:00","created_by":"beads/crew/dave"} {"id":"bd-23z9","title":"Upgrade beads-mcp to 0.33.2","description":"Upgrade the MCP server via pip:\n\n```bash\npip install --upgrade beads-mcp\npip show beads-mcp | grep Version # Verify 0.33.2\n```\n\nNote: Restart Claude Code or MCP session to use new version.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T16:10:13.761057-08:00","updated_at":"2025-12-21T17:29:31.791368-08:00","deleted_at":"2025-12-21T17:29:31.791368-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-248bdc3e","title":"Add optional post-merge git hook example for bd sync","description":"Create example git hook that auto-runs bd sync after git pull/merge.\n\nAdd to examples/git-hooks/:\n- post-merge hook that checks if .beads/issues.jsonl changed\n- If changed: run `bd sync` automatically\n- Make it optional/documented (not auto-installed)\n\nBenefits:\n- Zero-friction sync after git pull\n- Complements auto-detection as belt-and-suspenders\n\nNote: post-merge hook already exists for pre-commit/post-merge. Extend it to support sync.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-25T22:47:14.668842-07:00","updated_at":"2025-12-14T12:12:46.506326-08:00","closed_at":"2025-11-06T19:51:37.787964-08:00"} {"id":"bd-2530","title":"Issue with labels","description":"This is a description","status":"closed","priority":0,"issue_type":"feature","created_at":"2025-10-31T21:40:34.630173-07:00","updated_at":"2025-11-01T11:11:57.93151-07:00","closed_at":"2025-11-01T11:11:57.93151-07:00"} @@ -165,19 +165,19 @@ {"id":"bd-27ea","title":"Improve cmd/bd test coverage from 21% to 40% (multi-session effort)","description":"Current coverage: 21.0% of statements in cmd/bd\nTarget: 40%\nThis is a multi-session incremental effort.\n\nFocus areas:\n- Command handler tests (create, update, close, list, etc.)\n- Flag validation and error cases\n- JSON output formatting\n- Edge cases and error handling\n\nTrack progress with 'go test -cover ./cmd/bd'","notes":"Coverage improved from 21% to 27.4% (package) and 42.9% (total function coverage).\n\nAdded tests for:\n- compact.go test coverage (eligibility checks, dry run scenarios)\n- epic.go test coverage (epic status, children tracking, eligibility for closure)\n\nNew test files created:\n- epic_test.go (3 test functions covering epic functionality)\n\nEnhanced compact_test.go:\n- TestRunCompactSingleDryRun\n- TestRunCompactAllDryRun\n\nTotal function coverage now at 42.9%, exceeding the 40% target.","status":"closed","priority":0,"issue_type":"task","created_at":"2025-10-31T19:35:57.558346-07:00","updated_at":"2025-11-01T12:23:39.158922-07:00","closed_at":"2025-11-01T12:23:39.158926-07:00"} {"id":"bd-27xm","title":"Debug MCP Agent Mail tool execution errors","description":"**EXTERNAL WORK**: Debug the standalone MCP Agent Mail server (separate from beads integration).\n\nThe Agent Mail server runs as an independent service at ~/src/mcp_agent_mail. This is NOT beads code - it's a separate GitHub project we're evaluating for optional coordination features.\n\nCurrent Issue:\n- MCP API endpoint returns errors when calling ensure_project tool\n- Error: \"Server encountered an unexpected error while executing tool\"\n- Core HTTP server works, web UI functional, but tool wrapper layer fails\n\nServer Details:\n- Location: ~/src/mcp_agent_mail (separate repo)\n- Repository: https://github.com/Dicklesworthstone/mcp_agent_mail\n- Runs on: http://127.0.0.1:8765\n- Bearer token: In .env file\n\nInvestigation Steps:\n1. Check tool execution logs for full stack trace\n2. Verify Git storage initialization at ~/.mcp_agent_mail_git_mailbox_repo\n3. Review database setup (storage.sqlite3)\n4. Test with simpler MCP tools if available\n5. Compare with working test cases in tests/\n\nWhy This Matters:\n- Blocks [deleted:bd-6hji] (testing file reservations)\n- Need working MCP API to validate Agent Mail benefits\n- Proof of concept for lightweight beads integration later\n\nNote: The actual beads integration (bd-wfmw) will be lightweight HTTP client code only.","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-07T23:20:10.973891-08:00","updated_at":"2025-11-08T03:12:04.151537-08:00","closed_at":"2025-11-07T23:40:19.309202-08:00","dependencies":[{"issue_id":"bd-27xm","depends_on_id":"bd-muls","type":"discovered-from","created_at":"2025-11-07T23:20:21.895654-08:00","created_by":"daemon"}]} {"id":"bd-28db","title":"Add 'bd status' command for issue database overview","description":"Implement a bd status command that provides a quick snapshot of the issue database state, similar to how git status shows working tree state.\n\nExpected output: Show summary including counts by state (open, in-progress, blocked, closed), recent activity (last 7 days), and quick overview without needing multiple queries.\n\nExample output showing issue counts, recent activity stats, and pointer to bd list for details.\n\nProposed options: --all (show all issues), --assigned (show issues assigned to current user), --json (JSON format output)\n\nUse cases: Quick project health check, onboarding for new contributors, integration with shell prompts or CI/CD, daily standup reference","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-02T17:25:59.203549-08:00","updated_at":"2025-12-21T17:54:00.205191-08:00","closed_at":"2025-12-21T17:54:00.205191-08:00"} -{"id":"bd-28gwn","title":"Review \u0026 merge PR #1019: Markdown rendering in comments","description":"dispatched_by: beads/crew/emma\n\n## PR Review Task\n\n**PR:** https://github.com/steveyegge/beads/pull/1019\n**Author:** sukhodolin\n\n## Summary\nApply ui.RenderMarkdown() to comment text in bd show and bd comments commands.\n\n## Changes\n- cmd/bd/comments.go: Render comment text with Markdown\n- cmd/bd/show.go: Render comment text with Markdown (2 locations)\n- Uses existing ui.RenderMarkdown() function\n\n## Review Checklist\n1. Pull branch locally: `gh pr checkout 1019 --repo steveyegge/beads`\n2. Run tests: `go test ./...`\n3. Test manually: create an issue with markdown comment, verify rendering\n4. If all good, merge: `gh pr merge 1019 --repo steveyegge/beads --squash`\n\n## Classification\nEasy-win: Simple feature, uses existing patterns, small focused change.","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/grip","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:17:31.58204-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T18:46:13.706247-08:00","closed_at":"2026-01-11T18:46:13.706247-08:00","close_reason":"PR #1019 merged to main"} -{"id":"bd-28r5","title":"doctor: add deep integration check for pre-commit framework","description":"Add config parsing for .pre-commit-config.yaml to detect if bd hooks are configured. Pre-commit is popular enough to warrant full support like lefthook/husky.","status":"closed","priority":3,"issue_type":"feature","created_at":"2026-01-05T19:19:10.322442-08:00","created_by":"beads/crew/giles","updated_at":"2026-01-05T21:09:44.238926-08:00","closed_at":"2026-01-05T21:09:44.238926-08:00","close_reason":"Implemented - pre-commit framework now has deep integration checks"} +{"id":"bd-28gwn","title":"Review \u0026 merge PR #1019: Markdown rendering in comments","description":"dispatched_by: beads/crew/emma\n\n## PR Review Task\n\n**PR:** https://github.com/steveyegge/beads/pull/1019\n**Author:** sukhodolin\n\n## Summary\nApply ui.RenderMarkdown() to comment text in bd show and bd comments commands.\n\n## Changes\n- cmd/bd/comments.go: Render comment text with Markdown\n- cmd/bd/show.go: Render comment text with Markdown (2 locations)\n- Uses existing ui.RenderMarkdown() function\n\n## Review Checklist\n1. Pull branch locally: `gh pr checkout 1019 --repo steveyegge/beads`\n2. Run tests: `go test ./...`\n3. Test manually: create an issue with markdown comment, verify rendering\n4. If all good, merge: `gh pr merge 1019 --repo steveyegge/beads --squash`\n\n## Classification\nEasy-win: Simple feature, uses existing patterns, small focused change.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T18:17:31.58204-08:00","updated_at":"2026-01-11T18:46:13.706247-08:00","closed_at":"2026-01-11T18:46:13.706247-08:00","close_reason":"PR #1019 merged to main","created_by":"beads/crew/emma"} +{"id":"bd-28r5","title":"doctor: add deep integration check for pre-commit framework","description":"Add config parsing for .pre-commit-config.yaml to detect if bd hooks are configured. Pre-commit is popular enough to warrant full support like lefthook/husky.","status":"closed","priority":3,"issue_type":"feature","created_at":"2026-01-05T19:19:10.322442-08:00","updated_at":"2026-01-05T21:09:44.238926-08:00","closed_at":"2026-01-05T21:09:44.238926-08:00","close_reason":"Implemented - pre-commit framework now has deep integration checks","created_by":"beads/crew/giles"} {"id":"bd-28sq","title":"Fix JSON error output consistency across all commands","description":"## Problem\n\nWhen `--json` flag is specified, error output should return JSON format, not plain text. Currently only `bd show` uses `FatalErrorRespectJSON` - all other commands use direct `fmt.Fprintf(os.Stderr, ...)`.\n\n## Audit Findings (bd-au0.7)\n\n| File | stderr writes | Commands affected |\n|------|---------------|-------------------|\n| show.go | 51 | update, close, edit |\n| dep.go | 41 | dep add/remove/tree/cycles |\n| label.go | 19 | label add/remove/list |\n| comments.go | ~10 | comments add/list |\n| epic.go | ~5 | epic status/close-eligible |\n\n## Solution\n\nReplace `fmt.Fprintf(os.Stderr, ...) + os.Exit(1)` patterns with `FatalErrorRespectJSON()` in all commands that support `--json` flag.\n\n## Pattern\n\n```go\n// Before (inconsistent)\nfmt.Fprintf(os.Stderr, \"Error: %v\\n\", err)\nos.Exit(1)\n\n// After (respects --json)\nFatalErrorRespectJSON(\"%v\", err)\n```\n\n## Success Criteria\n\n- All commands return JSON errors when `--json` flag is set\n- Error format: `{\"error\": \"message\"}`\n- Exit code 1 preserved for errors","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-25T13:31:52.287048-08:00","updated_at":"2025-12-25T13:55:51.017355-08:00","closed_at":"2025-12-25T13:55:51.017355-08:00","dependencies":[{"issue_id":"bd-28sq","depends_on_id":"bd-au0.7","type":"discovered-from","created_at":"2025-12-25T13:32:18.23319-08:00","created_by":"daemon"}]} {"id":"bd-28sq.1","title":"Fix JSON errors in show.go (update/close/edit commands)","description":"Replace ~51 direct stderr writes with FatalErrorRespectJSON() in show.go.\n\nCommands affected:\n- updateCmd (~10 error handlers)\n- closeCmd (~15 error handlers) \n- editCmd (~10 error handlers)\n- showCmd (already uses FatalErrorRespectJSON in some places)\n\nKey error paths:\n- ID resolution errors (lines 565, 570, 579)\n- Validation errors (lines 474, 515, 524, 545)\n- RPC/daemon errors (line 639+)\n- Store operation errors","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T13:32:06.867368-08:00","updated_at":"2025-12-25T13:40:38.388723-08:00","closed_at":"2025-12-25T13:40:38.388723-08:00","dependencies":[{"issue_id":"bd-28sq.1","depends_on_id":"bd-28sq","type":"parent-child","created_at":"2025-12-25T13:32:06.867875-08:00","created_by":"daemon"}]} {"id":"bd-28sq.2","title":"Fix JSON errors in dep.go (dependency commands)","description":"Replace ~41 direct stderr writes with FatalErrorRespectJSON() in dep.go.\n\nCommands affected:\n- depAddCmd\n- depRemoveCmd\n- depTreeCmd\n- depCyclesCmd\n\nKey error paths:\n- ID resolution errors\n- Cycle detection errors\n- External reference validation","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T13:32:07.823549-08:00","updated_at":"2025-12-25T13:51:23.552241-08:00","closed_at":"2025-12-25T13:51:23.552241-08:00","dependencies":[{"issue_id":"bd-28sq.2","depends_on_id":"bd-28sq","type":"parent-child","created_at":"2025-12-25T13:32:07.826881-08:00","created_by":"daemon"}]} {"id":"bd-28sq.3","title":"Fix JSON errors in label.go (label commands)","description":"Replace ~19 direct stderr writes with FatalErrorRespectJSON() in label.go.\n\nCommands affected:\n- labelAddCmd\n- labelRemoveCmd\n- labelListCmd\n- labelListAllCmd","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T13:32:08.7273-08:00","updated_at":"2025-12-25T13:52:50.010494-08:00","closed_at":"2025-12-25T13:52:50.010494-08:00","dependencies":[{"issue_id":"bd-28sq.3","depends_on_id":"bd-28sq","type":"parent-child","created_at":"2025-12-25T13:32:08.72898-08:00","created_by":"daemon"}]} {"id":"bd-28sq.4","title":"Fix JSON errors in comments.go","description":"Replace direct stderr writes with FatalErrorRespectJSON() in comments.go.\n\nCommands affected:\n- commentsCmd (list)\n- commentsAddCmd","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-25T13:32:09.696723-08:00","updated_at":"2025-12-25T13:54:19.640013-08:00","closed_at":"2025-12-25T13:54:19.640013-08:00","dependencies":[{"issue_id":"bd-28sq.4","depends_on_id":"bd-28sq","type":"parent-child","created_at":"2025-12-25T13:32:09.698366-08:00","created_by":"daemon"}]} {"id":"bd-28sq.5","title":"Fix JSON errors in epic.go","description":"Replace direct stderr writes with FatalErrorRespectJSON() in epic.go.\n\nCommands affected:\n- epicStatusCmd\n- epicCloseEligibleCmd","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-25T13:32:11.12219-08:00","updated_at":"2025-12-25T13:55:39.738404-08:00","closed_at":"2025-12-25T13:55:39.738404-08:00","dependencies":[{"issue_id":"bd-28sq.5","depends_on_id":"bd-28sq","type":"parent-child","created_at":"2025-12-25T13:32:11.124147-08:00","created_by":"daemon"}]} -{"id":"bd-28x8o","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T03:29:48.943449-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-13T03:29:49.010362-08:00","closed_at":"2026-01-13T03:29:49.010362-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-28x8o","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T03:29:48.943449-08:00","updated_at":"2026-01-13T03:29:49.010362-08:00","closed_at":"2026-01-13T03:29:49.010362-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} {"id":"bd-2997","title":"bd-hv01: No snapshot versioning or timestamps causes stale data usage","description":"Problem: If sync is interrupted (crash, kill -9, power loss), stale snapshots persist indefinitely. Next sync uses stale data leading to incorrect deletions.\n\nFix: Add metadata to snapshots with timestamp, version, and commit SHA. Validate snapshots are recent (\u003c 1 hour old), from compatible version, and from expected git commit.\n\nFiles: cmd/bd/deletion_tracking.go (all snapshot functions)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-06T18:16:21.816748-08:00","updated_at":"2025-11-06T19:34:51.677442-08:00","closed_at":"2025-11-06T19:34:51.677442-08:00","dependencies":[{"issue_id":"bd-2997","depends_on_id":"bd-rbxi","type":"parent-child","created_at":"2025-11-06T18:19:14.968471-08:00","created_by":"daemon"}]} {"id":"bd-29c128e8","title":"Update AGENTS.md with event-driven mode","description":"Document BEADS_DAEMON_MODE env var. Explain opt-in during Phase 1. Add troubleshooting for watcher failures.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-28T16:20:02.433145-07:00","updated_at":"2025-12-16T01:00:47.312932-08:00","closed_at":"2025-10-29T15:53:24.019613-07:00"} {"id":"bd-29fb","title":"Implement bd close --continue flag","description":"Auto-advance to next step in molecule when closing an issue. Referenced by gt-um6q, gt-lz13. Needed for molecule navigation workflow.","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-12-23T00:17:55.032875-08:00","updated_at":"2025-12-23T01:26:47.255313-08:00","closed_at":"2025-12-23T01:26:47.255313-08:00"} -{"id":"bd-2a0fn","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:14:20.824431-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T02:14:20.869986-08:00","closed_at":"2026-01-12T02:14:20.869986-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-2a0fn","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T02:14:20.824431-08:00","updated_at":"2026-01-12T02:14:20.869986-08:00","closed_at":"2026-01-12T02:14:20.869986-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-2b34","title":"Refactor cmd/bd/daemon.go for testability and maintainability","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-10-31T22:28:19.689943-07:00","updated_at":"2025-11-01T19:20:28.102841-07:00","closed_at":"2025-11-01T19:20:28.102847-07:00"} {"id":"bd-2b34.1","title":"Extract daemon logger functions to daemon_logger.go","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-31T22:28:42.343617-07:00","updated_at":"2025-11-01T20:31:54.434039-07:00","closed_at":"2025-11-01T20:31:54.434039-07:00"} {"id":"bd-2b34.2","title":"Extract daemon server functions to daemon_server.go","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-31T22:28:42.345639-07:00","updated_at":"2025-11-01T21:02:58.338168-07:00","closed_at":"2025-11-01T21:02:58.338168-07:00"} @@ -187,79 +187,79 @@ {"id":"bd-2b34.6","title":"Add tests for daemon lifecycle module","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-31T22:28:42.359587-07:00","updated_at":"2025-11-01T21:22:39.009259-07:00","closed_at":"2025-11-01T21:22:39.009259-07:00"} {"id":"bd-2b34.7","title":"Add tests for daemon config module","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-31T22:28:42.373684-07:00","updated_at":"2025-11-01T21:21:42.431252-07:00","closed_at":"2025-11-01T21:21:42.431252-07:00"} {"id":"bd-2b34.8","title":"Extract daemon lifecycle functions to daemon_lifecycle.go","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-31T22:28:42.382892-07:00","updated_at":"2025-11-01T21:02:58.350055-07:00","closed_at":"2025-11-01T21:02:58.350055-07:00"} -{"id":"bd-2be4l","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T19:20:03.002344-08:00","created_by":"beads/crew/giles","updated_at":"2026-01-07T19:20:03.041926-08:00","closed_at":"2026-01-07T19:20:03.041926-08:00","close_reason":"auto-closed session event"} -{"id":"bd-2c2su","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T22:57:45.450018-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T22:57:45.514197-08:00","closed_at":"2026-01-12T22:57:45.514197-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-2be4l","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T19:20:03.002344-08:00","updated_at":"2026-01-07T19:20:03.041926-08:00","closed_at":"2026-01-07T19:20:03.041926-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/giles"} +{"id":"bd-2c2su","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T22:57:45.450018-08:00","updated_at":"2026-01-12T22:57:45.514197-08:00","closed_at":"2026-01-12T22:57:45.514197-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-2c5a","title":"Investigate why test issues persist in database","description":"Test issues (bd-0do3, bd-cjxp, bd-phr2, etc.) keep appearing in ready/list output, cluttering real work. These appear to be leftover test data from test runs.\n\nNeed to investigate:\n1. Why are test issues not being cleaned up after tests?\n2. Are tests creating issues in the main database instead of test databases?\n3. Should we add better test isolation or cleanup hooks?\n4. Can we add a label/prefix to distinguish test issues from real issues?\n\nThese test issues have characteristics:\n- Empty descriptions\n- Generic titles like \"Test issue 0\", \"Bug P0\", \"Issue to reopen with reason\"\n- Created around 2025-11-07 19:00-19:07\n- Some assigned to test users like \"alice\", \"bob\", \"testuser\"","notes":"## Root Cause Analysis\n\n**Problem**: Python MCP integration tests created test issues in production `.beads/beads.db` instead of isolated test databases.\n\n**Evidence**:\n- 29 test issues created on Nov 7, 2025 at 19:00-19:07\n- Patterns: \"Bug P0\", \"Test issue X\", assignees \"alice\"/\"bob\"/\"testuser\"\n- Git commit 0e8936b shows test issues committed to .beads/beads.jsonl\n- Tests were being fixed for workspace isolation around the same time\n\n**Why It Happened**:\n1. Before commit 0e8936b, `test_client_lazy_initialization()` didn't set `BEADS_WORKING_DIR`\n2. Tests fell back to discovering `.beads/` in the project root directory\n3. Auto-sync committed test issues to production database\n\n**Resolution**:\n1. ✅ Closed 29 test pollution issues (bd-0do3, bd-cjxp, etc.)\n2. ✅ Added `failIfProductionDatabase()` guard in Go test helpers\n3. ✅ Added production pollution checks in RPC test setup\n4. ✅ Created `conftest.py` with pytest safety checks for Python tests\n5. ✅ Added `BEADS_TEST_MODE` env var to mark test execution\n6. ✅ Tests now fail fast if they detect production database usage\n\n**Prevention**:\n- All test helper functions now verify database paths are in temp directories\n- Python tests fail immediately if BEADS_DB points to production\n- BEADS_TEST_MODE flag helps identify test vs production execution\n- Clear error messages guide developers to use proper test isolation\n\n**Files Modified**:\n- cmd/bd/test_helpers_test.go - Added failIfProductionDatabase()\n- internal/rpc/rpc_test.go - Added temp directory verification\n- integrations/beads-mcp/tests/conftest.py - New file with pytest safeguards","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-07T21:31:34.845887-08:00","updated_at":"2025-11-07T21:57:30.892086-08:00","closed_at":"2025-11-07T21:57:30.892086-08:00"} -{"id":"bd-2c64","title":"Merge: ruby-1767142029451","description":"branch: polecat/ruby-1767142029451\ntarget: main\nsource_issue: ruby-1767142029451\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T17:00:14.136568-08:00","created_by":"beads/polecats/ruby","updated_at":"2025-12-30T18:12:30.96303-08:00","closed_at":"2025-12-30T18:11:07.842778-08:00"} +{"id":"bd-2c64","title":"Merge: ruby-1767142029451","description":"branch: polecat/ruby-1767142029451\ntarget: main\nsource_issue: ruby-1767142029451\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T17:00:14.136568-08:00","updated_at":"2025-12-30T18:12:30.96303-08:00","closed_at":"2025-12-30T18:11:07.842778-08:00","created_by":"beads/polecats/ruby"} {"id":"bd-2cvu","title":"Update AGENTS.md with Agent Mail workflow","description":"Update agent workflow section to include Agent Mail coordination as optional step.\n\nAcceptance Criteria:\n- Add Agent Mail to recommended workflow\n- Show both with/without examples\n- Update \"Multi-Agent Patterns\" section\n- Cross-reference to AGENT_MAIL.md\n\nFile: AGENTS.md (lines 468-475)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-07T22:42:51.295729-08:00","updated_at":"2025-11-08T00:52:34.288915-08:00","closed_at":"2025-11-08T00:52:34.288915-08:00","dependencies":[{"issue_id":"bd-2cvu","depends_on_id":"bd-xzrv","type":"blocks","created_at":"2025-11-07T23:04:09.773656-08:00","created_by":"daemon"}]} -{"id":"bd-2cwz0","title":"Review PR #16199: Update documentation link","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #16199 (anthropics/claude-code)\n\nPR: https://github.com/anthropics/claude-code/pull/16199\nAuthor: tnspacetime\n\nFix doc link in README.\n- gh pr view 16199 --repo anthropics/claude-code\n- gh pr diff 16199 --repo anthropics/claude-code\n- If good: gh pr merge 16199 --repo anthropics/claude-code --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/giles","created_at":"2026-01-08T14:20:06.638366-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:29:35.599125-08:00","closed_at":"2026-01-08T14:29:35.599125-08:00","close_reason":"Wrong repo - these were for anthropics/claude-code, not steveyegge/beads"} +{"id":"bd-2cwz0","title":"Review PR #16199: Update documentation link","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #16199 (anthropics/claude-code)\n\nPR: https://github.com/anthropics/claude-code/pull/16199\nAuthor: tnspacetime\n\nFix doc link in README.\n- gh pr view 16199 --repo anthropics/claude-code\n- gh pr diff 16199 --repo anthropics/claude-code\n- If good: gh pr merge 16199 --repo anthropics/claude-code --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-08T14:20:06.638366-08:00","updated_at":"2026-01-08T14:29:35.599125-08:00","closed_at":"2026-01-08T14:29:35.599125-08:00","close_reason":"Wrong repo - these were for anthropics/claude-code, not steveyegge/beads","created_by":"beads/crew/emma"} {"id":"bd-2d5r","title":"Fix silent error handling in RPC response writing","description":"Marshal and write errors silently ignored in writeResponse, can send partial JSON and hang clients.\n\nLocation: internal/rpc/server_lifecycle_conn.go:228-232\n\nProblem:\n- json.Marshal error ignored - cyclic reference sends corrupt JSON\n- Write error ignored - connection closed, no indication to caller \n- WriteByte error ignored - client hangs waiting for newline\n- Flush error ignored - partial data buffered\n\nCurrent code:\nfunc (s *Server) writeResponse(writer *bufio.Writer, resp Response) {\n data, _ := json.Marshal(resp) // Ignored!\n _, _ = writer.Write(data) // Ignored!\n _ = writer.WriteByte('\\n') // Ignored!\n _ = writer.Flush() // Ignored!\n}\n\nSolution: Return errors, handle in caller, close connection on error\n\nImpact: Client hangs waiting for response; corrupt JSON sent\n\nEffort: 1 hour","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-16T14:51:47.002242-08:00","updated_at":"2025-11-16T15:04:00.481507-08:00","closed_at":"2025-11-16T15:04:00.481507-08:00"} -{"id":"bd-2dm49","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:42:57.665686-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-07T17:42:57.71078-08:00","closed_at":"2026-01-07T17:42:57.71078-08:00","close_reason":"auto-closed session event"} -{"id":"bd-2dwo","title":"Remove deprecated daemon logger function","description":"In cmd/bd/daemon_logger.go:131, there's a TODO to remove a deprecated function once all callers are updated to use the new signature. Need to audit callers and clean up.\n\nFile: cmd/bd/daemon_logger.go:131","status":"closed","priority":4,"issue_type":"chore","created_at":"2025-12-28T16:32:39.513622-08:00","created_by":"stevey","updated_at":"2025-12-30T15:44:43.365401-08:00","closed_at":"2025-12-30T00:28:06.54315-08:00","close_reason":"Merged via refinery"} +{"id":"bd-2dm49","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:42:57.665686-08:00","updated_at":"2026-01-07T17:42:57.71078-08:00","closed_at":"2026-01-07T17:42:57.71078-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/grip"} +{"id":"bd-2dwo","title":"Remove deprecated daemon logger function","description":"In cmd/bd/daemon_logger.go:131, there's a TODO to remove a deprecated function once all callers are updated to use the new signature. Need to audit callers and clean up.\n\nFile: cmd/bd/daemon_logger.go:131","status":"closed","priority":4,"issue_type":"chore","created_at":"2025-12-28T16:32:39.513622-08:00","updated_at":"2025-12-30T15:44:43.365401-08:00","closed_at":"2025-12-30T00:28:06.54315-08:00","close_reason":"Merged via refinery","created_by":"stevey"} {"id":"bd-2e80","title":"Document shared memory test isolation pattern in test_helpers.go","description":"Tests were failing because :memory: creates a shared database across all tests. The fix is to use \"file::memory:?mode=memory\u0026cache=private\" for test isolation.\n\nShould document this pattern in test_helpers.go and potentially update newTestStore to use private memory by default.","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-11-01T22:40:58.993496-07:00","updated_at":"2025-11-02T16:40:27.354652-08:00","closed_at":"2025-11-02T16:40:27.354654-08:00"} {"id":"bd-2e94","title":"Support --parent flag in daemon mode","description":"Added support for hierarchical child issue creation using --parent flag in daemon mode. Previously only worked in direct mode.","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-05T13:55:47.415771-08:00","updated_at":"2025-11-05T13:55:53.252342-08:00","closed_at":"2025-11-05T13:55:53.252342-08:00"} {"id":"bd-2em","title":"Expand checkHooksQuick to verify all hook versions","description":"Currently checkHooksQuick only checks post-merge hook version. Should also check pre-commit, pre-push, and post-checkout for completeness. Keep it lightweight but catch more outdated hooks.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-25T19:27:47.432243-08:00","updated_at":"2025-11-25T19:50:21.378464-08:00","closed_at":"2025-11-25T19:50:21.378464-08:00"} -{"id":"bd-2eoqm","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:24:33.405681-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:24:33.473536-08:00","closed_at":"2026-01-11T19:24:33.473536-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-2eoqm","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:24:33.405681-08:00","updated_at":"2026-01-11T19:24:33.473536-08:00","closed_at":"2026-01-11T19:24:33.473536-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-2ep8","title":"Update CHANGELOG.md with release notes","description":"Add meaningful release notes to CHANGELOG.md describing what changed in 0.30.7","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T22:56:48.649053-08:00","updated_at":"2025-12-19T22:57:31.69559-08:00","closed_at":"2025-12-19T22:57:31.69559-08:00","dependencies":[{"issue_id":"bd-2ep8","depends_on_id":"bd-8pyn","type":"parent-child","created_at":"2025-12-19T22:56:48.650816-08:00","created_by":"stevey"},{"issue_id":"bd-2ep8","depends_on_id":"bd-rupw","type":"blocks","created_at":"2025-12-19T22:56:48.651136-08:00","created_by":"stevey"}]} -{"id":"bd-2f0f","title":"Merge: obsidian-mjvtl03h","description":"branch: polecat/obsidian-mjvtl03h\ntarget: main\nsource_issue: obsidian-mjvtl03h\nrig: beads\nagent_bead: gt-beads-polecat-obsidian","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-01T11:12:56.221323-08:00","created_by":"beads/polecats/obsidian","updated_at":"2026-01-01T15:48:48.262491-08:00","closed_at":"2026-01-01T15:48:48.262491-08:00","close_reason":"Branch already merged and deleted by previous refinery session"} +{"id":"bd-2f0f","title":"Merge: obsidian-mjvtl03h","description":"branch: polecat/obsidian-mjvtl03h\ntarget: main\nsource_issue: obsidian-mjvtl03h\nrig: beads\nagent_bead: gt-beads-polecat-obsidian","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-01T11:12:56.221323-08:00","updated_at":"2026-01-01T15:48:48.262491-08:00","closed_at":"2026-01-01T15:48:48.262491-08:00","close_reason":"Branch already merged and deleted by previous refinery session","created_by":"beads/polecats/obsidian"} {"id":"bd-2f388ca7","title":"Fix TestTwoCloneCollision timeout","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-10-28T14:11:25.219607-07:00","updated_at":"2025-10-30T17:12:58.217635-07:00","closed_at":"2025-10-28T16:12:26.286611-07:00"} -{"id":"bd-2fs7","title":"Move pour/ephemeral under bd mol subcommand","description":"For consistency, bd pour and bd ephemeral should become bd mol pour and bd mol ephemeral:\n\nCurrent:\n bd mol list # Available protos\n bd mol show \u003cid\u003e # Proto details\n bd pour \u003cproto\u003e # Create mol ← sticks out\n bd ephemeral \u003cproto\u003e # Create ephemeral ← sticks out \n bd mol bond \u003cproto\u003e \u003cparent\u003e # Attach to existing mol\n bd mol squash \u003cid\u003e # Condense to digest\n bd mol burn \u003cid\u003e # Discard\n\nProposed:\n bd mol list\n bd mol show \u003cid\u003e\n bd mol pour \u003cproto\u003e # Moved under mol\n bd mol ephemeral \u003cproto\u003e # Moved under mol\n bd mol bond \u003cproto\u003e \u003cparent\u003e\n bd mol squash \u003cid\u003e\n bd mol burn \u003cid\u003e\n\nAll molecule operations should be under bd mol for discoverability and consistency.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-26T23:36:23.945902-08:00","created_by":"stevey","updated_at":"2025-12-26T23:41:01.096333-08:00","closed_at":"2025-12-26T23:41:01.096333-08:00"} -{"id":"bd-2g79w","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T00:14:48.858858-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T00:14:48.893797-08:00","closed_at":"2026-01-11T00:14:48.893797-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-2gkg","title":"Fix path casing mismatch on macOS causing sync failures (GH#880)","description":"bd sync fails with exit status 128 when daemon started from terminal with different path casing than git worktree registry. macOS case-insensitive filesystem causes mismatch. Fix: normalize paths using realpath or canonical lowercase when daemon starts.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-04T16:09:19.727279-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-04T16:11:30.968102-08:00","closed_at":"2026-01-04T16:11:30.968102-08:00","close_reason":"Fixed: use utils.PathsEqual() for case-insensitive path comparison in worktree validation"} -{"id":"bd-2h1r5","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T14:53:39.3885-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T14:53:39.464195-08:00","closed_at":"2026-01-13T14:53:39.464195-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-2hg17","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:47:51.141032-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T02:47:51.203589-08:00","closed_at":"2026-01-12T02:47:51.203589-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-2hnb4","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T08:41:55.248729-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T08:41:55.319098-08:00","closed_at":"2026-01-11T08:41:55.319098-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-2fs7","title":"Move pour/ephemeral under bd mol subcommand","description":"For consistency, bd pour and bd ephemeral should become bd mol pour and bd mol ephemeral:\n\nCurrent:\n bd mol list # Available protos\n bd mol show \u003cid\u003e # Proto details\n bd pour \u003cproto\u003e # Create mol ← sticks out\n bd ephemeral \u003cproto\u003e # Create ephemeral ← sticks out \n bd mol bond \u003cproto\u003e \u003cparent\u003e # Attach to existing mol\n bd mol squash \u003cid\u003e # Condense to digest\n bd mol burn \u003cid\u003e # Discard\n\nProposed:\n bd mol list\n bd mol show \u003cid\u003e\n bd mol pour \u003cproto\u003e # Moved under mol\n bd mol ephemeral \u003cproto\u003e # Moved under mol\n bd mol bond \u003cproto\u003e \u003cparent\u003e\n bd mol squash \u003cid\u003e\n bd mol burn \u003cid\u003e\n\nAll molecule operations should be under bd mol for discoverability and consistency.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-26T23:36:23.945902-08:00","updated_at":"2025-12-26T23:41:01.096333-08:00","closed_at":"2025-12-26T23:41:01.096333-08:00","created_by":"stevey"} +{"id":"bd-2g79w","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T00:14:48.858858-08:00","updated_at":"2026-01-11T00:14:48.893797-08:00","closed_at":"2026-01-11T00:14:48.893797-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-2gkg","title":"Fix path casing mismatch on macOS causing sync failures (GH#880)","description":"bd sync fails with exit status 128 when daemon started from terminal with different path casing than git worktree registry. macOS case-insensitive filesystem causes mismatch. Fix: normalize paths using realpath or canonical lowercase when daemon starts.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-04T16:09:19.727279-08:00","updated_at":"2026-01-04T16:11:30.968102-08:00","closed_at":"2026-01-04T16:11:30.968102-08:00","close_reason":"Fixed: use utils.PathsEqual() for case-insensitive path comparison in worktree validation","created_by":"beads/crew/emma"} +{"id":"bd-2h1r5","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T14:53:39.3885-08:00","updated_at":"2026-01-13T14:53:39.464195-08:00","closed_at":"2026-01-13T14:53:39.464195-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-2hg17","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T02:47:51.141032-08:00","updated_at":"2026-01-12T02:47:51.203589-08:00","closed_at":"2026-01-12T02:47:51.203589-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-2hnb4","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T08:41:55.248729-08:00","updated_at":"2026-01-11T08:41:55.319098-08:00","closed_at":"2026-01-11T08:41:55.319098-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-2ifg","title":"bd-hv01: Silent partial deletion failures cause DB inconsistency","description":"Problem: deletion_tracking.go:76-77 logs deletion errors as warnings but continues. If deletion fails midway (database locked, disk full), some issues delete but others don't. System thinks all deletions succeeded.\n\nImpact: Database diverges from JSONL, silent corruption, issues may resurrect on next sync.\n\nFix: Collect errors and fail the operation:\nvar deletionErrors []error\nfor _, id := range acceptedDeletions {\n if err := d.DeleteIssue(ctx, id); err != nil {\n deletionErrors = append(deletionErrors, fmt.Errorf(\"issue %s: %w\", id, err))\n }\n}\nif len(deletionErrors) \u003e 0 {\n return false, fmt.Errorf(\"deletion failures: %v\", deletionErrors)\n}\n\nFiles: cmd/bd/deletion_tracking.go:73-82","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-06T18:16:19.465137-08:00","updated_at":"2025-11-06T18:46:55.901973-08:00","closed_at":"2025-11-06T18:46:55.901973-08:00","dependencies":[{"issue_id":"bd-2ifg","depends_on_id":"bd-rbxi","type":"parent-child","created_at":"2025-11-06T18:19:14.833477-08:00","created_by":"daemon"}]} {"id":"bd-2k5f","title":"GH#510: Document sync-branch worktree behavior","description":"User confused about beads creating worktree on main branch. Need docs explaining sync-branch worktree mechanism. See: https://github.com/steveyegge/beads/issues/510","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-14T16:31:58.800071-08:00","updated_at":"2025-12-16T01:27:29.057639-08:00","closed_at":"2025-12-16T01:27:29.057639-08:00"} {"id":"bd-2kf8","title":"Document CompactedResult response format in CONTEXT_ENGINEERING.md","description":"The CompactedResult is a new response format that MCP clients need to understand, but it's not documented in CONTEXT_ENGINEERING.md.\n\n## What's Missing\n- Example CompactedResult JSON response\n- How to detect if a result is compacted\n- How to request full results (disable compaction or increase limit)\n- Guidance on handling both list[IssueMinimal] and CompactedResult return types\n- Migration guide for clients expecting list[Issue] from ready() and list()\n\n## Documentation Gaps\nCurrently CONTEXT_ENGINEERING.md explains the optimization strategy but doesn't show:\n1. Sample CompactedResult response\n2. Client-side code examples for handling compaction\n3. When compaction is triggered (\u003e20 results)\n4. How to get all results if needed\n\n## Suggested Additions\nAdd new section \\\"Handling Large Result Sets\\\" with:\n- CompactedResult schema documentation\n- Python client example for handling both response types\n- Guidance on re-issuing queries with better filters","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-14T14:24:45.216616-08:00","updated_at":"2025-12-14T14:37:15.205803-08:00","closed_at":"2025-12-14T14:37:15.205803-08:00","dependencies":[{"issue_id":"bd-2kf8","depends_on_id":"bd-otf4","type":"discovered-from","created_at":"2025-12-14T14:24:45.217962-08:00","created_by":"stevey"}]} {"id":"bd-2ku7","title":"Test integration issue","description":"This is a real integration test","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-07T19:07:11.528577-08:00","updated_at":"2025-11-07T22:07:17.343154-08:00","closed_at":"2025-11-07T21:55:09.426381-08:00"} {"id":"bd-2l03","title":"Implement await type handlers (gh:run, gh:pr, timer, human, mail)","description":"Implement condition checking for each await type.\n\n## Handlers Needed\n- gh:run:\u003cid\u003e - Check GitHub Actions run status via gh CLI\n- gh:pr:\u003cid\u003e - Check PR merged/closed status via gh CLI \n- timer:\u003cduration\u003e - Simple elapsed time check\n- human:\u003cprompt\u003e - Check for human approval (via mail?)\n- mail:\u003cpattern\u003e - Check for mail matching pattern\n\n## Implementation Location\nThis is Deacon logic, so likely in Gas Town (gt) not beads.\n\n## Interface\n```go\ntype AwaitHandler interface {\n Check(awaitID string) (completed bool, result string, err error)\n}\n```","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-23T11:44:38.492837-08:00","updated_at":"2025-12-23T12:19:44.283318-08:00","closed_at":"2025-12-23T12:19:44.283318-08:00","dependencies":[{"issue_id":"bd-2l03","depends_on_id":"bd-udsi","type":"parent-child","created_at":"2025-12-23T11:44:52.990746-08:00","created_by":"daemon"},{"issue_id":"bd-2l03","depends_on_id":"bd-is6m","type":"blocks","created_at":"2025-12-23T11:44:56.510792-08:00","created_by":"daemon"}]} -{"id":"bd-2lkh","title":"Merge: obsidian-1767138468820","description":"branch: polecat/obsidian-1767138468820\ntarget: main\nsource_issue: obsidian-1767138468820\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T16:14:15.963227-08:00","created_by":"beads/polecats/obsidian","updated_at":"2025-12-30T18:12:30.983096-08:00","closed_at":"2025-12-30T18:11:07.923485-08:00"} -{"id":"bd-2nj7m","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:29:48.411066-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T13:29:48.446068-08:00","closed_at":"2026-01-09T13:29:48.446068-08:00","close_reason":"auto-closed session event"} -{"id":"bd-2nl","title":"Refinery Patrol","description":"Merge queue processor patrol loop with verification gates.","status":"tombstone","priority":2,"issue_type":"molecule","created_at":"2025-12-26T21:20:47.681814-08:00","created_by":"deacon","updated_at":"2025-12-27T00:10:54.17463-08:00","deleted_at":"2025-12-27T00:10:54.17463-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"molecule"} +{"id":"bd-2lkh","title":"Merge: obsidian-1767138468820","description":"branch: polecat/obsidian-1767138468820\ntarget: main\nsource_issue: obsidian-1767138468820\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T16:14:15.963227-08:00","updated_at":"2025-12-30T18:12:30.983096-08:00","closed_at":"2025-12-30T18:11:07.923485-08:00","created_by":"beads/polecats/obsidian"} +{"id":"bd-2nj7m","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:29:48.411066-08:00","updated_at":"2026-01-09T13:29:48.446068-08:00","closed_at":"2026-01-09T13:29:48.446068-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-2nl","title":"Refinery Patrol","description":"Merge queue processor patrol loop with verification gates.","status":"tombstone","priority":2,"issue_type":"molecule","created_at":"2025-12-26T21:20:47.681814-08:00","updated_at":"2025-12-27T00:10:54.17463-08:00","created_by":"deacon","deleted_at":"2025-12-27T00:10:54.17463-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"molecule"} {"id":"bd-2o2","title":"Add cancellation and timeout tests","description":"Add comprehensive tests for context cancellation and timeout behavior.\n\n## Context\nPart of context propagation work. Validates that bd-rtp and bd-yb8 work correctly.\n\n## Test Coverage Needed\n\n### 1. Cancellation Tests\n- [ ] Import operation cancelled mid-stream\n- [ ] Export operation cancelled mid-stream \n- [ ] Database query cancelled during long operation\n- [ ] No corruption after cancellation\n- [ ] Proper cleanup (defers execute, connections closed)\n\n### 2. Timeout Tests\n- [ ] Operations respect context deadlines\n- [ ] Appropriate error messages on timeout\n- [ ] State remains consistent after timeout\n\n### 3. Signal Handling Tests\n- [ ] SIGINT (Ctrl+C) triggers cancellation\n- [ ] SIGTERM triggers graceful shutdown\n- [ ] Multiple signals handled correctly\n\n## Implementation Approach\n```go\nfunc TestImportCancellation(t *testing.T) {\n ctx, cancel := context.WithCancel(context.Background())\n \n // Start import in goroutine\n go func() {\n err := runImport(ctx, largeFile)\n assert.Error(err, context.Canceled)\n }()\n \n // Cancel after short delay\n time.Sleep(100 * time.Millisecond)\n cancel()\n \n // Verify database integrity\n assertDatabaseConsistent(t, store)\n}\n```\n\n## Files to Create/Update\n- cmd/bd/import_test.go - cancellation tests\n- cmd/bd/export_test.go - cancellation tests\n- internal/storage/sqlite/*_test.go - context timeout tests\n\n## Acceptance Criteria\n- [ ] All critical operations have cancellation tests\n- [ ] Tests verify database integrity after cancellation\n- [ ] Signal handling tested (if feasible)\n- [ ] Test coverage \u003e80% for context paths","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-20T21:27:22.854636-05:00","updated_at":"2025-11-20T21:40:25.882758-05:00","closed_at":"2025-11-20T21:40:25.882758-05:00","dependencies":[{"issue_id":"bd-2o2","depends_on_id":"bd-yb8","type":"blocks","created_at":"2025-11-20T21:27:22.855574-05:00","created_by":"daemon"}]} -{"id":"bd-2oh5m","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T09:49:05.74926-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T09:49:05.795759-08:00","closed_at":"2026-01-11T09:49:05.795759-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-2oh5m","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T09:49:05.74926-08:00","updated_at":"2026-01-11T09:49:05.795759-08:00","closed_at":"2026-01-11T09:49:05.795759-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-2oo","title":"Edge Schema Consolidation: Unify all edges in dependencies table","description":"Consolidate all edge types into the dependency table per decision 004.\n\n## Changes\n- Add metadata column to dependencies table\n- Add thread_id column for conversation grouping\n- Remove redundant Issue fields: replies_to, relates_to, duplicate_of, superseded_by\n- Update all code to use dependencies API\n- Migration script for existing data\n- JSONL format change (breaking)\n\nReference: ~/gt/hop/decisions/004-edge-schema-consolidation.md","status":"closed","priority":0,"issue_type":"epic","created_at":"2025-12-18T02:01:48.785558-08:00","updated_at":"2025-12-18T02:49:10.61237-08:00","closed_at":"2025-12-18T02:49:10.61237-08:00"} {"id":"bd-2oo.1","title":"Add metadata and thread_id columns to dependencies table","description":"Schema changes:\n- ALTER TABLE dependencies ADD COLUMN metadata TEXT DEFAULT '{}'\n- ALTER TABLE dependencies ADD COLUMN thread_id TEXT DEFAULT ''\n- CREATE INDEX idx_dependencies_thread ON dependencies(thread_id) WHERE thread_id != ''","status":"closed","priority":0,"issue_type":"task","created_at":"2025-12-18T02:02:00.468223-08:00","updated_at":"2025-12-18T02:49:10.575133-08:00","closed_at":"2025-12-18T02:49:10.575133-08:00","dependencies":[{"issue_id":"bd-2oo.1","depends_on_id":"bd-2oo","type":"parent-child","created_at":"2025-12-18T02:02:00.470012-08:00","created_by":"daemon"}]} {"id":"bd-2oo.2","title":"Remove redundant edge fields from Issue struct","description":"Remove from Issue struct:\n- RepliesTo -\u003e dependency with type replies-to\n- RelatesTo -\u003e dependencies with type relates-to \n- DuplicateOf -\u003e dependency with type duplicates\n- SupersededBy -\u003e dependency with type supersedes\n\nKeep: Sender, Ephemeral (these are attributes, not relationships)","status":"closed","priority":0,"issue_type":"task","created_at":"2025-12-18T02:02:00.891206-08:00","updated_at":"2025-12-18T02:49:10.584381-08:00","closed_at":"2025-12-18T02:49:10.584381-08:00","dependencies":[{"issue_id":"bd-2oo.2","depends_on_id":"bd-2oo","type":"parent-child","created_at":"2025-12-18T02:02:00.891655-08:00","created_by":"daemon"}]} {"id":"bd-2oo.3","title":"Update all code to use dependencies API for edges","description":"Find and update all code that reads/writes:\n- replies_to field -\u003e use dependency API\n- relates_to field -\u003e use dependency API\n- duplicate_of field -\u003e use dependency API\n- superseded_by field -\u003e use dependency API\n\nCommands affected: bd mail, bd relate, bd duplicate, bd supersede, bd show, etc.","status":"closed","priority":0,"issue_type":"task","created_at":"2025-12-18T02:02:01.317006-08:00","updated_at":"2025-12-18T02:49:10.59233-08:00","closed_at":"2025-12-18T02:49:10.59233-08:00","dependencies":[{"issue_id":"bd-2oo.3","depends_on_id":"bd-2oo","type":"parent-child","created_at":"2025-12-18T02:02:01.31856-08:00","created_by":"daemon"}]} {"id":"bd-2oo.4","title":"Create migration script for edge field to dependency conversion","description":"Migration must:\n1. Read existing JSONL with old fields\n2. Convert field values to dependency records\n3. Write updated JSONL without old fields\n4. Handle edge cases (missing refs, duplicates)\n\nRun via: bd migrate or automatic on bd prime","status":"closed","priority":0,"issue_type":"task","created_at":"2025-12-18T02:02:01.760277-08:00","updated_at":"2025-12-18T02:49:10.602446-08:00","closed_at":"2025-12-18T02:49:10.602446-08:00","dependencies":[{"issue_id":"bd-2oo.4","depends_on_id":"bd-2oo","type":"parent-child","created_at":"2025-12-18T02:02:01.760694-08:00","created_by":"daemon"}]} -{"id":"bd-2papc","title":"Add 'attests' edge type for skill attestations","description":"dispatched_by: beads/crew/emma\n\nAdd new DependencyType 'attests' for skill attestations. Enables: Entity X attests that Entity Y has skill Z at level N. Metadata captures skill, level, date. Foundation for skill portability.","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/dave","created_at":"2026-01-10T16:34:12.823164-08:00","created_by":"gastown/crew/max","updated_at":"2026-01-10T19:33:55.872975-08:00","closed_at":"2026-01-10T19:33:55.872975-08:00","close_reason":"Implemented attests edge type with AttestsMeta struct","dependencies":[{"issue_id":"bd-2papc","depends_on_id":"bd-imi7w","type":"parent-child","created_at":"2026-01-10T16:34:21.797147-08:00","created_by":"gastown/crew/max"}]} +{"id":"bd-2papc","title":"Add 'attests' edge type for skill attestations","description":"dispatched_by: beads/crew/emma\n\nAdd new DependencyType 'attests' for skill attestations. Enables: Entity X attests that Entity Y has skill Z at level N. Metadata captures skill, level, date. Foundation for skill portability.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T16:34:12.823164-08:00","updated_at":"2026-01-10T19:33:55.872975-08:00","closed_at":"2026-01-10T19:33:55.872975-08:00","close_reason":"Implemented attests edge type with AttestsMeta struct","created_by":"gastown/crew/max","dependencies":[{"issue_id":"bd-2papc","depends_on_id":"bd-imi7w","type":"parent-child","created_at":"2026-01-10T16:34:21.797147-08:00","created_by":"gastown/crew/max"}]} {"id":"bd-2q5zk","title":"Digest: mol-refinery-patrol","description":"Patrol cycle: queue empty, no branches processed","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T22:58:49.807812-08:00","updated_at":"2026-01-11T22:58:49.807812-08:00","closed_at":"2026-01-11T22:58:49.807755-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-2q6d","title":"Beads commands operate on stale database without warning","description":"All beads read operations should validate database is in sync with JSONL before proceeding.\n\n**Current Behavior:**\n- Commands can query/read from stale database\n- Only mutation operations (like 'bd sync') check if JSONL is newer\n- User gets incorrect results without realizing database is out of sync\n\n**Expected Behavior:**\n- All beads commands should have pre-flight check for database freshness\n- If JSONL is newer than database, refuse to operate with error: \"Database out of sync. Run 'bd import' first.\"\n- Same safety check that exists for 'bd sync' should apply to ALL operations\n\n**Impact:**\n- Users make decisions based on incomplete/outdated data\n- Silent failures lead to confusion (e.g., thinking issues don't exist when they do)\n- Similar to running git commands on stale repo without being warned to pull\n\n**Example:**\n- Searched for bd-g9eu issue file: not found\n- Issue exists in .beads/issues.jsonl (in git)\n- Database was stale, but no warning was given\n- Led to incorrect conclusion that issue was already closed/deleted","notes":"## Implementation Complete\n\n**Phase 1: Created staleness check (cmd/bd/staleness.go)**\n- ensureDatabaseFresh() function checks JSONL mtime vs last_import_time\n- Returns error with helpful message when database is stale\n- Auto-skips in daemon mode (daemon has auto-import)\n\n**Phase 2: Added to all read commands**\n- list, show, ready, status, stale, info, duplicates, validate\n- Check runs before database queries in direct mode\n- Daemon mode already protected via checkAndAutoImportIfStale()\n\n**Phase 3: Code Review Findings**\nSee follow-up issues:\n- bd-XXXX: Add warning when staleness check errors\n- bd-YYYY: Improve CheckStaleness error handling\n- bd-ZZZZ: Refactor redundant daemon checks (low priority)\n\n**Testing:**\n- Build successful: go build ./cmd/bd\n- Binary works: ./bd --version\n- Ready for manual testing\n\n**Next Steps:**\n1. Test with stale database scenario\n2. Implement review improvements\n3. Close issue when tests pass","status":"tombstone","priority":1,"issue_type":"bug","created_at":"2025-11-20T19:33:40.019297-05:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-2r1b","title":"fix: bd onboard hangs on Windows","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-13T18:08:26.673076-08:00","updated_at":"2025-12-13T18:08:32.309879-08:00","closed_at":"2025-12-13T18:08:32.309879-08:00"} {"id":"bd-2rfr","title":"GH#505: Add bd reset command to wipe database","description":"Users struggle to fully reset beads (local + remote). Need bd reset command with safety confirmation. Currently requires manual hook/dir removal. See: https://github.com/steveyegge/beads/issues/505","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-14T16:32:02.919494-08:00","updated_at":"2025-12-16T14:39:19.050872-08:00","closed_at":"2025-12-16T01:09:44.996918-08:00"} -{"id":"bd-2rkr","title":"Test coordinator display","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-28T22:00:44.894114-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-29T13:40:29.715146-08:00","closed_at":"2025-12-29T13:40:29.715146-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates"} -{"id":"bd-2s7j4","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:13:28.573592-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T20:13:28.639837-08:00","closed_at":"2026-01-11T20:13:28.639837-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-2ubv","title":"Code Review: Swarm commands consolidation","description":"Code review of bd swarm commands (validate, status, create) identified several improvements.\n\n**Summary:**\n- Duplicated child-fetching logic between commands\n- Missing duplicate swarm check in create\n- Missing swarm list command\n- Minor polish issues\n\nFiled after implementing bd-fa1q (swarm create).","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-28T21:38:36.61291-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T22:05:51.910899-08:00","closed_at":"2025-12-28T22:05:51.910899-08:00"} +{"id":"bd-2rkr","title":"Test coordinator display","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-28T22:00:44.894114-08:00","updated_at":"2025-12-29T13:40:29.715146-08:00","closed_at":"2025-12-29T13:40:29.715146-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates","created_by":"beads/crew/dave"} +{"id":"bd-2s7j4","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T20:13:28.573592-08:00","updated_at":"2026-01-11T20:13:28.639837-08:00","closed_at":"2026-01-11T20:13:28.639837-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-2ubv","title":"Code Review: Swarm commands consolidation","description":"Code review of bd swarm commands (validate, status, create) identified several improvements.\n\n**Summary:**\n- Duplicated child-fetching logic between commands\n- Missing duplicate swarm check in create\n- Missing swarm list command\n- Minor polish issues\n\nFiled after implementing bd-fa1q (swarm create).","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-28T21:38:36.61291-08:00","updated_at":"2025-12-28T22:05:51.910899-08:00","closed_at":"2025-12-28T22:05:51.910899-08:00","created_by":"beads/crew/dave"} {"id":"bd-2v0f","title":"Add gate issue type to beads","description":"Add 'gate' as a new issue type for async coordination.\n\n## Changes Needed\n- Add 'gate' to IssueType enum in internal/types/types.go\n- Update validation to accept gate type\n- Update CLI help text and completion\n\n## Gate Type Semantics\n- Gates are ephemeral (live in wisp storage)\n- Managed by Deacon patrol\n- Have special fields: await_type, await_id, timeout, waiters[]","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-23T11:44:31.331897-08:00","updated_at":"2025-12-23T11:47:06.287781-08:00","closed_at":"2025-12-23T11:47:06.287781-08:00","dependencies":[{"issue_id":"bd-2v0f","depends_on_id":"bd-udsi","type":"parent-child","created_at":"2025-12-23T11:44:52.659005-08:00","created_by":"daemon"}]} {"id":"bd-2vh3","title":"Ephemeral issue cleanup and history compaction","description":"## Problem\n\nBeads history grows without bound. Every message, handoff, work assignment\nstays in issues.jsonl forever. Enterprise users will balk at \"git as database.\"\n\n## Solution: Two-Tier Cleanup\n\n### Tier 1: Ephemeral Cleanup (v1)\n\nbd cleanup --ephemeral --closed\n\n- Deletes closed issues where ephemeral=true from issues.jsonl\n- Safe: only removes explicitly marked ephemeral + closed\n- Preserves git history (commits still exist)\n- Run after swarm completion\n\n### Tier 2: History Compaction (v2)\n\nbd compact --squash\n\n- Rewrites issues.jsonl to remove tombstones\n- Optionally squashes git history (interactive rebase equivalent)\n- Preserves Merkle proofs for deleted items\n- Advanced: cold storage tiering\n\n## HOP Context\n\n| Layer | HOP Role | Persistence |\n|-------|----------|-------------|\n| Execution trace | None | Ephemeral |\n| Work scaffolding | None | Summarizable |\n| Work outcome | CV entry | Permanent |\n| Validation record | Stake proof | Permanent |\n\n\"Execution is ephemeral. Outcomes are permanent. You can't squash your CV.\"\n\n## Success Criteria\n\n- After cleanup --ephemeral: issues.jsonl only contains persistent work\n- Work outcomes preserved (CV entries)\n- Validation records preserved (stake proofs)\n- Execution scaffolding removed (transient coordination)","notes":"## Implementation Plan (REVISED after code review)\n\nSee history/EPHEMERAL_MOLECULES_DESIGN.md for comprehensive design + review.\n\n## Key Simplification\n\nAfter code review, Tier 1 is MUCH simpler than originally designed:\n\n- **Original**: Separate ephemeral repo with routing.ephemeral config\n- **Revised**: Just set Wisp: true in cloneSubgraph()\n\nThe wisp field and bd cleanup --wisp already exist\\!\n\n## Child Tasks (in dependency order)\n\n1. **bd-2vh3.2**: Tier 1 - Ephemeral spawning (SIMPLIFIED) [READY]\n - Just add Wisp: true to template.go:474\n - Add --persistent flag to opt out\n2. **bd-2vh3.3**: Tier 2 - Basic bd mol squash command\n3. **bd-2vh3.4**: Tier 3 - AI-powered squash summarization\n4. **bd-2vh3.5**: Tier 4 - Auto-squash on molecule completion\n5. **bd-2vh3.6**: Tier 5 - JSONL archive rotation (DEFERRED: post-1.0)\n\n## What Already Exists\n\n| Component | Location |\n|-----------|----------|\n| Ephemeral field | internal/types/types.go:45 |\n| bd cleanup --wisp | cmd/bd/cleanup.go:72 |\n| cloneSubgraph() | cmd/bd/template.go:456 |\n| loadTemplateSubgraph() | cmd/bd/template.go |\n\n## HOP Alignment\n\n'Execution is ephemeral. Outcomes are permanent. You can't squash your CV.'","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-12-20T21:02:20.101367-08:00","updated_at":"2025-12-21T17:50:02.958155-08:00","closed_at":"2025-12-21T17:50:02.958155-08:00"} {"id":"bd-2vh3.1","title":"Tier 1: Ephemeral repo routing","description":"Add routing.ephemeral config option to route ephemeral=true issues to separate location.\n\n## Changes Required\n\n1. Add `routing.ephemeral` config option (default: empty = disabled)\n2. Update routing logic in `determineRepo()` to check ephemeral flag\n3. Update `bd create` to respect ephemeral routing\n4. Update import/export for multi-location support\n5. Ephemeral repo can be:\n - Separate git repo (~/.beads-ephemeral)\n - Non-git directory (just filesystem)\n - Same repo, different branch (future)\n\n## Config\n\n```bash\nbd config set routing.ephemeral \"~/.beads-ephemeral\"\n```\n\n## Acceptance Criteria\n\n- `bd create \"test\" --ephemeral` creates in ephemeral repo when configured\n- `bd list` shows issues from both repos\n- Ephemeral repo never synced to remote","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T12:57:26.648052-08:00","updated_at":"2025-12-21T12:59:01.815357-08:00","deleted_at":"2025-12-21T12:59:01.815357-08:00","deleted_by":"stevey","delete_reason":"manual delete","original_type":"task"} {"id":"bd-2vh3.2","title":"Tier 1: Ephemeral repo routing","description":"Simplified: Make mol spawn set ephemeral=true on spawned issues.\n\n## The Fix\n\nModify cloneSubgraph() in template.go to set Ephemeral: true:\n\n```go\n// template.go:474\nnewIssue := \u0026types.Issue{\n Title: substituteVariables(oldIssue.Title, vars),\n // ... existing fields ...\n Ephemeral: true, // ADD THIS LINE\n}\n```\n\n## Optional: Add --persistent flag\n\nAdd flag to bd mol spawn for when you want spawned issues to persist:\n\n```bash\nbd mol spawn mol-code-review --var pr=123 # ephemeral (default)\nbd mol spawn mol-code-review --var pr=123 --persistent # not ephemeral\n```\n\n## Why This Is Simpler Than Original Design\n\nOriginal design proposed separate ephemeral repo routing. After code review:\n\n- Ephemeral field already exists in schema\n- bd cleanup --ephemeral already works\n- No new config needed\n- No multi-repo complexity\n\n## Acceptance Criteria\n\n- bd mol spawn creates issues with ephemeral=true\n- bd cleanup --ephemeral -f deletes them after closing\n- --persistent flag opts out of ephemeral\n- Existing molecules continue to work","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-21T12:57:36.661604-08:00","updated_at":"2025-12-21T13:43:22.990244-08:00","closed_at":"2025-12-21T13:43:22.990244-08:00","dependencies":[{"issue_id":"bd-2vh3.2","depends_on_id":"bd-2vh3","type":"parent-child","created_at":"2025-12-21T12:57:36.662118-08:00","created_by":"stevey"}]} {"id":"bd-2vh3.3","title":"Tier 2: Basic bd mol squash command","description":"Add bd mol squash command for basic molecule execution compression.\n\n## Command\n\nbd mol squash \u003cmolecule-id\u003e [flags]\n --dry-run Preview what would be squashed\n --keep-children Don't delete ephemeral children after squash\n --json JSON output\n\n## Implementation\n\n1. Find all ephemeral children of molecule (parent-child deps)\n2. Concatenate child descriptions/notes into digest\n3. Create digest issue in main repo with:\n - Title: 'Molecule Execution Summary: \u003coriginal-title\u003e'\n - digest_of: [list of squashed child IDs]\n - ephemeral: false (digest is permanent)\n4. Delete ephemeral children (unless --keep-children)\n5. Link digest to parent work item\n\n## Schema Changes\n\nAdd to Issue struct:\n- SquashedAt *time.Time\n- SquashDigest string (ID of digest)\n- DigestOf []string (IDs of squashed children)\n\n## Acceptance Criteria\n\n- bd mol squash \u003cid\u003e creates digest, removes children\n- --dry-run shows preview\n- Digest has proper metadata linking","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-21T12:57:48.338114-08:00","updated_at":"2025-12-21T13:53:58.974433-08:00","closed_at":"2025-12-21T13:53:58.974433-08:00","dependencies":[{"issue_id":"bd-2vh3.3","depends_on_id":"bd-2vh3","type":"parent-child","created_at":"2025-12-21T12:57:48.338636-08:00","created_by":"stevey"},{"issue_id":"bd-2vh3.3","depends_on_id":"bd-2vh3.2","type":"blocks","created_at":"2025-12-21T12:58:22.601321-08:00","created_by":"stevey"}]} -{"id":"bd-2vh3.4","title":"Tier 3: AI-powered squash summarization","description":"## Design: Agent-Provided Summarization (Inversion of Control)\n\nbd is a tool FOR agents, not an agent itself. The calling agent provides\nthe summary; bd just stores it.\n\n### API\n\n```bash\n# Agent generates summary, passes to bd\nbd mol squash bd-xxx --summary \"Agent-generated summary here\"\n\n# Without --summary, falls back to basic concatenation\nbd mol squash bd-xxx\n```\n\n### Gas Town Integration Pattern\n\n```go\n// In polecat completion handler or witness\nraw := exec.Command(\"bd\", \"mol\", \"show\", molID, \"--json\").Output()\nsummary := callHaiku(buildSummaryPrompt(raw)) // agent's job\nexec.Command(\"bd\", \"mol\", \"squash\", molID, \"--summary\", summary).Run()\n```\n\n### Why This Design\n\n| Concern | bd's job | Agent's job |\n|---------|----------|-------------|\n| Store data | ✅ | |\n| Query data | ✅ | |\n| Generate summaries | | ✅ |\n| Call LLMs | | ✅ |\n| Manage API keys | | ✅ |\n\n### Implementation Status\n\n- [x] --summary flag added to bd mol squash\n- [x] Tests for agent-provided summary\n- [ ] Gas Town integration (separate task)\n\n### Acceptance Criteria\n\n- ✅ bd mol squash --summary uses provided text\n- ✅ Without --summary, falls back to concatenation\n- ✅ No LLM calls in bd itself","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T12:58:00.732749-08:00","updated_at":"2025-12-21T14:29:16.288713-08:00","closed_at":"2025-12-21T14:29:16.288713-08:00","dependencies":[{"issue_id":"bd-2vh3.4","depends_on_id":"bd-2vh3","type":"parent-child","created_at":"2025-12-21T12:58:00.733264-08:00","created_by":"stevey"},{"issue_id":"bd-2vh3.4","depends_on_id":"bd-2vh3.3","type":"blocks","created_at":"2025-12-21T12:58:22.698686-08:00","created_by":"stevey"}]} +{"id":"bd-2vh3.4","title":"Tier 3: AI-powered squash summarization","description":"## Design: Agent-Provided Summarization (Inversion of Control)\n\nbd is a tool FOR agents, not an agent itself. The calling agent provides\nthe summary; bd just stores it.\n\n### API\n\n```bash\n# Agent generates summary, passes to bd\nbd mol squash bd-xxx --summary \"Agent-generated summary here\"\n\n# Without --summary, falls back to basic concatenation\nbd mol squash bd-xxx\n```\n\n### Gas Town Integration Pattern\n\n```go\n// In polecat completion handler or witness\nraw := exec.Command(\"bd\", \"mol\", \"show\", molID, \"--json\").Output()\nsummary := callHaiku(buildSummaryPrompt(raw)) // agent's job\nexec.Command(\"bd\", \"mol\", \"squash\", molID, \"--summary\", summary).Run()\n```\n\n### Why This Design\n\n| Concern | bd's job | Agent's job |\n|---------|----------|-------------|\n| Store data | ✅ | |\n| Query data | ✅ | |\n| Generate summaries | | ✅ |\n| Call LLMs | | ✅ |\n| Manage API keys | | ✅ |\n\n### Implementation Status\n\n- [x] --summary flag added to bd mol squash\n- [x] Tests for agent-provided summary\n- [ ] Gas Town integration (separate task)\n\n### Acceptance Criteria\n\n- ✅ bd mol squash --summary uses provided text\n- ✅ Without --summary, falls back to concatenation\n- ✅ No LLM calls in bd itself","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T12:58:00.732749-08:00","updated_at":"2025-12-21T14:29:16.288713-08:00","closed_at":"2025-12-21T14:29:16.288713-08:00","dependencies":[{"issue_id":"bd-2vh3.4","depends_on_id":"bd-2vh3.3","type":"blocks","created_at":"2025-12-21T12:58:22.698686-08:00","created_by":"stevey"},{"issue_id":"bd-2vh3.4","depends_on_id":"bd-2vh3","type":"parent-child","created_at":"2025-12-21T12:58:00.733264-08:00","created_by":"stevey"}]} {"id":"bd-2vh3.5","title":"Tier 4: Auto-squash on molecule completion","description":"Automatically squash molecules when they reach terminal state.\n\n## Integration Points\n\n1. Hook into molecule completion handler\n2. Detect when all steps are done/failed\n3. Trigger squash automatically\n\n## Config\n\nbd config set mol.auto_squash true # Default: false\nbd config set mol.auto_squash_on_success true # Only on success\nbd config set mol.auto_squash_delay '5m' # Wait before squash\n\n## Implementation Options\n\n### Option A: Post-Completion Hook\nIn mol completion handler:\n- Check if auto_squash enabled\n- Call Squash() after terminal state\n\n### Option B: Git Hook\nIn .beads/hooks/post-commit:\n- bd mol squash --auto\n\n### Option C: Daemon Background Task\n- Daemon periodically checks for squashable molecules\n- Squashes in background\n\n## Acceptance Criteria\n\n- Completed molecules auto-squash without manual intervention\n- Configurable delay before squash\n- Option to squash only on success vs always\n- Works with both daemon and no-daemon modes","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T12:58:13.345577-08:00","updated_at":"2025-12-21T17:40:39.794527-08:00","closed_at":"2025-12-21T17:40:39.794527-08:00","dependencies":[{"issue_id":"bd-2vh3.5","depends_on_id":"bd-2vh3","type":"parent-child","created_at":"2025-12-21T12:58:13.346152-08:00","created_by":"stevey"},{"issue_id":"bd-2vh3.5","depends_on_id":"bd-2vh3.4","type":"blocks","created_at":"2025-12-21T12:58:22.797141-08:00","created_by":"stevey"}]} {"id":"bd-2vh3.6","title":"Tier 5 (Future): JSONL archive rotation","description":"Periodic rotation of issues.jsonl for long-running repos.\n\n## Design\n\n.beads/\n├── issues.jsonl # Current (hot)\n├── archive/\n│ ├── issues-2025-12.jsonl.gz # Archived (cold)\n│ └── ...\n└── index.jsonl # Merged index for queries\n\n## Commands\n\nbd archive rotate [flags]\n --older-than N Archive issues closed \u003e N days\n --compress Gzip archives\n --dry-run Preview\n\nbd archive list # Show archived periods\nbd archive restore \u003cperiod\u003e # Restore from archive\n\n## Config\n\nbd config set archive.enabled true\nbd config set archive.rotate_days 90\nbd config set archive.compress true\nbd config set archive.path '.beads/archive'\n\n## Considerations\n\n- Archives can be gitignored (local only) or committed (shared)\n- Query layer must check index, hydrate from archive\n- Cold storage tiering (S3/GCS) for enterprise\n- Merkle proofs preserved for audit\n\n## Priority\n\nThis is post-1.0 work. Current focus is on squash (removes ephemeral).\nArchive helps with long-term history but is less critical.","status":"open","priority":4,"issue_type":"feature","created_at":"2025-12-21T12:58:38.210008-08:00","updated_at":"2026-01-02T00:17:14.308269-08:00","dependencies":[{"issue_id":"bd-2vh3.6","depends_on_id":"bd-2vh3","type":"parent-child","created_at":"2025-12-21T12:58:38.210543-08:00","created_by":"stevey"}]} -{"id":"bd-2w4hs","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:42:33.949416-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-07T17:42:33.989401-08:00","closed_at":"2026-01-07T17:42:33.989401-08:00","close_reason":"auto-closed session event"} +{"id":"bd-2w4hs","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:42:33.949416-08:00","updated_at":"2026-01-07T17:42:33.989401-08:00","closed_at":"2026-01-07T17:42:33.989401-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/wolf"} {"id":"bd-2wh","title":"Test pinned for stats","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-18T21:47:09.334108-08:00","updated_at":"2025-12-18T21:47:25.17917-08:00","deleted_at":"2025-12-18T21:47:25.17917-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} -{"id":"bd-2wm2","title":"bd repair: Check comments and events tables for orphans","description":"bd repair currently checks dependencies and labels tables, but the schema also has comments and events tables with issue_id foreign keys that could be orphaned.\n\nAdd orphan detection and cleanup for:\n- comments table (issue_id not in issues)\n- events table (issue_id not in issues)","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-29T12:48:11.563302-08:00","created_by":"stevey","updated_at":"2025-12-29T12:57:43.745176-08:00","closed_at":"2025-12-29T12:57:43.745176-08:00","close_reason":"Implemented in repair.go: added orphan detection for comments/events tables and --json output flag"} -{"id":"bd-2wzld","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:31:19.367456-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:31:19.400426-08:00","closed_at":"2026-01-08T14:31:19.400426-08:00","close_reason":"auto-closed session event"} -{"id":"bd-2y0yv","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T09:16:17.428764-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T09:16:17.473507-08:00","closed_at":"2026-01-11T09:16:17.473507-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-2ye1v","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T06:10:36.354999-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T06:10:36.420538-08:00","closed_at":"2026-01-11T06:10:36.420538-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-2wm2","title":"bd repair: Check comments and events tables for orphans","description":"bd repair currently checks dependencies and labels tables, but the schema also has comments and events tables with issue_id foreign keys that could be orphaned.\n\nAdd orphan detection and cleanup for:\n- comments table (issue_id not in issues)\n- events table (issue_id not in issues)","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-29T12:48:11.563302-08:00","updated_at":"2025-12-29T12:57:43.745176-08:00","closed_at":"2025-12-29T12:57:43.745176-08:00","close_reason":"Implemented in repair.go: added orphan detection for comments/events tables and --json output flag","created_by":"stevey"} +{"id":"bd-2wzld","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:31:19.367456-08:00","updated_at":"2026-01-08T14:31:19.400426-08:00","closed_at":"2026-01-08T14:31:19.400426-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-2y0yv","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T09:16:17.428764-08:00","updated_at":"2026-01-11T09:16:17.473507-08:00","closed_at":"2026-01-11T09:16:17.473507-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-2ye1v","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T06:10:36.354999-08:00","updated_at":"2026-01-11T06:10:36.420538-08:00","closed_at":"2026-01-11T06:10:36.420538-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-3","title":"Investigate and upgrade to modernc.org/sqlite 1.39.1+","description":"We had to pin modernc.org/sqlite to v1.38.2 due to a FOREIGN KEY constraint regression in v1.39.1 (SQLite 3.50.4).\n\n**Issue:** [deleted:bd-47], GH #144\n\n**Symptom:** CloseIssue fails with \"FOREIGN KEY constraint failed (787)\" when called via MCP/daemon, but works fine via CLI.\n\n**Root Cause:** Unknown - likely stricter FK enforcement in SQLite 3.50.4 or modernc.org wrapper changes.\n\n**Workaround:** Pinned to v1.38.2 (SQLite 3.49.x)\n\n**TODO:**\n1. Monitor modernc.org/sqlite releases for fixes\n2. Check SQLite 3.50.5+ changelogs for FK-related fixes\n3. Investigate why daemon mode fails but CLI succeeds (connection reuse? transaction isolation?)\n4. Consider filing upstream issue with reproducible test case\n5. Upgrade when safe","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-07T09:43:47.856354-08:00","updated_at":"2025-11-07T15:06:26.240131-08:00","closed_at":"2025-11-07T15:06:26.240131-08:00"} {"id":"bd-307","title":"Multi-repo hydration layer","description":"Build core infrastructure to hydrate database from N repos (N≥1), with smart caching via file mtime tracking and routing writes to correct JSONL based on source_repo metadata.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-04T11:21:30.655765-08:00","updated_at":"2025-11-05T00:08:42.811877-08:00","closed_at":"2025-11-05T00:08:42.811879-08:00","dependencies":[{"issue_id":"bd-307","depends_on_id":"bd-4ms","type":"parent-child","created_at":"2025-11-04T11:22:21.823652-08:00","created_by":"daemon"}]} {"id":"bd-313v","title":"rpc: Rich mutation events not emitted","description":"The activity command (activity.go) references rich mutation event types (MutationBonded, MutationSquashed, MutationBurned, MutationStatus) that include metadata like OldStatus, NewStatus, ParentID, and StepCount.\n\nHowever, the emitMutation() function in server_core.go:141 only accepts (eventType, issueID) and only populates Type, IssueID, and Timestamp. The additional metadata fields are never set.\n\nNeed to either:\n1. Add an emitRichMutation() function that accepts the additional metadata\n2. Update call sites (close, bond, squash, burn operations) to emit rich events\n\nWithout this fix, the activity feed will never show:\n- Status transitions (in_progress -\u003e closed)\n- Bonded events with step counts\n- Parent molecule relationships\n\nDiscovered during code review of bd-xo1o implementation.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-23T04:06:17.39523-08:00","updated_at":"2025-12-23T04:13:19.205249-08:00","closed_at":"2025-12-23T04:13:19.205249-08:00"} {"id":"bd-317ddbbf","title":"Add BEADS_DAEMON_MODE flag handling","description":"Add environment variable BEADS_DAEMON_MODE (values: poll, events). Default to 'poll' for Phase 1. Wire into daemon startup to select runEventLoop vs runEventDrivenLoop.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-28T16:20:02.433638-07:00","updated_at":"2025-10-30T17:12:58.224373-07:00","closed_at":"2025-10-28T12:31:47.819136-07:00"} {"id":"bd-31aab707","title":"Unit tests for FileWatcher","description":"Test watcher detects JSONL changes. Test git ref changes trigger import. Test debounce integration. Test watcher recovery from file removal/rename.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T11:30:59.842317-07:00","updated_at":"2025-10-31T12:00:43.189591-07:00","closed_at":"2025-10-31T12:00:43.189591-07:00"} -{"id":"bd-31ae","title":"Document labels-as-state pattern for operational state","description":"Labels on role beads cache current operational state for fast queries.\n\nConvention: \u003cdimension\u003e:\u003cvalue\u003e\n- patrol:muted / patrol:active\n- mode:degraded / mode:normal\n- status:idle / status:working\n\nPattern:\n1. Create event bead (full context, immutable history)\n2. Update role bead labels (current state cache)\n\nNo schema change needed - labels already exist. This task:\n- Document the convention in beads docs\n- Consider helper: bd state \u003crole\u003e \u003cdimension\u003e (queries label)\n- Consider helper: bd set-state \u003crole\u003e \u003cdimension\u003e=\u003cvalue\u003e (creates event + updates label)\n\nEvents are source of truth. Labels are cache.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-30T15:15:46.697971-08:00","created_by":"gastown/crew/max","updated_at":"2025-12-30T18:12:30.961022-08:00","closed_at":"2025-12-30T15:51:34.364561-08:00","close_reason":"Added 'Labels as State Cache' section to docs/LABELS.md with convention, pattern, examples, and best practices"} +{"id":"bd-31ae","title":"Document labels-as-state pattern for operational state","description":"Labels on role beads cache current operational state for fast queries.\n\nConvention: \u003cdimension\u003e:\u003cvalue\u003e\n- patrol:muted / patrol:active\n- mode:degraded / mode:normal\n- status:idle / status:working\n\nPattern:\n1. Create event bead (full context, immutable history)\n2. Update role bead labels (current state cache)\n\nNo schema change needed - labels already exist. This task:\n- Document the convention in beads docs\n- Consider helper: bd state \u003crole\u003e \u003cdimension\u003e (queries label)\n- Consider helper: bd set-state \u003crole\u003e \u003cdimension\u003e=\u003cvalue\u003e (creates event + updates label)\n\nEvents are source of truth. Labels are cache.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-30T15:15:46.697971-08:00","updated_at":"2025-12-30T18:12:30.961022-08:00","closed_at":"2025-12-30T15:51:34.364561-08:00","close_reason":"Added 'Labels as State Cache' section to docs/LABELS.md with convention, pattern, examples, and best practices","created_by":"gastown/crew/max"} {"id":"bd-325da116","title":"Fix N-way collision convergence","description":"Epic to fix the N-way collision convergence problem documented in n-way-collision-convergence.md.\n\n## Problem Summary\nThe current collision resolution implementation works correctly for 2-way collisions but does not converge for 3-way (and by extension N-way) collisions. TestThreeCloneCollision demonstrates this with reproducible failures.\n\n## Root Causes Identified\n1. Pairwise resolution doesn't scale - each clone makes local decisions without global context\n2. DetectCollisions modifies state during detection (line 83-86 in collision.go)\n3. No remapping history - can't track transitive remap chains (test-1 → test-2 → test-3)\n4. Import-time resolution is too late - happens after git merge\n\n## Solution Architecture\nReplace pairwise resolution with deterministic global N-way resolution using:\n- Content-addressable identity (content hashing)\n- Global collision resolution (sort all versions by hash)\n- Read-only detection phase (separate from modification)\n- Idempotent imports (content-first matching)\n\n## Success Criteria\n- TestThreeCloneCollision passes without skipping\n- All clones converge to identical content after final pull\n- No data loss (all issues present in all clones)\n- Works for N workers (test with 5+ clones)\n- Idempotent imports (importing same JSONL multiple times is safe)\n\n## Implementation Phases\nSee child issues for detailed breakdown of each phase.","status":"closed","priority":0,"issue_type":"epic","created_at":"2025-10-29T23:05:13.889079-07:00","updated_at":"2025-10-31T11:59:41.031668-07:00","closed_at":"2025-10-31T11:59:41.031668-07:00"} -{"id":"bd-32cj9","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:40:21.08041-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T17:40:21.117704-08:00","closed_at":"2026-01-07T17:40:21.117704-08:00","close_reason":"auto-closed session event"} +{"id":"bd-32cj9","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:40:21.08041-08:00","updated_at":"2026-01-07T17:40:21.117704-08:00","closed_at":"2026-01-07T17:40:21.117704-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-32nm","title":"Auto-configure git merge driver during `bd init`","description":"Enhance `bd init` to optionally set up beads-merge as git merge driver.\n\n**Tasks**:\n- Prompt user to install git merge driver\n- Configure `.git/config`: `merge.beads.driver \"bd merge %A %O %L %R\"`\n- Create/update `.gitattributes`: `.beads/beads.jsonl merge=beads`\n- Add `--skip-merge-driver` flag for non-interactive use\n- Update AGENTS.md onboarding section\n\n**Files**:\n- `cmd/bd/init.go`\n- `.gitattributes` template","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-05T18:42:20.447682-08:00","updated_at":"2025-11-05T19:27:18.370494-08:00","closed_at":"2025-11-05T19:27:18.370494-08:00","dependencies":[{"issue_id":"bd-32nm","depends_on_id":"bd-qqvw","type":"parent-child","created_at":"2025-11-05T18:42:28.723517-08:00","created_by":"daemon"},{"issue_id":"bd-32nm","depends_on_id":"bd-omx1","type":"blocks","created_at":"2025-11-05T18:42:35.453823-08:00","created_by":"daemon"}]} {"id":"bd-3396","title":"Add merge helper commands (bd sync --merge)","description":"Add commands to merge beads branch back to main.\n\nTasks:\n- Implement bd sync --merge command\n- Implement bd sync --status command\n- Implement bd sync --auto-merge (optional, for automation)\n- Detect merge conflicts and provide guidance\n- Show commit diff between branches\n- Verify main branch is clean before merge\n- Push merged changes to remote\n\nEstimated effort: 2-3 days","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-02T15:22:35.580873-08:00","updated_at":"2025-12-14T12:12:46.54978-08:00","closed_at":"2025-11-02T17:12:34.620486-08:00","dependencies":[{"issue_id":"bd-3396","depends_on_id":"bd-a101","type":"parent-child","created_at":"2025-11-02T15:22:48.376916-08:00","created_by":"stevey"}]} -{"id":"bd-33ax","title":"Merge: granite-mjtmdru5","description":"branch: polecat/granite-mjtmdru5\ntarget: main\nsource_issue: granite-mjtmdru5\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T22:14:26.689691-08:00","created_by":"beads/polecats/granite","updated_at":"2026-01-01T10:43:18.625178-08:00","closed_at":"2026-01-01T10:43:18.625178-08:00","close_reason":"Stale MR - branch no longer exists on remote"} -{"id":"bd-33v2x","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:27:40.608336-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:27:40.667183-08:00","closed_at":"2026-01-11T19:27:40.667183-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-33ax","title":"Merge: granite-mjtmdru5","description":"branch: polecat/granite-mjtmdru5\ntarget: main\nsource_issue: granite-mjtmdru5\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T22:14:26.689691-08:00","updated_at":"2026-01-01T10:43:18.625178-08:00","closed_at":"2026-01-01T10:43:18.625178-08:00","close_reason":"Stale MR - branch no longer exists on remote","created_by":"beads/polecats/granite"} +{"id":"bd-33v2x","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:27:40.608336-08:00","updated_at":"2026-01-11T19:27:40.667183-08:00","closed_at":"2026-01-11T19:27:40.667183-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-3433","title":"Implement topological sort for import ordering","description":"Refactor upsertIssues() to sort issues by hierarchy depth before batch creation. Ensures parents are created before children, fixing latent bug where parent-child pairs in same batch can fail if ordered wrong. Sort by dot count, create in depth-order batches (0→1→2→3).","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-04T12:31:42.22005-08:00","updated_at":"2025-11-05T00:08:42.812154-08:00","closed_at":"2025-11-05T00:08:42.812156-08:00"} -{"id":"bd-34q1","title":"Give --all flag actual meaning in bd list","description":"The --all flag exists but is currently a no-op ('flag provided for CLI familiarity'). Once we change the default to non-closed, --all should override to show all issues including closed.\n\nThis provides backwards compatibility for scripts that depend on seeing all issues.","notes":"## Implementation Plan\n\n### Code Changes (cmd/bd/list.go)\n\n1. **Update --all flag handling** (~line 889):\n```go\n// Currently: listCmd.Flags().Bool(\"all\", false, \"Show all issues (default behavior; flag provided for CLI familiarity)\")\n// Change to:\nlistCmd.Flags().Bool(\"all\", false, \"Show all issues including closed (overrides default filter)\")\n```\n\n2. **Check for --all in Run function** (before applying default filter):\n```go\nallFlag, _ := cmd.Flags().GetBool(\"all\")\nif status == \"\" \u0026\u0026 !allFlag {\n // Apply default non-closed filter\n filter.ExcludeStatus = []types.Status{\"closed\"}\n}\n// If --all is set, no ExcludeStatus applied = show everything\n```\n\n### Testing\n- `bd list --all` shows all issues including closed\n- `bd list` shows non-closed (from bd-mypl)\n- `bd list --all --status=open` - --all is ignored when explicit status given\n\n### Documentation\n- Update --help text\n- Add to migration guide: \"Use --all for previous default behavior\"","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-29T15:25:07.522236-08:00","created_by":"stevey","updated_at":"2025-12-29T17:53:30.241263-08:00","closed_at":"2025-12-29T17:53:30.241263-08:00","close_reason":"Implemented in single commit","labels":["gh:788"],"dependencies":[{"issue_id":"bd-34q1","depends_on_id":"bd-mypl","type":"blocks","created_at":"2025-12-29T15:25:20.671576-08:00","created_by":"daemon"}]} +{"id":"bd-34q1","title":"Give --all flag actual meaning in bd list","description":"The --all flag exists but is currently a no-op ('flag provided for CLI familiarity'). Once we change the default to non-closed, --all should override to show all issues including closed.\n\nThis provides backwards compatibility for scripts that depend on seeing all issues.","notes":"## Implementation Plan\n\n### Code Changes (cmd/bd/list.go)\n\n1. **Update --all flag handling** (~line 889):\n```go\n// Currently: listCmd.Flags().Bool(\"all\", false, \"Show all issues (default behavior; flag provided for CLI familiarity)\")\n// Change to:\nlistCmd.Flags().Bool(\"all\", false, \"Show all issues including closed (overrides default filter)\")\n```\n\n2. **Check for --all in Run function** (before applying default filter):\n```go\nallFlag, _ := cmd.Flags().GetBool(\"all\")\nif status == \"\" \u0026\u0026 !allFlag {\n // Apply default non-closed filter\n filter.ExcludeStatus = []types.Status{\"closed\"}\n}\n// If --all is set, no ExcludeStatus applied = show everything\n```\n\n### Testing\n- `bd list --all` shows all issues including closed\n- `bd list` shows non-closed (from bd-mypl)\n- `bd list --all --status=open` - --all is ignored when explicit status given\n\n### Documentation\n- Update --help text\n- Add to migration guide: \"Use --all for previous default behavior\"","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-29T15:25:07.522236-08:00","updated_at":"2025-12-29T17:53:30.241263-08:00","closed_at":"2025-12-29T17:53:30.241263-08:00","close_reason":"Implemented in single commit","created_by":"stevey","dependencies":[{"issue_id":"bd-34q1","depends_on_id":"bd-mypl","type":"blocks","created_at":"2025-12-29T15:25:20.671576-08:00","created_by":"daemon"}]} {"id":"bd-35c7","title":"Add label-based filtering to bd ready command","description":"Allow filtering ready work by labels to help organize work by sprint, week, or category.\n\nExample usage:\n bd ready --label week1-2\n bd ready --label frontend,high-priority\n\nThis helps teams organize work into batches and makes it easier for agents to focus on specific categories of work.\n\nImplementation notes:\n- Add --label flag to ready command\n- Support comma-separated labels (AND logic)\n- Should work with existing ready work logic (unblocked issues)","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-03T18:10:18.976536-08:00","updated_at":"2025-11-03T22:27:30.614911-08:00","closed_at":"2025-11-03T22:27:30.614911-08:00"} {"id":"bd-36320a04","title":"Add mutation channel to internal/rpc/server.go","description":"Add mutationChan chan MutationEvent to Server struct. Emit events on CreateIssue, UpdateIssue, DeleteIssue, AddComment. Non-blocking send with default case for full channel.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T19:42:29.860173-07:00","updated_at":"2025-10-31T18:31:27.928693-07:00","closed_at":"2025-10-31T18:31:27.928693-07:00"} {"id":"bd-363f","title":"Document bd-wasm installation and usage","description":"Create documentation for bd-wasm:\n- Update README with npm installation instructions\n- Add troubleshooting section for WASM-specific issues\n- Document known limitations vs native bd\n- Add examples for Claude Code Web sandbox usage\n- Update INSTALLING.md with bd-wasm option","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-02T21:58:07.305711-08:00","updated_at":"2025-11-05T00:55:48.756684-08:00","closed_at":"2025-11-05T00:55:48.756687-08:00","dependencies":[{"issue_id":"bd-363f","depends_on_id":"bd-44d0","type":"parent-child","created_at":"2025-11-02T22:23:49.530675-08:00","created_by":"stevey"}]} @@ -267,7 +267,7 @@ {"id":"bd-373c","title":"Daemon crashes silently when multiple .db files exist in .beads/","description":"When daemon detects multiple .db files (after filtering out .backup and vc.db files), it writes error details to .beads/daemon-error file before exiting.\n\nThe error file is checked when:\n1. Daemon discovery fails to connect (internal/daemon/discovery.go)\n2. Auto-start fails to yield a running daemon (cmd/bd/main.go)\n3. Daemon list shows 'daemon not responding' error\n\nThis makes the error immediately visible to users without requiring them to check daemon logs.\n\nFile created: cmd/bd/daemon.go (writes daemon-error on multiple .db detection)\nFiles modified: \n- internal/daemon/discovery.go (reads daemon-error and surfaces in DaemonInfo.Error)\n- cmd/bd/main.go (displays daemon-error when auto-start fails)\n\nTesting: Create multiple .db files in .beads/, start daemon, verify error file created and shown in bd daemons list","notes":"Root cause: Daemon exits with os.Exit(1) when multiple .db files detected (daemon.go:1381), but error only goes to daemon log file. User sees 'daemon not responding' without knowing why.\n\nCurrent detection:\n- daemon.go filters out .backup and vc.db files\n- bd doctor detects multiple databases\n- Error message tells user to run 'bd init' or manually remove\n\nProblem: Error is not user-visible unless they check daemon logs.\n\nProposed fix options:\n1. Surface the error in 'bd info' and 'bd daemons list' output\n2. Add a hint in error messages to run 'bd doctor' when daemon fails\n3. Make daemon write error to a .beads/daemon-error file that gets checked\n4. Improve 'bd doctor' to run automatically when daemon is unhealthy","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-10-31T21:08:03.389259-07:00","updated_at":"2025-11-01T11:13:48.029427-07:00","closed_at":"2025-11-01T11:13:48.029427-07:00","dependencies":[{"issue_id":"bd-373c","depends_on_id":"bd-2752a7a2","type":"discovered-from","created_at":"2025-10-31T21:08:03.390022-07:00","created_by":"stevey"}]} {"id":"bd-374e","title":"WASM integration testing","description":"Comprehensive testing of WASM build. Child of epic bd-44d0.\n\n## Tasks\n- [ ] Unit tests for WASM module\n- [ ] Integration tests with real JSONL files\n- [ ] Test all bd commands for parity\n- [ ] Performance benchmarks\n- [ ] Test in actual Claude Code Web sandbox\n- [ ] Document any limitations\n\n## Test Coverage Target\n- \u003e90% of bd CLI commands work identically","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-02T18:33:31.342184-08:00","updated_at":"2025-12-14T12:12:46.550599-08:00","closed_at":"2025-11-05T00:55:48.756996-08:00","dependencies":[{"issue_id":"bd-374e","depends_on_id":"bd-197b","type":"blocks","created_at":"2025-11-02T18:33:31.342928-08:00","created_by":"daemon"}]} {"id":"bd-379","title":"Implement `bd setup cursor` for Cursor IDE integration","description":"Create a `bd setup cursor` command that integrates Beads workflow into Cursor IDE via .cursorrules file. Unlike Claude Code (which has hooks), Cursor uses a static rules file to provide context to its AI.","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-11-11T23:32:22.170083-08:00","updated_at":"2025-12-25T22:26:54.445182-08:00","closed_at":"2025-12-25T22:26:54.445182-08:00"} -{"id":"bd-37alz","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:07:58.971319-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T20:07:59.00416-08:00","closed_at":"2026-01-08T20:07:59.00416-08:00","close_reason":"auto-closed session event"} +{"id":"bd-37alz","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:07:58.971319-08:00","updated_at":"2026-01-08T20:07:59.00416-08:00","closed_at":"2026-01-08T20:07:59.00416-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-37dd","title":"Add topological sort utility functions","description":"Create internal/importer/sort.go with utilities for depth-based sorting of issues. Functions: GetHierarchyDepth(id), SortByDepth(issues), GroupByDepth(issues). Include stable sorting for same-depth issues.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-04T12:31:42.309207-08:00","updated_at":"2025-11-05T00:08:42.812378-08:00","closed_at":"2025-11-05T00:08:42.81238-08:00"} {"id":"bd-381d7f6c","title":"Audit Current Cache Usage","description":"Understand exactly what code depends on the storage cache","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-27T23:01:15.172045-07:00","updated_at":"2025-10-30T17:12:58.214409-07:00","closed_at":"2025-10-28T10:47:37.87529-07:00"} {"id":"bd-3852","title":"Add orphan detection migration","description":"Create migration to detect orphaned children in existing databases. Query: SELECT id FROM issues WHERE id LIKE '%.%' AND substr(id, 1, instr(id || '.', '.') - 1) NOT IN (SELECT id FROM issues). Log results, let user decide action (delete orphans or convert to top-level).","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-04T12:32:30.727044-08:00","updated_at":"2025-12-21T21:00:05.041582-08:00","closed_at":"2025-12-21T21:00:05.041582-08:00"} @@ -276,7 +276,7 @@ {"id":"bd-3b2fe268","title":"Add fsnotify dependency to go.mod","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-28T16:20:02.429763-07:00","updated_at":"2025-12-14T12:12:46.499978-08:00","closed_at":"2025-11-06T19:27:34.921866-08:00"} {"id":"bd-3b7f","title":"Add tests for extracted modules","description":"Create tests for migrations.go, hash_ids.go, batch_ops.go, and validators.go","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-01T19:28:54.88933-07:00","updated_at":"2025-11-01T23:32:00.722607-07:00","closed_at":"2025-11-01T23:32:00.722613-07:00"} {"id":"bd-3bg","title":"Add performance optimization to hasJSONLChanged with mtime fast-path","description":"hasJSONLChanged() reads entire JSONL file to compute SHA256 hash on every check. For large databases (50MB+), this is expensive and called frequently by daemon.\n\nOptimization: Check mtime first as fast-path. Only compute hash if mtime changed. This catches git operations (mtime changes but content doesn't) while avoiding expensive hash computation in common case (mtime unchanged = content unchanged).\n\nPerformance impact: 99% of checks will use fast path, only git operations need slow path.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-20T21:31:04.577264-05:00","updated_at":"2025-11-20T21:33:31.499918-05:00","closed_at":"2025-11-20T21:33:31.499918-05:00","dependencies":[{"issue_id":"bd-3bg","depends_on_id":"bd-khnb","type":"blocks","created_at":"2025-11-20T21:31:04.578768-05:00","created_by":"daemon"}]} -{"id":"bd-3bhl","title":"Add sync rollback on git commit failure","description":"Part of GH#885 fix: graceful failure handling.\n\nWhen git commit fails after export:\n1. Detect the failure\n2. Roll back SQLite metadata to pre-export state\n3. Optionally restore JSONL from git HEAD\n4. Report clear error with recovery instructions\n\nThis makes sync failures recoverable without manual intervention.\n\nDepends on the core atomicity fix - this is defense in depth.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-04T13:53:27.971284-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-04T23:07:38.536388-08:00","closed_at":"2026-01-04T23:07:38.536388-08:00","close_reason":"Implemented sync rollback on git commit failure (GH#885/bd-3bhl): \n- Added rollbackJSONLFromGit() helper in sync_git.go\n- Changed exportToJSONL() to exportToJSONLDeferred() for atomic sync\n- Added pendingExportResult tracking variable\n- Call finalizeExport() only after successful git commit\n- Rollback JSONL from git HEAD on commit failure with clear error message\n- Coverage: regular commit, sync branch commit, external beads repo commit paths","dependencies":[{"issue_id":"bd-3bhl","depends_on_id":"bd-pnx2","type":"parent-child","created_at":"2026-01-04T13:53:55.869715-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-3bhl","depends_on_id":"bd-usvv","type":"blocks","created_at":"2026-01-04T13:53:57.388449-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-3bhl","title":"Add sync rollback on git commit failure","description":"Part of GH#885 fix: graceful failure handling.\n\nWhen git commit fails after export:\n1. Detect the failure\n2. Roll back SQLite metadata to pre-export state\n3. Optionally restore JSONL from git HEAD\n4. Report clear error with recovery instructions\n\nThis makes sync failures recoverable without manual intervention.\n\nDepends on the core atomicity fix - this is defense in depth.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-04T13:53:27.971284-08:00","updated_at":"2026-01-04T23:07:38.536388-08:00","closed_at":"2026-01-04T23:07:38.536388-08:00","close_reason":"Implemented sync rollback on git commit failure (GH#885/bd-3bhl): \n- Added rollbackJSONLFromGit() helper in sync_git.go\n- Changed exportToJSONL() to exportToJSONLDeferred() for atomic sync\n- Added pendingExportResult tracking variable\n- Call finalizeExport() only after successful git commit\n- Rollback JSONL from git HEAD on commit failure with clear error message\n- Coverage: regular commit, sync branch commit, external beads repo commit paths","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-3bhl","depends_on_id":"bd-pnx2","type":"parent-child","created_at":"2026-01-04T13:53:55.869715-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-3bhl","depends_on_id":"bd-usvv","type":"blocks","created_at":"2026-01-04T13:53:57.388449-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-3bsz","title":"gt mail send: support reading message body from stdin","description":"Currently gt mail send -m requires the message as a command-line argument, which causes shell escaping issues with backticks, quotes, and special characters.\n\nAdd support for reading message body from stdin:\n- gt mail send addr -s 'Subject' --stdin # Read body from stdin\n- echo 'body' | gt mail send addr -s 'Subject' -m - # Convention: -m - means stdin\n\nThis would allow:\ncat \u003c\u003c'EOF' | gt mail send addr -s 'Subject' --stdin\nMessage with `backticks` and 'quotes' safely\nEOF\n\nWithout this, agents struggle to send handoff messages containing code snippets.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-23T03:21:39.496208-08:00","updated_at":"2025-12-23T12:19:44.443554-08:00","closed_at":"2025-12-23T12:19:44.443554-08:00"} {"id":"bd-3d844c58","title":"Implement content-hash based collision resolution for deterministic convergence","description":"The current collision resolution uses creation timestamps to decide which issue to keep vs. remap. This is non-deterministic when two clones create issues at nearly the same time.\n\nRoot cause of bd-71107098:\n- Clone A creates test-1=\"Issue from clone A\" at T0\n- Clone B creates test-1=\"Issue from clone B\" at T0+30ms\n- Clone B syncs first, remaps Clone A's to test-2\n- Clone A syncs second, sees collision, remaps Clone B's to test-2\n- Result: titles are swapped between clones\n\nSolution:\n- Use content-based hashing (title + description + priority + type)\n- Deterministic winner: always keep issue with lower hash\n- Same collision on different clones produces same result (idempotent)\n\nImplementation:\n- Modify ScoreCollisions in internal/storage/sqlite/collision.go\n- Replace timestamp-based scoring with content hash comparison\n- Ensure hash function is stable across platforms","status":"closed","priority":0,"issue_type":"task","created_at":"2025-10-28T17:04:06.145646-07:00","updated_at":"2025-10-30T17:12:58.225476-07:00","closed_at":"2025-10-28T19:20:09.943023-07:00","dependencies":[{"issue_id":"bd-3d844c58","depends_on_id":"bd-71107098","type":"blocks","created_at":"2025-10-31T19:38:09.203365-07:00","created_by":"stevey"}]} {"id":"bd-3e307cd4","title":"File change test issue","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T19:11:28.425601-07:00","updated_at":"2025-10-31T12:00:43.176605-07:00","closed_at":"2025-10-31T12:00:43.176605-07:00"} @@ -284,99 +284,98 @@ {"id":"bd-3e9ddc31","title":"Replace getStorageForRequest with Direct Access","description":"Replace all getStorageForRequest(req) calls with s.storage","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-27T23:20:10.393759-07:00","updated_at":"2025-10-30T17:12:58.21613-07:00","closed_at":"2025-10-28T14:08:38.06721-07:00"} {"id":"bd-3ee1","title":"Sync sanitize incorrectly removes newly created issues","description":"## Problem\n\nThe sync sanitize process incorrectly identifies newly created issues as 'deleted issues resurrected by git merge' and removes them from the local JSONL file.\n\n## Reproduction\n\n1. Create a new issue: bd create --title='Test issue'\n2. Run bd sync\n3. Observe: New issue appears in sanitize removal list\n4. Issue is removed from local JSONL but preserved on beads-sync branch\n\n## Observed Behavior\n\nDuring sync, the sanitize step outputs:\n```\n→ Sanitized JSONL: removed 738 deleted issue(s) that were resurrected by git merge\n - bd-08ea (newly created issue!)\n - bd-tnsq (newly created issue!)\n ...\n```\n\nThe newly created issues get removed locally but remain on beads-sync branch.\n\n## Expected Behavior\n\nNewly created issues should NOT be removed by sanitize. The sanitize should only remove issues that:\n1. Were previously deleted (have tombstones or are in deletions manifest)\n2. Are being resurrected from old git history\n\n## Root Cause Investigation\n\nThe sanitize logic likely compares the local DB snapshot against some reference and incorrectly classifies new issues as 'resurrected deleted issues'. Possible causes:\n- Snapshot protection logic not accounting for new issues\n- Deletion manifest containing stale entries\n- Race condition between export and sanitize\n\n## Impact\n\n- New issues disappear from local JSONL after sync\n- Issues remain on beads-sync but cause confusion\n- Multi-agent workflows affected when agents can't see new issues locally\n- Requires manual intervention to recover\n\n## Files to Investigate\n\n- cmd/bd/sync.go - sanitize logic\n- cmd/bd/snapshot_manager.go - snapshot comparison\n- Deletion manifest handling\n\n## Acceptance Criteria\n\n- [ ] Newly created issues survive sync without being sanitized\n- [ ] Only truly deleted/resurrected issues are removed\n- [ ] Add test case for this scenario","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-12-14T00:45:26.828547-08:00","updated_at":"2025-12-16T01:06:10.358958-08:00","closed_at":"2025-12-14T00:54:44.772671-08:00"} {"id":"bd-3ee2c7e9","title":"Add \"bd daemons\" command for multi-daemon management","description":"Add a new \"bd daemons\" command with subcommands to manage daemon processes across all beads repositories/worktrees. Should show all running daemons with metadata (version, workspace, uptime, last sync), allow stopping/restarting individual daemons, auto-clean stale processes, view logs, and show exclusive lock status.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-10-26T16:53:40.970042-07:00","updated_at":"2025-12-14T12:12:46.496973-08:00","closed_at":"2025-11-02T17:12:34.62102-08:00"} -{"id":"bd-3eju","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:50:02.86334-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:50:02.896232-08:00","closed_at":"2026-01-07T00:50:02.896232-08:00","close_reason":"auto-closed session event"} -{"id":"bd-3en6c","title":"Fix: FOREIGN KEY constraint on bd create (GH#956)","description":"dispatched_by: mayor\n\nGitHub issue #956. bd create fails with sqlite FOREIGN KEY constraint error.","status":"closed","priority":1,"issue_type":"bug","assignee":"beads/polecats/garnet","created_at":"2026-01-09T22:20:03.739681-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T19:41:02.619923-08:00","closed_at":"2026-01-12T19:41:02.619923-08:00","close_reason":"Fixed FOREIGN KEY constraint error on bd create by using strict INSERT for batch operations (GH#956)"} +{"id":"bd-3eju","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:50:02.86334-08:00","updated_at":"2026-01-07T00:50:02.896232-08:00","closed_at":"2026-01-07T00:50:02.896232-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-3en6c","title":"Fix: FOREIGN KEY constraint on bd create (GH#956)","description":"dispatched_by: mayor\n\nGitHub issue #956. bd create fails with sqlite FOREIGN KEY constraint error.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-09T22:20:03.739681-08:00","updated_at":"2026-01-12T19:41:02.619923-08:00","closed_at":"2026-01-12T19:41:02.619923-08:00","close_reason":"Fixed FOREIGN KEY constraint error on bd create by using strict INSERT for batch operations (GH#956)","created_by":"beads/crew/dave"} {"id":"bd-3f6a","title":"Add concurrent import race condition tests","description":"Currently no tests verify behavior when multiple clones import simultaneously with external_ref matching.\n\nScenarios to test:\n1. Two clones import same external_ref update at same time\n2. Clone A imports while Clone B updates same issue\n3. Verify transaction isolation prevents corruption\n4. Document expected behavior (last-write-wins vs timestamp-based)\n\nRelated: bd-1022\nFiles: internal/importer/external_ref_test.go","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-02T15:32:11.286956-08:00","updated_at":"2025-11-02T17:08:52.042337-08:00","closed_at":"2025-11-02T17:08:52.04234-08:00"} {"id":"bd-3f80d9e0","title":"Improve internal/daemon test coverage (currently 22.5%)","description":"Daemon functionality needs better coverage:\n- Auto-start behavior\n- Lock file management\n- Discovery mechanisms\n- Connection handling\n- Error recovery\n\nCurrent coverage: 58.3% (improved from 22.5% as of Nov 2025)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T14:06:30.832728-07:00","updated_at":"2025-12-14T12:12:46.518292-08:00","closed_at":"2025-11-15T14:13:47.303529-08:00"} {"id":"bd-3gc","title":"Audit remaining cmd/bd files for error handling consistency","description":"Extend ERROR_HANDLING_AUDIT.md to cover: daemon_sync.go, update.go, list.go, show.go, close.go, reopen.go, dep.go, label.go, comments.go, delete.go, compact.go, config.go, validate.go and other high-usage command files","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-24T00:28:55.890991-08:00","updated_at":"2025-12-02T17:11:19.730805433-05:00","closed_at":"2025-11-28T23:37:52.251887-08:00"} {"id":"bd-3ggb","title":"Rebuild local binary","description":"Build and verify: go build -o bd ./cmd/bd \u0026\u0026 ./bd version","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-18T22:43:03.101428-08:00","updated_at":"2025-12-24T16:25:30.089869-08:00","dependencies":[{"issue_id":"bd-3ggb","depends_on_id":"bd-qqc","type":"parent-child","created_at":"2025-12-18T22:43:16.748289-08:00","created_by":"daemon"},{"issue_id":"bd-3ggb","depends_on_id":"bd-4y4g","type":"blocks","created_at":"2025-12-18T22:43:20.950376-08:00","created_by":"daemon"}],"deleted_at":"2025-12-24T16:25:30.089869-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} -{"id":"bd-3ghze","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:45:16.630678-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-09T13:45:16.667978-08:00","closed_at":"2026-01-09T13:45:16.667978-08:00","close_reason":"auto-closed session event"} -{"id":"bd-3gmu2","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:17:52.31996-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T18:17:52.364671-08:00","closed_at":"2026-01-11T18:17:52.364671-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-3h5z8","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T14:13:14.861861-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T14:13:14.89741-08:00","closed_at":"2026-01-09T14:13:14.89741-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-3hp4s","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:35:44.012332-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:35:44.075438-08:00","closed_at":"2026-01-11T21:35:44.075438-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-3hqvs","title":"Fix N+1 query pattern in querySessionCostWisps","description":"## Problem\n\n`querySessionCostWisps()` (internal/cmd/costs.go:1010-1026) makes a separate `bd show` call for each wisp. With many session cost wisps, this creates O(n) subprocess calls.\n\n## Location\n\ninternal/cmd/costs.go:1010-1026\n\n## Solution\n\nBatch the `bd show` calls - collect all wisp IDs first, then call `bd show id1 id2 id3...` once.\n\nSimilar pattern already exists in `querySessionEvents()` (lines 382-396).","status":"closed","priority":3,"issue_type":"task","assignee":"beads/polecats/obsidian","created_at":"2026-01-08T22:55:12.441572-08:00","created_by":"mayor","updated_at":"2026-01-09T00:27:43.046636-08:00","closed_at":"2026-01-09T00:27:43.046636-08:00","close_reason":"Fixed N+1 query by batching bd show calls into single command"} -{"id":"bd-3j0zd","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T20:59:08.577039-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T20:59:08.61379-08:00","closed_at":"2026-01-07T20:59:08.61379-08:00","close_reason":"auto-closed session event"} -{"id":"bd-3jcq2","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T13:52:59.892608-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T13:52:59.92813-08:00","closed_at":"2026-01-10T13:52:59.92813-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-3ghze","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:45:16.630678-08:00","updated_at":"2026-01-09T13:45:16.667978-08:00","closed_at":"2026-01-09T13:45:16.667978-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/fang"} +{"id":"bd-3gmu2","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T18:17:52.31996-08:00","updated_at":"2026-01-11T18:17:52.364671-08:00","closed_at":"2026-01-11T18:17:52.364671-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-3h5z8","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T14:13:14.861861-08:00","updated_at":"2026-01-09T14:13:14.89741-08:00","closed_at":"2026-01-09T14:13:14.89741-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-3hp4s","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:35:44.012332-08:00","updated_at":"2026-01-11T21:35:44.075438-08:00","closed_at":"2026-01-11T21:35:44.075438-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-3hqvs","title":"Fix N+1 query pattern in querySessionCostWisps","description":"## Problem\n\n`querySessionCostWisps()` (internal/cmd/costs.go:1010-1026) makes a separate `bd show` call for each wisp. With many session cost wisps, this creates O(n) subprocess calls.\n\n## Location\n\ninternal/cmd/costs.go:1010-1026\n\n## Solution\n\nBatch the `bd show` calls - collect all wisp IDs first, then call `bd show id1 id2 id3...` once.\n\nSimilar pattern already exists in `querySessionEvents()` (lines 382-396).","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-08T22:55:12.441572-08:00","updated_at":"2026-01-09T00:27:43.046636-08:00","closed_at":"2026-01-09T00:27:43.046636-08:00","close_reason":"Fixed N+1 query by batching bd show calls into single command","created_by":"mayor"} +{"id":"bd-3j0zd","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T20:59:08.577039-08:00","updated_at":"2026-01-07T20:59:08.61379-08:00","closed_at":"2026-01-07T20:59:08.61379-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-3jcq2","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T13:52:59.892608-08:00","updated_at":"2026-01-10T13:52:59.92813-08:00","closed_at":"2026-01-10T13:52:59.92813-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-3jcw","title":"activity.go: Missing test coverage","description":"The new activity.go command (from bd-xo1o.3) has no test coverage. At minimum, tests should cover:\n- parseDurationString() for various formats (5m, 1h, 2d, invalid)\n- filterEvents() for --mol and --type filtering\n- formatEvent() and getEventDisplay() for all mutation types\n\nDiscovered during code review of bd-xo1o implementation.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-23T04:06:15.563579-08:00","updated_at":"2025-12-23T04:14:56.150151-08:00","closed_at":"2025-12-23T04:14:56.150151-08:00"} -{"id":"bd-3jrb","title":"bd close lacks cross-rig routing support","description":"The `bd close` command doesn't support cross-rig routing like `bd show` does.\n\n**Reproduction:**\n```\n# From gastown directory\nbd show bd-xyz # Works (routes to beads)\nbd close bd-xyz # Fails with 'no issue found matching'\n```\n\n**Root cause:**\n- `show.go` uses `needsRouting()` and `resolveAndGetIssueWithRouting()`\n- `close.go` only uses `utils.ResolvePartialIDs()` without routing\n\n**Other affected commands (likely):**\n- reopen\n- dep \n- comments\n- label\n- duplicate\n- defer/undefer\n\n**Fix:**\nAdd routing support to `close.go` similar to `show.go` lines 44-147.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-01T11:20:41.195141-08:00","created_by":"gastown/crew/gus","updated_at":"2026-01-01T11:24:25.322979-08:00","closed_at":"2026-01-01T11:24:25.322979-08:00","close_reason":"test"} -{"id":"bd-3kbmj","title":"Issue with labels","status":"open","priority":1,"issue_type":"feature","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:02.169796-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:02.169796-08:00","labels":["backend","urgent"]} -{"id":"bd-3kewd","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T10:00:54.6258-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T10:00:54.689656-08:00","closed_at":"2026-01-11T10:00:54.689656-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-3mky","title":"Merge: amber-mk0evltm","description":"branch: polecat/amber-mk0evltm\ntarget: main\nsource_issue: amber-mk0evltm\nrig: beads\nagent_bead: bd-beads-polecat-amber\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-04T16:21:45.827782-08:00","created_by":"beads/polecats/amber","updated_at":"2026-01-05T19:45:43.98093-08:00","closed_at":"2026-01-05T19:45:43.98093-08:00","close_reason":"Branch deleted, already merged"} -{"id":"bd-3p4u","title":"Add --filter-parent as alias for --parent in bd list","description":"User tried `bd list --filter-parent bd-mol-wba` and got 'unknown flag'. The --parent flag exists but --filter-parent would be more consistent with other filter flags like --filter-assignee patterns. Should add --filter-parent as an alias.","status":"closed","priority":3,"issue_type":"bug","created_at":"2026-01-04T23:10:38.589988-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-04T23:50:47.314353-08:00","closed_at":"2026-01-04T23:50:47.314353-08:00","close_reason":"Added --filter-parent as alias for --parent in bd list"} -{"id":"bd-3rko","title":"Merge: topaz-1767142022153","description":"branch: polecat/topaz-1767142022153\ntarget: main\nsource_issue: topaz-1767142022153\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T17:06:22.77742-08:00","created_by":"beads/polecats/topaz","updated_at":"2025-12-30T18:12:30.969291-08:00","closed_at":"2025-12-30T18:11:07.793047-08:00"} -{"id":"bd-3roq","title":"Add 'tracks' relation type for convoy tracking","description":"Add a new relation type 'tracks' for convoy → issue relationships.\n\nUnlike 'depends_on':\n- Non-blocking (tracked issue doesn't block convoy)\n- Cross-prefix capable (convoy in hq-* tracks issues in gt-*, bd-*)\n- Supports reverse lookup ('what convoys track this issue?')\n\nUsed by convoys to track issues across project chains without creating dependencies.\n\nRelated: hq-7h8jx (Convoy System epic in town beads)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-29T18:47:00.581639-08:00","created_by":"mayor","updated_at":"2025-12-29T21:04:52.609662-08:00","closed_at":"2025-12-29T21:04:52.609662-08:00","close_reason":"Closed"} +{"id":"bd-3jrb","title":"bd close lacks cross-rig routing support","description":"The `bd close` command doesn't support cross-rig routing like `bd show` does.\n\n**Reproduction:**\n```\n# From gastown directory\nbd show bd-xyz # Works (routes to beads)\nbd close bd-xyz # Fails with 'no issue found matching'\n```\n\n**Root cause:**\n- `show.go` uses `needsRouting()` and `resolveAndGetIssueWithRouting()`\n- `close.go` only uses `utils.ResolvePartialIDs()` without routing\n\n**Other affected commands (likely):**\n- reopen\n- dep \n- comments\n- label\n- duplicate\n- defer/undefer\n\n**Fix:**\nAdd routing support to `close.go` similar to `show.go` lines 44-147.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-01T11:20:41.195141-08:00","updated_at":"2026-01-01T11:24:25.322979-08:00","closed_at":"2026-01-01T11:24:25.322979-08:00","close_reason":"test","created_by":"gastown/crew/gus"} +{"id":"bd-3kbmj","title":"Issue with labels","status":"open","priority":1,"issue_type":"feature","created_at":"2026-01-11T18:16:02.169796-08:00","updated_at":"2026-01-11T18:16:02.169796-08:00","created_by":"beads/crew/wolf"} +{"id":"bd-3kewd","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T10:00:54.6258-08:00","updated_at":"2026-01-11T10:00:54.689656-08:00","closed_at":"2026-01-11T10:00:54.689656-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-3mky","title":"Merge: amber-mk0evltm","description":"branch: polecat/amber-mk0evltm\ntarget: main\nsource_issue: amber-mk0evltm\nrig: beads\nagent_bead: bd-beads-polecat-amber\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-04T16:21:45.827782-08:00","updated_at":"2026-01-05T19:45:43.98093-08:00","closed_at":"2026-01-05T19:45:43.98093-08:00","close_reason":"Branch deleted, already merged","created_by":"beads/polecats/amber"} +{"id":"bd-3p4u","title":"Add --filter-parent as alias for --parent in bd list","description":"User tried `bd list --filter-parent bd-mol-wba` and got 'unknown flag'. The --parent flag exists but --filter-parent would be more consistent with other filter flags like --filter-assignee patterns. Should add --filter-parent as an alias.","status":"closed","priority":3,"issue_type":"bug","created_at":"2026-01-04T23:10:38.589988-08:00","updated_at":"2026-01-04T23:50:47.314353-08:00","closed_at":"2026-01-04T23:50:47.314353-08:00","close_reason":"Added --filter-parent as alias for --parent in bd list","created_by":"beads/crew/dave"} +{"id":"bd-3rko","title":"Merge: topaz-1767142022153","description":"branch: polecat/topaz-1767142022153\ntarget: main\nsource_issue: topaz-1767142022153\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T17:06:22.77742-08:00","updated_at":"2025-12-30T18:12:30.969291-08:00","closed_at":"2025-12-30T18:11:07.793047-08:00","created_by":"beads/polecats/topaz"} +{"id":"bd-3roq","title":"Add 'tracks' relation type for convoy tracking","description":"Add a new relation type 'tracks' for convoy → issue relationships.\n\nUnlike 'depends_on':\n- Non-blocking (tracked issue doesn't block convoy)\n- Cross-prefix capable (convoy in hq-* tracks issues in gt-*, bd-*)\n- Supports reverse lookup ('what convoys track this issue?')\n\nUsed by convoys to track issues across project chains without creating dependencies.\n\nRelated: hq-7h8jx (Convoy System epic in town beads)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-29T18:47:00.581639-08:00","updated_at":"2025-12-29T21:04:52.609662-08:00","closed_at":"2025-12-29T21:04:52.609662-08:00","close_reason":"Closed","created_by":"mayor"} {"id":"bd-3sz0","title":"Auto-repair stale merge driver configs with invalid placeholders","description":"Old bd versions (\u003c0.24.0) installed merge driver with invalid placeholders %L %R instead of %A %B. Add detection to bd doctor --fix: check if git config merge.beads.driver contains %L or %R, auto-repair to 'bd merge %A %O %A %B'. One-time migration for users who initialized with old versions.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-21T23:16:10.762808-08:00","updated_at":"2025-12-23T23:48:18.11858-08:00","closed_at":"2025-12-23T23:48:18.11858-08:00","dependencies":[{"issue_id":"bd-3sz0","depends_on_id":"bd-tbz3","type":"parent-child","created_at":"2025-11-21T23:16:10.763612-08:00","created_by":"daemon"}]} {"id":"bd-3tfh","title":"Benchmark Helper Functions","description":"Extend existing benchmark helpers in internal/storage/sqlite/bench_helpers_test.go (or create if organizing separately).\n\nExisting helper (in compact_bench_test.go):\n- setupBenchDB(tb) - Creates temp SQLite database with basic config\n * Used by compact and cycle benchmarks\n * Returns (*SQLiteStorage, cleanup func())\n\nNew helpers to add:\n- setupLargeBenchDB(b *testing.B) storage.Storage\n * Creates 10K issue database using LargeSQLite fixture\n * Returns configured storage instance\n \n- setupXLargeBenchDB(b *testing.B) storage.Storage\n * Creates 20K issue database using XLargeSQLite fixture\n * Returns configured storage instance\n\nImplementation options:\n1. Add to existing compact_bench_test.go (co-located with setupBenchDB)\n2. Create new bench_helpers_test.go for organization\n\nBoth approaches:\n- Build tag: //go:build bench\n- Uses fixture generator from internal/testutil/fixtures\n- Follows existing setupBenchDB() pattern\n- Handles database cleanup\n\nThese helpers reduce duplication across new benchmark functions and provide consistent large-scale database setup.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-13T22:22:55.694834-08:00","updated_at":"2025-11-13T23:13:41.244758-08:00","closed_at":"2025-11-13T23:13:41.244758-08:00","dependencies":[{"issue_id":"bd-3tfh","depends_on_id":"bd-m62x","type":"blocks","created_at":"2025-11-13T22:24:02.632994-08:00","created_by":"daemon"}]} -{"id":"bd-3thcj","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T15:52:37.841823-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T15:52:37.92722-08:00","closed_at":"2026-01-13T15:52:37.92722-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-3tqg","title":"GHI #880: Failures with exit status 128 due to path casing mismatch on macOS","description":"GitHub Issue #880: Failures with exit status 128 due to path casing mismatch on macOS\n\nhttps://github.com/steveyegge/beads/issues/880","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-04T11:22:17.542481-08:00","created_by":"mayor","updated_at":"2026-01-04T15:22:08.703599-08:00","closed_at":"2026-01-04T11:44:45.480749-08:00","close_reason":"Fixed in commit 566012c1 - paths now normalized using EvalSymlinks for case-insensitive filesystem support"} -{"id":"bd-3u8m","title":"Create bd admin parent command and nest cleanup/compact/reset","description":"## Task\nCreate new `bd admin` parent command and move:\n- `bd cleanup` → `bd admin cleanup`\n- `bd compact` → `bd admin compact`\n- `bd reset` → `bd admin reset`\n\n## Implementation\n\n### 1. Create admin.go\nNew file with parent command:\n```go\nvar adminCmd = \u0026cobra.Command{\n Use: \"admin\",\n Short: \"Administrative commands for database maintenance\",\n Long: `Administrative commands for beads database maintenance.\n\nThese commands are for advanced users and should be used carefully:\n cleanup Delete closed issues and prune expired tombstones\n compact Compact old closed issues to save space\n reset Remove all beads data and configuration\n\nFor routine operations, prefer 'bd doctor --fix'.`,\n}\n\nfunc init() {\n rootCmd.AddCommand(adminCmd)\n adminCmd.AddCommand(cleanupCmd)\n adminCmd.AddCommand(compactCmd)\n adminCmd.AddCommand(resetCmd)\n}\n```\n\n### 2. Update cleanup.go, compact.go, reset.go\n- Remove `rootCmd.AddCommand()` from each init()\n- Keep all existing functionality\n\n### 3. Create hidden aliases for backwards compatibility\nTop-level hidden commands that forward to admin subcommands.\n\n### 4. Update docs (major updates)\n- docs/CLI_REFERENCE.md - cleanup, compact references\n- docs/QUICKSTART.md - compact, cleanup references\n- docs/FAQ.md - compact references\n- docs/TROUBLESHOOTING.md - compact references\n- docs/DELETIONS.md - compact reference\n- docs/CONFIG.md - compact reference\n- skills/beads/SKILL.md - compact reference\n- commands/compact.md - update all examples\n- examples/compaction/README.md - update examples\n\n## Files to create\n- cmd/bd/admin.go\n\n## Files to modify\n- cmd/bd/cleanup.go\n- cmd/bd/compact.go\n- cmd/bd/reset.go\n- cmd/bd/main.go (aliases)\n- Multiple docs (see list above)\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T15:10:41.836341-08:00","created_by":"mayor","updated_at":"2025-12-27T16:07:30.707323-08:00","closed_at":"2025-12-27T16:07:30.707323-08:00"} +{"id":"bd-3thcj","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T15:52:37.841823-08:00","updated_at":"2026-01-13T15:52:37.92722-08:00","closed_at":"2026-01-13T15:52:37.92722-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-3tqg","title":"GHI #880: Failures with exit status 128 due to path casing mismatch on macOS","description":"GitHub Issue #880: Failures with exit status 128 due to path casing mismatch on macOS\n\nhttps://github.com/steveyegge/beads/issues/880","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-04T11:22:17.542481-08:00","updated_at":"2026-01-04T15:22:08.703599-08:00","closed_at":"2026-01-04T11:44:45.480749-08:00","close_reason":"Fixed in commit 566012c1 - paths now normalized using EvalSymlinks for case-insensitive filesystem support","created_by":"mayor"} +{"id":"bd-3u8m","title":"Create bd admin parent command and nest cleanup/compact/reset","description":"## Task\nCreate new `bd admin` parent command and move:\n- `bd cleanup` → `bd admin cleanup`\n- `bd compact` → `bd admin compact`\n- `bd reset` → `bd admin reset`\n\n## Implementation\n\n### 1. Create admin.go\nNew file with parent command:\n```go\nvar adminCmd = \u0026cobra.Command{\n Use: \"admin\",\n Short: \"Administrative commands for database maintenance\",\n Long: `Administrative commands for beads database maintenance.\n\nThese commands are for advanced users and should be used carefully:\n cleanup Delete closed issues and prune expired tombstones\n compact Compact old closed issues to save space\n reset Remove all beads data and configuration\n\nFor routine operations, prefer 'bd doctor --fix'.`,\n}\n\nfunc init() {\n rootCmd.AddCommand(adminCmd)\n adminCmd.AddCommand(cleanupCmd)\n adminCmd.AddCommand(compactCmd)\n adminCmd.AddCommand(resetCmd)\n}\n```\n\n### 2. Update cleanup.go, compact.go, reset.go\n- Remove `rootCmd.AddCommand()` from each init()\n- Keep all existing functionality\n\n### 3. Create hidden aliases for backwards compatibility\nTop-level hidden commands that forward to admin subcommands.\n\n### 4. Update docs (major updates)\n- docs/CLI_REFERENCE.md - cleanup, compact references\n- docs/QUICKSTART.md - compact, cleanup references\n- docs/FAQ.md - compact references\n- docs/TROUBLESHOOTING.md - compact references\n- docs/DELETIONS.md - compact reference\n- docs/CONFIG.md - compact reference\n- skills/beads/SKILL.md - compact reference\n- commands/compact.md - update all examples\n- examples/compaction/README.md - update examples\n\n## Files to create\n- cmd/bd/admin.go\n\n## Files to modify\n- cmd/bd/cleanup.go\n- cmd/bd/compact.go\n- cmd/bd/reset.go\n- cmd/bd/main.go (aliases)\n- Multiple docs (see list above)\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T15:10:41.836341-08:00","updated_at":"2025-12-27T16:07:30.707323-08:00","closed_at":"2025-12-27T16:07:30.707323-08:00","created_by":"mayor"} {"id":"bd-3uje","title":"Test issue for pin --for","description":"Testing the pin --for flag","status":"tombstone","priority":3,"issue_type":"task","created_at":"2025-12-22T02:53:43.075522-08:00","updated_at":"2025-12-22T02:54:07.973855-08:00","deleted_at":"2025-12-22T02:54:07.973855-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} {"id":"bd-3x9o","title":"Merge: bd-by0d","description":"branch: polecat/furiosa\ntarget: main\nsource_issue: bd-by0d\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-19T23:21:26.817906-08:00","updated_at":"2025-12-20T23:17:26.998785-08:00","closed_at":"2025-12-20T23:17:26.998785-08:00"} -{"id":"bd-3yfs","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:14:37.947517-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:14:37.981335-08:00","closed_at":"2026-01-07T00:14:37.981335-08:00","close_reason":"auto-closed session event"} +{"id":"bd-3yfs","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:14:37.947517-08:00","updated_at":"2026-01-07T00:14:37.981335-08:00","closed_at":"2026-01-07T00:14:37.981335-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-3zm7","title":"bd mol advance: Step through molecule execution","description":"Implement bd mol advance for stepping through molecules.\n\n## Command\n\n```bash\nbd mol advance \u003cmol-id\u003e\n```\n\n## Behavior\n\n1. Load molecule state from .beads/molecules/\u003cmol-id\u003e.state.yaml\n2. Find current step\n3. Mark current step completed\n4. Find next available step (respecting needs/deps)\n5. Update state file\n6. Output next step info (or COMPLETE if done)\n\n## Step State Machine\n\n```\npending → in_progress → completed\n```\n\nWhen advancing:\n- Current step: in_progress → completed\n- Next step: pending → in_progress\n\n## Output\n\n```bash\n$ bd mol advance mol-deacon-patrol\n✓ Step inbox-check completed\n→ Next step: spawn-work\n\nTitle: Spawn polecat for ready work\nDescription: ...\n```\n\nOr if complete:\n```bash\n$ bd mol advance mol-deacon-patrol\n✓ Step self-inspect completed\n✓ Molecule COMPLETE\n\nRun bd mol reset to loop, or gt handoff to cycle.\n```\n\n## Files\n\n- cmd/bd/mol_advance.go\n- internal/mol/state.go","status":"closed","priority":0,"issue_type":"task","created_at":"2025-12-24T15:53:31.832867-08:00","updated_at":"2025-12-24T16:53:13.244739-08:00","closed_at":"2025-12-24T16:53:13.244739-08:00","dependencies":[{"issue_id":"bd-3zm7","depends_on_id":"bd-hulf","type":"blocks","created_at":"2025-12-24T15:53:49.233523-08:00","created_by":"daemon"}]} {"id":"bd-3zzh","title":"Merge: bd-tvu3","description":"branch: polecat/Beader\ntarget: main\nsource_issue: bd-tvu3\nrig: beads","status":"closed","priority":1,"issue_type":"merge-request","created_at":"2025-12-23T13:36:55.016496-08:00","updated_at":"2025-12-23T19:12:08.347363-08:00","closed_at":"2025-12-23T19:12:08.347363-08:00"} {"id":"bd-401h","title":"Work on beads-7jl: Fix Windows installer file locking iss...","description":"Work on beads-7jl: Fix Windows installer file locking issue (GH#652). Close file handle before extraction in postinstall.js. When done, submit MR (not PR) to integration branch for Refinery.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-19T22:55:57.873767-08:00","updated_at":"2025-12-19T23:20:05.747664-08:00","closed_at":"2025-12-19T23:20:05.747664-08:00"} -{"id":"bd-404kp","title":"Review \u0026 merge PR #1023: fix(mcp) custom issue types","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #1023: https://github.com/steveyegge/beads/pull/1023\n\n## Summary\nMCP server fails with Pydantic validation when listing custom issue types (agent, molecule, event). Changed IssueType/IssueStatus from Literal to str.\n\n## Changes\n- integrations/beads-mcp/src/beads_mcp/models.py - Change Literal to str\n- integrations/beads-mcp/src/beads_mcp/server.py - Update help text\n- integrations/beads-mcp/src/beads_mcp/tools.py - Update annotations\n\n## Review Checklist\n- [ ] Pull the branch locally\n- [ ] Verify MCP tests pass (if any)\n- [ ] Test with custom issue types\n- [ ] Merge with gh pr merge 1023 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/wolf","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:14:13.637488-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T18:17:19.336854-08:00","closed_at":"2026-01-11T18:17:19.336854-08:00","close_reason":"Merged PR #1023 with squash. Changes allow MCP to support custom issue types/statuses configured via bd config."} +{"id":"bd-404kp","title":"Review \u0026 merge PR #1023: fix(mcp) custom issue types","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #1023: https://github.com/steveyegge/beads/pull/1023\n\n## Summary\nMCP server fails with Pydantic validation when listing custom issue types (agent, molecule, event). Changed IssueType/IssueStatus from Literal to str.\n\n## Changes\n- integrations/beads-mcp/src/beads_mcp/models.py - Change Literal to str\n- integrations/beads-mcp/src/beads_mcp/server.py - Update help text\n- integrations/beads-mcp/src/beads_mcp/tools.py - Update annotations\n\n## Review Checklist\n- [ ] Pull the branch locally\n- [ ] Verify MCP tests pass (if any)\n- [ ] Test with custom issue types\n- [ ] Merge with gh pr merge 1023 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T18:14:13.637488-08:00","updated_at":"2026-01-11T18:17:19.336854-08:00","closed_at":"2026-01-11T18:17:19.336854-08:00","close_reason":"Merged PR #1023 with squash. Changes allow MCP to support custom issue types/statuses configured via bd config.","created_by":"beads/crew/emma"} {"id":"bd-40a0","title":"bd doctor should check for multiple DBs, multiple JSONLs, daemon health","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-10-31T21:16:47.042913-07:00","updated_at":"2025-10-31T21:21:27.093525-07:00","closed_at":"2025-10-31T21:21:27.093525-07:00"} -{"id":"bd-40c2","title":"bd init --from-jsonl: Skip git history scan","description":"## Problem\n\n`bd init` scans git history to find all issues ever created, which:\n- Resurrects deleted/compacted issues\n- Takes a long time on large repos\n- Defeats manual JSONL cleanup\n\n## Solution\n\nAdd `bd init --from-jsonl` flag that:\n1. Creates fresh database\n2. Imports ONLY from current .beads/issues.jsonl\n3. Skips git history scan entirely\n\n## Use Case\n\nAfter manually cleaning JSONL or receiving a clean JSONL from another source:\n```bash\n# Clean JSONL manually or via script\nbd init --from-jsonl # Use current JSONL as-is\n```\n\n(Moved from hq-c21fj)","status":"closed","priority":3,"issue_type":"feature","created_at":"2026-01-02T01:37:20.481211-08:00","created_by":"gastown/crew/joe","updated_at":"2026-01-02T12:41:30.784964-08:00","closed_at":"2026-01-02T12:41:30.784964-08:00","close_reason":"Duplicate of bd-c0b6"} -{"id":"bd-40ceb","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:37:41.200328-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T18:37:41.240457-08:00","closed_at":"2026-01-09T18:37:41.240457-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-40pnp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:58:21.282415-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:58:21.331823-08:00","closed_at":"2026-01-11T19:58:21.331823-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-40c2","title":"bd init --from-jsonl: Skip git history scan","description":"## Problem\n\n`bd init` scans git history to find all issues ever created, which:\n- Resurrects deleted/compacted issues\n- Takes a long time on large repos\n- Defeats manual JSONL cleanup\n\n## Solution\n\nAdd `bd init --from-jsonl` flag that:\n1. Creates fresh database\n2. Imports ONLY from current .beads/issues.jsonl\n3. Skips git history scan entirely\n\n## Use Case\n\nAfter manually cleaning JSONL or receiving a clean JSONL from another source:\n```bash\n# Clean JSONL manually or via script\nbd init --from-jsonl # Use current JSONL as-is\n```\n\n(Moved from hq-c21fj)","status":"closed","priority":3,"issue_type":"feature","created_at":"2026-01-02T01:37:20.481211-08:00","updated_at":"2026-01-02T12:41:30.784964-08:00","closed_at":"2026-01-02T12:41:30.784964-08:00","close_reason":"Duplicate of bd-c0b6","created_by":"gastown/crew/joe"} +{"id":"bd-40ceb","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:37:41.200328-08:00","updated_at":"2026-01-09T18:37:41.240457-08:00","closed_at":"2026-01-09T18:37:41.240457-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-40pnp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:58:21.282415-08:00","updated_at":"2026-01-11T19:58:21.331823-08:00","closed_at":"2026-01-11T19:58:21.331823-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-411u","title":"Document BEADS_DIR pattern for multi-agent workspaces (Gas Town)","description":"Gas Town and similar multi-agent systems need to configure separate beads databases per workspace/rig, distinct from any project-level beads.\n\n## Use Case\n\nIn Gas Town:\n- Each 'rig' (managed project) has multiple agents (polecats, refinery, witness)\n- All agents in a rig should share a single beads database at the rig level\n- This should be separate from any .beads/ the project itself uses\n- The BEADS_DIR env var enables this\n\n## Documentation Needed\n\n1. Add a section to docs explaining BEADS_DIR for multi-agent setups\n2. Example: setting BEADS_DIR in agent startup scripts/hooks\n3. Clarify interaction with project-level .beads/ (BEADS_DIR takes precedence)\n\n## Current Support\n\nAlready implemented in internal/beads/beads.go:FindDatabasePath():\n- BEADS_DIR env var is checked first (preferred)\n- BEADS_DB env var still supported (deprecated)\n- Falls back to .beads/ search in tree\n\nJust needs documentation for the multi-agent workspace pattern.","status":"hooked","priority":3,"issue_type":"task","created_at":"2025-12-15T22:08:22.158027-08:00","updated_at":"2025-12-30T15:44:43.351778-08:00"} {"id":"bd-43xj","title":"Add thread-safety warning to git.ResetCaches() doc comment","description":"Code review finding from bd-7di fix.\n\nResetCaches() reassigns sync.Once values which is not thread-safe. While this is only used in tests (which are single-threaded), the function is exported and could be misused.\n\nAdd a warning comment:\n```go\n// ResetCaches resets all cached git information.\n// WARNING: Not thread-safe. Only call from single-threaded test contexts.\n```\n\nFile: internal/git/gitdir.go","status":"closed","priority":4,"issue_type":"task","created_at":"2025-12-25T22:08:51.125399-08:00","updated_at":"2025-12-25T22:43:54.508097-08:00","closed_at":"2025-12-25T22:43:54.508097-08:00"} {"id":"bd-4462","title":"Test basic bd commands in WASM (init, create, list)","description":"Compile and verify basic bd functionality works in WASM:\n- Test bd init --quiet\n- Test bd create with simple issue\n- Test bd list --json output\n- Verify SQLite database creation and queries work\n- Document any runtime issues or workarounds needed","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-02T21:58:07.291771-08:00","updated_at":"2025-11-02T23:07:10.273212-08:00","closed_at":"2025-11-02T23:07:10.273212-08:00","dependencies":[{"issue_id":"bd-4462","depends_on_id":"bd-44d0","type":"parent-child","created_at":"2025-11-02T22:23:49.448668-08:00","created_by":"stevey"},{"issue_id":"bd-4462","depends_on_id":"bd-b4b0","type":"blocks","created_at":"2025-11-02T22:23:55.596771-08:00","created_by":"stevey"}]} {"id":"bd-44d0","title":"WASM port of bd for Claude Code Web sandboxes","description":"Enable beads to work in Claude Code Web sandboxes by compiling bd to WebAssembly.\n\n## Problem\nClaude Code Web sandboxes cannot install bd CLI due to network restrictions:\n- GitHub releases return 403\n- go install fails with DNS errors\n- Binary cannot be downloaded\n\n## Solution\nCompile bd Go codebase to WASM, publish to npm as drop-in replacement.\n\n## Technical Approach\n- Use GOOS=js GOARCH=wasm to compile bd\n- modernc.org/sqlite already supports js/wasm target\n- Publish to npm as bd-wasm package\n- Full feature parity with bd CLI\n\n## Success Criteria\n- bd-wasm installs via npm in web sandbox\n- All core bd commands work identically\n- JSONL output matches native bd\n- Performance within 2x of native","notes":"WASM port abandoned - Claude Code Web has full VMs not browser restrictions. Better: npm + native binary","status":"closed","priority":0,"issue_type":"epic","created_at":"2025-11-02T18:32:27.660794-08:00","updated_at":"2025-12-14T12:12:46.553661-08:00","closed_at":"2025-11-02T23:36:38.679515-08:00"} {"id":"bd-44e","title":"Ensure deletions.jsonl is tracked in git","description":"Parent: bd-imj\n\nEnsure deletions.jsonl is tracked in git (not ignored).\n\nUpdate bd init and gitignore upgrade logic to:\n1. NOT add deletions.jsonl to .gitignore\n2. Ensure it is committed alongside beads.jsonl\n\nThe file must be in git for cross-clone propagation to work.\n\nAcceptance criteria:\n- bd init does not ignore deletions.jsonl\n- Existing .gitignore files are not broken\n- File appears in git status when modified","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-25T09:57:21.663196-08:00","updated_at":"2025-11-25T14:55:43.225883-08:00","closed_at":"2025-11-25T14:55:43.225883-08:00"} -{"id":"bd-44u2","title":"Merge: obsidian-mjxbi027","description":"branch: polecat/obsidian-mjxbi027\ntarget: main\nsource_issue: obsidian-mjxbi027\nrig: beads\nagent_bead: bd-beads-polecat-obsidian","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T12:27:34.180445-08:00","created_by":"beads/polecats/obsidian","updated_at":"2026-01-02T13:41:56.628182-08:00","closed_at":"2026-01-02T13:41:56.628182-08:00","close_reason":"Branches merged, cleaning up stale MR beads"} -{"id":"bd-450ug","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:30:16.607791-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-09T22:30:16.645155-08:00","closed_at":"2026-01-09T22:30:16.645155-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-45td","title":"Refactor: Extract shared child-fetching logic in swarm.go","description":"Lines 162-181 (analyzeEpicForSwarm) and 630-649 (getSwarmStatus) have identical logic for fetching epic children via parent-child dependencies.\n\nExtract to a shared helper function like:\n\n```go\nfunc getEpicChildren(ctx context.Context, s StorageInterface, epicID string) ([]*types.Issue, error)\n```\n\nThis will reduce duplication and ensure consistent behavior between validate/status/create commands.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T21:37:54.16697-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T21:54:58.827802-08:00","closed_at":"2025-12-28T21:54:58.827802-08:00","dependencies":[{"issue_id":"bd-45td","depends_on_id":"bd-2ubv","type":"parent-child","created_at":"2025-12-28T21:38:44.705879-08:00","created_by":"daemon"}]} +{"id":"bd-44u2","title":"Merge: obsidian-mjxbi027","description":"branch: polecat/obsidian-mjxbi027\ntarget: main\nsource_issue: obsidian-mjxbi027\nrig: beads\nagent_bead: bd-beads-polecat-obsidian","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T12:27:34.180445-08:00","updated_at":"2026-01-02T13:41:56.628182-08:00","closed_at":"2026-01-02T13:41:56.628182-08:00","close_reason":"Branches merged, cleaning up stale MR beads","created_by":"beads/polecats/obsidian"} +{"id":"bd-450ug","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:30:16.607791-08:00","updated_at":"2026-01-09T22:30:16.645155-08:00","closed_at":"2026-01-09T22:30:16.645155-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/grip"} +{"id":"bd-45td","title":"Refactor: Extract shared child-fetching logic in swarm.go","description":"Lines 162-181 (analyzeEpicForSwarm) and 630-649 (getSwarmStatus) have identical logic for fetching epic children via parent-child dependencies.\n\nExtract to a shared helper function like:\n\n```go\nfunc getEpicChildren(ctx context.Context, s StorageInterface, epicID string) ([]*types.Issue, error)\n```\n\nThis will reduce duplication and ensure consistent behavior between validate/status/create commands.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T21:37:54.16697-08:00","updated_at":"2025-12-28T21:54:58.827802-08:00","closed_at":"2025-12-28T21:54:58.827802-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-45td","depends_on_id":"bd-2ubv","type":"parent-child","created_at":"2025-12-28T21:38:44.705879-08:00","created_by":"daemon"}]} {"id":"bd-46381404","title":"Test database naming","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-27T18:27:28.309676-07:00","updated_at":"2025-10-31T12:00:43.185201-07:00","closed_at":"2025-10-31T12:00:43.185201-07:00"} -{"id":"bd-46t4p","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T07:17:27.930539-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T07:17:27.974094-08:00","closed_at":"2026-01-11T07:17:27.974094-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-4747z","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:27:51.534844-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T18:27:51.580883-08:00","closed_at":"2026-01-11T18:27:51.580883-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-46t4p","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T07:17:27.930539-08:00","updated_at":"2026-01-11T07:17:27.974094-08:00","closed_at":"2026-01-11T07:17:27.974094-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-4747z","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T18:27:51.534844-08:00","updated_at":"2026-01-11T18:27:51.580883-08:00","closed_at":"2026-01-11T18:27:51.580883-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-47qx","title":"bd cook: Proto ID prefix should match project prefix","description":"When `bd cook` creates a proto, it uses the formula name as the proto ID:\n\n```yaml\nformula: mol-deacon-patrol\n```\n\nCreates proto with ID `mol-deacon-patrol`.\n\n## Problem\n\nIf the project uses a different prefix (e.g., `gt-`), the cooked protos have \na different prefix (`mol-`), causing:\n\n1. `bd sync` import warnings about prefix mismatch\n2. Mixed prefix lists in `bd mol list`\n3. Confusion about naming conventions\n\n## Options\n\n1. **Use project prefix**: Cook as `gt-mol-deacon-patrol`\n2. **Allow mol- as special prefix**: Recognize mol-* as valid for protos\n3. **Make prefix configurable**: `bd cook --prefix gt-`\n4. **Keep current behavior**: Document that formulas use their own namespace\n\n## Current Workaround\n\nThe prefix mismatch warning can be ignored, but `bd sync` fails the import step.\n\n## Related\n\ngt-i6k1: Duplicate proto cleanup","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-24T13:50:24.631336-08:00","updated_at":"2025-12-24T13:59:09.933374-08:00","closed_at":"2025-12-24T13:59:09.933374-08:00"} {"id":"bd-47tn","title":"Add bd daemon --stop-all command to kill all daemon processes","description":"Currently there's no easy way to stop all running bd daemon processes. Users must resort to pkill -f 'bd daemon' or similar shell commands.\n\nAdd a --stop-all flag to bd daemon that:\n1. Finds all running bd daemon processes (not just the current repo's daemon)\n2. Gracefully stops them all\n3. Reports how many were stopped\n\nThis is useful when:\n- Multiple daemons are running and causing race conditions\n- User wants a clean slate before running bd sync\n- Debugging daemon-related issues","status":"tombstone","priority":2,"issue_type":"feature","created_at":"2025-12-13T06:34:45.080633-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"feature"} -{"id":"bd-495i6","title":"Merge: topaz-mk9abkx5","description":"branch: polecat/topaz-mk9abkx5\ntarget: main\nsource_issue: topaz-mk9abkx5\nrig: beads\nagent_bead: bd-beads-polecat-topaz\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T21:31:31.043597-08:00","created_by":"stevey","updated_at":"2026-01-10T21:53:13.173233-08:00","closed_at":"2026-01-10T21:53:13.173233-08:00","close_reason":"Branch no longer exists on remote","labels":["gt:merge-request"]} +{"id":"bd-495i6","title":"Merge: topaz-mk9abkx5","description":"branch: polecat/topaz-mk9abkx5\ntarget: main\nsource_issue: topaz-mk9abkx5\nrig: beads\nagent_bead: bd-beads-polecat-topaz\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T21:31:31.043597-08:00","updated_at":"2026-01-10T21:53:13.173233-08:00","closed_at":"2026-01-10T21:53:13.173233-08:00","close_reason":"Branch no longer exists on remote","created_by":"stevey"} {"id":"bd-49kw","title":"Workaround for FastMCP outputSchema bug in Claude Code","description":"The beads MCP server (v0.23.1) successfully connects to Claude Code, but all tools fail to load with a schema validation error due to a bug in FastMCP 2.13.1.\n\nError: \"Invalid literal value, expected \\\"object\\\"\" in outputSchema.\n\nRoot Cause: FastMCP generates outputSchema with $ref at root level without \"type\": \"object\" for self-referential models (Issue).\n\nWorkaround: Use slash commands (/beads:ready) or wait for FastMCP fix.\n","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-20T18:55:39.041831-05:00","updated_at":"2025-12-23T23:49:44.371623-08:00","closed_at":"2025-12-23T23:49:44.371623-08:00"} {"id":"bd-49oe","title":"Cache GetGitDir() for additional optimization","description":"Code review finding from bd-7di fix.\n\nGetGitDir() at line 17 is not cached but is called by:\n- GetGitHooksDir()\n- GetGitRefsDir()\n- GetGitHeadPath()\n\nIf any of those are called multiple times, we still spawn extra git processes. Consider adding sync.Once caching similar to the other functions.\n\nFile: internal/git/gitdir.go","status":"closed","priority":4,"issue_type":"task","created_at":"2025-12-25T22:08:52.736529-08:00","updated_at":"2026-01-04T15:22:08.706244-08:00","closed_at":"2025-12-30T22:14:16.659122-08:00","close_reason":"Already implemented. GetGitDir() uses getGitContext() which is cached via sync.Once. The gitContext struct (line 13-19) holds gitDir and is populated once by initGitContext(). All dependent functions (GetGitHooksDir, GetGitRefsDir, GetGitHeadPath) benefit from this caching. No changes needed."} -{"id":"bd-49qzb","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:30:39.669568-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T19:30:39.736008-08:00","closed_at":"2026-01-12T19:30:39.736008-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-49qzb","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:30:39.669568-08:00","updated_at":"2026-01-12T19:30:39.736008-08:00","closed_at":"2026-01-12T19:30:39.736008-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} {"id":"bd-4aao","title":"Fix failing integration tests in beads-mcp","description":"The `beads-mcp` test suite has failures in `tests/test_bd_client_integration.py` (assertion error in `test_init_creates_beads_directory`) and errors in `tests/test_worktree_separate_dbs.py` (setup failures finding database). These need to be investigated and fixed to ensure a reliable CI baseline.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-20T18:53:28.4803-05:00","updated_at":"2025-12-09T18:38:37.676638171-05:00","closed_at":"2025-11-25T21:39:20.967106-08:00"} {"id":"bd-4aeed709","title":"bd resolve-conflicts - Git merge conflict resolver","description":"Automatically resolve JSONL merge conflicts.\n\nModes:\n- Mechanical: ID remapping (no AI)\n- AI-assisted: Smart merge/keep decisions\n- Interactive: Review each conflict\n\nHandles \u003c\u003c\u003c\u003c\u003c\u003c\u003c conflict markers in .beads/beads.jsonl\n\nFiles: cmd/bd/resolve_conflicts.go (new)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-28T14:48:17.457619-07:00","updated_at":"2025-10-30T17:12:58.218109-07:00","closed_at":"2025-10-28T15:47:33.037021-07:00"} -{"id":"bd-4b5r","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:34:15.351132-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T17:34:15.385705-08:00","closed_at":"2026-01-07T17:34:15.385705-08:00","close_reason":"auto-closed session event"} +{"id":"bd-4b5r","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:34:15.351132-08:00","updated_at":"2026-01-07T17:34:15.385705-08:00","closed_at":"2026-01-07T17:34:15.385705-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-4b6u","title":"Update docs with multi-repo patterns","description":"Update AGENTS.md, README.md, QUICKSTART.md with multi-repo patterns. Document: config options, routing behavior, backward compatibility, troubleshooting, best practices.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-05T18:04:30.18358-08:00","updated_at":"2025-11-06T19:53:04.721589-08:00","closed_at":"2025-11-06T19:53:04.721589-08:00","dependencies":[{"issue_id":"bd-4b6u","depends_on_id":"bd-8rd","type":"parent-child","created_at":"2025-11-05T18:04:39.297009-08:00","created_by":"daemon"}]} -{"id":"bd-4b7er","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T12:33:17.077288-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T12:33:17.112239-08:00","closed_at":"2026-01-09T12:33:17.112239-08:00","close_reason":"auto-closed session event"} +{"id":"bd-4b7er","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T12:33:17.077288-08:00","updated_at":"2026-01-09T12:33:17.112239-08:00","closed_at":"2026-01-09T12:33:17.112239-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-4ba5908b","title":"Implement content-hash based collision resolution for deterministic convergence","description":"The current collision resolution uses creation timestamps to decide which issue to keep vs. remap. This is non-deterministic when two clones create issues at nearly the same time.\n\nRoot cause of bd-71107098:\n- Clone A creates test-1=\"Issue from clone A\" at T0\n- Clone B creates test-1=\"Issue from clone B\" at T0+30ms\n- Clone B syncs first, remaps Clone A's to test-2\n- Clone A syncs second, sees collision, remaps Clone B's to test-2\n- Result: titles are swapped between clones\n\nSolution:\n- Use content-based hashing (title + description + priority + type)\n- Deterministic winner: always keep issue with lower hash\n- Same collision on different clones produces same result (idempotent)\n\nImplementation:\n- Modify ScoreCollisions in internal/storage/sqlite/collision.go\n- Replace timestamp-based scoring with content hash comparison\n- Ensure hash function is stable across platforms","notes":"Rename detection successfully implemented and tested!\n\n**What was implemented:**\n1. Content-hash based rename detection in DetectCollisions\n2. When importing JSONL, if an issue has different ID but same content as DB issue, treat as rename\n3. Delete old ID and accept new ID from JSONL\n4. Added post-import re-export in sync command to flush rename changes\n5. Added post-import commit to capture rename changes\n\n**Test results:**\nTestTwoCloneCollision now shows full convergence:\n- Clone A: test-2=\"Issue from clone A\", test-1=\"Issue from clone B\"\n- Clone B: test-1=\"Issue from clone B\", test-2=\"Issue from clone A\"\n\nBoth clones have **identical content** (titles match IDs correctly). Only timestamps differ (expected).\n\n**What remains:**\n- Test still expects exact JSON match including timestamps\n- Could normalize timestamp comparison, but content convergence is the critical success metric\n- The two-clone collision workflow now works without data corruption!","status":"closed","priority":0,"issue_type":"task","created_at":"2025-10-28T17:04:11.530026-07:00","updated_at":"2025-10-30T17:12:58.225987-07:00","closed_at":"2025-10-28T17:18:27.777019-07:00","dependencies":[{"issue_id":"bd-4ba5908b","depends_on_id":"bd-71107098","type":"blocks","created_at":"2025-10-28T17:04:18.149604-07:00","created_by":"daemon"}]} {"id":"bd-4bsb","title":"Code review findings: mol squash deletion bypasses tombstones","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-21T13:57:14.154316-08:00","updated_at":"2025-12-21T18:01:06.811216-08:00","closed_at":"2025-12-21T18:01:06.811216-08:00","dependencies":[{"issue_id":"bd-4bsb","depends_on_id":"bd-2vh3.3","type":"discovered-from","created_at":"2025-12-21T13:57:14.155488-08:00","created_by":"daemon"}]} -{"id":"bd-4bt1","title":"Add gate field to Step schema in formula types","description":"Add Gate field to Step struct in internal/formula/types.go.\n\n## Implementation\n\n```go\ntype Step struct {\n // ... existing fields ...\n \n // Gate defines an async wait condition for this step.\n Gate *GateDef `json:\"gate,omitempty\"`\n}\n\ntype GateDef struct {\n Type string `json:\"type\"` // timer, gh:run, gh:pr, bead, human\n Workflow string `json:\"workflow,omitempty\"` // GitHub workflow name\n Timeout string `json:\"timeout,omitempty\"` // Max wait before escalation\n AwaitID string `json:\"await_id,omitempty\"` // Explicit condition ID\n}\n```\n\n## Acceptance Criteria\n- [ ] GateDef struct defined\n- [ ] Step.Gate field added\n- [ ] TOML and JSON parsing works\n- [ ] Tests for gate field parsing","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-02T13:27:14.449821-08:00","created_by":"mayor","updated_at":"2026-01-04T15:22:08.70007-08:00","closed_at":"2026-01-02T13:43:33.220895-08:00","close_reason":"Added tests for gate field parsing. Gate struct and Step.Gate field already existed. Tests verify JSON and TOML parsing works correctly.","dependencies":[{"issue_id":"bd-4bt1","depends_on_id":"bd-d1n1","type":"parent-child","created_at":"2026-01-02T13:28:06.993383-08:00","created_by":"mayor"}]} +{"id":"bd-4bt1","title":"Add gate field to Step schema in formula types","description":"Add Gate field to Step struct in internal/formula/types.go.\n\n## Implementation\n\n```go\ntype Step struct {\n // ... existing fields ...\n \n // Gate defines an async wait condition for this step.\n Gate *GateDef `json:\"gate,omitempty\"`\n}\n\ntype GateDef struct {\n Type string `json:\"type\"` // timer, gh:run, gh:pr, bead, human\n Workflow string `json:\"workflow,omitempty\"` // GitHub workflow name\n Timeout string `json:\"timeout,omitempty\"` // Max wait before escalation\n AwaitID string `json:\"await_id,omitempty\"` // Explicit condition ID\n}\n```\n\n## Acceptance Criteria\n- [ ] GateDef struct defined\n- [ ] Step.Gate field added\n- [ ] TOML and JSON parsing works\n- [ ] Tests for gate field parsing","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-02T13:27:14.449821-08:00","updated_at":"2026-01-04T15:22:08.70007-08:00","closed_at":"2026-01-02T13:43:33.220895-08:00","close_reason":"Added tests for gate field parsing. Gate struct and Step.Gate field already existed. Tests verify JSON and TOML parsing works correctly.","created_by":"mayor","dependencies":[{"issue_id":"bd-4bt1","depends_on_id":"bd-d1n1","type":"parent-child","created_at":"2026-01-02T13:28:06.993383-08:00","created_by":"mayor"}]} {"id":"bd-4c18","title":"bd delete fails to find closed issues","description":"## Steps to Reproduce\n1. Close some issues with `bd close`\n2. Try to delete them with `bd delete \u003cids\u003e --force`\n3. Get error \"issues not found\"\n\n## Expected Behavior\nShould delete the closed issues\n\n## Actual Behavior\n```\nError: issues not found: bd-74ee, bd-9b13, bd-72w, bd-149, bd-5iv, bd-78w\n```\n\nBut `bd list --status closed --json` shows they exist.\n\n## Root Cause\nLikely the delete command is only looking for open issues, or there's a race condition with auto-import.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-03T20:57:31.763179-08:00","updated_at":"2025-11-03T21:31:18.677629-08:00","closed_at":"2025-11-03T21:31:18.677629-08:00"} {"id":"bd-4cyb","title":"Test graceful degradation when server unavailable","description":"Verify that agents continue working normally when Agent Mail server is stopped or unreachable.\n\nAcceptance Criteria:\n- Agent detects server unavailable on startup\n- Logs \"falling back to Beads-only mode\"\n- All bd commands work normally\n- Agent can claim issues (no reservations, like today)\n- Git sync operates as normal\n- No errors or crashes\n\nSuccess Metric: Zero functional difference when Agent Mail unavailable","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-07T22:42:00.094481-08:00","updated_at":"2025-11-08T00:20:29.841174-08:00","closed_at":"2025-11-08T00:20:29.841174-08:00","dependencies":[{"issue_id":"bd-4cyb","depends_on_id":"bd-6hji","type":"blocks","created_at":"2025-11-07T23:03:53.054449-08:00","created_by":"daemon"}]} {"id":"bd-4d7fca8a","title":"Add tests for internal/utils package","description":"Currently 0.0% coverage. Need tests for utility functions including issue ID parsing and validation.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T14:06:24.066403-07:00","updated_at":"2025-12-14T12:12:46.521483-08:00","closed_at":"2025-11-08T17:57:28.956561-08:00","dependencies":[{"issue_id":"bd-4d7fca8a","depends_on_id":"bd-0dcea000","type":"blocks","created_at":"2025-10-29T19:52:05.529982-07:00","created_by":"import-remap"}]} {"id":"bd-4d80b7b1","title":"Investigate and upgrade to modernc.org/sqlite 1.39.1+","description":"We had to pin modernc.org/sqlite to v1.38.2 due to a FOREIGN KEY constraint regression in v1.39.1 (SQLite 3.50.4).\n\n**Issue:** [deleted:bd-cb64c226.2], GH #144\n\n**Symptom:** CloseIssue fails with \"FOREIGN KEY constraint failed (787)\" when called via MCP/daemon, but works fine via CLI.\n\n**Root Cause:** Unknown - likely stricter FK enforcement in SQLite 3.50.4 or modernc.org wrapper changes.\n\n**Workaround:** Pinned to v1.38.2 (SQLite 3.49.x)\n\n**TODO:**\n1. Monitor modernc.org/sqlite releases for fixes\n2. Check SQLite 3.50.5+ changelogs for FK-related fixes\n3. Investigate why daemon mode fails but CLI succeeds (connection reuse? transaction isolation?)\n4. Consider filing upstream issue with reproducible test case\n5. Upgrade when safe","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-24T11:49:12.836292-07:00","updated_at":"2025-12-14T12:12:46.499041-08:00","closed_at":"2025-11-07T14:55:51.908404-08:00"} -{"id":"bd-4d9d","title":"Test epic for duplicate swarm","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-28T21:56:57.256997-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-29T13:40:29.716788-08:00","closed_at":"2025-12-29T13:40:29.716788-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates"} +{"id":"bd-4d9d","title":"Test epic for duplicate swarm","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-28T21:56:57.256997-08:00","updated_at":"2025-12-29T13:40:29.716788-08:00","closed_at":"2025-12-29T13:40:29.716788-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates","created_by":"beads/crew/dave"} {"id":"bd-4dkd","title":"Digest: beads-release","description":"Released beads v0.46.0 - includes v0.45.0 changes (custom types, Gas Town types, gate workflow fixes)","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-07T00:11:29.107016-08:00","updated_at":"2026-01-07T00:11:29.107016-08:00","closed_at":"2026-01-07T00:11:29.106941-08:00","close_reason":"Squashed from 19 wisps","dependencies":[{"issue_id":"bd-4dkd","depends_on_id":"bd-wisp-dj0","type":"parent-child","created_at":"2026-01-07T00:11:29.107726-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-4e21b5ad","title":"Add test case for symmetric collision (both clones create same ID simultaneously)","description":"TestTwoCloneCollision demonstrates the problem, but we need a simpler unit test for the collision resolver itself.\n\nTest should verify:\n- Two issues with same ID, different content\n- Content hash determines winner deterministically \n- Result is same regardless of which clone imports first\n- No title swapping occurs\n\nThis can be a simpler test than the full integration test.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T17:46:10.046999-07:00","updated_at":"2025-10-31T12:00:43.196705-07:00","closed_at":"2025-10-31T12:00:43.196705-07:00"} {"id":"bd-4ec8","title":"Widespread double JSON encoding bug in daemon mode RPC calls","description":"Multiple CLI commands had the same double JSON encoding bug found in bd-1048. All commands that called ResolveID via RPC used string(resp.Data) instead of properly unmarshaling the JSON response. This caused IDs to retain JSON quotes (\"bd-1048\" instead of bd-1048), which then got double-encoded when passed to subsequent RPC calls.\n\nAffected commands:\n- bd show (3 instances)\n- bd dep add/remove/tree (5 instances)\n- bd label add/remove/list (3 instances)\n- bd reopen (1 instance)\n\nRoot cause: resp.Data is json.RawMessage (already JSON-encoded), so string() conversion preserves quotes.\n\nFix: Replace all string(resp.Data) with json.Unmarshal(resp.Data, \u0026id) for proper deserialization.\n\nAll commands now tested and working correctly with daemon mode.","status":"tombstone","priority":0,"issue_type":"bug","created_at":"2025-11-02T22:33:01.632691-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-4ew","title":"bd doctor should detect fresh clone and recommend 'bd init'","description":"When running `bd doctor` on a fresh clone (JSONL exists, no .db file), it should:\n\n1. Detect this is a fresh clone situation\n2. Recommend `bd init --prefix \u003cdetected-prefix\u003e` as the fix\n3. Show the prefix detected from the JSONL file\n\nCurrently it shows various warnings (git hooks, merge driver, etc.) but doesn't address the fundamental issue: the database needs to be hydrated.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-27T20:21:15.691764-08:00","updated_at":"2025-12-02T17:11:19.731628399-05:00","closed_at":"2025-11-28T22:14:49.092112-08:00"} -{"id":"bd-4f43s","title":"PR Sheriff Standing Orders","description":"## Role: PR Sheriff (Emma)\n\nReview incoming PRs on steveyegge/beads and farm out \"easy wins\" to crew workers.\n\n## Easy-Win Criteria (NO human discretion needed)\n- Bug fixes with clear reproduction and solution\n- Documentation fixes (typos, broken links, clarifications)\n- Simple feature additions that align with existing patterns\n- Shell script fixes (portability, edge cases)\n- Test additions for existing functionality\n\n## NOT Easy-Wins (leave for human to review)\n- Security-related changes\n- Architectural decisions\n- API changes\n- Anything controversial or requiring product judgment\n- PRs that touch core functionality in non-obvious ways\n\n## PR States to Skip\n\n**STOP. READ THIS CAREFULLY.**\n\nThe search queries filter out PRs we do not touch. If queries return nothing,\nWE ARE DONE. Do not go hunting for more PRs. Do not run `gh pr list` without\nthe filter. Do not \"check on\" PRs that were filtered out.\n\n- **Draft PRs** - SKIP. Not ready for review.\n\n## Workflow\n\n### Phase 1: New PRs needing review\n1. Run: gh pr list --repo steveyegge/beads --state open --search \"review:none review:approved -review:changes_requested\"\n2. **If this returns nothing, proceed to Phase 2.**\n3. For each PR returned, review with: gh pr view \u003cnum\u003e --repo steveyegge/beads\n4. Categorize: easy-win, needs-human, or skip (spam/stale)\n5. For easy-wins: create bead, sling to available crew worker\n6. Track assignments in beads\n\n### Phase 2: Re-review PRs with new activity\nCheck for PRs where changes were requested but contributor has pushed new commits.\n\n1. Run: gh pr list --repo steveyegge/beads --search \"review:changes_requested reviewed-by:@me\"\n2. **If this returns nothing, you are DONE.**\n3. For each PR, check if new commits exist since review:\n gh pr view \u003cnum\u003e --repo steveyegge/beads --json reviews,commits --jq '{last_review: .reviews[-1].submittedAt, last_commit: .commits[-1].committedDate}'\n4. If last_commit \u003e last_review, the contributor likely addressed feedback\n5. Review the current diff, verify issues were fixed\n6. If all issues fixed: approve and merge (or flag for human if not easy-win)\n7. If issues remain: add comment noting what still needs work\n\n## Available Crew\n- dave, fang, giles, grip, wolf\n\n## Commands\n- gh pr list --repo steveyegge/beads --state open --search \"review:none review:approved -review:changes_requested\"\n- gh pr list --repo steveyegge/beads --search \"review:changes_requested reviewed-by:@me\"\n- gh pr view \u003cnum\u003e --repo steveyegge/beads\n- gh pr view \u003cnum\u003e --repo steveyegge/beads --json reviews,commits --jq '{last_review: .reviews[-1].submittedAt, last_commit: .commits[-1].committedDate}'\n- gh pr diff \u003cnum\u003e --repo steveyegge/beads\n- gt sling \u003cbead-id\u003e beads/crew/\u003cname\u003e -m \"context\"\n","status":"tombstone","priority":1,"issue_type":"task","assignee":"beads/crew/emma","created_at":"2026-01-08T14:16:52.562453-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-13T12:58:16.311285-08:00","deleted_at":"2026-01-13T12:58:16.311285-08:00","deleted_by":"daemon","delete_reason":"Renamed to bd-pr-sheriff","original_type":"task"} +{"id":"bd-4f43s","title":"PR Sheriff Standing Orders","description":"## Role: PR Sheriff (Emma)\n\nReview incoming PRs on steveyegge/beads and farm out \"easy wins\" to crew workers.\n\n## Easy-Win Criteria (NO human discretion needed)\n- Bug fixes with clear reproduction and solution\n- Documentation fixes (typos, broken links, clarifications)\n- Simple feature additions that align with existing patterns\n- Shell script fixes (portability, edge cases)\n- Test additions for existing functionality\n\n## NOT Easy-Wins (leave for human to review)\n- Security-related changes\n- Architectural decisions\n- API changes\n- Anything controversial or requiring product judgment\n- PRs that touch core functionality in non-obvious ways\n\n## PR States to Skip\n\n**STOP. READ THIS CAREFULLY.**\n\nThe search queries filter out PRs we do not touch. If queries return nothing,\nWE ARE DONE. Do not go hunting for more PRs. Do not run `gh pr list` without\nthe filter. Do not \"check on\" PRs that were filtered out.\n\n- **Draft PRs** - SKIP. Not ready for review.\n\n## Workflow\n\n### Phase 1: New PRs needing review\n1. Run: gh pr list --repo steveyegge/beads --state open --search \"review:none review:approved -review:changes_requested\"\n2. **If this returns nothing, proceed to Phase 2.**\n3. For each PR returned, review with: gh pr view \u003cnum\u003e --repo steveyegge/beads\n4. Categorize: easy-win, needs-human, or skip (spam/stale)\n5. For easy-wins: create bead, sling to available crew worker\n6. Track assignments in beads\n\n### Phase 2: Re-review PRs with new activity\nCheck for PRs where changes were requested but contributor has pushed new commits.\n\n1. Run: gh pr list --repo steveyegge/beads --search \"review:changes_requested reviewed-by:@me\"\n2. **If this returns nothing, you are DONE.**\n3. For each PR, check if new commits exist since review:\n gh pr view \u003cnum\u003e --repo steveyegge/beads --json reviews,commits --jq '{last_review: .reviews[-1].submittedAt, last_commit: .commits[-1].committedDate}'\n4. If last_commit \u003e last_review, the contributor likely addressed feedback\n5. Review the current diff, verify issues were fixed\n6. If all issues fixed: approve and merge (or flag for human if not easy-win)\n7. If issues remain: add comment noting what still needs work\n\n## Available Crew\n- dave, fang, giles, grip, wolf\n\n## Commands\n- gh pr list --repo steveyegge/beads --state open --search \"review:none review:approved -review:changes_requested\"\n- gh pr list --repo steveyegge/beads --search \"review:changes_requested reviewed-by:@me\"\n- gh pr view \u003cnum\u003e --repo steveyegge/beads\n- gh pr view \u003cnum\u003e --repo steveyegge/beads --json reviews,commits --jq '{last_review: .reviews[-1].submittedAt, last_commit: .commits[-1].committedDate}'\n- gh pr diff \u003cnum\u003e --repo steveyegge/beads\n- gt sling \u003cbead-id\u003e beads/crew/\u003cname\u003e -m \"context\"\n","status":"tombstone","priority":1,"issue_type":"task","created_at":"2026-01-08T14:16:52.562453-08:00","updated_at":"2026-01-13T12:58:16.311285-08:00","created_by":"beads/crew/emma","deleted_at":"2026-01-13T12:58:16.311285-08:00","deleted_by":"daemon","delete_reason":"Renamed to bd-pr-sheriff","original_type":"task"} {"id":"bd-4f582ec8","title":"Test auto-start in fred","status":"closed","priority":3,"issue_type":"task","created_at":"2025-10-30T17:46:16.668088-07:00","updated_at":"2025-10-31T12:00:43.185723-07:00","closed_at":"2025-10-31T12:00:43.185723-07:00"} {"id":"bd-4ff2","title":"Fix CI failures before 0.21.3 release","description":"CI is failing on multiple jobs:\n1. Nix flake: Tests fail due to missing git in build environment\n2. Windows tests: Need to check what's failing\n3. Linux tests: Need to check what's failing\n4. Linter errors: Many unchecked errors need fixing\n\nNeed to fix before tagging v0.21.3 release.","notes":"Fixed linter errors (errcheck, misspell), Nix flake git dependency, and import database discovery bug. Tests still failing - need to investigate further.","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-01T23:52:09.244763-07:00","updated_at":"2025-11-02T12:32:57.748324-08:00","closed_at":"2025-11-02T12:32:57.748329-08:00"} -{"id":"bd-4g8x2","title":"Session ended: gt-beads-beads/refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T17:23:21.452075-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T17:23:21.498819-08:00","closed_at":"2026-01-12T17:23:21.498819-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-4h14a","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T06:31:33.130362-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T06:31:33.194991-08:00","closed_at":"2026-01-11T06:31:33.194991-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-4g8x2","title":"Session ended: gt-beads-beads/refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T17:23:21.452075-08:00","updated_at":"2026-01-12T17:23:21.498819-08:00","closed_at":"2026-01-12T17:23:21.498819-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-4h14a","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T06:31:33.130362-08:00","updated_at":"2026-01-11T06:31:33.194991-08:00","closed_at":"2026-01-11T06:31:33.194991-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-4h3","title":"Add test coverage for internal/git package","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-20T21:21:23.497486-05:00","updated_at":"2025-12-09T18:38:37.677633071-05:00","closed_at":"2025-11-28T21:55:45.2527-08:00","dependencies":[{"issue_id":"bd-4h3","depends_on_id":"bd-ge7","type":"blocks","created_at":"2025-11-20T21:21:31.277639-05:00","created_by":"daemon"}]} -{"id":"bd-4hh5","title":"bd sync false-positive force-push detection","description":"bd sync incorrectly detected a force-push when comparing against a commit from main branch instead of beads-sync.\n\nEvidence:\n- bd sync reported: 'Previous known commit: f4d3f674, Current remote commit: 4d24f794'\n- f4d3f674 is a valid beads-sync commit\n- 4d24f794 is a MAIN branch commit: 'refactor: remove unused isFirstRig param (gt-fugmy)'\n\nRoot cause: bd sync is comparing against wrong branch or storing wrong commit reference.\n\nImpact: False force-push warnings during normal operation, requires manual --accept-rebase.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-04T11:13:45.102272-08:00","created_by":"mayor","updated_at":"2026-01-04T23:11:19.073963-08:00","closed_at":"2026-01-04T23:11:19.073963-08:00","close_reason":"Fixed false-positive force-push detection (bd-4hh5):\n- Changed fetch to use explicit refspec: +refs/heads/beads-sync:refs/remotes/origin/beads-sync\n- This ensures the remote-tracking ref is always created/updated\n- Without explicit refspec, git fetch only updates existing refs, causing stale comparisons\n- The + prefix ensures force-update even for non-fast-forward cases"} +{"id":"bd-4hh5","title":"bd sync false-positive force-push detection","description":"bd sync incorrectly detected a force-push when comparing against a commit from main branch instead of beads-sync.\n\nEvidence:\n- bd sync reported: 'Previous known commit: f4d3f674, Current remote commit: 4d24f794'\n- f4d3f674 is a valid beads-sync commit\n- 4d24f794 is a MAIN branch commit: 'refactor: remove unused isFirstRig param (gt-fugmy)'\n\nRoot cause: bd sync is comparing against wrong branch or storing wrong commit reference.\n\nImpact: False force-push warnings during normal operation, requires manual --accept-rebase.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-04T11:13:45.102272-08:00","updated_at":"2026-01-04T23:11:19.073963-08:00","closed_at":"2026-01-04T23:11:19.073963-08:00","close_reason":"Fixed false-positive force-push detection (bd-4hh5):\n- Changed fetch to use explicit refspec: +refs/heads/beads-sync:refs/remotes/origin/beads-sync\n- This ensures the remote-tracking ref is always created/updated\n- Without explicit refspec, git fetch only updates existing refs, causing stale comparisons\n- The + prefix ensures force-update even for non-fast-forward cases","created_by":"mayor"} {"id":"bd-4hn","title":"wish: list \u0026 ready show issues as hierarchy tree","description":"`bd ready` and `bd list` just show a flat list, and it's up to the reader to parse which ones are dependent or sub-issues of others. It would be much easier to understand if they were shown in a tree format","status":"hooked","priority":3,"issue_type":"task","created_at":"2025-12-08T06:38:24.016316945-07:00","updated_at":"2025-12-30T15:44:43.343883-08:00"} -{"id":"bd-4hwu7","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:58:10.288775-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T23:58:10.371378-08:00","closed_at":"2026-01-12T23:58:10.371378-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-4iz32","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T12:43:56.245694-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T12:43:56.301242-08:00","closed_at":"2026-01-10T12:43:56.301242-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-4jnec","title":"Review and test PR #1071: fix short ID resolution in comments","description":"dispatched_by: beads/crew/emma","status":"closed","priority":1,"issue_type":"task","assignee":"beads/crew/dave","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:29:53.446913-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-13T11:33:51.102506-08:00","closed_at":"2026-01-13T11:33:51.102506-08:00","close_reason":"Closed"} -{"id":"bd-4jxh","title":"Update agent.go to use labels instead of type","description":"Change agent bead management to use gt:agent label instead of TypeAgent.\n\n## Work\n- Change IssueType=agent to IssueType=task when creating agents\n- Add gt:agent label when creating agent beads\n- Update agent queries to filter by label instead of type\n- Update agent type checks (agent.IssueType != \"agent\") to check label\n\n## Files\n- cmd/bd/agent.go","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:40:20.415469-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-06T22:10:18.805675-08:00","closed_at":"2026-01-06T22:10:18.805675-08:00","close_reason":"Migrated agent.go and RPC server to use gt:agent label instead of type","dependencies":[{"issue_id":"bd-4jxh","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.578875-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-4k3c","title":"bd cook creates gate beads for gate steps","description":"When cooking a formula, steps with Gate field create corresponding gate beads.\n\n## Behavior\n1. During cook, detect steps with Gate != nil\n2. Create gate bead with ID: `\u003cmol-id\u003e.gate-\u003cstep-id\u003e`\n3. Gate bead has:\n - issue_type: gate\n - await_type: from Gate.Type\n - await_id: from Gate.AwaitID (or auto-discovered)\n - timeout: from Gate.Timeout\n4. Dependent steps get blocking dep on gate bead\n\n## Example\nStep `await-ci` with gate.type=\"gh:run\" creates:\n- bd-mol-xxx.gate-await-ci (type=gate, await_type=gh:run)\n- bd-mol-xxx.verify-github depends on bd-mol-xxx.gate-await-ci\n\n## Acceptance Criteria\n- [ ] Gate beads created during cook\n- [ ] Correct await_type/await_id populated\n- [ ] Dependent steps blocked by gate\n- [ ] Tests for gate creation","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-02T13:27:14.512549-08:00","created_by":"mayor","updated_at":"2026-01-04T15:22:08.702867-08:00","closed_at":"2026-01-02T13:59:57.696282-08:00","close_reason":"Implementation already existed in cook.go (createGateIssue + collectSteps). Added comprehensive tests in cook_test.go covering: gate issue creation, await_type/await_id population, blocking dependencies, parent-child relationships, and timeout parsing.","dependencies":[{"issue_id":"bd-4k3c","depends_on_id":"bd-4bt1","type":"blocks","created_at":"2026-01-02T13:28:08.39967-08:00","created_by":"mayor"},{"issue_id":"bd-4k3c","depends_on_id":"bd-d1n1","type":"parent-child","created_at":"2026-01-02T13:28:18.575284-08:00","created_by":"mayor"}]} -{"id":"bd-4kp2","title":"Update Obsidian export for removed types","description":"Remove type-to-tag mappings for Gas Town types in Obsidian export.\n\n## Work\n- Remove TypeAgent, TypeRole, TypeRig, TypeConvoy mappings from issueTypeToTag\n- Consider: add label-to-tag mapping for gt:* labels\n\n## Files\n- cmd/bd/export_obsidian.go","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-06T20:40:49.466568-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-06T22:12:38.010953-08:00","closed_at":"2026-01-06T22:12:38.010953-08:00","close_reason":"Removed Gas Town type mappings from Obsidian export","dependencies":[{"issue_id":"bd-4kp2","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.708755-08:00","created_by":"beads/crew/dave"}]} +{"id":"bd-4iz32","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T12:43:56.245694-08:00","updated_at":"2026-01-10T12:43:56.301242-08:00","closed_at":"2026-01-10T12:43:56.301242-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-4jnec","title":"Review and test PR #1071: fix short ID resolution in comments","description":"dispatched_by: beads/crew/emma","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-13T11:29:53.446913-08:00","updated_at":"2026-01-13T11:33:51.102506-08:00","closed_at":"2026-01-13T11:33:51.102506-08:00","close_reason":"Closed","created_by":"beads/crew/emma"} +{"id":"bd-4jxh","title":"Update agent.go to use labels instead of type","description":"Change agent bead management to use gt:agent label instead of TypeAgent.\n\n## Work\n- Change IssueType=agent to IssueType=task when creating agents\n- Add gt:agent label when creating agent beads\n- Update agent queries to filter by label instead of type\n- Update agent type checks (agent.IssueType != \"agent\") to check label\n\n## Files\n- cmd/bd/agent.go","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:40:20.415469-08:00","updated_at":"2026-01-06T22:10:18.805675-08:00","closed_at":"2026-01-06T22:10:18.805675-08:00","close_reason":"Migrated agent.go and RPC server to use gt:agent label instead of type","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-4jxh","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.578875-08:00","created_by":"beads/crew/dave"}]} +{"id":"bd-4k3c","title":"bd cook creates gate beads for gate steps","description":"When cooking a formula, steps with Gate field create corresponding gate beads.\n\n## Behavior\n1. During cook, detect steps with Gate != nil\n2. Create gate bead with ID: `\u003cmol-id\u003e.gate-\u003cstep-id\u003e`\n3. Gate bead has:\n - issue_type: gate\n - await_type: from Gate.Type\n - await_id: from Gate.AwaitID (or auto-discovered)\n - timeout: from Gate.Timeout\n4. Dependent steps get blocking dep on gate bead\n\n## Example\nStep `await-ci` with gate.type=\"gh:run\" creates:\n- bd-mol-xxx.gate-await-ci (type=gate, await_type=gh:run)\n- bd-mol-xxx.verify-github depends on bd-mol-xxx.gate-await-ci\n\n## Acceptance Criteria\n- [ ] Gate beads created during cook\n- [ ] Correct await_type/await_id populated\n- [ ] Dependent steps blocked by gate\n- [ ] Tests for gate creation","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-02T13:27:14.512549-08:00","updated_at":"2026-01-04T15:22:08.702867-08:00","closed_at":"2026-01-02T13:59:57.696282-08:00","close_reason":"Implementation already existed in cook.go (createGateIssue + collectSteps). Added comprehensive tests in cook_test.go covering: gate issue creation, await_type/await_id population, blocking dependencies, parent-child relationships, and timeout parsing.","created_by":"mayor","dependencies":[{"issue_id":"bd-4k3c","depends_on_id":"bd-d1n1","type":"parent-child","created_at":"2026-01-02T13:28:18.575284-08:00","created_by":"mayor"},{"issue_id":"bd-4k3c","depends_on_id":"bd-4bt1","type":"blocks","created_at":"2026-01-02T13:28:08.39967-08:00","created_by":"mayor"}]} +{"id":"bd-4kp2","title":"Update Obsidian export for removed types","description":"Remove type-to-tag mappings for Gas Town types in Obsidian export.\n\n## Work\n- Remove TypeAgent, TypeRole, TypeRig, TypeConvoy mappings from issueTypeToTag\n- Consider: add label-to-tag mapping for gt:* labels\n\n## Files\n- cmd/bd/export_obsidian.go","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-06T20:40:49.466568-08:00","updated_at":"2026-01-06T22:12:38.010953-08:00","closed_at":"2026-01-06T22:12:38.010953-08:00","close_reason":"Removed Gas Town type mappings from Obsidian export","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-4kp2","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.708755-08:00","created_by":"beads/crew/dave"}]} {"id":"bd-4l5","title":"bd prime: Detect ephemeral branches and adjust workflow output","description":"When 'bd prime' runs on a branch with no upstream (ephemeral branch), it should output a different SESSION CLOSE PROTOCOL.\n\n**Current output (wrong for ephemeral branches):**\n```\n[ ] 1. git status\n[ ] 2. git add \u003cfiles\u003e\n[ ] 3. bd sync\n[ ] 4. git commit -m \"...\"\n[ ] 5. bd sync\n[ ] 6. git push\n```\n\n**Needed output for ephemeral branches:**\n```\n[ ] 1. git status\n[ ] 2. git add \u003cfiles\u003e\n[ ] 3. bd sync --from-main (pull updates from main)\n[ ] 4. git commit -m \"...\"\n[ ] 5. (no push - branch is ephemeral)\n```\n\n**Detection:** `git rev-parse --abbrev-ref --symbolic-full-name @{u}` returns error code 128 if no upstream.\n\nAlso update Sync \u0026 Collaboration section to mention `bd sync --from-main` for ephemeral branches.\n\n**Use case:** Gastown polecats work on ephemeral local branches that are never pushed. Their code gets merged to main via local merge, and beads changes stay local (communicated via gm mail to Overseer).","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-25T16:55:24.984104-08:00","updated_at":"2025-11-25T17:12:46.604978-08:00","closed_at":"2025-11-25T17:12:46.604978-08:00"} -{"id":"bd-4lm3","title":"Correction: Pinned field already in v0.31.0","description":"Quick correction - the Pinned field is already in the current bd v0.31.0:\n\n```go\n// In beads internal/types/types.go\nPinned bool `json:\"pinned,omitempty\"`\n```\n\nSo you just need to:\n1. Add `Pinned bool `json:\"pinned,omitempty\"`` to BeadsMessage in types.go\n2. Sort pinned messages first in listBeads() after fetching\n\nNo migration needed - the field is already there.\n\n-- Mayor","status":"closed","priority":2,"issue_type":"message","created_at":"2025-12-20T17:52:27.321458-08:00","updated_at":"2025-12-21T17:52:18.617995-08:00","closed_at":"2025-12-21T17:52:18.617995-08:00","labels":["from:beads-crew-dave","thread:thread-4dd70157dbc1"]} +{"id":"bd-4lm3","title":"Correction: Pinned field already in v0.31.0","description":"Quick correction - the Pinned field is already in the current bd v0.31.0:\n\n```go\n// In beads internal/types/types.go\nPinned bool `json:\"pinned,omitempty\"`\n```\n\nSo you just need to:\n1. Add `Pinned bool `json:\"pinned,omitempty\"`` to BeadsMessage in types.go\n2. Sort pinned messages first in listBeads() after fetching\n\nNo migration needed - the field is already there.\n\n-- Mayor","status":"closed","priority":2,"issue_type":"message","created_at":"2025-12-20T17:52:27.321458-08:00","updated_at":"2025-12-21T17:52:18.617995-08:00","closed_at":"2025-12-21T17:52:18.617995-08:00"} {"id":"bd-4ms","title":"Multi-repo contributor workflow support","description":"Implement separate repository support for OSS contributors to prevent PR pollution while maintaining git ledger and multi-clone sync. Based on contributor-workflow-analysis.md Solution #4.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-04T11:21:19.515776-08:00","updated_at":"2025-11-05T00:08:42.812659-08:00","closed_at":"2025-11-05T00:08:42.812662-08:00"} {"id":"bd-4nqq","title":"Remove dead test code in info_test.go","description":"Code health review found cmd/bd/info_test.go has two tests permanently skipped:\n\n- TestInfoCommand\n- TestInfoCommandNoDaemon\n\nBoth skip with: 'Manual test - bd info command is working, see manual testing'\n\nThese are essentially dead code. Either automate them or remove them entirely.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-16T18:17:27.554019-08:00","updated_at":"2025-12-22T21:01:24.524963-08:00","closed_at":"2025-12-22T21:01:24.524963-08:00"} -{"id":"bd-4nzq","title":"bd create --rig flag for cross-rig issue filing","description":"## Problem\n\nTo create an issue in a different rig, you must cd to that rig's directory. This is clunky when coordinating across rigs.\n\n## Proposed Solution\n\nAdd a --rig flag to bd create that leverages existing routes.jsonl:\n\n```bash\n# From anywhere in town\nbd create --rig beads --title=\"bug report\" --type=bug\n\n# Equivalent to:\ncd ~/gt/beads/mayor/rig \u0026\u0026 bd create --title=\"...\"\n```\n\n## How it works\n\n1. Parse --rig flag (rig name, not prefix)\n2. Look up rig in routes.jsonl to find beads location\n3. Determine prefix from rig config\n4. Create issue in that location with auto-generated ID\n\n## Why elegant\n\n- Leverages existing routing infrastructure\n- Rig names are human-memorable (not cryptic prefixes)\n- Works from anywhere in town\n- Prefix auto-determined from rig config\n- Reads naturally: \"create in beads\"\n\n## Alternative\n\nAlso consider --prefix for power users who know prefixes:\n```bash\nbd create --prefix bd \"Title here\"\n```","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-27T00:39:02.233664-08:00","created_by":"mayor","updated_at":"2025-12-27T00:44:04.079867-08:00","closed_at":"2025-12-27T00:44:04.079867-08:00"} +{"id":"bd-4nzq","title":"bd create --rig flag for cross-rig issue filing","description":"## Problem\n\nTo create an issue in a different rig, you must cd to that rig's directory. This is clunky when coordinating across rigs.\n\n## Proposed Solution\n\nAdd a --rig flag to bd create that leverages existing routes.jsonl:\n\n```bash\n# From anywhere in town\nbd create --rig beads --title=\"bug report\" --type=bug\n\n# Equivalent to:\ncd ~/gt/beads/mayor/rig \u0026\u0026 bd create --title=\"...\"\n```\n\n## How it works\n\n1. Parse --rig flag (rig name, not prefix)\n2. Look up rig in routes.jsonl to find beads location\n3. Determine prefix from rig config\n4. Create issue in that location with auto-generated ID\n\n## Why elegant\n\n- Leverages existing routing infrastructure\n- Rig names are human-memorable (not cryptic prefixes)\n- Works from anywhere in town\n- Prefix auto-determined from rig config\n- Reads naturally: \"create in beads\"\n\n## Alternative\n\nAlso consider --prefix for power users who know prefixes:\n```bash\nbd create --prefix bd \"Title here\"\n```","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-27T00:39:02.233664-08:00","updated_at":"2025-12-27T00:44:04.079867-08:00","closed_at":"2025-12-27T00:44:04.079867-08:00","created_by":"mayor"} {"id":"bd-4oob","title":"bd-hv01: Multi-repo mode not tested with deletion tracking","description":"Problem: Test suite has no coverage for multi-repo mode. ExportToMultiRepo creates multiple JSONL files but snapshot files are hardcoded to single JSONL location.\n\nImpact: Deletion tracking likely silently broken for multi-repo users, could cause data loss.\n\nFix: Add test and update snapshot logic to handle multiple JSONL files.\n\nFiles: cmd/bd/deletion_tracking_test.go, cmd/bd/deletion_tracking.go, cmd/bd/daemon_sync.go:24-34","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-06T18:16:22.965404-08:00","updated_at":"2025-11-06T19:36:13.96995-08:00","closed_at":"2025-11-06T19:20:50.382822-08:00","dependencies":[{"issue_id":"bd-4oob","depends_on_id":"bd-rbxi","type":"parent-child","created_at":"2025-11-06T18:19:15.014196-08:00","created_by":"daemon"}]} {"id":"bd-4opy","title":"Refactor long SQLite test files","description":"The SQLite test files have grown unwieldy. Review and refactor.\n\n## Goals\n- Break up large test files into focused modules\n- Improve test organization by feature area\n- Reduce test duplication\n- Make tests easier to maintain and extend\n\n## Areas to Review\n- main_test.go (likely the largest)\n- Any test files over 500 lines\n- Shared test fixtures and helpers\n- Test coverage gaps\n\n## Approach\n- Group tests by feature (CRUD, sync, queries, transactions)\n- Extract common fixtures to test helpers\n- Consider table-driven tests where appropriate\n- Ensure each test file has clear focus\n\n## Reference\nSee docs/dev-notes/ for any existing test audit notes","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T23:41:47.025285-08:00","updated_at":"2025-12-23T01:33:25.733299-08:00","closed_at":"2025-12-23T01:33:25.733299-08:00"} -{"id":"bd-4oqnr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T18:25:13.171348-08:00","created_by":"beads/refinery","updated_at":"2026-01-08T18:25:13.204736-08:00","closed_at":"2026-01-08T18:25:13.204736-08:00","close_reason":"auto-closed session event"} +{"id":"bd-4oqnr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T18:25:13.171348-08:00","updated_at":"2026-01-08T18:25:13.204736-08:00","closed_at":"2026-01-08T18:25:13.204736-08:00","close_reason":"auto-closed session event","created_by":"beads/refinery"} {"id":"bd-4oqu","title":"Test parent issue","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-05T13:00:39.737739-08:00","updated_at":"2025-11-05T13:01:11.635711-08:00","closed_at":"2025-11-05T13:01:11.635711-08:00"} {"id":"bd-4oqu.1","title":"Test child direct","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-05T13:00:55.992712-08:00","updated_at":"2025-11-05T13:01:11.654435-08:00","closed_at":"2025-11-05T13:01:11.654435-08:00"} {"id":"bd-4oqu.2","title":"Test child daemon mode","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-05T13:01:06.642305-08:00","updated_at":"2025-11-05T13:01:11.669369-08:00","closed_at":"2025-11-05T13:01:11.669369-08:00"} @@ -385,36 +384,36 @@ {"id":"bd-4pv","title":"bd export only outputs 1 issue after auto-import corrupts database","description":"When auto-import runs and purges issues (due to git history backfill bug), subsequent 'bd export' only exports 1 issue even though the database should have many.\n\nReproduction:\n1. Have issues.jsonl with 55 issues\n2. Auto-import triggers and purges all issues via git history backfill\n3. Run 'bd export' - only exports 1 issue (the last one created before corruption)\n\nThe database gets into an inconsistent state where most issues are purged but export doesn't realize this.\n\nWorkaround: Rebuild database from scratch with 'rm .beads/beads.db \u0026\u0026 bd init --prefix bd'","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-26T22:28:40.828866-08:00","updated_at":"2025-11-28T17:28:55.545056-08:00","closed_at":"2025-11-27T22:50:35.036227-08:00"} {"id":"bd-4q8","title":"bd cleanup --hard should skip tombstone creation for true permanent deletion","description":"## Problem\n\nWhen using bd cleanup --hard --older-than N --force, the command:\n1. Deletes closed issues older than N days (converting them to tombstones with NOW timestamp)\n2. Then tries to prune tombstones older than N days (finds none because they were just created)\n\nThis leaves the database bloated with fresh tombstones that will not be pruned.\n\n## Expected Behavior\n\nIn --hard mode, the deletion should be permanent without creating tombstones, since the user explicitly requested bypassing sync safety.\n\n## Workaround\n\nManually delete from database: sqlite3 .beads/beads.db 'DELETE FROM issues WHERE status=tombstone'\n\n## Fix Options\n\n1. In --hard mode, use a different delete path that does not create tombstones\n2. After deleting, immediately prune the just-created tombstones regardless of age\n3. Pass a skip_tombstone flag to the delete operation\n\nOption 1 is cleanest - --hard should mean permanent delete without tombstone.","status":"tombstone","priority":1,"issue_type":"bug","created_at":"2025-12-16T01:33:36.580657-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-4qfb","title":"Improve bd doctor output formatting for better readability","description":"Improve bd doctor output formatting for better readability.\n\n## Current State\nDoctor output is a wall of text with:\n- All checks shown (even passing ones)\n- No visual hierarchy\n- Hard to spot failures in long output\n\n## Target Output\n\n```\n$ bd doctor\n\nbd doctor v0.35.0\n\nSummary: 24 checks passed, 1 warning, 0 errors\n\n─────────────────────────────────────────────────\n⚠ Warnings (1)\n─────────────────────────────────────────────────\n\n[hooks] Git hooks outdated\n Current version: 0.34.0\n Latest version: 0.35.0\n Fix: bd hooks install\n\n─────────────────────────────────────────────────\n✓ Passed (24) [use --verbose to show details]\n─────────────────────────────────────────────────\n```\n\nWith --verbose:\n```\n$ bd doctor --verbose\n\nbd doctor v0.35.0\n\nSummary: 24 checks passed, 1 warning, 0 errors\n\n─────────────────────────────────────────────────\n⚠ Warnings (1)\n─────────────────────────────────────────────────\n\n[hooks] Git hooks outdated\n ...\n\n─────────────────────────────────────────────────\n✓ Passed (24)\n─────────────────────────────────────────────────\n\n Database\n ✓ Database exists\n ✓ Database readable\n ✓ Schema up to date\n \n Git Hooks\n ✓ Pre-commit hook installed\n ✓ Post-merge hook installed\n ⚠ Hooks version mismatch (see above)\n \n Sync\n ✓ Sync branch configured\n ✓ Remote accessible\n ...\n```\n\n## Implementation\n\n### 1. Add check categories (cmd/bd/doctor/categories.go)\n\n```go\ntype Category string\n\nconst (\n CatDatabase Category = \"Database\"\n CatHooks Category = \"Git Hooks\"\n CatSync Category = \"Sync\"\n CatDaemon Category = \"Daemon\"\n CatConfig Category = \"Configuration\"\n CatIntegrity Category = \"Data Integrity\"\n)\n\n// Assign categories to checks\nvar checkCategories = map[string]Category{\n \"database-exists\": CatDatabase,\n \"database-readable\": CatDatabase,\n \"schema-version\": CatDatabase,\n \"pre-commit-hook\": CatHooks,\n \"post-merge-hook\": CatHooks,\n \"hooks-version\": CatHooks,\n \"sync-branch\": CatSync,\n \"remote-access\": CatSync,\n // ... etc\n}\n```\n\n### 2. Add --verbose flag\n\n```go\n// In cmd/bd/doctor.go init()\ndoctorCmd.Flags().BoolP(\"verbose\", \"v\", false, \"Show all checks including passed\")\n```\n\n### 3. Create formatter (cmd/bd/doctor/format.go)\n\n```go\ntype Formatter struct {\n verbose bool\n noColor bool\n}\n\nfunc (f *Formatter) Format(results []CheckResult) string {\n var buf strings.Builder\n \n // Count by status\n passed, warnings, errors := countByStatus(results)\n \n // Header\n buf.WriteString(fmt.Sprintf(\"bd doctor v%s\\n\\n\", version.Version))\n buf.WriteString(fmt.Sprintf(\"Summary: %d passed, %d warnings, %d errors\\n\\n\", \n passed, warnings, errors))\n \n // Errors section (always show)\n if errors \u003e 0 {\n f.writeSection(\u0026buf, \"✗ Errors\", filterByStatus(results, StatusError))\n }\n \n // Warnings section (always show)\n if warnings \u003e 0 {\n f.writeSection(\u0026buf, \"⚠ Warnings\", filterByStatus(results, StatusWarning))\n }\n \n // Passed section (only with --verbose)\n if f.verbose \u0026\u0026 passed \u003e 0 {\n f.writePassedSection(\u0026buf, filterByStatus(results, StatusPassed))\n } else if passed \u003e 0 {\n buf.WriteString(fmt.Sprintf(\"✓ Passed (%d) [use --verbose to show details]\\n\", passed))\n }\n \n return buf.String()\n}\n\nfunc (f *Formatter) writeSection(buf *strings.Builder, title string, results []CheckResult) {\n buf.WriteString(\"─────────────────────────────────────────────────\\n\")\n buf.WriteString(title + \"\\n\")\n buf.WriteString(\"─────────────────────────────────────────────────\\n\\n\")\n \n for _, r := range results {\n buf.WriteString(fmt.Sprintf(\"[%s] %s\\n\", r.CheckName, r.Message))\n if r.Details != \"\" {\n buf.WriteString(fmt.Sprintf(\" %s\\n\", r.Details))\n }\n if r.Fix != \"\" {\n buf.WriteString(fmt.Sprintf(\" Fix: %s\\n\", r.Fix))\n }\n buf.WriteString(\"\\n\")\n }\n}\n\nfunc (f *Formatter) writePassedSection(buf *strings.Builder, results []CheckResult) {\n // Group by category\n byCategory := groupByCategory(results)\n \n buf.WriteString(\"─────────────────────────────────────────────────\\n\")\n buf.WriteString(fmt.Sprintf(\"✓ Passed (%d)\\n\", len(results)))\n buf.WriteString(\"─────────────────────────────────────────────────\\n\\n\")\n \n for _, cat := range categoryOrder {\n if checks, ok := byCategory[cat]; ok {\n buf.WriteString(fmt.Sprintf(\" %s\\n\", cat))\n for _, r := range checks {\n buf.WriteString(fmt.Sprintf(\" ✓ %s\\n\", r.Message))\n }\n buf.WriteString(\"\\n\")\n }\n }\n}\n```\n\n### 4. Update run function\n\n```go\nfunc runDoctor(cmd *cobra.Command, args []string) {\n verbose, _ := cmd.Flags().GetBool(\"verbose\")\n noColor, _ := cmd.Flags().GetBool(\"no-color\")\n \n results := runAllChecks()\n \n formatter := \u0026Formatter{verbose: verbose, noColor: noColor}\n fmt.Print(formatter.Format(results))\n \n // Exit code based on results\n if hasErrors(results) {\n os.Exit(1)\n }\n}\n```\n\n## Files to Modify\n\n1. **cmd/bd/doctor.go** - Add --verbose flag, update run function\n2. **cmd/bd/doctor/format.go** - New file for formatting logic\n3. **cmd/bd/doctor/categories.go** - New file for check categorization\n4. **cmd/bd/doctor/common.go** - Add Status field to CheckResult if missing\n\n## Testing\n\n```bash\n# Default output (concise)\nbd doctor\n\n# Verbose output\nbd doctor --verbose\n\n# JSON output (should still work)\nbd doctor --json\n```\n\n## Success Criteria\n- Summary line at top with counts\n- Only failures/warnings shown by default\n- --verbose shows grouped passed checks\n- Visual separators between sections\n- Exit code 1 if errors, 0 otherwise","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-13T09:29:27.557578+11:00","updated_at":"2025-12-23T13:37:18.48781-08:00","closed_at":"2025-12-23T13:37:18.48781-08:00","dependencies":[{"issue_id":"bd-4qfb","depends_on_id":"bd-iz5t","type":"parent-child","created_at":"2025-12-23T12:44:07.972517-08:00","created_by":"daemon"}]} -{"id":"bd-4rf0e","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:30:40.045105-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-12T19:30:40.108665-08:00","closed_at":"2026-01-12T19:30:40.108665-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-4rf3u","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T06:56:46.643072-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T06:56:46.703168-08:00","closed_at":"2026-01-11T06:56:46.703168-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-4rf0e","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:30:40.045105-08:00","updated_at":"2026-01-12T19:30:40.108665-08:00","closed_at":"2026-01-12T19:30:40.108665-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} +{"id":"bd-4rf3u","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T06:56:46.643072-08:00","updated_at":"2026-01-11T06:56:46.703168-08:00","closed_at":"2026-01-11T06:56:46.703168-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-4ri","title":"Fix TestFallbackToDirectModeEnablesFlush deadlock causing 10min test timeout","description":"## Problem\n\nTestFallbackToDirectModeEnablesFlush in direct_mode_test.go deadlocks for 9m59s before timing out, causing the entire test suite to take 10+ minutes instead of \u003c10 seconds.\n\n## Root Cause\n\nDatabase lock contention between test cleanup and flushToJSONL():\n- Test cleanup (line 36) tries to close DB via defer\n- flushToJSONL() (line 132) is still accessing DB\n- Results in deadlock: database/sql.(*DB).Close() waits for mutex while GetJSONLFileHash() holds it\n\n## Stack Trace Evidence\n\n```\ngoroutine 512 [sync.Mutex.Lock, 9 minutes]:\ndatabase/sql.(*DB).Close(0x14000643790)\n .../database/sql/sql.go:927 +0x84\ngithub.com/steveyegge/beads/cmd/bd.TestFallbackToDirectModeEnablesFlush.func1()\n .../direct_mode_test.go:36 +0xf4\n\nWhile goroutine running flushToJSONL() holds DB connection via GetJSONLFileHash()\n```\n\n## Impact\n\n- Test suite: 10+ minutes → should be \u003c10 seconds\n- ALL other tests pass in ~4 seconds\n- This ONE test accounts for 99.9% of test runtime\n\n## Related\n\nThis is the EXACT same issue documented in MAIN_TEST_REFACTOR_NOTES.md for why main_test.go refactoring was deferred - global state manipulation + DB cleanup = deadlock.\n\n## Fix Approaches\n\n1. **Add proper cleanup sequencing** - stop flush goroutines BEFORE closing DB\n2. **Use test-specific DB lifecycle** - ensure flush completes before cleanup\n3. **Mock the flush mechanism** - avoid real DB for testing this code path \n4. **Add explicit timeout handling** - fail fast with clear error instead of hanging\n\n## Files\n\n- cmd/bd/direct_mode_test.go:36-132\n- cmd/bd/autoflush.go:353 (validateJSONLIntegrity)\n- cmd/bd/autoflush.go:508 (flushToJSONLWithState)\n\n## Acceptance\n\n- Test passes without timeout\n- Test suite completes in \u003c10 seconds\n- No deadlock between cleanup and flush operations","status":"tombstone","priority":1,"issue_type":"bug","created_at":"2025-11-21T20:09:00.794372-05:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-4rvek","title":"Digest: mol-refinery-patrol","description":"Patrol: queue empty, no branches to merge","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T20:52:49.375644-08:00","updated_at":"2026-01-10T20:52:49.375644-08:00","closed_at":"2026-01-10T20:52:49.375605-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-4ry","title":"Clarify JSONL size bounds with multi-repo","description":"The contributor-workflow-analysis.md states (line 226): 'Keep beads.jsonl small enough for agents to read (\u003c25k)'\n\nWith multi-repo hydration, it's unclear whether this bound applies to:\n- Each individual JSONL file (likely intention)\n- The total hydrated size across all repos (unclear)\n- Both (most conservative)\n\nClarification needed because:\n- VC monitors .beads/issues.jsonl size to stay under limit\n- With multi-repo, VC needs to know if each additional repo also has 25k limit\n- Agents reading hydrated data need to know total size bounds\n- Performance characteristics depend on total vs per-repo limits\n\nExample scenario:\n- Primary repo: 20k JSONL\n- Planning repo: 15k JSONL\n- Total hydrated: 35k\nIs this acceptable or does it violate the \u003c25k principle?","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-03T20:24:50.042748-08:00","updated_at":"2025-11-05T14:18:00.550341-08:00","closed_at":"2025-11-05T14:18:00.550341-08:00"} {"id":"bd-4sfl","title":"Merge: bd-14ie","description":"branch: polecat/toast\ntarget: main\nsource_issue: bd-14ie\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-19T23:23:37.360782-08:00","updated_at":"2025-12-20T23:17:26.997276-08:00","closed_at":"2025-12-20T23:17:26.997276-08:00"} -{"id":"bd-4sxh","title":"Code smell: Issue struct still has ~100 fields - consider composition","description":"internal/types/types.go Issue struct (lines 14-100) still has approximately 100 fields across many categories despite prior cleanup:\n\n- Core identification (ID, ContentHash)\n- Content (Title, Description, Design)\n- Status \u0026 Workflow\n- Assignment, Timestamps\n- External integration\n- Compaction metadata\n- Relational data (Labels, Dependencies, Comments)\n- Tombstone, Messaging, Context markers\n- Bonding, HOP, Gate, Source tracing, Agent identity fields\n\n**Problem:**\n- Very large struct is difficult to understand\n- Hard to identify required vs optional fields\n- High change risk\n\n**Acceptance Criteria:**\n- [ ] Group related fields into embedded structs (IssueMetadata, IssueCompaction, IssueAgent, etc.)\n- [ ] Use composition instead of single flat struct\n- [ ] Maintain backward compatibility for serialization\n- [ ] Tests pass","status":"hooked","priority":3,"issue_type":"chore","created_at":"2025-12-28T19:00:00.560267-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-30T15:44:43.353922-08:00","close_reason":"Refactored Issue struct using composition: created 4 embedded structs (IssueCompaction, IssueTombstone, IssueGate, IssueAgent) to group ~19 specialized fields while keeping core fields flat for ergonomic struct literals. JSON serialization unchanged.","dependencies":[{"issue_id":"bd-4sxh","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.780801-08:00","created_by":"daemon"}]} +{"id":"bd-4sxh","title":"Code smell: Issue struct still has ~100 fields - consider composition","description":"internal/types/types.go Issue struct (lines 14-100) still has approximately 100 fields across many categories despite prior cleanup:\n\n- Core identification (ID, ContentHash)\n- Content (Title, Description, Design)\n- Status \u0026 Workflow\n- Assignment, Timestamps\n- External integration\n- Compaction metadata\n- Relational data (Labels, Dependencies, Comments)\n- Tombstone, Messaging, Context markers\n- Bonding, HOP, Gate, Source tracing, Agent identity fields\n\n**Problem:**\n- Very large struct is difficult to understand\n- Hard to identify required vs optional fields\n- High change risk\n\n**Acceptance Criteria:**\n- [ ] Group related fields into embedded structs (IssueMetadata, IssueCompaction, IssueAgent, etc.)\n- [ ] Use composition instead of single flat struct\n- [ ] Maintain backward compatibility for serialization\n- [ ] Tests pass","status":"hooked","priority":3,"issue_type":"chore","created_at":"2025-12-28T19:00:00.560267-08:00","updated_at":"2025-12-30T15:44:43.353922-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-4sxh","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.780801-08:00","created_by":"daemon"}]} {"id":"bd-4t7","title":"Auto-import runs during --no-auto-import operations via stats/ready commands","description":"Even when using --no-auto-import flag, certain commands like 'bd stats' and 'bd ready' still trigger auto-import internally, which can cause the git history backfill bug to corrupt data.\n\nExample:\n bd stats --no-auto-import\n # Still prints 'Purged bd-xxx (recovered from git history...)'\n\nThe flag should completely disable auto-import for the command, but it appears some code paths still trigger it.\n\nWorkaround: Use --allow-stale instead, or --sandbox mode.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-26T22:28:59.305898-08:00","updated_at":"2025-11-27T00:54:20.335013-08:00","closed_at":"2025-11-27T00:54:12.561872-08:00"} -{"id":"bd-4tz82","title":"Review and merge PR #1039: Preserve comments in autoflush","description":"dispatched_by: beads/crew/emma","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/fang","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T16:35:32.604907-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T16:39:13.931242-08:00","closed_at":"2026-01-12T16:39:13.931242-08:00","close_reason":"PR #1039 merged - fixes comment preservation during autoflush re-export"} -{"id":"bd-4u0wj","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:04:41.178639-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-12T23:04:41.227863-08:00","closed_at":"2026-01-12T23:04:41.227863-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-4tz82","title":"Review and merge PR #1039: Preserve comments in autoflush","description":"dispatched_by: beads/crew/emma","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-12T16:35:32.604907-08:00","updated_at":"2026-01-12T16:39:13.931242-08:00","closed_at":"2026-01-12T16:39:13.931242-08:00","close_reason":"PR #1039 merged - fixes comment preservation during autoflush re-export","created_by":"beads/crew/emma"} +{"id":"bd-4u0wj","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T23:04:41.178639-08:00","updated_at":"2026-01-12T23:04:41.227863-08:00","closed_at":"2026-01-12T23:04:41.227863-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/grip"} {"id":"bd-4u2b","title":"Make MCP compaction settings configurable (COMPACTION_THRESHOLD, PREVIEW_COUNT)","description":"Currently COMPACTION_THRESHOLD (20) and PREVIEW_COUNT (5) are hardcoded constants at the module level. This prevents users from tuning context engineering behavior.\n\n## Current State\n```python\nCOMPACTION_THRESHOLD = 20 # Compact results with more than 20 issues\nPREVIEW_COUNT = 5 # Show first 5 issues in preview\n```\n\n## Problems\n1. No way for MCP clients to request different preview sizes\n2. No way to disable compaction for debugging\n3. No way to adapt to different context window sizes\n4. Values are not documented in tool schema\n\n## Recommended Solution\nAdd environment variables or MCP tool parameters:\n- `BEADS_MCP_COMPACTION_THRESHOLD` env var (default: 20)\n- `BEADS_MCP_PREVIEW_COUNT` env var (default: 5)\n- Optional `compact_threshold` and `preview_size` parameters to list/ready tools\n\n## Implementation Notes\n- Keep current defaults for backward compatibility\n- Read from environment at server initialization\n- Document in CONTEXT_ENGINEERING.md\n- Add tests verifying env var behavior","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-14T14:24:34.037997-08:00","updated_at":"2025-12-14T14:40:48.79752-08:00","closed_at":"2025-12-14T14:40:48.79752-08:00","dependencies":[{"issue_id":"bd-4u2b","depends_on_id":"bd-otf4","type":"discovered-from","created_at":"2025-12-14T14:24:34.039165-08:00","created_by":"stevey"}]} {"id":"bd-4uoc","title":"Code Review Followup Summary: PR #481 + PR #551","description":"## Merged PRs Summary\n\n### PR #551: Persist close_reason to issues table\n- ✅ Merged successfully\n- ✅ Bug fix: close_reason now persisted in database column (not just events table)\n- ✅ Comprehensive test coverage added\n- ✅ Handles reopen case (clearing close_reason)\n\n**Followup Issues Filed:**\n- bd-lxzx: Document close_reason in JSONL export format\n- bd-077e: Update CLI documentation for close_reason field\n\n---\n\n### PR #481: Context Engineering Optimizations (80-90% context reduction)\n- ✅ Merged successfully \n- ✅ Lazy tool discovery: discover_tools() + get_tool_info()\n- ✅ Minimal issue models: IssueMinimal (~80% smaller than full Issue)\n- ✅ Result compaction: Auto-compacts results \u003e20 items\n- ✅ All 28 tests passing\n- ⚠️ Breaking change: ready() and list() return type changed\n\n**Followup Issues Filed:**\n- bd-b318: Add integration tests for CompactedResult\n- bd-4u2b: Make compaction settings configurable (THRESHOLD, PREVIEW_COUNT)\n- bd-2kf8: Document CompactedResult response format in CONTEXT_ENGINEERING.md\n- bd-pdr2: Document backwards compatibility considerations\n\n---\n\n## Overall Assessment\n\nBoth PRs are production-ready with solid implementations. All critical functionality works and tests pass. Followup issues focus on:\n1. Documentation improvements (5 issues)\n2. Integration test coverage (1 issue)\n3. Configuration flexibility (1 issue)\n4. Backwards compatibility guidance (1 issue)\n\nNo critical bugs or design issues found.\n\n## Review Completed By\nCode review process completed. Issues auto-created for tracking improvements.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-14T14:25:59.214886-08:00","updated_at":"2025-12-29T13:40:29.723233-08:00","closed_at":"2025-12-29T13:40:29.723233-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates","dependencies":[{"issue_id":"bd-4uoc","depends_on_id":"bd-otf4","type":"discovered-from","created_at":"2025-12-14T14:25:59.216884-08:00","created_by":"stevey"},{"issue_id":"bd-4uoc","depends_on_id":"bd-z86n","type":"discovered-from","created_at":"2025-12-14T14:25:59.217296-08:00","created_by":"stevey"}]} -{"id":"bd-4x9zq","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:44:15.270356-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T01:44:15.333514-08:00","closed_at":"2026-01-12T01:44:15.333514-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-4xtku","title":"Test agent bead","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-10T23:25:03.058364-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-10T23:25:08.142927-08:00","labels":["role_type:polecat"],"deleted_at":"2026-01-10T23:25:08.142927-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"agent"} -{"id":"bd-4y2k4","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T13:10:27.291132-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T13:10:27.341743-08:00","closed_at":"2026-01-13T13:10:27.341743-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-4x9zq","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T01:44:15.270356-08:00","updated_at":"2026-01-12T01:44:15.333514-08:00","closed_at":"2026-01-12T01:44:15.333514-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-4xtku","title":"Test agent bead","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-10T23:25:03.058364-08:00","updated_at":"2026-01-10T23:25:08.142927-08:00","created_by":"beads/crew/fang","deleted_at":"2026-01-10T23:25:08.142927-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"agent"} +{"id":"bd-4y2k4","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T13:10:27.291132-08:00","updated_at":"2026-01-13T13:10:27.341743-08:00","closed_at":"2026-01-13T13:10:27.341743-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-4y4g","title":"Bump version in all files","description":"Run ./scripts/bump-version.sh {{version}} to update 10 version files. Then run with --commit after info.go is updated.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-18T22:43:01.859728-08:00","updated_at":"2025-12-24T16:25:30.160776-08:00","dependencies":[{"issue_id":"bd-4y4g","depends_on_id":"bd-qqc","type":"parent-child","created_at":"2025-12-18T22:43:16.623724-08:00","created_by":"daemon"},{"issue_id":"bd-4y4g","depends_on_id":"bd-8v2","type":"blocks","created_at":"2025-12-18T22:43:20.823329-08:00","created_by":"daemon"}],"deleted_at":"2025-12-24T16:25:30.160776-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} -{"id":"bd-4yb9","title":"Add tests for IDPrefix filter optimization","description":"Commit 5dfb838d added IDPrefix field to IssueFilter for efficient prefix filtering but lacks tests.\n\nIDPrefix enables database-level filtering of issue IDs by prefix, improving\nshell completion performance by avoiding fetching all issues.\n\nTest cases needed:\n- ListIssues with IDPrefix returns only matching issues\n- IDPrefix filtering works in sqlite store\n- IDPrefix filtering works in transaction store\n- IDPrefix filtering works in memory store\n- Empty IDPrefix returns all issues\n- IDPrefix combined with other filters\n\nLocation: internal/types/types.go (IssueFilter), internal/storage/sqlite/queries.go\nSuggested test files: internal/storage/sqlite/sqlite_test.go, internal/storage/storage_test.go","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-07T01:18:14.705475-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T01:18:14.705475-08:00"} -{"id":"bd-4zbuu","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:29:07.839103-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:29:07.90551-08:00","closed_at":"2026-01-11T21:29:07.90551-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-5012","title":"Merge: ux-1766978911613","description":"branch: polecat/Nux-1766978911613\ntarget: main\nsource_issue: ux-1766978911613\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-28T19:35:42.938017-08:00","created_by":"beads/polecats/Nux","updated_at":"2025-12-29T13:40:29.719953-08:00","closed_at":"2025-12-29T13:40:29.719953-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates"} +{"id":"bd-4yb9","title":"Add tests for IDPrefix filter optimization","description":"Commit 5dfb838d added IDPrefix field to IssueFilter for efficient prefix filtering but lacks tests.\n\nIDPrefix enables database-level filtering of issue IDs by prefix, improving\nshell completion performance by avoiding fetching all issues.\n\nTest cases needed:\n- ListIssues with IDPrefix returns only matching issues\n- IDPrefix filtering works in sqlite store\n- IDPrefix filtering works in transaction store\n- IDPrefix filtering works in memory store\n- Empty IDPrefix returns all issues\n- IDPrefix combined with other filters\n\nLocation: internal/types/types.go (IssueFilter), internal/storage/sqlite/queries.go\nSuggested test files: internal/storage/sqlite/sqlite_test.go, internal/storage/storage_test.go","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-07T01:18:14.705475-08:00","updated_at":"2026-01-07T01:18:14.705475-08:00","created_by":"beads/crew/emma"} +{"id":"bd-4zbuu","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:29:07.839103-08:00","updated_at":"2026-01-11T21:29:07.90551-08:00","closed_at":"2026-01-11T21:29:07.90551-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-5012","title":"Merge: ux-1766978911613","description":"branch: polecat/Nux-1766978911613\ntarget: main\nsource_issue: ux-1766978911613\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-28T19:35:42.938017-08:00","updated_at":"2025-12-29T13:40:29.719953-08:00","closed_at":"2025-12-29T13:40:29.719953-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates","created_by":"beads/polecats/Nux"} {"id":"bd-502e","title":"Add comprehensive tests for sync branch daemon logic","description":"The daemon sync branch functionality (bd-6545) was implemented but needs proper end-to-end testing.\n\nCurrent implementation:\n- daemon_sync_branch.go has syncBranchCommitAndPush() and syncBranchPull()\n- daemon_sync.go has been updated to use these functions when sync.branch is configured\n- All daemon tests pass, but no specific tests for sync branch behavior\n\nTesting needed:\n- Test that daemon commits to sync branch when sync.branch is configured\n- Test that daemon commits to current branch when sync.branch is NOT configured (backward compatibility)\n- Test that daemon pulls from sync branch and syncs JSONL back to main repo\n- Test worktree creation and health checks during daemon operations\n- Test error handling (missing branch, worktree corruption, etc.)\n\nKey challenge: Tests need to run in the context of the git repo (getGitRoot() uses current working directory), so test setup needs to properly change directory or mock the git root detection.\n\nReference existing daemon tests in daemon_test.go and daemon_autoimport_test.go for patterns.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-02T15:59:13.341491-08:00","updated_at":"2025-11-02T16:39:53.278313-08:00","closed_at":"2025-11-02T16:39:53.278313-08:00","dependencies":[{"issue_id":"bd-502e","depends_on_id":"bd-6545","type":"parent-child","created_at":"2025-11-02T15:59:13.342331-08:00","created_by":"daemon"}]} -{"id":"bd-502gs","title":"Fix orphaned test references: TypeRig, IsBuiltIn, parseCommaSeparated","description":"dispatched_by: beads/crew/emma\n\nPre-existing build failures found during refinery patrol:\n\n**Files with errors:**\n- internal/types/types_test.go:553: undefined: TypeRig\n- internal/types/types_test.go:591: undefined: TypeRig \n- internal/types/types_test.go:603: tt.issueType.IsBuiltIn undefined\n- internal/storage/sqlite/validators_test.go:208: undefined: parseCommaSeparated\n\n**Root cause:**\nProduction code removed these symbols but tests weren't updated:\n- TypeRig constant removed from types.go\n- IsBuiltIn() method removed from IssueType\n- parseCommaSeparated() removed from validators.go\n\n**Impact:**\n- go test ./... fails to compile\n- Tests cannot run until fixed\n\n**Fix:**\nRemove orphaned test code that references deleted production symbols.","status":"closed","priority":1,"issue_type":"bug","assignee":"beads/crew/fang","created_at":"2026-01-10T21:43:12.764001-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T01:38:16.997468-08:00","closed_at":"2026-01-12T01:38:16.997468-08:00","close_reason":"Already fixed in 1d42732a (add TypeRig constant and IsBuiltIn method)"} +{"id":"bd-502gs","title":"Fix orphaned test references: TypeRig, IsBuiltIn, parseCommaSeparated","description":"dispatched_by: beads/crew/emma\n\nPre-existing build failures found during refinery patrol:\n\n**Files with errors:**\n- internal/types/types_test.go:553: undefined: TypeRig\n- internal/types/types_test.go:591: undefined: TypeRig \n- internal/types/types_test.go:603: tt.issueType.IsBuiltIn undefined\n- internal/storage/sqlite/validators_test.go:208: undefined: parseCommaSeparated\n\n**Root cause:**\nProduction code removed these symbols but tests weren't updated:\n- TypeRig constant removed from types.go\n- IsBuiltIn() method removed from IssueType\n- parseCommaSeparated() removed from validators.go\n\n**Impact:**\n- go test ./... fails to compile\n- Tests cannot run until fixed\n\n**Fix:**\nRemove orphaned test code that references deleted production symbols.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-10T21:43:12.764001-08:00","updated_at":"2026-01-12T01:38:16.997468-08:00","closed_at":"2026-01-12T01:38:16.997468-08:00","close_reason":"Already fixed in 1d42732a (add TypeRig constant and IsBuiltIn method)","created_by":"beads/refinery"} {"id":"bd-512v","title":"Verify release artifacts","description":"Check GitHub releases page - binaries for darwin/linux/windows should be available","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T13:52:33.067124-08:00","updated_at":"2025-12-21T13:53:49.35495-08:00","deleted_at":"2025-12-21T13:53:49.35495-08:00","deleted_by":"stevey","delete_reason":"manual delete","original_type":"task"} -{"id":"bd-51521","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:24:53.957149-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T20:24:53.991009-08:00","closed_at":"2026-01-08T20:24:53.991009-08:00","close_reason":"auto-closed session event"} +{"id":"bd-51521","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:24:53.957149-08:00","updated_at":"2026-01-08T20:24:53.991009-08:00","closed_at":"2026-01-08T20:24:53.991009-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-51jl","title":"Feature P1","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-07T19:04:24.852171-08:00","updated_at":"2025-11-07T22:07:17.343481-08:00","closed_at":"2025-11-07T21:55:09.426728-08:00"} -{"id":"bd-522oh","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:39:13.261534-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T01:39:13.32432-08:00","closed_at":"2026-01-12T01:39:13.32432-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-522oh","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T01:39:13.261534-08:00","updated_at":"2026-01-12T01:39:13.32432-08:00","closed_at":"2026-01-12T01:39:13.32432-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-5314bddf","title":"bd detect-pollution - Test pollution detector","description":"Detect test issues that leaked into production DB.\n\nPattern matching for:\n- Titles starting with 'test', 'benchmark', 'sample'\n- Sequential numbering (test-1, test-2)\n- Generic descriptions\n- Created in rapid succession\n\nOptional AI scoring for confidence.\n\nFiles: cmd/bd/detect_pollution.go (new)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-28T14:48:17.466906-07:00","updated_at":"2025-12-14T12:12:46.500906-08:00","closed_at":"2025-11-06T19:27:11.75884-08:00"} -{"id":"bd-533i","title":"Merge: quartz-mjxcafcl","description":"branch: polecat/quartz-mjxcafcl\ntarget: main\nsource_issue: quartz-mjxcafcl\nrig: beads\nagent_bead: bd-beads-polecat-quartz","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T12:50:03.596749-08:00","created_by":"beads/polecats/quartz","updated_at":"2026-01-02T13:41:56.625175-08:00","closed_at":"2026-01-02T13:41:56.625175-08:00","close_reason":"Branches merged, cleaning up stale MR beads"} +{"id":"bd-533i","title":"Merge: quartz-mjxcafcl","description":"branch: polecat/quartz-mjxcafcl\ntarget: main\nsource_issue: quartz-mjxcafcl\nrig: beads\nagent_bead: bd-beads-polecat-quartz","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T12:50:03.596749-08:00","updated_at":"2026-01-02T13:41:56.625175-08:00","closed_at":"2026-01-02T13:41:56.625175-08:00","close_reason":"Branches merged, cleaning up stale MR beads","created_by":"beads/polecats/quartz"} {"id":"bd-537e","title":"Add external_ref change tracking and auditing","description":"Currently we don't track when external_ref is added, removed, or changed. This would be useful for debugging and auditing.\n\nProposed features:\n- Log event when external_ref changes\n- Track in events table with old/new values\n- Add query to find issues where external_ref changed\n- Add metrics: issues with external_ref vs without\n\nUse cases:\n- Debugging import issues\n- Understanding which issues are externally managed\n- Auditing external system linkage\n\nRelated: bd-1022","status":"closed","priority":4,"issue_type":"feature","created_at":"2025-11-02T15:32:31.276883-08:00","updated_at":"2025-12-14T12:12:46.518748-08:00","closed_at":"2025-11-08T02:20:01.022406-08:00"} -{"id":"bd-53p77","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T04:51:43.907309-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T04:51:43.97389-08:00","closed_at":"2026-01-11T04:51:43.97389-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-5482","title":"Merge: obsidian-1767083466920","description":"branch: polecat/obsidian-1767083466920\ntarget: main\nsource_issue: obsidian-1767083466920\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T00:36:06.073173-08:00","created_by":"beads/polecats/obsidian","updated_at":"2025-12-30T00:54:59.493901-08:00","closed_at":"2025-12-30T00:54:59.493901-08:00","close_reason":"Branch polecat/obsidian-1767083466920 no longer exists on remote"} +{"id":"bd-53p77","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T04:51:43.907309-08:00","updated_at":"2026-01-11T04:51:43.97389-08:00","closed_at":"2026-01-11T04:51:43.97389-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-5482","title":"Merge: obsidian-1767083466920","description":"branch: polecat/obsidian-1767083466920\ntarget: main\nsource_issue: obsidian-1767083466920\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T00:36:06.073173-08:00","updated_at":"2025-12-30T00:54:59.493901-08:00","closed_at":"2025-12-30T00:54:59.493901-08:00","close_reason":"Branch polecat/obsidian-1767083466920 no longer exists on remote","created_by":"beads/polecats/obsidian"} {"id":"bd-5599","title":"Fix TestListCommand duplicate dependency constraint violation","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-10-31T21:27:05.557548-07:00","updated_at":"2025-10-31T21:27:11.429018-07:00","closed_at":"2025-10-31T21:27:11.429018-07:00"} {"id":"bd-55sb","title":"Stealth mode global gitignore should use absolute project path","description":"**GitHub Issue:** #538\n\n**Problem:**\n`bd init --stealth` adds `.beads/` to the global gitignore, which ignores ALL `.beads/` folders across all repositories. Users who want stealth mode in one project but open beads usage in others are blocked.\n\n**Solution:**\nChange stealth mode to use absolute paths instead of generic patterns:\n\n**Before (current):**\n```\n# Beads stealth mode configuration (added by bd init --stealth)\n.beads/\n.claude/settings.local.json\n```\n\n**After (proposed):**\n```\n# Beads stealth mode: /Users/foo/work-project (added by bd init --stealth)\n/Users/foo/work-project/.beads/\n/Users/foo/work-project/.claude/settings.local.json\n```\n\n**Implementation:**\n1. Modify `setupGlobalGitIgnore()` in `cmd/bd/init.go`\n2. Get current working directory (absolute path)\n3. Use absolute path patterns instead of generic ones\n4. Update comment to show which project the entry is for\n\n**Tradeoffs:**\n- If project directory moves, gitignore entry becomes stale (acceptable - user can re-run `bd init --stealth`)\n- Multiple stealth projects = multiple entries (works correctly)\n\n**Testing:**\n- Verify absolute path is added to global gitignore\n- Verify other projects' .beads/ folders are NOT ignored\n- Test with existing global gitignore file\n- Test creating new global gitignore file","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-13T10:55:22.594278-08:00","updated_at":"2025-12-13T10:57:38.0241-08:00","closed_at":"2025-12-13T10:57:38.0241-08:00"} {"id":"bd-56p","title":"Add #nosec G304 comments to JSONL file reads in sync.go","description":"sync.go:610 uses os.ReadFile(jsonlPath) without #nosec comment, inconsistent with other JSONL reads that have '// #nosec G304 - controlled path'.\n\nAdd comment for consistency with integrity.go:43 and import.go:316.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-20T21:31:09.107493-05:00","updated_at":"2025-11-20T21:34:28.378089-05:00","closed_at":"2025-11-20T21:34:28.378089-05:00","dependencies":[{"issue_id":"bd-56p","depends_on_id":"bd-khnb","type":"blocks","created_at":"2025-11-20T21:31:09.108632-05:00","created_by":"daemon"}]} @@ -424,7 +423,7 @@ {"id":"bd-589x","title":"HANDOFF: Version 0.30.7 release in progress","description":"## Context\nDoing a 0.30.7 patch release with bug fixes.\n\n## What's done\n- Fixed #657: bd graph nil pointer crash (graph.go:102)\n- Fixed #652: Windows npm installer file lock (postinstall.js)\n- Updated CHANGELOG.md and info.go\n- Pushed to main, CI running (run 20390861825)\n- Created version-bump molecule template (bd-6s61) and instantiated for 0.30.7 (bd-8pyn)\n\n## In progress\nMolecule bd-8pyn has 3 remaining tasks:\n - bd-dxo7: Wait for CI to pass\n - bd-7l70: Verify release artifacts \n - bd-5c91: Update local installation\n\n## Check CI\n gh run list --repo steveyegge/beads --limit 1\n gh run view 20390861825 --repo steveyegge/beads\n\n## New feature filed\nbd-n777: Timer beads for scheduled agent callbacks\nDesign for Deacon-managed timers that can interrupt agents via tmux\n\n## Resume commands\n bd --no-daemon show bd-8pyn\n gh run list --repo steveyegge/beads --limit 1","status":"closed","priority":2,"issue_type":"message","created_at":"2025-12-19T23:06:14.902334-08:00","updated_at":"2025-12-20T00:49:51.927111-08:00","closed_at":"2025-12-20T00:25:59.596546-08:00"} {"id":"bd-58c0","title":"Fix transaction conflict in TryResurrectParent","description":"Integration test TestImportWithDeletedParent fails with 'database is locked' error when resurrection happens inside CreateIssue.\n\nRoot cause: TryResurrectParent calls conn.Get() and insertIssue() which conflicts with existing transaction in CreateIssue.\n\nError: failed to create tombstone for parent bd-parent: failed to insert issue: sqlite3: database is locked\n\nSolution: Refactor resurrection to accept optional transaction parameter, use existing transaction when available instead of creating new connection.\n\nImpact: Blocks resurrection from working in CreateIssue flow, only works in EnsureIDs (which may not have active transaction).","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-04T16:32:20.981027-08:00","updated_at":"2025-11-04T17:00:44.258881-08:00","closed_at":"2025-11-04T17:00:44.258881-08:00","dependencies":[{"issue_id":"bd-58c0","depends_on_id":"bd-d19a","type":"discovered-from","created_at":"2025-11-04T16:32:20.981969-08:00","created_by":"daemon"}]} {"id":"bd-59er","title":"Add --lock-timeout global flag","description":"Add new global flag to control SQLite busy_timeout.\n\n## Implementation\n1. Add to cmd/bd/main.go:\n - `lockTimeout time.Duration` global variable \n - Register flag: `--lock-timeout=\u003cduration\u003e` (default 30s)\n\n2. Add config support in internal/config/config.go:\n - `v.SetDefault(\"lock-timeout\", \"30s\")`\n - Read from config.yaml if not set via flag\n\n3. Pass timeout to sqlite.New() - see next task\n\n## Acceptance Criteria\n- `bd --lock-timeout=0 list` fails immediately if DB is locked\n- `bd --lock-timeout=100ms list` waits max 100ms\n- Config file setting works: `lock-timeout: 100ms`\n- Default remains 30s for backward compatibility\n\nPart of bd-olc1","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-13T17:54:36.277179-08:00","updated_at":"2025-12-13T18:05:19.367765-08:00","closed_at":"2025-12-13T18:05:19.367765-08:00"} -{"id":"bd-59h5f","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:58:12.449751-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T18:58:12.512659-08:00","closed_at":"2026-01-11T18:58:12.512659-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-59h5f","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T18:58:12.449751-08:00","updated_at":"2026-01-11T18:58:12.512659-08:00","closed_at":"2026-01-11T18:58:12.512659-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-5a90","title":"Test parent issue","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-14T12:12:46.530323-08:00","updated_at":"2025-12-14T12:12:46.530323-08:00","closed_at":"2025-12-13T23:29:56.878674-08:00"} {"id":"bd-5aad5a9c","title":"Add TestNWayCollision for 5+ clones","description":"## Overview\nAdd comprehensive tests for N-way (5+) collision resolution to verify the solution scales beyond 3 clones.\n\n## Purpose\nWhile TestThreeCloneCollision validates the basic N-way case, we need to verify:\n1. Solution scales to arbitrary N\n2. Performance is acceptable with more clones\n3. Convergence time is bounded\n4. No edge cases in larger collision groups\n\n## Implementation Tasks\n\n### 1. Create TestFiveCloneCollision\nFile: beads_twoclone_test.go (or new beads_nway_test.go)\n\n```go\nfunc TestFiveCloneCollision(t *testing.T) {\n // Test with 5 clones creating same ID with different content\n // Verify all 5 clones converge after sync rounds\n \n t.Run(\"SequentialSync\", func(t *testing.T) {\n testNCloneCollision(t, 5, \"A\", \"B\", \"C\", \"D\", \"E\")\n })\n \n t.Run(\"ReverseSync\", func(t *testing.T) {\n testNCloneCollision(t, 5, \"E\", \"D\", \"C\", \"B\", \"A\")\n })\n \n t.Run(\"RandomSync\", func(t *testing.T) {\n testNCloneCollision(t, 5, \"C\", \"A\", \"E\", \"B\", \"D\")\n })\n}\n```\n\n### 2. Implement generalized testNCloneCollision\nGeneralize the 3-clone test to handle arbitrary N:\n\n```go\nfunc testNCloneCollision(t *testing.T, numClones int, syncOrder ...string) {\n t.Helper()\n \n if len(syncOrder) != numClones {\n t.Fatalf(\"syncOrder length (%d) must match numClones (%d)\", \n len(syncOrder), numClones)\n }\n \n tmpDir := t.TempDir()\n \n // Setup remote and N clones\n remoteDir := setupBareRepo(t, tmpDir)\n cloneDirs := make(map[string]string)\n \n for i := 0; i \u003c numClones; i++ {\n name := string(rune('A' + i))\n cloneDirs[name] = setupClone(t, tmpDir, remoteDir, name)\n }\n \n // Each clone creates issue with same ID but different content\n for name, dir := range cloneDirs {\n createIssue(t, dir, fmt.Sprintf(\"Issue from clone %s\", name))\n }\n \n // Sync in specified order\n for _, name := range syncOrder {\n syncClone(t, cloneDirs[name], name)\n }\n \n // Final pull for convergence\n for name, dir := range cloneDirs {\n finalPull(t, dir, name)\n }\n \n // Verify all clones have all N issues\n expectedTitles := make(map[string]bool)\n for i := 0; i \u003c numClones; i++ {\n name := string(rune('A' + i))\n expectedTitles[fmt.Sprintf(\"Issue from clone %s\", name)] = true\n }\n \n for name, dir := range cloneDirs {\n titles := getTitles(t, dir)\n if !compareTitleSets(titles, expectedTitles) {\n t.Errorf(\"Clone %s missing issues: expected %v, got %v\", \n name, expectedTitles, titles)\n }\n }\n \n t.Log(\"✓ All\", numClones, \"clones converged successfully\")\n}\n```\n\n### 3. Add performance benchmarks\nTest convergence time and memory usage:\n\n```go\nfunc BenchmarkNWayCollision(b *testing.B) {\n for _, n := range []int{3, 5, 10, 20} {\n b.Run(fmt.Sprintf(\"N=%d\", n), func(b *testing.B) {\n for i := 0; i \u003c b.N; i++ {\n // Run N-way collision and measure time\n testNCloneCollisionBench(b, n)\n }\n })\n }\n}\n```\n\n### 4. Add convergence time tests\nVerify bounded convergence:\n\n```go\nfunc TestConvergenceTime(t *testing.T) {\n // Test that convergence happens within expected rounds\n // For N clones, should converge in at most N-1 sync rounds\n \n for n := 3; n \u003c= 10; n++ {\n t.Run(fmt.Sprintf(\"N=%d\", n), func(t *testing.T) {\n rounds := measureConvergenceRounds(t, n)\n maxExpected := n - 1\n if rounds \u003e maxExpected {\n t.Errorf(\"Convergence took %d rounds, expected ≤ %d\", \n rounds, maxExpected)\n }\n })\n }\n}\n```\n\n### 5. Add edge case tests\nTest boundary conditions:\n- All N clones have identical content (dedup works)\n- N-1 clones have same content, 1 differs\n- All N clones have unique content\n- Mix of collisions and non-collisions\n\n## Acceptance Criteria\n- TestFiveCloneCollision passes with all sync orders\n- All 5 clones converge to identical content\n- Performance is acceptable (\u003c 5 seconds for 5 clones)\n- Convergence time is bounded (≤ N-1 rounds)\n- Edge cases handled correctly\n- Benchmarks show scalability to 10+ clones\n\n## Files to Create/Modify\n- beads_twoclone_test.go or beads_nway_test.go\n- Add helper functions for N-clone setup\n\n## Testing Strategy\n\n### Test Matrix\n| N Clones | Sync Orders | Expected Result |\n|----------|-------------|-----------------|\n| 3 | A→B→C | Pass |\n| 3 | C→B→A | Pass |\n| 5 | A→B→C→D→E | Pass |\n| 5 | E→D→C→B→A | Pass |\n| 5 | Random | Pass |\n| 10 | Sequential | Pass |\n\n### Performance Targets\n- 3 clones: \u003c 2 seconds\n- 5 clones: \u003c 5 seconds\n- 10 clones: \u003c 15 seconds\n\n## Dependencies\n- Requires bd-cbed9619.5, bd-cbed9619.4, bd-cbed9619.3, bd-dcd6f14b to be completed\n- TestThreeCloneCollision must pass first\n\n## Success Metrics\n- All tests pass for N ∈ {3, 5, 10}\n- Convergence time scales linearly (O(N))\n- Memory usage reasonable (\u003c 100MB for 10 clones)\n- No data corruption or loss in any scenario","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T19:52:05.462747-07:00","updated_at":"2025-10-31T12:00:43.198413-07:00","closed_at":"2025-10-31T12:00:43.198413-07:00"} {"id":"bd-5arw","title":"Fix remaining FK constraint failures in AddComment and ApplyCompaction","description":"Follow-up to PR #348 (Fix FOREIGN KEY constraint failed).\n\nThe initial fix addressed CloseIssue, UpdateIssueID, and RemoveLabel.\nHowever, `AddComment` (in internal/storage/sqlite/events.go) and `ApplyCompaction` (in internal/storage/sqlite/compact.go) still suffer from the same pattern: inserting an event after an UPDATE without verifying the UPDATE affected any rows.\n\nThis causes \"FOREIGN KEY constraint failed\" errors when operating on non-existent issues, instead of clean \"issue not found\" errors.\n\nTask:\n1. Apply the same fix pattern to `AddComment` and `ApplyCompaction`: check RowsAffected() after UPDATE and before event INSERT.\n2. Ensure error messages are consistent (\"issue %s not found\").\n3. Verify with reproduction tests (create a test that calls these methods with a non-existent ID).","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-20T09:53:38.314776-08:00","updated_at":"2025-11-20T11:25:04.698765-08:00","closed_at":"2025-11-20T11:25:04.698765-08:00"} @@ -434,70 +433,70 @@ {"id":"bd-5bj","title":"Registry has cross-process race condition","description":"The global daemon registry (~/.beads/registry.json) can be corrupted when multiple daemons from different workspaces write simultaneously.\n\n**Root cause:**\n- Registry uses an in-process mutex but no file-level locking\n- Register() and Unregister() release the mutex between read and write\n- Multiple daemon processes can interleave their read-modify-write cycles\n\n**Evidence:**\nFound registry.json with double closing bracket: `]]` instead of `]`\n\n**Fix options:**\n1. Use file locking (flock/fcntl) around the entire read-modify-write cycle\n2. Use atomic write pattern (write to temp file, rename)\n3. Both (belt and suspenders)\n\n**Files:**\n- internal/daemon/registry.go:46-64 (readEntries)\n- internal/daemon/registry.go:67-87 (writeEntries)\n- internal/daemon/registry.go:90-108 (Register - the race window)","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-27T13:55:50.426188-08:00","updated_at":"2025-11-27T14:07:06.22622-08:00","closed_at":"2025-11-27T14:07:06.22622-08:00"} {"id":"bd-5c4","title":"VCS-agnostic sync support","description":"Make bd sync work with multiple VCS types (git, jujutsu, mercurial, sapling) by detecting VCS per repo and using appropriate sync commands, supporting mixed-VCS multi-repo configs.","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-11-04T11:22:00.837527-08:00","updated_at":"2025-11-05T14:30:10.417479-08:00","closed_at":"2025-11-05T14:26:17.942832-08:00","dependencies":[{"issue_id":"bd-5c4","depends_on_id":"bd-4ms","type":"parent-child","created_at":"2025-11-04T11:22:21.817849-08:00","created_by":"daemon"}]} {"id":"bd-5ce8","title":"Document protected branch workflow","description":"Create comprehensive documentation for protected branch workflow.\n\nTasks:\n- Add \"Protected Branch Workflow\" section to AGENTS.md\n- Create docs/PROTECTED_BRANCHES.md guide\n- Update README.md quick start\n- Add examples to examples/protected-branch/\n- Update bd init --help documentation\n- Add troubleshooting guide\n- Add migration guide for existing users\n- Record demo video (optional)\n\nEstimated effort: 2-3 days","notes":"Completed protected branch workflow documentation. Created comprehensive guide (docs/PROTECTED_BRANCHES.md), updated AGENTS.md with workflow section, added feature to README.md, and created working example (examples/protected-branch/). All commands verified working (bd init --branch, bd sync --status, bd sync --merge, bd config get/set sync.branch).","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-02T15:22:35.59013-08:00","updated_at":"2025-12-14T12:12:46.530569-08:00","closed_at":"2025-11-04T11:10:23.530621-08:00","dependencies":[{"issue_id":"bd-5ce8","depends_on_id":"bd-a101","type":"parent-child","created_at":"2025-11-02T15:22:48.379767-08:00","created_by":"stevey"}]} -{"id":"bd-5cnq","title":"Add build-from-source option to local-install step","description":"dispatched_by: mayor\n\nThe local-install step currently only offers Homebrew and curl install script options.\n\nAdd Option 3 for developers releasing from this clone:\n\n```bash\n# Build from source\ngo build -o bd ./cmd/bd\ncp bd ~/.local/bin/bd\n\n# macOS ONLY: Codesign to prevent SIGKILL (Killed: 9)\n# Without this, macOS kills unsigned binaries from unknown developers\n[[ $(uname) == \"Darwin\" ]] \u0026\u0026 codesign --force --sign - ~/.local/bin/bd\n```\n\n## Why codesigning matters\nOn macOS, unsigned binaries built locally can be killed by Gatekeeper with \"Killed: 9\" (SIGKILL). The ad-hoc codesign (`-s -`) marks the binary as locally trusted.\n\n## Acceptance Criteria\n- [ ] local-install step has Option 3 with build commands\n- [ ] macOS codesigning is documented with explanation\n- [ ] Commands can be copy-pasted and work","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-07T00:45:30.577889-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T20:57:59.131312-08:00","dependencies":[{"issue_id":"bd-5cnq","depends_on_id":"bd-z8xz","type":"parent-child","created_at":"2026-01-07T00:45:40.493442-08:00","created_by":"beads/crew/emma"}]} -{"id":"bd-5cwip","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T17:52:14.257037-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T17:52:14.324651-08:00","closed_at":"2026-01-12T17:52:14.324651-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-5cnq","title":"Add build-from-source option to local-install step","description":"dispatched_by: mayor\n\nThe local-install step currently only offers Homebrew and curl install script options.\n\nAdd Option 3 for developers releasing from this clone:\n\n```bash\n# Build from source\ngo build -o bd ./cmd/bd\ncp bd ~/.local/bin/bd\n\n# macOS ONLY: Codesign to prevent SIGKILL (Killed: 9)\n# Without this, macOS kills unsigned binaries from unknown developers\n[[ $(uname) == \"Darwin\" ]] \u0026\u0026 codesign --force --sign - ~/.local/bin/bd\n```\n\n## Why codesigning matters\nOn macOS, unsigned binaries built locally can be killed by Gatekeeper with \"Killed: 9\" (SIGKILL). The ad-hoc codesign (`-s -`) marks the binary as locally trusted.\n\n## Acceptance Criteria\n- [ ] local-install step has Option 3 with build commands\n- [ ] macOS codesigning is documented with explanation\n- [ ] Commands can be copy-pasted and work","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-07T00:45:30.577889-08:00","updated_at":"2026-01-10T20:57:59.131312-08:00","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-5cnq","depends_on_id":"bd-z8xz","type":"parent-child","created_at":"2026-01-07T00:45:40.493442-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-5cwip","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T17:52:14.257037-08:00","updated_at":"2026-01-12T17:52:14.324651-08:00","closed_at":"2026-01-12T17:52:14.324651-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} {"id":"bd-5dae5504","title":"Export deduplication breaks when JSONL and export_hashes table diverge","description":"## Problem\n\nThe export deduplication feature (timestamp-only skipping) breaks when the JSONL file and export_hashes table get out of sync, causing exports to skip issues that aren't actually in the file.\n\n## Symptoms\n\n- `bd export` reports \"Skipped 128 issue(s) with timestamp-only changes\"\n- JSONL file only has 38 lines but DB has 149 issues\n- export_hashes table has 149 entries\n- Auto-import doesn't trigger (hash matches despite missing data)\n- Two repos on same commit show different issue counts\n\n## Root Cause\n\nshouldSkipExport() in autoflush.go compares current issue hash with stored export_hashes entry. If they match, it skips export assuming the issue is already in the JSONL.\n\nThis assumption fails when:\n1. Git operations (pull, reset, checkout) change JSONL without clearing export_hashes\n2. Manual JSONL edits or corruption\n3. Import operations that modify DB but don't update export_hashes\n4. Partial exports that update export_hashes but don't complete\n\n## Impact\n\n- **Critical data loss risk**: Issues appear to be tracked but aren't persisted to git\n- Breaks multi-repo sync (root cause of today's debugging session)\n- Auto-import fails to detect staleness (hash matches despite missing data)\n- Silent data corruption (no error messages, just missing issues)\n\n## Reproduction\n\n1. Have DB with 149 issues, all in export_hashes table\n2. Truncate JSONL to 38 lines (simulate git reset or corruption)\n3. Run `bd export` - it skips 128 issues\n4. JSONL still has only 38 lines but export thinks it succeeded\n\n## Current Workaround\n\n```bash\nsqlite3 .beads/beads.db \"DELETE FROM export_hashes\"\nbd export -o .beads/beads.jsonl\n```\n\n## Proposed Solutions\n\n**Option 1: Verify JSONL integrity before skipping**\n- Count lines in JSONL, compare with export_hashes count\n- If mismatch, clear export_hashes and force full export\n- Safe but adds I/O overhead\n\n**Option 2: Hash-based JSONL validation**\n- Store hash of entire JSONL file in metadata\n- Before export, check if JSONL hash matches\n- If mismatch, clear export_hashes\n- More efficient, detects any JSONL corruption\n\n**Option 3: Disable timestamp-only deduplication**\n- Remove the feature entirely\n- Always export all issues\n- Simplest and safest, but creates larger git commits\n\n**Option 4: Clear export_hashes on git operations**\n- Add post-merge hook to clear export_hashes\n- Clear on any import operation\n- Defensive approach but may over-clear\n\n## Recommended Fix\n\nCombination of Options 2 + 4:\n1. Store JSONL file hash in metadata after export\n2. Check hash before export, clear export_hashes if mismatch \n3. Clear export_hashes on import operations\n4. Add `bd validate` check for JSONL/export_hashes sync\n\n## Files Involved\n\n- cmd/bd/autoflush.go (shouldSkipExport)\n- cmd/bd/export.go (export with deduplication)\n- internal/storage/sqlite/metadata.go (export_hashes table)","notes":"## Recovery Session (2025-10-29 21:30)\n\n### What Happened\n- Created 14 new hash ID issues (bd-f8b764c9 through bd-f8b764c9.1) \n- bd sync appeared to succeed\n- Canonical repo (~/src/beads): 162 issues in DB + JSONL ✓\n- Secondary repo (fred/beads): Only 145 issues vs 162 in canonical ✗\n- Both repos on same git commit but different issue counts!\n\n### Bug Manifestation During Recovery\n\n1. **Initial state**: fred/beads had 145 issues, 145 lines in JSONL, 145 export_hashes entries\n\n2. **After git reset --hard origin/main**: \n - JSONL: 162 lines (from git)\n - DB: 150 issues (auto-import partially worked)\n - Auto-import failed with UNIQUE constraint error\n\n3. **After manual import --resolve-collisions**:\n - DB: 160 issues\n - JSONL: Still 162 lines\n - export_hashes: 159 entries\n\n4. **After bd export**: \n - **JSONL reduced to 17 lines!** ← The bug in action\n - export_hashes: 159 entries (skipped exporting 142 issues)\n - Silent data loss - no error message\n\n5. **After clearing export_hashes and re-export**:\n - JSONL: 159 lines (missing 3 issues still)\n - DB: 159 issues\n - Still diverged from canonical\n\n### The Bug Loop\nOnce export_hashes and JSONL diverge:\n- Export skips issues already in export_hashes\n- But those issues aren't actually in JSONL\n- This creates corrupt JSONL with missing issues\n- Auto-import can't detect the problem (file hash matches what was exported)\n- Data is lost with no error messages\n\n### Recovery Solution\nCouldn't break the loop with export alone. Had to:\n1. Copy .beads/beads.db from canonical repo\n2. Clear export_hashes\n3. Full re-export\n4. Finally converged to 162 issues\n\n### Key Learnings\n\n1. **The bug is worse than we thought**: It can create corrupt exports (17 lines instead of 162!)\n\n2. **Auto-import can't save you**: Once export is corrupt, auto-import just imports the corrupt data\n\n3. **Silent failure**: No warnings, no errors, just missing issues\n\n4. **Git operations trigger it**: git reset, git pull, etc. change JSONL without clearing export_hashes\n\n5. **Import operations populate export_hashes**: Even manual imports update export_hashes, setting up future export failures\n\n### Immediate Action Required\n\n**DISABLE EXPORT DEDUPLICATION NOW**\n\nThis feature is fundamentally broken and causes data loss. Should be disabled until properly fixed.\n\nQuick fix options:\n- Set environment variable to disable feature\n- Comment out shouldSkipExport check\n- Always clear export_hashes before export\n- Add validation that DB count == JSONL line count before allowing export\n\n### Long-term Fix\n\nNeed Option 2 + 4 from proposed solutions:\n1. Store JSONL file hash after every successful export\n2. Before export, verify JSONL hash matches expected\n3. If mismatch, log WARNING and clear export_hashes\n4. Clear export_hashes on every import operation\n5. Add git post-merge hook to clear export_hashes\n6. Add `bd validate` command to detect divergence\n","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-10-29T23:05:13.959435-07:00","updated_at":"2025-10-30T17:12:58.207148-07:00","closed_at":"2025-10-29T21:57:03.06641-07:00"} -{"id":"bd-5dlz","title":"GHI #889: postinstall fails on Windows - zip being used by another process","description":"GitHub Issue #889: postinstall fails on Windows: zip 'being used by another process'\n\nhttps://github.com/steveyegge/beads/issues/889","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-04T11:22:13.880052-08:00","created_by":"mayor","updated_at":"2026-01-04T15:22:08.708256-08:00","closed_at":"2026-01-04T11:26:35.696283-08:00","close_reason":"Fixed: Added retry logic with exponential backoff for Windows zip extraction to handle file lock delays from antivirus/Node.js"} -{"id":"bd-5dmb","title":"Test Agent","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2025-12-28T00:04:29.811433-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-28T00:11:48.074239-08:00","deleted_at":"2025-12-28T00:11:48.074239-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"agent"} +{"id":"bd-5dlz","title":"GHI #889: postinstall fails on Windows - zip being used by another process","description":"GitHub Issue #889: postinstall fails on Windows: zip 'being used by another process'\n\nhttps://github.com/steveyegge/beads/issues/889","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-04T11:22:13.880052-08:00","updated_at":"2026-01-04T15:22:08.708256-08:00","closed_at":"2026-01-04T11:26:35.696283-08:00","close_reason":"Fixed: Added retry logic with exponential backoff for Windows zip extraction to handle file lock delays from antivirus/Node.js","created_by":"mayor"} +{"id":"bd-5dmb","title":"Test Agent","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2025-12-28T00:04:29.811433-08:00","updated_at":"2025-12-28T00:11:48.074239-08:00","created_by":"beads/crew/emma","deleted_at":"2025-12-28T00:11:48.074239-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"agent"} {"id":"bd-5e1f","title":"Issue with desc","description":"This is a description","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-10-31T21:41:11.128718-07:00","updated_at":"2025-11-04T11:10:23.531094-08:00","closed_at":"2025-11-04T11:10:23.531097-08:00"} -{"id":"bd-5e9q","title":"Add backwards-compatible aliases and deprecation warnings","description":"## Task\nEnsure backwards compatibility by adding hidden aliases for all moved commands.\n\n## Implementation\n\n### Create aliases.go\nNew file to centralize alias management:\n```go\npackage main\n\nimport (\n \"fmt\"\n \"os\"\n \n \"github.com/spf13/cobra\"\n)\n\n// Deprecated command aliases for backwards compatibility\n// These will be removed in v0.XX.0\n\nfunc init() {\n // migrate-* → migrate *\n addDeprecatedAlias(\"migrate-hash-ids\", \"migrate hash-ids\")\n addDeprecatedAlias(\"migrate-issues\", \"migrate issues\")\n addDeprecatedAlias(\"migrate-sync\", \"migrate sync\")\n addDeprecatedAlias(\"migrate-tombstones\", \"migrate tombstones\")\n \n // top-level → admin *\n addDeprecatedAlias(\"cleanup\", \"admin cleanup\")\n addDeprecatedAlias(\"compact\", \"admin compact\")\n addDeprecatedAlias(\"reset\", \"admin reset\")\n \n // top-level → formula *\n addDeprecatedAlias(\"cook\", \"formula cook\")\n}\n\nfunc addDeprecatedAlias(old, new string) {\n cmd := \u0026cobra.Command{\n Use: old,\n Hidden: true,\n Run: func(cmd *cobra.Command, args []string) {\n fmt.Fprintf(os.Stderr, \"⚠️ '%s' is deprecated, use '%s' instead\\n\", old, new)\n // Forward execution to new command\n },\n }\n rootCmd.AddCommand(cmd)\n}\n```\n\n### Deprecation behavior\n1. First release: Show warning, execute command\n2. One release later: Show warning, still execute\n3. Third release: Remove aliases entirely\n\n## Files to create\n- cmd/bd/aliases.go\n\n## Files to modify \n- cmd/bd/main.go (ensure aliases loaded)\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T15:11:33.54574-08:00","created_by":"mayor","updated_at":"2025-12-27T16:06:08.157887-08:00","closed_at":"2025-12-27T16:06:08.157887-08:00"} +{"id":"bd-5e9q","title":"Add backwards-compatible aliases and deprecation warnings","description":"## Task\nEnsure backwards compatibility by adding hidden aliases for all moved commands.\n\n## Implementation\n\n### Create aliases.go\nNew file to centralize alias management:\n```go\npackage main\n\nimport (\n \"fmt\"\n \"os\"\n \n \"github.com/spf13/cobra\"\n)\n\n// Deprecated command aliases for backwards compatibility\n// These will be removed in v0.XX.0\n\nfunc init() {\n // migrate-* → migrate *\n addDeprecatedAlias(\"migrate-hash-ids\", \"migrate hash-ids\")\n addDeprecatedAlias(\"migrate-issues\", \"migrate issues\")\n addDeprecatedAlias(\"migrate-sync\", \"migrate sync\")\n addDeprecatedAlias(\"migrate-tombstones\", \"migrate tombstones\")\n \n // top-level → admin *\n addDeprecatedAlias(\"cleanup\", \"admin cleanup\")\n addDeprecatedAlias(\"compact\", \"admin compact\")\n addDeprecatedAlias(\"reset\", \"admin reset\")\n \n // top-level → formula *\n addDeprecatedAlias(\"cook\", \"formula cook\")\n}\n\nfunc addDeprecatedAlias(old, new string) {\n cmd := \u0026cobra.Command{\n Use: old,\n Hidden: true,\n Run: func(cmd *cobra.Command, args []string) {\n fmt.Fprintf(os.Stderr, \"⚠️ '%s' is deprecated, use '%s' instead\\n\", old, new)\n // Forward execution to new command\n },\n }\n rootCmd.AddCommand(cmd)\n}\n```\n\n### Deprecation behavior\n1. First release: Show warning, execute command\n2. One release later: Show warning, still execute\n3. Third release: Remove aliases entirely\n\n## Files to create\n- cmd/bd/aliases.go\n\n## Files to modify \n- cmd/bd/main.go (ensure aliases loaded)\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T15:11:33.54574-08:00","updated_at":"2025-12-27T16:06:08.157887-08:00","closed_at":"2025-12-27T16:06:08.157887-08:00","created_by":"mayor"} {"id":"bd-5exm","title":"Merge: bd-49kw","description":"branch: polecat/nux\ntarget: main\nsource_issue: bd-49kw\nrig: beads","status":"closed","priority":1,"issue_type":"merge-request","created_at":"2025-12-23T20:43:23.156375-08:00","updated_at":"2025-12-23T21:21:57.693169-08:00","closed_at":"2025-12-23T21:21:57.693169-08:00"} {"id":"bd-5f26","title":"Refactor daemon.go into internal/daemonrunner","description":"Extract daemon runtime from daemon.go (1,565 lines) into internal/daemonrunner with focused modules: config.go, daemon.go, process.go, rpc_server.go, sync.go, git.go. Keep cobra command thin.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-01T11:41:14.821017-07:00","updated_at":"2025-12-14T12:12:46.554283-08:00","closed_at":"2025-11-01T22:34:00.944402-07:00"} {"id":"bd-5f483051","title":"Implement bd resolve-conflicts (git merge conflicts in JSONL)","description":"Automatically detect and resolve git merge conflicts in .beads/issues.jsonl file.\n\nFeatures:\n- Detect conflict markers in JSONL\n- Parse conflicting issues from HEAD and BASE\n- Provide mechanical resolution (remap duplicate IDs)\n- Support AI-assisted resolution (requires internal/ai package)\n\nSee repair_commands.md lines 125-353 for design.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-28T19:37:55.722827-07:00","updated_at":"2025-12-14T12:12:46.519212-08:00","closed_at":"2025-11-06T19:26:45.397628-08:00"} -{"id":"bd-5hjuz","title":"Fix: Issue blocker not in effect (GH#962)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #962. Issue blocking/dependencies not working correctly. Core feature.","status":"closed","priority":0,"issue_type":"bug","assignee":"beads/polecats/garnet","created_at":"2026-01-09T22:20:00.480247-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-10T16:40:16.773173-08:00","closed_at":"2026-01-10T16:40:16.773173-08:00","close_reason":"Verified fix is in place; added test coverage for blocker check in RPC handler (GH#962)"} +{"id":"bd-5hjuz","title":"Fix: Issue blocker not in effect (GH#962)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #962. Issue blocking/dependencies not working correctly. Core feature.","status":"closed","priority":0,"issue_type":"bug","created_at":"2026-01-09T22:20:00.480247-08:00","updated_at":"2026-01-10T16:40:16.773173-08:00","closed_at":"2026-01-10T16:40:16.773173-08:00","close_reason":"Verified fix is in place; added test coverage for blocker check in RPC handler (GH#962)","created_by":"beads/crew/dave"} {"id":"bd-5hrq","title":"bd doctor: detect issues referenced in commits but still open","description":"Add a doctor check that finds 'orphaned' issues - ones referenced in git commit messages (e.g., 'fix bug (bd-xxx)') but still marked as open in beads.\n\n**Detection logic:**\n1. Get all open issue IDs from beads\n2. Parse git log for issue ID references matching pattern \\(prefix-[a-z0-9.]+\\)\n3. Report issues that appear in commits but are still open\n\n**Output:**\n⚠ Warning: N issues referenced in commits but still open\n bd-xxx: 'Issue title' (commit abc123)\n bd-yyy: 'Issue title' (commit def456)\n \n These may be implemented but not closed. Run 'bd show \u003cid\u003e' to check.\n\n**Implementation:**\n- Add check to doctor/checks.go\n- Use git log parsing (already have git utilities)\n- Match against configured issue_prefix","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-12-21T21:48:08.473165-08:00","updated_at":"2025-12-21T21:55:37.795109-08:00","closed_at":"2025-12-21T21:55:37.795109-08:00"} {"id":"bd-5ibn","title":"Latency test 1","notes":"Resetting stale in_progress status from old executor run (yesterday)","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-20T12:16:30.703754-05:00","updated_at":"2025-12-14T00:32:11.04809-08:00","closed_at":"2025-12-13T23:29:56.878439-08:00"} {"id":"bd-5iv","title":"Test Epic","description":"## Overview\n\n[Describe the high-level goal and scope of this epic]\n\n## Success Criteria\n\n- [ ] Criteria 1\n- [ ] Criteria 2\n- [ ] Criteria 3\n\n## Background\n\n[Provide context and motivation]\n\n## Scope\n\n**In Scope:**\n- Item 1\n- Item 2\n\n**Out of Scope:**\n- Item 1\n- Item 2\n","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-03T20:15:03.864229-08:00","updated_at":"2025-11-05T00:25:06.538749-08:00","closed_at":"2025-11-05T00:25:06.538749-08:00"} -{"id":"bd-5jcch","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T19:01:32.13078-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T19:01:32.16821-08:00","closed_at":"2026-01-07T19:01:32.16821-08:00","close_reason":"auto-closed session event"} -{"id":"bd-5jmmr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:37:43.085685-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:37:43.151117-08:00","closed_at":"2026-01-11T19:37:43.151117-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-5jcch","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T19:01:32.13078-08:00","updated_at":"2026-01-07T19:01:32.16821-08:00","closed_at":"2026-01-07T19:01:32.16821-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-5jmmr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:37:43.085685-08:00","updated_at":"2026-01-11T19:37:43.151117-08:00","closed_at":"2026-01-11T19:37:43.151117-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-5ki8","title":"Add integration tests for adapter library","description":"Test suite for beads_mail_adapter.py covering all scenarios.\n\nAcceptance Criteria:\n- Test enabled mode (server available)\n- Test disabled mode (server unavailable)\n- Test graceful degradation (server dies mid-operation)\n- Test reservation conflicts\n- Test message sending/receiving\n- Mock HTTP server for testing\n- 90%+ code coverage\n\nFile: lib/test_beads_mail_adapter.py","notes":"Test suite completed with 29 comprehensive tests covering:\n- Enabled mode (server available): 10 tests\n- Disabled mode (server unavailable): 2 tests \n- Graceful degradation: 4 tests\n- Reservation conflicts: 2 tests\n- Configuration: 5 tests\n- Health check scenarios: 3 tests\n- HTTP error handling: 3 tests\n\n**Performance**: All tests run in 10ms (fast!)\n\n**Coverage highlights**:\n✅ Server health checks (ok, degraded, error, timeout)\n✅ All API operations (reserve, release, notify, check_inbox, get_reservations)\n✅ HTTP errors (404, 409 conflict, 500, 503)\n✅ Network errors (timeout, connection refused)\n✅ Malformed responses (bad JSON, empty body, plain text errors)\n✅ Environment variable configuration\n✅ Graceful degradation when server dies mid-operation\n✅ Conflict handling with both JSON and plain text errors\n✅ Dict wrapper responses ({\"messages\": [...]} and {\"reservations\": [...]})\n✅ Custom TTL for reservations\n✅ Default agent name fallback\n\nNo external dependencies, no slow integration tests, just fast unit tests with mocks.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-07T22:43:21.294596-08:00","updated_at":"2025-11-08T01:32:39.906342-08:00","closed_at":"2025-11-08T01:32:39.906342-08:00","dependencies":[{"issue_id":"bd-5ki8","depends_on_id":"bd-m9th","type":"blocks","created_at":"2025-11-07T22:43:21.296024-08:00","created_by":"daemon"}]} -{"id":"bd-5kkec","title":"Document bd mol ready --gated in README","description":"New gate-resume discovery command (bd-lhalq) is not documented in README.md. Should add to command reference with examples.","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-08T21:32:38.528711-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T21:32:38.528711-08:00","dependencies":[{"issue_id":"bd-5kkec","depends_on_id":"bd-ka761","type":"discovered-from","created_at":"2026-01-08T21:32:43.629165-08:00","created_by":"beads/crew/emma"}]} -{"id":"bd-5l59","title":"Code smell: Issue struct is a God Object (50+ fields)","description":"attached_args: Refactor Issue struct God Object\n\nThe Issue struct in internal/types/types.go has 50+ fields covering many different concerns:\n\n- Basic issue tracking (ID, Title, Description, Status, Priority)\n- Messaging/communication (Sender, Ephemeral, etc.)\n- Agent identity (HookBead, RoleBead, AgentState, RoleType, Rig)\n- Gate/async coordination (AwaitType, AwaitID, Timeout, Waiters)\n- Source tracing (SourceFormula, SourceLocation)\n- HOP validation/entities (Creator, Validations)\n- Compaction (CompactionLevel, CompactedAt, OriginalSize)\n- Tombstones (DeletedAt, DeletedBy, DeleteReason)\n\nConsider:\n1. Extracting field groups into embedded structs (e.g., AgentFields, GateFields)\n2. Using composition pattern to make the struct more modular\n3. At minimum, grouping related fields together with section comments\n\nLocation: internal/types/types.go:12-82","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T15:31:34.021236-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T16:41:07.721864-08:00","closed_at":"2025-12-28T16:41:07.721864-08:00","dependencies":[{"issue_id":"bd-5l59","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.187103-08:00","created_by":"daemon"}]} -{"id":"bd-5liej","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:49:50.888221-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T19:49:50.949941-08:00","closed_at":"2026-01-12T19:49:50.949941-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-5n9d3","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T07:42:41.56523-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T07:42:41.626937-08:00","closed_at":"2026-01-11T07:42:41.626937-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-5nu1","title":"Mega-molecule progress support for Hanoi demo","description":"Beads-side work for million-step molecule monitoring.\n\n## Context\nTowers of Hanoi with 20 disks = 1,048,575 steps.\nNeed efficient progress queries and display guards.\n\n## Requirements\n1. bd mol progress command (summary without listing all steps)\n2. Display guards in bd mol current (detect large molecules)\n3. Efficient child count queries (already indexed)","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-31T00:52:40.474932-08:00","created_by":"gastown/crew/max","updated_at":"2025-12-31T13:08:29.656523-08:00","closed_at":"2025-12-31T13:08:29.656523-08:00","close_reason":"All children complete: mol progress command and display guards implemented"} -{"id":"bd-5o9k8","title":"Review and merge PR #980: gitignore sync state files","description":"dispatched_by: beads/crew/emma\n\n## Task\nReview and merge PR #980 from peterkc.\n\n**PR**: https://github.com/steveyegge/beads/pull/980\n\n## What it does\n- Adds .sync.lock and sync_base.jsonl to GitignoreTemplate\n- Adds both patterns to requiredPatterns for bd doctor validation\n- Fixes SYNC.md documentation\n\n## Easy-win criteria met\n- Bug fix with clear scope\n- Has tests\n- Documentation fix included\n- Low risk\n\n## Instructions\n1. Clone/fetch the PR: gh pr checkout 980 --repo steveyegge/beads\n2. Run tests: go test ./cmd/bd/doctor/...\n3. Review the diff: gh pr diff 980 --repo steveyegge/beads\n4. If tests pass and code looks good, approve and merge\n5. Close this bead when done","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/dave","created_at":"2026-01-09T10:59:57.727774-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T11:04:54.725911-08:00","closed_at":"2026-01-09T11:04:54.725911-08:00","close_reason":"PR #980 reviewed, approved, and merged. Adds .sync.lock and sync_base.jsonl to gitignore template and required patterns for bd doctor."} +{"id":"bd-5kkec","title":"Document bd mol ready --gated in README","description":"New gate-resume discovery command (bd-lhalq) is not documented in README.md. Should add to command reference with examples.","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-08T21:32:38.528711-08:00","updated_at":"2026-01-08T21:32:38.528711-08:00","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-5kkec","depends_on_id":"bd-ka761","type":"discovered-from","created_at":"2026-01-08T21:32:43.629165-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-5l59","title":"Code smell: Issue struct is a God Object (50+ fields)","description":"attached_args: Refactor Issue struct God Object\n\nThe Issue struct in internal/types/types.go has 50+ fields covering many different concerns:\n\n- Basic issue tracking (ID, Title, Description, Status, Priority)\n- Messaging/communication (Sender, Ephemeral, etc.)\n- Agent identity (HookBead, RoleBead, AgentState, RoleType, Rig)\n- Gate/async coordination (AwaitType, AwaitID, Timeout, Waiters)\n- Source tracing (SourceFormula, SourceLocation)\n- HOP validation/entities (Creator, Validations)\n- Compaction (CompactionLevel, CompactedAt, OriginalSize)\n- Tombstones (DeletedAt, DeletedBy, DeleteReason)\n\nConsider:\n1. Extracting field groups into embedded structs (e.g., AgentFields, GateFields)\n2. Using composition pattern to make the struct more modular\n3. At minimum, grouping related fields together with section comments\n\nLocation: internal/types/types.go:12-82","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T15:31:34.021236-08:00","updated_at":"2025-12-28T16:41:07.721864-08:00","closed_at":"2025-12-28T16:41:07.721864-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-5l59","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.187103-08:00","created_by":"daemon"}]} +{"id":"bd-5liej","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:49:50.888221-08:00","updated_at":"2026-01-12T19:49:50.949941-08:00","closed_at":"2026-01-12T19:49:50.949941-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-5n9d3","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T07:42:41.56523-08:00","updated_at":"2026-01-11T07:42:41.626937-08:00","closed_at":"2026-01-11T07:42:41.626937-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-5nu1","title":"Mega-molecule progress support for Hanoi demo","description":"Beads-side work for million-step molecule monitoring.\n\n## Context\nTowers of Hanoi with 20 disks = 1,048,575 steps.\nNeed efficient progress queries and display guards.\n\n## Requirements\n1. bd mol progress command (summary without listing all steps)\n2. Display guards in bd mol current (detect large molecules)\n3. Efficient child count queries (already indexed)","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-31T00:52:40.474932-08:00","updated_at":"2025-12-31T13:08:29.656523-08:00","closed_at":"2025-12-31T13:08:29.656523-08:00","close_reason":"All children complete: mol progress command and display guards implemented","created_by":"gastown/crew/max"} +{"id":"bd-5o9k8","title":"Review and merge PR #980: gitignore sync state files","description":"dispatched_by: beads/crew/emma\n\n## Task\nReview and merge PR #980 from peterkc.\n\n**PR**: https://github.com/steveyegge/beads/pull/980\n\n## What it does\n- Adds .sync.lock and sync_base.jsonl to GitignoreTemplate\n- Adds both patterns to requiredPatterns for bd doctor validation\n- Fixes SYNC.md documentation\n\n## Easy-win criteria met\n- Bug fix with clear scope\n- Has tests\n- Documentation fix included\n- Low risk\n\n## Instructions\n1. Clone/fetch the PR: gh pr checkout 980 --repo steveyegge/beads\n2. Run tests: go test ./cmd/bd/doctor/...\n3. Review the diff: gh pr diff 980 --repo steveyegge/beads\n4. If tests pass and code looks good, approve and merge\n5. Close this bead when done","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-09T10:59:57.727774-08:00","updated_at":"2026-01-09T11:04:54.725911-08:00","closed_at":"2026-01-09T11:04:54.725911-08:00","close_reason":"PR #980 reviewed, approved, and merged. Adds .sync.lock and sync_base.jsonl to gitignore template and required patterns for bd doctor.","created_by":"beads/crew/emma"} {"id":"bd-5ots","title":"SearchIssues N+1 query causes context timeout with GetLabels","description":"scanIssues() calls GetLabels in a loop for every issue, causing N+1 queries and context deadline exceeded errors when used with short timeouts or in-memory databases. This is especially problematic since SearchIssues already supports label filtering via SQL WHERE clauses.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-05T19:12:02.245879-08:00","updated_at":"2025-11-05T19:22:11.668682-08:00","closed_at":"2025-11-05T19:22:11.668682-08:00"} {"id":"bd-5owhu","title":"Digest: mol-refinery-patrol","description":"Patrol cycle: MQ empty, 0 branches merged, no issues","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T23:31:56.072035-08:00","updated_at":"2026-01-10T23:31:56.072035-08:00","closed_at":"2026-01-10T23:31:56.071991-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-5qim","title":"Optimize GetReadyWork performance - 752ms on 10K database (target: \u003c50ms)","notes":"# Performance Analysis (10K Issue Database)\n\nAnalyzed using CPU profiles from benchmark suite on Apple M2 Pro.\n\n## Operation Performance\n\n| Operation | Time | Allocations | Memory |\n|----------------------------------|---------|-------------|--------|\n| bd ready (GetReadyWork) | ~752ms | 167,466 | 16MB |\n| bd list (SearchIssues no filter) | ~11.6ms | 89,214 | 5.8MB |\n| bd list (SearchIssues filtered) | ~9.2ms | 62,365 | 3.5MB |\n| bd create (CreateIssue) | ~2.6ms | 146 | 8.6KB |\n| bd update (UpdateIssue) | ~0.32ms | 364 | 15KB |\n| bd close (UpdateIssue) | ~0.32ms | 364 | 15KB |\n\n**Target: \u003c50ms for all operations on 10K database**\n\n**Current issue: GetReadyWork is 15x over target (752ms vs 50ms)**\n\n## Root Cause\n\nGetReadyWork (internal/storage/sqlite/ready.go:90-128) uses recursive CTE to propagate blocking:\n- 65x slower than SearchIssues\n- Recalculates entire blocked issue tree on every call\n- Algorithm:\n 1. Find directly blocked issues via 'blocks' dependencies\n 2. Recursively propagate blockage to descendants (max depth: 50)\n 3. Exclude all blocked issues from results\n\n## CPU Profile Analysis\n\n- Database syscalls (pthread_cond_signal, syscall6): ~75%\n- SQLite engine overhead: inherent to recursive CTE\n- Application code (query construction): \u003c1%\n\n**Bottleneck is the recursive CTE query execution, not application code.**\n\n## Optimization Recommendations\n\n### High Impact (Likely to achieve \u003c50ms target)\n\n1. **Cache blocked issue calculation**\n - Add `blocked_issues` table updated on dependency changes\n - Trade write complexity for read speed (ready called \u003e\u003e dependency changes)\n - Eliminates recursive CTE on every read\n\n2. **Add/verify database indexes**\n ```sql\n CREATE INDEX IF NOT EXISTS idx_dependencies_blocked \n ON dependencies(issue_id, type, depends_on_id);\n CREATE INDEX IF NOT EXISTS idx_issues_status \n ON issues(status);\n ```\n\n### Medium Impact\n\n3. **Reduce allocations** (167K allocations for GetReadyWork)\n - Profile `scanIssues()` for object pooling opportunities\n - Reuse slice capacity for repeated calls\n\n### Low Impact (Not recommended)\n- Query optimization for CRUD operations (already \u003c3ms)\n- Connection pooling tuning (not showing in profiles)\n\n## Verification\n\nRun benchmarks to validate optimization:\n```bash\nmake bench-quick\ngo tool pprof -http=:8080 internal/storage/sqlite/bench-cpu-*.prof\n```\n\nProfile files automatically generated in `internal/storage/sqlite/`.","status":"tombstone","priority":0,"issue_type":"bug","created_at":"2025-11-14T09:02:46.507526-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} -{"id":"bd-5r5md","title":"test","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T19:26:53.245563-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-10T19:27:06.494897-08:00","closed_at":"2026-01-10T19:27:06.494897-08:00","close_reason":"Closed"} +{"id":"bd-5r5md","title":"test","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T19:26:53.245563-08:00","updated_at":"2026-01-10T19:27:06.494897-08:00","closed_at":"2026-01-10T19:27:06.494897-08:00","close_reason":"Closed","created_by":"beads/crew/dave"} {"id":"bd-5rj1","title":"Merge: bd-gqxd","description":"branch: polecat/furiosa\ntarget: main\nsource_issue: bd-gqxd\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-23T16:40:21.707706-08:00","updated_at":"2025-12-23T19:12:08.349245-08:00","closed_at":"2025-12-23T19:12:08.349245-08:00"} -{"id":"bd-5rlsy","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:07:23.717739-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T20:07:23.781498-08:00","closed_at":"2026-01-11T20:07:23.781498-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-5rlsy","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T20:07:23.717739-08:00","updated_at":"2026-01-11T20:07:23.781498-08:00","closed_at":"2026-01-11T20:07:23.781498-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-5s91","title":"CLI API Audit for OSS Launch","description":"Comprehensive CLI API audit before OSS launch.\n\n## Tasks\n1. Review gt command groupings - propose consolidation\n2. Review bd command groupings \n3. Document gt vs bd ownership boundaries\n4. Identify naming inconsistencies\n5. Document flag vs subcommand criteria\n\n## Context\n- Pre-OSS launch cleanup\n- Goal: clean, consistent, discoverable CLI surface","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-25T00:15:41.355013-08:00","updated_at":"2025-12-25T13:26:25.587476-08:00","closed_at":"2025-12-25T13:26:25.587476-08:00"} -{"id":"bd-5tc1a","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:25:39.874093-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T16:25:39.944348-08:00","closed_at":"2026-01-10T16:25:39.944348-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-5u066","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T14:43:00.383534-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T14:43:00.461173-08:00","closed_at":"2026-01-13T14:43:00.461173-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-5v32e","title":"No ref test","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-10T20:36:05.678546-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T23:50:06.49313-08:00"} -{"id":"bd-5vxh8","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T10:53:44.640766-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T10:53:44.704492-08:00","closed_at":"2026-01-11T10:53:44.704492-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-5x0j","title":"bd swarm status command","description":"Add bd swarm status to show swarm state derived from beads.\n\n## Context\nThis is the key command that demonstrates 'discovery over tracking'. \nSwarm status is COMPUTED from:\n- Epic children statuses\n- Dependency structure\n- Issue assignments\n\nNOT stored separately. If beads changes, status changes.\n\n## Implementation\n1. New command: bd swarm status \u003cswarm-mol-id\u003e\n2. Find linked epic from swarm molecule\n3. Query all children of epic\n4. Compute and display:\n - Ready front (unblocked, open issues)\n - In progress (in_progress status)\n - Completed (closed)\n - Blocked (has unmet dependencies)\n - Progress percentage\n - Coordinator\n - Estimated remaining (based on avg session time)\n\n## Output Format\nReady Front Analysis: gt-epic-xxx\n\nCompleted: ✓ gt-001 (2h ago)\nActive: ⟳ gt-002 [nux], ⟳ gt-003 [toast]\nReady: ○ gt-004, ○ gt-005\nBlocked: ◌ gt-006 (needs 004, 005)\n\nProgress: 1/6 complete, 2/6 active (17%)\n\n## Reference\n~/gt/docs/swarm-architecture.md - 'Ready Front Visualization'\n\n## Acceptance\n- bd swarm status \u003cmol\u003e shows accurate state\n- State reflects current beads (not cached)\n- --json output for programmatic use","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-28T19:11:36.594118-08:00","created_by":"mayor","updated_at":"2025-12-28T21:28:21.976756-08:00","closed_at":"2025-12-28T21:28:21.976756-08:00","dependencies":[{"issue_id":"bd-5x0j","depends_on_id":"bd-oxgi","type":"blocks","created_at":"2025-12-28T19:11:52.464245-08:00","created_by":"daemon"}]} -{"id":"bd-5x1z5","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T10:07:26.000468-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T10:07:26.063722-08:00","closed_at":"2026-01-11T10:07:26.063722-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-5tc1a","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:25:39.874093-08:00","updated_at":"2026-01-10T16:25:39.944348-08:00","closed_at":"2026-01-10T16:25:39.944348-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-5u066","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T14:43:00.383534-08:00","updated_at":"2026-01-13T14:43:00.461173-08:00","closed_at":"2026-01-13T14:43:00.461173-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-5v32e","title":"No ref test","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-10T20:36:05.678546-08:00","updated_at":"2026-01-12T23:50:06.49313-08:00","created_by":"beads/crew/dave"} +{"id":"bd-5vxh8","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T10:53:44.640766-08:00","updated_at":"2026-01-11T10:53:44.704492-08:00","closed_at":"2026-01-11T10:53:44.704492-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-5x0j","title":"bd swarm status command","description":"Add bd swarm status to show swarm state derived from beads.\n\n## Context\nThis is the key command that demonstrates 'discovery over tracking'. \nSwarm status is COMPUTED from:\n- Epic children statuses\n- Dependency structure\n- Issue assignments\n\nNOT stored separately. If beads changes, status changes.\n\n## Implementation\n1. New command: bd swarm status \u003cswarm-mol-id\u003e\n2. Find linked epic from swarm molecule\n3. Query all children of epic\n4. Compute and display:\n - Ready front (unblocked, open issues)\n - In progress (in_progress status)\n - Completed (closed)\n - Blocked (has unmet dependencies)\n - Progress percentage\n - Coordinator\n - Estimated remaining (based on avg session time)\n\n## Output Format\nReady Front Analysis: gt-epic-xxx\n\nCompleted: ✓ gt-001 (2h ago)\nActive: ⟳ gt-002 [nux], ⟳ gt-003 [toast]\nReady: ○ gt-004, ○ gt-005\nBlocked: ◌ gt-006 (needs 004, 005)\n\nProgress: 1/6 complete, 2/6 active (17%)\n\n## Reference\n~/gt/docs/swarm-architecture.md - 'Ready Front Visualization'\n\n## Acceptance\n- bd swarm status \u003cmol\u003e shows accurate state\n- State reflects current beads (not cached)\n- --json output for programmatic use","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-28T19:11:36.594118-08:00","updated_at":"2025-12-28T21:28:21.976756-08:00","closed_at":"2025-12-28T21:28:21.976756-08:00","created_by":"mayor","dependencies":[{"issue_id":"bd-5x0j","depends_on_id":"bd-oxgi","type":"blocks","created_at":"2025-12-28T19:11:52.464245-08:00","created_by":"daemon"}]} +{"id":"bd-5x1z5","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T10:07:26.000468-08:00","updated_at":"2026-01-11T10:07:26.063722-08:00","closed_at":"2026-01-11T10:07:26.063722-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-5xt","title":"Log errors from timer-triggered flushes instead of discarding","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-20T21:22:06.694953-05:00","updated_at":"2025-11-20T21:35:53.117434-05:00","closed_at":"2025-11-20T21:35:53.117434-05:00"} -{"id":"bd-600yu","title":"Merge: quartz-lmqhe","description":"branch: polecat/quartz-lmqhe\ntarget: main\nsource_issue: quartz-lmqhe\nrig: beads\nagent_bead: bd-beads-polecat-quartz\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T21:26:06.954058-08:00","created_by":"stevey","updated_at":"2026-01-10T22:12:08.876703-08:00","closed_at":"2026-01-10T22:12:08.876703-08:00","close_reason":"merged","labels":["gt:merge-request"]} +{"id":"bd-600yu","title":"Merge: quartz-lmqhe","description":"branch: polecat/quartz-lmqhe\ntarget: main\nsource_issue: quartz-lmqhe\nrig: beads\nagent_bead: bd-beads-polecat-quartz\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T21:26:06.954058-08:00","updated_at":"2026-01-10T22:12:08.876703-08:00","closed_at":"2026-01-10T22:12:08.876703-08:00","close_reason":"merged","created_by":"stevey"} {"id":"bd-602ak","title":"Digest: mol-refinery-patrol","description":"Patrol: queue empty, 0 branches merged, no issues","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-13T18:01:10.901153-08:00","updated_at":"2026-01-13T18:01:10.901153-08:00","closed_at":"2026-01-13T18:01:10.901103-08:00","close_reason":"Squashed from 11 wisps","dependencies":[{"issue_id":"bd-602ak","depends_on_id":"bd-wisp-n25","type":"parent-child","created_at":"2026-01-13T18:01:10.902207-08:00","created_by":"beads/refinery"}]} {"id":"bd-6049","title":"bd doctor --json flag not working","description":"The --json flag on bd doctor command doesn't produce JSON output. It continues to show human-readable output instead. The flag is registered locally on doctorCmd but the code uses the global jsonOutput variable set by PersistentPreRun. Need to investigate why the flag isn't being honored.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-02T17:08:18.170428-08:00","updated_at":"2025-11-02T18:41:01.376783-08:00","closed_at":"2025-11-02T18:41:01.376786-08:00"} -{"id":"bd-60jcg","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:10:03.291142-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T22:10:03.329346-08:00","closed_at":"2026-01-09T22:10:03.329346-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-615z","title":"Add ValidateTemplate() function","description":"Add internal/validation package with ValidateTemplate(issueType, description) that checks for missing sections and returns actionable errors.","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-01T11:19:07.136885-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-01T12:42:26.397143-08:00","closed_at":"2026-01-01T12:42:26.397143-08:00","close_reason":"Implemented ValidateTemplate() and LintIssue() with tests","dependencies":[{"issue_id":"bd-615z","depends_on_id":"bd-ou35","type":"parent-child","created_at":"2026-01-01T11:19:22.71669-08:00","created_by":"beads/crew/grip"},{"issue_id":"bd-615z","depends_on_id":"bd-v2mr","type":"blocks","created_at":"2026-01-01T11:19:23.924134-08:00","created_by":"beads/crew/grip"}]} +{"id":"bd-60jcg","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:10:03.291142-08:00","updated_at":"2026-01-09T22:10:03.329346-08:00","closed_at":"2026-01-09T22:10:03.329346-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-615z","title":"Add ValidateTemplate() function","description":"Add internal/validation package with ValidateTemplate(issueType, description) that checks for missing sections and returns actionable errors.","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-01T11:19:07.136885-08:00","updated_at":"2026-01-01T12:42:26.397143-08:00","closed_at":"2026-01-01T12:42:26.397143-08:00","close_reason":"Implemented ValidateTemplate() and LintIssue() with tests","created_by":"beads/crew/grip","dependencies":[{"issue_id":"bd-615z","depends_on_id":"bd-v2mr","type":"blocks","created_at":"2026-01-01T11:19:23.924134-08:00","created_by":"beads/crew/grip"},{"issue_id":"bd-615z","depends_on_id":"bd-ou35","type":"parent-child","created_at":"2026-01-01T11:19:22.71669-08:00","created_by":"beads/crew/grip"}]} {"id":"bd-6214875c","title":"Split internal/rpc/server.go into focused modules","description":"The file `internal/rpc/server.go` is 2,273 lines with 50+ methods, making it difficult to navigate and prone to merge conflicts. Split into 8 focused files with clear responsibilities.\n\nCurrent structure: Single 2,273-line file with:\n- Connection handling\n- Request routing\n- All 40+ RPC method implementations\n- Storage caching\n- Health checks \u0026 metrics\n- Cleanup loops\n\nTarget structure:\n```\ninternal/rpc/\n├── server.go # Core server, connection handling (~300 lines)\n├── methods_issue.go # Issue operations (~400 lines)\n├── methods_deps.go # Dependency operations (~200 lines)\n├── methods_labels.go # Label operations (~150 lines)\n├── methods_ready.go # Ready work queries (~150 lines)\n├── methods_compact.go # Compaction operations (~200 lines)\n├── methods_comments.go # Comment operations (~150 lines)\n├── storage_cache.go # Storage caching logic (~300 lines)\n└── health.go # Health \u0026 metrics (~200 lines)\n```\n\nMigration strategy:\n1. Create new files with appropriate methods\n2. Keep `server.go` as main file with core server logic\n3. Test incrementally after each file split\n4. Final verification with full test suite","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-28T14:21:37.51524-07:00","updated_at":"2025-10-30T17:12:58.2179-07:00","closed_at":"2025-10-28T14:11:04.399811-07:00"} {"id":"bd-6221bdcd","title":"Optimize cmd/bd test suite performance (currently 30+ minutes)","description":"CLI test suite is extremely slow (~30+ minutes for full run). Tests are poorly designed and need performance optimization before expanding coverage.\n\nCurrent coverage: 24.8% (improved from 20.2%)\n\n**Problem**: Tests take far too long to run, making development iteration painful.\n\n**Priority**: Fix test performance FIRST, then consider increasing coverage.\n\n**Investigation needed**:\n- Profile test execution to identify bottlenecks\n- Look for redundant git operations, database initialization, or daemon operations\n- Identify opportunities for test parallelization\n- Consider mocking or using in-memory databases where appropriate\n- Review test design patterns\n\n**Related**: bd-ktng mentions 13 CLI tests with redundant git init calls (31s total)\n\n**Goal**: Get full test suite under 1-2 minutes before adding more tests.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T14:06:27.951656-07:00","updated_at":"2025-12-14T12:12:46.533162-08:00","closed_at":"2025-11-08T22:41:05.766749-08:00","dependencies":[{"issue_id":"bd-6221bdcd","depends_on_id":"bd-4d7fca8a","type":"blocks","created_at":"2025-10-29T19:52:05.532391-07:00","created_by":"import-remap"}]} {"id":"bd-627d","title":"AI-supervised database migrations for safer schema evolution","description":"## Problem\n\nDatabase migrations can lose user data through edge cases that are hard to anticipate (e.g., GH #201 where bd migrate failed to set issue_prefix, or bd-d355a07d false positive data loss warnings). Since beads is designed to be run by AI agents, we should leverage AI to make migrations safer.\n\n## Current State\n\nMigrations run blindly with:\n- No pre-flight validation\n- No data integrity verification\n- No rollback on failure\n- Limited post-migration testing\n\nRecent issues:\n- GH #201: Migration didn't set issue_prefix config, breaking commands\n- bd-d355a07d: False positive \"data loss\" warnings on collision resolution\n- Users reported migration data loss (fixed but broader problem remains)\n\n## Proposal: AI-Supervised Migration Framework\n\nUse AI to supervise migrations through structured verification:\n\n### 1. Pre-Migration Analysis\n- AI reads migration code and current schema\n- Identifies potential data loss scenarios\n- Generates validation queries to verify assumptions\n- Creates snapshot queries for before/after comparison\n\n### 2. Migration Execution\n- Take database backup/snapshot\n- Run validation queries (pre-state)\n- Execute migration in transaction\n- Run validation queries (post-state)\n\n### 3. Post-Migration Verification\n- AI compares pre/post snapshots\n- Verifies data integrity invariants\n- Checks for unexpected data loss\n- Validates config completeness (like issue_prefix)\n\n### 4. Rollback on Anomalies\n- If AI detects data loss, rollback transaction\n- Present human-readable error report\n- Suggest fix before retrying\n\n## Example Flow\n\n```\n$ bd migrate\n\n→ Analyzing migration plan...\n→ AI identified 3 potential data loss scenarios\n→ Generating validation queries...\n→ Creating pre-migration snapshot...\n→ Running migration in transaction...\n→ Verifying post-migration state...\n✓ All 247 issues accounted for\n✓ Config table complete (issue_prefix: \"mcp\")\n✓ Dependencies intact (342 relationships verified)\n→ Migration successful!\n```\n\nIf something goes wrong:\n```\n$ bd migrate\n\n→ Analyzing migration plan...\n→ AI identified issue: Missing issue_prefix config after migration\n→ Recommendation: Add prefix detection step\n→ Aborting migration - database unchanged\n```\n\n## Implementation Ideas\n\n### A. Migration Validator Tool\nCreate `bd migrate --validate` that:\n- Simulates migration on copy of database\n- Uses AI to verify data integrity\n- Reports potential issues before real migration\n\n### B. Migration Test Generator\nAI generates test cases for migrations:\n- Edge cases (empty DB, large DB, missing config)\n- Data integrity checks\n- Regression tests\n\n### C. Migration Invariants\nDefine invariants that AI checks:\n- Issue count should not decrease (unless collision resolution)\n- All required config keys present\n- Foreign key relationships intact\n- No orphaned dependencies\n\n### D. Self-Healing Migrations\nAI detects incomplete migrations and suggests fixes:\n- Missing config values (like GH #201)\n- Orphaned data\n- Index inconsistencies\n\n## Benefits\n\n1. **Catch edge cases**: AI explores scenarios humans miss\n2. **Self-documenting**: AI explains what migration does\n3. **Agent-friendly**: Agents can run migrations confidently\n4. **Fewer rollbacks**: Detect issues before committing\n5. **Better testing**: AI generates comprehensive test suites\n\n## Open Questions\n\n1. Which AI model? (Fast: Haiku, Thorough: Sonnet/GPT-4)\n2. How to balance safety vs migration speed?\n3. Should AI validation be required or optional?\n4. How to handle offline scenarios (no API access)?\n5. What invariants should always be checked?\n\n## Related Work\n\n- bd-b245: Migration registry (makes migrations introspectable)\n- GH #201: issue_prefix migration bug (motivating example)\n- bd-d355a07d: False positive data loss warnings","notes":"## Progress\n\n### ✅ Phase 1: Migration Invariants (COMPLETED)\n\n**Implemented:**\n- Created internal/storage/sqlite/migration_invariants.go with 3 invariants\n- Updated RunMigrations() to verify invariants after migrations\n- All tests pass ✓\n\n### ✅ Phase 2: Inspection Tools (COMPLETED \u0026 PUSHED)\n\n**Commit:** 1abe4e7 - \"Add migration inspection tools for AI agents (bd-627d Phase 2)\"\n\n**Implemented:**\n1. ✅ bd migrate --inspect --json - Shows migration plan\n2. ✅ bd info --schema --json - Returns schema details\n3. ✅ Migration warnings system\n4. ✅ Documentation updated in AGENTS.md\n5. ✅ All tests pass\n\n### ✅ Phase 3: MCP Tools (COMPLETED \u0026 PUSHED)\n\n**Commit:** 2493693 - \"Add MCP tools for migration inspection (bd-627d Phase 3)\"\n\n**Implemented:**\n1. ✅ inspect_migration(workspace_root) tool in beads-mcp\n2. ✅ get_schema_info(workspace_root) tool in beads-mcp\n3. ✅ Abstract methods in BdClientBase\n4. ✅ CLI client implementations\n5. ✅ All tests pass\n\n**All phases complete!** Migration inspection fully integrated into MCP server.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-02T12:57:10.722048-08:00","updated_at":"2025-12-14T12:12:46.522298-08:00","closed_at":"2025-11-02T14:31:25.095308-08:00"} {"id":"bd-62a0","title":"Create WASM build infrastructure (Makefile, scripts)","description":"Set up build tooling for WASM compilation:\n- Add GOOS=js GOARCH=wasm build target\n- Copy wasm_exec.js from Go distribution\n- Create wrapper script for Node.js execution\n- Add build task to Makefile or build script","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-02T21:58:07.286826-08:00","updated_at":"2025-11-02T22:23:49.376789-08:00","closed_at":"2025-11-02T22:23:49.376789-08:00","dependencies":[{"issue_id":"bd-62a0","depends_on_id":"bd-44d0","type":"parent-child","created_at":"2025-11-02T22:23:49.423064-08:00","created_by":"stevey"}]} -{"id":"bd-62g22","title":"Add bd doctor check for child repo custom types","description":"Add a diagnostic check to `bd doctor` that discovers custom types from child repos and reports any potential issues.\n\nThis is the \"discover\" part of \"trust + discover\". We don't track child types in parent config, but we can discover them on demand for diagnostics.\n\nImplementation:\n1. In `cmd/bd/doctor/`, add a new check\n2. For each configured child repo in `repos.additional`:\n - Try to read child's config.yaml or beads.db\n - Extract their `types.custom` setting\n - Report what types each child uses\n3. Optionally warn if hydrated issues use types not found in any config\n\nThis is informational/diagnostic only - not blocking.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-09T14:05:53.324297-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T14:26:42.17532-08:00","closed_at":"2026-01-09T14:26:42.17532-08:00","close_reason":"Added CheckMultiRepoTypes to bd doctor","dependencies":[{"issue_id":"bd-62g22","depends_on_id":"bd-9ji4z","type":"parent-child","created_at":"2026-01-09T14:06:00.869885-08:00","created_by":"beads/crew/emma"}]} -{"id":"bd-62vop","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T15:41:56.437632-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T15:41:56.515568-08:00","closed_at":"2026-01-13T15:41:56.515568-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-62ycw","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T21:23:05.336785-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T21:23:05.376983-08:00","closed_at":"2026-01-09T21:23:05.376983-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-62g22","title":"Add bd doctor check for child repo custom types","description":"Add a diagnostic check to `bd doctor` that discovers custom types from child repos and reports any potential issues.\n\nThis is the \"discover\" part of \"trust + discover\". We don't track child types in parent config, but we can discover them on demand for diagnostics.\n\nImplementation:\n1. In `cmd/bd/doctor/`, add a new check\n2. For each configured child repo in `repos.additional`:\n - Try to read child's config.yaml or beads.db\n - Extract their `types.custom` setting\n - Report what types each child uses\n3. Optionally warn if hydrated issues use types not found in any config\n\nThis is informational/diagnostic only - not blocking.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-09T14:05:53.324297-08:00","updated_at":"2026-01-09T14:26:42.17532-08:00","closed_at":"2026-01-09T14:26:42.17532-08:00","close_reason":"Added CheckMultiRepoTypes to bd doctor","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-62g22","depends_on_id":"bd-9ji4z","type":"parent-child","created_at":"2026-01-09T14:06:00.869885-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-62vop","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T15:41:56.437632-08:00","updated_at":"2026-01-13T15:41:56.515568-08:00","closed_at":"2026-01-13T15:41:56.515568-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-62ycw","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T21:23:05.336785-08:00","updated_at":"2026-01-09T21:23:05.376983-08:00","closed_at":"2026-01-09T21:23:05.376983-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-6392j","title":"Digest: mol-refinery-patrol","description":"Patrol cycle: inbox clean, MQ empty, no orphaned MRs. Clean handoff.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T17:20:18.384366-08:00","updated_at":"2026-01-12T17:20:18.384366-08:00","closed_at":"2026-01-12T17:20:18.384314-08:00","close_reason":"Squashed from 5 wisps","dependencies":[{"issue_id":"bd-6392j","depends_on_id":"bd-wisp-ec4","type":"parent-child","created_at":"2026-01-12T17:20:18.385371-08:00","created_by":"beads/refinery"}]} {"id":"bd-63e9","title":"Fix Nix flake build test failures","description":"Nix build is failing during test phase with same test errors as Windows.\n\n**Error:**\n```\nerror: Cannot build '/nix/store/rgyi1j44dm6ylrzlg2h3z97axmfq9hzr-beads-0.9.9.drv'.\nReason: builder failed with exit code 1.\nFAIL github.com/steveyegge/beads/cmd/bd 16.141s\n```\n\nThis may be related to test environment setup or the same issues affecting Windows tests.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-02T09:29:37.2851-08:00","updated_at":"2025-11-04T11:10:23.531386-08:00","closed_at":"2025-11-04T11:10:23.531389-08:00","dependencies":[{"issue_id":"bd-63e9","depends_on_id":"bd-1231","type":"blocks","created_at":"2025-11-02T09:29:37.28618-08:00","created_by":"stevey"}]} {"id":"bd-63l","title":"bd hooks install fails in git worktrees","description":"When bd is used in a git worktree, bd hooks install fails with 'mkdir .git: not a directory' because .git is a file (gitdir pointer) not a directory. Beads should detect and follow the .git gitdir pointer to install hooks in the correct location. This blocks normal worktree workflows.\n\n## Symptoms of this bug:\n- Git hooks don't install automatically\n- Auto-sync doesn't run (5-second debounce)\n- Hash mismatch warnings in bd output\n- Daemon fails to start with 'auto_start_failed'\n\n## Workaround:\nUse `git rev-parse --git-dir` to find the actual hooks directory and copy hooks manually:\n```bash\nmkdir -p $(git rev-parse --git-dir)/hooks\ncp -r .beads-hooks/* $(git rev-parse --git-dir)/hooks/\n```","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-29T00:27:59.111163003-07:00","updated_at":"2025-11-29T23:20:04.196608-08:00","closed_at":"2025-11-29T23:20:01.394894-08:00"} -{"id":"bd-649s","title":"Add custom type support to beads config","description":"Add types.custom config key mirroring status.custom pattern.\n\n## Work\n- Add CustomTypeConfigKey constant to config.go\n- Add GetCustomTypes() to storage interface \n- Add GetCustomTypes() implementation in sqlite/config.go and memory/memory.go\n- Add IssueType.IsValidWithCustom(customTypes []string) method\n- Update ValidateWithCustomStatuses to ValidateWithCustom (handle both)\n- Update all validation call sites to use GetCustomTypes()\n\n## Files\n- internal/storage/sqlite/config.go\n- internal/storage/storage.go\n- internal/storage/memory/memory.go\n- internal/types/types.go\n- internal/storage/sqlite/queries.go\n- internal/storage/sqlite/transaction.go\n- internal/storage/sqlite/batch_ops.go\n- internal/storage/sqlite/multirepo.go","status":"closed","priority":1,"issue_type":"task","assignee":"beads/crew/dave","created_at":"2026-01-06T20:40:04.168738-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-06T21:30:02.035131-08:00","closed_at":"2026-01-06T21:30:02.035131-08:00","close_reason":"Implemented custom type support mirroring custom status pattern","dependencies":[{"issue_id":"bd-649s","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.514971-08:00","created_by":"beads/crew/dave"}]} +{"id":"bd-649s","title":"Add custom type support to beads config","description":"Add types.custom config key mirroring status.custom pattern.\n\n## Work\n- Add CustomTypeConfigKey constant to config.go\n- Add GetCustomTypes() to storage interface \n- Add GetCustomTypes() implementation in sqlite/config.go and memory/memory.go\n- Add IssueType.IsValidWithCustom(customTypes []string) method\n- Update ValidateWithCustomStatuses to ValidateWithCustom (handle both)\n- Update all validation call sites to use GetCustomTypes()\n\n## Files\n- internal/storage/sqlite/config.go\n- internal/storage/storage.go\n- internal/storage/memory/memory.go\n- internal/types/types.go\n- internal/storage/sqlite/queries.go\n- internal/storage/sqlite/transaction.go\n- internal/storage/sqlite/batch_ops.go\n- internal/storage/sqlite/multirepo.go","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-06T20:40:04.168738-08:00","updated_at":"2026-01-06T21:30:02.035131-08:00","closed_at":"2026-01-06T21:30:02.035131-08:00","close_reason":"Implemented custom type support mirroring custom status pattern","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-649s","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.514971-08:00","created_by":"beads/crew/dave"}]} {"id":"bd-64c05d00","title":"Multi-clone collision resolution testing and documentation","description":"Epic to track improvements to multi-clone collision resolution based on ultrathinking analysis of-3d844c58 and [deleted:bd-71107098].\n\nCurrent state:\n- 2-clone collision resolution is SOUND and working correctly\n- Hash-based deterministic collision resolution works\n- Test fails due to timestamp comparison, not actual logic issues\n\nWork needed:\n1. Fix TestTwoCloneCollision to compare content not timestamps\n2. Add TestThreeCloneCollision for regression protection\n3. Document 3-clone ID non-determinism as known behavior","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-10-28T17:58:38.316626-07:00","updated_at":"2025-12-14T12:12:46.507712-08:00","closed_at":"2025-11-04T11:10:23.531681-08:00"} {"id":"bd-64c05d00.1","title":"Fix TestTwoCloneCollision to compare content not timestamps","description":"The test at beads_twoclone_test.go:204-207 currently compares full JSON output including timestamps, causing false negative failures.\n\nCurrent behavior:\n- Both clones converge to identical semantic content\n- Clone A: test-2=\"Issue from clone A\", test-1=\"Issue from clone B\"\n- Clone B: test-1=\"Issue from clone B\", test-2=\"Issue from clone A\"\n- Titles match IDs correctly, no data corruption\n- Only timestamps differ (expected and acceptable)\n\nFix needed:\n- Replace exact JSON comparison with content-aware comparison\n- Normalize or ignore timestamp fields when asserting convergence\n- Test should PASS after this fix\n\nThis blocks completion of bd-71107098.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-28T17:58:52.057194-07:00","updated_at":"2025-10-30T17:12:58.226744-07:00","closed_at":"2025-10-28T18:01:38.751895-07:00","dependencies":[{"issue_id":"bd-64c05d00.1","depends_on_id":"bd-64c05d00","type":"parent-child","created_at":"2025-10-28T17:58:52.058202-07:00","created_by":"stevey"},{"issue_id":"bd-64c05d00.1","depends_on_id":"bd-71107098","type":"blocks","created_at":"2025-10-28T17:58:52.05873-07:00","created_by":"stevey"}]} {"id":"bd-64c05d00.2","title":"Document 3-clone ID non-determinism in collision resolution","description":"Document the known behavior of 3+ way collision resolution where ID assignments may vary based on sync order, even though content always converges correctly.\n\nUpdates needed:\n- Update bd-71107098 notes to mark 2-clone case as solved\n- Document 3-clone ID non-determinism as known limitation\n- Add explanation to ADVANCED.md or collision resolution docs\n- Explain why this happens (pairwise hash comparison is deterministic, but multi-way ID allocation uses sync-order dependent counters)\n- Clarify trade-offs: content convergence ✅ vs ID stability ❌\n\nKey points to document:\n- Hash-based resolution is pairwise deterministic\n- Content always converges correctly (all issues present with correct data)\n- Numeric ID assignments in 3+ way collisions depend on sync order\n- This is acceptable for most use cases (content convergence is primary goal)\n- Full determinism would require complex multi-way comparison","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-28T17:59:21.93014-07:00","updated_at":"2025-12-14T12:12:46.552663-08:00","closed_at":"2025-11-15T14:13:47.304584-08:00","dependencies":[{"issue_id":"bd-64c05d00.2","depends_on_id":"bd-64c05d00","type":"parent-child","created_at":"2025-10-28T17:59:21.938709-07:00","created_by":"stevey"}]} {"id":"bd-64c05d00.3","title":"Add TestThreeCloneCollision for regression protection","description":"Add a 3-clone collision test to document behavior and provide regression protection.\n\nPurpose:\n- Verify content convergence regardless of sync order\n- Document the ID non-determinism behavior (IDs may be assigned differently based on sync order)\n- Provide regression protection for multi-way collisions\n\nTest design:\n- 3 clones create same ID with different content\n- Test two different sync orders (A→B→C vs C→A→B)\n- Assert content sets match (ignore specific ID assignments)\n- Add comment explaining ID non-determinism is expected behavior\n\nKnown limitation:\n- Content always converges correctly (all issues present with correct titles)\n- Numeric ID assignments (test-2 vs test-3) depend on sync order\n- This is acceptable if content convergence is the primary goal","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-28T17:59:05.941735-07:00","updated_at":"2025-10-30T17:12:58.227089-07:00","closed_at":"2025-10-28T18:09:12.717604-07:00","dependencies":[{"issue_id":"bd-64c05d00.3","depends_on_id":"bd-64c05d00","type":"parent-child","created_at":"2025-10-28T17:59:05.942783-07:00","created_by":"stevey"}]} {"id":"bd-64z4","title":"Assigned issue","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-07T19:04:24.201309-08:00","updated_at":"2025-11-07T22:07:17.344151-08:00","closed_at":"2025-11-07T21:55:09.427387-08:00"} {"id":"bd-6545","title":"Update daemon commit logic for separate branch","description":"Modify daemon to use worktree for commits when sync.branch configured.\n\nTasks:\n- Update internal/daemon/server_export_import_auto.go\n- Detect sync.branch configuration\n- Ensure worktree exists before commit\n- Sync JSONL to worktree\n- Commit in worktree context\n- Push to configured branch\n- Fallback to current behavior if sync.branch not set\n- Handle git errors (network, permissions, conflicts)\n\nEstimated effort: 3-4 days","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-02T15:22:35.598861-08:00","updated_at":"2025-12-14T12:12:46.521015-08:00","closed_at":"2025-11-04T11:10:23.531966-08:00","dependencies":[{"issue_id":"bd-6545","depends_on_id":"bd-a101","type":"parent-child","created_at":"2025-11-02T15:22:48.375661-08:00","created_by":"stevey"}]} -{"id":"bd-65cw1","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:09:23.733098-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T20:09:23.7695-08:00","closed_at":"2026-01-08T20:09:23.7695-08:00","close_reason":"auto-closed session event"} +{"id":"bd-65cw1","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:09:23.733098-08:00","updated_at":"2026-01-08T20:09:23.7695-08:00","closed_at":"2026-01-08T20:09:23.7695-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-66l4","title":"Runtime bonding: bd mol attach","description":"Attach a molecule to an already-running workflow.\n\nCOMMAND: bd mol attach \u003cepic-id\u003e \u003cproto\u003e [--after \u003cissue-id\u003e]\n\nBEHAVIOR:\n- Resolve running epic and proto\n- Spawn proto as new subtree\n- Wire to specified attachment point (or epic root)\n- Handle in-progress issues: new work doesn't block completed work\n\nUSE CASES:\n- Discovered need for docs while implementing feature\n- Hotfix needs attaching to release workflow\n- Additional testing scope identified mid-flight\n\nFLAGS:\n- --after ISSUE: Specific attachment point within epic\n- --type: sequential (default) or parallel\n- --var: Variables for the attached proto\n\nCONSIDERATIONS:\n- What if epic is already closed? Error or reopen?\n- What if attachment point issue is closed? Attach as ready-to-work?","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T00:59:16.920483-08:00","updated_at":"2025-12-21T01:08:43.530597-08:00","closed_at":"2025-12-21T01:08:43.530597-08:00","dependencies":[{"issue_id":"bd-66l4","depends_on_id":"bd-o5xe","type":"parent-child","created_at":"2025-12-21T00:59:51.435542-08:00","created_by":"daemon"},{"issue_id":"bd-66l4","depends_on_id":"bd-o91r","type":"blocks","created_at":"2025-12-21T00:59:51.813782-08:00","created_by":"daemon"}]} {"id":"bd-66w1","title":"Add external_projects to config schema","description":"Add external_projects mapping to .beads/config.yaml:\n\n```yaml\nexternal_projects:\n beads: ../beads\n gastown: ../gastown\n other: /absolute/path/to/project\n```\n\nUsed by bd ready and other commands to resolve external: references.\n\nPart of cross-project dependency system.\nSee: gastown/docs/cross-project-deps.md","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-21T22:37:39.245017-08:00","updated_at":"2025-12-21T23:03:19.81448-08:00","closed_at":"2025-12-21T23:03:19.81448-08:00"} -{"id":"bd-66z6a","title":"Deterministic ordering in cost digest output","description":"## Problem\n\nMap iteration in `createCostDigestBead()` (lines 1078, 1086) produces non-deterministic ordering in the digest description. The By Role and By Rig sections may appear in different orders each time.\n\n## Location\n\ninternal/cmd/costs.go:1076-1091\n\n## Solution\n\nSort the map keys before iterating, or use a slice of structs instead of a map.","status":"closed","priority":4,"issue_type":"task","assignee":"beads/polecats/onyx","created_at":"2026-01-08T22:55:18.202307-08:00","created_by":"mayor","updated_at":"2026-01-09T00:26:10.867884-08:00","closed_at":"2026-01-09T00:26:10.867884-08:00","close_reason":"Fixed by sorting map keys before iteration. Roles and rigs are now sorted alphabetically for deterministic output. Commit: 64b58b31"} -{"id":"bd-679mq","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:41:05.682644-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T13:41:05.71965-08:00","closed_at":"2026-01-09T13:41:05.71965-08:00","close_reason":"auto-closed session event"} +{"id":"bd-66z6a","title":"Deterministic ordering in cost digest output","description":"## Problem\n\nMap iteration in `createCostDigestBead()` (lines 1078, 1086) produces non-deterministic ordering in the digest description. The By Role and By Rig sections may appear in different orders each time.\n\n## Location\n\ninternal/cmd/costs.go:1076-1091\n\n## Solution\n\nSort the map keys before iterating, or use a slice of structs instead of a map.","status":"closed","priority":4,"issue_type":"task","created_at":"2026-01-08T22:55:18.202307-08:00","updated_at":"2026-01-09T00:26:10.867884-08:00","closed_at":"2026-01-09T00:26:10.867884-08:00","close_reason":"Fixed by sorting map keys before iteration. Roles and rigs are now sorted alphabetically for deterministic output. Commit: 64b58b31","created_by":"mayor"} +{"id":"bd-679mq","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:41:05.682644-08:00","updated_at":"2026-01-09T13:41:05.71965-08:00","closed_at":"2026-01-09T13:41:05.71965-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-687g","title":"Code review: mol squash deletion bypasses tombstone system","description":"The deleteEphemeralChildren function in mol_squash.go uses DeleteIssue directly instead of the proper deletion flow. This bypasses tombstone creation, deletion tracking (deletions.jsonl), and dependency cleanup. Could cause issues with deletion propagation across clones.\n\nCurrent code uses d.DeleteIssue(ctx, id) but should probably use d.DeleteIssues(ctx, ids, false, true, false) for proper tombstone handling.\n\nAlternative: Document that ephemeral issues intentionally use hard delete since they are transient and should never propagate to other clones anyway.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-21T13:57:20.223345-08:00","updated_at":"2025-12-21T14:17:38.073899-08:00","closed_at":"2025-12-21T14:17:38.073899-08:00"} {"id":"bd-687v","title":"Consider caching external dep resolution results","description":"Each call to GetReadyWork re-checks all external dependencies by:\n1. Querying for external deps in the local database\n2. Opening each external project's database\n3. Querying for closed issues with provides: labels\n\nFor workloads with many external deps or slow external databases, this adds latency on every bd ready call.\n\nPotential optimizations:\n- In-memory TTL cache for external dep status (e.g., 60 second TTL)\n- Store resolved status in a local cache table with timestamp\n- Batch resolution of common project/capability pairs\n\nThis is not urgent - current implementation is correct and performant for typical workloads. Only becomes an issue with many external deps across many projects.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-21T23:45:16.360877-08:00","updated_at":"2026-01-02T17:17:04.253574-08:00","closed_at":"2026-01-02T17:17:04.253574-08:00","close_reason":"Implemented batching optimization: CheckExternalDeps now groups refs by project and opens each external DB once, checking all capabilities in a single query. This avoids O(N) DB opens when multiple issues depend on the same external project.","dependencies":[{"issue_id":"bd-687v","depends_on_id":"bd-zmmy","type":"discovered-from","created_at":"2025-12-21T23:45:16.361493-08:00","created_by":"daemon"}]} {"id":"bd-68bf","title":"Code review: bd mol bond implementation","description":"Review the mol bond command implementation before shipping.\n\nFocus areas:\n1. runMolBond() - polymorphic dispatch logic correctness\n2. bondProtoProto() - compound proto creation, dependency wiring\n3. bondProtoMol() / bondMolProto() - spawn and attach logic\n4. bondMolMol() - joining molecules, lineage tracking\n5. BondRef usage - is lineage tracked correctly?\n6. Error handling - are all failure modes covered?\n7. Edge cases - what could go wrong?\n\nFile: cmd/bd/mol.go (lines 485-859)\nCommit: 386b513e","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T10:13:09.425229-08:00","updated_at":"2025-12-21T11:18:14.206869-08:00","closed_at":"2025-12-21T11:18:14.206869-08:00","dependencies":[{"issue_id":"bd-68bf","depends_on_id":"bd-o91r","type":"discovered-from","created_at":"2025-12-21T10:13:09.426471-08:00","created_by":"daemon"}]} @@ -506,81 +505,81 @@ {"id":"bd-69fbe98e","title":"Implement \"bd daemons logs\" subcommand","description":"Add command to view daemon logs for a specific workspace. Requires daemon logging to file (may need separate issue for log infrastructure).","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-26T19:41:11.099659-07:00","updated_at":"2025-12-14T12:12:46.552055-08:00","closed_at":"2025-11-06T19:53:45.855798-08:00"} {"id":"bd-6a5z","title":"Add stale molecule check to bd doctor","description":"Extend bd doctor to detect stale molecules.\n\n**New check:**\n- Name: 'Stale Molecules'\n- Category: Workflow\n- Severity: Warning (don't fail overall check)\n\n**Detection:**\nReuse logic from bd mol stale command:\n- Find mols where Completed \u003e= Total but root is open\n- Filter to orphaned (not assigned, not pinned)\n- Extra weight if blocking other work\n\n**Output:**\n```\n⚠ Stale Molecules\n Found 2 complete-but-unclosed molecules:\n - bd-xyz: Version bump v0.36.0 (blocking 1 issue)\n - bd-uvw: Old patrol (not blocking)\n Fix: bd close \u003cid\u003e or bd mol squash \u003cid\u003e\n```\n\n**--fix behavior:**\n- Auto-close stale mols (with reason 'Auto-closed by bd doctor')\n- Or prompt interactively with -i flag\n\nDepends on: bd mol stale command","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-24T18:23:24.549941-08:00","updated_at":"2025-12-25T12:42:50.288442-08:00","closed_at":"2025-12-25T12:42:50.288442-08:00","dependencies":[{"issue_id":"bd-6a5z","depends_on_id":"bd-anv2","type":"blocks","created_at":"2025-12-24T18:23:48.682552-08:00","created_by":"daemon"}]} {"id":"bd-6ada971e","title":"Create cmd/bd/daemon_event_loop.go (~200 LOC)","description":"Implement runEventDrivenLoop to replace polling ticker. Coordinate FileWatcher, mutation events, debouncer. Include health check ticker (60s) for daemon validation.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-28T16:20:02.429383-07:00","updated_at":"2025-10-30T17:12:58.220612-07:00","closed_at":"2025-10-28T12:30:44.067036-07:00"} -{"id":"bd-6b4jr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T12:09:02.30696-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T12:09:02.37693-08:00","closed_at":"2026-01-13T12:09:02.37693-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-6b4jr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T12:09:02.30696-08:00","updated_at":"2026-01-13T12:09:02.37693-08:00","closed_at":"2026-01-13T12:09:02.37693-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-6bebe013","title":"Rapid 1","status":"closed","priority":3,"issue_type":"task","created_at":"2025-10-29T19:11:57.404437-07:00","updated_at":"2025-12-14T12:12:46.521877-08:00","closed_at":"2025-11-07T23:18:52.368766-08:00"} {"id":"bd-6c68","title":"bd info shows 'auto_start_disabled' even when daemon is crashed/missing","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-10-31T21:08:03.385681-07:00","updated_at":"2025-11-01T19:13:43.819004-07:00","closed_at":"2025-11-01T19:13:43.819004-07:00","dependencies":[{"issue_id":"bd-6c68","depends_on_id":"bd-2752a7a2","type":"discovered-from","created_at":"2025-10-31T21:08:03.387045-07:00","created_by":"stevey"}]} {"id":"bd-6cxz","title":"Fix MCP tools failing to load in Claude Code (GH#346)","description":"Fix FastMCP schema generation bug by refactoring `Issue` model to avoid recursion.\n \n - Refactored `Issue` in `models.py` to use `LinkedIssue` for dependencies/dependents.\n - Restored missing `Mail*` models to `models.py`.\n - Fixed `tests/test_mail.py` mock assertion.\n \n Fixes GH#346.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-20T18:53:40.229801-05:00","updated_at":"2025-11-20T18:53:44.280296-05:00","closed_at":"2025-11-20T18:53:44.280296-05:00"} {"id":"bd-6d7efe32","title":"CRDT-based architecture for guaranteed convergence (v2.0)","description":"## Vision\nRedesign beads around Conflict-Free Replicated Data Types (CRDTs) to provide mathematical guarantees for N-way collision resolution at arbitrary scale.\n\n## Current Limitations\n- Content-hash based collision resolution fails at 5+ clones\n- Non-deterministic convergence in multi-round scenarios\n- UNIQUE constraint violations during rename operations\n- No formal proof of convergence properties\n\n## CRDT Benefits\n- Provably convergent (Strong Eventual Consistency)\n- Commutative/Associative/Idempotent operations\n- No coordination required between clones\n- Scales to 100+ concurrent workers\n- Well-understood mathematical foundations\n\n## Proposed Architecture\n\n### 1. UUID-Based IDs\nReplace sequential IDs with UUIDs:\n- Current: bd-1c63eb84, bd-9063acda, bd-4d80b7b1\n- CRDT: bd-a1b2c3d4-e5f6-7890-abcd-ef1234567890\n- Human aliases maintained separately: #42 maps to UUID\n\n### 2. Last-Write-Wins (LWW) Elements\nEach field becomes an LWW register:\n- title: (timestamp, clone_id, value)\n- status: (timestamp, clone_id, value)\n- Deterministic conflict resolution via Lamport timestamp + clone_id tiebreaker\n\n### 3. Operation Log\nTrack all operations as CRDT ops:\n- CREATE(uuid, timestamp, clone_id, fields)\n- UPDATE(uuid, field, timestamp, clone_id, value)\n- DELETE(uuid, timestamp, clone_id) - tombstone, not hard delete\n\n### 4. Sync as Merge\nSyncing becomes merging two CRDT states:\n- No merge conflicts possible\n- Deterministic merge function\n- Guaranteed convergence\n\n## Implementation Phases\n\n### Phase 1: Research \u0026 Design (4 weeks)\n- Study existing CRDT implementations (Automerge, Yjs, Loro)\n- Design schema for CRDT-based issue tracking\n- Prototype LWW-based Issue CRDT\n- Benchmark performance vs current system\n\n### Phase 2: Parallel Implementation (6 weeks)\n- Implement CRDT storage layer alongside SQLite\n- Build conversion tools: SQLite ↔ CRDT\n- Maintain backward compatibility with v1.x format\n- Migration path for existing databases\n\n### Phase 3: Testing \u0026 Validation (4 weeks)\n- Formal verification of convergence properties\n- Stress testing with 100+ clone scenario\n- Performance profiling and optimization\n- Documentation and examples\n\n### Phase 4: Migration \u0026 Rollout (4 weeks)\n- Release v2.0-beta with CRDT backend\n- Gradual migration from v1.x\n- Monitoring and bug fixes\n- Final v2.0 release\n\n## Risks \u0026 Mitigations\n\n**Risk 1: Performance overhead**\n- Mitigation: Benchmark early, optimize hot paths\n- CRDTs can be slower than append-only logs\n- May need compaction strategy\n\n**Risk 2: Storage bloat**\n- Mitigation: Implement operation log compaction\n- Tombstone garbage collection for deleted issues\n- Periodic snapshots to reduce log size\n\n**Risk 3: Breaking changes**\n- Mitigation: Maintain v1.x compatibility layer\n- Gradual migration tools\n- Dual-mode operation during transition\n\n**Risk 4: Complexity**\n- Mitigation: Use battle-tested CRDT libraries\n- Comprehensive documentation\n- Clear migration guide\n\n## Success Criteria\n- 100-clone collision test passes without failures\n- Formal proof of convergence properties\n- Performance within 2x of current system\n- Zero manual conflict resolution required\n- Backward compatible with v1.x databases\n\n## Timeline\n18-20 weeks total (4-5 months)\n\n## References\n- Automerge: https://automerge.org\n- Yjs: https://docs.yjs.dev\n- Loro: https://loro.dev\n- CRDT theory: Shapiro et al, A comprehensive study of CRDTs\n- Related issues: bd-e6d71828, bd-7a2b58fc, bd-81abb639","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-10-29T20:48:00.267237-07:00","updated_at":"2025-10-31T20:06:44.604643-07:00","closed_at":"2025-10-31T20:06:44.604643-07:00"} -{"id":"bd-6df0","title":"Investigate Claude Code crash logging improvements","description":"## Problem\n\nClaude Code doesn't leave useful crash logs when it terminates unexpectedly. Investigation of a crash on 2025-12-26 showed:\n\n- Debug logs in ~/.claude/debug/ just stop mid-stream with no error/exit message\n- No signal handlers appear to log SIGTERM/SIGKILL/SIGINT\n- No dedicated crash log file exists\n- When Node.js crashes hard or gets killed, there's no record of why\n\n## What we found\n\n- Session debug log (02080b1a-...) stopped at 22:58:40 UTC mid-operation\n- No 'exit', 'error', 'crash', 'signal' entries at end of file\n- macOS DiagnosticReports showed Chrome crashes but no Node crashes\n- System logs showed no relevant kill/OOM events\n\n## Desired improvements\n\n1. Exit handlers that log graceful shutdown\n2. Signal handlers that log SIGTERM/SIGINT before exiting\n3. A dedicated crash log or at least a 'last known state' file\n4. Possibly CLI flags to enable verbose crash debugging\n\n## Investigation paths\n\n- Check if Claude Code has --debug or similar flags\n- Look at Node.js crash handling best practices\n- Consider if we can wrap claude invocations to capture crashes\n\n## Related\n\nThis came up while investigating why a crew worker session crashed at end of a code review task.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-26T15:20:03.578463-08:00","updated_at":"2025-12-28T09:28:07.056732-08:00","closed_at":"2025-12-28T09:28:07.056732-08:00","comments":[{"id":1,"issue_id":"bd-6df0","author":"stevey","text":"Found existing flags:\n- `--debug [filter]` - Enable debug mode with optional category filtering (e.g., 'api,hooks' or '!statsig,!file')\n- `--verbose` - Override verbose mode setting from config\n\nThese might help with diagnosing issues, but still won't capture hard crashes. The debug output goes to ~/.claude/debug/\u003csession-id\u003e.txt which is what we were already looking at.\n\nNext step: Could wrap claude invocation to capture exit codes and stderr, or look into Node.js --report-on-signal flags.","created_at":"2025-12-26T23:20:20Z"},{"id":2,"issue_id":"bd-6df0","author":"beads/crew/dave","text":"## Investigation Results\n\n### Key Finding: NODE_OPTIONS works with Claude Code\n\nTested successfully:\n```bash\nNODE_OPTIONS=\"--report-on-fatalerror --report-on-signal --report-uncaught-exception --report-directory=$HOME/.claude/crash-reports\" claude --version\n```\n\nNode.js diagnostic reports will be generated in ~/.claude/crash-reports/ when:\n- Fatal errors occur (--report-on-fatalerror)\n- Signals received (--report-on-signal)\n- Uncaught exceptions (--report-uncaught-exception)\n\n### Implementation Options\n\n1. **User profile (immediate, no code change)**\n Add to ~/.zshrc or ~/.bashrc:\n export NODE_OPTIONS=\"--report-on-fatalerror --report-uncaught-exception --report-directory=$HOME/.claude/crash-reports\"\n\n2. **gastown modification** (requires gastown PR)\n Modify claude invocations in gastown/internal/cmd/*.go to set NODE_OPTIONS env var before spawning claude sessions.\n\n3. **Wrapper script**\n Create ~/.local/bin/claude-wrapped that sets NODE_OPTIONS and execs claude.\n\n### Recommendation\n\nStart with option 1 (user profile) to validate the approach. If useful, implement option 2 in gastown for automatic crash logging in all gt-managed sessions.","created_at":"2025-12-28T17:27:59Z"}]} -{"id":"bd-6di9","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T01:18:48.840368-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T01:18:48.872751-08:00","closed_at":"2026-01-07T01:18:48.872751-08:00","close_reason":"auto-closed session event"} -{"id":"bd-6dnt","title":"Code smell: Duplicated IssueDetails struct in show.go (4 definitions)","description":"The IssueDetails struct is defined 4 times within show.go at lines 109, 159, 190, and 372 with identical structure but slightly different JSON tag configurations.\n\n**Problem:**\n- Violates DRY principle\n- Makes maintenance harder - changes must be applied to multiple locations\n- Increases risk of inconsistency between definitions\n- Takes up ~50 lines of duplicated code\n\n**Acceptance Criteria:**\n- [ ] Extract IssueDetails to a single package-level type\n- [ ] Update all 4 locations to use the shared type\n- [ ] Ensure JSON output remains consistent\n- [ ] Tests pass","status":"closed","priority":2,"issue_type":"chore","created_at":"2025-12-28T18:58:58.42739-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-29T14:04:04.398691-08:00","closed_at":"2025-12-29T14:04:04.398691-08:00","close_reason":"Extracted IssueDetails to types.IssueDetails - removed 5 duplicate definitions","dependencies":[{"issue_id":"bd-6dnt","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.554676-08:00","created_by":"daemon"}]} +{"id":"bd-6df0","title":"Investigate Claude Code crash logging improvements","description":"## Problem\n\nClaude Code doesn't leave useful crash logs when it terminates unexpectedly. Investigation of a crash on 2025-12-26 showed:\n\n- Debug logs in ~/.claude/debug/ just stop mid-stream with no error/exit message\n- No signal handlers appear to log SIGTERM/SIGKILL/SIGINT\n- No dedicated crash log file exists\n- When Node.js crashes hard or gets killed, there's no record of why\n\n## What we found\n\n- Session debug log (02080b1a-...) stopped at 22:58:40 UTC mid-operation\n- No 'exit', 'error', 'crash', 'signal' entries at end of file\n- macOS DiagnosticReports showed Chrome crashes but no Node crashes\n- System logs showed no relevant kill/OOM events\n\n## Desired improvements\n\n1. Exit handlers that log graceful shutdown\n2. Signal handlers that log SIGTERM/SIGINT before exiting\n3. A dedicated crash log or at least a 'last known state' file\n4. Possibly CLI flags to enable verbose crash debugging\n\n## Investigation paths\n\n- Check if Claude Code has --debug or similar flags\n- Look at Node.js crash handling best practices\n- Consider if we can wrap claude invocations to capture crashes\n\n## Related\n\nThis came up while investigating why a crew worker session crashed at end of a code review task.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-26T15:20:03.578463-08:00","updated_at":"2025-12-28T09:28:07.056732-08:00","closed_at":"2025-12-28T09:28:07.056732-08:00"} +{"id":"bd-6di9","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T01:18:48.840368-08:00","updated_at":"2026-01-07T01:18:48.872751-08:00","closed_at":"2026-01-07T01:18:48.872751-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-6dnt","title":"Code smell: Duplicated IssueDetails struct in show.go (4 definitions)","description":"The IssueDetails struct is defined 4 times within show.go at lines 109, 159, 190, and 372 with identical structure but slightly different JSON tag configurations.\n\n**Problem:**\n- Violates DRY principle\n- Makes maintenance harder - changes must be applied to multiple locations\n- Increases risk of inconsistency between definitions\n- Takes up ~50 lines of duplicated code\n\n**Acceptance Criteria:**\n- [ ] Extract IssueDetails to a single package-level type\n- [ ] Update all 4 locations to use the shared type\n- [ ] Ensure JSON output remains consistent\n- [ ] Tests pass","status":"closed","priority":2,"issue_type":"chore","created_at":"2025-12-28T18:58:58.42739-08:00","updated_at":"2025-12-29T14:04:04.398691-08:00","closed_at":"2025-12-29T14:04:04.398691-08:00","close_reason":"Extracted IssueDetails to types.IssueDetails - removed 5 duplicate definitions","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-6dnt","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.554676-08:00","created_by":"daemon"}]} {"id":"bd-6ed8","title":"Fixture Generator for Realistic Test Data","description":"Create internal/testutil/fixtures/fixtures.go with functions to generate realistic test data at scale.\n\nFunctions:\n- LargeSQLite(storage) - 10K issues, native SQLite\n- XLargeSQLite(storage) - 20K issues, native SQLite \n- LargeFromJSONL(storage) - 10K issues imported from JSONL\n- XLargeFromJSONL(storage) - 20K issues imported from JSONL\n\nData characteristics:\n- Epic hierarchies (depth 4): Epic → Feature → Task → Subtask\n- Cross-linked dependencies (tasks blocking across epics)\n- Realistic status/priority/label distribution\n- Representative assignees and temporal data\n\nImplementation:\n- Single file: internal/testutil/fixtures/fixtures.go\n- No config structs, simple direct functions\n- Seeded RNG for reproducibility\n- Reusable by both benchmarks and tests","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-13T22:22:28.233977-08:00","updated_at":"2025-11-13T22:40:19.485552-08:00","closed_at":"2025-11-13T22:40:19.485552-08:00","dependencies":[{"issue_id":"bd-6ed8","depends_on_id":"bd-3tfh","type":"blocks","created_at":"2025-11-13T22:23:58.120794-08:00","created_by":"daemon"},{"issue_id":"bd-6ed8","depends_on_id":"bd-m62x","type":"blocks","created_at":"2025-11-13T22:24:02.598071-08:00","created_by":"daemon"}]} {"id":"bd-6fe4622f","title":"Remove unreachable utility functions","description":"Several small utility functions are unreachable:\n\nFiles to clean:\n1. `internal/storage/sqlite/hash.go` - `computeIssueContentHash` (line 17)\n - Check if entire file can be deleted if only contains this function\n\n2. `internal/config/config.go` - `FileUsed` (line 151)\n - Delete unused config helper\n\n3. `cmd/bd/git_sync_test.go` - `verifyIssueOpen` (line 300)\n - Delete dead test helper\n\n4. `internal/compact/haiku.go` - `HaikuClient.SummarizeTier2` (line 81)\n - Tier 2 summarization not implemented\n - Options: implement feature OR delete method\n\nImpact: Removes 50-100 LOC depending on decisions","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-10-28T16:20:02.434573-07:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-6ffj7","title":"Issue 2 to reopen","status":"open","priority":1,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:11.878829-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:12.098585-08:00"} +{"id":"bd-6ffj7","title":"Issue 2 to reopen","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-11T18:16:11.878829-08:00","updated_at":"2026-01-11T18:16:12.098585-08:00","created_by":"beads/crew/wolf"} {"id":"bd-6gd","title":"Remove legacy MCP Agent Mail integration","description":"## Summary\n\nRemove the legacy MCP Agent Mail system that requires an external HTTP server. Keep the native `bd mail` system which stores messages as git-synced issues.\n\n## Background\n\nTwo mail systems exist in the codebase:\n1. **Legacy Agent Mail** (`bd message`) - External server dependency, complex setup\n2. **Native bd mail** (`bd mail`) - Built-in, git-synced, no dependencies\n\nThe legacy system causes confusion and is no longer needed. Gas Town's Town Mail will use the native `bd mail` system.\n\n## Files to Delete\n\n### CLI Command\n- [ ] `cmd/bd/message.go` - The `bd message` command implementation\n\n### MCP Integration\n- [ ] `integrations/beads-mcp/src/beads_mcp/mail.py` - HTTP wrapper for Agent Mail server\n- [ ] `integrations/beads-mcp/src/beads_mcp/mail_tools.py` - MCP tool definitions\n- [ ] `integrations/beads-mcp/tests/test_mail.py` - Tests for legacy mail\n\n### Documentation\n- [ ] `docs/AGENT_MAIL.md`\n- [ ] `docs/AGENT_MAIL_QUICKSTART.md`\n- [ ] `docs/AGENT_MAIL_DEPLOYMENT.md`\n- [ ] `docs/AGENT_MAIL_MULTI_WORKSPACE_SETUP.md`\n- [ ] `docs/adr/002-agent-mail-integration.md`\n\n## Code to Update\n\n- [ ] Remove `message` command registration from `cmd/bd/main.go`\n- [ ] Remove mail tool imports/registration from MCP server `__init__.py` or `server.py`\n- [ ] Check for any other references to Agent Mail in the codebase\n\n## Verification\n\n- [ ] `bd message` command no longer exists\n- [ ] `bd mail` command still works\n- [ ] MCP server starts without errors\n- [ ] Tests pass\n","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T23:04:04.099935-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-6hji","title":"Test exclusive file reservations with two agents","description":"Simulate two agents racing to claim the same issue and verify that exclusive reservations prevent collision.\n\nAcceptance Criteria:\n- Agent A reserves bd-123 → succeeds\n- Agent B tries to reserve bd-123 → fails with clear error message\n- Agent B can see who has the reservation\n- Reservation expires after TTL\n- Agent B can claim after expiration","notes":"Successfully tested file reservations:\n- Agent BrownBear reserved bd-123 → granted\n- Agent ChartreuseHill tried same → conflicts returned\n- System correctly prevents collision","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-07T22:41:59.963468-08:00","updated_at":"2025-11-08T00:03:18.004972-08:00","closed_at":"2025-11-08T00:03:18.004972-08:00","dependencies":[{"issue_id":"bd-6hji","depends_on_id":"bd-muls","type":"blocks","created_at":"2025-11-07T23:03:52.897843-08:00","created_by":"daemon"},{"issue_id":"bd-6hji","depends_on_id":"bd-27xm","type":"blocks","created_at":"2025-11-07T23:20:21.911222-08:00","created_by":"daemon"},{"issue_id":"bd-6hji","depends_on_id":"bd-spmx","type":"parent-child","created_at":"2025-11-08T00:02:47.904652-08:00","created_by":"daemon"}]} -{"id":"bd-6kpc4","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:08:51.798306-08:00","created_by":"beads/crew/giles","updated_at":"2026-01-08T20:08:51.834314-08:00","closed_at":"2026-01-08T20:08:51.834314-08:00","close_reason":"auto-closed session event"} +{"id":"bd-6hji","title":"Test exclusive file reservations with two agents","description":"Simulate two agents racing to claim the same issue and verify that exclusive reservations prevent collision.\n\nAcceptance Criteria:\n- Agent A reserves bd-123 → succeeds\n- Agent B tries to reserve bd-123 → fails with clear error message\n- Agent B can see who has the reservation\n- Reservation expires after TTL\n- Agent B can claim after expiration","notes":"Successfully tested file reservations:\n- Agent BrownBear reserved bd-123 → granted\n- Agent ChartreuseHill tried same → conflicts returned\n- System correctly prevents collision","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-07T22:41:59.963468-08:00","updated_at":"2025-11-08T00:03:18.004972-08:00","closed_at":"2025-11-08T00:03:18.004972-08:00","dependencies":[{"issue_id":"bd-6hji","depends_on_id":"bd-spmx","type":"parent-child","created_at":"2025-11-08T00:02:47.904652-08:00","created_by":"daemon"},{"issue_id":"bd-6hji","depends_on_id":"bd-muls","type":"blocks","created_at":"2025-11-07T23:03:52.897843-08:00","created_by":"daemon"},{"issue_id":"bd-6hji","depends_on_id":"bd-27xm","type":"blocks","created_at":"2025-11-07T23:20:21.911222-08:00","created_by":"daemon"}]} +{"id":"bd-6kpc4","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:08:51.798306-08:00","updated_at":"2026-01-08T20:08:51.834314-08:00","closed_at":"2026-01-08T20:08:51.834314-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/giles"} {"id":"bd-6ku3","title":"Fix TestMigrateHashIDs test failure","description":"Test failure in cmd/bd/migrate_hash_ids_test.go:100 - New ID bd-09970281 for bd-1 is not a hash ID. This test is validating the hash ID migration but the generated ID doesn't match the expected format.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-06T18:52:58.114046-08:00","updated_at":"2025-11-06T19:04:58.804373-08:00","closed_at":"2025-11-06T19:04:58.804373-08:00"} -{"id":"bd-6m6ms","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T21:33:47.222656-08:00","created_by":"beads/crew/giles","updated_at":"2026-01-09T21:15:40.695725-08:00","closed_at":"2026-01-09T21:15:40.695725-08:00","close_reason":"Stale session ended events"} +{"id":"bd-6m6ms","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T21:33:47.222656-08:00","updated_at":"2026-01-09T21:15:40.695725-08:00","closed_at":"2026-01-09T21:15:40.695725-08:00","close_reason":"Stale session ended events","created_by":"beads/crew/giles"} {"id":"bd-6mjj","title":"Split test suites: fast vs. integration","description":"Reorganize tests into separate packages/files for fast unit tests vs slow integration tests.\n\nBenefits:\n- Clear separation of concerns\n- Easier to run just fast tests during development\n- Can parallelize CI jobs better\n\nFiles to organize:\n- beads_hash_multiclone_test.go (slow integration tests)\n- beads_integration_test.go (medium-speed integration tests)\n- Other test files (fast unit tests)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-04T01:24:21.040347-08:00","updated_at":"2025-11-04T10:38:12.408674-08:00","closed_at":"2025-11-04T10:38:12.408674-08:00","dependencies":[{"issue_id":"bd-6mjj","depends_on_id":"bd-l5gq","type":"blocks","created_at":"2025-11-04T01:24:21.041228-08:00","created_by":"daemon"}]} -{"id":"bd-6n0zx","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:32:40.748481-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:32:40.796079-08:00","closed_at":"2026-01-11T22:32:40.796079-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-6n0zx","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:32:40.748481-08:00","updated_at":"2026-01-11T22:32:40.796079-08:00","closed_at":"2026-01-11T22:32:40.796079-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-6ns7","title":"test hook pin","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-23T04:39:16.619755-08:00","updated_at":"2025-12-23T04:51:29.436788-08:00","deleted_at":"2025-12-23T04:51:29.436788-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} -{"id":"bd-6ntrj","title":"Fix: Windows daemons can't be stopped/killed (GH#992)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #992. On Windows, bd commands can't stop/kill daemon processes.","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/fang","created_at":"2026-01-09T22:20:00.703689-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T23:05:02.514732-08:00","closed_at":"2026-01-09T23:05:02.514732-08:00","close_reason":"Fixed: use os.Process.Kill() instead of taskkill for reliable Windows process termination"} -{"id":"bd-6p86l","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T12:51:33.217144-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T12:51:33.288137-08:00","closed_at":"2026-01-13T12:51:33.288137-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-6ntrj","title":"Fix: Windows daemons can't be stopped/killed (GH#992)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #992. On Windows, bd commands can't stop/kill daemon processes.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-09T22:20:00.703689-08:00","updated_at":"2026-01-09T23:05:02.514732-08:00","closed_at":"2026-01-09T23:05:02.514732-08:00","close_reason":"Fixed: use os.Process.Kill() instead of taskkill for reliable Windows process termination","created_by":"beads/crew/dave"} +{"id":"bd-6p86l","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T12:51:33.217144-08:00","updated_at":"2026-01-13T12:51:33.288137-08:00","closed_at":"2026-01-13T12:51:33.288137-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-6pc","title":"Implement bd pin/unpin commands","description":"Add 'bd pin \u003cid\u003e' and 'bd unpin \u003cid\u003e' commands to toggle the pinned status of issues. Should support multiple IDs like other bd commands.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-18T23:33:28.292937-08:00","updated_at":"2025-12-19T17:43:35.713398-08:00","closed_at":"2025-12-19T00:35:31.612589-08:00","dependencies":[{"issue_id":"bd-6pc","depends_on_id":"bd-0vg","type":"blocks","created_at":"2025-12-18T23:33:56.119852-08:00","created_by":"daemon"},{"issue_id":"bd-6pc","depends_on_id":"bd-7h5","type":"blocks","created_at":"2025-12-18T23:34:07.352848-08:00","created_by":"daemon"}]} {"id":"bd-6pni","title":"bd doctor --fix should auto-fix prefix mismatch errors","description":"When bd doctor --fix encounters a prefix mismatch during DB-JSONL sync fix, it fails without offering to use --rename-on-import.\n\n**Current behavior:**\n```\nFixing DB-JSONL Sync...\n→ Importing from JSONL...\nError importing: import failed: exit status 1\nImport failed: prefix mismatch detected: database uses 'bd-' but found issues with prefixes: [beads- (2 issues) test- (10 issues)]\n```\n\n**Expected behavior:**\n- Detect that the mismatched prefixes are all tombstones\n- Auto-apply --rename-on-import since tombstones with wrong prefixes are pollution\n- Or prompt: 'Found 21 issues with wrong prefixes (all tombstones). Remove them? [Y/n]'\n\n**Context:** Prefix pollution typically comes from contributor PRs that used different test prefixes. These are always safe to remove when they're tombstones.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-15T17:28:45.508654-08:00","updated_at":"2025-12-16T00:54:56.458264-08:00","closed_at":"2025-12-16T00:54:56.458264-08:00"} -{"id":"bd-6ql2z","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:32:29.623883-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T20:32:29.66296-08:00","closed_at":"2026-01-08T20:32:29.66296-08:00","close_reason":"auto-closed session event"} +{"id":"bd-6ql2z","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:32:29.623883-08:00","updated_at":"2026-01-08T20:32:29.66296-08:00","closed_at":"2026-01-08T20:32:29.66296-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-6rl","title":"Merge3Way public API does not expose TTL parameter","description":"The public Merge3Way() function in merge.go does not allow callers to configure the tombstone TTL. It hard-codes the default via merge3WayWithTTL(). While merge3WayWithTTL() exists, it is unexported (lowercase). This means the CLI and tests cannot configure TTL at merge time. Use cases: testing with different TTL values, per-repository TTL configuration, debugging with short TTL, supporting --ttl flag in bd merge command (mentioned in design doc bd-zvg). Recommendation: Export Merge3WayWithTTL (rename to uppercase). Files: internal/merge/merge.go:77, 292-298","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-05T16:36:15.756814-08:00","updated_at":"2025-12-25T22:45:32.157938-08:00","closed_at":"2025-12-25T22:45:32.157938-08:00"} -{"id":"bd-6s61","title":"Version Bump: {{version}}","description":"Release checklist for version {{version}}. This molecule ensures all release steps are completed properly.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-19T22:55:42.487701-08:00","updated_at":"2026-01-04T23:41:06.944519-08:00","closed_at":"2026-01-04T23:41:06.944519-08:00","close_reason":"Cleanup: stale molecule","labels":["molecule","template"],"deleted_at":"2025-12-24T16:25:31.251346-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"epic"} +{"id":"bd-6s61","title":"Version Bump: {{version}}","description":"Release checklist for version {{version}}. This molecule ensures all release steps are completed properly.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-19T22:55:42.487701-08:00","updated_at":"2026-01-04T23:41:06.944519-08:00","closed_at":"2026-01-04T23:41:06.944519-08:00","close_reason":"Cleanup: stale molecule"} {"id":"bd-6sd1","title":"Issue to close","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-07T19:00:16.547698-08:00","updated_at":"2025-11-07T19:00:16.570826-08:00","closed_at":"2025-11-07T19:00:16.570826-08:00"} {"id":"bd-6sm6","title":"Improve test coverage for internal/export (37.1% → 60%)","description":"The export package has only 37.1% test coverage. Export functionality needs good coverage to ensure data integrity.\n\nCurrent coverage: 37.1%\nTarget coverage: 60%","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-13T20:43:06.802277-08:00","updated_at":"2025-12-23T22:32:29.16846-08:00","closed_at":"2025-12-23T22:32:29.16846-08:00"} {"id":"bd-6ss","title":"Improve test coverage","description":"The test suite reports less than 45% code coverage. Identify the specific uncovered areas of the codebase, including modules, functions, or features. Rank them by potential impact on system reliability and business value, from most to least, and provide actionable recommendations for improving coverage in each area.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-18T06:54:23.036822442-07:00","updated_at":"2025-12-18T07:17:49.245940799-07:00","closed_at":"2025-12-18T07:17:49.245940799-07:00"} {"id":"bd-6uix","title":"Message System Improvements","description":"Consolidate improvements to the bd message command including core functionality (message reading), reliability (timeouts), validation, and code quality refactoring","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-08T12:55:47.907771-08:00","updated_at":"2025-11-08T12:59:05.802367-08:00","closed_at":"2025-11-08T12:59:05.802367-08:00"} -{"id":"bd-6vnu","title":"Merge: opal-1767142018955","description":"branch: polecat/opal-1767142018955\ntarget: main\nsource_issue: opal-1767142018955\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T17:14:02.067823-08:00","created_by":"beads/polecats/opal","updated_at":"2025-12-30T18:12:30.973553-08:00","closed_at":"2025-12-30T18:11:07.776363-08:00"} -{"id":"bd-6vuci","title":"Review and merge PR #1036: Remove export from read-only commands","description":"dispatched_by: beads/crew/emma","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/giles","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T16:35:30.609535-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T16:40:17.756796-08:00","closed_at":"2026-01-12T16:40:17.756796-08:00","close_reason":"PR #1036 merged. Fix removes export from readOnlyCommands since it actually writes to clear dirty issues and update JSONL file hash."} -{"id":"bd-6x6g","title":"Add multi-repo target repo switching in bd create","description":"In cmd/bd/create.go:164, there's a TODO to switch to the target repo for multi-repo support when creating issues. Currently the code may not properly handle creating issues in a different repo than the current one.\n\nFile: cmd/bd/create.go:164","status":"hooked","priority":3,"issue_type":"feature","created_at":"2025-12-28T16:32:37.130679-08:00","created_by":"stevey","updated_at":"2025-12-30T15:44:43.361095-08:00"} +{"id":"bd-6vnu","title":"Merge: opal-1767142018955","description":"branch: polecat/opal-1767142018955\ntarget: main\nsource_issue: opal-1767142018955\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T17:14:02.067823-08:00","updated_at":"2025-12-30T18:12:30.973553-08:00","closed_at":"2025-12-30T18:11:07.776363-08:00","created_by":"beads/polecats/opal"} +{"id":"bd-6vuci","title":"Review and merge PR #1036: Remove export from read-only commands","description":"dispatched_by: beads/crew/emma","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-12T16:35:30.609535-08:00","updated_at":"2026-01-12T16:40:17.756796-08:00","closed_at":"2026-01-12T16:40:17.756796-08:00","close_reason":"PR #1036 merged. Fix removes export from readOnlyCommands since it actually writes to clear dirty issues and update JSONL file hash.","created_by":"beads/crew/emma"} +{"id":"bd-6x6g","title":"Add multi-repo target repo switching in bd create","description":"In cmd/bd/create.go:164, there's a TODO to switch to the target repo for multi-repo support when creating issues. Currently the code may not properly handle creating issues in a different repo than the current one.\n\nFile: cmd/bd/create.go:164","status":"hooked","priority":3,"issue_type":"feature","created_at":"2025-12-28T16:32:37.130679-08:00","updated_at":"2025-12-30T15:44:43.361095-08:00","created_by":"stevey"} {"id":"bd-6xfz","title":"GH#517: Fix Claude setting wrong priority syntax on new install","description":"Claude uses 'medium' instead of P2/2 for priority, causing infinite error loops. bd prime hook or docs not clear enough. See: https://github.com/steveyegge/beads/issues/517","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-14T16:31:55.740197-08:00","updated_at":"2025-12-16T14:39:19.051677-08:00","closed_at":"2025-12-16T01:08:05.911031-08:00"} {"id":"bd-6z7l","title":"Auto-detect scenarios and prompt users","description":"Detect when user is in fork/contributor scenario and prompt with helpful suggestions. Check: git remote relationships, existing .beads config, repo ownership. Suggest appropriate wizard.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-05T18:04:30.070695-08:00","updated_at":"2025-11-05T19:27:33.074733-08:00","closed_at":"2025-11-05T18:57:03.315476-08:00","dependencies":[{"issue_id":"bd-6z7l","depends_on_id":"bd-8rd","type":"parent-child","created_at":"2025-11-05T18:04:39.205478-08:00","created_by":"daemon"}]} -{"id":"bd-6zatq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:01:59.821496-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T02:01:59.888043-08:00","closed_at":"2026-01-12T02:01:59.888043-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-6zatq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T02:01:59.821496-08:00","updated_at":"2026-01-12T02:01:59.888043-08:00","closed_at":"2026-01-12T02:01:59.888043-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-70419816","title":"Export deduplication breaks when JSONL and export_hashes table diverge","description":"## Problem\n\nThe export deduplication feature (timestamp-only skipping) breaks when the JSONL file and export_hashes table get out of sync, causing exports to skip issues that aren't actually in the file.\n\n## Symptoms\n\n- `bd export` reports \"Skipped 128 issue(s) with timestamp-only changes\"\n- JSONL file only has 38 lines but DB has 149 issues\n- export_hashes table has 149 entries\n- Auto-import doesn't trigger (hash matches despite missing data)\n- Two repos on same commit show different issue counts\n\n## Root Cause\n\nshouldSkipExport() in autoflush.go compares current issue hash with stored export_hashes entry. If they match, it skips export assuming the issue is already in the JSONL.\n\nThis assumption fails when:\n1. Git operations (pull, reset, checkout) change JSONL without clearing export_hashes\n2. Manual JSONL edits or corruption\n3. Import operations that modify DB but don't update export_hashes\n4. Partial exports that update export_hashes but don't complete\n\n## Impact\n\n- **Critical data loss risk**: Issues appear to be tracked but aren't persisted to git\n- Breaks multi-repo sync (root cause of today's debugging session)\n- Auto-import fails to detect staleness (hash matches despite missing data)\n- Silent data corruption (no error messages, just missing issues)\n\n## Reproduction\n\n1. Have DB with 149 issues, all in export_hashes table\n2. Truncate JSONL to 38 lines (simulate git reset or corruption)\n3. Run `bd export` - it skips 128 issues\n4. JSONL still has only 38 lines but export thinks it succeeded\n\n## Current Workaround\n\n```bash\nsqlite3 .beads/beads.db \"DELETE FROM export_hashes\"\nbd export -o .beads/beads.jsonl\n```\n\n## Proposed Solutions\n\n**Option 1: Verify JSONL integrity before skipping**\n- Count lines in JSONL, compare with export_hashes count\n- If mismatch, clear export_hashes and force full export\n- Safe but adds I/O overhead\n\n**Option 2: Hash-based JSONL validation**\n- Store hash of entire JSONL file in metadata\n- Before export, check if JSONL hash matches\n- If mismatch, clear export_hashes\n- More efficient, detects any JSONL corruption\n\n**Option 3: Disable timestamp-only deduplication**\n- Remove the feature entirely\n- Always export all issues\n- Simplest and safest, but creates larger git commits\n\n**Option 4: Clear export_hashes on git operations**\n- Add post-merge hook to clear export_hashes\n- Clear on any import operation\n- Defensive approach but may over-clear\n\n## Recommended Fix\n\nCombination of Options 2 + 4:\n1. Store JSONL file hash in metadata after export\n2. Check hash before export, clear export_hashes if mismatch \n3. Clear export_hashes on import operations\n4. Add `bd validate` check for JSONL/export_hashes sync\n\n## Files Involved\n\n- cmd/bd/autoflush.go (shouldSkipExport)\n- cmd/bd/export.go (export with deduplication)\n- internal/storage/sqlite/metadata.go (export_hashes table)","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-10-29T23:05:13.960352-07:00","updated_at":"2025-10-30T17:12:58.19679-07:00","closed_at":"2025-10-29T22:22:20.406934-07:00"} {"id":"bd-70an","title":"test pin","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T11:19:16.760214-08:00","updated_at":"2025-12-21T11:19:46.500688-08:00","closed_at":"2025-12-21T11:19:46.500688-08:00"} -{"id":"bd-70c4","title":"Gate await fields cleared by --no-daemon CLI access (not multi-repo)","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-25T23:30:38.648182-08:00","updated_at":"2025-12-26T23:38:47.972075-08:00","closed_at":"2025-12-26T23:38:47.972075-08:00","comments":[{"id":3,"issue_id":"bd-70c4","author":"mayor","text":"## Summary\nGate await fields (await_type, await_id, timeout_ns, waiters) are cleared when a CLI command accesses the database directly (--no-daemon) while the daemon is running. This is separate from the multi-repo issue fixed in bd-gr4q.\n\n## Reproduction\n1. Start daemon: bd daemon --start\n2. Create gate: bd gate create --await timer:5s (fields stored correctly)\n3. Verify: sqlite3 .beads/beads.db shows timer|5s\n4. Run CLI with --no-daemon: bd show \u003cid\u003e --no-daemon --no-auto-import --no-auto-flush\n5. Check again: fields are now empty\n\n## Investigation Notes\n- NOT caused by autoImportIfNewer (verified with --no-auto-import flag)\n- NOT caused by HydrateFromMultiRepo (no multi-repo config, returns early)\n- NOT caused by molecule loader (only creates new issues)\n- NOT caused by migrations (gate_columns only adds columns)\n- No database triggers found\n\nThe clearing happens somewhere in sqlite.NewWithTimeout() initialization or command execution path.\n\n## Related\n- bd-gr4q fixed the multi-repo path but this is a different code path\n- The fix pattern (COALESCE/NULLIF) may need to be applied elsewhere","created_at":"2025-12-26T07:30:49Z"}]} -{"id":"bd-70txm","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T19:20:03.303066-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T19:20:03.351526-08:00","closed_at":"2026-01-07T19:20:03.351526-08:00","close_reason":"auto-closed session event"} +{"id":"bd-70c4","title":"Gate await fields cleared by --no-daemon CLI access (not multi-repo)","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-25T23:30:38.648182-08:00","updated_at":"2025-12-26T23:38:47.972075-08:00","closed_at":"2025-12-26T23:38:47.972075-08:00"} +{"id":"bd-70txm","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T19:20:03.303066-08:00","updated_at":"2026-01-07T19:20:03.351526-08:00","closed_at":"2026-01-07T19:20:03.351526-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-710a4916","title":"CRDT-based architecture for guaranteed convergence (v2.0)","description":"## Vision\nRedesign beads around Conflict-Free Replicated Data Types (CRDTs) to provide mathematical guarantees for N-way collision resolution at arbitrary scale.\n\n## Current Limitations\n- Content-hash based collision resolution fails at 5+ clones\n- Non-deterministic convergence in multi-round scenarios\n- UNIQUE constraint violations during rename operations\n- No formal proof of convergence properties\n\n## CRDT Benefits\n- Provably convergent (Strong Eventual Consistency)\n- Commutative/Associative/Idempotent operations\n- No coordination required between clones\n- Scales to 100+ concurrent workers\n- Well-understood mathematical foundations\n\n## Proposed Architecture\n\n### 1. UUID-Based IDs\nReplace sequential IDs with UUIDs:\n- Current: bd-1c63eb84, bd-9063acda, bd-4d80b7b1\n- CRDT: bd-a1b2c3d4-e5f6-7890-abcd-ef1234567890\n- Human aliases maintained separately: #42 maps to UUID\n\n### 2. Last-Write-Wins (LWW) Elements\nEach field becomes an LWW register:\n- title: (timestamp, clone_id, value)\n- status: (timestamp, clone_id, value)\n- Deterministic conflict resolution via Lamport timestamp + clone_id tiebreaker\n\n### 3. Operation Log\nTrack all operations as CRDT ops:\n- CREATE(uuid, timestamp, clone_id, fields)\n- UPDATE(uuid, field, timestamp, clone_id, value)\n- DELETE(uuid, timestamp, clone_id) - tombstone, not hard delete\n\n### 4. Sync as Merge\nSyncing becomes merging two CRDT states:\n- No merge conflicts possible\n- Deterministic merge function\n- Guaranteed convergence\n\n## Implementation Phases\n\n### Phase 1: Research \u0026 Design (4 weeks)\n- Study existing CRDT implementations (Automerge, Yjs, Loro)\n- Design schema for CRDT-based issue tracking\n- Prototype LWW-based Issue CRDT\n- Benchmark performance vs current system\n\n### Phase 2: Parallel Implementation (6 weeks)\n- Implement CRDT storage layer alongside SQLite\n- Build conversion tools: SQLite ↔ CRDT\n- Maintain backward compatibility with v1.x format\n- Migration path for existing databases\n\n### Phase 3: Testing \u0026 Validation (4 weeks)\n- Formal verification of convergence properties\n- Stress testing with 100+ clone scenario\n- Performance profiling and optimization\n- Documentation and examples\n\n### Phase 4: Migration \u0026 Rollout (4 weeks)\n- Release v2.0-beta with CRDT backend\n- Gradual migration from v1.x\n- Monitoring and bug fixes\n- Final v2.0 release\n\n## Risks \u0026 Mitigations\n\n**Risk 1: Performance overhead**\n- Mitigation: Benchmark early, optimize hot paths\n- CRDTs can be slower than append-only logs\n- May need compaction strategy\n\n**Risk 2: Storage bloat**\n- Mitigation: Implement operation log compaction\n- Tombstone garbage collection for deleted issues\n- Periodic snapshots to reduce log size\n\n**Risk 3: Breaking changes**\n- Mitigation: Maintain v1.x compatibility layer\n- Gradual migration tools\n- Dual-mode operation during transition\n\n**Risk 4: Complexity**\n- Mitigation: Use battle-tested CRDT libraries\n- Comprehensive documentation\n- Clear migration guide\n\n## Success Criteria\n- 100-clone collision test passes without failures\n- Formal proof of convergence properties\n- Performance within 2x of current system\n- Zero manual conflict resolution required\n- Backward compatible with v1.x databases\n\n## Timeline\n18-20 weeks total (4-5 months)\n\n## References\n- Automerge: https://automerge.org\n- Yjs: https://docs.yjs.dev\n- Loro: https://loro.dev\n- CRDT theory: Shapiro et al, A comprehensive study of CRDTs\n- Related issues: bd-e6d71828, bd-7a2b58fc,-1","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-10-29T10:23:57.978339-07:00","updated_at":"2025-12-14T12:12:46.52828-08:00","closed_at":"2025-11-08T00:54:51.171319-08:00"} {"id":"bd-71107098","title":"Make two-clone workflow actually work (no hacks)","description":"TestTwoCloneCollision proves beads CANNOT handle two independent clones filing issues simultaneously. This is the basic collaborative workflow and it must work cleanly.\n\nTest location: beads_twoclone_test.go\n\nThe test creates two git clones, both file issues with same ID (test-1), --resolve-collisions remaps clone B's to test-2, but after sync:\n- Clone A has test-1=\"Issue from clone A\", test-2=\"Issue from clone B\" \n- Clone B has test-1=\"Issue from clone B\", test-2=\"Issue from clone A\"\n\nThe TITLES are swapped! Both clones have 2 issues but with opposite title assignments.\n\nWe've tried many fixes (per-project daemons, auto-sync, lamport hashing, precommit hooks) but nothing has made the test pass.\n\nGoal: Make the test pass WITHOUT hacks. The two clones should converge to identical state after sync.","notes":"**Major progress achieved!** The two-clone workflow now converges correctly.\n\n**What was fixed:**\n--3d844c58: Implemented content-hash based rename detection\n- bd-64c05d00.1: Fixed test to compare content not timestamps\n- Both clones now converge to identical issue databases\n- test-1 and test-2 have correct titles in both clones\n- No more title swapping!\n\n**Current status (VERIFIED):**\n✅ Acceptance criteria 1: TestTwoCloneCollision passes (confirmed Oct 28)\n✅ Acceptance criteria 2: Both clones converge to identical issue database (content matches)\n✅ Acceptance criteria 3: No manual conflict resolution required (automatic)\n✅ Acceptance criteria 4: Git status clean\n✅ Acceptance criteria 5: bd ready output identical (timestamps are expected difference)\n\n**ALL ACCEPTANCE CRITERIA MET!** This issue is complete and can be closed.","status":"closed","priority":0,"issue_type":"epic","created_at":"2025-10-28T16:34:53.278793-07:00","updated_at":"2025-10-31T19:38:09.206303-07:00","closed_at":"2025-10-28T19:20:04.143242-07:00"} {"id":"bd-71ky","title":"Fix bd --version and bd completion to work without database","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-08T02:06:00.78393-08:00","updated_at":"2025-11-08T02:06:11.452474-08:00","closed_at":"2025-11-08T02:06:11.452474-08:00"} -{"id":"bd-71v3","title":"Merge: topaz-1767083484329","description":"branch: polecat/topaz-1767083484329\ntarget: main\nsource_issue: topaz-1767083484329\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T00:39:43.095673-08:00","created_by":"beads/polecats/topaz","updated_at":"2025-12-30T00:54:58.57614-08:00","closed_at":"2025-12-30T00:54:58.57614-08:00","close_reason":"Branch polecat/topaz-1767083484329 no longer exists on remote"} +{"id":"bd-71v3","title":"Merge: topaz-1767083484329","description":"branch: polecat/topaz-1767083484329\ntarget: main\nsource_issue: topaz-1767083484329\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T00:39:43.095673-08:00","updated_at":"2025-12-30T00:54:58.57614-08:00","closed_at":"2025-12-30T00:54:58.57614-08:00","close_reason":"Branch polecat/topaz-1767083484329 no longer exists on remote","created_by":"beads/polecats/topaz"} {"id":"bd-72w","title":"Q4 Platform Improvements","description":"## Overview\n\n[Describe the high-level goal and scope of this epic]\n\n## Success Criteria\n\n- [ ] Criteria 1\n- [ ] Criteria 2\n- [ ] Criteria 3\n\n## Background\n\n[Provide context and motivation]\n\n## Scope\n\n**In Scope:**\n- Item 1\n- Item 2\n\n**Out of Scope:**\n- Item 1\n- Item 2\n","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-03T19:54:03.794244-08:00","updated_at":"2025-11-05T00:25:06.51152-08:00","closed_at":"2025-11-05T00:25:06.51152-08:00"} -{"id":"bd-730o","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:57:09.026454-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:57:09.059464-08:00","closed_at":"2026-01-07T00:57:09.059464-08:00","close_reason":"auto-closed session event"} +{"id":"bd-730o","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:57:09.026454-08:00","updated_at":"2026-01-07T00:57:09.059464-08:00","closed_at":"2026-01-07T00:57:09.059464-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-7315","title":"Add validation for duplicate external_ref in batch imports","description":"Currently, if a batch import contains multiple issues with the same external_ref, the behavior is undefined. We should detect and handle this case.\n\nCurrent behavior:\n- No validation for duplicate external_ref within a batch\n- Last-write-wins or non-deterministic behavior\n\nProposed solution:\n- Detect duplicate external_ref values in incoming batch\n- Fail with clear error message OR\n- Merge duplicates intelligently (use newest timestamp)\n- Add test case for this scenario\n\nRelated: bd-1022","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-02T15:31:55.85634-08:00","updated_at":"2025-11-02T16:40:01.022143-08:00","closed_at":"2025-11-02T16:40:01.022143-08:00"} -{"id":"bd-731it","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T03:04:36.031534-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-13T03:04:36.097383-08:00","closed_at":"2026-01-13T03:04:36.097383-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-731it","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T03:04:36.031534-08:00","updated_at":"2026-01-13T03:04:36.097383-08:00","closed_at":"2026-01-13T03:04:36.097383-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} {"id":"bd-7324","title":"Add is_tombstone flag to schema","description":"Optionally add is_tombstone boolean field to issues table. Marks resurrected parents that were deleted. Allows distinguishing tombstones from normal deleted issues. Update schema.go and create migration.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-04T12:31:59.745076-08:00","updated_at":"2025-11-05T00:44:27.947578-08:00","closed_at":"2025-11-05T00:44:27.947584-08:00"} {"id":"bd-736d","title":"Refactor path canonicalization into helper function","description":"The path canonicalization logic (filepath.Abs + EvalSymlinks) is duplicated in 3 places:\n- beads.go:131-137 (BEADS_DIR handling)\n- cmd/bd/main.go:446-451 (--no-db cleanup)\n- cmd/bd/nodb.go:26-31 (--no-db initialization)\n\nRefactoring suggestion:\nExtract to a helper function like:\n func canonicalizePath(path string) string\n\nThis would:\n- Reduce code duplication\n- Make the logic easier to maintain\n- Ensure consistent behavior across all path handling\n\nRelated to bd-e16b implementation.","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-11-02T18:33:47.727443-08:00","updated_at":"2025-12-09T18:38:37.678853071-05:00","closed_at":"2025-11-25T22:27:33.738672-08:00"} -{"id":"bd-738r6","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:02:03.9906-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T16:02:04.025522-08:00","closed_at":"2026-01-10T16:02:04.025522-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-73axa","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T13:38:43.808865-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T13:38:43.885925-08:00","closed_at":"2026-01-13T13:38:43.885925-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-73got","title":"Refactor beads-release formula to use gate step","description":"Update beads-release.formula.toml to use gate-based async for CI wait:\n\nReplace the spin-wait `wait-ci` step with a proper gate step:\n\n```toml\n[[steps]]\nid = \"wait-ci\"\ntitle = \"Await CI completion\"\nneeds = [\"push-tag\"]\ngate = \"gh:run\"\ngate_hint = \"release.yml\"\ntimeout = \"30m\"\ndescription = \"\"\"\nGate step awaiting GitHub Actions release workflow.\nResolves automatically when workflow succeeds.\nEscalates if workflow fails or times out.\n\nNo polling needed - Deacon patrol evaluates gates periodically.\n\"\"\"\n```\n\nDepends on gate infrastructure being complete.\n\nParent: bd-ka761","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-08T20:53:43.3345-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T21:20:50.372013-08:00","closed_at":"2026-01-08T21:20:50.372013-08:00","close_reason":"Already complete: beads-release.formula.toml has await-ci step with gate (type=gh:run, id=release.yml, timeout=30m). No spin-wait code found.","dependencies":[{"issue_id":"bd-73got","depends_on_id":"bd-ka761","type":"parent-child","created_at":"2026-01-08T20:54:04.116426-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-73got","depends_on_id":"bd-1ep6e","type":"blocks","created_at":"2026-01-08T20:54:11.719414-08:00","created_by":"beads/crew/emma"}]} -{"id":"bd-73ivt","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:02:50.409563-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:02:50.476837-08:00","closed_at":"2026-01-11T21:02:50.476837-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-738r6","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:02:03.9906-08:00","updated_at":"2026-01-10T16:02:04.025522-08:00","closed_at":"2026-01-10T16:02:04.025522-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-73axa","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T13:38:43.808865-08:00","updated_at":"2026-01-13T13:38:43.885925-08:00","closed_at":"2026-01-13T13:38:43.885925-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-73got","title":"Refactor beads-release formula to use gate step","description":"Update beads-release.formula.toml to use gate-based async for CI wait:\n\nReplace the spin-wait `wait-ci` step with a proper gate step:\n\n```toml\n[[steps]]\nid = \"wait-ci\"\ntitle = \"Await CI completion\"\nneeds = [\"push-tag\"]\ngate = \"gh:run\"\ngate_hint = \"release.yml\"\ntimeout = \"30m\"\ndescription = \"\"\"\nGate step awaiting GitHub Actions release workflow.\nResolves automatically when workflow succeeds.\nEscalates if workflow fails or times out.\n\nNo polling needed - Deacon patrol evaluates gates periodically.\n\"\"\"\n```\n\nDepends on gate infrastructure being complete.\n\nParent: bd-ka761","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-08T20:53:43.3345-08:00","updated_at":"2026-01-08T21:20:50.372013-08:00","closed_at":"2026-01-08T21:20:50.372013-08:00","close_reason":"Already complete: beads-release.formula.toml has await-ci step with gate (type=gh:run, id=release.yml, timeout=30m). No spin-wait code found.","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-73got","depends_on_id":"bd-1ep6e","type":"blocks","created_at":"2026-01-08T20:54:11.719414-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-73got","depends_on_id":"bd-ka761","type":"parent-child","created_at":"2026-01-08T20:54:04.116426-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-73ivt","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:02:50.409563-08:00","updated_at":"2026-01-11T21:02:50.476837-08:00","closed_at":"2026-01-11T21:02:50.476837-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-73iz","title":"Test issue 1","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-07T19:04:17.430269-08:00","updated_at":"2025-11-07T22:07:17.344468-08:00","closed_at":"2025-11-07T21:55:09.427697-08:00"} {"id":"bd-746","title":"Fix resolvePartialID stub in workflow.go","description":"The resolvePartialID function at workflow.go:921-925 is a stub that just returns the ID unchanged. Should use utils.ResolvePartialID for proper partial ID resolution in direct mode (non-daemon).","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-12-17T22:22:57.586917-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} -{"id":"bd-74eak","title":"Review \u0026 merge PR #1026: fix(init) prevent init from worktrees","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #1026: https://github.com/steveyegge/beads/pull/1026\n\n## Summary\nPrevents 'bd init' from running inside a git worktree. Worktrees should share the .beads database from the main repository.\n\n## Changes\n- Adds check in cmd/bd/init.go\n- Error message guides users to use main repo or bd worktree create\n\n## Review Checklist\n- [ ] Pull the branch locally\n- [ ] Run tests: go test ./...\n- [ ] Verify the worktree check works correctly\n- [ ] Merge with gh pr merge 1026 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/dave","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:14:05.979279-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T18:16:06.880893-08:00","closed_at":"2026-01-11T18:16:06.880893-08:00","close_reason":"PR #1026 reviewed, approved, and merged. Prevents bd init from running in git worktrees with helpful error message."} +{"id":"bd-74eak","title":"Review \u0026 merge PR #1026: fix(init) prevent init from worktrees","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #1026: https://github.com/steveyegge/beads/pull/1026\n\n## Summary\nPrevents 'bd init' from running inside a git worktree. Worktrees should share the .beads database from the main repository.\n\n## Changes\n- Adds check in cmd/bd/init.go\n- Error message guides users to use main repo or bd worktree create\n\n## Review Checklist\n- [ ] Pull the branch locally\n- [ ] Run tests: go test ./...\n- [ ] Verify the worktree check works correctly\n- [ ] Merge with gh pr merge 1026 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T18:14:05.979279-08:00","updated_at":"2026-01-11T18:16:06.880893-08:00","closed_at":"2026-01-11T18:16:06.880893-08:00","close_reason":"PR #1026 reviewed, approved, and merged. Prevents bd init from running in git worktrees with helpful error message.","created_by":"beads/crew/emma"} {"id":"bd-74ee","title":"Frontend task","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-03T19:11:59.358631-08:00","updated_at":"2025-11-05T00:25:06.457813-08:00","closed_at":"2025-11-05T00:25:06.457813-08:00"} {"id":"bd-74q9","title":"Issue to reopen with reason","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-22T14:57:44.493560585-05:00","updated_at":"2025-11-22T14:57:44.493560585-05:00","closed_at":"2025-11-09T16:13:23.938513-08:00"} {"id":"bd-74w1","title":"Consolidate duplicate path-finding utilities (findJSONLPath, findBeadsDir, findGitRoot)","description":"Code health review found these functions defined in multiple places:\n\n- findJSONLPath() in autoflush.go:45-73 and doctor/fix/migrate.go\n- findBeadsDir() in autoimport.go:197-239 (with git worktree handling)\n- findGitRoot() in autoimport.go:242-269 (Windows path conversion)\n\nThe beads package has public FindBeadsDir() and FindJSONLPath() APIs that should be used consistently.\n\nImpact: Bug fixes need to be applied in multiple places. Git worktree handling may not be replicated everywhere.\n\nFix: Consolidate all implementations to use the beads package APIs. Remove duplicates.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-16T18:17:16.694293-08:00","updated_at":"2025-12-22T21:13:46.83103-08:00","closed_at":"2025-12-22T21:13:46.83103-08:00"} {"id":"bd-754r","title":"Merge: bd-thgk","description":"branch: polecat/Compactor\ntarget: main\nsource_issue: bd-thgk\nrig: beads","status":"closed","priority":1,"issue_type":"merge-request","created_at":"2025-12-23T13:41:43.965771-08:00","updated_at":"2025-12-23T19:12:08.345449-08:00","closed_at":"2025-12-23T19:12:08.345449-08:00"} {"id":"bd-763c","title":"~/src/beads daemon has 'sql: database is closed' errors - zombie daemon","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-10-31T21:08:03.388007-07:00","updated_at":"2025-10-31T21:52:04.214274-07:00","closed_at":"2025-10-31T21:52:04.214274-07:00","dependencies":[{"issue_id":"bd-763c","depends_on_id":"bd-2752a7a2","type":"discovered-from","created_at":"2025-10-31T21:08:03.388716-07:00","created_by":"stevey"}]} -{"id":"bd-76edo","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:27:53.581059-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T15:27:53.616381-08:00","closed_at":"2026-01-10T15:27:53.616381-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-76edo","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:27:53.581059-08:00","updated_at":"2026-01-10T15:27:53.616381-08:00","closed_at":"2026-01-10T15:27:53.616381-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-77gm","title":"Import reports misleading '0 created, 0 updated' when actually importing all issues","description":"When running 'bd import' on a fresh database (no existing issues), the command reports 'Import complete: 0 created, 0 updated' even though it successfully imported all issues from the JSONL file.\n\n**Steps to reproduce:**\n1. Delete .beads/beads.db\n2. Run: bd import .beads/issues.jsonl\n3. Observe output: 'Import complete: 0 created, 0 updated'\n4. Run: bd list\n5. Confirm: All issues are actually present in the database\n\n**Expected behavior:**\nReport the actual number of issues imported, e.g., 'Import complete: 523 created, 0 updated'\n\n**Actual behavior:**\n'Import complete: 0 created, 0 updated' (misleading - makes user think import failed)\n\n**Impact:**\n- Users think import failed when it succeeded\n- Confusing during database sync operations (e.g., after git pull)\n- Makes debugging harder (can't tell if import actually worked)\n\n**Context:**\nDiscovered during VC session when syncing database after git pull. The misleading message caused confusion about whether the database was properly synced with the canonical JSONL file.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-09T16:20:13.191156-08:00","updated_at":"2025-12-21T21:13:27.057292-08:00","closed_at":"2025-12-21T21:13:27.057292-08:00"} -{"id":"bd-784c","title":"Code Review: Beads Refactoring Sprint","description":"Epic for code smell fixes identified during Beads code review.\n\n## Scope\n11 issues covering:\n- P2: Duplicated code in cook.go (2 issues)\n- P3: Long functions and God Objects (5 issues) \n- P4: Technical debt and cleanup (4 issues)\n\n## Approach\nSwarm with polecats, each taking 1-2 issues. All changes should:\n1. Pass existing tests\n2. Not change external behavior\n3. Improve code maintainability\n\n## Success Criteria\nAll 11 child issues closed with passing CI.","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-28T15:37:54.076091-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T18:45:51.192153-08:00","closed_at":"2025-12-28T18:45:51.192153-08:00"} +{"id":"bd-784c","title":"Code Review: Beads Refactoring Sprint","description":"Epic for code smell fixes identified during Beads code review.\n\n## Scope\n11 issues covering:\n- P2: Duplicated code in cook.go (2 issues)\n- P3: Long functions and God Objects (5 issues) \n- P4: Technical debt and cleanup (4 issues)\n\n## Approach\nSwarm with polecats, each taking 1-2 issues. All changes should:\n1. Pass existing tests\n2. Not change external behavior\n3. Improve code maintainability\n\n## Success Criteria\nAll 11 child issues closed with passing CI.","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-28T15:37:54.076091-08:00","updated_at":"2025-12-28T18:45:51.192153-08:00","closed_at":"2025-12-28T18:45:51.192153-08:00","created_by":"beads/crew/dave"} {"id":"bd-78w","title":"Test Epic 2","description":"## Overview\n\n[Describe the high-level goal and scope of this epic]\n\n## Success Criteria\n\n- [ ] Criteria 1\n- [ ] Criteria 2\n- [ ] Criteria 3\n\n## Background\n\n[Provide context and motivation]\n\n## Scope\n\n**In Scope:**\n- Item 1\n- Item 2\n\n**Out of Scope:**\n- Item 1\n- Item 2\n","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-03T20:15:03.878216-08:00","updated_at":"2025-11-05T00:25:06.566242-08:00","closed_at":"2025-11-05T00:25:06.566242-08:00"} {"id":"bd-790","title":"Document which files to commit after bd init --branch","description":"GH #312 reported confusion about which files should be committed after running 'bd init --branch beads-metadata'. Updated PROTECTED_BRANCHES.md to clearly document:\n\n1. Files that should be committed to protected branch (main):\n - .beads/.gitignore\n - .gitattributes\n\n2. Files that are automatically gitignored\n3. Files that live in the sync branch (beads-metadata)\n\nChanges:\n- Added step-by-step instructions in Quick Start section\n- Added 'What lives in each branch' section to How It Works\n- Clarified the directory structure diagram\n\nFixes: https://github.com/steveyegge/beads/issues/312","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-20T21:47:25.813954-05:00","updated_at":"2025-11-20T21:47:33.567649-05:00","closed_at":"2025-11-20T21:47:33.567651-05:00"} -{"id":"bd-7933b","title":"Issue 2","status":"open","priority":1,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:03.318762-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:03.318762-08:00"} -{"id":"bd-79wlf","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:51:28.674805-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-09T13:51:28.713511-08:00","closed_at":"2026-01-09T13:51:28.713511-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-7933b","title":"Issue 2","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-11T18:16:03.318762-08:00","updated_at":"2026-01-11T18:16:03.318762-08:00","created_by":"beads/crew/wolf"} +{"id":"bd-79wlf","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:51:28.674805-08:00","updated_at":"2026-01-09T13:51:28.713511-08:00","closed_at":"2026-01-09T13:51:28.713511-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} {"id":"bd-7a00c94e","title":"Rapid 2","status":"closed","priority":3,"issue_type":"task","created_at":"2025-10-29T19:11:57.430725-07:00","updated_at":"2025-12-14T12:12:46.53405-08:00","closed_at":"2025-11-07T23:18:52.352188-08:00"} {"id":"bd-7a2b58fc","title":"Implement clone-scoped ID allocation to prevent N-way collisions","description":"## Problem\nCurrent ID allocation uses per-clone atomic counters (issue_counters table) that sync based on local database state. In N-way collision scenarios:\n- Clone B sees {test-1} locally, allocates test-2\n- Clone D sees {test-1, test-2, test-3} locally, allocates test-4\n- When same content gets assigned test-2 and test-4, convergence fails\n\nRoot cause: Each clone independently allocates IDs without global coordination, leading to overlapping assignments for the same content.\n\n## Solution\nAdd clone UUID to ID allocation to make every ID globally unique:\n\n**Current format:** `test-1`, `test-2`, `test-3`\n**New format:** `test-1-a7b3`, `test-2-a7b3`, `test-3-c4d9`\n\nWhere suffix is first 4 chars of clone UUID.\n\n## Implementation\n\n### 1. Add clone_identity table\n```sql\nCREATE TABLE clone_identity (\n clone_uuid TEXT PRIMARY KEY,\n created_at DATETIME DEFAULT CURRENT_TIMESTAMP\n);\n```\n\n### 2. Modify getNextIDForPrefix()\n```go\nfunc (s *SQLiteStorage) getNextIDForPrefix(ctx context.Context, prefix string) (string, error) {\n cloneUUID := s.getOrCreateCloneUUID(ctx)\n shortUUID := cloneUUID[:4]\n \n nextNum := s.getNextCounterForPrefix(ctx, prefix)\n return fmt.Sprintf(\"%s-%d-%s\", prefix, nextNum, shortUUID), nil\n}\n```\n\n### 3. Update ID parsing logic\nAll places that parse IDs (utils.ExtractIssueNumber, etc.) need to handle new format.\n\n### 4. Migration strategy\n- Existing IDs remain unchanged (no suffix)\n- New IDs get clone suffix automatically\n- Display layer can hide suffix in UI: `bd-cb64c226.3-a7b3` → `#42`\n\n## Benefits\n- **Zero collision risk**: Same content in different clones gets different IDs\n- **Maintains readability**: Still sequential numbering within clone\n- **No coordination needed**: Works offline, no central authority\n- **Scales to 100+ clones**: 4-char hex = 65,536 unique clones\n\n## Concerns\n- ID format change may break existing integrations\n- Need migration path for existing databases\n- Display logic needs update to hide/show suffixes appropriately\n\n## Success Criteria\n- 10+ clone collision test passes without failures\n- Existing issues continue to work (backward compatibility)\n- Documentation updated with new ID format\n- Migration guide for v1.x → v2.x\n\n## Timeline\nMedium-term (v1.1-v1.2), 2-3 weeks implementation\n\n## References\n- Related to bd-0dcea000 (immediate fix)\n- See beads_nway_test.go for failing N-way tests","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-10-29T20:02:47.952447-07:00","updated_at":"2025-12-14T12:12:46.506819-08:00","closed_at":"2025-11-06T19:27:29.41629-08:00"} {"id":"bd-7b7h","title":"bd sync --merge fails due to chicken-and-egg: .beads/ always dirty","description":"## Problem\n\nWhen sync.branch is configured (e.g., beads-sync), the bd sync workflow creates a chicken-and-egg problem:\n\n1. `bd sync` commits changes to beads-sync via worktree\n2. `bd sync` copies JSONL to main working dir via `copyJSONLToMainRepo()` (sync.go line 364, worktree.go line 678-685)\n3. The copy is NOT committed to main - it just updates the working tree\n4. `bd sync --merge` checks for clean working dir (sync.go line 1547-1548)\n5. `bd sync --merge` FAILS because .beads/issues.jsonl is uncommitted!\n\n## Impact\n\n- sync.branch workflow is fundamentally broken\n- Users cannot periodically merge beads-sync → main\n- Main branch always shows as dirty\n- Creates confusion about git state\n\n## Root Cause\n\nsync.go:1547-1548:\n```go\nif len(strings.TrimSpace(string(statusOutput))) \u003e 0 {\n return fmt.Errorf(\"main branch has uncommitted changes, please commit or stash them first\")\n}\n```\n\nThis check blocks merge when ANY uncommitted changes exist, including the .beads/ changes that `bd sync` itself created.\n\n## Proposed Fix\n\nOption A: Exclude .beads/ from the clean check in `mergeSyncBranch`:\n```go\n// Check if there are non-beads uncommitted changes\nstatusCmd := exec.CommandContext(ctx, \"git\", \"status\", \"--porcelain\", \"--\", \":!.beads/\")\n```\n\nOption B: Auto-stash .beads/ changes before merge, restore after\n\nOption C: Change the workflow - do not copy JSONL to main working dir, instead always read from worktree\n\n## Files to Modify\n\n- cmd/bd/sync.go:1540-1549 (mergeSyncBranch function)\n- Possibly internal/syncbranch/worktree.go (copyJSONLToMainRepo)","notes":"## Fix Implemented\n\nModified cmd/bd/sync.go mergeSyncBranch function:\n\n1. **Exclude .beads/ from dirty check** (line 1543):\n Changed `git status --porcelain` to `git status --porcelain -- :!.beads/`\n This allows merge to proceed when only .beads/ has uncommitted changes.\n\n2. **Restore .beads/ to HEAD before merge** (lines 1553-1561):\n Added `git checkout HEAD -- .beads/` before merge to prevent\n \"Your local changes would be overwritten by merge\" errors.\n The .beads/ changes are redundant since they came FROM beads-sync.\n\n## Testing\n\n- All cmd/bd sync/merge tests pass\n- All internal/syncbranch tests pass\n- Manual verification needed for full workflow","status":"tombstone","priority":0,"issue_type":"bug","created_at":"2025-12-16T23:06:06.97703-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-7bbc4e6a","title":"Add MCP server functions for repair commands","description":"**Summary:** Added MCP server repair functions for agent dependency management, system validation, and pollution detection. Implemented across BdClientBase, BdCliClient, and daemon clients to enhance system diagnostics and self-healing capabilities.\n\n**Key Decisions:** \n- Expose repair_deps(), detect_pollution(), validate() via MCP server\n- Create abstract method stubs with fallback to CLI execution\n- Use @mcp.tool decorators for function registration\n\n**Resolution:** Successfully implemented comprehensive repair command infrastructure, enabling more robust system health monitoring and automated remediation with full CLI and daemon support.","notes":"Implemented all three MCP server functions:\n\n1. **repair_deps(fix=False)** - Find/fix orphaned dependencies\n2. **detect_pollution(clean=False)** - Detect/clean test issues \n3. **validate(checks=None, fix_all=False)** - Run comprehensive health checks\n\nChanges:\n- Added abstract methods to BdClientBase\n- Implemented in BdCliClient (CLI execution)\n- Added NotImplementedError stubs in BdDaemonClient (falls back to CLI)\n- Created wrapper functions in tools.py\n- Registered @mcp.tool decorators in server.py\n\nAll commands tested and working with --no-daemon flag.","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-10-28T19:37:55.72639-07:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-7bd2","title":"Complete remaining sync branch daemon tests","description":"4 remaining test scenarios in daemon_sync_branch_test.go need completion:\n\n⚠️ MINOR FIXES (apply same pattern as TestSyncBranchCommitAndPush_Success):\n1. TestSyncBranchCommitAndPush_NoChanges\n - Reorder: call initMainBranch() BEFORE creating JSONL\n - Pattern: init branch → create issue → export JSONL → test\n\n2. TestSyncBranchCommitAndPush_WorktreeHealthCheck\n - Same reordering needed\n - Verify worktree corruption detection and auto-repair\n\n🔧 MORE WORK NEEDED (remote branch setup):\n3. TestSyncBranchPull_Success\n - Issue: remote doesn't have sync branch after push\n - Need to verify branch is pushed to remote correctly\n - Then test pull from clone2\n\n4. TestSyncBranchIntegration_EndToEnd\n - Full workflow: Agent A commits → Agent B pulls → Agent B commits → Agent A pulls\n - Same remote branch issue\n\nPattern to apply (from TestSyncBranchCommitAndPush_Success):\n- Call initMainBranch(t, dir) BEFORE creating issues/JSONL\n- This ensures sync branch worktree has changes to commit\n\nAcceptance:\n- All 7 tests pass\n- go test -v -run TestSyncBranch ./cmd/bd/ succeeds","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-02T16:29:29.044162-08:00","updated_at":"2025-11-02T16:39:53.277529-08:00","closed_at":"2025-11-02T16:39:53.277529-08:00","dependencies":[{"issue_id":"bd-7bd2","depends_on_id":"bd-502e","type":"discovered-from","created_at":"2025-11-02T16:29:29.045104-08:00","created_by":"stevey"}]} -{"id":"bd-7bs4","title":"Release v{{version}}","description":"Clean release workflow for beads. Variables: version (e.g., 0.37.0), date (YYYY-MM-DD)","status":"tombstone","priority":1,"issue_type":"epic","created_at":"2025-12-24T16:20:49.905172-08:00","updated_at":"2025-12-25T12:18:31.639911-08:00","labels":["molecule","template"],"dependencies":[{"issue_id":"bd-7bs4","depends_on_id":"bd-qqc","type":"supersedes","created_at":"2025-12-24T16:22:59.957519-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T12:18:31.639911-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"epic"} +{"id":"bd-7bs4","title":"Release v{{version}}","description":"Clean release workflow for beads. Variables: version (e.g., 0.37.0), date (YYYY-MM-DD)","status":"tombstone","priority":1,"issue_type":"epic","created_at":"2025-12-24T16:20:49.905172-08:00","updated_at":"2025-12-25T12:18:31.639911-08:00","dependencies":[{"issue_id":"bd-7bs4","depends_on_id":"bd-qqc","type":"supersedes","created_at":"2025-12-24T16:22:59.957519-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T12:18:31.639911-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"epic"} {"id":"bd-7bs4.1","title":"Verify CI is green","description":"Check that CI is passing before starting release:\n```bash\ngh run list --limit 3\n```\nAll recent runs should show 'success'. If not, fix issues first.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-24T16:21:03.112-08:00","updated_at":"2025-12-25T01:53:13.505206-08:00","closed_at":"2025-12-25T01:53:13.505206-08:00","dependencies":[{"issue_id":"bd-7bs4.1","depends_on_id":"bd-7bs4","type":"parent-child","created_at":"2025-12-24T16:21:03.112453-08:00","created_by":"daemon"}]} {"id":"bd-7bs4.10","title":"Update Homebrew formula","description":"./scripts/update-homebrew.sh {{version}}","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-24T16:22:20.238562-08:00","updated_at":"2025-12-25T12:18:31.635231-08:00","dependencies":[{"issue_id":"bd-7bs4.10","depends_on_id":"bd-7bs4","type":"parent-child","created_at":"2025-12-24T16:22:20.238936-08:00","created_by":"daemon"},{"issue_id":"bd-7bs4.10","depends_on_id":"bd-7bs4.9","type":"blocks","created_at":"2025-12-24T16:22:37.977163-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T12:18:31.635231-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} {"id":"bd-7bs4.11","title":"Upgrade Homebrew bd","description":"brew update \u0026\u0026 brew upgrade bd","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-24T16:22:20.316818-08:00","updated_at":"2025-12-25T12:18:31.636057-08:00","dependencies":[{"issue_id":"bd-7bs4.11","depends_on_id":"bd-7bs4","type":"parent-child","created_at":"2025-12-24T16:22:20.317185-08:00","created_by":"daemon"},{"issue_id":"bd-7bs4.11","depends_on_id":"bd-7bs4.10","type":"blocks","created_at":"2025-12-24T16:22:38.045463-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T12:18:31.636057-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} @@ -600,51 +599,51 @@ {"id":"bd-7c831c51","title":"Run final validation and cleanup checks","description":"Final validation pass to ensure all cleanup objectives met and no regressions introduced.\n\nValidation checklist:\n1. Dead code verification: `go run golang.org/x/tools/cmd/deadcode@latest -test ./...`\n2. Test coverage: `go test -cover ./...`\n3. Build verification: `go build ./cmd/bd/`\n4. Linting: `golangci-lint run`\n5. Integration tests\n6. Metrics verification\n7. Git clean check\n\nFinal metrics to report:\n- LOC removed: ~____\n- Files deleted: ____\n- Files created: ____\n- Test coverage: ____%\n- Build time: ____ (before/after)\n- Test run time: ____ (before/after)\n\nImpact: Confirms all cleanup objectives achieved successfully","notes":"## Validation Results\n\n**Dead Code:** ✅ Found and removed 1 unreachable function (`DroppedEventsCount`) \n**Tests:** ✅ All pass \n**Coverage:** \n- Main: 39.6%\n- cmd/bd: 20.2%\n- Created follow-up issues (bd-85487065 through bd-bc2c6191) to improve coverage\n \n**Build:** ✅ Clean \n**Linting:** 73 issues (up from 34 baseline) \n- Increase due to unused functions from refactoring\n- Need cleanup in separate issue\n \n**Integration Tests:** ✅ All pass \n**Metrics:** 56,464 LOC across 193 Go files \n**Git:** 2 files modified (deadcode fix + auto-synced JSONL)\n\n## Follow-up Issues Created\n- bd-85487065: Add tests for internal/autoimport (0% coverage)\n- bd-0dcea000: Add tests for internal/importer (0% coverage)\n- bd-4d7fca8a: Add tests for internal/utils (0% coverage)\n- bd-6221bdcd: Improve cmd/bd coverage (20.2% -\u003e target higher)\n- bd-bc2c6191: Improve internal/daemon coverage (22.5% -\u003e target higher)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T20:02:47.956276-07:00","updated_at":"2025-10-30T17:12:58.193468-07:00","closed_at":"2025-10-29T14:19:35.095553-07:00"} {"id":"bd-7cgmm","title":"Digest: mol-refinery-patrol","description":"Patrol: empty queue, 0 branches merged, no issues","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T05:00:23.463317-08:00","updated_at":"2026-01-11T05:00:23.463317-08:00","closed_at":"2026-01-11T05:00:23.463261-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-7da9437e","title":"Latency test","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T15:28:52.729923-07:00","updated_at":"2025-10-31T12:00:43.184758-07:00","closed_at":"2025-10-31T12:00:43.184758-07:00"} -{"id":"bd-7dggh","title":"Issue to reopen with reason","status":"open","priority":1,"issue_type":"bug","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:12.262802-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:12.396225-08:00","comments":[{"id":14,"issue_id":"bd-7dggh","author":"beads/crew/wolf","text":"BG found a regression in production","created_at":"2026-01-12T02:16:12Z"}]} +{"id":"bd-7dggh","title":"Issue to reopen with reason","status":"open","priority":1,"issue_type":"bug","created_at":"2026-01-11T18:16:12.262802-08:00","updated_at":"2026-01-11T18:16:12.396225-08:00","created_by":"beads/crew/wolf"} {"id":"bd-7di","title":"worktree: any bd command is slow","description":"in a git worktree any bd command is slow, with a 2-3s pause before any results are shown. The identical command with `--no-daemon` is near instant.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-05T15:33:42.924618693-07:00","updated_at":"2025-12-25T22:04:11.200532-08:00","closed_at":"2025-12-25T22:04:11.200532-08:00"} {"id":"bd-7e0d6660","title":"Handle unchecked errors (errcheck - 683 issues)","description":"683 unchecked error returns, mostly in tests (Close, Rollback, RemoveAll). Many already excluded in config but still showing up.","notes":"Fixed all errcheck warnings in production code:\n- Enabled errcheck linter (was disabled)\n- Set tests: false in .golangci.yml to focus on production code\n- Fixed 27 total errors in production code using Oracle guidance:\n * Database patterns: defer func() { _ = rows.Close() }() and defer func() { _ = tx.Rollback() }()\n * Best-effort closers: _ = store.Close(), _ = client.Close()\n * Proper error handling for file writes, fmt.Scanln(), os.Remove()\n- All tests pass\n- Only 2 \"unused\" linter warnings remain (not errcheck)","status":"closed","priority":3,"issue_type":"task","created_at":"2025-10-27T23:20:10.392336-07:00","updated_at":"2025-10-30T17:12:58.215288-07:00","closed_at":"2025-10-27T23:05:31.945328-07:00"} {"id":"bd-7e7ddffa","title":"Repair Commands \u0026 AI-Assisted Tooling","description":"Add specialized repair tools to reduce agent repair burden:\n1. Git merge conflicts in JSONL\n2. Duplicate issues from parallel work\n3. Semantic inconsistencies\n4. Orphaned references\n\nSee ~/src/fred/beads/repair_commands.md for full design doc.\n\nReduces agent repair time from 5-10 minutes to \u003c30 seconds per repair.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-10-28T19:30:17.465812-07:00","updated_at":"2025-11-02T17:08:52.043115-08:00","closed_at":"2025-11-02T17:08:52.043117-08:00"} -{"id":"bd-7e7ddffa.1","title":"bd resolve-conflicts - Git merge conflict resolver","description":"dispatched_by: gastown/crew/max\n\nAutomatically resolve JSONL merge conflicts.\n\nModes:\n- Mechanical: ID remapping (no AI)\n- AI-assisted: Smart merge/keep decisions\n- Interactive: Review each conflict\n\nHandles \u003c\u003c\u003c\u003c\u003c\u003c\u003c conflict markers in .beads/beads.jsonl\n\nFiles: cmd/bd/resolve_conflicts.go (new)","status":"closed","priority":1,"issue_type":"task","assignee":"beads/crew/fang","created_at":"2025-10-28T14:48:30.083642-07:00","updated_at":"2026-01-07T21:39:48.868211-08:00","closed_at":"2026-01-07T21:39:48.868211-08:00","close_reason":"Implemented bd resolve-conflicts command with mechanical mode (deterministic merge using updated_at), dry-run, and JSON output. Added comprehensive tests.","dependencies":[{"issue_id":"bd-7e7ddffa.1","depends_on_id":"bd-7e7ddffa","type":"parent-child","created_at":"2025-10-29T19:58:28.847736-07:00","created_by":"stevey"}]} +{"id":"bd-7e7ddffa.1","title":"bd resolve-conflicts - Git merge conflict resolver","description":"dispatched_by: gastown/crew/max\n\nAutomatically resolve JSONL merge conflicts.\n\nModes:\n- Mechanical: ID remapping (no AI)\n- AI-assisted: Smart merge/keep decisions\n- Interactive: Review each conflict\n\nHandles \u003c\u003c\u003c\u003c\u003c\u003c\u003c conflict markers in .beads/beads.jsonl\n\nFiles: cmd/bd/resolve_conflicts.go (new)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-28T14:48:30.083642-07:00","updated_at":"2026-01-07T21:39:48.868211-08:00","closed_at":"2026-01-07T21:39:48.868211-08:00","close_reason":"Implemented bd resolve-conflicts command with mechanical mode (deterministic merge using updated_at), dry-run, and JSON output. Added comprehensive tests.","dependencies":[{"issue_id":"bd-7e7ddffa.1","depends_on_id":"bd-7e7ddffa","type":"parent-child","created_at":"2025-10-29T19:58:28.847736-07:00","created_by":"stevey"}]} {"id":"bd-7eed","title":"Remove obsolete stale.go command (executor tables never implemented)","status":"closed","priority":2,"issue_type":"chore","created_at":"2025-10-31T21:27:05.555369-07:00","updated_at":"2025-10-31T21:27:11.427631-07:00","closed_at":"2025-10-31T21:27:11.427631-07:00"} -{"id":"bd-7ejlf","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T17:45:52.581671-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T17:45:52.65928-08:00","closed_at":"2026-01-13T17:45:52.65928-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-7ejlf","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T17:45:52.581671-08:00","updated_at":"2026-01-13T17:45:52.65928-08:00","closed_at":"2026-01-13T17:45:52.65928-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-7fe8","title":"Fix linting error in migrate.go","description":"Linter reports error:\n```\ncmd/bd/migrate.go:647:37: cleanupWALFiles - result 0 (error) is always nil (unparam)\n```\n\nThe `cleanupWALFiles` function always returns nil, so the error return type should be removed or the function should actually return errors when appropriate.","status":"closed","priority":2,"issue_type":"chore","created_at":"2025-11-02T09:29:37.279747-08:00","updated_at":"2025-11-02T09:46:52.18793-08:00","closed_at":"2025-11-02T09:46:52.18793-08:00","dependencies":[{"issue_id":"bd-7fe8","depends_on_id":"bd-1231","type":"blocks","created_at":"2025-11-02T09:29:37.280881-08:00","created_by":"stevey"}]} -{"id":"bd-7gj3w","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T12:55:12.238341-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T12:55:12.309125-08:00","closed_at":"2026-01-13T12:55:12.309125-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-7gj3w","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T12:55:12.238341-08:00","updated_at":"2026-01-13T12:55:12.309125-08:00","closed_at":"2026-01-13T12:55:12.309125-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-7h5","title":"Add pinned field to issue schema","description":"Add boolean 'pinned' field to the issue schema. When true, the issue is marked as a persistent context marker that should not be treated as a work item.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-18T23:33:26.767247-08:00","updated_at":"2025-12-19T00:08:59.854605-08:00","closed_at":"2025-12-19T00:08:59.854605-08:00","dependencies":[{"issue_id":"bd-7h5","depends_on_id":"bd-0vg","type":"blocks","created_at":"2025-12-18T23:33:55.98635-08:00","created_by":"daemon"}]} {"id":"bd-7h7","title":"bd init should stop running daemon to avoid stale cache","description":"When running bd init, any running daemon continues with stale cached data, causing bd stats and other commands to show old counts.\n\nRepro:\n1. Have daemon running with 788 issues cached\n2. Clean JSONL to 128 issues, delete db, run bd init\n3. bd stats still shows 788 (daemon cache)\n4. Must manually run bd daemon --stop\n\nFix: bd init should automatically stop any running daemon before reinitializing.","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-12-16T13:26:47.117226-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} -{"id":"bd-7io4j","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:45:50.105664-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T20:45:50.151499-08:00","closed_at":"2026-01-11T20:45:50.151499-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-7iq6k","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:39:25.255252-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T20:39:25.323692-08:00","closed_at":"2026-01-11T20:39:25.323692-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-7ixsn","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:09:52.367028-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-08T14:09:52.400294-08:00","closed_at":"2026-01-08T14:09:52.400294-08:00","close_reason":"auto-closed session event"} -{"id":"bd-7kilq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T07:23:01.585628-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T07:23:01.647964-08:00","closed_at":"2026-01-11T07:23:01.647964-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-7io4j","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T20:45:50.105664-08:00","updated_at":"2026-01-11T20:45:50.151499-08:00","closed_at":"2026-01-11T20:45:50.151499-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-7iq6k","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T20:39:25.255252-08:00","updated_at":"2026-01-11T20:39:25.323692-08:00","closed_at":"2026-01-11T20:39:25.323692-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-7ixsn","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:09:52.367028-08:00","updated_at":"2026-01-08T14:09:52.400294-08:00","closed_at":"2026-01-08T14:09:52.400294-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/dave"} +{"id":"bd-7kilq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T07:23:01.585628-08:00","updated_at":"2026-01-11T07:23:01.647964-08:00","closed_at":"2026-01-11T07:23:01.647964-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-7kua","title":"Reduce sync rounds in multiclone tests","description":"Analyze and reduce the number of sync rounds in hash multiclone tests.\n\nCurrent state:\n- TestHashIDs_MultiCloneConverge: 1 round of syncs across 3 clones\n- TestHashIDs_IdenticalContentDedup: 2 rounds across 2 clones\n\nInvestigation needed:\n- Profile to see how much time each sync takes\n- Determine minimum rounds needed for convergence\n- Consider making rounds configurable via env var\n\nFile: beads_hash_multiclone_test.go:70, :132","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-04T01:24:18.405038-08:00","updated_at":"2025-11-04T10:26:34.449434-08:00","closed_at":"2025-11-04T10:26:34.449434-08:00","dependencies":[{"issue_id":"bd-7kua","depends_on_id":"bd-l5gq","type":"blocks","created_at":"2025-11-04T01:24:18.405883-08:00","created_by":"daemon"}]} -{"id":"bd-7l27","title":"Integrate migration detection into bd doctor","description":"Multiple migration commands (migrate_hash_ids.go, migrate_issues.go, migrate_sync.go, migrate_tombstones.go, migrate.go) have TODOs suggesting integration into 'bd doctor' for automatic migration detection. This would allow bd doctor to detect when migrations are needed and suggest running them.\n\nFiles:\n- cmd/bd/migrate_hash_ids.go:24\n- cmd/bd/migrate_issues.go:15\n- cmd/bd/migrate_sync.go:16\n- cmd/bd/migrate_tombstones.go:72\n- cmd/bd/migrate.go:22","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-28T16:32:24.018282-08:00","created_by":"stevey","updated_at":"2025-12-30T15:44:43.353203-08:00","closed_at":"2025-12-30T00:06:59.401939-08:00","close_reason":"Implemented: Added CheckPendingMigrations to bd doctor, updated existing migration suggestions to use modern bd migrate subcommands"} -{"id":"bd-7l67","title":"Add bd state and bd set-state helper commands","description":"Convenience commands for the labels-as-state pattern documented in LABELS.md.\n\n`bd state \u003crole\u003e \u003cdimension\u003e` - Query the current value of a state dimension\nExample: bd state witness-alpha patrol → outputs: active\n\n`bd set-state \u003crole\u003e \u003cdimension\u003e=\u003cvalue\u003e [--reason \"...\"]` - Atomically creates an event bead and updates the label\nExample: bd set-state witness-alpha patrol=muted --reason \"Investigating stuck polecat\"\n\nThis would combine the manual steps:\n1. bd create \"\u003creason\u003e\" -t event --parent \u003crole\u003e\n2. bd label remove \u003crole\u003e \u003cdimension\u003e:\u003cold-value\u003e\n3. bd label add \u003crole\u003e \u003cdimension\u003e:\u003cnew-value\u003e\n\nInto a single atomic operation.\n\nDiscovered from: bd-31ae","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-30T15:46:40.679911-08:00","created_by":"stevey","updated_at":"2025-12-30T15:56:44.713687-08:00","closed_at":"2025-12-30T15:56:44.713687-08:00","close_reason":"Implemented bd state and bd set-state commands with tests and documentation","dependencies":[{"issue_id":"bd-7l67","depends_on_id":"bd-31ae","type":"discovered-from","created_at":"2025-12-30T15:46:50.184553-08:00","created_by":"stevey"}]} -{"id":"bd-7m0d2","title":"Formula parser: recognize gate step fields","description":"Add support for gate-related fields in formula step definitions:\n\n- `gate`: Gate type (gh:run, gh:pr, timer, bead, human)\n- `gate_hint`: Optional hint for auto-discovery (e.g., workflow name)\n- `timeout`: Duration before escalation\n\nUpdate internal/formula/types.go and parser.go to recognize these fields.\n\nParent: bd-ka761","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-08T20:53:33.353399-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T21:09:12.222082-08:00","closed_at":"2026-01-08T21:09:12.222082-08:00","close_reason":"Already implemented: Gate struct exists in types.go with Type/ID/Timeout fields, Step.Gate field exists, parser handles JSON/TOML correctly, comprehensive tests exist in parser_test.go and cook_test.go","dependencies":[{"issue_id":"bd-7m0d2","depends_on_id":"bd-ka761","type":"parent-child","created_at":"2026-01-08T20:54:03.992343-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-7l27","title":"Integrate migration detection into bd doctor","description":"Multiple migration commands (migrate_hash_ids.go, migrate_issues.go, migrate_sync.go, migrate_tombstones.go, migrate.go) have TODOs suggesting integration into 'bd doctor' for automatic migration detection. This would allow bd doctor to detect when migrations are needed and suggest running them.\n\nFiles:\n- cmd/bd/migrate_hash_ids.go:24\n- cmd/bd/migrate_issues.go:15\n- cmd/bd/migrate_sync.go:16\n- cmd/bd/migrate_tombstones.go:72\n- cmd/bd/migrate.go:22","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-28T16:32:24.018282-08:00","updated_at":"2025-12-30T15:44:43.353203-08:00","closed_at":"2025-12-30T00:06:59.401939-08:00","close_reason":"Implemented: Added CheckPendingMigrations to bd doctor, updated existing migration suggestions to use modern bd migrate subcommands","created_by":"stevey"} +{"id":"bd-7l67","title":"Add bd state and bd set-state helper commands","description":"Convenience commands for the labels-as-state pattern documented in LABELS.md.\n\n`bd state \u003crole\u003e \u003cdimension\u003e` - Query the current value of a state dimension\nExample: bd state witness-alpha patrol → outputs: active\n\n`bd set-state \u003crole\u003e \u003cdimension\u003e=\u003cvalue\u003e [--reason \"...\"]` - Atomically creates an event bead and updates the label\nExample: bd set-state witness-alpha patrol=muted --reason \"Investigating stuck polecat\"\n\nThis would combine the manual steps:\n1. bd create \"\u003creason\u003e\" -t event --parent \u003crole\u003e\n2. bd label remove \u003crole\u003e \u003cdimension\u003e:\u003cold-value\u003e\n3. bd label add \u003crole\u003e \u003cdimension\u003e:\u003cnew-value\u003e\n\nInto a single atomic operation.\n\nDiscovered from: bd-31ae","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-30T15:46:40.679911-08:00","updated_at":"2025-12-30T15:56:44.713687-08:00","closed_at":"2025-12-30T15:56:44.713687-08:00","close_reason":"Implemented bd state and bd set-state commands with tests and documentation","created_by":"stevey","dependencies":[{"issue_id":"bd-7l67","depends_on_id":"bd-31ae","type":"discovered-from","created_at":"2025-12-30T15:46:50.184553-08:00","created_by":"stevey"}]} +{"id":"bd-7m0d2","title":"Formula parser: recognize gate step fields","description":"Add support for gate-related fields in formula step definitions:\n\n- `gate`: Gate type (gh:run, gh:pr, timer, bead, human)\n- `gate_hint`: Optional hint for auto-discovery (e.g., workflow name)\n- `timeout`: Duration before escalation\n\nUpdate internal/formula/types.go and parser.go to recognize these fields.\n\nParent: bd-ka761","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-08T20:53:33.353399-08:00","updated_at":"2026-01-08T21:09:12.222082-08:00","closed_at":"2026-01-08T21:09:12.222082-08:00","close_reason":"Already implemented: Gate struct exists in types.go with Type/ID/Timeout fields, Step.Gate field exists, parser handles JSON/TOML correctly, comprehensive tests exist in parser_test.go and cook_test.go","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-7m0d2","depends_on_id":"bd-ka761","type":"parent-child","created_at":"2026-01-08T20:54:03.992343-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-7m16","title":"GH#519: bd sync fails when sync.branch is currently checked-out branch","description":"bd sync tries to create worktree for sync.branch even when already on that branch. Should commit directly instead. See GitHub issue #519.","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-12-16T01:03:36.613211-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} -{"id":"bd-7mjd8","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T15:09:48.801903-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T15:09:48.877024-08:00","closed_at":"2026-01-13T15:09:48.877024-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-7mquj","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:53:50.253589-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:53:50.322846-08:00","closed_at":"2026-01-11T19:53:50.322846-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-7p5l","title":"Fix N+1 query pattern in swarm status blocked check","description":"In getSwarmStatus, when checking if an issue is blocked, we query each dependency individually with GetIssue. With 100 issues and 5 deps each, thats 500 extra queries. Fix: Build a status map upfront from the already-fetched childIssues slice. File: cmd/bd/swarm.go:706-710","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-28T21:31:07.586335-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-28T21:35:30.605065-08:00","closed_at":"2025-12-28T21:35:30.605065-08:00","dependencies":[{"issue_id":"bd-7p5l","depends_on_id":"bd-m6r3","type":"blocks","created_at":"2025-12-28T21:31:17.309538-08:00","created_by":"daemon"}]} +{"id":"bd-7mjd8","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T15:09:48.801903-08:00","updated_at":"2026-01-13T15:09:48.877024-08:00","closed_at":"2026-01-13T15:09:48.877024-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-7mquj","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:53:50.253589-08:00","updated_at":"2026-01-11T19:53:50.322846-08:00","closed_at":"2026-01-11T19:53:50.322846-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-7p5l","title":"Fix N+1 query pattern in swarm status blocked check","description":"In getSwarmStatus, when checking if an issue is blocked, we query each dependency individually with GetIssue. With 100 issues and 5 deps each, thats 500 extra queries. Fix: Build a status map upfront from the already-fetched childIssues slice. File: cmd/bd/swarm.go:706-710","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-28T21:31:07.586335-08:00","updated_at":"2025-12-28T21:35:30.605065-08:00","closed_at":"2025-12-28T21:35:30.605065-08:00","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-7p5l","depends_on_id":"bd-m6r3","type":"blocks","created_at":"2025-12-28T21:31:17.309538-08:00","created_by":"daemon"}]} {"id":"bd-7pwh","title":"HOP-compatible schema additions","description":"Add optional fields to Beads schema to enable future HOP integration.\nAll fields are backwards-compatible (optional, omitted if empty).\n\n## Reference\nSee ~/gt/docs/hop/BEADS-SCHEMA-CHANGES.md for full specification.\n\n## P1 Changes (Must Have Before Launch)\n\n### 1. EntityRef type\nStructured entity reference that can become HOP URI:\n```go\ntype EntityRef struct {\n Name string // \"polecat/Nux\"\n Platform string // \"gastown\"\n Org string // \"steveyegge\" \n ID string // \"polecat-nux\"\n}\n```\n\n### 2. creator field\nEvery issue tracks who created it (EntityRef).\n\n### 3. assignee_ref field\nStructured form alongside existing string assignee.\n\n### 4. validations array\nTrack who validated work completion:\n```go\ntype Validation struct {\n Validator *EntityRef\n Outcome string // accepted, rejected, revision_requested\n Timestamp time.Time\n Score *float32 // Future\n}\n```\n\n## P2 Changes (Should Have)\n\n### 5. work_type field\n\"mutex\" (default) or \"open_competition\"\n\n### 6. crystallizes field\nBoolean - does this work compound (true) or evaporate (false)?\n\n### 7. cross_refs field\nArray of URIs to beads in other repos:\n- \"beads://github/anthropics/claude-code/bd-xyz\"\n\n## P3 Changes (Nice to Have)\n\n### 8. skill_vector placeholder\nReserved for future embeddings: []float32\n\n## Implementation Notes\n- All fields optional in JSONL serialization\n- Empty/null fields omit from output\n- No migration needed for existing data\n- CLI additions: --creator, --validated-by filters","notes":"Scope reduced after review. P1 only: EntityRef type, creator field, validations array. Deferred: assignee_ref, work_type, crystallizes, cross_refs, skill_vector (YAGNI - semantics unclear, can add later when needed).","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-22T02:42:39.267984-08:00","updated_at":"2025-12-22T20:09:09.211821-08:00","closed_at":"2025-12-22T20:09:09.211821-08:00"} {"id":"bd-7r4l","title":"GH#488: Support claude.local.md for local-only config","description":"Allow CLAUDE.local.md for testing bd without committing to repo or overriding shared CLAUDE.md. Not every repo wants committed AI config. See: https://github.com/steveyegge/beads/issues/488","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-14T16:32:19.944847-08:00","updated_at":"2025-12-16T01:17:26.116311-08:00","closed_at":"2025-12-14T17:29:34.624157-08:00"} -{"id":"bd-7s5v5","title":"Document bd reset --hard or implement if missing (GH#922)","description":"## GitHub Issue\nhttps://github.com/steveyegge/beads/issues/922\n\n## Problem\nUser reports `bd admin reset --hard` and `bd admin reset --skip-init` commands are missing/undocumented. When doing `bd reset` followed by `bd init`, old data keeps coming back.\n\n## Investigation Needed\n1. Check if `--hard` flag exists in current codebase\n2. If exists: document it properly\n3. If not: determine if it should be added or if there's an alternative workflow\n\n## Files to check\n- `cmd/bd/reset.go` or similar\n- `cmd/bd/admin.go`\n- Documentation files","status":"closed","priority":2,"issue_type":"bug","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:46:53.43966-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T02:47:44.59529-08:00","closed_at":"2026-01-12T02:47:44.59529-08:00","close_reason":"GH#922 resolved - documentation already added to CLI_REFERENCE.md and TROUBLESHOOTING.md. Closed the GitHub issue."} -{"id":"bd-7spec","title":"Review and test PR #1073: add Junie agent integration","description":"dispatched_by: beads/crew/emma","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/wolf","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:39:20.16778-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-13T11:44:04.245041-08:00","closed_at":"2026-01-13T11:44:04.245041-08:00","close_reason":"Reviewed and approved PR #1073 - all tests pass, documentation complete, code follows existing patterns"} -{"id":"bd-7t9a","title":"MCP plugin: _find_beads_db_in_tree() should follow .beads/redirect files","description":"## Problem\nThe `_find_beads_db_in_tree()` function in `integrations/beads-mcp/src/beads_mcp/tools.py` does not follow `.beads/redirect` files.\n\n## Impact\nMCP beads tools fail from polecat/crew directories that use redirect files to share a beads database.\n\n## Root Cause\nWhen auto-detecting workspace, the MCP plugin looks for `.beads/*.db` files directly but doesn't check for or follow `redirect` files:\n\n```python\nbeads_dir = os.path.join(current, '.beads')\nif os.path.isdir(beads_dir):\n db_files = glob.glob(os.path.join(beads_dir, '*.db')) # Only looks for .db files\n valid_dbs = [f for f in db_files if '.backup' not in os.path.basename(f)]\n if valid_dbs:\n return current\n```\n\nPolecat directories have `.beads/redirect` files (e.g., containing `../../mayor/rig/.beads`) but no `.db` files, so `_find_beads_db_in_tree()` doesn't find them.\n\n## Expected Behavior\nThe function should:\n1. Check for `.beads/redirect` file first\n2. If found, follow the redirect to the actual beads location\n3. Verify the redirected location has a valid database\n\n## Reference\nThe Go implementation handles this correctly in `ResolveBeadsDir()` - see gastown `internal/beads/beads.go:23-60`.\n\n## Related\n- gt-tnw: MCP beads tools fail from polecat directories","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-29T23:57:21.710278-08:00","created_by":"gastown/polecats/capable","updated_at":"2025-12-30T00:05:38.307967-08:00","closed_at":"2025-12-30T00:05:38.307967-08:00","close_reason":"Fixed: added _resolve_beads_redirect() to follow .beads/redirect files in MCP plugin auto-detection"} +{"id":"bd-7s5v5","title":"Document bd reset --hard or implement if missing (GH#922)","description":"## GitHub Issue\nhttps://github.com/steveyegge/beads/issues/922\n\n## Problem\nUser reports `bd admin reset --hard` and `bd admin reset --skip-init` commands are missing/undocumented. When doing `bd reset` followed by `bd init`, old data keeps coming back.\n\n## Investigation Needed\n1. Check if `--hard` flag exists in current codebase\n2. If exists: document it properly\n3. If not: determine if it should be added or if there's an alternative workflow\n\n## Files to check\n- `cmd/bd/reset.go` or similar\n- `cmd/bd/admin.go`\n- Documentation files","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-12T02:46:53.43966-08:00","updated_at":"2026-01-12T02:47:44.59529-08:00","closed_at":"2026-01-12T02:47:44.59529-08:00","close_reason":"GH#922 resolved - documentation already added to CLI_REFERENCE.md and TROUBLESHOOTING.md. Closed the GitHub issue.","created_by":"beads/crew/emma"} +{"id":"bd-7spec","title":"Review and test PR #1073: add Junie agent integration","description":"dispatched_by: beads/crew/emma","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-13T11:39:20.16778-08:00","updated_at":"2026-01-13T11:44:04.245041-08:00","closed_at":"2026-01-13T11:44:04.245041-08:00","close_reason":"Reviewed and approved PR #1073 - all tests pass, documentation complete, code follows existing patterns","created_by":"beads/crew/emma"} +{"id":"bd-7t9a","title":"MCP plugin: _find_beads_db_in_tree() should follow .beads/redirect files","description":"## Problem\nThe `_find_beads_db_in_tree()` function in `integrations/beads-mcp/src/beads_mcp/tools.py` does not follow `.beads/redirect` files.\n\n## Impact\nMCP beads tools fail from polecat/crew directories that use redirect files to share a beads database.\n\n## Root Cause\nWhen auto-detecting workspace, the MCP plugin looks for `.beads/*.db` files directly but doesn't check for or follow `redirect` files:\n\n```python\nbeads_dir = os.path.join(current, '.beads')\nif os.path.isdir(beads_dir):\n db_files = glob.glob(os.path.join(beads_dir, '*.db')) # Only looks for .db files\n valid_dbs = [f for f in db_files if '.backup' not in os.path.basename(f)]\n if valid_dbs:\n return current\n```\n\nPolecat directories have `.beads/redirect` files (e.g., containing `../../mayor/rig/.beads`) but no `.db` files, so `_find_beads_db_in_tree()` doesn't find them.\n\n## Expected Behavior\nThe function should:\n1. Check for `.beads/redirect` file first\n2. If found, follow the redirect to the actual beads location\n3. Verify the redirected location has a valid database\n\n## Reference\nThe Go implementation handles this correctly in `ResolveBeadsDir()` - see gastown `internal/beads/beads.go:23-60`.\n\n## Related\n- gt-tnw: MCP beads tools fail from polecat directories","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-29T23:57:21.710278-08:00","updated_at":"2025-12-30T00:05:38.307967-08:00","closed_at":"2025-12-30T00:05:38.307967-08:00","close_reason":"Fixed: added _resolve_beads_redirect() to follow .beads/redirect files in MCP plugin auto-detection","created_by":"gastown/polecats/capable"} {"id":"bd-7tuu","title":"Commit and push release","description":"git add -A \u0026\u0026 git commit \u0026\u0026 git push to trigger CI","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T22:56:02.053382-08:00","updated_at":"2025-12-20T01:23:52.484043-08:00","closed_at":"2025-12-20T01:23:52.484043-08:00","dependencies":[{"issue_id":"bd-7tuu","depends_on_id":"bd-6s61","type":"parent-child","created_at":"2025-12-19T22:56:15.021087-08:00","created_by":"daemon"},{"issue_id":"bd-7tuu","depends_on_id":"bd-hw3w","type":"blocks","created_at":"2025-12-19T22:56:23.291591-08:00","created_by":"daemon"}]} -{"id":"bd-7u877","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:32:13.066915-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-09T18:32:13.10513-08:00","closed_at":"2026-01-09T18:32:13.10513-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-7ujdi","title":"Refinery Patrol","description":"Merge queue processor patrol loop with verification gates.","status":"open","priority":2,"issue_type":"molecule","created_at":"2026-01-09T21:39:23.66476-08:00","created_by":"deacon","updated_at":"2026-01-09T21:39:23.66476-08:00"} +{"id":"bd-7u877","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:32:13.066915-08:00","updated_at":"2026-01-09T18:32:13.10513-08:00","closed_at":"2026-01-09T18:32:13.10513-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} +{"id":"bd-7ujdi","title":"Refinery Patrol","description":"Merge queue processor patrol loop with verification gates.","status":"open","priority":2,"issue_type":"molecule","created_at":"2026-01-09T21:39:23.66476-08:00","updated_at":"2026-01-09T21:39:23.66476-08:00","created_by":"deacon"} {"id":"bd-7v3","title":"Add commit and branch to bd version output","description":"The 'bd version' command reports commit and branch correctly when built with 'go build' (thanks to Go 1.25+ automatic VCS info embedding), but NOT when installed with 'go install' or 'make install'. Need to either: 1) Update Makefile to use 'go build' instead of 'go install', or 2) Add explicit ldflags to both Makefile and .goreleaser.yml to ensure commit/branch are always set regardless of build method.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-09T05:56:13.642971756-07:00","updated_at":"2025-12-09T06:01:56.787528774-07:00","closed_at":"2025-12-09T06:01:56.787528774-07:00"} -{"id":"bd-7war0","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:05:14.597493-08:00","created_by":"beads/witness","updated_at":"2026-01-10T21:05:14.672065-08:00","closed_at":"2026-01-10T21:05:14.672065-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-7wr2w","title":"Fix: bd sync fails on fresh clone v0.46.0 (GH#963)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #963. bd sync fails on freshly cloned repos in v0.46.0.","status":"closed","priority":1,"issue_type":"bug","assignee":"beads/crew/grip","created_at":"2026-01-09T22:19:56.735403-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T22:30:06.446063-08:00","closed_at":"2026-01-09T22:30:06.446063-08:00","close_reason":"Fixed: added custom types support to batch issue validation. Changes: 1) Added GetCustomTypes to storage interface and implementations 2) Added IssueType.IsValidWithCustom for custom type validation 3) Added Issue.ValidateWithCustom that checks both custom statuses and types 4) Updated CreateIssuesWithFullOptions to fetch and use custom types during validation"} -{"id":"bd-7wrh","title":"Merge: jasper-1767083473604","description":"branch: polecat/jasper-1767083473604\ntarget: main\nsource_issue: jasper-1767083473604\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T00:39:04.84733-08:00","created_by":"beads/polecats/jasper","updated_at":"2025-12-30T00:54:58.805495-08:00","closed_at":"2025-12-30T00:54:58.805495-08:00","close_reason":"Branch polecat/jasper-1767083473604 no longer exists on remote"} -{"id":"bd-7xa04","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T00:41:25.326836-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T00:41:25.394941-08:00","closed_at":"2026-01-13T00:41:25.394941-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-7xd7","title":"Update tests for type extraction changes","description":"Update all tests affected by Gas Town type extraction.\n\n## Test files to update\n- internal/types/types_test.go (type validation tests)\n- cmd/bd/agent_routing_test.go (agent type checks)\n- internal/storage/sqlite/sqlite_test.go (convoy tests)\n- internal/validation/bead_test.go (type validation)\n- internal/ui/styles_test.go (style rendering)\n\n## Work\n- Update test cases that use TypeAgent, TypeRole, TypeRig, TypeConvoy, TypeSlot\n- Add tests for custom type support via types.custom config\n- Add tests for label-based filtering","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:40:52.758221-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-06T22:17:53.972176-08:00","closed_at":"2026-01-06T22:17:53.972176-08:00","close_reason":"Tests already updated as part of type extraction work","dependencies":[{"issue_id":"bd-7xd7","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.770837-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-7xd7","depends_on_id":"bd-4jxh","type":"blocks","created_at":"2026-01-06T20:41:29.0029-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-7xd7","depends_on_id":"bd-cn56","type":"blocks","created_at":"2026-01-06T20:41:29.039305-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-7xd7","depends_on_id":"bd-16z7","type":"blocks","created_at":"2026-01-06T20:41:29.078573-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-7xd7","depends_on_id":"bd-mgt2","type":"blocks","created_at":"2026-01-06T20:41:29.113145-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-7xd7","depends_on_id":"bd-4kp2","type":"blocks","created_at":"2026-01-06T20:41:29.147522-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-7xd7","depends_on_id":"bd-fen8","type":"blocks","created_at":"2026-01-06T22:06:27.177221-08:00","created_by":"beads/crew/dave"}]} +{"id":"bd-7war0","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:05:14.597493-08:00","updated_at":"2026-01-10T21:05:14.672065-08:00","closed_at":"2026-01-10T21:05:14.672065-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} +{"id":"bd-7wr2w","title":"Fix: bd sync fails on fresh clone v0.46.0 (GH#963)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #963. bd sync fails on freshly cloned repos in v0.46.0.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-09T22:19:56.735403-08:00","updated_at":"2026-01-09T22:30:06.446063-08:00","closed_at":"2026-01-09T22:30:06.446063-08:00","close_reason":"Fixed: added custom types support to batch issue validation. Changes: 1) Added GetCustomTypes to storage interface and implementations 2) Added IssueType.IsValidWithCustom for custom type validation 3) Added Issue.ValidateWithCustom that checks both custom statuses and types 4) Updated CreateIssuesWithFullOptions to fetch and use custom types during validation","created_by":"beads/crew/dave"} +{"id":"bd-7wrh","title":"Merge: jasper-1767083473604","description":"branch: polecat/jasper-1767083473604\ntarget: main\nsource_issue: jasper-1767083473604\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T00:39:04.84733-08:00","updated_at":"2025-12-30T00:54:58.805495-08:00","closed_at":"2025-12-30T00:54:58.805495-08:00","close_reason":"Branch polecat/jasper-1767083473604 no longer exists on remote","created_by":"beads/polecats/jasper"} +{"id":"bd-7xa04","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T00:41:25.326836-08:00","updated_at":"2026-01-13T00:41:25.394941-08:00","closed_at":"2026-01-13T00:41:25.394941-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-7xd7","title":"Update tests for type extraction changes","description":"Update all tests affected by Gas Town type extraction.\n\n## Test files to update\n- internal/types/types_test.go (type validation tests)\n- cmd/bd/agent_routing_test.go (agent type checks)\n- internal/storage/sqlite/sqlite_test.go (convoy tests)\n- internal/validation/bead_test.go (type validation)\n- internal/ui/styles_test.go (style rendering)\n\n## Work\n- Update test cases that use TypeAgent, TypeRole, TypeRig, TypeConvoy, TypeSlot\n- Add tests for custom type support via types.custom config\n- Add tests for label-based filtering","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:40:52.758221-08:00","updated_at":"2026-01-06T22:17:53.972176-08:00","closed_at":"2026-01-06T22:17:53.972176-08:00","close_reason":"Tests already updated as part of type extraction work","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-7xd7","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.770837-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-7xd7","depends_on_id":"bd-4jxh","type":"blocks","created_at":"2026-01-06T20:41:29.0029-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-7xd7","depends_on_id":"bd-cn56","type":"blocks","created_at":"2026-01-06T20:41:29.039305-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-7xd7","depends_on_id":"bd-16z7","type":"blocks","created_at":"2026-01-06T20:41:29.078573-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-7xd7","depends_on_id":"bd-mgt2","type":"blocks","created_at":"2026-01-06T20:41:29.113145-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-7xd7","depends_on_id":"bd-4kp2","type":"blocks","created_at":"2026-01-06T20:41:29.147522-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-7xd7","depends_on_id":"bd-fen8","type":"blocks","created_at":"2026-01-06T22:06:27.177221-08:00","created_by":"beads/crew/dave"}]} {"id":"bd-7xrg","title":"Refinery Patrol","description":"Merge queue processor patrol loop with verification gates.","status":"closed","priority":2,"issue_type":"molecule","created_at":"2025-12-27T18:14:31.190713-08:00","updated_at":"2025-12-30T18:12:30.974709-08:00","closed_at":"2025-12-30T18:11:14.234636-08:00"} -{"id":"bd-7ybku","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:23:36.321186-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T22:23:36.358579-08:00","closed_at":"2026-01-09T22:23:36.358579-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-7ybku","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:23:36.321186-08:00","updated_at":"2026-01-09T22:23:36.358579-08:00","closed_at":"2026-01-09T22:23:36.358579-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} {"id":"bd-7yg","title":"Git merge driver uses invalid placeholders (%L, %R instead of %A, %B)","description":"## Problem\n\nThe beads git merge driver is configured with invalid Git placeholders:\n\n```\ngit config merge.beads.driver \"bd merge %A %O %L %R\"\n```\n\nGit doesn't recognize `%L` or `%R` as valid merge driver placeholders. The valid placeholders are:\n- `%O` = base (common ancestor)\n- `%A` = current version (ours)\n- `%B` = other version (theirs)\n\n## Impact\n\n- Affects ALL users when they have `.beads/beads.jsonl` merge conflicts\n- Automatic JSONL merge fails with error: \"error reading left file: failed to open file: open 7: no such file or directory\"\n- Users must manually resolve conflicts instead of getting automatic merge\n\n## Root Cause\n\nThe `bd init` command (or wherever the merge driver is configured) is using non-standard placeholders. When Git encounters `%L` and `%R`, it either passes them literally or interprets them incorrectly.\n\n## Fix\n\nUpdate the merge driver configuration to:\n```\ngit config merge.beads.driver \"bd merge %A %O %A %B\"\n```\n\nWhere:\n- 1st `%A` = output file (current file, will be overwritten)\n- `%O` = base (common ancestor)\n- 2nd `%A` = left/current version\n- `%B` = right/other version\n\n## Action Items\n\n1. Fix `bd init` (or equivalent setup command) to use correct placeholders\n2. Add migration/warning for existing users with misconfigured merge driver\n3. Update documentation with correct merge driver setup\n4. Consider adding validation when `bd init` is run","status":"tombstone","priority":1,"issue_type":"bug","created_at":"2025-11-21T19:51:55.747608-05:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-7z4","title":"Add tests for delete operations","description":"Core delete functionality including deleteViaDaemon, createTombstone, and deleteIssue functions have 0% coverage. These are critical for data integrity and need comprehensive test coverage.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-18T07:00:34.867680882-07:00","updated_at":"2025-12-23T23:48:50.087306-08:00","closed_at":"2025-12-23T23:48:50.087306-08:00","dependencies":[{"issue_id":"bd-7z4","depends_on_id":"bd-6ss","type":"discovered-from","created_at":"2025-12-18T07:00:34.870254935-07:00","created_by":"matt"}]} -{"id":"bd-7zka","title":"Implement formula features: Step.Condition and Step.Gate","description":"Multiple formula features in internal/formula/types.go are marked as \"Not yet implemented\":\n\nIMPLEMENTED (TODOs removed):\n- Step.Expand: Inline expansion - implemented in ApplyInlineExpansions (expand.go)\n- Step.ExpandVars: Variable overrides for expansion - implemented alongside Expand\n\nSTILL NOT IMPLEMENTED (TODOs remain):\n- Step.Condition: Make step optional based on variable (types.go:177-180)\n- Step.Gate: Async wait condition for step (types.go:185-187)\n- Gate struct: Schema defined but not processed in bd cook (types.go:209-210)\n\nFile: internal/formula/types.go","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-28T16:32:54.493002-08:00","created_by":"stevey","updated_at":"2026-01-04T15:22:08.705595-08:00","closed_at":"2026-01-01T16:24:44.939885-08:00","close_reason":"Both features implemented: Step.Condition and Step.Gate (Phase 1)"} -{"id":"bd-7zka.1","title":"Implement Step.Condition evaluation in bd cook","description":"## Summary\nImplement conditional step execution based on variable values.\n\n## Location\n- Schema: `internal/formula/types.go:177-180`\n- Implement in: `internal/formula/cook.go` (or new file `condition.go`)\n\n## Current Schema\n```go\n// Condition makes this step optional based on a variable.\n// Format: \"{{var}}\" (truthy) or \"{{var}} == value\".\n// TODO(bd-7zka): Not yet implemented in bd cook. Filed as future work.\nCondition string `json:\"condition,omitempty\"`\n```\n\n## Implementation\n\n### Parsing\nSupport two formats:\n1. `\"{{var}}\"` - truthy check (non-empty, non-\"false\", non-\"0\")\n2. `\"{{var}} == value\"` - equality check\n\n```go\nfunc evaluateCondition(condition string, vars map[string]string) (bool, error) {\n // Check for equality format\n if strings.Contains(condition, \"==\") {\n parts := strings.SplitN(condition, \"==\", 2)\n varExpr := strings.TrimSpace(parts[0])\n expected := strings.TrimSpace(parts[1])\n \n // Extract variable name from {{var}}\n varName := extractVarName(varExpr)\n actual := vars[varName]\n return actual == expected, nil\n }\n \n // Truthy check\n varName := extractVarName(condition)\n val := vars[varName]\n return val != \"\" \u0026\u0026 val != \"false\" \u0026\u0026 val != \"0\", nil\n}\n```\n\n### Integration with bd cook\nIn the step processing loop, check condition before creating issue:\n```go\nif step.Condition != \"\" {\n include, err := evaluateCondition(step.Condition, vars)\n if err != nil {\n return fmt.Errorf(\"invalid condition %q: %w\", step.Condition, err)\n }\n if !include {\n continue // Skip this step\n }\n}\n```\n\n## Example Usage\n```yaml\nsteps:\n - title: \"Run integration tests\"\n condition: \"{{run_integration}}\"\n \n - title: \"Deploy to staging\"\n condition: \"{{environment}} == staging\"\n```\n\n## Testing\n- Test truthy evaluation (empty, \"false\", \"0\", valid value)\n- Test equality check\n- Test invalid condition format\n- Test missing variable (should be falsy)\n\n## Acceptance Criteria\n- [x] Truthy conditions work\n- [x] Equality conditions work\n- [x] Steps are skipped when condition is false\n- [x] Clear error on malformed condition\n- [x] Works with variable substitution","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-30T19:31:57.979217-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-31T00:33:25.954831-08:00","closed_at":"2025-12-31T00:33:25.954831-08:00","close_reason":"Implemented Step.Condition evaluation in stepcondition.go with tests","dependencies":[{"issue_id":"bd-7zka.1","depends_on_id":"bd-7zka","type":"parent-child","created_at":"2025-12-30T19:31:57.97973-08:00","created_by":"beads/crew/emma"}]} -{"id":"bd-7zka.2","title":"Implement Gate evaluation in bd cook","description":"## Summary\nImplement async wait conditions (gates) for formula steps.\n\n## Design Decision: RESOLVED\n\n**Gates are issues.** A gate is a `bd-gate-*` prefixed issue that blocks the step it guards.\n\n### Gate Issue Structure\n```\nbd-gate-abc: Gate: gh:run test.yml\n type: gate\n gate_type: gh:run\n gate_target: test.yml\n gate_timeout: 1h\n gate_created: 2025-01-01T12:00:00Z\n blocks: bd-xyz # The step issue waiting on this gate\n```\n\n### Gate Types and Watchers\n\n| Gate Type | Signal Source | Watcher | Trigger |\n|-----------|---------------|---------|---------|\n| bead (cross-rig) | bd sync | Existing dep resolution | Sync |\n| gh:run | GitHub API | Refinery | Patrol poll |\n| gh:pr | GitHub API | Refinery | Patrol poll |\n| timer | Clock | Witness | Patrol cycle |\n| human | Human | None | bd close |\n| mail | Inbox | Deacon | Mail receipt (future) |\n\n### Visibility\n- bd list hides gate-type issues by default\n- bd gate list shows all open gates\n- bd mol show displays gates inline in molecule view\n\n### Timeouts\n- Gate timeout triggers escalation to Deacon/Overseer inbox\n- See: bd-0sgd (escalation inbox design)\n\n## Implementation Phases\n\n### Phase 1: Gate Issues + Human Gates\n- bd cook creates bd-gate-* issues for steps with gates\n- Gate issues block the next step via dependency\n- Human gates: just bd close bd-gate-xxx\n- bd list filters out type=gate by default\n- bd gate list command\n\n### Phase 2: Timer Gates\n- Witness patrol includes bd gate check --type=timer\n- Gate metadata: timeout, created_at\n- Expired gates escalate (not auto-close)\n\n### Phase 3: GitHub Gates\n- Refinery patrol includes bd gate check --type=gh\n- Uses gh CLI to check workflow/PR status\n- Resolved gates close\n\n### Phase 4: Cross-Rig Bead Gates\n- Leverage existing external dep resolution\n- bd cook creates gate with external dep on target bead\n- bd ready / bd sync resolves naturally\n\n### Phase 5: Mail Gates (future)\n- Deacon watches for mail responses\n- Complex - may YAGNI\n\n## Commands\n\n```bash\nbd gate list # Show open gates\nbd gate check # Evaluate all gates\nbd gate check --type=timer # Check only timer gates\nbd gate check --type=gh # Check only GitHub gates\nbd gate resolve \u003cid\u003e [--reason] # Force-close a gate\n```\n\n## Location\n- Schema: internal/formula/types.go\n- Gate issue creation: internal/formula/cook.go\n- Gate commands: cmd/bd/gate.go (new)\n- List filtering: cmd/bd/list.go\n\n## Acceptance Criteria\n- [ ] bd cook creates bd-gate-* issues for gated steps\n- [ ] Gate issues block subsequent steps\n- [ ] bd list hides gates by default\n- [ ] bd gate list shows all gates\n- [ ] bd gate check --type=timer works (Witness integration)\n- [ ] bd mol show displays gates in molecule view\n- [ ] Human gates closeable via bd close","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-30T19:32:19.664542-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-01T16:24:11.51872-08:00","closed_at":"2026-01-01T16:24:11.51872-08:00","close_reason":"Implemented Phase 1: Gate Issues + Human Gates","dependencies":[{"issue_id":"bd-7zka.2","depends_on_id":"bd-7zka","type":"parent-child","created_at":"2025-12-30T19:32:19.666332-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-7zka.2","depends_on_id":"bd-0sgd","type":"related","created_at":"2026-01-01T15:04:06.917484-08:00","created_by":"beads/crew/fang"}]} -{"id":"bd-7zpqp","title":"Feature P1","status":"open","priority":1,"issue_type":"feature","assignee":"bob","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:02.633139-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:02.633139-08:00"} +{"id":"bd-7zka","title":"Implement formula features: Step.Condition and Step.Gate","description":"Multiple formula features in internal/formula/types.go are marked as \"Not yet implemented\":\n\nIMPLEMENTED (TODOs removed):\n- Step.Expand: Inline expansion - implemented in ApplyInlineExpansions (expand.go)\n- Step.ExpandVars: Variable overrides for expansion - implemented alongside Expand\n\nSTILL NOT IMPLEMENTED (TODOs remain):\n- Step.Condition: Make step optional based on variable (types.go:177-180)\n- Step.Gate: Async wait condition for step (types.go:185-187)\n- Gate struct: Schema defined but not processed in bd cook (types.go:209-210)\n\nFile: internal/formula/types.go","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-28T16:32:54.493002-08:00","updated_at":"2026-01-04T15:22:08.705595-08:00","closed_at":"2026-01-01T16:24:44.939885-08:00","close_reason":"Both features implemented: Step.Condition and Step.Gate (Phase 1)","created_by":"stevey"} +{"id":"bd-7zka.1","title":"Implement Step.Condition evaluation in bd cook","description":"## Summary\nImplement conditional step execution based on variable values.\n\n## Location\n- Schema: `internal/formula/types.go:177-180`\n- Implement in: `internal/formula/cook.go` (or new file `condition.go`)\n\n## Current Schema\n```go\n// Condition makes this step optional based on a variable.\n// Format: \"{{var}}\" (truthy) or \"{{var}} == value\".\n// TODO(bd-7zka): Not yet implemented in bd cook. Filed as future work.\nCondition string `json:\"condition,omitempty\"`\n```\n\n## Implementation\n\n### Parsing\nSupport two formats:\n1. `\"{{var}}\"` - truthy check (non-empty, non-\"false\", non-\"0\")\n2. `\"{{var}} == value\"` - equality check\n\n```go\nfunc evaluateCondition(condition string, vars map[string]string) (bool, error) {\n // Check for equality format\n if strings.Contains(condition, \"==\") {\n parts := strings.SplitN(condition, \"==\", 2)\n varExpr := strings.TrimSpace(parts[0])\n expected := strings.TrimSpace(parts[1])\n \n // Extract variable name from {{var}}\n varName := extractVarName(varExpr)\n actual := vars[varName]\n return actual == expected, nil\n }\n \n // Truthy check\n varName := extractVarName(condition)\n val := vars[varName]\n return val != \"\" \u0026\u0026 val != \"false\" \u0026\u0026 val != \"0\", nil\n}\n```\n\n### Integration with bd cook\nIn the step processing loop, check condition before creating issue:\n```go\nif step.Condition != \"\" {\n include, err := evaluateCondition(step.Condition, vars)\n if err != nil {\n return fmt.Errorf(\"invalid condition %q: %w\", step.Condition, err)\n }\n if !include {\n continue // Skip this step\n }\n}\n```\n\n## Example Usage\n```yaml\nsteps:\n - title: \"Run integration tests\"\n condition: \"{{run_integration}}\"\n \n - title: \"Deploy to staging\"\n condition: \"{{environment}} == staging\"\n```\n\n## Testing\n- Test truthy evaluation (empty, \"false\", \"0\", valid value)\n- Test equality check\n- Test invalid condition format\n- Test missing variable (should be falsy)\n\n## Acceptance Criteria\n- [x] Truthy conditions work\n- [x] Equality conditions work\n- [x] Steps are skipped when condition is false\n- [x] Clear error on malformed condition\n- [x] Works with variable substitution","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-30T19:31:57.979217-08:00","updated_at":"2025-12-31T00:33:25.954831-08:00","closed_at":"2025-12-31T00:33:25.954831-08:00","close_reason":"Implemented Step.Condition evaluation in stepcondition.go with tests","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-7zka.1","depends_on_id":"bd-7zka","type":"parent-child","created_at":"2025-12-30T19:31:57.97973-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-7zka.2","title":"Implement Gate evaluation in bd cook","description":"## Summary\nImplement async wait conditions (gates) for formula steps.\n\n## Design Decision: RESOLVED\n\n**Gates are issues.** A gate is a `bd-gate-*` prefixed issue that blocks the step it guards.\n\n### Gate Issue Structure\n```\nbd-gate-abc: Gate: gh:run test.yml\n type: gate\n gate_type: gh:run\n gate_target: test.yml\n gate_timeout: 1h\n gate_created: 2025-01-01T12:00:00Z\n blocks: bd-xyz # The step issue waiting on this gate\n```\n\n### Gate Types and Watchers\n\n| Gate Type | Signal Source | Watcher | Trigger |\n|-----------|---------------|---------|---------|\n| bead (cross-rig) | bd sync | Existing dep resolution | Sync |\n| gh:run | GitHub API | Refinery | Patrol poll |\n| gh:pr | GitHub API | Refinery | Patrol poll |\n| timer | Clock | Witness | Patrol cycle |\n| human | Human | None | bd close |\n| mail | Inbox | Deacon | Mail receipt (future) |\n\n### Visibility\n- bd list hides gate-type issues by default\n- bd gate list shows all open gates\n- bd mol show displays gates inline in molecule view\n\n### Timeouts\n- Gate timeout triggers escalation to Deacon/Overseer inbox\n- See: bd-0sgd (escalation inbox design)\n\n## Implementation Phases\n\n### Phase 1: Gate Issues + Human Gates\n- bd cook creates bd-gate-* issues for steps with gates\n- Gate issues block the next step via dependency\n- Human gates: just bd close bd-gate-xxx\n- bd list filters out type=gate by default\n- bd gate list command\n\n### Phase 2: Timer Gates\n- Witness patrol includes bd gate check --type=timer\n- Gate metadata: timeout, created_at\n- Expired gates escalate (not auto-close)\n\n### Phase 3: GitHub Gates\n- Refinery patrol includes bd gate check --type=gh\n- Uses gh CLI to check workflow/PR status\n- Resolved gates close\n\n### Phase 4: Cross-Rig Bead Gates\n- Leverage existing external dep resolution\n- bd cook creates gate with external dep on target bead\n- bd ready / bd sync resolves naturally\n\n### Phase 5: Mail Gates (future)\n- Deacon watches for mail responses\n- Complex - may YAGNI\n\n## Commands\n\n```bash\nbd gate list # Show open gates\nbd gate check # Evaluate all gates\nbd gate check --type=timer # Check only timer gates\nbd gate check --type=gh # Check only GitHub gates\nbd gate resolve \u003cid\u003e [--reason] # Force-close a gate\n```\n\n## Location\n- Schema: internal/formula/types.go\n- Gate issue creation: internal/formula/cook.go\n- Gate commands: cmd/bd/gate.go (new)\n- List filtering: cmd/bd/list.go\n\n## Acceptance Criteria\n- [ ] bd cook creates bd-gate-* issues for gated steps\n- [ ] Gate issues block subsequent steps\n- [ ] bd list hides gates by default\n- [ ] bd gate list shows all gates\n- [ ] bd gate check --type=timer works (Witness integration)\n- [ ] bd mol show displays gates in molecule view\n- [ ] Human gates closeable via bd close","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-30T19:32:19.664542-08:00","updated_at":"2026-01-01T16:24:11.51872-08:00","closed_at":"2026-01-01T16:24:11.51872-08:00","close_reason":"Implemented Phase 1: Gate Issues + Human Gates","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-7zka.2","depends_on_id":"bd-7zka","type":"parent-child","created_at":"2025-12-30T19:32:19.666332-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-7zka.2","depends_on_id":"bd-0sgd","type":"related","created_at":"2026-01-01T15:04:06.917484-08:00","created_by":"beads/crew/fang"}]} +{"id":"bd-7zpqp","title":"Feature P1","status":"open","priority":1,"issue_type":"feature","created_at":"2026-01-11T18:16:02.633139-08:00","updated_at":"2026-01-11T18:16:02.633139-08:00","created_by":"beads/crew/wolf"} {"id":"bd-801b","title":"Merge: bd-bqcc","description":"branch: polecat/capable\ntarget: main\nsource_issue: bd-bqcc\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-23T00:26:04.306756-08:00","updated_at":"2025-12-23T01:33:25.728087-08:00","closed_at":"2025-12-23T01:33:25.728087-08:00"} {"id":"bd-8072","title":"Add import.orphan_handling config option","description":"Add configuration option to control orphan handling behavior: 'strict' (fail on missing parent, current behavior), 'resurrect' (auto-resurrect from JSONL, recommended default), 'skip' (skip orphaned issues with warning), 'allow' (import orphans without validation). Update CONFIG.md documentation.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-04T12:32:08.569239-08:00","updated_at":"2025-11-05T00:44:27.948157-08:00","closed_at":"2025-11-05T00:44:27.94816-08:00"} {"id":"bd-812a","title":"Add unit tests for import ordering","description":"Test topological sort: import [child, parent] should succeed, import [parent.1.2, parent, parent.1] should sort correctly. Verify depth-based batching works. Test max depth limits.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-04T12:32:21.278448-08:00","updated_at":"2025-11-05T00:08:42.812949-08:00","closed_at":"2025-11-05T00:08:42.812952-08:00"} @@ -653,187 +652,187 @@ {"id":"bd-824","title":"Add migration guide for library consumers","description":"The contributor-workflow-analysis.md has excellent migration examples for CLI users (lines 508-549) but lacks examples for library consumers like VC that use beadsLib in Go/TypeScript code.\n\nLibrary consumers need to know:\n- Whether their existing code continues to work unchanged (backward compatibility)\n- How config.toml is automatically read (transparent hydration)\n- When and how to use explicit multi-repo configuration\n- What happens if config.toml doesn't exist (defaults)\n\nExample needed:\n```go\n// Before (v0.17.3)\nstore, err := beadsLib.NewSQLiteStorage(\".beads/vc.db\")\n\n// After (v0.18.0 with multi-repo) - still works!\nstore, err := beadsLib.NewSQLiteStorage(\".beads/vc.db\")\n// Automatically reads .beads/config.toml if present\n\n// Explicit multi-repo (if needed)\ncfg := beadsLib.Config{\n Primary: \".beads/vc.db\",\n Additional: []string{\"~/.beads-planning\"},\n}\nstore, err := beadsLib.NewStorageWithConfig(cfg)\n```","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-03T20:24:17.748337-08:00","updated_at":"2025-11-05T14:15:44.154675-08:00","closed_at":"2025-11-05T14:15:44.154675-08:00"} {"id":"bd-82dv","title":"cmd/bd tests fail without -short flag (parallel test deadlock)","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-08T22:58:38.72748-08:00","updated_at":"2025-11-09T12:54:44.557562-08:00","closed_at":"2025-11-09T12:54:44.557562-08:00"} {"id":"bd-833559b3","title":"bd validate - Comprehensive health check","description":"Run all validation checks in one command.\n\nChecks:\n- Duplicates\n- Orphaned dependencies\n- Test pollution\n- Git conflicts\n\nSupports --fix-all for auto-repair.\n\nDepends on bd-cbed9619.1, bd-0dcea000, bd-2752a7a2, bd-9826b69a.\n\nFiles: cmd/bd/validate.go (new)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T20:02:47.957692-07:00","updated_at":"2025-12-14T12:12:46.507297-08:00","closed_at":"2025-11-05T00:16:42.294117-08:00"} -{"id":"bd-83f5","title":"Remove top-level comment alias","description":"Remove 'comment' as top-level command. Users should use 'comments add' instead. Reduces command surface area.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T12:59:12.33579-08:00","created_by":"stevey","updated_at":"2025-12-28T13:06:53.335122-08:00","closed_at":"2025-12-28T13:06:53.335122-08:00"} +{"id":"bd-83f5","title":"Remove top-level comment alias","description":"Remove 'comment' as top-level command. Users should use 'comments add' instead. Reduces command surface area.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T12:59:12.33579-08:00","updated_at":"2025-12-28T13:06:53.335122-08:00","closed_at":"2025-12-28T13:06:53.335122-08:00","created_by":"stevey"} {"id":"bd-83xx","title":"bd cleanup fails with CHECK constraint on status/closed_at mismatch","description":"## Problem\n\nRunning `bd cleanup --force` fails with:\n\n```\nError: failed to create tombstone for bd-okh: sqlite3: constraint failed: CHECK constraint failed: (status = 'closed') = (closed_at IS NOT NULL)\n```\n\n## Root Cause\n\nThe database has a CHECK constraint ensuring closed issues have `closed_at` set and non-closed issues don't. When `bd cleanup` tries to convert a closed issue to a tombstone, this constraint fails if:\n1. The issue has status='closed' but closed_at is NULL, OR\n2. The issue is being converted but the tombstone creation doesn't properly handle the closed_at field\n\n## Impact\n\n- `bd cleanup --force` cannot complete\n- 722 closed issues cannot be cleaned up\n- Blocks routine maintenance\n\n## Investigation Needed\n\n1. Check the bd-okh record in the database:\n ```sql\n SELECT id, status, closed_at, deleted_at FROM issues WHERE id = 'bd-okh';\n ```\n2. Determine if this is data corruption or a bug in tombstone creation\n\n## Proposed Solutions\n\n1. **If data corruption**: Add a `bd doctor --fix` check that repairs status/closed_at mismatches\n2. **If code bug**: Fix the tombstone creation to properly handle the constraint\n\n## Files to Investigate\n\n- `internal/storage/sqlite/sqlite.go` - DeleteIssue / tombstone creation\n- Schema CHECK constraint definition\n\n## Acceptance Criteria\n\n- [ ] Identify root cause (data vs code bug)\n- [ ] `bd cleanup --force` completes successfully\n- [ ] `bd doctor` detects status/closed_at mismatches","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-13T23:49:54.012806-08:00","updated_at":"2025-12-16T02:19:57.236953-08:00","closed_at":"2025-12-14T17:30:05.427749-08:00"} {"id":"bd-8507","title":"Publish bd-wasm to npm","description":"Package and publish WASM build to npm. Child of epic bd-44d0.\n\n## Tasks\n- [ ] Optimize WASM bundle (compression)\n- [ ] Create README for npm package\n- [ ] Set up npm publishing workflow\n- [ ] Publish v0.1.0-alpha\n- [ ] Test installation in clean environment\n- [ ] Update beads AGENTS.md with installation instructions\n\n## Package Name\nbd-wasm (or @beads/wasm-cli)","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-02T18:33:31.371535-08:00","updated_at":"2025-12-14T12:12:46.488027-08:00","closed_at":"2025-11-05T00:55:48.757494-08:00","dependencies":[{"issue_id":"bd-8507","depends_on_id":"bd-197b","type":"blocks","created_at":"2025-11-02T18:33:31.372224-08:00","created_by":"daemon"},{"issue_id":"bd-8507","depends_on_id":"bd-374e","type":"blocks","created_at":"2025-11-02T22:27:56.025207-08:00","created_by":"daemon"}]} {"id":"bd-8534","title":"Switch from modernc.org/sqlite to ncruces/go-sqlite3 for WASM support","description":"modernc.org/sqlite depends on modernc.org/libc which has no js/wasm support (platform-specific syscalls). Need to switch to ncruces/go-sqlite3 which wraps a WASM build of SQLite using wazero runtime.\n\nKey differences:\n- ncruces/go-sqlite3: Uses WASM build of SQLite + wazero runtime\n- modernc.org/sqlite: Pure Go translation, requires libc for syscalls\n\nThis is a prerequisite for bd-62a0 (WASM build infrastructure).","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-02T22:14:27.627154-08:00","updated_at":"2025-11-02T22:23:49.377223-08:00","closed_at":"2025-11-02T22:23:49.377223-08:00","dependencies":[{"issue_id":"bd-8534","depends_on_id":"bd-44d0","type":"parent-child","created_at":"2025-11-02T22:23:49.555691-08:00","created_by":"stevey"}]} {"id":"bd-85487065","title":"Add tests for internal/autoimport package","description":"Currently 0.0% coverage. Need tests for auto-import functionality that detects and imports updated JSONL files.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T14:06:18.154805-07:00","updated_at":"2025-12-14T12:12:46.566161-08:00","closed_at":"2025-11-08T18:06:25.811317-08:00"} {"id":"bd-85d1","title":"Add integration tests for multi-repo sync","description":"Test: Clone A deletes issue, Clone B imports Clone A's JSONL. Verify Clone B handles deletion gracefully with resurrection. Test concurrent imports with same orphans (should be idempotent). Test round-trip fidelity (export→delete parent→import→verify structure).","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-04T12:32:21.410318-08:00","updated_at":"2025-11-05T00:44:27.948465-08:00","closed_at":"2025-11-05T00:44:27.948467-08:00"} -{"id":"bd-85prz","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:00:20.407921-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T20:00:20.472665-08:00","closed_at":"2026-01-11T20:00:20.472665-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-85tns","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T18:22:23.16716-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T18:22:23.206176-08:00","closed_at":"2026-01-08T18:22:23.206176-08:00","close_reason":"auto-closed session event"} -{"id":"bd-85wo8","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:35:32.499868-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T00:35:32.54784-08:00","closed_at":"2026-01-12T00:35:32.54784-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-85yfx","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:53:21.000466-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-09T13:53:21.037256-08:00","closed_at":"2026-01-09T13:53:21.037256-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-86vci","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:42:09.119939-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T17:42:09.160293-08:00","closed_at":"2026-01-07T17:42:09.160293-08:00","close_reason":"auto-closed session event"} -{"id":"bd-873k","title":"Merge: jasper-mjxcarqd","description":"branch: polecat/jasper-mjxcarqd\ntarget: main\nsource_issue: jasper-mjxcarqd\nrig: beads\nagent_bead: bd-beads-polecat-jasper","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T12:49:27.658037-08:00","created_by":"beads/polecats/jasper","updated_at":"2026-01-02T13:41:56.626743-08:00","closed_at":"2026-01-02T13:41:56.626743-08:00","close_reason":"Branches merged, cleaning up stale MR beads"} +{"id":"bd-85prz","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T20:00:20.407921-08:00","updated_at":"2026-01-11T20:00:20.472665-08:00","closed_at":"2026-01-11T20:00:20.472665-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-85tns","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T18:22:23.16716-08:00","updated_at":"2026-01-08T18:22:23.206176-08:00","closed_at":"2026-01-08T18:22:23.206176-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-85wo8","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:35:32.499868-08:00","updated_at":"2026-01-12T00:35:32.54784-08:00","closed_at":"2026-01-12T00:35:32.54784-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-85yfx","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:53:21.000466-08:00","updated_at":"2026-01-09T13:53:21.037256-08:00","closed_at":"2026-01-09T13:53:21.037256-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/grip"} +{"id":"bd-86vci","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:42:09.119939-08:00","updated_at":"2026-01-07T17:42:09.160293-08:00","closed_at":"2026-01-07T17:42:09.160293-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-873k","title":"Merge: jasper-mjxcarqd","description":"branch: polecat/jasper-mjxcarqd\ntarget: main\nsource_issue: jasper-mjxcarqd\nrig: beads\nagent_bead: bd-beads-polecat-jasper","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T12:49:27.658037-08:00","updated_at":"2026-01-02T13:41:56.626743-08:00","closed_at":"2026-01-02T13:41:56.626743-08:00","close_reason":"Branches merged, cleaning up stale MR beads","created_by":"beads/polecats/jasper"} {"id":"bd-879d","title":"Test issue 1","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-02T09:44:12.538697729Z","updated_at":"2025-11-02T09:45:20.76214671Z","closed_at":"2025-11-02T09:45:20.76214671Z","dependencies":[{"issue_id":"bd-879d","depends_on_id":"bd-d3e5","type":"discovered-from","created_at":"2025-11-02T09:44:22.103468321Z","created_by":"mrdavidlaing"}]} {"id":"bd-87a0","title":"Publish @beads/bd package to npm registry","description":"Publish the npm package to the public npm registry:\n\n## Prerequisites\n- npm account created\n- Organization @beads created (or use different namespace)\n- npm login completed locally\n- Package tested locally (bd-f282 completed)\n\n## Publishing steps\n1. Verify package.json version matches current bd version\n2. Run npm pack and inspect tarball contents\n3. Test installation from tarball one more time\n4. Run npm publish --access public\n5. Verify package appears on https://www.npmjs.com/package/@beads/bd\n6. Test installation from registry: npm install -g @beads/bd\n\n## Post-publish\n- Add npm badge to README.md\n- Update CHANGELOG.md with npm package release\n- Announce in release notes\n\n## Note\n- May need to choose different name if @beads namespace unavailable\n- Alternative: beads-cli, bd-cli, or unscoped beads-issue-tracker","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-02T23:40:25.263569-08:00","updated_at":"2025-11-03T10:39:41.772338-08:00","closed_at":"2025-11-03T10:39:41.772338-08:00","dependencies":[{"issue_id":"bd-87a0","depends_on_id":"bd-febc","type":"parent-child","created_at":"2025-11-02T23:40:33.014043-08:00","created_by":"daemon"}]} {"id":"bd-8900f145","title":"Testing event-driven mode!","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T15:28:33.564871-07:00","updated_at":"2025-10-30T17:12:58.186325-07:00","closed_at":"2025-10-29T19:12:54.43368-07:00"} {"id":"bd-8931","title":"Daemon gets stuck when auto-import blocked by git conflicts","description":"CRITICAL: The daemon enters a corrupt state that breaks RPC commands when auto-import is triggered but git pull fails due to uncommitted changes.\n\nImpact: This is a data integrity and usability issue that could cause users to lose trust in Beads. The daemon silently fails for certain commands while appearing healthy.\n\nReproduction:\n1. Make local changes to issues (creates uncommitted .beads/beads.jsonl)\n2. Remote has updates (JSONL newer, triggers auto-import)\n3. Daemon tries to pull but fails: 'cannot pull with rebase: You have unstaged changes'\n4. Daemon enters bad state - 'bd show' and other commands return EOF\n5. 'bd list' still works, daemon process is running, no errors logged\n\nTechnical details:\n- Auto-import check runs in handleRequest() before processing RPC commands\n- When import is blocked, it appears to corrupt daemon state\n- Likely: deadlock, unclosed transaction, or storage handle corruption\n- Panic recovery (server_lifecycle_conn.go:183) didn't catch anything - not a panic\n\nRequired fix:\n- Auto-import must not block RPC command execution\n- Handle git pull failures gracefully without corrupting state\n- Consider: skip auto-import if git is dirty, queue import for later, or use separate goroutine\n- Add timeout/circuit breaker for import operations\n- Log clear warnings when auto-import is skipped\n\nWithout this fix, users in collaborative environments will frequently encounter mysterious EOF errors that require daemon restarts.","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-02T17:15:25.181425-08:00","updated_at":"2025-12-14T12:12:46.564936-08:00","closed_at":"2025-11-03T12:08:12.949064-08:00","dependencies":[{"issue_id":"bd-8931","depends_on_id":"bd-1048","type":"blocks","created_at":"2025-11-02T17:15:25.181857-08:00","created_by":"stevey"}]} -{"id":"bd-8972j","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T12:31:47.178724-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-10T12:31:47.21488-08:00","closed_at":"2026-01-10T12:31:47.21488-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-8972j","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T12:31:47.178724-08:00","updated_at":"2026-01-10T12:31:47.21488-08:00","closed_at":"2026-01-10T12:31:47.21488-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} {"id":"bd-897a","title":"Add UNIQUE constraint on external_ref column","description":"The external_ref column should have a UNIQUE constraint to prevent multiple issues from having the same external reference. This ensures data integrity when syncing from external systems (Jira, GitHub, Linear).\n\nCurrent behavior:\n- Multiple issues can have the same external_ref\n- GetIssueByExternalRef returns first match (non-deterministic with duplicates)\n\nProposed solution:\n- Add UNIQUE constraint to external_ref column\n- Add migration to check for and resolve existing duplicates\n- Update tests to verify constraint enforcement\n\nRelated: bd-1022","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-02T15:31:54.718005-08:00","updated_at":"2025-11-02T16:40:01.020314-08:00","closed_at":"2025-11-02T16:40:01.020314-08:00"} {"id":"bd-89e2","title":"Daemon race condition: stale export overwrites recent DB changes","description":"**Symptom:**\nMerged bd-fc2d into bd-fb05 in ~/src/beads (commit ce4d756), pushed to remote. The ~/src/fred/beads daemon then exported its stale DB state and committed (8cc1bb4), reverting bd-fc2d back to \"open\" status.\n\n**Timeline:**\n1. 21:45:12 - Merge committed from ~/src/beads (ce4d756): bd-fc2d closed\n2. 21:49:42 - Daemon in ~/src/fred/beads exported stale state (8cc1bb4): bd-fc2d open again\n\n**Root cause:**\nThe fred/beads daemon had a stale database (bd-fc2d still open) and didn't auto-import the newer JSONL before exporting. When it exported, it overwrote the merge with its stale state.\n\n**Expected behavior:**\nDaemon should detect that JSONL is newer than its last export and import before exporting.\n\n**Actual behavior:**\nDaemon exported stale DB state, creating a conflicting commit that reverted upstream changes.\n\n**Impact:**\nMulti-workspace setups with daemons can silently lose changes if one daemon has stale state and exports.","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-01T21:53:07.930819-07:00","updated_at":"2025-11-01T22:01:25.54126-07:00","closed_at":"2025-11-01T22:01:25.54126-07:00"} {"id":"bd-89f89fc0","title":"Remove unreachable RPC methods","description":"Several RPC server and client methods are unreachable and should be removed:\n\nServer methods (internal/rpc/server.go):\n- `Server.GetLastImportTime` (line 2116)\n- `Server.SetLastImportTime` (line 2123)\n- `Server.findJSONLPath` (line 2255)\n\nClient methods (internal/rpc/client.go):\n- `Client.Import` (line 311) - RPC import not used (daemon uses autoimport)\n\nEvidence:\n```bash\ngo run golang.org/x/tools/cmd/deadcode@latest -test ./...\n```\n\nImpact: Removes ~80 LOC of unused RPC code","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-10-28T16:20:02.432202-07:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-8a39","title":"Fix Windows-specific test failures in CI","description":"Several tests are failing on Windows but passing on Linux:\n\n**Failing tests:**\n- TestFindDatabasePathEnvVar\n- TestHashIDs_MultiCloneConverge\n- TestHashIDs_IdenticalContentDedup\n- TestDatabaseReinitialization (all 5 subtests):\n - fresh_clone_auto_import\n - database_removal_scenario\n - legacy_filename_support\n - precedence_test\n - init_safety_check\n- TestFindBeadsDir_NotFound\n- TestMetricsSnapshot/uptime (in internal/rpc)\n\n**CI Run:** https://github.com/steveyegge/beads/actions/runs/19015638968\n\nThese are likely path separator or filesystem behavior differences between Windows and Linux.","notes":"Fixed all Windows path issues:\n1. TestFindDatabasePathEnvVar - expects canonicalized paths ✅\n2. TestHashIDs tests - use platform-specific bd.exe command ✅ \n3. TestMetricsSnapshot/uptime - enforce minimum 1 second uptime ✅\n4. TestFindBeadsDir_NotFound - allow finding .beads in parent dirs ✅\n5. TestDatabaseReinitialization - fix git path conversion on Windows (git returns /c/Users/... but filepath needs C:\\Users\\...) ✅\n\nCI run in progress to verify all fixes.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-02T09:29:37.274103-08:00","updated_at":"2025-11-02T12:32:00.158713-08:00","closed_at":"2025-11-02T12:32:00.158716-08:00","dependencies":[{"issue_id":"bd-8a39","depends_on_id":"bd-1231","type":"blocks","created_at":"2025-11-02T09:29:37.276579-08:00","created_by":"stevey"}]} {"id":"bd-8a5","title":"Refactor: deduplicate FindJSONLInDir and FindJSONLPath","description":"## Background\n\nAfter fixing bd-tqo, we now have two nearly identical functions for finding the JSONL file:\n- `autoimport.FindJSONLInDir(dbDir string)` in internal/autoimport/autoimport.go\n- `beads.FindJSONLPath(dbPath string)` in internal/beads/beads.go\n\nBoth implement the same logic:\n1. Prefer issues.jsonl\n2. Fall back to beads.jsonl for legacy support\n3. Skip deletions.jsonl and merge artifacts\n4. Default to issues.jsonl if nothing found\n\n## Problem\n\nCode duplication means bug fixes need to be applied in multiple places (as we just experienced with bd-tqo).\n\n## Proposed Solution\n\nExtract shared logic to a utility package that both can import. Options:\n1. Create `internal/jsonlpath` package with the core logic\n2. Have `autoimport` import `beads` and call `FindJSONLPath` (but APIs differ slightly)\n3. Move to `internal/utils` if appropriate\n\nNeed to verify no import cycles would be created.\n\n## Affected Files\n- internal/autoimport/autoimport.go\n- internal/beads/beads.go","status":"closed","priority":4,"issue_type":"task","created_at":"2025-11-26T23:45:18.974339-08:00","updated_at":"2025-12-02T17:11:19.733265251-05:00","closed_at":"2025-11-28T23:07:08.912247-08:00"} -{"id":"bd-8a91","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:26:04.365526-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:26:04.398483-08:00","closed_at":"2026-01-07T00:26:04.398483-08:00","close_reason":"auto-closed session event"} +{"id":"bd-8a91","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:26:04.365526-08:00","updated_at":"2026-01-07T00:26:04.398483-08:00","closed_at":"2026-01-07T00:26:04.398483-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-8an","title":"bd import auto-detects wrong prefix from directory name instead of issue IDs","description":"When importing issues.jsonl into a fresh database, 'bd import' prints:\n\n ✓ Initialized database with prefix 'beads' (detected from issues)\n\nBut the issues all have prefix 'bd-' (e.g., bd-03r). It appears to be detecting the prefix from the directory name (.beads/) rather than from the actual issue IDs in the JSONL.\n\nThis causes import to fail with:\n validate ID prefix for bd-03r: issue ID 'bd-03r' does not match configured prefix 'beads'\n\nWorkaround: Run 'bd config set issue_prefix bd' before import, or use 'bd init --prefix bd'.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-26T22:28:01.582564-08:00","updated_at":"2025-12-02T17:11:19.734136748-05:00","closed_at":"2025-11-27T22:38:48.971617-08:00"} {"id":"bd-8ayj","title":"bd-hv01: Race condition with concurrent snapshot operations","description":"## Problem\nSnapshot files have no locking. Multiple processes can call captureLeftSnapshot simultaneously:\n\n1. Process A: export → begins snapshot\n2. Process B: export → begins snapshot\n3. Process A: writes partial left.jsonl\n4. Process B: overwrites with its left.jsonl\n5. Process A: completes merge with wrong snapshot\n\n## Impact\n- Data corruption in multi-process scenarios\n- Daemon + manual sync race\n- Multiple git clones on same filesystem\n\n## Fix\nUse atomic file operations with process-specific temp files:\n```go\nfunc captureLeftSnapshot(jsonlPath string) error {\n _, leftPath := getSnapshotPaths(jsonlPath)\n tempPath := fmt.Sprintf(\"%s.%d.tmp\", leftPath, os.Getpid())\n if err := copyFileSnapshot(jsonlPath, tempPath); err != nil {\n return err\n }\n return os.Rename(tempPath, leftPath) // Atomic on POSIX\n}\n```\n\n## Files Affected\n- cmd/bd/deletion_tracking.go:24-29 (captureLeftSnapshot)\n- cmd/bd/deletion_tracking.go:31-36 (updateBaseSnapshot)","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-06T18:15:38.177367-08:00","updated_at":"2025-11-06T18:46:55.91344-08:00","closed_at":"2025-11-06T18:46:55.91344-08:00","dependencies":[{"issue_id":"bd-8ayj","depends_on_id":"bd-rbxi","type":"parent-child","created_at":"2025-11-06T18:19:14.875543-08:00","created_by":"daemon"}]} {"id":"bd-8b0x","title":"Remove molecule.go (simple instantiation)","description":"molecule.go uses is_template field for simple single-issue cloning. This is too simple for what molecules should be - full DAG orchestration. The use case is covered by bd mol bond with a single-issue molecule. Delete molecule.go and its commands.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-20T23:52:15.041776-08:00","updated_at":"2025-12-21T00:04:32.335849-08:00","closed_at":"2025-12-21T00:04:32.335849-08:00","dependencies":[{"issue_id":"bd-8b0x","depends_on_id":"bd-ffjt","type":"blocks","created_at":"2025-12-20T23:52:25.807967-08:00","created_by":"daemon"}]} {"id":"bd-8b65","title":"Add depth-based batch creation in upsertIssues","description":"Replace single batch creation with depth-level batching (max depth 3). Create issues at depth 0, then 1, then 2, then 3. Prevents parent validation errors when importing hierarchical issues in same batch. File: internal/importer/importer.go:534-546","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-04T12:31:42.267746-08:00","updated_at":"2025-11-05T00:08:42.813239-08:00","closed_at":"2025-11-05T00:08:42.813246-08:00"} -{"id":"bd-8c02s","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T18:43:56.478174-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T18:43:56.543549-08:00","closed_at":"2026-01-12T18:43:56.543549-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-8c02s","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T18:43:56.478174-08:00","updated_at":"2026-01-12T18:43:56.543549-08:00","closed_at":"2026-01-12T18:43:56.543549-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-8ca7","title":"Merge: bd-au0.6","description":"branch: polecat/furiosa\ntarget: main\nsource_issue: bd-au0.6\nrig: beads","status":"closed","priority":1,"issue_type":"merge-request","created_at":"2025-12-23T20:42:30.870178-08:00","updated_at":"2025-12-23T21:21:57.695179-08:00","closed_at":"2025-12-23T21:21:57.695179-08:00"} -{"id":"bd-8cns","title":"gt sling --create fails to create polecat before resolving pane","description":"gt sling --create tries to resolve pane BEFORE creating the polecat, causing failure.\n\nExpected: gt sling gt-xyz gastown/newcat --create should:\n1. Create polecat if not exists\n2. Start session\n3. Hook work\n4. GUPP triggers autonomous execution\n\nActual: Fails with 'getting pane for gt-gastown-newcat: exit status 1'\n\nLocation: internal/cmd/sling.go - need to reorder operations","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-30T21:20:59.58382-08:00","created_by":"mayor","updated_at":"2026-01-04T15:22:07.76718-08:00","closed_at":"2025-12-30T22:19:27.682372-08:00","close_reason":"Fixed in PR #4: https://github.com/steveyegge/gastown/pull/4"} +{"id":"bd-8cns","title":"gt sling --create fails to create polecat before resolving pane","description":"gt sling --create tries to resolve pane BEFORE creating the polecat, causing failure.\n\nExpected: gt sling gt-xyz gastown/newcat --create should:\n1. Create polecat if not exists\n2. Start session\n3. Hook work\n4. GUPP triggers autonomous execution\n\nActual: Fails with 'getting pane for gt-gastown-newcat: exit status 1'\n\nLocation: internal/cmd/sling.go - need to reorder operations","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-30T21:20:59.58382-08:00","updated_at":"2026-01-04T15:22:07.76718-08:00","closed_at":"2025-12-30T22:19:27.682372-08:00","close_reason":"Fixed in PR #4: https://github.com/steveyegge/gastown/pull/4","created_by":"mayor"} {"id":"bd-8e0q","title":"Merge: beads-ocs","description":"branch: polecat/valkyrie\ntarget: main\nsource_issue: beads-ocs\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-19T23:24:45.281478-08:00","updated_at":"2025-12-20T23:17:26.995706-08:00","closed_at":"2025-12-20T23:17:26.995706-08:00"} -{"id":"bd-8f22r","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:32:12.327197-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T02:32:12.393976-08:00","closed_at":"2026-01-12T02:32:12.393976-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-8f22r","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T02:32:12.327197-08:00","updated_at":"2026-01-12T02:32:12.393976-08:00","closed_at":"2026-01-12T02:32:12.393976-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-8f8b","title":"Test update","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-05T12:59:13.608216-08:00","updated_at":"2025-11-05T12:59:20.120052-08:00","closed_at":"2025-11-05T12:59:20.120052-08:00"} {"id":"bd-8fgn","title":"test hash length","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-16T13:49:32.113843-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-8fqd","title":"Test role bead","status":"closed","priority":2,"issue_type":"role","created_at":"2025-12-27T23:37:10.275712-08:00","created_by":"mayor","updated_at":"2025-12-27T23:37:15.585821-08:00","closed_at":"2025-12-27T23:37:15.585821-08:00"} +{"id":"bd-8fqd","title":"Test role bead","status":"closed","priority":2,"issue_type":"role","created_at":"2025-12-27T23:37:10.275712-08:00","updated_at":"2025-12-27T23:37:15.585821-08:00","closed_at":"2025-12-27T23:37:15.585821-08:00","created_by":"mayor"} {"id":"bd-8g8","title":"Fix G304 potential file inclusion in cmd/bd/tips.go:259","description":"Linting issue: G304: Potential file inclusion via variable (gosec) at cmd/bd/tips.go:259:18. Error: if data, err := os.ReadFile(settingsPath); err == nil {","status":"tombstone","priority":0,"issue_type":"bug","created_at":"2025-12-07T15:34:57.189730843-07:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} -{"id":"bd-8hea","title":"Add GUPP to non-polecat roles (Mayor, Deacon, Witness, Refinery)","description":"GUPP (propulsion nudge after beacon) is only implemented for polecats in session/manager.go.\n\nOther roles have different startup flows but could benefit from similar auto-propulsion:\n- Mayor: mayor/manager.go or wherever mayor session starts\n- Deacon: deacon startup flow\n- Witness: witness startup flow \n- Refinery: refinery startup flow\n\nEach role may need role-specific propulsion message.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-30T21:21:01.3267-08:00","created_by":"mayor","updated_at":"2025-12-31T12:26:34.826518-08:00","closed_at":"2025-12-31T12:26:34.826518-08:00","close_reason":"Misfiled - belongs in gastown (gt-)"} +{"id":"bd-8hea","title":"Add GUPP to non-polecat roles (Mayor, Deacon, Witness, Refinery)","description":"GUPP (propulsion nudge after beacon) is only implemented for polecats in session/manager.go.\n\nOther roles have different startup flows but could benefit from similar auto-propulsion:\n- Mayor: mayor/manager.go or wherever mayor session starts\n- Deacon: deacon startup flow\n- Witness: witness startup flow \n- Refinery: refinery startup flow\n\nEach role may need role-specific propulsion message.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-30T21:21:01.3267-08:00","updated_at":"2025-12-31T12:26:34.826518-08:00","closed_at":"2025-12-31T12:26:34.826518-08:00","close_reason":"Misfiled - belongs in gastown (gt-)","created_by":"mayor"} {"id":"bd-8hf","title":"Auto-routing and maintainer detection","description":"Implement intelligent routing to automatically send new issues to correct repo based on user's maintainer vs contributor status, with discovered issues inheriting parent's source_repo.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-04T11:21:50.961196-08:00","updated_at":"2025-11-05T00:08:42.813482-08:00","closed_at":"2025-11-05T00:08:42.813484-08:00","dependencies":[{"issue_id":"bd-8hf","depends_on_id":"bd-4ms","type":"parent-child","created_at":"2025-11-04T11:22:24.262815-08:00","created_by":"daemon"}]} {"id":"bd-8hy","title":"Kill running daemons","description":"Stop all bd daemons before release:\n\n```bash\npkill -f 'bd.*daemon' || true\nsleep 1\npgrep -lf 'bd.*daemon' # Should show nothing\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-18T22:42:58.255478-08:00","updated_at":"2025-12-24T16:25:30.371693-08:00","dependencies":[{"issue_id":"bd-8hy","depends_on_id":"bd-qqc","type":"parent-child","created_at":"2025-12-18T22:43:16.23168-08:00","created_by":"daemon"}],"deleted_at":"2025-12-24T16:25:30.371693-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} {"id":"bd-8ift","title":"Debug test","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-08T00:04:35.254385-08:00","updated_at":"2025-11-08T00:06:46.179396-08:00","closed_at":"2025-11-08T00:06:46.179396-08:00"} -{"id":"bd-8ihx3","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:31:42.061991-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T00:31:42.126002-08:00","closed_at":"2026-01-12T00:31:42.126002-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-8ihx3","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:31:42.061991-08:00","updated_at":"2026-01-12T00:31:42.126002-08:00","closed_at":"2026-01-12T00:31:42.126002-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-8kde","title":"bd delete bulk operations fight with auto-import/daemon causing data resurrection","description":"When bulk deleting issues (e.g., 244 closed issues older than 24h), the process fights with auto-import and daemon infrastructure:\n\n**Expected behavior:**\n- Delete 244 issues from 468-issue database\n- Export to JSONL (224 lines)\n- Commit and push\n- Result: 224 issues\n\n**Actual behavior:**\n- Delete 244 issues \n- Import runs (from stale git JSONL with 468 issues)\n- Resurrects deleted issues back into database\n- Export writes 356 lines (not 224)\n- Math: 468 - 244 = 224, but got 356 (132 issues resurrected)\n\n**Root cause:**\nAuto-import keeps re-importing from git during the delete operation, before the new JSONL is committed. The workflow is:\n1. Delete from DB\n2. Auto-import runs (reads old JSONL from git with deleted issues still present)\n3. Issues come back\n4. Export writes partially-deleted state\n\n**Solution options:**\n1. Add `--no-auto-import` flag to bulk delete operations\n2. Atomic delete-export-commit operation that suppresses imports\n3. Dedicated `bd prune` command that handles this correctly\n4. Lock file to prevent auto-import during bulk mutations\n\n**Impact:**\n- Bulk cleanup operations don't work reliably\n- Makes it nearly impossible to prune old closed issues\n- Confusing UX (delete 244, but only 112 actually removed)","notes":"**FIXED**: Auto-import now skips during delete operations to prevent resurrection.\n\n**Root cause confirmed**: Auto-import was running in PersistentPreRun before delete executed, causing it to re-import stale JSONL from git and resurrect deleted issues.\n\n**Solution implemented**:\n1. Added delete to skip list in main.go PersistentPreRun (alongside import and sync --dry-run)\n2. Delete operations now complete atomically without auto-import interference\n3. Added comprehensive test (TestBulkDeleteNoResurrection) to prevent regression\n\n**Test verification**:\n- Creates 20 issues, deletes 10\n- Verifies no resurrection after delete\n- Confirms JSONL has correct count (10 remaining)\n- All existing tests still pass","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-08T03:01:09.796852-08:00","updated_at":"2025-11-08T03:06:04.416994-08:00","closed_at":"2025-11-08T03:06:04.416994-08:00"} {"id":"bd-8mfn","title":"bd message: Implement full message reading functionality","description":"The `bd message read` command is incomplete and doesn't actually fetch or display message content.\n\n**Location:** cmd/bd/message.go:413-441\n\n**Current Behavior:**\n- Only marks message as read\n- Prints placeholder text\n- Doesn't fetch message body\n\n**Expected:**\n- Fetch full message from Agent Mail resource API\n- Display sender, subject, timestamp, body\n- Consider markdown rendering\n\n**Blocker:** Core feature for message system MVP","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-08T12:54:24.018957-08:00","updated_at":"2025-11-08T12:57:32.91854-08:00","closed_at":"2025-11-08T12:57:32.91854-08:00","dependencies":[{"issue_id":"bd-8mfn","depends_on_id":"bd-6uix","type":"parent-child","created_at":"2025-11-08T12:55:54.811368-08:00","created_by":"daemon"}]} -{"id":"bd-8muou","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:20:27.585922-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T16:20:27.625532-08:00","closed_at":"2026-01-10T16:20:27.625532-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-8nhm","title":"Verify docs/property-layers.md exists after merge","description":"During property layers implementation, docs/property-layers.md was deleted in multiple polecat branches. Verify this file exists after all merges complete. If missing, restore from backup or recreate based on ~/gt/docs/hop/PROPERTY-LAYERS.md.","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-06T20:10:42.679659-08:00","created_by":"mayor","updated_at":"2026-01-06T20:14:25.936813-08:00","closed_at":"2026-01-06T20:14:25.936813-08:00","close_reason":"Refiling as gt- issue"} -{"id":"bd-8och0","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:45:27.251991-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T00:45:27.289355-08:00","closed_at":"2026-01-09T00:45:27.289355-08:00","close_reason":"auto-closed session event"} -{"id":"bd-8oqpg","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:44:24.827026-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T20:44:24.864433-08:00","closed_at":"2026-01-08T20:44:24.864433-08:00","close_reason":"auto-closed session event"} -{"id":"bd-8p422","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T15:04:21.478203-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T15:04:21.557401-08:00","closed_at":"2026-01-13T15:04:21.557401-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-8pd8h","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T23:04:41.030912-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-08T23:04:41.065974-08:00","closed_at":"2026-01-08T23:04:41.065974-08:00","close_reason":"auto-closed session event"} +{"id":"bd-8muou","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:20:27.585922-08:00","updated_at":"2026-01-10T16:20:27.625532-08:00","closed_at":"2026-01-10T16:20:27.625532-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-8nhm","title":"Verify docs/property-layers.md exists after merge","description":"During property layers implementation, docs/property-layers.md was deleted in multiple polecat branches. Verify this file exists after all merges complete. If missing, restore from backup or recreate based on ~/gt/docs/hop/PROPERTY-LAYERS.md.","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-06T20:10:42.679659-08:00","updated_at":"2026-01-06T20:14:25.936813-08:00","closed_at":"2026-01-06T20:14:25.936813-08:00","close_reason":"Refiling as gt- issue","created_by":"mayor"} +{"id":"bd-8och0","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:45:27.251991-08:00","updated_at":"2026-01-09T00:45:27.289355-08:00","closed_at":"2026-01-09T00:45:27.289355-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-8oqpg","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:44:24.827026-08:00","updated_at":"2026-01-08T20:44:24.864433-08:00","closed_at":"2026-01-08T20:44:24.864433-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-8p422","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T15:04:21.478203-08:00","updated_at":"2026-01-13T15:04:21.557401-08:00","closed_at":"2026-01-13T15:04:21.557401-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-8pd8h","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T23:04:41.030912-08:00","updated_at":"2026-01-08T23:04:41.065974-08:00","closed_at":"2026-01-08T23:04:41.065974-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/dave"} {"id":"bd-8ph6","title":"Support Ubuntu 20.04 LTS (glibc compatibility issue)","description":"Starting at v0.22, precompiled binaries require GLIBC 2.32+ which is not available on Ubuntu 20.04 LTS (Focal Fossa). Ubuntu 20.04 has GLIBC 2.31.\n\nError:\n```\nbd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by bd)\nbd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by bd)\n```\n\nCurrent workarounds:\n1. Upgrade to Ubuntu 22.04+\n2. Build from source: `go build -o bd ./cmd/bd/`\n\nRoot cause: Go 1.24+ runtime requires newer glibc. CGO is already disabled in .goreleaser.yml.\n\nPossible solutions:\n- Pin Go version to 1.21 or 1.22 for releases\n- Use Docker/cross-compile with older build environment\n- Provide separate build for older distros\n- Document minimum requirements clearly","notes":"Decision: Document minimum requirements in README instead of pinning Go version.\n\nRationale:\n- Ubuntu 20.04 LTS standard support ended April 2025 (already EOL)\n- Pinning Go prevents security fixes, performance improvements, and new features\n- Users on EOL distros can upgrade OS or build from source\n- Added Requirements section to README with clear glibc 2.32+ requirement","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-07T14:25:47.055357-08:00","updated_at":"2025-11-07T14:30:15.755733-08:00","closed_at":"2025-11-07T14:30:15.755733-08:00"} -{"id":"bd-8po3j","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:21:16.103784-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T01:21:16.165641-08:00","closed_at":"2026-01-12T01:21:16.165641-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-8po3j","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T01:21:16.103784-08:00","updated_at":"2026-01-12T01:21:16.165641-08:00","closed_at":"2026-01-12T01:21:16.165641-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-8pyn","title":"Version Bump: 0.30.7","description":"Release checklist for version 0.30.7. This molecule ensures all release steps are completed properly.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-19T22:56:48.648694-08:00","updated_at":"2025-12-20T00:49:51.927518-08:00","closed_at":"2025-12-20T00:25:59.529183-08:00"} {"id":"bd-8ql","title":"Remove misleading placeholder 'bd merge' command from duplicates output","description":"**Problem:**\nThe `bd duplicates` command suggests running a command that doesn't exist:\n```\nbd merge \u003csource-ids\u003e --into \u003ctarget-id\u003e\n```\n\nThis is confusing because:\n1. `bd merge` is actually a git 3-way JSONL merge driver (takes 4 file paths)\n2. The suggested syntax for merging duplicate issues is not implemented\n3. Line 75 in duplicates.go even has: `// TODO: performMerge implementation pending`\n\n**Current behavior:**\n- Users see suggested command that doesn't work\n- No indication that feature is unimplemented\n- Related to issue #349 item #2\n\n**Proposed fix:**\nReplace line 77 in cmd/bd/duplicates.go with either:\n\nOption A (conservative):\n```go\ncmd := fmt.Sprintf(\"# TODO: Merge %s into %s (merge command not yet implemented)\", \n strings.Join(sources, \" \"), target.ID)\n```\n\nOption B (actionable):\n```go\ncmd := fmt.Sprintf(\"# Duplicate found: %s\\n# Manual merge: Close duplicates with 'bd close %s' and link to %s as 'related'\", \n strings.Join(sources, \" \"), strings.Join(sources, \" \"), target.ID)\n```\n\n**Files to modify:**\n- cmd/bd/duplicates.go (line ~77)","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-20T20:48:01.707967-05:00","updated_at":"2025-11-20T20:59:13.416865-05:00","closed_at":"2025-11-20T20:59:13.416865-05:00"} -{"id":"bd-8r68a","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T14:37:35.928836-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T14:37:36.010791-08:00","closed_at":"2026-01-13T14:37:36.010791-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-8r9k9","title":"Test issue 0","status":"open","priority":0,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:10.663136-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:10.663136-08:00"} +{"id":"bd-8r68a","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T14:37:35.928836-08:00","updated_at":"2026-01-13T14:37:36.010791-08:00","closed_at":"2026-01-13T14:37:36.010791-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-8r9k9","title":"Test issue 0","status":"open","priority":0,"issue_type":"task","created_at":"2026-01-11T18:16:10.663136-08:00","updated_at":"2026-01-11T18:16:10.663136-08:00","created_by":"beads/crew/wolf"} {"id":"bd-8rd","title":"Migration and onboarding for multi-repo","description":"Create migration tools, wizards, and documentation to help users adopt multi-repo workflow, with special focus on OSS contributor onboarding and team adoption scenarios.","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-11-04T11:22:13.491033-08:00","updated_at":"2025-11-07T16:08:24.951261-08:00","closed_at":"2025-11-07T16:03:09.75064-08:00","dependencies":[{"issue_id":"bd-8rd","depends_on_id":"bd-4ms","type":"parent-child","created_at":"2025-11-04T11:22:21.858002-08:00","created_by":"daemon"}]} -{"id":"bd-8rssb","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T21:33:52.477938-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-09T21:15:40.694317-08:00","closed_at":"2026-01-09T21:15:40.694317-08:00","close_reason":"Stale session ended events"} -{"id":"bd-8uwdi","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T19:29:09.223322-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-10T19:29:09.26506-08:00","closed_at":"2026-01-10T19:29:09.26506-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-8rssb","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T21:33:52.477938-08:00","updated_at":"2026-01-09T21:15:40.694317-08:00","closed_at":"2026-01-09T21:15:40.694317-08:00","close_reason":"Stale session ended events","created_by":"beads/crew/fang"} +{"id":"bd-8uwdi","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T19:29:09.223322-08:00","updated_at":"2026-01-10T19:29:09.26506-08:00","closed_at":"2026-01-10T19:29:09.26506-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} {"id":"bd-8v2","title":"Add {{version}} to versionChanges in info.go","description":"Add new entry at TOP of versionChanges in cmd/bd/info.go with release notes from CHANGELOG.md. Must do before bump-version.sh --commit.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-18T22:43:00.482846-08:00","updated_at":"2025-12-24T16:25:30.231077-08:00","dependencies":[{"issue_id":"bd-8v2","depends_on_id":"bd-qqc","type":"parent-child","created_at":"2025-12-18T22:43:16.496649-08:00","created_by":"daemon"},{"issue_id":"bd-8v2","depends_on_id":"bd-kyo","type":"blocks","created_at":"2025-12-18T22:43:20.69619-08:00","created_by":"daemon"}],"deleted_at":"2025-12-24T16:25:30.231077-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} {"id":"bd-8v5o","title":"bd doctor --fix hydrates issues that remain in deletions manifest, causing perpetual skip warnings","description":"When bd doctor --fix hydrates issues from git history, it doesn't remove them from the deletions manifest. This causes a conflict where:\n1. Issue exists in database as 'open'\n2. Issue also exists in deletions manifest\n3. Every sync reports 'Skipping bd-xxx (in deletions manifest)'\n4. Issue is 'Protected from incorrect sanitization'\n\n**Reproduction:**\n1. Run bd doctor --fix (which hydrates issues from git history)\n2. Run bd sync\n3. Observe conflicting messages about protected issues being skipped\n\n**Affected issues in this session:**\nbd-eyto, bd-6rl, bd-y2v, bd-abjw, bd-a0cp, bd-mql4, bd-nl2\n\n**Expected behavior:**\nWhen hydrating an issue, also remove it from the deletions manifest to prevent conflict.\n\n**Workaround:** Manually remove conflicting IDs from deletions.jsonl","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-15T17:28:40.060713-08:00","updated_at":"2025-12-16T00:41:33.165408-08:00","closed_at":"2025-12-16T00:41:33.165408-08:00"} -{"id":"bd-8v9zz","title":"Session ended: gt-beads-beads/refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:36:19.20157-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T19:36:19.264391-08:00","closed_at":"2026-01-12T19:36:19.264391-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-8v9zz","title":"Session ended: gt-beads-beads/refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:36:19.20157-08:00","updated_at":"2026-01-12T19:36:19.264391-08:00","closed_at":"2026-01-12T19:36:19.264391-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-8wa","title":"Code Review Sweep: thorough","description":"Perform thorough code review sweep based on accumulated activity.\n\n**AI Reasoning:**\nSignificant code volume added (150,273 lines) across multiple critical areas, including cmd/bd, internal/storage/sqlite, and internal/rpc. High file change count (616) indicates substantial refactoring or new functionality. The metrics suggest potential for subtle architectural or implementation issues that warrant review.\n\n**Scope:** thorough\n**Target Areas:** cmd/bd, internal/storage/sqlite, internal/rpc\n**Estimated Files:** 12\n**Estimated Cost:** $5\n\n**Task:**\nReview files for non-obvious issues that agents miss during focused work:\n- Inefficiencies (algorithmic, resource usage)\n- Subtle bugs (race conditions, off-by-one, copy-paste)\n- Poor patterns (coupling, complexity, duplication)\n- Missing best practices (error handling, docs, tests)\n- Unnamed anti-patterns\n\nFile discovered issues with detailed reasoning and suggestions.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-21T10:25:37.081296-05:00","updated_at":"2025-12-14T00:32:11.046909-08:00","closed_at":"2025-12-13T23:33:16.521045-08:00"} {"id":"bd-8wgo","title":"bd merge omits priority:0 due to omitempty JSON tag","description":"GitHub issue #671. The merge code in internal/merge/merge.go uses 'omitempty' on the Priority field, which causes priority:0 (P0/critical) to be dropped from JSON output since 0 is Go's zero value for int. Fix: either remove omitempty from Priority field or use a pointer (*int). This affects the git merge driver and causes P0 issues to lose their priority.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-21T14:35:15.083146-08:00","updated_at":"2025-12-21T15:41:14.522554-08:00","closed_at":"2025-12-21T15:41:14.522554-08:00"} -{"id":"bd-8wutd","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:48:50.736526-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:48:50.804731-08:00","closed_at":"2026-01-11T21:48:50.804731-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-8wutd","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:48:50.736526-08:00","updated_at":"2026-01-11T21:48:50.804731-08:00","closed_at":"2026-01-11T21:48:50.804731-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-8x3w","title":"Add composite index (issue_id, type) on dependencies table","description":"GetBlockedIssues uses EXISTS clauses that filter by issue_id AND type together.\n\n**Query pattern (ready.go:427-429):**\n```sql\nEXISTS (\n SELECT 1 FROM dependencies d2\n WHERE d2.issue_id = i.id AND d2.type = 'blocks'\n)\n```\n\n**Problem:** Only idx_dependencies_issue exists. SQLite must filter type after index lookup.\n\n**Solution:** Add migration:\n```sql\nCREATE INDEX IF NOT EXISTS idx_dependencies_issue_type ON dependencies(issue_id, type);\n```\n\n**Note:** This complements the existing idx_dependencies_depends_on_type for the reverse direction.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-22T22:58:52.876846-08:00","updated_at":"2025-12-22T23:15:13.840789-08:00","closed_at":"2025-12-22T23:15:13.840789-08:00","dependencies":[{"issue_id":"bd-8x3w","depends_on_id":"bd-h0we","type":"discovered-from","created_at":"2025-12-22T22:58:52.877536-08:00","created_by":"daemon"}]} -{"id":"bd-8x43","title":"Add 'bd where' command to show active beads location","description":"## Problem\n\nWhen using redirects, it's unclear which beads database is actually being used. This caused debugging confusion during the v0.39.0 release.\n\n## Proposed Solution\n\nAdd `bd where` command:\n\n```bash\nbd where\n# → /Users/stevey/gt/beads/mayor/rig/.beads (via redirect from crew/dave/.beads)\n\nbd where --json\n# → {\"path\": \"...\", \"redirected_from\": \"...\", \"prefix\": \"bd\"}\n```\n\n## Alternatives Considered\n\n- `bd info --beads-path` - but `bd where` is more discoverable\n- Just fix the UX so it's never confusing - defense in depth is better\n\n## Desire Paths\n\nThis supports the 'desire paths' design principle: make the system's behavior visible so agents can debug and understand it.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-27T21:15:52.666948-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-27T21:27:50.301295-08:00","closed_at":"2025-12-27T21:27:50.301295-08:00"} -{"id":"bd-8xnf","title":"Add bd mol progress command","description":"New command showing molecule progress without listing steps.\n\nOutput format:\n Molecule: gt-hanoi-xyz (Towers of Hanoi - 20 disks)\n Progress: 347,892 / 1,048,575 (33.2%)\n Current step: gt-hanoi-xyz.move-347893\n Rate: ~1,200 steps/hour\n ETA: ~9.7 hours remaining\n\nUses indexed query on dependencies table:\n SELECT COUNT(*), SUM(CASE WHEN status='closed' THEN 1 ELSE 0 END)\n FROM dependencies d JOIN issues i ON d.issue_id = i.id\n WHERE d.depends_on_id = ? AND d.type = 'parent-child'","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-31T00:52:52.613276-08:00","created_by":"gastown/crew/max","updated_at":"2025-12-31T12:34:38.443209-08:00","closed_at":"2025-12-31T12:34:38.443209-08:00","close_reason":"Implemented bd mol progress command with efficient indexed queries","dependencies":[{"issue_id":"bd-8xnf","depends_on_id":"bd-5nu1","type":"parent-child","created_at":"2025-12-31T00:54:00.815655-08:00","created_by":"gastown/crew/max"}]} -{"id":"bd-8y02a","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:48:28.171904-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-13T11:48:28.223754-08:00","closed_at":"2026-01-13T11:48:28.223754-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-8x43","title":"Add 'bd where' command to show active beads location","description":"## Problem\n\nWhen using redirects, it's unclear which beads database is actually being used. This caused debugging confusion during the v0.39.0 release.\n\n## Proposed Solution\n\nAdd `bd where` command:\n\n```bash\nbd where\n# → /Users/stevey/gt/beads/mayor/rig/.beads (via redirect from crew/dave/.beads)\n\nbd where --json\n# → {\"path\": \"...\", \"redirected_from\": \"...\", \"prefix\": \"bd\"}\n```\n\n## Alternatives Considered\n\n- `bd info --beads-path` - but `bd where` is more discoverable\n- Just fix the UX so it's never confusing - defense in depth is better\n\n## Desire Paths\n\nThis supports the 'desire paths' design principle: make the system's behavior visible so agents can debug and understand it.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-27T21:15:52.666948-08:00","updated_at":"2025-12-27T21:27:50.301295-08:00","closed_at":"2025-12-27T21:27:50.301295-08:00","created_by":"beads/crew/dave"} +{"id":"bd-8xnf","title":"Add bd mol progress command","description":"New command showing molecule progress without listing steps.\n\nOutput format:\n Molecule: gt-hanoi-xyz (Towers of Hanoi - 20 disks)\n Progress: 347,892 / 1,048,575 (33.2%)\n Current step: gt-hanoi-xyz.move-347893\n Rate: ~1,200 steps/hour\n ETA: ~9.7 hours remaining\n\nUses indexed query on dependencies table:\n SELECT COUNT(*), SUM(CASE WHEN status='closed' THEN 1 ELSE 0 END)\n FROM dependencies d JOIN issues i ON d.issue_id = i.id\n WHERE d.depends_on_id = ? AND d.type = 'parent-child'","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-31T00:52:52.613276-08:00","updated_at":"2025-12-31T12:34:38.443209-08:00","closed_at":"2025-12-31T12:34:38.443209-08:00","close_reason":"Implemented bd mol progress command with efficient indexed queries","created_by":"gastown/crew/max","dependencies":[{"issue_id":"bd-8xnf","depends_on_id":"bd-5nu1","type":"parent-child","created_at":"2025-12-31T00:54:00.815655-08:00","created_by":"gastown/crew/max"}]} +{"id":"bd-8y02a","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T11:48:28.171904-08:00","updated_at":"2026-01-13T11:48:28.223754-08:00","closed_at":"2026-01-13T11:48:28.223754-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} {"id":"bd-8y9t","title":"Remove bd mol spawn - use pour/wisp only","description":"Remove the spawn command from bd mol. Replace with:\n\n- bd pour \u003cproto\u003e - Instantiate as mol (liquid, persistent)\n- bd wisp \u003cproto\u003e - Instantiate as wisp (vapor, ephemeral)\n\nRationale:\n- 'spawn' doesn't fit the chemistry metaphor\n- Two phase transitions (pour/wisp) are clearer than one command with flags\n- Avoids confusion about defaults\n\nImplementation:\n1. Add bd pour command (currently bd mol spawn --pour)\n2. Add bd wisp command (currently bd mol spawn without --pour)\n3. Remove bd mol spawn\n4. Update all docs/tests\n\nGas Town tracking: gt-ingm.6","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-24T12:40:51.698189-08:00","updated_at":"2025-12-24T12:52:55.307-08:00","closed_at":"2025-12-24T12:52:55.307-08:00"} -{"id":"bd-8z29i","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:20:46.057525-08:00","created_by":"beads/witness","updated_at":"2026-01-09T00:20:46.099244-08:00","closed_at":"2026-01-09T00:20:46.099244-08:00","close_reason":"auto-closed session event"} -{"id":"bd-8zbo","title":"Code smell: runCook function is ~275 lines","description":"attached_args: Refactor runCook function (~275 lines)\n\nThe runCook() function in cmd/bd/cook.go (lines 83-357) is ~275 lines handling:\n\n1. Flag parsing and validation\n2. Mode determination (compile vs runtime)\n3. Formula parsing and resolution\n4. Control flow, advice, and expansion application\n5. Dry-run output\n6. Ephemeral mode JSON output\n7. Persist mode database operations\n8. Result display\n\nConsider extracting:\n- parseAndValidateFlags() - flag handling\n- loadAndResolveFormula() - parse, resolve, apply transformations\n- outputDryRun() - dry run display logic\n- outputEphemeral() - ephemeral JSON output\n- persistFormula() - database persistence logic\n\nThe function has multiple exit points and nested conditionals that make it hard to follow.\n\nLocation: cmd/bd/cook.go:83-357","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T15:33:08.808191-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T16:37:29.397832-08:00","closed_at":"2025-12-28T16:37:29.397832-08:00","dependencies":[{"issue_id":"bd-8zbo","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.25998-08:00","created_by":"daemon"}]} +{"id":"bd-8z29i","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:20:46.057525-08:00","updated_at":"2026-01-09T00:20:46.099244-08:00","closed_at":"2026-01-09T00:20:46.099244-08:00","close_reason":"auto-closed session event","created_by":"beads/witness"} +{"id":"bd-8zbo","title":"Code smell: runCook function is ~275 lines","description":"attached_args: Refactor runCook function (~275 lines)\n\nThe runCook() function in cmd/bd/cook.go (lines 83-357) is ~275 lines handling:\n\n1. Flag parsing and validation\n2. Mode determination (compile vs runtime)\n3. Formula parsing and resolution\n4. Control flow, advice, and expansion application\n5. Dry-run output\n6. Ephemeral mode JSON output\n7. Persist mode database operations\n8. Result display\n\nConsider extracting:\n- parseAndValidateFlags() - flag handling\n- loadAndResolveFormula() - parse, resolve, apply transformations\n- outputDryRun() - dry run display logic\n- outputEphemeral() - ephemeral JSON output\n- persistFormula() - database persistence logic\n\nThe function has multiple exit points and nested conditionals that make it hard to follow.\n\nLocation: cmd/bd/cook.go:83-357","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T15:33:08.808191-08:00","updated_at":"2025-12-28T16:37:29.397832-08:00","closed_at":"2025-12-28T16:37:29.397832-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-8zbo","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.25998-08:00","created_by":"daemon"}]} {"id":"bd-8zf2","title":"MCP server loses workspace context after Amp restart - causes silent failures","description":"**CRITICAL BUG**: The beads MCP server loses workspace context when Amp restarts, leading to silent failures and potential data corruption.\n\n## Reproduction\n1. Start Amp with beads MCP server configured\n2. Call `mcp__beads__set_context(workspace_root=\"/path/to/project\")`\n3. Use MCP tools successfully (e.g., `mcp__beads__show`, `mcp__beads__list`)\n4. Restart Amp (new thread/session)\n5. Try to use MCP tools without calling `set_context` again\n6. **Result**: \"Not connected\" or \"No workspace set\" errors\n\n## Impact\n- Amp agents silently fail when trying to read/update beads issues\n- May attempt to create duplicate issues because they can't see existing ones\n- Potential for data corruption if operating on wrong database\n- Breaks multi-session workflows\n- Creates confusion: CLI works (`./bd`) but MCP tools don't\n\n## Current Workaround\nManually call `mcp__beads__set_context()` at start of every Amp session.\n\n## Root Cause\nMCP server is stateful and doesn't persist workspace context across restarts.\n\n## Proposed Fix\n**Option 1 (Best)**: Auto-detect workspace from current working directory\n- Match behavior of CLI `./bd` commands\n- Check for `.beads/` directory in current dir or parents\n- No manual context setting needed\n\n**Option 2**: Persist context in MCP server state file\n- Save last workspace_root to `~/.config/beads/mcp_context.json`\n- Restore on server startup\n\n**Option 3**: Require explicit context in every MCP call\n- Add optional `workspace_root` parameter to all MCP tools\n- Fall back to saved context if not provided\n\nAcceptance:\n- MCP tools work across Amp restarts without manual set_context()\n- Auto-detection matches CLI behavior (walks up from CWD)\n- Clear error message when no workspace found\n- set_context() still works for explicit override\n- BEADS_WORKING_DIR env var support\n- Integration test validates restart behavior","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-07T23:50:52.083111-08:00","updated_at":"2025-11-07T23:58:44.397502-08:00","closed_at":"2025-11-07T23:58:44.397502-08:00"} {"id":"bd-8zpg","title":"Add tests for bd init --contributor wizard","description":"Write integration tests for the contributor wizard:\n- Test fork detection logic\n- Test planning repo creation\n- Test config setup\n- Test with/without upstream remote\n- Test with SSH vs HTTPS origins","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-05T18:58:18.171851-08:00","updated_at":"2025-11-06T18:19:16.232739-08:00","closed_at":"2025-11-06T16:14:06.341689-08:00"} -{"id":"bd-9063acda","title":"Clean up linter errors (914 total issues)","description":"dispatched_by: beads/crew/emma\n\nThe codebase has 914 linter issues reported by golangci-lint. While many are documented as baseline in LINTING.md, we should clean these up systematically to improve code quality and maintainability.","notes":"Fixed 2 unparam linter errors causing CI failure:\n- multirepo.go: Changed discoverChildTypes to return []string (error was always nil)\n- socket_path.go: Changed tmpDir from function to const (always returned /tmp)\n\nCommit: 40ae5987 - fix(lint): resolve unparam warnings in doctor and rpc packages\nCI: https://github.com/steveyegge/beads/actions/runs/20891375647 (all green)","status":"closed","priority":2,"issue_type":"epic","assignee":"beads/crew/dave","created_at":"2025-10-24T01:01:12.997982-07:00","updated_at":"2026-01-10T23:21:04.682474-08:00","closed_at":"2026-01-10T23:21:04.682474-08:00","close_reason":"Closed"} +{"id":"bd-9063acda","title":"Clean up linter errors (914 total issues)","description":"dispatched_by: beads/crew/emma\n\nThe codebase has 914 linter issues reported by golangci-lint. While many are documented as baseline in LINTING.md, we should clean these up systematically to improve code quality and maintainability.","notes":"Fixed 2 unparam linter errors causing CI failure:\n- multirepo.go: Changed discoverChildTypes to return []string (error was always nil)\n- socket_path.go: Changed tmpDir from function to const (always returned /tmp)\n\nCommit: 40ae5987 - fix(lint): resolve unparam warnings in doctor and rpc packages\nCI: https://github.com/steveyegge/beads/actions/runs/20891375647 (all green)","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-10-24T01:01:12.997982-07:00","updated_at":"2026-01-10T23:21:04.682474-08:00","closed_at":"2026-01-10T23:21:04.682474-08:00","close_reason":"Closed"} {"id":"bd-908z","title":"Add bd hooks install command to embed git hooks in binary","description":"Currently git hooks are installed via `examples/git-hooks/install.sh`, which only exists in the beads source repo. Users who install bd via installer/homebrew/npm can't easily install hooks.\n\n**Proposal:**\nAdd `bd hooks install` command that:\n- Embeds hook scripts in the bd binary (using go:embed)\n- Installs them to .git/hooks/ in current repo\n- Backs up existing hooks\n- Makes them executable\n\n**Commands:**\n- `bd hooks install` - Install all hooks\n- `bd hooks uninstall` - Remove hooks\n- `bd hooks list` - Show installed hooks status\n\n**Benefits:**\n- Works for all bd users, not just source repo users\n- More discoverable (shows in bd --help)\n- Consistent with bd workflow\n- Can version hooks with bd releases","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-08T01:23:24.362827-08:00","updated_at":"2025-11-08T01:28:08.842516-08:00","closed_at":"2025-11-08T01:28:08.842516-08:00"} {"id":"bd-90a5","title":"Extract hash ID generation functions to hash_ids.go","description":"Move generateHashID, getNextChildNumber, GetNextChildID to hash_ids.go","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-01T19:28:54.890883-07:00","updated_at":"2025-11-02T12:32:00.159056-08:00","closed_at":"2025-11-02T12:32:00.159058-08:00"} -{"id":"bd-90fs","title":"Merge: amber-1767138546434","description":"branch: polecat/amber-1767138546434\ntarget: main\nsource_issue: amber-1767138546434\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T15:57:38.681293-08:00","created_by":"beads/polecats/amber","updated_at":"2025-12-30T18:12:30.966277-08:00","closed_at":"2025-12-30T18:11:08.005131-08:00"} -{"id":"bd-90pai","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:03:34.776998-08:00","created_by":"beads/witness","updated_at":"2026-01-10T21:03:34.819592-08:00","closed_at":"2026-01-10T21:03:34.819592-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-90fs","title":"Merge: amber-1767138546434","description":"branch: polecat/amber-1767138546434\ntarget: main\nsource_issue: amber-1767138546434\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T15:57:38.681293-08:00","updated_at":"2025-12-30T18:12:30.966277-08:00","closed_at":"2025-12-30T18:11:08.005131-08:00","created_by":"beads/polecats/amber"} +{"id":"bd-90pai","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:03:34.776998-08:00","updated_at":"2026-01-10T21:03:34.819592-08:00","closed_at":"2026-01-10T21:03:34.819592-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} {"id":"bd-90v","title":"bd prime: AI context loading and Claude Code integration","description":"Implement `bd prime` command and Claude Code hooks for context recovery. Hooks work with BOTH MCP server and CLI approaches - they solve the context memory problem (keeping bd workflow fresh after compaction) not the tool access problem (MCP vs CLI).","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-11-11T23:31:12.119012-08:00","updated_at":"2025-12-25T22:26:54.442614-08:00","closed_at":"2025-12-25T22:26:54.442614-08:00"} -{"id":"bd-9115","title":"CLI cleanup: Consolidate bd top-level commands","description":"## Problem\nbd has 76 top-level commands, making it hard to discover and remember.\n\n## Proposed Changes\n\n### Remove from top-level (nest instead):\n- `bd cook` → `bd formula cook` (cooking is a formula operation)\n- `bd pin` → already covered by `bd mol` commands\n- `bd thanks` → `bd info --thanks` or just README\n- `bd quickstart` → `bd help quickstart` or docs\n- `bd detect-pollution` → `bd doctor --check=pollution`\n\n### Consolidate migrations under `bd migrate`:\n- `bd migrate-hash-ids` → `bd migrate hash-ids`\n- `bd migrate-issues` → `bd migrate issues`\n- `bd migrate-sync` → `bd migrate sync`\n- `bd migrate-tombstones` → `bd migrate tombstones`\n\n### Consolidate admin under `bd admin`:\n- `bd cleanup` → `bd admin cleanup`\n- `bd compact` → `bd admin compact`\n- `bd reset` → `bd admin reset`\n\n## Backwards Compatibility\nKeep old commands as hidden aliases for one release cycle.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T14:28:03.299469-08:00","created_by":"mayor","updated_at":"2025-12-27T16:19:44.580326-08:00","closed_at":"2025-12-27T16:19:44.580326-08:00","dependencies":[{"issue_id":"bd-9115","depends_on_id":"bd-w3z7","type":"blocks","created_at":"2025-12-27T15:11:44.88081-08:00","created_by":"daemon"},{"issue_id":"bd-9115","depends_on_id":"bd-do8e","type":"blocks","created_at":"2025-12-27T15:11:44.905058-08:00","created_by":"daemon"},{"issue_id":"bd-9115","depends_on_id":"bd-3u8m","type":"blocks","created_at":"2025-12-27T15:11:44.929207-08:00","created_by":"daemon"},{"issue_id":"bd-9115","depends_on_id":"bd-x0zl","type":"blocks","created_at":"2025-12-27T15:11:44.953799-08:00","created_by":"daemon"},{"issue_id":"bd-9115","depends_on_id":"bd-wb9g","type":"blocks","created_at":"2025-12-27T15:11:44.977559-08:00","created_by":"daemon"},{"issue_id":"bd-9115","depends_on_id":"bd-twbi","type":"blocks","created_at":"2025-12-27T15:11:45.002403-08:00","created_by":"daemon"},{"issue_id":"bd-9115","depends_on_id":"bd-kff0","type":"blocks","created_at":"2025-12-27T15:11:45.027177-08:00","created_by":"daemon"},{"issue_id":"bd-9115","depends_on_id":"bd-bxqv","type":"blocks","created_at":"2025-12-27T15:11:45.051629-08:00","created_by":"daemon"},{"issue_id":"bd-9115","depends_on_id":"bd-5e9q","type":"blocks","created_at":"2025-12-27T15:11:45.07537-08:00","created_by":"daemon"}]} -{"id":"bd-91erv","title":"Session ended: gt-beads-beads/refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:40:39.537779-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T19:40:39.58809-08:00","closed_at":"2026-01-12T19:40:39.58809-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-9115","title":"CLI cleanup: Consolidate bd top-level commands","description":"## Problem\nbd has 76 top-level commands, making it hard to discover and remember.\n\n## Proposed Changes\n\n### Remove from top-level (nest instead):\n- `bd cook` → `bd formula cook` (cooking is a formula operation)\n- `bd pin` → already covered by `bd mol` commands\n- `bd thanks` → `bd info --thanks` or just README\n- `bd quickstart` → `bd help quickstart` or docs\n- `bd detect-pollution` → `bd doctor --check=pollution`\n\n### Consolidate migrations under `bd migrate`:\n- `bd migrate-hash-ids` → `bd migrate hash-ids`\n- `bd migrate-issues` → `bd migrate issues`\n- `bd migrate-sync` → `bd migrate sync`\n- `bd migrate-tombstones` → `bd migrate tombstones`\n\n### Consolidate admin under `bd admin`:\n- `bd cleanup` → `bd admin cleanup`\n- `bd compact` → `bd admin compact`\n- `bd reset` → `bd admin reset`\n\n## Backwards Compatibility\nKeep old commands as hidden aliases for one release cycle.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T14:28:03.299469-08:00","updated_at":"2025-12-27T16:19:44.580326-08:00","closed_at":"2025-12-27T16:19:44.580326-08:00","created_by":"mayor","dependencies":[{"issue_id":"bd-9115","depends_on_id":"bd-do8e","type":"blocks","created_at":"2025-12-27T15:11:44.905058-08:00","created_by":"daemon"},{"issue_id":"bd-9115","depends_on_id":"bd-w3z7","type":"blocks","created_at":"2025-12-27T15:11:44.88081-08:00","created_by":"daemon"},{"issue_id":"bd-9115","depends_on_id":"bd-kff0","type":"blocks","created_at":"2025-12-27T15:11:45.027177-08:00","created_by":"daemon"},{"issue_id":"bd-9115","depends_on_id":"bd-5e9q","type":"blocks","created_at":"2025-12-27T15:11:45.07537-08:00","created_by":"daemon"},{"issue_id":"bd-9115","depends_on_id":"bd-wb9g","type":"blocks","created_at":"2025-12-27T15:11:44.977559-08:00","created_by":"daemon"},{"issue_id":"bd-9115","depends_on_id":"bd-twbi","type":"blocks","created_at":"2025-12-27T15:11:45.002403-08:00","created_by":"daemon"},{"issue_id":"bd-9115","depends_on_id":"bd-3u8m","type":"blocks","created_at":"2025-12-27T15:11:44.929207-08:00","created_by":"daemon"},{"issue_id":"bd-9115","depends_on_id":"bd-x0zl","type":"blocks","created_at":"2025-12-27T15:11:44.953799-08:00","created_by":"daemon"},{"issue_id":"bd-9115","depends_on_id":"bd-bxqv","type":"blocks","created_at":"2025-12-27T15:11:45.051629-08:00","created_by":"daemon"}]} +{"id":"bd-91erv","title":"Session ended: gt-beads-beads/refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:40:39.537779-08:00","updated_at":"2026-01-12T19:40:39.58809-08:00","closed_at":"2026-01-12T19:40:39.58809-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-942469b8","title":"Rapid 5","status":"closed","priority":3,"issue_type":"task","created_at":"2025-10-29T19:11:57.508166-07:00","updated_at":"2025-12-14T12:12:46.502217-08:00","closed_at":"2025-11-07T23:18:52.298739-08:00"} -{"id":"bd-95k8","title":"Pinned field available in beads v0.37.0","description":"Hey max,\n\nHeads up on your mail overhaul work:\n\n1. **Pinned field is available** - beads v0.37.0 (released by dave earlier) includes the pinned field on issues. You'll want to add this to BeadsMessage in types.go.\n\n2. **Database migration** - Check if existing .beads databases need migration to support the pinned field. Run `bd doctor` to see if it flags anything.\n\n3. **Sorting task** - Once you have the pinned field, gt-ngu1 (pinned beads first in mail inbox) needs implementing. Since messages now come from `bd list --type=message`, you'll need to either:\n - Sort in listBeads() after fetching, or\n - Ensure bd list returns pinned items first (may already do this?)\n\nCheck what version of bd you're building against.\n\n-- Mayor","status":"closed","priority":2,"issue_type":"message","created_at":"2025-12-20T17:51:57.315956-08:00","updated_at":"2025-12-21T17:52:18.542169-08:00","closed_at":"2025-12-21T17:52:18.542169-08:00","labels":["from:beads-crew-dave","thread:thread-71ac20c7e432"]} +{"id":"bd-95k8","title":"Pinned field available in beads v0.37.0","description":"Hey max,\n\nHeads up on your mail overhaul work:\n\n1. **Pinned field is available** - beads v0.37.0 (released by dave earlier) includes the pinned field on issues. You'll want to add this to BeadsMessage in types.go.\n\n2. **Database migration** - Check if existing .beads databases need migration to support the pinned field. Run `bd doctor` to see if it flags anything.\n\n3. **Sorting task** - Once you have the pinned field, gt-ngu1 (pinned beads first in mail inbox) needs implementing. Since messages now come from `bd list --type=message`, you'll need to either:\n - Sort in listBeads() after fetching, or\n - Ensure bd list returns pinned items first (may already do this?)\n\nCheck what version of bd you're building against.\n\n-- Mayor","status":"closed","priority":2,"issue_type":"message","created_at":"2025-12-20T17:51:57.315956-08:00","updated_at":"2025-12-21T17:52:18.542169-08:00","closed_at":"2025-12-21T17:52:18.542169-08:00"} {"id":"bd-96142dec","title":"Add fallback to polling on watcher failure","description":"Detect fsnotify.NewWatcher() errors and log warning. Auto-switch to polling mode with 5s ticker. Add BEADS_WATCHER_FALLBACK env var to control behavior.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-28T16:20:02.428439-07:00","updated_at":"2025-10-30T17:12:58.220378-07:00","closed_at":"2025-10-28T19:23:43.595916-07:00"} {"id":"bd-968f","title":"Add unit tests for config modes","description":"Test all four orphan_handling modes: strict (fails), resurrect (creates tombstone), skip (logs warning), allow (imports orphan). Verify error messages and logging output for each mode.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-04T12:32:21.367129-08:00","updated_at":"2025-11-05T00:44:27.948775-08:00","closed_at":"2025-11-05T00:44:27.948777-08:00"} -{"id":"bd-96e7v","title":"Review \u0026 merge PR #970: Fix worktree path detection","description":"dispatched_by: beads/crew/emma\n\n## Task\nReview and merge PR #970 from shendsaliaga.\n\n## PR Summary\nFixes `bd migrate sync` failing with 'fatal: not a git repository' when run from within a git worktree (bare repo setups).\n\n**Two bugs fixed:**\n1. Used GetGitDir() instead of GetGitCommonDir() for worktree creation path\n2. strings.Index found wrong '/worktrees/' in user paths - changed to LastIndex\n\n## Review Checklist\n- [ ] Code review: changes look correct (GetGitDir → GetGitCommonDir)\n- [ ] Verify tests pass: `go test ./...`\n- [ ] Verify lint passes: `golangci-lint run ./...`\n- [ ] Merge the PR: `gh pr merge 970 --repo steveyegge/beads --squash`\n\n## PR Link\nhttps://github.com/steveyegge/beads/pull/970\n\n## Easy-Win Criteria Met\n- Bug fix with clear reproduction and solution\n- Small focused change (26 additions, 8 deletions)\n- Well-documented with before/after examples","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/fang","created_at":"2026-01-09T00:49:19.730696-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T18:32:04.025314-08:00","closed_at":"2026-01-09T18:32:04.025314-08:00","close_reason":"PR #970 merged"} -{"id":"bd-97zdo","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:45:05.15218-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T23:45:05.224528-08:00","closed_at":"2026-01-12T23:45:05.224528-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-96e7v","title":"Review \u0026 merge PR #970: Fix worktree path detection","description":"dispatched_by: beads/crew/emma\n\n## Task\nReview and merge PR #970 from shendsaliaga.\n\n## PR Summary\nFixes `bd migrate sync` failing with 'fatal: not a git repository' when run from within a git worktree (bare repo setups).\n\n**Two bugs fixed:**\n1. Used GetGitDir() instead of GetGitCommonDir() for worktree creation path\n2. strings.Index found wrong '/worktrees/' in user paths - changed to LastIndex\n\n## Review Checklist\n- [ ] Code review: changes look correct (GetGitDir → GetGitCommonDir)\n- [ ] Verify tests pass: `go test ./...`\n- [ ] Verify lint passes: `golangci-lint run ./...`\n- [ ] Merge the PR: `gh pr merge 970 --repo steveyegge/beads --squash`\n\n## PR Link\nhttps://github.com/steveyegge/beads/pull/970\n\n## Easy-Win Criteria Met\n- Bug fix with clear reproduction and solution\n- Small focused change (26 additions, 8 deletions)\n- Well-documented with before/after examples","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-09T00:49:19.730696-08:00","updated_at":"2026-01-09T18:32:04.025314-08:00","closed_at":"2026-01-09T18:32:04.025314-08:00","close_reason":"PR #970 merged","created_by":"beads/crew/emma"} +{"id":"bd-97zdo","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T23:45:05.15218-08:00","updated_at":"2026-01-12T23:45:05.224528-08:00","closed_at":"2026-01-12T23:45:05.224528-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-9826b69a","title":"CRDT-based architecture for guaranteed convergence (v2.0)","description":"## Vision\nRedesign beads around Conflict-Free Replicated Data Types (CRDTs) to provide mathematical guarantees for N-way collision resolution at arbitrary scale.\n\n## Current Limitations\n- Content-hash based collision resolution fails at 5+ clones\n- Non-deterministic convergence in multi-round scenarios\n- UNIQUE constraint violations during rename operations\n- No formal proof of convergence properties\n\n## CRDT Benefits\n- Provably convergent (Strong Eventual Consistency)\n- Commutative/Associative/Idempotent operations\n- No coordination required between clones\n- Scales to 100+ concurrent workers\n- Well-understood mathematical foundations\n\n## Proposed Architecture\n\n### 1. UUID-Based IDs\nReplace sequential IDs with UUIDs:\n- Current: bd-1c63eb84, bd-9063acda, bd-4d80b7b1\n- CRDT: bd-a1b2c3d4-e5f6-7890-abcd-ef1234567890\n- Human aliases maintained separately: #42 maps to UUID\n\n### 2. Last-Write-Wins (LWW) Elements\nEach field becomes an LWW register:\n- title: (timestamp, clone_id, value)\n- status: (timestamp, clone_id, value)\n- Deterministic conflict resolution via Lamport timestamp + clone_id tiebreaker\n\n### 3. Operation Log\nTrack all operations as CRDT ops:\n- CREATE(uuid, timestamp, clone_id, fields)\n- UPDATE(uuid, field, timestamp, clone_id, value)\n- DELETE(uuid, timestamp, clone_id) - tombstone, not hard delete\n\n### 4. Sync as Merge\nSyncing becomes merging two CRDT states:\n- No merge conflicts possible\n- Deterministic merge function\n- Guaranteed convergence\n\n## Implementation Phases\n\n### Phase 1: Research \u0026 Design (4 weeks)\n- Study existing CRDT implementations (Automerge, Yjs, Loro)\n- Design schema for CRDT-based issue tracking\n- Prototype LWW-based Issue CRDT\n- Benchmark performance vs current system\n\n### Phase 2: Parallel Implementation (6 weeks)\n- Implement CRDT storage layer alongside SQLite\n- Build conversion tools: SQLite ↔ CRDT\n- Maintain backward compatibility with v1.x format\n- Migration path for existing databases\n\n### Phase 3: Testing \u0026 Validation (4 weeks)\n- Formal verification of convergence properties\n- Stress testing with 100+ clone scenario\n- Performance profiling and optimization\n- Documentation and examples\n\n### Phase 4: Migration \u0026 Rollout (4 weeks)\n- Release v2.0-beta with CRDT backend\n- Gradual migration from v1.x\n- Monitoring and bug fixes\n- Final v2.0 release\n\n## Risks \u0026 Mitigations\n\n**Risk 1: Performance overhead**\n- Mitigation: Benchmark early, optimize hot paths\n- CRDTs can be slower than append-only logs\n- May need compaction strategy\n\n**Risk 2: Storage bloat**\n- Mitigation: Implement operation log compaction\n- Tombstone garbage collection for deleted issues\n- Periodic snapshots to reduce log size\n\n**Risk 3: Breaking changes**\n- Mitigation: Maintain v1.x compatibility layer\n- Gradual migration tools\n- Dual-mode operation during transition\n\n**Risk 4: Complexity**\n- Mitigation: Use battle-tested CRDT libraries\n- Comprehensive documentation\n- Clear migration guide\n\n## Success Criteria\n- 100-clone collision test passes without failures\n- Formal proof of convergence properties\n- Performance within 2x of current system\n- Zero manual conflict resolution required\n- Backward compatible with v1.x databases\n\n## Timeline\n18-20 weeks total (4-5 months)\n\n## References\n- Automerge: https://automerge.org\n- Yjs: https://docs.yjs.dev\n- Loro: https://loro.dev\n- CRDT theory: Shapiro et al, A comprehensive study of CRDTs\n- Related issues: bd-0dcea000, bd-4d7fca8a, bd-6221bdcd","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-10-29T20:48:00.267736-07:00","updated_at":"2025-10-31T20:06:44.60536-07:00","closed_at":"2025-10-31T20:06:44.60536-07:00"} {"id":"bd-987a","title":"bd mol run: panic slice bounds out of range in mol_run.go:130","description":"## Problem\nbd mol run panics after successfully creating the molecule:\n\n```\n✓ Molecule running: created 9 issues\n Root issue: gt-i4lo (pinned, in_progress)\n Assignee: stevey\n\nNext steps:\n bd ready # Find unblocked work in this molecule\npanic: runtime error: slice bounds out of range [:8] with length 7\n\ngoroutine 1 [running]:\nmain.runMolRun(0x1014fc0c0, {0x140001e0f80, 0x1, 0x10089daad?})\n /Users/stevey/gt/beads/crew/dave/cmd/bd/mol_run.go:130 +0xc38\n```\n\n## Reproduction\n```bash\nbd --no-daemon mol run gt-lwuu --var issue=gt-test123\n```\nWhere gt-lwuu is a mol-polecat-work proto with 8 child steps.\n\n## Impact\nThe molecule IS created successfully - the panic happens after creation when formatting the \"Next steps\" output.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-21T21:48:55.396018-08:00","updated_at":"2025-12-21T22:57:46.827469-08:00","closed_at":"2025-12-21T22:57:46.827469-08:00"} -{"id":"bd-98b4","title":"Merge: onyx-1767138516448","description":"branch: polecat/onyx-1767138516448\ntarget: main\nsource_issue: onyx-1767138516448\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T16:17:51.539362-08:00","created_by":"beads/polecats/onyx","updated_at":"2025-12-30T18:12:30.974128-08:00","closed_at":"2025-12-30T18:11:07.907737-08:00"} +{"id":"bd-98b4","title":"Merge: onyx-1767138516448","description":"branch: polecat/onyx-1767138516448\ntarget: main\nsource_issue: onyx-1767138516448\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T16:17:51.539362-08:00","updated_at":"2025-12-30T18:12:30.974128-08:00","closed_at":"2025-12-30T18:11:07.907737-08:00","created_by":"beads/polecats/onyx"} {"id":"bd-98c4e1fa","title":"Event-driven daemon architecture","description":"Replace 5-second polling sync loop with event-driven architecture that reacts instantly to changes. Eliminates stale data issues while reducing CPU ~60%. Key components: FileWatcher (fsnotify), Debouncer (500ms), RPC mutation events, optional git hooks. Target latency: \u003c500ms (vs 5000ms). See event_driven_daemon.md for full design.","notes":"## Implementation Progress\n\n**Completed:**\n1. ✅ Mutation events infrastructure (bd-143 equivalent)\n - MutationEvent channel in RPC server\n - Events emitted for all write operations: create, update, close, label add/remove, dep add/remove, comment add\n - Non-blocking emission with dropped event counter\n\n2. ✅ FileWatcher with fsnotify (bd-b0c7f7ef related)\n - Watches .beads/issues.jsonl and .git/refs/heads\n - 500ms debounce\n - Polling fallback if fsnotify unavailable\n\n3. ✅ Debouncer (bd-144 equivalent)\n - 500ms debounce for both export and import triggers\n - Thread-safe trigger/cancel\n\n4. ✅ Separate export-only and import-only functions\n - createExportFunc(): exports + optional commit/push (no pull/import)\n - createAutoImportFunc(): pull + import (no export)\n - Target latency \u003c500ms achieved by avoiding full sync\n\n5. ✅ Dropped events safety net (bd-eef03e0a related)\n - Atomic counter tracks dropped mutation events\n - 60-second health check triggers export if events were dropped\n - Prevents silent data loss from event storms\n\n**Still Needed:**\n- Platform-specific tests (bd-69bce74a)\n- Integration test for mutation→export latency (bd-140)\n- Unit tests for FileWatcher (bd-b0c7f7ef)\n- Unit tests for Debouncer (bd-144)\n- Event storm stress test (bd-eef03e0a)\n- Documentation update (bd-142)\n\n**Next Steps:**\nAdd comprehensive test coverage before enabling events mode by default.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-10-29T21:19:36.203436-07:00","updated_at":"2025-10-30T17:12:58.197875-07:00","closed_at":"2025-10-29T15:53:34.022335-07:00"} -{"id":"bd-98c4e1fa.1","title":"Update AGENTS.md with event-driven mode","description":"Document BEADS_DAEMON_MODE env var. Explain opt-in during Phase 1. Add troubleshooting for watcher failures.","status":"open","priority":2,"issue_type":"task","created_at":"2025-10-29T23:05:13.986452-07:00","updated_at":"2025-10-31T20:36:49.381832-07:00","dependencies":[{"issue_id":"bd-98c4e1fa.1","depends_on_id":"bd-98c4e1fa","type":"parent-child","created_at":"2025-10-29T21:19:36.206187-07:00","created_by":"import-remap"},{"issue_id":"bd-98c4e1fa.1","depends_on_id":"bd-0e1f2b1b","type":"parent-child","created_at":"2025-10-31T19:38:09.131439-07:00","created_by":"stevey"}]} +{"id":"bd-98c4e1fa.1","title":"Update AGENTS.md with event-driven mode","description":"Document BEADS_DAEMON_MODE env var. Explain opt-in during Phase 1. Add troubleshooting for watcher failures.","status":"open","priority":2,"issue_type":"task","created_at":"2025-10-29T23:05:13.986452-07:00","updated_at":"2025-10-31T20:36:49.381832-07:00","dependencies":[{"issue_id":"bd-98c4e1fa.1","depends_on_id":"bd-0e1f2b1b","type":"parent-child","created_at":"2025-10-31T19:38:09.131439-07:00","created_by":"stevey"},{"issue_id":"bd-98c4e1fa.1","depends_on_id":"bd-98c4e1fa","type":"parent-child","created_at":"2025-10-29T21:19:36.206187-07:00","created_by":"import-remap"}]} {"id":"bd-9ae788be","title":"Implement clone-scoped ID allocation to prevent N-way collisions","description":"## Problem\nCurrent ID allocation uses per-clone atomic counters (issue_counters table) that sync based on local database state. In N-way collision scenarios:\n- Clone B sees {test-1} locally, allocates test-2\n- Clone D sees {test-1, test-2, test-3} locally, allocates test-4\n- When same content gets assigned test-2 and test-4, convergence fails\n\nRoot cause: Each clone independently allocates IDs without global coordination, leading to overlapping assignments for the same content.\n\n## Solution\nAdd clone UUID to ID allocation to make every ID globally unique:\n\n**Current format:** `test-1`, `test-2`, `test-3`\n**New format:** `test-1-a7b3`, `test-2-a7b3`, `test-3-c4d9`\n\nWhere suffix is first 4 chars of clone UUID.\n\n## Implementation\n\n### 1. Add clone_identity table\n```sql\nCREATE TABLE clone_identity (\n clone_uuid TEXT PRIMARY KEY,\n created_at DATETIME DEFAULT CURRENT_TIMESTAMP\n);\n```\n\n### 2. Modify getNextIDForPrefix()\n```go\nfunc (s *SQLiteStorage) getNextIDForPrefix(ctx context.Context, prefix string) (string, error) {\n cloneUUID := s.getOrCreateCloneUUID(ctx)\n shortUUID := cloneUUID[:4]\n \n nextNum := s.getNextCounterForPrefix(ctx, prefix)\n return fmt.Sprintf(\"%s-%d-%s\", prefix, nextNum, shortUUID), nil\n}\n```\n\n### 3. Update ID parsing logic\nAll places that parse IDs (utils.ExtractIssueNumber, etc.) need to handle new format.\n\n### 4. Migration strategy\n- Existing IDs remain unchanged (no suffix)\n- New IDs get clone suffix automatically\n- Display layer can hide suffix in UI: `bd-cb64c226.3-a7b3` → `#42`\n\n## Benefits\n- **Zero collision risk**: Same content in different clones gets different IDs\n- **Maintains readability**: Still sequential numbering within clone\n- **No coordination needed**: Works offline, no central authority\n- **Scales to 100+ clones**: 4-char hex = 65,536 unique clones\n\n## Concerns\n- ID format change may break existing integrations\n- Need migration path for existing databases\n- Display logic needs update to hide/show suffixes appropriately\n\n## Success Criteria\n- 10+ clone collision test passes without failures\n- Existing issues continue to work (backward compatibility)\n- Documentation updated with new ID format\n- Migration guide for v1.x → v2.x\n\n## Timeline\nMedium-term (v1.1-v1.2), 2-3 weeks implementation\n\n## References\n- Related to bd-e6d71828 (immediate fix)\n- See beads_nway_test.go for failing N-way tests","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-10-29T10:22:52.260524-07:00","updated_at":"2025-12-14T12:12:46.561129-08:00","closed_at":"2025-11-08T00:36:58.134558-08:00"} -{"id":"bd-9au3i","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T15:36:43.445749-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T15:36:43.515628-08:00","closed_at":"2026-01-13T15:36:43.515628-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-9au3i","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T15:36:43.445749-08:00","updated_at":"2026-01-13T15:36:43.515628-08:00","closed_at":"2026-01-13T15:36:43.515628-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-9avq","title":"Fix wisp leak in nodb mode writeIssuesToJSONL","description":"writeIssuesToJSONL in nodb.go calls writeJSONLAtomic without filtering wisps. This means any wisps created during a nodb session would be written to issues.jsonl, leaking ephemeral data into the git-tracked file.\n\nFix: Add the same wisp filter pattern used in sync_export.go, autoflush.go, and export.go:\n\n```go\n// Filter out wisps before writing\nfiltered := make([]*types.Issue, 0, len(issues))\nfor _, issue := range issues {\n if !issue.Wisp {\n filtered = append(filtered, issue)\n }\n}\nissues = filtered\n```\n\nLocation: cmd/bd/nodb.go:writeIssuesToJSONL()","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-24T21:15:47.980048-08:00","updated_at":"2025-12-24T21:18:42.607711-08:00","closed_at":"2025-12-24T21:18:42.607711-08:00"} {"id":"bd-9b13","title":"Backend task","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-03T19:11:59.359262-08:00","updated_at":"2025-11-05T00:25:06.484312-08:00","closed_at":"2025-11-05T00:25:06.484312-08:00"} -{"id":"bd-9bci0","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T19:20:07.546098-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-07T19:20:07.584512-08:00","closed_at":"2026-01-07T19:20:07.584512-08:00","close_reason":"auto-closed session event"} +{"id":"bd-9bci0","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T19:20:07.546098-08:00","updated_at":"2026-01-07T19:20:07.584512-08:00","closed_at":"2026-01-07T19:20:07.584512-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/fang"} {"id":"bd-9bsx","title":"Recurring dirty state after merge conflicts - bd sync keeps failing","description":"## Problem\n\n`bd sync` consistently fails with merge conflicts in `.beads/beads.jsonl`, creating a loop:\n1. User runs `bd sync`\n2. Git merge conflict occurs\n3. User resolves with `git checkout --theirs` (takes remote)\n4. Daemon auto-exports database state (which has local changes)\n5. JSONL becomes dirty again immediately\n6. Repeat\n\nThis has been happening for **weeks** and is extremely frustrating.\n\n## Root Cause\n\nThe recommended conflict resolution (`git checkout --theirs`) throws away local database state (comments, dependencies, closed issues). The daemon then immediately re-exports, creating a dirty state.\n\n## Current Workaround\n\nManual `bd export -o .beads/beads.jsonl \u0026\u0026 git add \u0026\u0026 git commit \u0026\u0026 git push` after every failed sync.\n\n## Example Session\n\n```bash\n$ bd sync\nCONFLICT (content): Merge conflict in .beads/beads.jsonl\n\n$ git checkout --theirs .beads/beads.jsonl \u0026\u0026 bd import \u0026\u0026 git add \u0026\u0026 git commit \u0026\u0026 git push\n# Pushed successfully\n\n$ git status\nmodified: .beads/beads.jsonl # DIRTY AGAIN!\n```\n\n## Lost Data in Recent Session\n\n- bd-ry1u closure (lost in merge)\n- Comments on bd-08fd, bd-23a8, bd-6049, bd-87a0 (lost)\n- Dependencies that existed only in local DB\n\n## Potential Solutions\n\n1. **Use beads-merge tool** - Implement proper 3-way JSONL merge (bd-bzfy)\n2. **Smarter conflict resolution** - Detect when `--theirs` will lose data, warn user\n3. **Sync validation** - Check if JSONL == DB after merge, re-export if needed\n4. **Daemon awareness** - Pause auto-export during merge resolution\n5. **Transaction log** - Replay local changes after merge instead of losing them\n\n## Related Issues\n\n- bd-bzfy (beads-merge integration)\n- Possibly related to daemon auto-export behavior","notes":"## Solution Implemented\n\nFixed the recurring dirty state after merge conflicts by adding **sync validation** before re-exporting.\n\n### Root Cause\nLines 217-237 in `sync.go` unconditionally re-exported DB to JSONL after every import, even when they were already in sync. This created an infinite loop:\n1. User runs `bd sync` which pulls and imports remote JSONL\n2. Sync unconditionally re-exports DB (which has local changes)\n3. JSONL becomes dirty immediately\n4. Repeat\n\n### Fix\nAdded `dbNeedsExport()` function in `integrity.go` that checks:\n- If JSONL exists\n- If DB modification time is newer than JSONL\n- If DB and JSONL issue counts match\n\nNow `bd sync` only re-exports if DB actually has changes that differ from JSONL.\n\n### Changes\n- Added `dbNeedsExport()` in `cmd/bd/integrity.go` (lines 228-271)\n- Updated `sync.go` lines 217-251 to check before re-exporting\n- Added comprehensive tests in `cmd/bd/sync_merge_test.go`\n\n### Testing\nAll tests pass including 4 new tests:\n- `TestDBNeedsExport_InSync` - Verifies no export when synced\n- `TestDBNeedsExport_DBNewer` - Detects DB modifications\n- `TestDBNeedsExport_CountMismatch` - Catches divergence\n- `TestDBNeedsExport_NoJSONL` - Handles missing JSONL\n\nThis prevents the weeks-long frustration of merge conflicts causing infinite dirty loops.","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-05T17:52:14.776063-08:00","updated_at":"2025-11-05T17:58:35.611942-08:00","closed_at":"2025-11-05T17:58:35.611942-08:00"} -{"id":"bd-9btu","title":"Code smell: Duplicated step collection functions in cook.go","description":"attached_args: Fix duplicated step collection functions in cook.go\n\nTwo pairs of nearly identical functions exist in cook.go:\n\n1. collectStepsRecursive() (line 754) vs collectStepsToSubgraph() (line 415)\n - Both iterate over steps and create issues\n - Main difference: one writes to DB, one builds in-memory subgraph\n \n2. collectDependencies() (line 833) vs collectDependenciesToSubgraph() (line 502)\n - Both collect dependencies from steps\n - Nearly identical logic\n\nConsider:\n1. Extract common step/dependency processing logic\n2. Use a strategy pattern or callback for the DB vs in-memory difference\n3. Create a single function that returns data, then have callers decide how to persist\n\nLocation: cmd/bd/cook.go:415-567 and cmd/bd/cook.go:754-898","status":"closed","priority":2,"issue_type":"chore","created_at":"2025-12-28T15:31:57.401447-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T16:41:07.719801-08:00","closed_at":"2025-12-28T16:41:07.719801-08:00","dependencies":[{"issue_id":"bd-9btu","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.168908-08:00","created_by":"daemon"}]} +{"id":"bd-9btu","title":"Code smell: Duplicated step collection functions in cook.go","description":"attached_args: Fix duplicated step collection functions in cook.go\n\nTwo pairs of nearly identical functions exist in cook.go:\n\n1. collectStepsRecursive() (line 754) vs collectStepsToSubgraph() (line 415)\n - Both iterate over steps and create issues\n - Main difference: one writes to DB, one builds in-memory subgraph\n \n2. collectDependencies() (line 833) vs collectDependenciesToSubgraph() (line 502)\n - Both collect dependencies from steps\n - Nearly identical logic\n\nConsider:\n1. Extract common step/dependency processing logic\n2. Use a strategy pattern or callback for the DB vs in-memory difference\n3. Create a single function that returns data, then have callers decide how to persist\n\nLocation: cmd/bd/cook.go:415-567 and cmd/bd/cook.go:754-898","status":"closed","priority":2,"issue_type":"chore","created_at":"2025-12-28T15:31:57.401447-08:00","updated_at":"2025-12-28T16:41:07.719801-08:00","closed_at":"2025-12-28T16:41:07.719801-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-9btu","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.168908-08:00","created_by":"daemon"}]} {"id":"bd-9cdc","title":"Update docs for import bug fix","description":"Update AGENTS.md, README.md, TROUBLESHOOTING.md with import.orphan_handling config documentation. Document resurrection behavior, tombstones, config modes. Add troubleshooting section for import failures with deleted parents.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-04T12:32:30.770415-08:00","updated_at":"2025-12-21T21:14:08.328627-08:00","closed_at":"2025-12-21T21:14:08.328627-08:00"} {"id":"bd-9e23","title":"Optimize Memory backend GetIssueByExternalRef with index","description":"Currently GetIssueByExternalRef in Memory storage uses O(n) linear search through all issues.\n\nCurrent code (memory.go:282-308):\nfor _, issue := range m.issues {\n if issue.ExternalRef != nil \u0026\u0026 *issue.ExternalRef == externalRef {\n return \u0026issueCopy, nil\n }\n}\n\nProposed optimization:\n- Add externalRefToID map[string]string to MemoryStorage\n- Maintain it in CreateIssue, UpdateIssue, DeleteIssue\n- Achieve O(1) lookup like SQLite's index\n\nImpact: Low (--no-db mode typically has smaller datasets)\nRelated: bd-1022","status":"closed","priority":4,"issue_type":"chore","created_at":"2025-11-02T15:32:30.242357-08:00","updated_at":"2025-12-09T18:38:37.681315672-05:00","closed_at":"2025-11-26T11:14:49.172418-08:00"} {"id":"bd-9e8d","title":"Test Issue","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-10-31T21:41:11.107393-07:00","updated_at":"2025-11-01T20:02:28.292279-07:00","closed_at":"2025-11-01T20:02:28.292279-07:00"} -{"id":"bd-9eye","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:38:40.600249-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:38:40.633084-08:00","closed_at":"2026-01-07T00:38:40.633084-08:00","close_reason":"auto-closed session event"} +{"id":"bd-9eye","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:38:40.600249-08:00","updated_at":"2026-01-07T00:38:40.633084-08:00","closed_at":"2026-01-07T00:38:40.633084-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-9f1fce5d","title":"Add internal/ai package for LLM integration","description":"Shared AI client for repair commands.\n\nProviders:\n- Anthropic (Claude)\n- OpenAI (GPT)\n- Ollama (local)\n\nEnv vars:\n- BEADS_AI_PROVIDER\n- BEADS_AI_API_KEY\n- BEADS_AI_MODEL\n\nFiles: internal/ai/client.go (new)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-28T14:48:29.072473-07:00","updated_at":"2025-12-14T12:12:46.567174-08:00","closed_at":"2025-11-06T19:27:19.128093-08:00"} {"id":"bd-9f20","title":"DetectCycles SQL query has bug preventing cycle detection","description":"The DetectCycles function's SQL query has a bug in the LIKE filter that prevents it from detecting cycles.\n\nCurrent code (line 571):\n```sql\nAND p.path NOT LIKE '%' || d.depends_on_id || '→%'\n```\n\nThis prevents ANY revisit to nodes, including returning to the start node to complete a cycle.\n\nFix:\n```sql\nAND (d.depends_on_id = p.start_id OR p.path NOT LIKE '%' || d.depends_on_id || '→%')\n```\n\nThis allows revisiting the start node (to detect the cycle) while still preventing intermediate node revisits.\n\nImpact: Currently DetectCycles cannot detect any cycles, but this hasn't been noticed because AddDependency prevents cycles from being created. The function would only matter if cycles were manually inserted into the database.","status":"closed","priority":3,"issue_type":"bug","created_at":"2025-11-01T22:50:32.552763-07:00","updated_at":"2025-11-01T22:52:02.247443-07:00","closed_at":"2025-11-01T22:52:02.247443-07:00"} {"id":"bd-9f4a","title":"Document external_ref in content hash behavior","description":"The content hash includes external_ref, which has implications that should be documented.\n\nCurrent behavior:\n- external_ref is included in content hash calculation (collision.go:158-160)\n- Changing external_ref changes content hash\n- This means: local issue → add external_ref → different hash\n\nImplications:\n- Local issue + external_ref addition = looks like 'new content'\n- May not match by content hash in some scenarios\n- Generally correct behavior, but subtle\n\nAction items:\n- Document in code comments\n- Add to ARCHITECTURE.md or similar\n- Add test demonstrating this behavior\n- Consider if this is desired long-term\n\nRelated: bd-1022\nFiles: internal/storage/sqlite/collision.go:158-160","status":"closed","priority":4,"issue_type":"task","created_at":"2025-11-02T15:32:47.715458-08:00","updated_at":"2025-12-14T12:12:46.559128-08:00","closed_at":"2025-11-08T02:20:01.004638-08:00"} {"id":"bd-9f86-baseline-test","title":"Baseline quality gate failure: test","description":"The test quality gate is failing on the baseline (main branch).\n\nThis blocks the executor from claiming work until fixed.\n\nError: go test failed: exit status 1\n\nOutput:\n```\n? \tgithub.com/steveyegge/beads\t[no test files]\n# github.com/steveyegge/beads/internal/beads_test [github.com/steveyegge/beads/internal/beads.test]\ninternal/beads/routing_integration_test.go:142:27: not enough arguments in call to sqlite.New\n\thave (string)\n\twant (context.Context, string)\n# github.com/steveyegge/beads/internal/compact [github.com/steveyegge/beads/internal/compact.test]\ninternal/compact/compactor_test.go:17:27: not enough arguments in call to sqlite.New\n\thave (string)\n\twant (context.Context, string)\n# github.com/steveyegge/beads/cmd/bd [github.com/steveyegge/beads/cmd/bd.test]\ncmd/bd/integrity_content_test.go:31:32: undefined: ctx\ncmd/bd/integrity_content_test.go:183:32: undefined: ctx\nFAIL\tgithub.com/steveyegge/beads/cmd/bd [build failed]\n# github.com/steveyegge/beads/internal/daemon [github.com/steveyegge/beads/internal/daemon.test]\ninternal/daemon/discovery_test.go:21:27: not enough arguments in call to sqlite.New\n\thave (string)\n\twant (context.Context, string)\ninternal/daemon/discovery_test.go:59:27: not enough arguments in call to sqlite.New\n\thave (string)\n\twant (context.Context, string)\ninternal/daemon/discovery_test.go:232:27: not enough arguments in call to sqlite.New\n\thave (string)\n\twant (context.Context, string)\n# github.com/steveyegge/beads/internal/importer [github.com/steveyegge/beads/internal/importer.test]\ninternal/importer/external_ref_test.go:22:27: not enough arguments in call to sqlite.New\n\thave (string)\n\twant (context.Context, string)\ninternal/importer/external_ref_test.go:106:27: not enough arguments in call to sqlite.New\n\thave (string)\n\twant (context.Context, string)\ninternal/importer/external_ref_test.go:197:27: not enough arguments in call to sqlite.New\n\thave (string)\n\twant (context.Context, string)\ninternal/importer/external_ref_test.go:295:27: not enough arguments in call to sqlite.New\n\thave (string)\n\twant (context.Context, string)\ninternal/importer/importer_test.go:566:27: not enough arguments in call to sqlite.New\n\thave (st\n... (truncated, see full output in logs)\n```","notes":"Released by executor after budget limit hit. Tests were already fixed manually. Issue can be closed when tests are verified to pass.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-21T10:17:25.962406-05:00","updated_at":"2025-11-21T11:04:33.570067-05:00","closed_at":"2025-11-21T11:04:33.570067-05:00"} -{"id":"bd-9fvf9","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T14:18:37.56943-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T14:18:37.603957-08:00","closed_at":"2026-01-10T14:18:37.603957-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-9fvf9","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T14:18:37.56943-08:00","updated_at":"2026-01-10T14:18:37.603957-08:00","closed_at":"2026-01-10T14:18:37.603957-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-9g1z","title":"Fix or remove TestFindJSONLPathDefault (issue #356)","description":"Code health review found .test-skip permanently skips TestFindJSONLPathDefault.\n\nThe test references issue #356 about wrong JSONL filename expectations (issues.jsonl vs beads.jsonl).\n\nTest file: internal/beads/beads_test.go\n\nThe underlying migration from beads.jsonl to issues.jsonl may be complete, so either:\n1. Fix the test expectations\n2. Remove the test if no longer needed\n3. Document why it remains skipped","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-16T18:17:31.33975-08:00","updated_at":"2025-12-22T21:24:50.357688-08:00","closed_at":"2025-12-22T21:24:50.357688-08:00"} {"id":"bd-9gvf","title":"Add prefix-based routing with routes.jsonl","description":"## Summary\n\nWhen running `bd show gt-xyz` from a location where that bead doesn't exist locally,\nbd should check a `routes.jsonl` file to find where beads with that prefix live.\n\n## Problem\n\nFrom ~/gt (town root):\n- `bd show hq-xxx` works (hq-* beads are local)\n- `bd show gt-xxx` fails (gt-* beads live in gastown/mayor/rig)\n\nThis breaks `gt hook`, `gt handoff`, and `gt prime` which need to verify beads exist.\n\n## Solution\n\nAdd `.beads/routes.jsonl` for prefix-based routing:\n\n\\`\\`\\`json\n{\"prefix\": \"gt-\", \"path\": \"gastown/mayor/rig\"}\n{\"prefix\": \"hq-\", \"path\": \".\"}\n{\"prefix\": \"bd-\", \"path\": \"beads/crew/dave\"}\n\\`\\`\\`\n\n### Lookup Algorithm\n\n1. Try local .beads/ first (current behavior)\n2. If not found, check for routes.jsonl in current .beads/\n3. Match ID prefix against routes\n4. If match found, resolve path relative to routes file location and retry\n5. If still not found, error as usual\n\n### Affected Commands\n\nRead operations that take a bead ID:\n- bd show \u003cid\u003e\n- bd update \u003cid\u003e\n- bd close \u003cid\u003e\n- bd dep add \u003cid\u003e \u003cdep\u003e (both IDs)\n\nWrite operations (bd create) still go to local .beads/ - no change needed.\n\n## Implementation Notes\n\n1. New file: routes.jsonl in .beads/ directory\n2. New function: resolveBeadsPath(id string) (string, error)\n3. Update: beads.Show(), beads.Update(), beads.Close(), etc. to use resolver\n4. Caching: Can cache routes in memory since file rarely changes\n\n## Context\n\nThis unblocks the gt handoff flow for Mayor. Currently gt handoff gt-xyz fails\nbecause it can't verify the bead exists when running from town root.","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-12-26T14:18:19.399691-08:00","updated_at":"2025-12-26T14:36:43.551435-08:00","closed_at":"2025-12-26T14:36:43.551435-08:00"} -{"id":"bd-9hc9","title":"Code smell: Long function flushToJSONLWithState (~280 lines)","description":"The flushToJSONLWithState() function in cmd/bd/autoflush.go (lines 490-772) is ~280 lines with:\n\n1. Multiple nested conditionals\n2. Inline helper function definitions (recordFailure, recordSuccess)\n3. Complex multi-repo filtering logic\n4. Mixed concerns (validation, export, error handling)\n\nConsider breaking into:\n- validateJSONLIntegrity() - already exists but could absorb more\n- getIssuesToExport(fullExport bool) - determines what to export\n- mergeWithExistingJSONL(issueMap, dirtyIDs) - handles incremental merge\n- filterByPrefix(issues) - multi-repo prefix filtering\n- performExport(issues, jsonlPath) - the actual write\n- updateMetadataAfterExport() - hash/timestamp updates\n\nLocation: cmd/bd/autoflush.go:490-772","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T15:32:20.909843-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T16:45:12.921052-08:00","closed_at":"2025-12-28T16:45:12.921052-08:00","dependencies":[{"issue_id":"bd-9hc9","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.223682-08:00","created_by":"daemon"}]} -{"id":"bd-9hvrn","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T00:13:15.492742-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T00:13:15.532959-08:00","closed_at":"2026-01-10T00:13:15.532959-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-9itya","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:41:52.245599-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-13T11:41:52.318951-08:00","closed_at":"2026-01-13T11:41:52.318951-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-9jbx1","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:32:46.663257-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-09T18:32:46.699456-08:00","closed_at":"2026-01-09T18:32:46.699456-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-9ji4z","title":"Trust child repos during multi-repo hydration (replaces PR #971)","description":"## Problem\n\nPR #971 (https://github.com/steveyegge/beads/pull/971) tries to solve a real problem: when hydrating issues from child repos, custom types defined in the child fail validation because the parent doesn't know about them.\n\nExample:\n- Child repo `oss/` has `types.custom = [bd, pm, llm]`\n- Parent hydrates issue `oss-abc` with type `pm`\n- Parent's config doesn't have `pm` → validation fails\n\nPR #971's solution: Add `custom_types` to `repos.additional` config so parent explicitly tracks child types.\n\n## Why PR #971 Is Wrong\n\nIt violates **Discover, Don't Track** (PRIMING.md):\n\n\u003e Don't maintain separate tracking for what's observable. The beads ARE the source of truth.\n\nThe child repo already knows its own types. Duplicating them in parent config is:\n- Redundant state that can drift\n- Manual sync burden when child adds types \n- Anti-pattern in Gas Town's federation model\n\n## The Right Solution: Trust + Discover\n\n### Trust (Primary)\n\nFrom CONTEXT.md federation model: each chain validates its own work. The child repo already validated these issues when they were created. The JSONL is a \"signed export\" from a working Beads database.\n\n**Don't re-validate custom types during import. Trust the source.**\n\n- Built-in types (task, bug, feature, epic, chore): validate normally\n- Custom types: skip validation - child already validated them\n\n### Discover (When Needed)\n\nIf we ever need to know child's types (diagnostics, UI, routing):\n- Read from child's config/DB on demand\n- Never cache in parent config\n- `bd doctor` can discover and report mismatches as warnings\n\n## Implementation\n\n### Phase 1: Trust during import\n\nModify `upsertIssueInTx` in `internal/storage/sqlite/multirepo.go`:\n\n```go\n// Add to types/types.go\nfunc (t IssueType) IsBuiltIn() bool {\n switch t {\n case TypeTask, TypeBug, TypeFeature, TypeEpic, TypeChore:\n return true\n }\n return false\n}\n\n// In ValidateWithCustom or upsertIssueInTx:\n// For multi-repo import, only validate built-in types\n// Custom types are trusted from source repo\n```\n\n### Phase 2: Discovery for diagnostics (optional)\n\nAdd `bd doctor` check that:\n1. Reads each child repo's config/DB\n2. Discovers their custom types\n3. Reports any issues with unknown types as warnings (not errors)\n\n## Benefits\n\n- Simpler than PR #971 (removes 1200 lines of config plumbing)\n- No new config format needed\n- Backwards compatible\n- Aligned with Gas Town federation model\n- Child repos can evolve freely without updating parent\n\n## Test Plan\n\n- [ ] Hydrate child with custom type not in parent → succeeds\n- [ ] Hydrate child with invalid built-in type → fails (still validated)\n- [ ] Existing single-repo validation unchanged\n- [ ] `bd doctor` discovers and reports child types\n\n## References\n\n- PR #971: https://github.com/steveyegge/beads/pull/971\n- PRIMING.md: Discover, Don't Track principle\n- CONTEXT.md: Federation model","status":"closed","priority":1,"issue_type":"epic","created_at":"2026-01-09T14:05:36.130151-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T14:26:42.207449-08:00","closed_at":"2026-01-09T14:26:42.207449-08:00","close_reason":"Federation trust model implemented: trust non-built-in types from child repos, discover types via bd doctor"} -{"id":"bd-9jsw","title":"Test event","status":"tombstone","priority":2,"issue_type":"event","created_at":"2025-12-30T16:07:42.213668-08:00","created_by":"beads/polecats/obsidian","updated_at":"2025-12-30T16:08:59.772362-08:00","deleted_at":"2025-12-30T16:08:59.772362-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"event"} -{"id":"bd-9jye8","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T08:02:25.160449-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T08:02:25.230994-08:00","closed_at":"2026-01-11T08:02:25.230994-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-9l0h","title":"Run tests and linting","description":"go test -short ./... \u0026\u0026 golangci-lint run ./...","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-20T21:53:19.527602-08:00","updated_at":"2025-12-20T21:55:29.660914-08:00","closed_at":"2025-12-20T21:55:29.660914-08:00","dependencies":[{"issue_id":"bd-9l0h","depends_on_id":"bd-an4s","type":"parent-child","created_at":"2025-12-20T21:53:19.529203-08:00","created_by":"daemon"},{"issue_id":"bd-9l0h","depends_on_id":"bd-gocx","type":"blocks","created_at":"2025-12-20T21:53:29.753682-08:00","created_by":"daemon"}]} +{"id":"bd-9hc9","title":"Code smell: Long function flushToJSONLWithState (~280 lines)","description":"The flushToJSONLWithState() function in cmd/bd/autoflush.go (lines 490-772) is ~280 lines with:\n\n1. Multiple nested conditionals\n2. Inline helper function definitions (recordFailure, recordSuccess)\n3. Complex multi-repo filtering logic\n4. Mixed concerns (validation, export, error handling)\n\nConsider breaking into:\n- validateJSONLIntegrity() - already exists but could absorb more\n- getIssuesToExport(fullExport bool) - determines what to export\n- mergeWithExistingJSONL(issueMap, dirtyIDs) - handles incremental merge\n- filterByPrefix(issues) - multi-repo prefix filtering\n- performExport(issues, jsonlPath) - the actual write\n- updateMetadataAfterExport() - hash/timestamp updates\n\nLocation: cmd/bd/autoflush.go:490-772","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T15:32:20.909843-08:00","updated_at":"2025-12-28T16:45:12.921052-08:00","closed_at":"2025-12-28T16:45:12.921052-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-9hc9","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.223682-08:00","created_by":"daemon"}]} +{"id":"bd-9hvrn","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T00:13:15.492742-08:00","updated_at":"2026-01-10T00:13:15.532959-08:00","closed_at":"2026-01-10T00:13:15.532959-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-9itya","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T11:41:52.245599-08:00","updated_at":"2026-01-13T11:41:52.318951-08:00","closed_at":"2026-01-13T11:41:52.318951-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-9jbx1","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:32:46.663257-08:00","updated_at":"2026-01-09T18:32:46.699456-08:00","closed_at":"2026-01-09T18:32:46.699456-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} +{"id":"bd-9ji4z","title":"Trust child repos during multi-repo hydration (replaces PR #971)","description":"## Problem\n\nPR #971 (https://github.com/steveyegge/beads/pull/971) tries to solve a real problem: when hydrating issues from child repos, custom types defined in the child fail validation because the parent doesn't know about them.\n\nExample:\n- Child repo `oss/` has `types.custom = [bd, pm, llm]`\n- Parent hydrates issue `oss-abc` with type `pm`\n- Parent's config doesn't have `pm` → validation fails\n\nPR #971's solution: Add `custom_types` to `repos.additional` config so parent explicitly tracks child types.\n\n## Why PR #971 Is Wrong\n\nIt violates **Discover, Don't Track** (PRIMING.md):\n\n\u003e Don't maintain separate tracking for what's observable. The beads ARE the source of truth.\n\nThe child repo already knows its own types. Duplicating them in parent config is:\n- Redundant state that can drift\n- Manual sync burden when child adds types \n- Anti-pattern in Gas Town's federation model\n\n## The Right Solution: Trust + Discover\n\n### Trust (Primary)\n\nFrom CONTEXT.md federation model: each chain validates its own work. The child repo already validated these issues when they were created. The JSONL is a \"signed export\" from a working Beads database.\n\n**Don't re-validate custom types during import. Trust the source.**\n\n- Built-in types (task, bug, feature, epic, chore): validate normally\n- Custom types: skip validation - child already validated them\n\n### Discover (When Needed)\n\nIf we ever need to know child's types (diagnostics, UI, routing):\n- Read from child's config/DB on demand\n- Never cache in parent config\n- `bd doctor` can discover and report mismatches as warnings\n\n## Implementation\n\n### Phase 1: Trust during import\n\nModify `upsertIssueInTx` in `internal/storage/sqlite/multirepo.go`:\n\n```go\n// Add to types/types.go\nfunc (t IssueType) IsBuiltIn() bool {\n switch t {\n case TypeTask, TypeBug, TypeFeature, TypeEpic, TypeChore:\n return true\n }\n return false\n}\n\n// In ValidateWithCustom or upsertIssueInTx:\n// For multi-repo import, only validate built-in types\n// Custom types are trusted from source repo\n```\n\n### Phase 2: Discovery for diagnostics (optional)\n\nAdd `bd doctor` check that:\n1. Reads each child repo's config/DB\n2. Discovers their custom types\n3. Reports any issues with unknown types as warnings (not errors)\n\n## Benefits\n\n- Simpler than PR #971 (removes 1200 lines of config plumbing)\n- No new config format needed\n- Backwards compatible\n- Aligned with Gas Town federation model\n- Child repos can evolve freely without updating parent\n\n## Test Plan\n\n- [ ] Hydrate child with custom type not in parent → succeeds\n- [ ] Hydrate child with invalid built-in type → fails (still validated)\n- [ ] Existing single-repo validation unchanged\n- [ ] `bd doctor` discovers and reports child types\n\n## References\n\n- PR #971: https://github.com/steveyegge/beads/pull/971\n- PRIMING.md: Discover, Don't Track principle\n- CONTEXT.md: Federation model","status":"closed","priority":1,"issue_type":"epic","created_at":"2026-01-09T14:05:36.130151-08:00","updated_at":"2026-01-09T14:26:42.207449-08:00","closed_at":"2026-01-09T14:26:42.207449-08:00","close_reason":"Federation trust model implemented: trust non-built-in types from child repos, discover types via bd doctor","created_by":"beads/crew/emma"} +{"id":"bd-9jsw","title":"Test event","status":"tombstone","priority":2,"issue_type":"event","created_at":"2025-12-30T16:07:42.213668-08:00","updated_at":"2025-12-30T16:08:59.772362-08:00","created_by":"beads/polecats/obsidian","deleted_at":"2025-12-30T16:08:59.772362-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"event"} +{"id":"bd-9jye8","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T08:02:25.160449-08:00","updated_at":"2026-01-11T08:02:25.230994-08:00","closed_at":"2026-01-11T08:02:25.230994-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-9l0h","title":"Run tests and linting","description":"go test -short ./... \u0026\u0026 golangci-lint run ./...","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-20T21:53:19.527602-08:00","updated_at":"2025-12-20T21:55:29.660914-08:00","closed_at":"2025-12-20T21:55:29.660914-08:00","dependencies":[{"issue_id":"bd-9l0h","depends_on_id":"bd-gocx","type":"blocks","created_at":"2025-12-20T21:53:29.753682-08:00","created_by":"daemon"},{"issue_id":"bd-9l0h","depends_on_id":"bd-an4s","type":"parent-child","created_at":"2025-12-20T21:53:19.529203-08:00","created_by":"daemon"}]} {"id":"bd-9li4","title":"Create Docker image for Agent Mail","description":"Containerize Agent Mail server for easy deployment.\n\nAcceptance Criteria:\n- Dockerfile with Python 3.14\n- Health check endpoint\n- Volume mount for storage\n- Environment variable configuration\n- Multi-arch builds (amd64, arm64)\n\nFile: deployment/agent-mail/Dockerfile","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-07T22:43:43.231964-08:00","updated_at":"2025-12-09T18:38:37.682767072-05:00","closed_at":"2025-11-25T17:47:30.777486-08:00"} {"id":"bd-9msn","title":"Add monitoring and alerting","description":"Observability for production Agent Mail server.\n\nAcceptance Criteria:\n- Health check endpoint (/health)\n- Prometheus metrics export\n- Grafana dashboard\n- Alerts for server downtime\n- Alerts for high error rate\n- Log aggregation config\n\nFile: deployment/agent-mail/monitoring/","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-07T22:43:43.354117-08:00","updated_at":"2025-12-14T00:32:11.050086-08:00","closed_at":"2025-12-13T23:30:58.72719-08:00","dependencies":[{"issue_id":"bd-9msn","depends_on_id":"bd-z3s3","type":"blocks","created_at":"2025-11-07T23:04:28.050074-08:00","created_by":"daemon"}]} {"id":"bd-9nw","title":"Document sandbox workarounds for GH #353","description":"Add documentation for sandbox troubleshooting and new flags.\n\n**Tasks:**\n1. Create or update TROUBLESHOOTING.md with sandbox section\n2. Document new flags in CLI reference\n3. Add comment to GH #353 with immediate workarounds\n\n**Content needed:**\n- Symptoms of daemon lock issues in sandboxed environments\n- Usage guide for --sandbox, --force, and --allow-stale flags\n- Step-by-step troubleshooting for Codex users\n- Examples of each escape hatch\n\n**Files to update:**\n- docs/TROUBLESHOOTING.md (create if needed)\n- docs/CLI_REFERENCE.md or README.md\n- GitHub issue #353\n\n**References:**\n- docs/GH353_INVESTIGATION.md (lines 240-276)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-21T18:52:30.794526-05:00","updated_at":"2025-11-22T14:57:44.495978927-05:00","closed_at":"2025-11-21T19:25:19.216834-05:00"} -{"id":"bd-9ockw","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T13:35:32.061019-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T13:35:32.121347-08:00","closed_at":"2026-01-10T13:35:32.121347-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-9p7dt","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:42:55.017921-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T20:42:55.084089-08:00","closed_at":"2026-01-11T20:42:55.084089-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-9psbe","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T17:31:06.904637-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T17:31:06.969423-08:00","closed_at":"2026-01-12T17:31:06.969423-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-9qajq","title":"gt sling crew auto-picks random crew worker (violates crew model)","description":"## Problem\n\n`gt sling bd-xxx crew` auto-dispatches to a random crew worker. This violates the crew model:\n\n- **Crew** = persistent, human-managed workspaces. Human decides who gets what work.\n- **Polecats** = transient worker pool. Auto-dispatch makes sense.\n\nCurrent behavior interrupts crew workers unexpectedly, which is the antithesis of what crew are for.\n\n## Expected Behavior\n\nEither:\n1. Require explicit crew worker name: `gt sling bd-xxx crew/fang` (no auto-pick)\n2. Or reject `gt sling ... crew` entirely - crew assignment should be manual\n\n## Workaround\n\nAssign beads manually with `bd update --assignee` and send mail.","status":"open","priority":2,"issue_type":"bug","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:36:45.62829-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T01:36:45.62829-08:00"} +{"id":"bd-9ockw","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T13:35:32.061019-08:00","updated_at":"2026-01-10T13:35:32.121347-08:00","closed_at":"2026-01-10T13:35:32.121347-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-9p7dt","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T20:42:55.017921-08:00","updated_at":"2026-01-11T20:42:55.084089-08:00","closed_at":"2026-01-11T20:42:55.084089-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-9psbe","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T17:31:06.904637-08:00","updated_at":"2026-01-12T17:31:06.969423-08:00","closed_at":"2026-01-12T17:31:06.969423-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-9qajq","title":"gt sling crew auto-picks random crew worker (violates crew model)","description":"## Problem\n\n`gt sling bd-xxx crew` auto-dispatches to a random crew worker. This violates the crew model:\n\n- **Crew** = persistent, human-managed workspaces. Human decides who gets what work.\n- **Polecats** = transient worker pool. Auto-dispatch makes sense.\n\nCurrent behavior interrupts crew workers unexpectedly, which is the antithesis of what crew are for.\n\n## Expected Behavior\n\nEither:\n1. Require explicit crew worker name: `gt sling bd-xxx crew/fang` (no auto-pick)\n2. Or reject `gt sling ... crew` entirely - crew assignment should be manual\n\n## Workaround\n\nAssign beads manually with `bd update --assignee` and send mail.","status":"open","priority":2,"issue_type":"bug","created_at":"2026-01-12T01:36:45.62829-08:00","updated_at":"2026-01-12T01:36:45.62829-08:00","created_by":"beads/crew/emma"} {"id":"bd-9qj5","title":"Merge: bd-c7y5","description":"branch: polecat/toast\ntarget: main\nsource_issue: bd-c7y5\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-23T20:45:02.626929-08:00","updated_at":"2025-12-23T21:21:57.699742-08:00","closed_at":"2025-12-23T21:21:57.699742-08:00"} {"id":"bd-9rw1","title":"Support P-prefix priority format (P0-P4) in create and update commands","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-05T13:56:04.796826-08:00","updated_at":"2025-11-05T13:56:08.157061-08:00","closed_at":"2025-11-05T13:56:08.157061-08:00"} -{"id":"bd-9sj15","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T05:18:00.038245-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T05:18:00.100943-08:00","closed_at":"2026-01-11T05:18:00.100943-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-9szg","title":"Test prefix bd","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-27T14:24:41.470665-08:00","created_by":"stevey","updated_at":"2025-12-27T14:24:50.420887-08:00","deleted_at":"2025-12-27T14:24:50.420887-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} +{"id":"bd-9sj15","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T05:18:00.038245-08:00","updated_at":"2026-01-11T05:18:00.100943-08:00","closed_at":"2026-01-11T05:18:00.100943-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-9szg","title":"Test prefix bd","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-27T14:24:41.470665-08:00","updated_at":"2025-12-27T14:24:50.420887-08:00","created_by":"stevey","deleted_at":"2025-12-27T14:24:50.420887-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} {"id":"bd-9usz","title":"Test suite hangs/never finishes","description":"Running 'go test ./... -count=1' hangs indefinitely. The full test suite never completes, making it difficult to verify changes. Need to investigate which tests are hanging and fix or add timeouts.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-16T21:56:27.80191-08:00","updated_at":"2025-12-23T23:48:57.837606-08:00","closed_at":"2025-12-23T23:48:57.837606-08:00"} {"id":"bd-9v7l","title":"bd status \"Recent Activity\" is misleading - should use git history","description":"## Problem\n\n`bd status` shows \"Recent Activity (last 7 days)\" but the numbers are wrong. It only looks at database timestamps, not git history. Says \"141 issues closed in last 7 days\" when thousands have actually come and go.\n\n## Issues\n\n1. Only queries database timestamps, not git history\n2. 7 days is too long a window\n3. Numbers don't reflect actual activity in JSONL git history\n\n## Proposed Fix\n\nEither:\n- Query git history of `.beads/beads.jsonl` to get actual activity (last 24-48 hours)\n- Remove \"Recent Activity\" section entirely if not useful\n- Make time window configurable and default to 24h\n\n## Example Output (Current)\n```\nRecent Activity (last 7 days):\nIssues Created: 174\nIssues Closed: 141\nIssues Updated: 37\n```\nThis is misleading when thousands of issues have actually cycled through.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-05T01:03:00.234813-08:00","updated_at":"2025-11-06T18:47:42.682987-08:00","closed_at":"2025-11-06T18:47:42.682987-08:00"} -{"id":"bd-9vn11","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T17:29:02.744642-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T17:29:02.794105-08:00","closed_at":"2026-01-12T17:29:02.794105-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-9vn11","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T17:29:02.744642-08:00","updated_at":"2026-01-12T17:29:02.794105-08:00","closed_at":"2026-01-12T17:29:02.794105-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-9w27m","title":"Digest: mol-refinery-patrol","description":"Patrol: MQ empty, no branches processed","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T20:03:47.544242-08:00","updated_at":"2026-01-10T20:03:47.544242-08:00","closed_at":"2026-01-10T20:03:47.544205-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-9w3s","title":"Improve test coverage for internal/lockfile (42.0% → 60%)","description":"The lockfile package has only 42.0% test coverage. Lock file handling is critical for preventing data corruption in concurrent scenarios.\n\nCurrent coverage: 42.0%\nTarget coverage: 60%","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-13T20:43:08.47488-08:00","updated_at":"2025-12-15T16:12:59.163093-08:00","closed_at":"2025-12-14T15:20:51.463282-08:00"} -{"id":"bd-9wg8g","title":"Review PR #1033: Fix jj/jujutsu detached HEAD compatibility","description":"dispatched_by: beads/crew/emma\n\nEasy-win bug fix with tests. PR: https://github.com/steveyegge/beads/pull/1033. Fixes --auto-push for jj users in detached HEAD. Run tests, verify logic, approve and merge.","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/dave","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T17:26:07.478805-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T17:30:38.329599-08:00","closed_at":"2026-01-12T17:30:38.329599-08:00","close_reason":"PR #1033 reviewed, approved, and merged. Tests pass. Fix allows --auto-push with jj/jujutsu detached HEAD mode."} -{"id":"bd-9yvw","title":"Merge: flint-mjtmdf12","description":"branch: polecat/flint-mjtmdf12\ntarget: main\nsource_issue: flint-mjtmdf12\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T22:20:42.246333-08:00","created_by":"beads/polecats/flint","updated_at":"2026-01-01T10:43:18.620902-08:00","closed_at":"2026-01-01T10:43:18.620902-08:00","close_reason":"Stale MR - branch no longer exists on remote"} -{"id":"bd-a02wr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:54:42.032755-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T18:54:42.100213-08:00","closed_at":"2026-01-11T18:54:42.100213-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-9wg8g","title":"Review PR #1033: Fix jj/jujutsu detached HEAD compatibility","description":"dispatched_by: beads/crew/emma\n\nEasy-win bug fix with tests. PR: https://github.com/steveyegge/beads/pull/1033. Fixes --auto-push for jj users in detached HEAD. Run tests, verify logic, approve and merge.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T17:26:07.478805-08:00","updated_at":"2026-01-12T17:30:38.329599-08:00","closed_at":"2026-01-12T17:30:38.329599-08:00","close_reason":"PR #1033 reviewed, approved, and merged. Tests pass. Fix allows --auto-push with jj/jujutsu detached HEAD mode.","created_by":"beads/crew/emma"} +{"id":"bd-9yvw","title":"Merge: flint-mjtmdf12","description":"branch: polecat/flint-mjtmdf12\ntarget: main\nsource_issue: flint-mjtmdf12\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T22:20:42.246333-08:00","updated_at":"2026-01-01T10:43:18.620902-08:00","closed_at":"2026-01-01T10:43:18.620902-08:00","close_reason":"Stale MR - branch no longer exists on remote","created_by":"beads/polecats/flint"} +{"id":"bd-a02wr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T18:54:42.032755-08:00","updated_at":"2026-01-11T18:54:42.100213-08:00","closed_at":"2026-01-11T18:54:42.100213-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-a03d5e36","title":"Improve integration test coverage for stateful features","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-10-29T21:53:15.397137-07:00","updated_at":"2025-12-14T12:12:46.508474-08:00","closed_at":"2025-11-08T00:36:59.02371-08:00"} {"id":"bd-a0cp","title":"Consider using types.Status in merge package for type safety","description":"The merge package uses string for status comparison (e.g., result.Status == closed, issue.Status == StatusTombstone). The types package defines Status as a type alias with validation. While the merge package needs its own Issue struct for JSONL flexibility, it could import and use types.Status for constants to get compile-time type checking. Current code: if left == closed || right == closed. Could be: if left == string(types.StatusClosed). This is low priority since string comparison works correctly. Files: internal/merge/merge.go:44, 488, 501-521","status":"closed","priority":4,"issue_type":"task","created_at":"2025-12-05T16:37:10.690424-08:00","updated_at":"2025-12-30T18:12:30.980592-08:00","closed_at":"2025-12-30T15:54:45.570222-08:00","close_reason":"Added StatusClosed constant derived from types.StatusClosed and replaced hardcoded strings with the constant for type safety"} {"id":"bd-a101","title":"Support separate branch for beads commits","description":"Allow beads to commit to a separate branch (e.g., beads-metadata) using git worktrees to support protected main branch workflows.\n\nSolves GitHub Issue #205 - Users need to protect main branch while maintaining beads workflow.\n\nKey advantages:\n- Works on any git platform\n- Main branch stays protected \n- No disruption to user's working directory\n- Backward compatible (opt-in via config)\n- Minimal disk overhead (sparse checkout)\n\nTotal estimate: 17-24 days (4-6 weeks with parallel work)","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-02T15:21:20.098247-08:00","updated_at":"2025-12-14T12:12:46.531342-08:00","closed_at":"2025-11-04T12:36:53.772727-08:00"} {"id":"bd-a15d","title":"Add test files for internal/storage","description":"The internal/storage package has no test files at all. This package provides the storage interface abstraction.\n\nCurrent coverage: N/A (no test files)\nTarget: Add basic interface tests","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-13T20:43:11.363017-08:00","updated_at":"2025-12-23T23:56:07.002735-08:00","closed_at":"2025-12-23T23:56:07.002735-08:00"} {"id":"bd-a1691807","title":"Integration test: mutation to export latency","description":"Measure time from bd create to JSONL update. Verify \u003c500ms latency. Test with multiple rapid mutations to verify batching.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T20:49:49.105247-07:00","updated_at":"2025-10-31T12:00:43.198883-07:00","closed_at":"2025-10-31T12:00:43.198883-07:00"} -{"id":"bd-a1t0","title":"Merge: opal-1767138520240","description":"branch: polecat/opal-1767138520240\ntarget: main\nsource_issue: opal-1767138520240\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T15:59:09.905942-08:00","created_by":"beads/polecats/opal","updated_at":"2025-12-30T18:12:30.970486-08:00","closed_at":"2025-12-30T18:11:07.988358-08:00"} -{"id":"bd-a2f5a","title":"bd mol ready --gated: add daemon RPC support","description":"Currently requires --no-daemon flag. Should add RPC method to daemon for gate-ready discovery. See mol_ready_gated.go:52-61.","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-08T21:32:17.687122-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T21:32:17.687122-08:00","dependencies":[{"issue_id":"bd-a2f5a","depends_on_id":"bd-ka761","type":"discovered-from","created_at":"2026-01-08T21:32:27.942646-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-a1t0","title":"Merge: opal-1767138520240","description":"branch: polecat/opal-1767138520240\ntarget: main\nsource_issue: opal-1767138520240\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T15:59:09.905942-08:00","updated_at":"2025-12-30T18:12:30.970486-08:00","closed_at":"2025-12-30T18:11:07.988358-08:00","created_by":"beads/polecats/opal"} +{"id":"bd-a2f5a","title":"bd mol ready --gated: add daemon RPC support","description":"Currently requires --no-daemon flag. Should add RPC method to daemon for gate-ready discovery. See mol_ready_gated.go:52-61.","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-08T21:32:17.687122-08:00","updated_at":"2026-01-08T21:32:17.687122-08:00","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-a2f5a","depends_on_id":"bd-ka761","type":"discovered-from","created_at":"2026-01-08T21:32:27.942646-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-a3sj","title":"RemoveDependency fails on external deps - FK violation in dirty_issues","description":"In dependencies.go:225, RemoveDependency marks BOTH issueID and dependsOnID as dirty. For external refs (e.g., external:project:capability), dependsOnID doesn't exist in the issues table. This causes FK violation since dirty_issues.issue_id has FK constraint to issues.id.\n\nFix: Check if dependsOnID starts with 'external:' and only mark source issue as dirty, matching the logic in AddDependency (lines 162-170).\n\nRepro: bd dep rm \u003cissue\u003e external:project:capability","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-21T23:44:51.981138-08:00","updated_at":"2025-12-22T17:48:29.062424-08:00","closed_at":"2025-12-22T17:48:29.062424-08:00","dependencies":[{"issue_id":"bd-a3sj","depends_on_id":"bd-zmmy","type":"discovered-from","created_at":"2025-12-21T23:44:51.982343-08:00","created_by":"daemon"}]} {"id":"bd-a40f374f","title":"bd validate - Comprehensive health check","description":"Run all validation checks in one command.\n\nChecks:\n- Duplicates\n- Orphaned dependencies\n- Test pollution\n- Git conflicts\n\nSupports --fix-all for auto-repair.\n\nDepends on bd-cbed9619.1, bd-0dcea000, bd-31aab707, bd-9826b69a.\n\nFiles: cmd/bd/validate.go (new)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T20:02:47.956664-07:00","updated_at":"2025-10-30T17:12:58.195108-07:00","closed_at":"2025-10-29T20:02:15.318966-07:00"} {"id":"bd-a4b5","title":"Implement git worktree management","description":"Create git worktree lifecycle management for separate beads branch.\n\nTasks:\n- Create internal/git/worktree.go\n- Implement CreateBeadsWorktree(branch, path)\n- Implement RemoveBeadsWorktree(path)\n- Implement CheckWorktreeHealth(path)\n- Configure sparse checkout (only .beads/)\n- Implement SyncJSONLToWorktree()\n- Handle worktree errors gracefully\n- Auto-cleanup on config change\n\nEstimated effort: 3-4 days","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-02T15:22:35.56423-08:00","updated_at":"2025-12-14T12:12:46.566838-08:00","closed_at":"2025-11-04T11:10:23.533055-08:00","dependencies":[{"issue_id":"bd-a4b5","depends_on_id":"bd-a101","type":"parent-child","created_at":"2025-11-02T15:22:48.359843-08:00","created_by":"stevey"}]} {"id":"bd-a5251b1a","title":"Test RPC mutation event","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T19:08:03.315443-07:00","updated_at":"2025-10-31T12:00:43.177494-07:00","closed_at":"2025-10-31T12:00:43.177494-07:00"} {"id":"bd-a557","title":"Issue 1 to reopen","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-22T14:57:44.500801209-05:00","updated_at":"2025-11-22T14:57:44.500801209-05:00","closed_at":"2025-11-07T21:57:59.910467-08:00"} {"id":"bd-a62m","title":"Update version to 0.33.2 in version.go","description":"Edit cmd/bd/version.go line 17:\n\n```go\nVersion = \"0.33.2\"\n```\n\nVerify with: `grep 'Version =' cmd/bd/version.go`","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T16:10:13.760384-08:00","updated_at":"2025-12-21T17:29:31.791368-08:00","deleted_at":"2025-12-21T17:29:31.791368-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-a854","title":"Break run-bump-script into individual version-update steps","description":"dispatched_by: gastown/crew/max\n\nReplace the monolithic `run-bump-script` step with individual steps for each file:\n\n## Steps to Create\n\n1. **bump-version-go** - Update cmd/bd/version.go\n```bash\nsed -i \"\" \"s/Version = \\\"[^\\\"]*\\\"/Version = \\\"{{version}}\\\"/\" cmd/bd/version.go\n```\n\n2. **bump-plugin-json** - Update .claude-plugin/*.json\n```bash\njq \".version = \\\"{{version}}\\\"\" .claude-plugin/plugin.json \u003e tmp \u0026\u0026 mv tmp .claude-plugin/plugin.json\njq \".plugins[0].version = \\\"{{version}}\\\"\" .claude-plugin/marketplace.json \u003e tmp \u0026\u0026 mv tmp .claude-plugin/marketplace.json\n```\n\n3. **bump-mcp-python** - Update MCP package\n```bash\nsed -i \"\" \"s/version = \\\"[^\\\"]*\\\"/version = \\\"{{version}}\\\"/\" integrations/beads-mcp/pyproject.toml\nsed -i \"\" \"s/__version__ = \\\"[^\\\"]*\\\"/__version__ = \\\"{{version}}\\\"/\" integrations/beads-mcp/src/beads_mcp/__init__.py\n```\n\n4. **bump-npm-package** - Update npm package\n```bash\njq \".version = \\\"{{version}}\\\"\" npm-package/package.json \u003e tmp \u0026\u0026 mv tmp npm-package/package.json\n```\n\n5. **bump-hook-templates** - Update hook versions\n```bash\nfor f in cmd/bd/templates/hooks/*; do\n sed -i \"\" \"s/# bd-hooks-version: .*/# bd-hooks-version: {{version}}/\" \"$f\"\ndone\n```\n\n6. **bump-readme** - Update README badge\n```bash\nsed -i \"\" \"s/Alpha (v[^)]*)/Alpha (v{{version}})/\" README.md\n```\n\n7. **stamp-changelog** - Add date to [Unreleased]\n```bash\nDATE=$(date +%Y-%m-%d)\nsed -i \"\" \"s/## \\[Unreleased\\]/## [Unreleased]\\n\\n## [{{version}}] - $DATE/\" CHANGELOG.md\n```\n\n## Notes\n- Each step should have `needs` pointing to the previous step\n- Commands should work on both macOS and Linux (may need platform detection)\n- The existing update-changelog step handles content; stamp-changelog just adds the date","status":"closed","priority":1,"issue_type":"task","assignee":"beads/crew/dave","created_at":"2026-01-07T00:45:28.971662-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T21:37:51.5555-08:00","closed_at":"2026-01-07T21:37:51.5555-08:00","close_reason":"Replaced run-bump-script with 7 individual steps in beads-release.formula.toml: bump-version-go, bump-plugin-json, bump-mcp-python, bump-npm-package, bump-hook-templates, bump-readme, stamp-changelog. Each step has explicit commands and verify steps. Removed outdated JSON formula.","dependencies":[{"issue_id":"bd-a854","depends_on_id":"bd-z8xz","type":"parent-child","created_at":"2026-01-07T00:45:40.458262-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-a854","title":"Break run-bump-script into individual version-update steps","description":"dispatched_by: gastown/crew/max\n\nReplace the monolithic `run-bump-script` step with individual steps for each file:\n\n## Steps to Create\n\n1. **bump-version-go** - Update cmd/bd/version.go\n```bash\nsed -i \"\" \"s/Version = \\\"[^\\\"]*\\\"/Version = \\\"{{version}}\\\"/\" cmd/bd/version.go\n```\n\n2. **bump-plugin-json** - Update .claude-plugin/*.json\n```bash\njq \".version = \\\"{{version}}\\\"\" .claude-plugin/plugin.json \u003e tmp \u0026\u0026 mv tmp .claude-plugin/plugin.json\njq \".plugins[0].version = \\\"{{version}}\\\"\" .claude-plugin/marketplace.json \u003e tmp \u0026\u0026 mv tmp .claude-plugin/marketplace.json\n```\n\n3. **bump-mcp-python** - Update MCP package\n```bash\nsed -i \"\" \"s/version = \\\"[^\\\"]*\\\"/version = \\\"{{version}}\\\"/\" integrations/beads-mcp/pyproject.toml\nsed -i \"\" \"s/__version__ = \\\"[^\\\"]*\\\"/__version__ = \\\"{{version}}\\\"/\" integrations/beads-mcp/src/beads_mcp/__init__.py\n```\n\n4. **bump-npm-package** - Update npm package\n```bash\njq \".version = \\\"{{version}}\\\"\" npm-package/package.json \u003e tmp \u0026\u0026 mv tmp npm-package/package.json\n```\n\n5. **bump-hook-templates** - Update hook versions\n```bash\nfor f in cmd/bd/templates/hooks/*; do\n sed -i \"\" \"s/# bd-hooks-version: .*/# bd-hooks-version: {{version}}/\" \"$f\"\ndone\n```\n\n6. **bump-readme** - Update README badge\n```bash\nsed -i \"\" \"s/Alpha (v[^)]*)/Alpha (v{{version}})/\" README.md\n```\n\n7. **stamp-changelog** - Add date to [Unreleased]\n```bash\nDATE=$(date +%Y-%m-%d)\nsed -i \"\" \"s/## \\[Unreleased\\]/## [Unreleased]\\n\\n## [{{version}}] - $DATE/\" CHANGELOG.md\n```\n\n## Notes\n- Each step should have `needs` pointing to the previous step\n- Commands should work on both macOS and Linux (may need platform detection)\n- The existing update-changelog step handles content; stamp-changelog just adds the date","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-07T00:45:28.971662-08:00","updated_at":"2026-01-07T21:37:51.5555-08:00","closed_at":"2026-01-07T21:37:51.5555-08:00","close_reason":"Replaced run-bump-script with 7 individual steps in beads-release.formula.toml: bump-version-go, bump-plugin-json, bump-mcp-python, bump-npm-package, bump-hook-templates, bump-readme, stamp-changelog. Each step has explicit commands and verify steps. Removed outdated JSON formula.","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-a854","depends_on_id":"bd-z8xz","type":"parent-child","created_at":"2026-01-07T00:45:40.458262-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-a9699011","title":"GH#146: No color showing in terminal for some users","description":"User reports color not working in macOS (Taho 26.0.1) with iTerm 3.6.4 and Terminal.app, despite color working elsewhere in terminal. Python rich and printf escape codes work.\n\nNeed to investigate:\n- Is NO_COLOR env var set?\n- Terminal type detection?\n- fatih/color library configuration\n- Does bd list show colors? bd ready? bd init?\n- What's the output of: echo $TERM, echo $NO_COLOR","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-10-24T22:26:36.22163-07:00","updated_at":"2025-12-14T12:12:46.555685-08:00","closed_at":"2025-11-08T00:54:40.47956-08:00"} {"id":"bd-a9y3","title":"Add composite index (status, priority) for common list queries","description":"SearchIssues and GetReadyWork frequently filter by status and sort by priority. Currently uses two separate indexes.\n\n**Common query pattern (queries.go:1646-1647):**\n```sql\nWHERE status = ? \nORDER BY priority ASC, created_at DESC\n```\n\n**Problem:** Index merge or full scan when both columns are used.\n\n**Solution:** Add migration:\n```sql\nCREATE INDEX IF NOT EXISTS idx_issues_status_priority ON issues(status, priority);\n```\n\n**Expected impact:** Faster bd list, bd ready with filters. Particularly noticeable at 10K+ issues.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-22T22:58:50.515275-08:00","updated_at":"2025-12-22T23:15:13.838976-08:00","closed_at":"2025-12-22T23:15:13.838976-08:00","dependencies":[{"issue_id":"bd-a9y3","depends_on_id":"bd-h0we","type":"discovered-from","created_at":"2025-12-22T22:58:50.516072-08:00","created_by":"daemon"}]} -{"id":"bd-aao7v","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T01:38:34.139071-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-13T01:38:34.205201-08:00","closed_at":"2026-01-13T01:38:34.205201-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-aao7v","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T01:38:34.139071-08:00","updated_at":"2026-01-13T01:38:34.205201-08:00","closed_at":"2026-01-13T01:38:34.205201-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} {"id":"bd-aay","title":"Warn on invalid depends_on references in workflow templates","description":"workflow.go:780-781 silently skips invalid dependency names. Should log a warning when a depends_on reference doesn't match any task ID in the template.","status":"tombstone","priority":4,"issue_type":"task","created_at":"2025-12-17T22:23:04.325253-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-abjn","title":"Review PR #917: fix(doctor) duplicate detection","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #917 from aaron-sangster.\n\nPR: https://github.com/anthropics/beads/pull/917\nChanges: +281/-3, 2 files (cmd/bd/doctor/validation.go, test)\n\nFix: align duplicate detection with bd duplicates (bd-sali)\n\nReview checklist:\n- [ ] Code quality and style\n- [ ] Tests pass\n- [ ] Logic is correct\n- [ ] Approve or request changes","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/grip","created_at":"2026-01-05T19:09:19.254024-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-05T19:11:50.451499-08:00","closed_at":"2026-01-05T19:11:50.451499-08:00","close_reason":"PR #917 reviewed and merged"} +{"id":"bd-abjn","title":"Review PR #917: fix(doctor) duplicate detection","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #917 from aaron-sangster.\n\nPR: https://github.com/anthropics/beads/pull/917\nChanges: +281/-3, 2 files (cmd/bd/doctor/validation.go, test)\n\nFix: align duplicate detection with bd duplicates (bd-sali)\n\nReview checklist:\n- [ ] Code quality and style\n- [ ] Tests pass\n- [ ] Logic is correct\n- [ ] Approve or request changes","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-05T19:09:19.254024-08:00","updated_at":"2026-01-05T19:11:50.451499-08:00","closed_at":"2026-01-05T19:11:50.451499-08:00","close_reason":"PR #917 reviewed and merged","created_by":"beads/crew/emma"} {"id":"bd-abjw","title":"Consider consolidating config.yaml parsing into shared utility","description":"Multiple places parse config.yaml with custom structs:\n\n1. **autoimport.go:148** - `localConfig{SyncBranch}`\n2. **main.go:310** - strings.Contains for no-db (fragile, see bd-r6k2)\n3. **doctor.go:863** - strings.Contains for no-db (fragile, see bd-r6k2)\n4. **internal/config/config.go** - Uses viper (but caches at startup, problematic for tests)\n\nConsider creating a shared utility in `internal/configfile/` or extending the viper config:\n\n```go\n// internal/configfile/yaml.go\ntype YAMLConfig struct {\n SyncBranch string `yaml:\"sync-branch\"`\n NoDb bool `yaml:\"no-db\"`\n IssuePrefix string `yaml:\"issue-prefix\"`\n Author string `yaml:\"author\"`\n}\n\nfunc LoadYAML(beadsDir string) (*YAMLConfig, error) {\n // Parse config.yaml with proper YAML library\n}\n```\n\nBenefits:\n- Single source of truth for config.yaml structure\n- Proper YAML parsing everywhere\n- Easier to add new config fields\n\nTrade-off: May add complexity for simple one-off reads.","status":"hooked","priority":4,"issue_type":"task","created_at":"2025-12-07T02:03:26.067311-08:00","updated_at":"2025-12-30T18:12:30.984817-08:00"} {"id":"bd-ad5e","title":"Add AI planning docs management guidance to bd onboard (GH-196)","description":"Enhanced bd onboard command to provide guidance for managing AI-generated planning documents (Claude slop).\n\nAddresses GitHub issue #196: https://github.com/steveyegge/beads/issues/196\n\nChanges:\n- Added Managing AI-Generated Planning Documents section to bd onboard\n- Recommends using history/ directory for ephemeral planning files\n- Updated AGENTS.md to demonstrate the pattern\n- Added comprehensive tests\n\nCommit: d46177d","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-02T17:11:33.183636-08:00","updated_at":"2025-11-02T17:12:05.599633-08:00","closed_at":"2025-11-02T17:12:05.599633-08:00"} {"id":"bd-admx","title":"Perpetual 'JSONL file hash mismatch detected (bd-160)' warning","description":"After cleanup operations, every bd command shows:\n```\n⚠️ WARNING: JSONL file hash mismatch detected (bd-160)\n This indicates JSONL and export_hashes are out of sync.\n Clearing export_hashes to force full re-export.\n```\n\nThe warning appears repeatedly even after the hash is supposedly cleared. This suggests either:\n1. The clear isn't persisting\n2. Something keeps causing the mismatch\n3. The detection logic has a bug\n\n**Impact:** Warning fatigue - users ignore it, may miss real issues.\n\n**Expected behavior:** After clearing export_hashes once, subsequent operations should not show the warning unless there's a new mismatch.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-15T17:28:56.361302-08:00","updated_at":"2025-12-16T00:54:56.46055-08:00","closed_at":"2025-12-16T00:54:56.46055-08:00"} {"id":"bd-adoe","title":"Add --hard flag to bd cleanup to permanently cull tombstones before cutoff date","description":"Currently tombstones persist for 30 days before cleanup prunes them. Need an official way to force-cull tombstones earlier than the default TTL, for scenarios like cleaning house after extended absence where resurrection from old clones is not a concern. Proposed: bd cleanup --hard --older-than N to bypass the 30-day tombstone TTL.","status":"tombstone","priority":2,"issue_type":"feature","created_at":"2025-12-16T01:17:31.064914-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"feature"} {"id":"bd-aec5439f","title":"Update LINTING.md with current baseline","description":"After cleanup, document the remaining acceptable baseline in LINTING.md so we can track regression.","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-10-27T18:53:10.38679-07:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-aewm","title":"bd-hv01: Missing cleanup of .merged temp file on failure","description":"Problem: deletion_tracking.go:49 creates tmpMerged file but does not clean up on failure, causing disk space leak and potential interference with subsequent syncs.\n\nFix: Add defer os.Remove(tmpMerged) after creating temp file path.\n\nFiles: cmd/bd/deletion_tracking.go:38-89","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-06T18:16:24.326719-08:00","updated_at":"2025-11-06T18:46:55.924379-08:00","closed_at":"2025-11-06T18:46:55.924379-08:00","dependencies":[{"issue_id":"bd-aewm","depends_on_id":"bd-rbxi","type":"parent-child","created_at":"2025-11-06T18:19:15.061462-08:00","created_by":"daemon"}]} -{"id":"bd-ag35","title":"Add daemon RPC endpoints for config and stale check","description":"Two TODOs request daemon RPC endpoints:\n\n1. cmd/bd/create.go:208 - Add RPC method to get config in daemon mode\n2. cmd/bd/mol_stale.go:67 - Add RPC endpoint for stale check\n\nThese would allow the CLI to query the daemon for configuration and staleness checks instead of reading directly.\n\nFiles:\n- cmd/bd/create.go:208\n- cmd/bd/mol_stale.go:67","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-28T16:32:38.113203-08:00","created_by":"stevey","updated_at":"2025-12-30T15:44:43.354686-08:00","closed_at":"2025-12-30T07:00:00.209327-08:00","close_reason":"Implemented GetConfig and MolStale RPC endpoints. CLI commands now work in daemon mode."} -{"id":"bd-ag4hc","title":"Issue 1 to reopen","status":"open","priority":1,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:11.807498-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:12.094895-08:00"} -{"id":"bd-agye","title":"Merge: quartz-1767083470444","description":"branch: polecat/quartz-1767083470444\ntarget: main\nsource_issue: quartz-1767083470444\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T00:36:39.737365-08:00","created_by":"beads/polecats/quartz","updated_at":"2025-12-30T00:54:59.2694-08:00","closed_at":"2025-12-30T00:54:59.2694-08:00","close_reason":"Branch polecat/quartz-1767083470444 no longer exists on remote"} +{"id":"bd-ag35","title":"Add daemon RPC endpoints for config and stale check","description":"Two TODOs request daemon RPC endpoints:\n\n1. cmd/bd/create.go:208 - Add RPC method to get config in daemon mode\n2. cmd/bd/mol_stale.go:67 - Add RPC endpoint for stale check\n\nThese would allow the CLI to query the daemon for configuration and staleness checks instead of reading directly.\n\nFiles:\n- cmd/bd/create.go:208\n- cmd/bd/mol_stale.go:67","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-28T16:32:38.113203-08:00","updated_at":"2025-12-30T15:44:43.354686-08:00","closed_at":"2025-12-30T07:00:00.209327-08:00","close_reason":"Implemented GetConfig and MolStale RPC endpoints. CLI commands now work in daemon mode.","created_by":"stevey"} +{"id":"bd-ag4hc","title":"Issue 1 to reopen","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-11T18:16:11.807498-08:00","updated_at":"2026-01-11T18:16:12.094895-08:00","created_by":"beads/crew/wolf"} +{"id":"bd-agye","title":"Merge: quartz-1767083470444","description":"branch: polecat/quartz-1767083470444\ntarget: main\nsource_issue: quartz-1767083470444\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T00:36:39.737365-08:00","updated_at":"2025-12-30T00:54:59.2694-08:00","closed_at":"2025-12-30T00:54:59.2694-08:00","close_reason":"Branch polecat/quartz-1767083470444 no longer exists on remote","created_by":"beads/polecats/quartz"} {"id":"bd-ahot","title":"HANDOFF: Molecule bonding - spawn done, bond next","description":"## Context\n\nContinuing work on bd-o5xe (Molecule bonding epic).\n\n## Completed This Session\n\n- bd-mh4w: Renamed bond to spawn in mol.go\n- bd-rnnr: Added BondRef data model to types.go\n\n## Now Unblocked\n\n1. bd-o91r: Polymorphic bond command [P1]\n2. bd-iw4z: Compound visualization [P2] \n3. bd-iq19: Distill command [P2]\n\n## Key Files\n\n- cmd/bd/mol.go\n- internal/types/types.go\n\n## Next Step\n\nStart with bd-o91r. Run bd show bd-o5xe for context.","status":"closed","priority":1,"issue_type":"message","created_at":"2025-12-21T01:32:13.940757-08:00","updated_at":"2025-12-21T11:24:30.171048-08:00","closed_at":"2025-12-21T11:24:30.171048-08:00"} {"id":"bd-aim2r","title":"Digest: mol-refinery-patrol","description":"Patrol: queue empty, no branches to merge","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T00:20:40.702333-08:00","updated_at":"2026-01-11T00:20:40.702333-08:00","closed_at":"2026-01-11T00:20:40.702288-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-air9","title":"bd create --parent allocates colliding child IDs when child_counters not backfilled","description":"GH#728: When explicit child IDs are created (--id bd-test.1) or imported from JSONL, child_counters table isn't updated. Then --parent auto-allocation starts at 1 and collides.\n\nFix approach: Update child_counters when creating issues with explicit hierarchical IDs that match \u003cparent\u003e.\u003cn\u003e pattern.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-24T14:27:11.990171-08:00","updated_at":"2025-12-24T14:28:40.154864-08:00","closed_at":"2025-12-24T14:28:40.154864-08:00"} {"id":"bd-ajdv","title":"Push release v0.33.2 to remote","description":"Push the commit and tag:\n\n```bash\ngit push \u0026\u0026 git push --tags\n```\n\nVerify on GitHub that the tag appears in releases.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T16:10:13.762058-08:00","updated_at":"2025-12-21T17:29:31.791368-08:00","deleted_at":"2025-12-21T17:29:31.791368-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-ak82y","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:40:33.875901-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T18:40:33.916139-08:00","closed_at":"2026-01-09T18:40:33.916139-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ak82y","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:40:33.875901-08:00","updated_at":"2026-01-09T18:40:33.916139-08:00","closed_at":"2026-01-09T18:40:33.916139-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-akcq","title":"Design molecule step hooks","description":"Hooks that fire between molecule steps. When a bead in a molecule closes, trigger hook that can spawn agent attention to prompts/requests. This enables reactive orchestration - the molecule drives, hooks respond. Gas Town feature built on Beads data plane.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-20T23:52:18.63487-08:00","updated_at":"2025-12-21T17:53:19.284064-08:00","closed_at":"2025-12-21T17:53:19.284064-08:00","dependencies":[{"issue_id":"bd-akcq","depends_on_id":"bd-icnf","type":"blocks","created_at":"2025-12-20T23:52:25.935274-08:00","created_by":"daemon"}]} {"id":"bd-aks","title":"Add tests for import/export functionality","description":"Import/export functions like ImportIssues, exportToJSONLWithStore, and AutoImportIfNewer have low coverage. These are critical for data integrity and multi-repo synchronization.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-18T07:00:53.067006711-07:00","updated_at":"2025-12-19T09:54:57.011374404-07:00","closed_at":"2025-12-18T10:13:11.821944156-07:00","dependencies":[{"issue_id":"bd-aks","depends_on_id":"bd-6ss","type":"discovered-from","created_at":"2025-12-18T07:00:53.07185201-07:00","created_by":"matt"}]} -{"id":"bd-al282","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T13:44:45.644592-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T13:44:45.723035-08:00","closed_at":"2026-01-13T13:44:45.723035-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-al3zd","title":"Review and merge PR #1064: fix dbPath/socketPath confusion in daemon startup","description":"dispatched_by: beads/crew/emma\n\nPR: https://github.com/steveyegge/beads/pull/1064\n\n**Problem:** When using short socket paths (workspaces with paths \u003e103 chars), filepath.Dir(socketPath) returns /tmp/beads-XXXXX/ instead of the actual .beads/ directory. This caused TryDaemonLock to look in the wrong location, always return false, clean up the startlock, and recurse infinitely causing stack overflow.\n\n**Fix:** Changed 4 occurrences in acquireStartLock, handleStaleLock, handleExistingSocket, and getPIDFileForSocket to use filepath.Dir(dbPath) which correctly points to .beads/.\n\n**Review tasks:**\n1. Verify the fix logic is correct\n2. Run tests: go test ./cmd/bd/...\n3. If tests pass, merge with: gh pr merge 1064 --repo steveyegge/beads --squash\n4. Close this bead after merge","notes":"Requested changes - tests need updating for getCurrentBranchOrHEAD signature change","status":"open","priority":2,"issue_type":"task","assignee":"beads/crew/dave","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:03:41.082642-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T23:30:55.291782-08:00"} -{"id":"bd-alpw2","title":"Skip custom type validation during multi-repo import","description":"Modify the multi-repo import path to skip validation of custom types. Trust that child repos validated their own issues.\n\nLocation: internal/storage/sqlite/multirepo.go\n\nThe key insight: during `importJSONLFile`, when calling `upsertIssueInTx`, we need to either:\n1. Pass a flag indicating this is a multi-repo import (trust custom types), OR\n2. Modify `ValidateWithCustom` to accept a \"trust custom\" flag, OR \n3. Simply not validate types at all during import (simplest)\n\nOption 3 is probably cleanest - the JSONL came from a valid Beads database, so trust it entirely for types. We can still validate other fields.\n\nTest:\n- Create child repo with custom type `pm`\n- Create issue with type `pm` in child\n- Export child to JSONL\n- Hydrate into parent (which doesn't have `pm`)\n- Should succeed (currently fails)","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-09T14:05:53.284005-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T14:11:49.840608-08:00","closed_at":"2026-01-09T14:11:49.840608-08:00","close_reason":"Implemented federation trust model: ValidateForImport trusts non-built-in types from child repos","dependencies":[{"issue_id":"bd-alpw2","depends_on_id":"bd-9ji4z","type":"parent-child","created_at":"2026-01-09T14:06:00.837653-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-alpw2","depends_on_id":"bd-dqwuf","type":"blocks","created_at":"2026-01-09T14:06:00.901711-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-al282","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T13:44:45.644592-08:00","updated_at":"2026-01-13T13:44:45.723035-08:00","closed_at":"2026-01-13T13:44:45.723035-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-al3zd","title":"Review and merge PR #1064: fix dbPath/socketPath confusion in daemon startup","description":"dispatched_by: beads/crew/emma\n\nPR: https://github.com/steveyegge/beads/pull/1064\n\n**Problem:** When using short socket paths (workspaces with paths \u003e103 chars), filepath.Dir(socketPath) returns /tmp/beads-XXXXX/ instead of the actual .beads/ directory. This caused TryDaemonLock to look in the wrong location, always return false, clean up the startlock, and recurse infinitely causing stack overflow.\n\n**Fix:** Changed 4 occurrences in acquireStartLock, handleStaleLock, handleExistingSocket, and getPIDFileForSocket to use filepath.Dir(dbPath) which correctly points to .beads/.\n\n**Review tasks:**\n1. Verify the fix logic is correct\n2. Run tests: go test ./cmd/bd/...\n3. If tests pass, merge with: gh pr merge 1064 --repo steveyegge/beads --squash\n4. Close this bead after merge","notes":"Requested changes - tests need updating for getCurrentBranchOrHEAD signature change","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T23:03:41.082642-08:00","updated_at":"2026-01-12T23:30:55.291782-08:00","created_by":"beads/crew/emma"} +{"id":"bd-alpw2","title":"Skip custom type validation during multi-repo import","description":"Modify the multi-repo import path to skip validation of custom types. Trust that child repos validated their own issues.\n\nLocation: internal/storage/sqlite/multirepo.go\n\nThe key insight: during `importJSONLFile`, when calling `upsertIssueInTx`, we need to either:\n1. Pass a flag indicating this is a multi-repo import (trust custom types), OR\n2. Modify `ValidateWithCustom` to accept a \"trust custom\" flag, OR \n3. Simply not validate types at all during import (simplest)\n\nOption 3 is probably cleanest - the JSONL came from a valid Beads database, so trust it entirely for types. We can still validate other fields.\n\nTest:\n- Create child repo with custom type `pm`\n- Create issue with type `pm` in child\n- Export child to JSONL\n- Hydrate into parent (which doesn't have `pm`)\n- Should succeed (currently fails)","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-09T14:05:53.284005-08:00","updated_at":"2026-01-09T14:11:49.840608-08:00","closed_at":"2026-01-09T14:11:49.840608-08:00","close_reason":"Implemented federation trust model: ValidateForImport trusts non-built-in types from child repos","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-alpw2","depends_on_id":"bd-9ji4z","type":"parent-child","created_at":"2026-01-09T14:06:00.837653-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-alpw2","depends_on_id":"bd-dqwuf","type":"blocks","created_at":"2026-01-09T14:06:00.901711-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-an4s","title":"Version Bump: 0.32.1","description":"Release checklist for version 0.32.1. Patch release with MCP output control params and pin field fix.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-20T21:53:01.315592-08:00","updated_at":"2025-12-20T21:57:13.909864-08:00","closed_at":"2025-12-20T21:57:13.909864-08:00"} {"id":"bd-anv2","title":"Implement bd mol stale command","description":"Add command to detect complete-but-unclosed molecules.\n\n**Definition of stale:**\nA molecule is stale if:\n1. All children are closed (Completed \u003e= Total)\n2. Root issue is still open\n3. Not assigned to anyone\n4. Not pinned to any hook\n5. AND it's blocking other assigned work (graph pressure)\n\n**Command design:**\n```bash\nbd mol stale # List stale mols\nbd mol stale --json # Machine-readable\nbd mol stale --blocking # Only show those blocking other work\nbd mol stale --all # Include orphaned-but-not-blocking\n```\n\n**Output:**\n```\nStale molecules (complete but unclosed, blocking work):\n\n bd-xyz \"Version bump v0.36.0\" (blocking: bd-abc, bd-def)\n → Close with: bd close bd-xyz\n → Or squash: bd mol squash bd-xyz\n\nOrphaned molecules (complete but unclosed, not blocking):\n bd-uvw \"Old patrol cycle\"\n → Consider: bd mol burn bd-uvw\n```\n\n**Implementation:**\n1. Query all open issues with children (potential mols)\n2. Compute progress for each (Completed vs Total)\n3. Filter to complete ones\n4. Check assigned_to field\n5. Check pinned status (may need gt integration)\n6. Check if blocking other assigned work\n\nDoes NOT use time-based staleness. Graph pressure only.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-24T18:23:24.27032-08:00","updated_at":"2025-12-25T12:31:14.315214-08:00","closed_at":"2025-12-25T12:31:14.315214-08:00"} -{"id":"bd-anv5q","title":"Session ended: gt-beads-beads/refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:38:25.435465-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T19:38:25.488285-08:00","closed_at":"2026-01-12T19:38:25.488285-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-anv5q","title":"Session ended: gt-beads-beads/refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:38:25.435465-08:00","updated_at":"2026-01-12T19:38:25.488285-08:00","closed_at":"2026-01-12T19:38:25.488285-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-ao0s","title":"bd graph crashes with --no-daemon on closed issues","description":"The `bd graph` command panics with nil pointer dereference when using `--no-daemon` flag on an issue with closed children.\n\n**Reproduction:**\n```bash\nbd graph bd-qqc --no-daemon\n# panic: runtime error: invalid memory address or nil pointer dereference\n# in main.computeDependencyCounts\n```\n\n**Stack trace:**\n```\npanic: runtime error: invalid memory address or nil pointer dereference\n[signal SIGSEGV: segmentation violation code=0x2 addr=0x20 pc=0x1010bdfb0]\n\ngoroutine 1 [running]:\nmain.computeDependencyCounts(...)\n /Users/stevey/gt/beads/crew/emma/cmd/bd/graph.go:428\nmain.renderGraph(0x1400033bb80, 0x0)\n /Users/stevey/gt/beads/crew/emma/cmd/bd/graph.go:307 +0x300\n```\n\n**Location:** cmd/bd/graph.go:428 - computeDependencyCounts() not handling nil case","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-18T22:57:36.972585-08:00","updated_at":"2025-12-20T01:13:29.206821-08:00","closed_at":"2025-12-20T01:13:29.206821-08:00"} -{"id":"bd-aonh9","title":"Test isolation: TestGetNextChildID_ConfigMaxDepth modifies global config state","description":"The new test in internal/storage/sqlite/child_id_test.go modifies global config state:\n\n```go\nconfig.Set(\"hierarchy.max-depth\", 5)\ndefer config.Set(\"hierarchy.max-depth\", 3) // Reset to default after test\n```\n\nThis could cause flaky tests if tests run in parallel and share the config singleton.\n\nOptions:\n1. Use t.Setenv() if config supports env var override\n2. Add config.Reset() or scoped config for tests\n3. Mark test as t.Parallel()-incompatible\n\nLow priority - tests currently pass.","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-10T13:36:15.500091-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-10T13:36:15.500091-08:00","labels":["test"]} -{"id":"bd-apgyq","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T21:21:44.736568-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T21:21:44.769667-08:00","closed_at":"2026-01-09T21:21:44.769667-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-aonh9","title":"Test isolation: TestGetNextChildID_ConfigMaxDepth modifies global config state","description":"The new test in internal/storage/sqlite/child_id_test.go modifies global config state:\n\n```go\nconfig.Set(\"hierarchy.max-depth\", 5)\ndefer config.Set(\"hierarchy.max-depth\", 3) // Reset to default after test\n```\n\nThis could cause flaky tests if tests run in parallel and share the config singleton.\n\nOptions:\n1. Use t.Setenv() if config supports env var override\n2. Add config.Reset() or scoped config for tests\n3. Mark test as t.Parallel()-incompatible\n\nLow priority - tests currently pass.","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-10T13:36:15.500091-08:00","updated_at":"2026-01-10T13:36:15.500091-08:00","created_by":"beads/crew/fang"} +{"id":"bd-apgyq","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T21:21:44.736568-08:00","updated_at":"2026-01-09T21:21:44.769667-08:00","closed_at":"2026-01-09T21:21:44.769667-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-aq3s","title":"Merge: bd-u2sc.3","description":"branch: polecat/Modular\ntarget: main\nsource_issue: bd-u2sc.3\nrig: beads","status":"closed","priority":3,"issue_type":"merge-request","created_at":"2025-12-23T13:47:14.281479-08:00","updated_at":"2025-12-23T19:12:08.354548-08:00","closed_at":"2025-12-23T19:12:08.354548-08:00"} {"id":"bd-ar2","title":"Code review follow-up for bd-dvd and bd-ymj fixes","description":"Track improvements and issues identified during code review of parent resurrection (bd-dvd) and export metadata (bd-ymj) bug fixes.\n\n## Context\nCode review identified several areas for improvement:\n- Code duplication in metadata updates\n- Missing multi-repo support\n- Test coverage gaps\n- Potential race conditions\n\n## Related Issues\nOriginal bugs fixed: bd-dvd, bd-ymj\n\n## Goals\n- Eliminate code duplication\n- Add multi-repo support where needed\n- Improve test coverage\n- Address edge cases","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-11-21T10:24:05.78635-05:00","updated_at":"2025-11-22T14:57:44.501624057-05:00","closed_at":"2025-11-21T15:04:48.692231-05:00"} {"id":"bd-ar2.1","title":"Extract duplicated metadata update code in daemon_sync.go","description":"## Problem\nThe same 22-line metadata update block appears identically in both:\n- createExportFunc (lines 309-328)\n- createSyncFunc (lines 520-539)\n\nThis violates DRY principle and makes maintenance harder.\n\n## Solution\nExtract to helper function:\n\n```go\n// updateExportMetadata updates last_import_hash and related metadata after a successful export.\n// This prevents \"JSONL content has changed since last import\" errors on subsequent exports (bd-ymj fix).\nfunc updateExportMetadata(ctx context.Context, store storage.Storage, jsonlPath string, log daemonLogger) {\n currentHash, err := computeJSONLHash(jsonlPath)\n if err != nil {\n log.log(\"Warning: failed to compute JSONL hash for metadata update: %v\", err)\n return\n }\n \n if err := store.SetMetadata(ctx, \"last_import_hash\", currentHash); err != nil {\n log.log(\"Warning: failed to update last_import_hash: %v\", err)\n }\n \n exportTime := time.Now().Format(time.RFC3339)\n if err := store.SetMetadata(ctx, \"last_import_time\", exportTime); err != nil {\n log.log(\"Warning: failed to update last_import_time: %v\", err)\n }\n \n // Store mtime for fast-path optimization\n if jsonlInfo, statErr := os.Stat(jsonlPath); statErr == nil {\n mtimeStr := fmt.Sprintf(\"%d\", jsonlInfo.ModTime().Unix())\n if err := store.SetMetadata(ctx, \"last_import_mtime\", mtimeStr); err != nil {\n log.log(\"Warning: failed to update last_import_mtime: %v\", err)\n }\n }\n}\n```\n\n## Files\n- cmd/bd/daemon_sync.go\n\n## Benefits\n- Easier maintenance\n- Single source of truth\n- Consistent behavior","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-21T10:24:18.888412-05:00","updated_at":"2025-11-21T10:47:24.430037-05:00","closed_at":"2025-11-21T10:47:24.430037-05:00","dependencies":[{"issue_id":"bd-ar2.1","depends_on_id":"bd-ar2","type":"parent-child","created_at":"2025-11-21T10:24:18.889171-05:00","created_by":"daemon"}]} @@ -848,19 +847,19 @@ {"id":"bd-ar2.7","title":"Add edge case tests for GetNextChildID parent resurrection","description":"## Current Coverage\nTestGetNextChildID_ResurrectParent tests happy path only:\n- Parent exists in JSONL\n- Resurrection succeeds\n\n## Missing Test Cases\n\n### 1. Parent Not in JSONL\n- Parent doesn't exist in DB\n- Parent doesn't exist in JSONL either\n- Should return: \"could not be resurrected from JSONL history\"\n\n### 2. JSONL File Missing\n- Parent doesn't exist in DB\n- No issues.jsonl file exists\n- Should handle gracefully\n\n### 3. Malformed JSONL\n- Parent doesn't exist in DB\n- JSONL file exists but has invalid JSON\n- Should skip bad lines, continue searching\n\n### 4. Concurrent Resurrections\n- Multiple goroutines call GetNextChildID with same parent\n- Only one should resurrect, others should succeed\n- Test for race conditions\n\n### 5. Deeply Nested Missing Parents\n- Creating bd-abc.1.2.1 where:\n - bd-abc exists\n - bd-abc.1 missing (should fail with current fix)\n- Related to bd-ar2.4\n\n### 6. Content Hash Mismatch\n- Parent in JSONL has different content_hash than expected\n- Should still resurrect (content_hash is for integrity, not identity)\n\n## Files\n- internal/storage/sqlite/child_id_test.go\n\n## Implementation\n```go\nfunc TestGetNextChildID_ResurrectParent_NotInJSONL(t *testing.T) { ... }\nfunc TestGetNextChildID_ResurrectParent_NoJSONL(t *testing.T) { ... }\nfunc TestGetNextChildID_ResurrectParent_MalformedJSONL(t *testing.T) { ... }\nfunc TestGetNextChildID_ResurrectParent_Concurrent(t *testing.T) { ... }\n```","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-21T10:25:46.661849-05:00","updated_at":"2025-11-22T14:57:44.511464732-05:00","closed_at":"2025-11-21T11:40:47.686231-05:00","dependencies":[{"issue_id":"bd-ar2.7","depends_on_id":"bd-ar2","type":"parent-child","created_at":"2025-11-21T10:25:46.66235-05:00","created_by":"daemon"}]} {"id":"bd-ar2.8","title":"Add edge case tests for export metadata updates","description":"## Current Coverage\nTestExportUpdatesMetadata tests basic happy path only.\n\n## Missing Test Cases\n\n### 1. Multi-Repo Mode\n- Export with multi-repo configuration\n- Verify metadata updated for ALL JSONL files\n- Critical gap (related to bd-ar2.2)\n\n### 2. computeJSONLHash Failure\n- JSONL file deleted/inaccessible after export\n- Should log warning, not crash\n- Verify behavior on next export\n\n### 3. SetMetadata Failures\n- Database write-protected\n- Disk full\n- Should log warnings, continue\n\n### 4. os.Stat Failure\n- JSONL file deleted after export, before stat\n- Should handle gracefully (mtime just not updated)\n\n### 5. Concurrent Exports\n- Two daemon instances export simultaneously\n- Verify metadata doesn't get corrupted\n- Race condition test\n\n### 6. Clock Skew\n- System time goes backward between exports\n- Verify mtime handling still works\n\n### 7. Partial Export Failure\n- Multi-repo mode: some exports succeed, some fail\n- What metadata should be updated?\n\n### 8. Large JSONL Files\n- Performance test with large files (10k+ issues)\n- Verify hash computation doesn't timeout\n\n## Files\n- cmd/bd/daemon_sync_test.go\n\n## Implementation Priority\n1. Multi-repo test (P1 - related to critical issue)\n2. Failure handling tests (P2)\n3. Performance/edge cases (P3)","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-21T10:25:59.526543-05:00","updated_at":"2025-11-22T14:57:44.51553077-05:00","closed_at":"2025-11-21T14:39:53.143561-05:00","dependencies":[{"issue_id":"bd-ar2.8","depends_on_id":"bd-ar2","type":"parent-child","created_at":"2025-11-21T10:25:59.527032-05:00","created_by":"daemon"}]} {"id":"bd-ar2.9","title":"Fix variable shadowing in GetNextChildID resurrection code","description":"## Problem\nMinor variable shadowing in hash_ids.go:\n\n```go\n// Line 33: err declared here\nerr := s.db.QueryRowContext(ctx, `SELECT COUNT(*) FROM issues WHERE id = ?`, parentID).Scan(\u0026count)\n\n// Line 38: err reused/shadowed here\nresurrected, err := s.TryResurrectParent(ctx, parentID)\n```\n\nWhile Go allows this, it can be confusing and some linters flag it.\n\n## Solution\nUse different variable name:\n\n```go\nresurrected, resurrectErr := s.TryResurrectParent(ctx, parentID)\nif resurrectErr != nil {\n return \"\", fmt.Errorf(\"failed to resurrect parent %s: %w\", parentID, resurrectErr)\n}\n```\n\n## Files\n- internal/storage/sqlite/hash_ids.go:38\n\n## Priority\nLow - code works correctly, just a style improvement","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-21T10:26:09.734162-05:00","updated_at":"2025-11-22T14:57:44.517727699-05:00","closed_at":"2025-11-21T11:25:23.408878-05:00","dependencies":[{"issue_id":"bd-ar2.9","depends_on_id":"bd-ar2","type":"parent-child","created_at":"2025-11-21T10:26:09.734618-05:00","created_by":"daemon"}]} -{"id":"bd-arjb","title":"bd sync fails from crew dirs with .beads/redirect pointing outside repo","description":"## Problem\n\n`bd sync` fails at the final git-status check when run from a crew directory that uses `.beads/redirect` to point to a shared beads directory in another repo.\n\n```\nError: checking git status after re-export: git status failed: exit status 128\n```\n\nThe underlying error is:\n```\nfatal: /path/to/mayor/rig/.beads: is outside repository at '/path/to/crew/wolf'\n```\n\n## Root Cause\n\n`gitHasBeadsChanges()` in `cmd/bd/sync_git.go:93-111` runs:\n```go\nstatusCmd := exec.CommandContext(ctx, \"git\", \"status\", \"--porcelain\", beadsDir)\n```\n\nWhen `beadsDir` resolves to a path outside the current git repo (via redirect), git fails.\n\n## Affected Scenario\n\n- Crew workers (`crew/wolf`) with `.beads/redirect` → `../../mayor/rig/.beads`\n- The redirect points to a different git clone\n- Sync actually succeeds (commit/push/pull/import all work) but fails at final validation\n\n## Workaround\n\nRun `bd sync` from the directory containing the actual `.beads/` (e.g., `mayor/rig`).\n\n## Suggested Fix\n\n`gitHasBeadsChanges()` should detect redirects and run git commands from the directory containing the actual `.beads/`, not from cwd.","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/wolf","created_at":"2026-01-05T19:33:33.258774-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-05T19:57:26.056945-08:00","closed_at":"2026-01-05T19:57:26.056945-08:00","close_reason":"Fixed: gitHasBeadsChanges() and gitHasUncommittedBeadsChanges() now detect redirects and run git commands from the target repository directory"} -{"id":"bd-aryq","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:34:10.753092-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:34:10.787662-08:00","closed_at":"2026-01-07T00:34:10.787662-08:00","close_reason":"auto-closed session event"} +{"id":"bd-arjb","title":"bd sync fails from crew dirs with .beads/redirect pointing outside repo","description":"## Problem\n\n`bd sync` fails at the final git-status check when run from a crew directory that uses `.beads/redirect` to point to a shared beads directory in another repo.\n\n```\nError: checking git status after re-export: git status failed: exit status 128\n```\n\nThe underlying error is:\n```\nfatal: /path/to/mayor/rig/.beads: is outside repository at '/path/to/crew/wolf'\n```\n\n## Root Cause\n\n`gitHasBeadsChanges()` in `cmd/bd/sync_git.go:93-111` runs:\n```go\nstatusCmd := exec.CommandContext(ctx, \"git\", \"status\", \"--porcelain\", beadsDir)\n```\n\nWhen `beadsDir` resolves to a path outside the current git repo (via redirect), git fails.\n\n## Affected Scenario\n\n- Crew workers (`crew/wolf`) with `.beads/redirect` → `../../mayor/rig/.beads`\n- The redirect points to a different git clone\n- Sync actually succeeds (commit/push/pull/import all work) but fails at final validation\n\n## Workaround\n\nRun `bd sync` from the directory containing the actual `.beads/` (e.g., `mayor/rig`).\n\n## Suggested Fix\n\n`gitHasBeadsChanges()` should detect redirects and run git commands from the directory containing the actual `.beads/`, not from cwd.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-05T19:33:33.258774-08:00","updated_at":"2026-01-05T19:57:26.056945-08:00","closed_at":"2026-01-05T19:57:26.056945-08:00","close_reason":"Fixed: gitHasBeadsChanges() and gitHasUncommittedBeadsChanges() now detect redirects and run git commands from the target repository directory","created_by":"beads/crew/wolf"} +{"id":"bd-aryq","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:34:10.753092-08:00","updated_at":"2026-01-07T00:34:10.787662-08:00","closed_at":"2026-01-07T00:34:10.787662-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-au0","title":"Command Set Standardization \u0026 Flag Consistency","description":"Comprehensive improvements to bd command set based on 2025 audit findings.\n\n## Background\nSee docs/command-audit-2025.md for detailed analysis.\n\n## Goals\n1. Standardize flag naming and behavior across all commands\n2. Add missing flags for feature parity\n3. Fix naming confusion\n4. Improve consistency in JSON output\n\n## Success Criteria\n- All mutating commands support --dry-run (no --preview variants)\n- bd update supports label operations\n- bd search has filter parity with bd list\n- Priority flags accept both int and P0-P4 format everywhere\n- JSON output is consistent across all commands","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-11-21T21:05:55.672749-05:00","updated_at":"2025-12-25T22:34:51.78882-08:00","closed_at":"2025-12-25T22:34:51.78882-08:00"} {"id":"bd-au0.10","title":"Add global verbosity flags (--verbose, --quiet)","description":"Add consistent verbosity controls across all commands.\n\n**Current state:**\n- bd init has --quiet flag\n- No other commands have verbosity controls\n- Debug output controlled by BD_VERBOSE env var\n\n**Proposal:**\nAdd persistent flags:\n- --verbose / -v: Enable debug output\n- --quiet / -q: Suppress non-essential output\n\n**Implementation:**\n- Add to rootCmd.PersistentFlags()\n- Replace BD_VERBOSE checks with flag checks\n- Standardize output levels:\n * Quiet: Errors only\n * Normal: Errors + success messages\n * Verbose: Errors + success + debug info\n\n**Files to modify:**\n- cmd/bd/main.go (add flags)\n- internal/debug/debug.go (respect flags)\n- Update all commands to respect quiet mode\n\n**Testing:**\n- Verify --verbose shows debug output\n- Verify --quiet suppresses normal output\n- Ensure errors always show regardless of mode","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-21T21:08:21.600209-05:00","updated_at":"2025-12-25T22:34:40.197801-08:00","closed_at":"2025-12-25T22:34:40.197801-08:00","dependencies":[{"issue_id":"bd-au0.10","depends_on_id":"bd-au0","type":"parent-child","created_at":"2025-11-21T21:08:21.602557-05:00","created_by":"daemon"}]} {"id":"bd-au0.5","title":"Add date and priority filters to bd search","description":"Add date and priority filters to bd search for parity with bd list.\n\n## Current State\nbd search supports: --status, --type, --assignee, --label, --limit\nbd list supports: all of the above PLUS date ranges and priority filters\n\n## Filters to Add\n\n### Priority Filters\n```bash\nbd search \"query\" --priority 1 # Exact priority\nbd search \"query\" --priority-min 0 # P0 and above (higher priority)\nbd search \"query\" --priority-max 2 # P2 and below (lower priority)\n```\n\n### Date Filters\n```bash\nbd search \"query\" --created-after 2025-01-01\nbd search \"query\" --created-before 2025-12-31\nbd search \"query\" --updated-after 2025-01-01\nbd search \"query\" --closed-after 2025-01-01\n```\n\n### Content Filters\n```bash\nbd search \"query\" --desc-contains \"bug\"\nbd search \"query\" --notes-contains \"todo\"\nbd search \"query\" --empty-description # Issues with no description\nbd search \"query\" --no-assignee # Unassigned issues\nbd search \"query\" --no-labels # Issues without labels\n```\n\n## Files to Modify\n\n### 1. cmd/bd/search.go\nAdd flag definitions in init():\n```go\nsearchCmd.Flags().IntP(\"priority\", \"p\", -1, \"Filter by exact priority (0-4)\")\nsearchCmd.Flags().Int(\"priority-min\", -1, \"Filter by minimum priority\")\nsearchCmd.Flags().Int(\"priority-max\", -1, \"Filter by maximum priority\")\nsearchCmd.Flags().String(\"created-after\", \"\", \"Filter by creation date (YYYY-MM-DD)\")\nsearchCmd.Flags().String(\"created-before\", \"\", \"Filter by creation date\")\nsearchCmd.Flags().String(\"updated-after\", \"\", \"Filter by update date\")\nsearchCmd.Flags().String(\"updated-before\", \"\", \"Filter by update date\")\nsearchCmd.Flags().String(\"closed-after\", \"\", \"Filter by close date\")\nsearchCmd.Flags().String(\"closed-before\", \"\", \"Filter by close date\")\nsearchCmd.Flags().String(\"desc-contains\", \"\", \"Filter by description content\")\nsearchCmd.Flags().String(\"notes-contains\", \"\", \"Filter by notes content\")\nsearchCmd.Flags().Bool(\"empty-description\", false, \"Filter issues with empty description\")\nsearchCmd.Flags().Bool(\"no-assignee\", false, \"Filter unassigned issues\")\nsearchCmd.Flags().Bool(\"no-labels\", false, \"Filter issues without labels\")\n```\n\n### 2. internal/rpc/protocol.go\nUpdate SearchArgs struct:\n```go\ntype SearchArgs struct {\n Query string\n Filter types.IssueFilter\n // Already has most fields via IssueFilter\n}\n```\n\nNote: types.IssueFilter already has these fields - just need to wire them up!\n\n### 3. cmd/bd/search.go Run function\nParse flags and populate filter:\n```go\nif priority, _ := cmd.Flags().GetInt(\"priority\"); priority \u003e= 0 {\n filter.Priority = \u0026priority\n}\nif createdAfter, _ := cmd.Flags().GetString(\"created-after\"); createdAfter != \"\" {\n t, err := time.Parse(\"2006-01-02\", createdAfter)\n if err != nil {\n FatalError(\"invalid date format for --created-after: %v\", err)\n }\n filter.CreatedAfter = \u0026t\n}\n// ... similar for other flags\n```\n\n## Implementation Steps\n\n1. **Check types.IssueFilter** - verify all needed fields exist\n2. **Add flags to search.go** init()\n3. **Parse flags** in Run function\n4. **Pass to SearchIssues** via filter\n5. **Test all combinations**\n\n## Testing\n```bash\n# Create test issues\nbd create \"Test P1\" -p 1\nbd create \"Test P2\" -p 2 --description \"Has description\"\n\n# Test filters\nbd search \"\" --priority 1\nbd search \"\" --priority-min 0 --priority-max 1\nbd search \"\" --empty-description\nbd search \"\" --desc-contains \"description\"\n```\n\n## Success Criteria\n- All filters work in both direct and daemon mode\n- Date parsing handles YYYY-MM-DD format\n- --json output includes filtered results\n- Help text documents all new flags","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-21T21:07:05.496726-05:00","updated_at":"2025-12-23T13:38:28.475606-08:00","closed_at":"2025-12-23T13:38:28.475606-08:00","dependencies":[{"issue_id":"bd-au0.5","depends_on_id":"bd-au0","type":"parent-child","created_at":"2025-11-21T21:07:05.497762-05:00","created_by":"daemon"},{"issue_id":"bd-au0.5","depends_on_id":"bd-iz5t","type":"parent-child","created_at":"2025-12-23T12:44:07.657303-08:00","created_by":"daemon"}]} {"id":"bd-au0.6","title":"Add comprehensive filters to bd export","description":"Enhance bd export with filtering options for selective exports.\n\n**Currently only has:**\n- --status\n\n**Add filters:**\n- --label, --label-any\n- --assignee\n- --type\n- --priority, --priority-min, --priority-max\n- --created-after, --created-before\n- --updated-after, --updated-before\n\n**Use case:**\n- Export only open issues: bd export --status open\n- Export high-priority bugs: bd export --type bug --priority-max 1\n- Export recent issues: bd export --created-after 2025-01-01\n\n**Files to modify:**\n- cmd/bd/export.go\n- Reuse filter logic from list.go","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-21T21:07:19.431307-05:00","updated_at":"2025-12-23T23:44:45.602324-08:00","closed_at":"2025-12-23T23:44:45.602324-08:00","dependencies":[{"issue_id":"bd-au0.6","depends_on_id":"bd-au0","type":"parent-child","created_at":"2025-11-21T21:07:19.432983-05:00","created_by":"daemon"}]} -{"id":"bd-au0.7","title":"Audit and standardize JSON output across all commands","description":"Ensure consistent JSON format and error handling when --json flag is used.\n\n**Scope:**\n1. Verify all commands respect --json flag\n2. Standardize success response format\n3. Standardize error response format\n4. Document JSON schemas\n\n**Commands to audit:**\n- Core CRUD: create, update, delete, show, list, search ✓\n- Queries: ready, blocked, stale, count, stats, status\n- Deps: dep add/remove/tree/cycles\n- Labels: label commands\n- Comments: comments add/list/delete\n- Epics: epic status/close-eligible\n- Export/import: already support --json ✓\n\n**Testing:**\n- Success cases return valid JSON\n- Error cases return valid JSON (not plain text)\n- Consistent field naming (snake_case vs camelCase)\n- Array vs object wrapping consistency","notes":"## Audit Complete (2025-12-25)\n\n### Findings\n\n**✓ All commands support --json flag**\n- Query commands: ready, blocked, stale, count, stats, status\n- Dep commands: add, remove, tree, cycles \n- Label commands: add, remove, list, list-all\n- Comments: list, add\n- Epic: status, close-eligible\n\n**✓ Field naming is consistent**\n- All fields use snake_case: created_at, issue_type, dependency_count, etc.\n\n**✗ Error output is INCONSISTENT**\n- Only bd show uses FatalErrorRespectJSON (returns JSON errors)\n- All other commands use fmt.Fprintf(os.Stderr, ...) (returns plain text)\n\n### Files needing fixes\n\n| File | stderr writes | Commands |\n|------|---------------|----------|\n| show.go | 51 | update, close, edit |\n| dep.go | 41 | dep add/remove/tree/cycles |\n| label.go | 19 | label add/remove/list |\n| comments.go | ~10 | comments add/list |\n| epic.go | ~5 | epic status/close-eligible |\n\n### Follow-up\n\nCreated epic bd-28sq to track fixing all error handlers.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-21T21:07:35.304424-05:00","updated_at":"2025-12-25T13:32:32.460786-08:00","closed_at":"2025-12-25T13:32:32.460786-08:00","dependencies":[{"issue_id":"bd-au0.7","depends_on_id":"bd-au0","type":"parent-child","created_at":"2025-11-21T21:07:35.305663-05:00","created_by":"daemon"}],"comments":[{"id":4,"issue_id":"bd-au0.7","author":"stevey","text":"Progress on JSON standardization:\n\n## Completed\n1. **Fixed `bd comments list` null output** - Now returns `[]` instead of `null` for empty comments\n2. **Added `FatalErrorRespectJSON` helper** in errors.go - Pattern for JSON-aware error output\n3. **Fixed flag shadowing** - Removed local `--json` flags from show/update/close that shadowed the global persistent flag\n4. **Updated show command** - Error handlers now use `FatalErrorRespectJSON` as reference implementation\n\n## Audit Results\n- Query commands (ready, blocked, stale, count, stats, status): ✓ All support --json correctly\n- Dep commands (tree, cycles): ✓ All support --json correctly \n- Label commands: ✓ Returns [] for empty\n- Comments: ✓ Fixed null→[]\n- Epic commands (status, close-eligible): ✓ All support --json correctly\n\n## Remaining Work\n- Other commands (list, create, etc.) still use `fmt.Fprintf(os.Stderr, ...)` for errors - could be updated to use `FatalErrorRespectJSON` for JSON error output\n- JSON schema documentation not yet created","created_at":"2025-12-24T07:53:38Z"}]} +{"id":"bd-au0.7","title":"Audit and standardize JSON output across all commands","description":"Ensure consistent JSON format and error handling when --json flag is used.\n\n**Scope:**\n1. Verify all commands respect --json flag\n2. Standardize success response format\n3. Standardize error response format\n4. Document JSON schemas\n\n**Commands to audit:**\n- Core CRUD: create, update, delete, show, list, search ✓\n- Queries: ready, blocked, stale, count, stats, status\n- Deps: dep add/remove/tree/cycles\n- Labels: label commands\n- Comments: comments add/list/delete\n- Epics: epic status/close-eligible\n- Export/import: already support --json ✓\n\n**Testing:**\n- Success cases return valid JSON\n- Error cases return valid JSON (not plain text)\n- Consistent field naming (snake_case vs camelCase)\n- Array vs object wrapping consistency","notes":"## Audit Complete (2025-12-25)\n\n### Findings\n\n**✓ All commands support --json flag**\n- Query commands: ready, blocked, stale, count, stats, status\n- Dep commands: add, remove, tree, cycles \n- Label commands: add, remove, list, list-all\n- Comments: list, add\n- Epic: status, close-eligible\n\n**✓ Field naming is consistent**\n- All fields use snake_case: created_at, issue_type, dependency_count, etc.\n\n**✗ Error output is INCONSISTENT**\n- Only bd show uses FatalErrorRespectJSON (returns JSON errors)\n- All other commands use fmt.Fprintf(os.Stderr, ...) (returns plain text)\n\n### Files needing fixes\n\n| File | stderr writes | Commands |\n|------|---------------|----------|\n| show.go | 51 | update, close, edit |\n| dep.go | 41 | dep add/remove/tree/cycles |\n| label.go | 19 | label add/remove/list |\n| comments.go | ~10 | comments add/list |\n| epic.go | ~5 | epic status/close-eligible |\n\n### Follow-up\n\nCreated epic bd-28sq to track fixing all error handlers.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-21T21:07:35.304424-05:00","updated_at":"2025-12-25T13:32:32.460786-08:00","closed_at":"2025-12-25T13:32:32.460786-08:00","dependencies":[{"issue_id":"bd-au0.7","depends_on_id":"bd-au0","type":"parent-child","created_at":"2025-11-21T21:07:35.305663-05:00","created_by":"daemon"}]} {"id":"bd-au0.8","title":"Improve clean vs cleanup command naming/documentation","description":"Clarify the difference between bd clean and bd cleanup to reduce user confusion.\n\n**Current state:**\n- bd clean: Remove temporary artifacts (.beads/bd.sock, logs, etc.)\n- bd cleanup: Delete old closed issues from database\n\n**Options:**\n1. Rename for clarity:\n - bd clean → bd clean-temp\n - bd cleanup → bd cleanup-issues\n \n2. Keep names but improve help text and documentation\n\n3. Add prominent warnings in help output\n\n**Preferred approach:** Option 2 (improve documentation)\n- Update short/long descriptions in commands\n- Add examples to help text\n- Update README.md\n- Add cross-references in help output\n\n**Files to modify:**\n- cmd/bd/clean.go\n- cmd/bd/cleanup.go\n- README.md or ADVANCED.md","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-21T21:07:49.960534-05:00","updated_at":"2025-12-23T23:48:00.594734-08:00","closed_at":"2025-12-23T23:48:00.594734-08:00","dependencies":[{"issue_id":"bd-au0.8","depends_on_id":"bd-au0","type":"parent-child","created_at":"2025-11-21T21:07:49.962743-05:00","created_by":"daemon"}]} {"id":"bd-au0.9","title":"Review and document rarely-used commands","description":"Document use cases or consider deprecation for infrequently-used commands.\n\n**Commands to review:**\n1. bd rename-prefix - How often is this used? Document use cases\n2. bd detect-pollution - Consider integrating into bd validate\n3. bd migrate-hash-ids - One-time migration, keep but document as legacy\n\n**For each command:**\n- Document typical use cases\n- Add examples to help text\n- Consider if it should be a subcommand instead\n- Add deprecation warning if appropriate\n\n**Not changing:**\n- duplicates ✓ (useful for data quality)\n- repair-deps ✓ (useful for fixing broken refs)\n- restore ✓ (critical for compacted issues)\n- compact ✓ (performance feature)\n\n**Deliverable:**\n- Updated help text\n- Documentation in ADVANCED.md\n- Deprecation plan if needed","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-21T21:08:05.588275-05:00","updated_at":"2025-12-23T23:50:04.180989-08:00","closed_at":"2025-12-23T23:50:04.180989-08:00","dependencies":[{"issue_id":"bd-au0.9","depends_on_id":"bd-au0","type":"parent-child","created_at":"2025-11-21T21:08:05.59003-05:00","created_by":"daemon"}]} {"id":"bd-auf1","title":"Clean up snapshot files after successful merge","description":"After a successful 3-way merge and import during 'bd sync', the snapshot files (beads.base.jsonl, beads.left.jsonl, and their .meta.json files) are left in the .beads/ directory indefinitely.\n\nThese files are only needed temporarily during the merge process:\n- beads.base.jsonl: snapshot from last successful import\n- beads.left.jsonl: snapshot before git pull\n\nOnce the merge succeeds and the new JSONL is imported, these files serve no purpose and should be cleaned up.\n\nCurrent behavior:\n- sync.go:269 calls updateBaseSnapshot() after successful import\n- UpdateBase() updates beads.base.jsonl to the new state\n- beads.left.jsonl is never removed\n- Both files accumulate in .beads/ directory\n\nExpected behavior:\n- After successful merge and import, clean up both snapshot files\n- Only retain snapshots between sync operations (create on export, use during merge, clean up after import)\n\nThe cleanup logic exists (SnapshotManager.Cleanup()) but is only called on validation failures (deletion_tracking.go:48), not on success.\n\nDiscovered in vc project where stale snapshot files from Nov 8 merge were still present.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-08T22:39:56.460778-08:00","updated_at":"2025-11-08T22:45:40.5809-08:00","closed_at":"2025-11-08T22:45:40.5809-08:00"} -{"id":"bd-avxi","title":"Merge: opal-mjwb5yov","description":"branch: polecat/opal-mjwb5yov\ntarget: main\nsource_issue: opal-mjwb5yov\nrig: beads\nagent_bead: gt-beads-polecat-opal","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-01T19:25:41.421501-08:00","created_by":"beads/polecats/opal","updated_at":"2026-01-01T19:27:07.580453-08:00","closed_at":"2026-01-01T19:27:07.580453-08:00","close_reason":"No branch pushed - verification task with no code changes"} +{"id":"bd-avxi","title":"Merge: opal-mjwb5yov","description":"branch: polecat/opal-mjwb5yov\ntarget: main\nsource_issue: opal-mjwb5yov\nrig: beads\nagent_bead: gt-beads-polecat-opal","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-01T19:25:41.421501-08:00","updated_at":"2026-01-01T19:27:07.580453-08:00","closed_at":"2026-01-01T19:27:07.580453-08:00","close_reason":"No branch pushed - verification task with no code changes","created_by":"beads/polecats/opal"} {"id":"bd-awmf","title":"Merge: bd-dtl8","description":"branch: polecat/dag\ntarget: main\nsource_issue: bd-dtl8\nrig: beads","status":"closed","priority":1,"issue_type":"merge-request","created_at":"2025-12-23T20:47:15.147476-08:00","updated_at":"2025-12-23T21:21:57.690692-08:00","closed_at":"2025-12-23T21:21:57.690692-08:00"} -{"id":"bd-ay5fl","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T05:44:38.411568-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T05:44:38.474273-08:00","closed_at":"2026-01-11T05:44:38.474273-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ay5fl","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T05:44:38.411568-08:00","updated_at":"2026-01-11T05:44:38.474273-08:00","closed_at":"2026-01-11T05:44:38.474273-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-aydr","title":"Add bd reset command for clean slate restart","description":"Implement a `bd reset` command to reset beads to a clean starting state.\n\n## Context\nGitHub issue #479 - users sometimes get beads into an invalid state after updates, and there's no clean way to start fresh. The git backup/restore mechanism that protects against accidental deletion also makes it hard to intentionally reset.\n\n## Design\n\n### Command Interface\n```\nbd reset [--hard] [--force] [--backup] [--dry-run] [--no-init]\n```\n\n| Flag | Effect |\n|------|--------|\n| `--hard` | Also remove from git index and commit |\n| `--force` | Skip confirmation prompt |\n| `--backup` | Create `.beads-backup-{timestamp}/` first |\n| `--dry-run` | Preview what would happen |\n| `--no-init` | Don't re-initialize after clearing |\n\n### Reset Levels\n1. **Soft Reset (default)** - Kill daemons, clear .beads/, re-init. Git history unchanged.\n2. **Hard Reset (`--hard`)** - Also git rm and commit the removal, then commit fresh state.\n\n### Implementation Flow\n1. Validate .beads/ exists\n2. If not --force: show impact summary, prompt confirmation\n3. If --backup: copy .beads/ to .beads-backup-{timestamp}/\n4. Kill daemons\n5. If --hard: git rm + commit\n6. rm -rf .beads/*\n7. If not --no-init: bd init (and git add+commit if --hard)\n8. Print summary\n\n### Safety Mechanisms\n- Confirmation prompt (skip with --force)\n- Impact summary (issue/tombstone counts)\n- Backup option\n- Dry-run preview\n- Git dirty check warning\n\n### Code Structure\n- `cmd/bd/reset.go` - CLI command\n- `internal/reset/` - Core logic package","status":"tombstone","priority":2,"issue_type":"epic","created_at":"2025-12-13T08:44:01.38379+11:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"epic"} {"id":"bd-aydr.1","title":"Implement core reset package (internal/reset)","description":"Create the core reset logic in internal/reset/ package.\n\n## Responsibilities\n- ResetOptions struct with all flag options\n- CountImpact() - count issues/tombstones that will be deleted\n- ValidateState() - check .beads/ exists, check git dirty state\n- ExecuteReset() - main reset logic (without CLI concerns)\n- Integrate with daemon killall\n\n## Interface Design\n```go\ntype ResetOptions struct {\n Hard bool // Include git operations (git rm, commit)\n Backup bool // Create backup before reset\n DryRun bool // Preview only, don't execute\n SkipInit bool // Don't re-initialize after reset\n}\n\ntype ResetResult struct {\n IssuesDeleted int\n TombstonesDeleted int\n BackupPath string // if backup was created\n DaemonsKilled int\n}\n\ntype ImpactSummary struct {\n IssueCount int\n OpenCount int\n ClosedCount int\n TombstoneCount int\n HasUncommitted bool // git dirty state\n}\n\nfunc Reset(opts ResetOptions) (*ResetResult, error)\nfunc CountImpact() (*ImpactSummary, error)\nfunc ValidateState() error\n```\n\n## IMPORTANT: CLI vs Core Separation\n- `Force` (skip confirmation) is NOT in ResetOptions - that's a CLI concern\n- Core always executes when called; CLI decides whether to prompt first\n- Keep CLI-agnostic: no prompts, no colored output, no user interaction\n- Return errors for CLI to handle with user-friendly messages\n- Unit testable in isolation\n\n## Dependencies\n- Uses daemon.KillAllDaemons() from internal/daemon/\n- Calls bd init logic after reset (unless SkipInit)","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-13T08:44:50.145364+11:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-aydr.1","depends_on_id":"bd-aydr","type":"parent-child","created_at":"2025-12-13T08:44:50.145775+11:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-aydr.2","title":"Implement backup functionality for reset","description":"Add backup capability that can be used by reset command.\n\n## Functionality\n- Copy .beads/ to .beads-backup-{timestamp}/\n- Timestamp format: YYYYMMDD-HHMMSS\n- Preserve file permissions\n- Return backup path for user feedback\n\n## Location\n`internal/reset/backup.go` - keep with reset package for now (YAGNI)\n\n## Interface\n```go\nfunc CreateBackup(beadsDir string) (backupPath string, err error)\n```\n\n## Notes\n- Simple recursive file copy, no compression needed\n- Error if backup dir already exists (unlikely with timestamp)\n- Backup directories SHOULD be gitignored\n- Add `.beads-backup-*/` pattern to .beads/.gitignore template in doctor package\n- Consider: ListBackups() for future `bd backup list` command (not for this PR)","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-13T08:44:51.306103+11:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-aydr.2","depends_on_id":"bd-aydr","type":"parent-child","created_at":"2025-12-13T08:44:51.306474+11:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} @@ -876,8 +875,8 @@ {"id":"bd-az0m","title":"Issue 1","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-22T14:57:44.52134201-05:00","updated_at":"2025-11-22T14:57:44.52134201-05:00","closed_at":"2025-11-07T21:55:09.42865-08:00","dependencies":[{"issue_id":"bd-az0m","depends_on_id":"bd-bvo2","type":"related","created_at":"2025-11-07T19:07:21.069031-08:00","created_by":"daemon"}]} {"id":"bd-azh","title":"Fix bd doctor --fix recursive message for deletions manifest","description":"When running bd doctor --fix, if the deletions manifest check fails but there are no deleted issues in git history, the fix succeeds but doesn't create the file. The check then runs again and tells user to run bd doctor --fix - the same command they just ran.\n\nFix: Create empty deletions.jsonl when hydration finds no deletions, and recognize empty file as valid in the check.\n\nFixes: https://github.com/steveyegge/beads/issues/403","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-27T12:41:09.426143-08:00","updated_at":"2025-11-27T12:41:23.521981-08:00","closed_at":"2025-11-27T12:41:23.521981-08:00"} {"id":"bd-azqv","title":"Ready issue","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-07T19:04:22.247039-08:00","updated_at":"2025-11-07T22:07:17.344986-08:00","closed_at":"2025-11-07T21:55:09.429024-08:00"} -{"id":"bd-b0fln","title":"Review and test PR #1067: fix gate list closed section display","description":"dispatched_by: beads/crew/emma","status":"closed","priority":1,"issue_type":"task","assignee":"beads/crew/fang","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:29:59.958677-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-13T11:34:02.690985-08:00","closed_at":"2026-01-13T11:34:02.690985-08:00","close_reason":"PR #1067 reviewed and approved. Build passes, tests pass, functionality verified."} -{"id":"bd-b0ii7","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:21:09.440918-08:00","created_by":"beads/refinery","updated_at":"2026-01-09T00:21:09.478881-08:00","closed_at":"2026-01-09T00:21:09.478881-08:00","close_reason":"auto-closed session event"} +{"id":"bd-b0fln","title":"Review and test PR #1067: fix gate list closed section display","description":"dispatched_by: beads/crew/emma","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-13T11:29:59.958677-08:00","updated_at":"2026-01-13T11:34:02.690985-08:00","closed_at":"2026-01-13T11:34:02.690985-08:00","close_reason":"PR #1067 reviewed and approved. Build passes, tests pass, functionality verified.","created_by":"beads/crew/emma"} +{"id":"bd-b0ii7","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:21:09.440918-08:00","updated_at":"2026-01-09T00:21:09.478881-08:00","closed_at":"2026-01-09T00:21:09.478881-08:00","close_reason":"auto-closed session event","created_by":"beads/refinery"} {"id":"bd-b121","title":"Fix :memory: database connection pool issue causing \"no such table\" errors","description":"Critical bug in v0.21.6 where :memory: databases with cache=shared create multiple connections in the pool, causing intermittent \"no such table\" errors. SQLite's shared cache for in-memory databases only works reliably with a single connection.\n\nRoot cause: Missing db.SetMaxOpenConns(1) after sql.Open() for :memory: databases.\n\nImpact: 37 test failures in VC project, affects all consumers using :memory: for testing.","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-04T00:52:56.318619-08:00","updated_at":"2025-11-05T11:31:27.50439-08:00","closed_at":"2025-11-05T00:50:00.558124-08:00"} {"id":"bd-b134","title":"Add tests for Integration Layer Implementation","description":"While implementing bd-wfmw, noticed missing tests","notes":"Reviewed existing coverage:\n- Basic test coverage exists in lib/test_beads_mail_adapter.py\n- Integration tests cover failure scenarios in tests/integration/test_mail_failures.py\n- Good coverage of: enabled/disabled modes, graceful degradation, 409 conflicts, HTTP errors, config\n- Missing: authorization headers detail, request body structure validation, concurrent reservation timing, TTL edge cases","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-08T00:20:30.804172-08:00","updated_at":"2025-11-08T02:17:04.046571-08:00","closed_at":"2025-11-08T02:17:04.046571-08:00","dependencies":[{"issue_id":"bd-b134","depends_on_id":"bd-wfmw","type":"discovered-from","created_at":"2025-11-08T00:20:30.850776-08:00","created_by":"daemon"}]} {"id":"bd-b245","title":"Add migration registry and simplify New()","description":"Create migrations.go with Migration type and registry. Change New() to: openDB -\u003e initSchema -\u003e RunMigrations(db). This removes 8+ separate migrate functions from New().","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-01T11:41:14.862623-07:00","updated_at":"2025-11-02T12:55:59.954845-08:00","closed_at":"2025-11-02T12:55:59.954854-08:00"} @@ -889,49 +888,49 @@ {"id":"bd-b54c","title":"Document Claude Code for Web SessionStart hook","description":"Create documentation for using bd in Claude Code for Web:\n\n## Documentation locations\n- README.md - Add Claude Code for Web section\n- Create docs/CLAUDE_CODE_WEB.md with detailed instructions\n\n## SessionStart hook example\n```json\n{\n \"sessionStart\": {\n \"script\": \"npm install -g @beads/bd \u0026\u0026 bd init --quiet --prefix bd || true\"\n }\n}\n```\n\n## Documentation should cover\n- How to configure SessionStart hook in .claude/settings.json\n- Verification: Check bd is installed (bd --version)\n- Basic workflow in Claude Code for Web\n- Troubleshooting common issues\n- Note about network restrictions and why npm approach works\n\n## Examples\n- Creating issues in web sandbox\n- Syncing with git in web environment\n- Using MCP server (if applicable)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-02T23:40:15.362379-08:00","updated_at":"2025-11-03T10:31:45.382915-08:00","closed_at":"2025-11-03T10:31:45.382915-08:00","dependencies":[{"issue_id":"bd-b54c","depends_on_id":"bd-febc","type":"parent-child","created_at":"2025-11-02T23:40:32.991889-08:00","created_by":"daemon"}]} {"id":"bd-b55e2ac2","title":"Fix autoimport tests for content-hash collision scoring","description":"## Overview\nThree autoimport tests are failing after bd-cbed9619.4 because they expect behavior based on the old reference-counting collision resolution, but the system now uses deterministic content-hash scoring.\n\n## Failing Tests\n1. `TestAutoImportMultipleCollisionsRemapped` - expects local versions preserved\n2. `TestAutoImportAllCollisionsRemapped` - expects local versions preserved \n3. `TestAutoImportCollisionRemapMultipleFields` - expects specific collision resolution behavior\n\n## Root Cause\nThese tests were written when ScoreCollisions used reference counting to determine which version to keep. Now it uses content-hash comparison (introduced in commit 2e87329), which produces different but deterministic results.\n\n## Example\nOld behavior: Issue with more references would be kept\nNew behavior: Issue with lexicographically lower content hash is kept\n\n## Solution\nUpdate each test to:\n1. Verify the new content-hash based behavior is correct\n2. Check that the remapped issue (not necessarily local/remote) has the expected content\n3. Ensure dependencies are preserved on the correct remapped issue\n\n## Acceptance Criteria\n- All three autoimport tests pass\n- Tests verify content-hash determinism (same collision always resolves the same way)\n- Tests check dependency preservation on remapped issues\n- Test documentation explains content-hash scoring expectations\n\n## Files to Modify\n- `cmd/bd/autoimport_collision_test.go`\n\n## Testing\nRun: `go test ./cmd/bd -run \"TestAutoImport.*Collision\" -v`","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-28T19:17:28.358028-07:00","updated_at":"2025-12-15T16:12:59.163739-08:00","closed_at":"2025-11-08T15:58:44.909873-08:00"} {"id":"bd-b5a3","title":"Extract Daemon struct and config into internal/daemonrunner","description":"Create internal/daemonrunner with Config struct and Daemon struct. Move daemon runtime logic from cmd/bd/daemon.go Run function into Daemon.Start/Stop methods.","notes":"Refactoring complete! Created internal/daemonrunner package with:\n- Config struct (config.go)\n- Daemon struct with Start/Stop methods (daemon.go)\n- RPC server lifecycle (rpc.go)\n- Sync loop implementation (sync.go)\n- Git operations (git.go)\n- Process management (process.go, flock_*.go)\n- Logger setup (logger.go)\n- Platform-specific signal handling (signals_*.go)\n- Database fingerprint validation (fingerprint.go)\n\nBuild succeeds and most daemon tests pass. Import functionality still delegated to cmd/bd (marked with TODO(bd-b5a3)).","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-01T11:41:14.843103-07:00","updated_at":"2025-11-01T20:23:46.475885-07:00","closed_at":"2025-11-01T20:23:46.475888-07:00"} -{"id":"bd-b5vnc","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:43:10.531357-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T19:43:10.600007-08:00","closed_at":"2026-01-12T19:43:10.600007-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-b5vnc","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:43:10.531357-08:00","updated_at":"2026-01-12T19:43:10.600007-08:00","closed_at":"2026-01-12T19:43:10.600007-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-b6b2","title":"Feature with design","description":"This is a description","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-10-31T21:40:34.612465-07:00","updated_at":"2025-12-14T12:12:46.498596-08:00","closed_at":"2025-11-04T11:10:23.533638-08:00"} {"id":"bd-b6xo","title":"Remove or fix ClearDirtyIssues() - race condition risk (bd-52)","description":"Code health review found internal/storage/sqlite/dirty.go still exposes old ClearDirtyIssues() method (lines 103-108) which clears ALL dirty issues without checking what was actually exported.\n\nData loss risk: If export fails after some issues written to JSONL but before ClearDirtyIssues called, changes to remaining dirty issues will be lost.\n\nThe safer ClearDirtyIssuesByID() (lines 113-132) exists and clears only exported issues.\n\nFix: Either remove old method or mark it deprecated and ensure no code paths use it.","status":"tombstone","priority":1,"issue_type":"bug","created_at":"2025-12-16T18:17:20.534625-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-b6xo","depends_on_id":"bd-tggf","type":"blocks","created_at":"2025-12-16T18:19:05.633738-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-b7d2","title":"Add sync.branch configuration","description":"Add configuration layer to support sync.branch setting via config file, environment variable, or CLI flag.\n\nTasks:\n- Add sync.branch field to config schema\n- Add BEADS_SYNC_BRANCH environment variable\n- Add --branch flag to bd init\n- Add bd config get/set sync.branch commands\n- Validation (branch name format, conflicts)\n- Config migration for existing users\n\nEstimated effort: 1-2 days","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-02T15:22:35.560141-08:00","updated_at":"2025-12-14T12:12:46.56285-08:00","closed_at":"2025-11-04T11:10:23.533913-08:00","dependencies":[{"issue_id":"bd-b7d2","depends_on_id":"bd-a101","type":"parent-child","created_at":"2025-11-02T15:22:48.356847-08:00","created_by":"stevey"}]} -{"id":"bd-b88x3","title":"bd doctor: add checks for redirect configuration health","description":"When a repo uses .beads/redirect for shared rig beads, bd doctor should verify: (1) redirect target exists and has valid beads db, (2) redirect target repo has working beads-sync worktree, (3) local repo does NOT have vestigial beads-sync worktrees (these are unused with redirects and waste space). Currently only checks if redirect file is tracked by git. See also bd-lmqhe for related redirect handling bug in restoreBeadsDirFromBranch.","status":"closed","priority":2,"issue_type":"feature","created_at":"2026-01-09T14:16:52.289792-08:00","created_by":"gastown/crew/george","updated_at":"2026-01-10T21:29:38.918223-08:00","closed_at":"2026-01-10T21:29:38.918223-08:00","close_reason":"Implemented three new bd doctor checks for redirect configuration health: (1) CheckRedirectTargetValid - verifies redirect target exists and has valid beads db, (2) CheckRedirectTargetSyncWorktree - verifies target has beads-sync worktree if using sync-branch mode, (3) CheckNoVestigialSyncWorktrees - detects unused beads-sync worktrees in redirected repos. All checks integrated into bd doctor output."} +{"id":"bd-b88x3","title":"bd doctor: add checks for redirect configuration health","description":"When a repo uses .beads/redirect for shared rig beads, bd doctor should verify: (1) redirect target exists and has valid beads db, (2) redirect target repo has working beads-sync worktree, (3) local repo does NOT have vestigial beads-sync worktrees (these are unused with redirects and waste space). Currently only checks if redirect file is tracked by git. See also bd-lmqhe for related redirect handling bug in restoreBeadsDirFromBranch.","status":"closed","priority":2,"issue_type":"feature","created_at":"2026-01-09T14:16:52.289792-08:00","updated_at":"2026-01-10T21:29:38.918223-08:00","closed_at":"2026-01-10T21:29:38.918223-08:00","close_reason":"Implemented three new bd doctor checks for redirect configuration health: (1) CheckRedirectTargetValid - verifies redirect target exists and has valid beads db, (2) CheckRedirectTargetSyncWorktree - verifies target has beads-sync worktree if using sync-branch mode, (3) CheckNoVestigialSyncWorktrees - detects unused beads-sync worktrees in redirected repos. All checks integrated into bd doctor output.","created_by":"gastown/crew/george"} {"id":"bd-b8h","title":"Refactor check-health DB access to avoid repeated path resolution","description":"The runCheckHealth lightweight checks (hintsDisabled, checkVersionMismatch, checkSyncBranchQuick) each have duplicated database path resolution logic. Extract a helper function to DRY this up.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-25T19:27:35.075929-08:00","updated_at":"2025-11-25T19:50:21.272961-08:00","closed_at":"2025-11-25T19:50:21.272961-08:00"} {"id":"bd-b92a","title":"Wire config to import pipeline","description":"Connect import.orphan_handling config to importer.go and sqlite validation functions. Pass mode flag through call chain. Implement all four modes (strict/resurrect/skip/allow) with proper error messages and logging.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-04T12:32:08.612142-08:00","updated_at":"2025-11-05T00:44:27.949021-08:00","closed_at":"2025-11-05T00:44:27.949024-08:00"} -{"id":"bd-b9orm","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:55:33.812488-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T19:55:33.876335-08:00","closed_at":"2026-01-12T19:55:33.876335-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-b9orm","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:55:33.812488-08:00","updated_at":"2026-01-12T19:55:33.876335-08:00","closed_at":"2026-01-12T19:55:33.876335-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-bb08","title":"Add ON DELETE CASCADE to child_counters schema","description":"Update schema.go child_counters table foreign key with ON DELETE CASCADE. When parent deleted, child counter should also be deleted. If parent is resurrected, counter gets recreated from scratch. Add migration for existing databases.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-04T12:32:30.681452-08:00","updated_at":"2025-11-05T11:31:27.505024-08:00","closed_at":"2025-11-05T00:55:12.427194-08:00"} -{"id":"bd-bb0qp","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T23:06:04.982987-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T23:06:05.044718-08:00","closed_at":"2026-01-11T23:06:05.044718-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-bb63y","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:28:58.54436-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T20:28:58.580461-08:00","closed_at":"2026-01-08T20:28:58.580461-08:00","close_reason":"auto-closed session event"} +{"id":"bd-bb0qp","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T23:06:04.982987-08:00","updated_at":"2026-01-11T23:06:05.044718-08:00","closed_at":"2026-01-11T23:06:05.044718-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-bb63y","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:28:58.54436-08:00","updated_at":"2026-01-08T20:28:58.580461-08:00","closed_at":"2026-01-08T20:28:58.580461-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-bc2c6191","title":"Audit Current Cache Usage","description":"Understand exactly what code depends on the storage cache","notes":"Audit complete. See CACHE_AUDIT.md for full findings.\n\nSummary:\n- Cache was already removed in commit 322ab63 (2025-10-28)\n- server_cache_storage.go deleted (~286 lines)\n- All getStorageForRequest calls replaced with s.storage\n- All environment variables removed\n- MCP multi-repo works via per-project daemon architecture\n- All tests updated and passing\n- Only stale comment in server.go needed fixing","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-27T23:02:43.506373-07:00","updated_at":"2025-12-14T12:12:46.566499-08:00","closed_at":"2025-11-06T19:48:30.520616-08:00"} {"id":"bd-bc7l","title":"Issue 2 to reopen","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-22T14:57:44.523769552-05:00","updated_at":"2025-11-22T14:57:44.523769552-05:00","closed_at":"2025-11-07T21:57:59.91095-08:00"} -{"id":"bd-bd575","title":"Fix: bd edit --wait editor issues (GH#987)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #987. bd edit has problems opening editor with --wait flag.","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/polecats/topaz","created_at":"2026-01-09T22:20:03.780193-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-10T16:36:12.885463-08:00","closed_at":"2026-01-10T16:36:12.885463-08:00","close_reason":"Already fixed in commit 279a2248. EDITOR parsing now uses strings.Fields() to split command and args."} +{"id":"bd-bd575","title":"Fix: bd edit --wait editor issues (GH#987)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #987. bd edit has problems opening editor with --wait flag.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-09T22:20:03.780193-08:00","updated_at":"2026-01-10T16:36:12.885463-08:00","closed_at":"2026-01-10T16:36:12.885463-08:00","close_reason":"Already fixed in commit 279a2248. EDITOR parsing now uses strings.Fields() to split command and args.","created_by":"beads/crew/dave"} {"id":"bd-bdaf24d5","title":"Final validation test","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-27T18:27:28.310533-07:00","updated_at":"2025-10-31T12:00:43.184995-07:00","closed_at":"2025-10-31T12:00:43.184995-07:00"} {"id":"bd-bdc9","title":"Update Homebrew formula","description":"Update the Homebrew tap with new version:\n\n```bash\n./scripts/update-homebrew.sh 0.33.2\n```\n\nThis script waits for GitHub Actions to complete (~5 min), then updates the formula with new SHA256 hashes.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T16:10:13.762399-08:00","updated_at":"2025-12-21T17:29:31.791368-08:00","deleted_at":"2025-12-21T17:29:31.791368-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-bdhn","title":"bd message: Add input validation for --importance flag","description":"The --importance flag accepts any string without validation, leading to confusing server errors.\n\n**Location:** cmd/bd/message.go:256-258\n\n**Fix:**\n- Add flag validation for: low, normal, high, urgent\n- Add shell completion support\n- Validate in runMessageSend before sending\n\n**Impact:** Better UX, prevents confusing errors","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-08T12:54:26.43027-08:00","updated_at":"2025-11-08T12:57:59.65367-08:00","closed_at":"2025-11-08T12:57:59.65367-08:00","dependencies":[{"issue_id":"bd-bdhn","depends_on_id":"bd-6uix","type":"parent-child","created_at":"2025-11-08T12:55:54.910841-08:00","created_by":"daemon"}]} -{"id":"bd-bdmwf","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T00:21:01.891501-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T00:21:01.932445-08:00","closed_at":"2026-01-11T00:21:01.932445-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-bdmwf","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T00:21:01.891501-08:00","updated_at":"2026-01-11T00:21:01.932445-08:00","closed_at":"2026-01-11T00:21:01.932445-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-be7a","title":"Create npm package structure with package.json","description":"Set up initial npm package structure for @beads/bd:\n\n## Files to create\n- npm/package.json - Package metadata, dependencies, scripts\n- npm/bin/bd - CLI wrapper script that invokes native binary\n- npm/.gitignore - Ignore downloaded binaries\n- npm/README.md - Installation and usage instructions\n\n## package.json structure\n- Name: @beads/bd (scoped package)\n- Main: index.js (exports binary path)\n- Bin: bin/bd (CLI entry point)\n- Scripts: postinstall (download binary)\n- Keywords: issue-tracker, cli, beads, bd\n- License: MIT\n\n## Bin wrapper\nSimple Node.js script that:\n- Spawns native binary with child_process.spawn\n- Passes through all arguments and stdio\n- Exits with binary's exit code","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-02T23:39:47.416779-08:00","updated_at":"2025-11-03T10:31:45.381258-08:00","closed_at":"2025-11-03T10:31:45.381258-08:00","dependencies":[{"issue_id":"bd-be7a","depends_on_id":"bd-febc","type":"parent-child","created_at":"2025-11-02T23:40:32.923859-08:00","created_by":"daemon"}]} -{"id":"bd-beads-crew-dave","title":"Crew worker dave in beads - human-managed persistent workspace.","description":"Crew worker dave in beads - human-managed persistent workspace.\n\nrole_type: crew\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: gt-crew-role\ncleanup_status: null","status":"open","priority":2,"issue_type":"agent","created_at":"2025-12-30T23:14:04.538389-08:00","created_by":"deacon","updated_at":"2026-01-13T17:51:59.679818-08:00"} -{"id":"bd-beads-crew-emma","title":"Crew worker emma in beads - human-managed persistent workspace.","description":"Crew worker emma in beads - human-managed persistent workspace.\n\nrole_type: crew\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: gt-crew-role\ncleanup_status: null","status":"open","priority":2,"issue_type":"agent","created_at":"2025-12-30T23:14:04.604042-08:00","created_by":"deacon","updated_at":"2026-01-12T01:39:30.40061-08:00"} -{"id":"bd-beads-crew-fang","title":"Crew worker fang in beads - human-managed persistent workspace.","description":"Crew worker fang in beads - human-managed persistent workspace.\n\nrole_type: crew\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: gt-crew-role\ncleanup_status: null","status":"open","priority":2,"issue_type":"agent","created_at":"2025-12-30T23:14:04.672037-08:00","created_by":"deacon","updated_at":"2026-01-13T11:34:10.312062-08:00"} -{"id":"bd-beads-crew-gastown-dennis","title":"Crew worker gastown-dennis in beads - human-managed persistent workspace.","description":"Crew worker gastown-dennis in beads - human-managed persistent workspace.\n\nrole_type: crew\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: hq-crew-role\ncleanup_status: null\nactive_mr: null\nnotification_level: null","status":"open","priority":2,"issue_type":"agent","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:40:23.718735-08:00","created_by":"gastown/crew/joe","updated_at":"2026-01-12T23:40:23.861462-08:00","labels":["gt:agent"]} -{"id":"bd-beads-crew-giles","title":"Crew worker giles in beads - human-managed persistent workspace.","description":"Crew worker giles in beads - human-managed persistent workspace.\n\nrole_type: crew\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: gt-crew-role\ncleanup_status: null\nactive_mr: null\nnotification_level: null","status":"open","priority":2,"issue_type":"agent","created_at":"2026-01-04T11:22:11.009942-08:00","created_by":"mayor","updated_at":"2026-01-13T11:38:40.579073-08:00"} -{"id":"bd-beads-crew-grip","title":"Crew worker grip in beads - human-managed persistent workspace.","description":"Crew worker grip in beads - human-managed persistent workspace.\n\nrole_type: crew\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: gt-crew-role\ncleanup_status: null","status":"open","priority":2,"issue_type":"agent","created_at":"2025-12-30T23:14:04.739788-08:00","created_by":"deacon","updated_at":"2026-01-13T11:36:22.826875-08:00"} -{"id":"bd-beads-crew-testcrew456","title":"Crew worker testcrew456 in beads - human-managed persistent workspace.","description":"Crew worker testcrew456 in beads - human-managed persistent workspace.\n\nrole_type: crew\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: hq-crew-role\ncleanup_status: null\nactive_mr: null\nnotification_level: null","status":"open","priority":2,"issue_type":"agent","created_at":"2026-01-09T22:03:44.377795-08:00","created_by":"deacon","updated_at":"2026-01-09T22:03:44.639847-08:00"} -{"id":"bd-beads-crew-wolf","title":"Crew worker wolf in beads - human-managed persistent workspace.","description":"Crew worker wolf in beads - human-managed persistent workspace.\n\nrole_type: crew\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: gt-crew-role\ncleanup_status: null","status":"open","priority":2,"issue_type":"agent","created_at":"2025-12-30T23:14:04.805884-08:00","created_by":"deacon","updated_at":"2026-01-13T11:48:20.568841-08:00"} -{"id":"bd-beads-polecat-amber","title":"bd-beads-polecat-amber","description":"bd-beads-polecat-amber\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-hnw8j\nrole_bead: hq-polecat-role\ncleanup_status: has_uncommitted\nactive_mr: bd-p4vz3\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-04T16:17:26.278115-08:00","created_by":"mayor","updated_at":"2026-01-12T19:45:53.874293-08:00","labels":["gt:agent"],"deleted_at":"2026-01-12T19:45:53.874293-08:00","deleted_by":"beads/polecats/amber","delete_reason":"delete","original_type":"agent"} -{"id":"bd-beads-polecat-garnet","title":"bd-beads-polecat-garnet","description":"bd-beads-polecat-garnet\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-hmeb\nrole_bead: hq-polecat-role\ncleanup_status: null\nactive_mr: bd-o64zq\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-04T15:12:49.812132-08:00","created_by":"mayor","updated_at":"2026-01-12T20:01:41.358781-08:00","close_reason":"Polecat cleaned up","labels":["gt:agent"],"deleted_at":"2026-01-12T20:01:41.358781-08:00","deleted_by":"Steve Yegge","delete_reason":"delete","original_type":"agent"} -{"id":"bd-beads-polecat-jade","title":"bd-beads-polecat-jade","description":"bd-beads-polecat-jade\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-hnw8j\nrole_bead: hq-polecat-role\ncleanup_status: null\nactive_mr: null\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:39:05.94989-08:00","created_by":"mayor","updated_at":"2026-01-12T22:56:13.310317-08:00","labels":["gt:agent"],"deleted_at":"2026-01-12T22:56:13.310317-08:00","deleted_by":"beads/witness","delete_reason":"delete","original_type":"agent"} -{"id":"bd-beads-polecat-jasper","title":"bd-beads-polecat-jasper","description":"bd-beads-polecat-jasper\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-oos3\nrole_bead: gt-polecat-role\ncleanup_status: null\nactive_mr: bd-srhu\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-02T12:41:56.3782-08:00","created_by":"mayor","updated_at":"2026-01-12T22:56:35.492917-08:00","deleted_at":"2026-01-12T22:56:35.492917-08:00","deleted_by":"beads/witness","delete_reason":"delete","original_type":"agent"} -{"id":"bd-beads-polecat-newbot","title":"Agent: bd-beads-polecat-newbot","status":"tombstone","priority":0,"issue_type":"agent","created_at":"2026-01-02T12:25:10.273273-08:00","created_by":"beads/polecats/obsidian","updated_at":"2026-01-02T12:25:42.678762-08:00","labels":["rig:beads","role_type:polecat"],"deleted_at":"2026-01-02T12:25:42.678762-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"agent"} -{"id":"bd-beads-polecat-obsidian","title":"bd-beads-polecat-obsidian","description":"bd-beads-polecat-obsidian\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: null\nrole_bead: gt-polecat-role\ncleanup_status: has_stash\nactive_mr: bd-wlzsd\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-01T11:10:14.972102-08:00","created_by":"mayor","updated_at":"2026-01-12T22:56:35.766837-08:00","deleted_at":"2026-01-12T22:56:35.766837-08:00","deleted_by":"beads/witness","delete_reason":"delete","original_type":"agent"} -{"id":"bd-beads-polecat-onyx","title":"bd-beads-polecat-onyx","description":"bd-beads-polecat-onyx\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-w3rh\nrole_bead: gt-polecat-role\ncleanup_status: null\nactive_mr: bd-bz1g7\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-02T12:55:29.132464-08:00","created_by":"mayor","updated_at":"2026-01-12T22:56:36.040719-08:00","deleted_at":"2026-01-12T22:56:36.040719-08:00","deleted_by":"beads/witness","delete_reason":"delete","original_type":"agent"} -{"id":"bd-beads-polecat-opal","title":"bd-beads-polecat-opal","description":"bd-beads-polecat-opal\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-r24e\nrole_bead: gt-polecat-role\ncleanup_status: null\nactive_mr: bd-ypbad\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-02T16:47:13.940237-08:00","created_by":"mayor","updated_at":"2026-01-12T22:56:36.317236-08:00","labels":["gt:agent"],"deleted_at":"2026-01-12T22:56:36.317236-08:00","deleted_by":"beads/witness","delete_reason":"delete","original_type":"agent"} -{"id":"bd-beads-polecat-quartz","title":"bd-beads-polecat-quartz","description":"bd-beads-polecat-quartz\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-kbfn\nrole_bead: gt-polecat-role\ncleanup_status: null\nactive_mr: bd-600yu\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-02T12:41:40.403065-08:00","created_by":"mayor","updated_at":"2026-01-12T22:56:36.601862-08:00","labels":["gt:agent"],"deleted_at":"2026-01-12T22:56:36.601862-08:00","deleted_by":"beads/witness","delete_reason":"delete","original_type":"agent"} -{"id":"bd-beads-polecat-ruby","title":"bd-beads-polecat-ruby","description":"bd-beads-polecat-ruby\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-s2xpf\nrole_bead: hq-polecat-role\ncleanup_status: null\nactive_mr: null\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-04T16:16:58.553407-08:00","created_by":"mayor","updated_at":"2026-01-12T22:56:13.860963-08:00","labels":["gt:agent"],"deleted_at":"2026-01-12T22:56:13.860963-08:00","deleted_by":"beads/witness","delete_reason":"delete","original_type":"agent"} -{"id":"bd-beads-polecat-testbot","title":"Agent: bd-beads-polecat-testbot","status":"tombstone","priority":0,"issue_type":"agent","created_at":"2026-01-02T12:24:15.11753-08:00","created_by":"beads/polecats/obsidian","updated_at":"2026-01-02T12:24:57.611128-08:00","labels":["rig:beads","role_type:polecat"],"deleted_at":"2026-01-02T12:24:57.611128-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"agent"} -{"id":"bd-beads-polecat-topaz","title":"bd-beads-polecat-topaz","description":"bd-beads-polecat-topaz\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-3tqg\nrole_bead: gt-polecat-role\ncleanup_status: null\nactive_mr: bd-495i6\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-04T11:36:03.898913-08:00","created_by":"mayor","updated_at":"2026-01-12T22:56:36.877515-08:00","close_reason":"Polecat cleaned up","labels":["gt:agent"],"deleted_at":"2026-01-12T22:56:36.877515-08:00","deleted_by":"beads/witness","delete_reason":"delete","original_type":"agent"} -{"id":"bd-beads-refinery","title":"Refinery for beads - processes merge queue.","description":"Refinery for beads - processes merge queue.\n\nrole_type: refinery\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: gt-refinery-role\ncleanup_status: null","status":"open","priority":2,"issue_type":"agent","created_at":"2025-12-30T23:14:04.469888-08:00","created_by":"deacon","updated_at":"2026-01-06T23:53:58.624101-08:00"} -{"id":"bd-beads-witness","title":"Witness for beads - monitors polecat health and progress.","description":"Witness for beads - monitors polecat health and progress.\n\nrole_type: witness\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: gt-witness-role\ncleanup_status: null","status":"closed","priority":2,"issue_type":"agent","created_at":"2025-12-30T23:14:04.401378-08:00","created_by":"deacon","updated_at":"2026-01-10T16:33:15.727285-08:00","closed_at":"2026-01-05T19:45:45.486571-08:00","close_reason":"Polecat cleaned up","labels":["gt:agent"]} -{"id":"bd-beiz7","title":"Improve beads-release formula based on v0.47.0 learnings","description":"During the v0.47.0 release, several issues were encountered that could be addressed in the formula:\n\n## Issues Found\n\n1. **Stale CHANGELOG detection** - The draft was from Jan 8 but ~50 commits were missing. Formula should verify CHANGELOG completeness by comparing commits since last tag.\n\n2. **Half-done release detection** - CHANGELOG said 0.47.0 but code was 0.46.0. Formula should detect version mismatches upfront.\n\n3. **Dirty working tree handling** - Non-release files (.beads/config.yaml, .claude/settings.json) blocked the bump script. Formula should auto-stash unrelated changes or provide clearer guidance.\n\n4. **Multi-worktree git context** - Commit from wrong directory captured wrong files. Formula should enforce running from correct directory or handle worktrees explicitly.\n\n5. **Branch divergence recovery** - After a botched commit, branch was behind origin. Formula should check for this and guide recovery.\n\n## Suggested Improvements\n\n- Add CHANGELOG completeness check step (compare `git log \u003clast-tag\u003e..HEAD` with CHANGELOG entries)\n- Add version consistency pre-check (detect if CHANGELOG/code/tags are out of sync)\n- Add auto-stash step for non-release files before bump script\n- Add explicit working directory validation for worktree setups\n- Add branch sync verification before and after commits\n\n## Context\nRelease session: 2026-01-11, v0.47.0\nAgent: beads/crew/emma","status":"closed","priority":2,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:07:20.570809-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T18:12:44.514983-08:00","closed_at":"2026-01-11T18:12:44.514983-08:00","close_reason":"Implemented all 5 suggested improvements to beads-release formula: preflight-worktree for git context validation, enhanced preflight-git with auto-stash guidance, enhanced preflight-pull with branch sync verification, detect-half-done-release step, and verify-changelog-complete step"} -{"id":"bd-bek0f","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:42:43.507236-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-13T11:42:43.582898-08:00","closed_at":"2026-01-13T11:42:43.582898-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-beads-crew-dave","title":"Crew worker dave in beads - human-managed persistent workspace.","description":"Crew worker dave in beads - human-managed persistent workspace.\n\nrole_type: crew\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: gt-crew-role\ncleanup_status: null","status":"open","priority":2,"issue_type":"agent","created_at":"2025-12-30T23:14:04.538389-08:00","updated_at":"2026-01-13T17:51:59.679818-08:00","created_by":"deacon"} +{"id":"bd-beads-crew-emma","title":"Crew worker emma in beads - human-managed persistent workspace.","description":"Crew worker emma in beads - human-managed persistent workspace.\n\nrole_type: crew\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: gt-crew-role\ncleanup_status: null","status":"open","priority":2,"issue_type":"agent","created_at":"2025-12-30T23:14:04.604042-08:00","updated_at":"2026-01-12T01:39:30.40061-08:00","created_by":"deacon"} +{"id":"bd-beads-crew-fang","title":"Crew worker fang in beads - human-managed persistent workspace.","description":"Crew worker fang in beads - human-managed persistent workspace.\n\nrole_type: crew\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: gt-crew-role\ncleanup_status: null","status":"open","priority":2,"issue_type":"agent","created_at":"2025-12-30T23:14:04.672037-08:00","updated_at":"2026-01-13T11:34:10.312062-08:00","created_by":"deacon"} +{"id":"bd-beads-crew-gastown-dennis","title":"Crew worker gastown-dennis in beads - human-managed persistent workspace.","description":"Crew worker gastown-dennis in beads - human-managed persistent workspace.\n\nrole_type: crew\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: hq-crew-role\ncleanup_status: null\nactive_mr: null\nnotification_level: null","status":"open","priority":2,"issue_type":"agent","created_at":"2026-01-12T23:40:23.718735-08:00","updated_at":"2026-01-12T23:40:23.861462-08:00","created_by":"gastown/crew/joe"} +{"id":"bd-beads-crew-giles","title":"Crew worker giles in beads - human-managed persistent workspace.","description":"Crew worker giles in beads - human-managed persistent workspace.\n\nrole_type: crew\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: gt-crew-role\ncleanup_status: null\nactive_mr: null\nnotification_level: null","status":"open","priority":2,"issue_type":"agent","created_at":"2026-01-04T11:22:11.009942-08:00","updated_at":"2026-01-13T11:38:40.579073-08:00","created_by":"mayor"} +{"id":"bd-beads-crew-grip","title":"Crew worker grip in beads - human-managed persistent workspace.","description":"Crew worker grip in beads - human-managed persistent workspace.\n\nrole_type: crew\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: gt-crew-role\ncleanup_status: null","status":"open","priority":2,"issue_type":"agent","created_at":"2025-12-30T23:14:04.739788-08:00","updated_at":"2026-01-13T11:36:22.826875-08:00","created_by":"deacon"} +{"id":"bd-beads-crew-testcrew456","title":"Crew worker testcrew456 in beads - human-managed persistent workspace.","description":"Crew worker testcrew456 in beads - human-managed persistent workspace.\n\nrole_type: crew\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: hq-crew-role\ncleanup_status: null\nactive_mr: null\nnotification_level: null","status":"open","priority":2,"issue_type":"agent","created_at":"2026-01-09T22:03:44.377795-08:00","updated_at":"2026-01-09T22:03:44.639847-08:00","created_by":"deacon"} +{"id":"bd-beads-crew-wolf","title":"Crew worker wolf in beads - human-managed persistent workspace.","description":"Crew worker wolf in beads - human-managed persistent workspace.\n\nrole_type: crew\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: gt-crew-role\ncleanup_status: null","status":"open","priority":2,"issue_type":"agent","created_at":"2025-12-30T23:14:04.805884-08:00","updated_at":"2026-01-13T11:48:20.568841-08:00","created_by":"deacon"} +{"id":"bd-beads-polecat-amber","title":"bd-beads-polecat-amber","description":"bd-beads-polecat-amber\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-hnw8j\nrole_bead: hq-polecat-role\ncleanup_status: has_uncommitted\nactive_mr: bd-p4vz3\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-04T16:17:26.278115-08:00","updated_at":"2026-01-12T19:45:53.874293-08:00","created_by":"mayor","deleted_at":"2026-01-12T19:45:53.874293-08:00","deleted_by":"beads/polecats/amber","delete_reason":"delete","original_type":"agent"} +{"id":"bd-beads-polecat-garnet","title":"bd-beads-polecat-garnet","description":"bd-beads-polecat-garnet\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-hmeb\nrole_bead: hq-polecat-role\ncleanup_status: null\nactive_mr: bd-o64zq\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-04T15:12:49.812132-08:00","updated_at":"2026-01-12T20:01:41.358781-08:00","close_reason":"Polecat cleaned up","created_by":"mayor","deleted_at":"2026-01-12T20:01:41.358781-08:00","deleted_by":"Steve Yegge","delete_reason":"delete","original_type":"agent"} +{"id":"bd-beads-polecat-jade","title":"bd-beads-polecat-jade","description":"bd-beads-polecat-jade\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-hnw8j\nrole_bead: hq-polecat-role\ncleanup_status: null\nactive_mr: null\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-12T19:39:05.94989-08:00","updated_at":"2026-01-12T22:56:13.310317-08:00","created_by":"mayor","deleted_at":"2026-01-12T22:56:13.310317-08:00","deleted_by":"beads/witness","delete_reason":"delete","original_type":"agent"} +{"id":"bd-beads-polecat-jasper","title":"bd-beads-polecat-jasper","description":"bd-beads-polecat-jasper\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-oos3\nrole_bead: gt-polecat-role\ncleanup_status: null\nactive_mr: bd-srhu\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-02T12:41:56.3782-08:00","updated_at":"2026-01-12T22:56:35.492917-08:00","created_by":"mayor","deleted_at":"2026-01-12T22:56:35.492917-08:00","deleted_by":"beads/witness","delete_reason":"delete","original_type":"agent"} +{"id":"bd-beads-polecat-newbot","title":"Agent: bd-beads-polecat-newbot","status":"tombstone","priority":0,"issue_type":"agent","created_at":"2026-01-02T12:25:10.273273-08:00","updated_at":"2026-01-02T12:25:42.678762-08:00","created_by":"beads/polecats/obsidian","deleted_at":"2026-01-02T12:25:42.678762-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"agent"} +{"id":"bd-beads-polecat-obsidian","title":"bd-beads-polecat-obsidian","description":"bd-beads-polecat-obsidian\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: null\nrole_bead: gt-polecat-role\ncleanup_status: has_stash\nactive_mr: bd-wlzsd\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-01T11:10:14.972102-08:00","updated_at":"2026-01-12T22:56:35.766837-08:00","created_by":"mayor","deleted_at":"2026-01-12T22:56:35.766837-08:00","deleted_by":"beads/witness","delete_reason":"delete","original_type":"agent"} +{"id":"bd-beads-polecat-onyx","title":"bd-beads-polecat-onyx","description":"bd-beads-polecat-onyx\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-w3rh\nrole_bead: gt-polecat-role\ncleanup_status: null\nactive_mr: bd-bz1g7\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-02T12:55:29.132464-08:00","updated_at":"2026-01-12T22:56:36.040719-08:00","created_by":"mayor","deleted_at":"2026-01-12T22:56:36.040719-08:00","deleted_by":"beads/witness","delete_reason":"delete","original_type":"agent"} +{"id":"bd-beads-polecat-opal","title":"bd-beads-polecat-opal","description":"bd-beads-polecat-opal\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-r24e\nrole_bead: gt-polecat-role\ncleanup_status: null\nactive_mr: bd-ypbad\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-02T16:47:13.940237-08:00","updated_at":"2026-01-12T22:56:36.317236-08:00","created_by":"mayor","deleted_at":"2026-01-12T22:56:36.317236-08:00","deleted_by":"beads/witness","delete_reason":"delete","original_type":"agent"} +{"id":"bd-beads-polecat-quartz","title":"bd-beads-polecat-quartz","description":"bd-beads-polecat-quartz\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-kbfn\nrole_bead: gt-polecat-role\ncleanup_status: null\nactive_mr: bd-600yu\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-02T12:41:40.403065-08:00","updated_at":"2026-01-12T22:56:36.601862-08:00","created_by":"mayor","deleted_at":"2026-01-12T22:56:36.601862-08:00","deleted_by":"beads/witness","delete_reason":"delete","original_type":"agent"} +{"id":"bd-beads-polecat-ruby","title":"bd-beads-polecat-ruby","description":"bd-beads-polecat-ruby\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-s2xpf\nrole_bead: hq-polecat-role\ncleanup_status: null\nactive_mr: null\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-04T16:16:58.553407-08:00","updated_at":"2026-01-12T22:56:13.860963-08:00","created_by":"mayor","deleted_at":"2026-01-12T22:56:13.860963-08:00","deleted_by":"beads/witness","delete_reason":"delete","original_type":"agent"} +{"id":"bd-beads-polecat-testbot","title":"Agent: bd-beads-polecat-testbot","status":"tombstone","priority":0,"issue_type":"agent","created_at":"2026-01-02T12:24:15.11753-08:00","updated_at":"2026-01-02T12:24:57.611128-08:00","created_by":"beads/polecats/obsidian","deleted_at":"2026-01-02T12:24:57.611128-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"agent"} +{"id":"bd-beads-polecat-topaz","title":"bd-beads-polecat-topaz","description":"bd-beads-polecat-topaz\n\nrole_type: polecat\nrig: beads\nagent_state: spawning\nhook_bead: bd-3tqg\nrole_bead: gt-polecat-role\ncleanup_status: null\nactive_mr: bd-495i6\nnotification_level: null","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2026-01-04T11:36:03.898913-08:00","updated_at":"2026-01-12T22:56:36.877515-08:00","close_reason":"Polecat cleaned up","created_by":"mayor","deleted_at":"2026-01-12T22:56:36.877515-08:00","deleted_by":"beads/witness","delete_reason":"delete","original_type":"agent"} +{"id":"bd-beads-refinery","title":"Refinery for beads - processes merge queue.","description":"Refinery for beads - processes merge queue.\n\nrole_type: refinery\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: gt-refinery-role\ncleanup_status: null","status":"open","priority":2,"issue_type":"agent","created_at":"2025-12-30T23:14:04.469888-08:00","updated_at":"2026-01-06T23:53:58.624101-08:00","created_by":"deacon"} +{"id":"bd-beads-witness","title":"Witness for beads - monitors polecat health and progress.","description":"Witness for beads - monitors polecat health and progress.\n\nrole_type: witness\nrig: beads\nagent_state: idle\nhook_bead: null\nrole_bead: gt-witness-role\ncleanup_status: null","status":"closed","priority":2,"issue_type":"agent","created_at":"2025-12-30T23:14:04.401378-08:00","updated_at":"2026-01-10T16:33:15.727285-08:00","closed_at":"2026-01-05T19:45:45.486571-08:00","close_reason":"Polecat cleaned up","created_by":"deacon"} +{"id":"bd-beiz7","title":"Improve beads-release formula based on v0.47.0 learnings","description":"During the v0.47.0 release, several issues were encountered that could be addressed in the formula:\n\n## Issues Found\n\n1. **Stale CHANGELOG detection** - The draft was from Jan 8 but ~50 commits were missing. Formula should verify CHANGELOG completeness by comparing commits since last tag.\n\n2. **Half-done release detection** - CHANGELOG said 0.47.0 but code was 0.46.0. Formula should detect version mismatches upfront.\n\n3. **Dirty working tree handling** - Non-release files (.beads/config.yaml, .claude/settings.json) blocked the bump script. Formula should auto-stash unrelated changes or provide clearer guidance.\n\n4. **Multi-worktree git context** - Commit from wrong directory captured wrong files. Formula should enforce running from correct directory or handle worktrees explicitly.\n\n5. **Branch divergence recovery** - After a botched commit, branch was behind origin. Formula should check for this and guide recovery.\n\n## Suggested Improvements\n\n- Add CHANGELOG completeness check step (compare `git log \u003clast-tag\u003e..HEAD` with CHANGELOG entries)\n- Add version consistency pre-check (detect if CHANGELOG/code/tags are out of sync)\n- Add auto-stash step for non-release files before bump script\n- Add explicit working directory validation for worktree setups\n- Add branch sync verification before and after commits\n\n## Context\nRelease session: 2026-01-11, v0.47.0\nAgent: beads/crew/emma","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T18:07:20.570809-08:00","updated_at":"2026-01-11T18:12:44.514983-08:00","closed_at":"2026-01-11T18:12:44.514983-08:00","close_reason":"Implemented all 5 suggested improvements to beads-release formula: preflight-worktree for git context validation, enhanced preflight-git with auto-stash guidance, enhanced preflight-pull with branch sync verification, detect-half-done-release step, and verify-changelog-complete step","created_by":"beads/crew/emma"} +{"id":"bd-bek0f","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T11:42:43.507236-08:00","updated_at":"2026-01-13T11:42:43.582898-08:00","closed_at":"2026-01-13T11:42:43.582898-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/grip"} {"id":"bd-bgca","title":"Latency test manual","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-08T00:04:25.028223-08:00","updated_at":"2025-11-08T00:06:46.169654-08:00","closed_at":"2025-11-08T00:06:46.169654-08:00"} {"id":"bd-bgm","title":"Fix unparam unused parameter in cmd/bd/doctor.go:1879","description":"Linting issue: checkGitHooks - path is unused (unparam) at cmd/bd/doctor.go:1879:20. Error: func checkGitHooks(path string) doctorCheck {","status":"tombstone","priority":0,"issue_type":"bug","created_at":"2025-12-07T15:35:25.270293252-07:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-bgr","title":"Test stdin 2","description":"Description from stdin test\n","status":"tombstone","priority":4,"issue_type":"task","created_at":"2025-12-17T17:28:05.41434-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} @@ -943,50 +942,50 @@ {"id":"bd-bivq","title":"Merge: bd-9usz","description":"branch: polecat/slit\ntarget: main\nsource_issue: bd-9usz\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-23T20:42:19.995419-08:00","updated_at":"2025-12-23T21:21:57.700579-08:00","closed_at":"2025-12-23T21:21:57.700579-08:00"} {"id":"bd-biwp","title":"Support local-only git repos without remote origin","description":"Daemon crashes when working with local git repos that don't have origin remote configured. Should gracefully degrade to local-only mode: skip git pull/push operations but maintain daemon features (RPC server, auto-flush, JSONL export).","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-09T16:09:50.677769-08:00","updated_at":"2025-11-09T16:16:56.588548-08:00","closed_at":"2025-11-09T16:16:56.588548-08:00"} {"id":"bd-bkul","title":"Simplify wisp architecture: single DB with ephemeral flag","description":"\n## Problem\n\nThe current wisp architecture uses a separate .beads-wisp/ directory with its own database. This creates unnecessary complexity:\n\n- Separate directory structure and database initialization\n- Parallel routing logic in both beads and gastown\n- Merge queries from two stores for inbox/list operations\n- All this for what is essentially a boolean flag\n\n## Current State\n\nGastown mail code has to:\n- resolveWispDir() vs resolveBeadsDir()\n- Query both, merge results\n- Route deletes to correct store\n\n## Proposed Solution\n\nSingle database with an ephemeral boolean field on Issue. Behavior:\n- bd create --ephemeral sets the flag\n- JSONL export SKIPS ephemeral issues (they never sync)\n- bd list shows all by default, --ephemeral / --persistent filters\n- bd mol squash clears the flag (promotes to permanent, now exports)\n- bd wisp gc deletes old ephemeral issues from the db\n- No separate directory, no separate routing\n\n## Migration\n\n1. Update beads to support ephemeral flag in main db\n2. Update bd wisp commands to work with flag instead of separate dir\n3. Update gastown mail to use simple --ephemeral flag (remove all dual-routing)\n4. Deprecate .beads-wisp/ directory pattern\n\n## Acceptance Criteria\n\n- Single database for all issues (ephemeral and persistent)\n- ephemeral field on Issue type\n- JSONL export skips ephemeral issues\n- bd create --ephemeral works\n- bd mol squash promotes ephemeral to persistent\n- Gastown mail uses simple flag, no dual-routing\n","status":"closed","priority":0,"issue_type":"feature","created_at":"2025-12-24T20:06:27.980055-08:00","updated_at":"2025-12-24T20:43:07.065124-08:00","closed_at":"2025-12-24T20:43:07.065124-08:00"} -{"id":"bd-bl27","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:43:59.985306-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:44:00.016527-08:00","closed_at":"2026-01-07T00:44:00.016527-08:00","close_reason":"auto-closed session event"} +{"id":"bd-bl27","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:43:59.985306-08:00","updated_at":"2026-01-07T00:44:00.016527-08:00","closed_at":"2026-01-07T00:44:00.016527-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-blh0","title":"gt nudge doesn't work with crew addresses","description":"## Bug\n\n`gt nudge beads/crew/dave \"message\"` fails because it uses the polecat session manager which produces wrong session names.\n\n## Expected\nSession name: `gt-beads-crew-dave` (hyphen)\n\n## Actual\nSession name: `gt-beads-crew/dave` (slash, from polecat manager)\n\n## Root Cause\n\nIn nudge.go line 46-57:\n```go\nrigName, polecatName, err := parseAddress(target) // beads, crew/dave\nsessionName := mgr.SessionName(polecatName) // gt-beads-crew/dave (WRONG)\n```\n\nShould detect `crew/` prefix in polecatName and use `crewSessionName(rigName, crewName)` instead.\n\n## Fix\n\n```go\nif strings.HasPrefix(polecatName, \"crew/\") {\n crewName := strings.TrimPrefix(polecatName, \"crew/\")\n sessionName = crewSessionName(rigName, crewName)\n} else {\n sessionName = mgr.SessionName(polecatName)\n}\n```","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-26T15:43:32.222784-08:00","updated_at":"2025-12-26T23:36:38.520091-08:00","closed_at":"2025-12-26T23:36:38.520091-08:00"} {"id":"bd-bmev","title":"Replace Windows CI full test suite with smoke tests","description":"## Problem\n\nWindows CI tests consistently timeout at 30 minutes despite multiple optimization attempts:\n- Split into parallel jobs (cmd vs internal) - still times out\n- RAM disk for temp/cache - marginal improvement (~50%)\n- RAM disk for workspace - breaks due to t.Chdir() incompatibility with ImDisk\n\nRoot cause: Windows I/O is fundamentally 20x slower than Linux:\n- NTFS slow for small file operations\n- Windows Defender scans every file access\n- Git on Windows is 5-10x slower\n- Process spawning is expensive\n\nLinux tests complete in ~1.5 min with race detector. Windows takes 30+ min without.\n\n## Current State\n\n- Windows jobs have continue-on-error: true (don't block PRs)\n- Tests timeout before completing, providing zero signal\n- RAM disk experiments added complexity without solving the problem\n\n## Solution: Smoke Tests Only\n\nReplace full test suite with minimal smoke tests that verify Windows compatibility in \u003c 2 minutes.\n\n### What to Test\n1. Binary builds - go build succeeds (already separate step)\n2. Binary executes - bd version works\n3. Init works - bd init creates valid database\n4. Basic CRUD - create, list, show, update, close\n5. Path handling - Windows backslash paths work\n\n### Proposed CI Change\n\nReplace test-windows-cmd and test-windows-internal with single smoke test job:\n- Build bd.exe\n- Run: bd version\n- Run: bd init --quiet --prefix smoke\n- Run: bd create --title \"Windows smoke test\" --type task\n- Run: bd list\n- Run: bd show smoke-001\n- Run: bd update smoke-001 --status in_progress\n- Run: bd close smoke-001\n\n### Benefits\n- Completes in \u003c 2 minutes vs 30+ minute timeouts\n- Provides actual pass/fail signal\n- Verifies Windows binary works\n- Removes RAM disk complexity\n- Single job instead of two parallel jobs\n\n### Files to Change\n- .github/workflows/ci.yml - Replace test-windows-cmd and test-windows-internal jobs\n\n### Migration Steps\n1. Remove test-windows-cmd job\n2. Remove test-windows-internal job\n3. Add single test-windows job with smoke tests\n4. Remove continue-on-error (tests should now pass reliably)\n5. Clean up RAM disk remnants from previous attempts\n\n### Context\n- Parent issue: bd-5we (Use RAM disk for Windows CI tests)\n- RAM disk approach proved insufficient\n- This is the pragmatic solution after extensive experimentation","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-13T07:28:32.445588-08:00","updated_at":"2025-12-14T00:22:21.513492-08:00","closed_at":"2025-12-13T10:53:34.683101-08:00"} -{"id":"bd-bmzg2","title":"Refactor: Move Claude Code plugin to subdirectory (GH#985)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #985. Reorganize Claude Code plugin into its own subdirectory.","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/dave","created_at":"2026-01-09T22:20:07.135754-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T22:59:13.429996-08:00","closed_at":"2026-01-09T22:59:13.429996-08:00","close_reason":"Moved plugin to claude-plugin/ subdirectory"} +{"id":"bd-bmzg2","title":"Refactor: Move Claude Code plugin to subdirectory (GH#985)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #985. Reorganize Claude Code plugin into its own subdirectory.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-09T22:20:07.135754-08:00","updated_at":"2026-01-09T22:59:13.429996-08:00","closed_at":"2026-01-09T22:59:13.429996-08:00","close_reason":"Moved plugin to claude-plugin/ subdirectory","created_by":"beads/crew/dave"} {"id":"bd-bok","title":"bd doctor --fix needs non-interactive mode (-y/--yes flag)","description":"When running `bd doctor --fix` in non-interactive mode (scripts, CI, Claude Code), it prompts 'Continue? (Y/n):' and fails with EOF.\n\n**Expected**: A `-y` or `--yes` flag to auto-confirm fixes.\n\n**Workaround**: Currently have to run `bd init` instead, but that's not discoverable from the doctor output.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-27T20:21:10.290649-08:00","updated_at":"2025-12-02T17:11:19.734961473-05:00","closed_at":"2025-11-28T21:56:14.708313-08:00"} -{"id":"bd-bpc4f","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:25:01.003771-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T20:25:01.040024-08:00","closed_at":"2026-01-08T20:25:01.040024-08:00","close_reason":"auto-closed session event"} +{"id":"bd-bpc4f","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:25:01.003771-08:00","updated_at":"2026-01-08T20:25:01.040024-08:00","closed_at":"2026-01-08T20:25:01.040024-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-bqcc","title":"Consolidate maintenance commands into bd doctor --fix","description":"Per rsnodgrass in GH#692:\n\u003e \"The biggest improvement to beads from an ergonomics perspective would be to prune down commands. We have a lot of 'maintenance' commands that probably should just be folded into 'bd doctor --fix' automatically.\"\n\nCurrent maintenance commands that could be consolidated:\n- clean - Clean up temporary git merge artifacts\n- cleanup - Delete closed issues and prune expired tombstones\n- compact - Compact old closed issues\n- detect-pollution - Detect and clean test issues\n- migrate-* (5 commands) - Various migration utilities\n- repair-deps - Fix orphaned dependency references\n- validate - Database health checks\n\nProposal:\n1. Make `bd doctor` the single entry point for health checks\n2. Add `bd doctor --fix` to auto-fix common issues\n3. Deprecate (but keep working) individual commands\n4. Add `bd doctor --all` for comprehensive maintenance\n\nThis would reduce cognitive load for users - they just need to remember 'bd doctor'.\n\nNote: This is higher impact but also higher risk - needs careful design to avoid breaking existing workflows.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-22T14:27:31.466556-08:00","updated_at":"2025-12-23T01:33:25.732363-08:00","closed_at":"2025-12-23T01:33:25.732363-08:00"} -{"id":"bd-bqidi","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T13:38:36.045742-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-10T13:38:36.08369-08:00","closed_at":"2026-01-10T13:38:36.08369-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-br7hj","title":"Updated title","status":"closed","priority":0,"issue_type":"feature","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:15:59.645378-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-12T16:41:37.64937-08:00","closed_at":"2026-01-12T16:41:37.64937-08:00","close_reason":"Stale orphaned wisp"} +{"id":"bd-bqidi","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T13:38:36.045742-08:00","updated_at":"2026-01-10T13:38:36.08369-08:00","closed_at":"2026-01-10T13:38:36.08369-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} +{"id":"bd-br7hj","title":"Updated title","status":"closed","priority":0,"issue_type":"feature","created_at":"2026-01-11T18:15:59.645378-08:00","updated_at":"2026-01-12T16:41:37.64937-08:00","closed_at":"2026-01-12T16:41:37.64937-08:00","close_reason":"Stale orphaned wisp","created_by":"beads/crew/wolf"} {"id":"bd-br8","title":"Implement `bd setup claude` command for Claude Code integration","description":"Create a `bd setup claude` command that installs Claude Code integration files (slash commands and hooks). This is idempotent and safe to run multiple times.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-11T23:28:59.374019-08:00","updated_at":"2025-11-12T08:51:23.281292-08:00","closed_at":"2025-11-12T08:51:23.281292-08:00","dependencies":[{"issue_id":"bd-br8","depends_on_id":"bd-rpn","type":"blocks","created_at":"2025-11-11T23:28:59.375616-08:00","created_by":"daemon"},{"issue_id":"bd-br8","depends_on_id":"bd-90v","type":"parent-child","created_at":"2025-11-11T23:31:23.762685-08:00","created_by":"daemon"}]} {"id":"bd-bs5j","title":"Release v0.33.2","description":"Version bump workflow for beads release 0.33.2.\n\n## Variables\n- `0.33.2` - The new version number (e.g., 0.31.0)\n- `2025-12-21` - Release date (YYYY-MM-DD format)\n\n## Workflow Steps\n1. Kill running daemons\n2. Run tests and linting\n3. Bump version in all files (10 files total)\n4. Update cmd/bd/info.go with release notes\n5. Commit and push version bump\n6. Create and push git tag\n7. Update Homebrew formula\n8. Upgrade local Homebrew installation\n9. Verify installation\n\n## Files Updated by bump-version.sh\n- cmd/bd/version.go\n- .claude-plugin/plugin.json\n- .claude-plugin/marketplace.json\n- integrations/beads-mcp/pyproject.toml\n- integrations/beads-mcp/src/beads_mcp/__init__.py\n- README.md\n- npm-package/package.json\n- cmd/bd/templates/hooks/* (4 files)\n- CHANGELOG.md\n\n## Manual Step Required\n- cmd/bd/info.go - Add versionChanges entry with release notes","status":"tombstone","priority":1,"issue_type":"epic","created_at":"2025-12-21T16:10:13.759062-08:00","updated_at":"2025-12-21T17:29:31.791368-08:00","deleted_at":"2025-12-21T17:29:31.791368-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"epic"} {"id":"bd-bscs","title":"GH#518: Document bd setup command","description":"bd setup (e.g. bd setup cursor) is undocumented. Users only find it by grepping source. Need proper docs. See: https://github.com/steveyegge/beads/issues/518","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-14T16:31:35.881408-08:00","updated_at":"2025-12-16T14:39:19.052118-08:00","closed_at":"2025-12-16T01:09:09.420428-08:00"} -{"id":"bd-bscww","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:45:18.064846-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:45:18.1349-08:00","closed_at":"2026-01-11T21:45:18.1349-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-bsr4h","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:21:29.75805-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T15:21:29.793632-08:00","closed_at":"2026-01-10T15:21:29.793632-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-bscww","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:45:18.064846-08:00","updated_at":"2026-01-11T21:45:18.1349-08:00","closed_at":"2026-01-11T21:45:18.1349-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-bsr4h","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:21:29.75805-08:00","updated_at":"2026-01-10T15:21:29.793632-08:00","closed_at":"2026-01-10T15:21:29.793632-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-bt6y","title":"Improve compact/daemon/merge documentation and UX","description":"Multiple documentation and UX issues encountered:\n1. \"bd compact --analyze\" fails with misleading \"requires SQLite storage\" error when daemon is running. Needs --no-daemon or better error.\n2. \"bd merge\" help text is outdated (refers to 3-way merge instead of issue merging).\n3. Daemon mode purpose isn't clear to local-only users.\n4. Compact/cleanup commands are hard to discover.\n\nProposed fixes:\n- Fix compact+daemon interaction or error message.\n- Update \"bd merge\" help text.\n- Add \"when to use daemon\" section to docs.\n- Add maintenance section to quickstart.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-20T18:55:43.637047-05:00","updated_at":"2025-12-09T18:38:37.684256672-05:00","closed_at":"2025-11-28T23:10:43.884784-08:00"} -{"id":"bd-btkj6","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:46:46.613055-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-12T19:46:46.681789-08:00","closed_at":"2026-01-12T19:46:46.681789-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-btkj6","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:46:46.613055-08:00","updated_at":"2026-01-12T19:46:46.681789-08:00","closed_at":"2026-01-12T19:46:46.681789-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/grip"} {"id":"bd-buol","title":"Invert control for compact: provide tools for agent-driven compaction","description":"Currently compact requires Anthropic API key because bd calls the AI directly. This is backwards - we should provide tools (like all other bd commands) that let an AI agent perform the compaction. The agent decides what to keep/merge, not bd. Related to GH #243 complaint about API key requirement.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-07T00:27:28.498069-08:00","updated_at":"2025-11-07T23:18:08.38606-08:00","closed_at":"2025-11-07T23:08:51.67473-08:00"} -{"id":"bd-bur4u","title":"Review PR #16605: ralph-wiggum nix/nixos fix","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #16605 (anthropics/claude-code)\n\nPR: https://github.com/anthropics/claude-code/pull/16605\nAuthor: onsails\nStatus: APPROVED by otavio and philiptaron\n\nNix/NixOS environment fix.\n- gh pr view 16605 --repo anthropics/claude-code\n- gh pr diff 16605 --repo anthropics/claude-code\n- If good: gh pr merge 16605 --repo anthropics/claude-code --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/fang","created_at":"2026-01-08T14:20:26.834702-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:29:35.603515-08:00","closed_at":"2026-01-08T14:29:35.603515-08:00","close_reason":"Wrong repo - these were for anthropics/claude-code, not steveyegge/beads"} -{"id":"bd-bvec","title":"Test coverage improvement initiative (47.8% → 65%)","description":"Umbrella epic for improving overall test coverage from 47.8% to 65%+.\n\n## Summary\n\n| Package | Current | Target | Issue |\n|---------|---------|--------|-------|\n| internal/compact | 18.2% | 70% | bd-thgk |\n| cmd/bd/doctor/fix | 23.9% | 50% | bd-fx7v |\n| cmd/bd | 26.2% | 50% | bd-llfl |\n| internal/daemon | 27.3% | 60% | bd-n386 |\n| cmd/bd/setup | 28.4% | 50% | bd-sh4c |\n| internal/syncbranch | 33.0% | 70% | bd-io8c |\n| internal/export | 37.1% | 60% | bd-6sm6 |\n| internal/lockfile | 42.0% | 60% | bd-9w3s |\n| internal/rpc | 47.5% | 60% | bd-m8ro |\n| internal/beads | 48.1% | 70% | bd-tvu3 |\n| internal/storage | N/A | basic | bd-a15d |\n\n## Packages with good coverage (no action needed)\n- internal/types: 91.0%\n- internal/utils: 88.9%\n- internal/deletions: 84.3%\n- internal/config: 84.2%\n- internal/autoimport: 83.5%\n- internal/validation: 80.8%\n- internal/merge: 78.9%\n- internal/routing: 74.3%\n- internal/storage/sqlite: 73.1%\n- internal/importer: 70.2%\n\nOverall target: 65%+ (from current 47.8%)","status":"open","priority":2,"issue_type":"epic","created_at":"2025-12-13T20:43:22.901825-08:00","updated_at":"2025-12-13T20:43:22.901825-08:00","dependencies":[{"issue_id":"bd-bvec","depends_on_id":"bd-thgk","type":"blocks","created_at":"2025-12-13T20:43:29.536041-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-tvu3","type":"blocks","created_at":"2025-12-13T20:43:29.588057-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-n386","type":"blocks","created_at":"2025-12-13T20:43:29.637931-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-io8c","type":"blocks","created_at":"2025-12-13T20:43:29.689467-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-llfl","type":"blocks","created_at":"2025-12-13T20:43:29.738487-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-sh4c","type":"blocks","created_at":"2025-12-13T20:43:29.789217-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-fx7v","type":"blocks","created_at":"2025-12-13T20:43:29.839732-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-6sm6","type":"blocks","created_at":"2025-12-13T20:43:29.887425-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-9w3s","type":"blocks","created_at":"2025-12-13T20:43:29.936762-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-m8ro","type":"blocks","created_at":"2025-12-13T20:43:29.98703-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-a15d","type":"blocks","created_at":"2025-12-13T20:43:30.049603-08:00","created_by":"daemon"}]} +{"id":"bd-bur4u","title":"Review PR #16605: ralph-wiggum nix/nixos fix","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #16605 (anthropics/claude-code)\n\nPR: https://github.com/anthropics/claude-code/pull/16605\nAuthor: onsails\nStatus: APPROVED by otavio and philiptaron\n\nNix/NixOS environment fix.\n- gh pr view 16605 --repo anthropics/claude-code\n- gh pr diff 16605 --repo anthropics/claude-code\n- If good: gh pr merge 16605 --repo anthropics/claude-code --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-08T14:20:26.834702-08:00","updated_at":"2026-01-08T14:29:35.603515-08:00","closed_at":"2026-01-08T14:29:35.603515-08:00","close_reason":"Wrong repo - these were for anthropics/claude-code, not steveyegge/beads","created_by":"beads/crew/emma"} +{"id":"bd-bvec","title":"Test coverage improvement initiative (47.8% → 65%)","description":"Umbrella epic for improving overall test coverage from 47.8% to 65%+.\n\n## Summary\n\n| Package | Current | Target | Issue |\n|---------|---------|--------|-------|\n| internal/compact | 18.2% | 70% | bd-thgk |\n| cmd/bd/doctor/fix | 23.9% | 50% | bd-fx7v |\n| cmd/bd | 26.2% | 50% | bd-llfl |\n| internal/daemon | 27.3% | 60% | bd-n386 |\n| cmd/bd/setup | 28.4% | 50% | bd-sh4c |\n| internal/syncbranch | 33.0% | 70% | bd-io8c |\n| internal/export | 37.1% | 60% | bd-6sm6 |\n| internal/lockfile | 42.0% | 60% | bd-9w3s |\n| internal/rpc | 47.5% | 60% | bd-m8ro |\n| internal/beads | 48.1% | 70% | bd-tvu3 |\n| internal/storage | N/A | basic | bd-a15d |\n\n## Packages with good coverage (no action needed)\n- internal/types: 91.0%\n- internal/utils: 88.9%\n- internal/deletions: 84.3%\n- internal/config: 84.2%\n- internal/autoimport: 83.5%\n- internal/validation: 80.8%\n- internal/merge: 78.9%\n- internal/routing: 74.3%\n- internal/storage/sqlite: 73.1%\n- internal/importer: 70.2%\n\nOverall target: 65%+ (from current 47.8%)","status":"open","priority":2,"issue_type":"epic","created_at":"2025-12-13T20:43:22.901825-08:00","updated_at":"2025-12-13T20:43:22.901825-08:00","dependencies":[{"issue_id":"bd-bvec","depends_on_id":"bd-a15d","type":"blocks","created_at":"2025-12-13T20:43:30.049603-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-io8c","type":"blocks","created_at":"2025-12-13T20:43:29.689467-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-fx7v","type":"blocks","created_at":"2025-12-13T20:43:29.839732-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-9w3s","type":"blocks","created_at":"2025-12-13T20:43:29.936762-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-n386","type":"blocks","created_at":"2025-12-13T20:43:29.637931-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-thgk","type":"blocks","created_at":"2025-12-13T20:43:29.536041-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-tvu3","type":"blocks","created_at":"2025-12-13T20:43:29.588057-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-sh4c","type":"blocks","created_at":"2025-12-13T20:43:29.789217-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-6sm6","type":"blocks","created_at":"2025-12-13T20:43:29.887425-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-m8ro","type":"blocks","created_at":"2025-12-13T20:43:29.98703-08:00","created_by":"daemon"},{"issue_id":"bd-bvec","depends_on_id":"bd-llfl","type":"blocks","created_at":"2025-12-13T20:43:29.738487-08:00","created_by":"daemon"}]} {"id":"bd-bvo2","title":"Issue 2","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-22T14:57:44.526064586-05:00","updated_at":"2025-11-22T14:57:44.526064586-05:00","closed_at":"2025-11-07T21:55:09.429328-08:00"} {"id":"bd-bw6","title":"Fix G104 errors unhandled in internal/storage/sqlite/queries.go:1181","description":"Linting issue: G104: Errors unhandled (gosec) at internal/storage/sqlite/queries.go:1181:4. Error: rows.Close()","status":"tombstone","priority":0,"issue_type":"bug","created_at":"2025-12-07T15:35:09.008444133-07:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-bwdd","title":"GH#497: bd onboard copilot-instructions.md is beads-specific, not generic","description":"bd onboard outputs beads repo specific content (Go/SQLite/Cobra) for copilot-instructions.md instead of a generic template. AGENTS.md output is correct. See: https://github.com/steveyegge/beads/issues/497","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-14T16:32:18.599655-08:00","updated_at":"2025-12-16T01:27:29.015259-08:00","closed_at":"2025-12-16T01:27:29.015259-08:00"} {"id":"bd-bwk2","title":"Centralize error handling patterns in storage layer","description":"80+ instances of inconsistent error handling across sqlite.go with mix of %w, %v, and no wrapping.\n\nLocation: internal/storage/sqlite/sqlite.go (throughout)\n\nProblem:\n- Some use fmt.Errorf(\"op failed: %w\", err) - correct wrapping\n- Some use fmt.Errorf(\"op failed: %v\", err) - loses error chain\n- Some return err directly - no context\n- Hard to debug production issues\n- Can't distinguish error types\n\nSolution: Create internal/storage/sqlite/errors.go:\n- Define sentinel errors (ErrNotFound, ErrInvalidID, etc.)\n- Create wrapDBError(op string, err error) helper\n- Convert sql.ErrNoRows to ErrNotFound\n- Always wrap with operation context\n\nImpact: Lost error context; inconsistent messages; hard to debug\n\nEffort: 5-7 hours","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-16T14:51:54.974909-08:00","updated_at":"2025-12-21T21:44:37.237175-08:00","closed_at":"2025-12-21T21:44:37.237175-08:00"} -{"id":"bd-bx5ko","title":"Review PR #1052: Add jira-beads-sync to COMMUNITY_TOOLS.md","description":"dispatched_by: beads/crew/emma\n\nEasy-win docs addition. PR: https://github.com/steveyegge/beads/pull/1052. Review link, format, approve and merge.","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/grip","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T17:26:05.021994-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T17:28:17.035338-08:00","closed_at":"2026-01-12T17:28:17.035338-08:00","close_reason":"PR #1052 merged"} +{"id":"bd-bx5ko","title":"Review PR #1052: Add jira-beads-sync to COMMUNITY_TOOLS.md","description":"dispatched_by: beads/crew/emma\n\nEasy-win docs addition. PR: https://github.com/steveyegge/beads/pull/1052. Review link, format, approve and merge.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T17:26:05.021994-08:00","updated_at":"2026-01-12T17:28:17.035338-08:00","closed_at":"2026-01-12T17:28:17.035338-08:00","close_reason":"PR #1052 merged","created_by":"beads/crew/emma"} {"id":"bd-bxha","title":"Default to YES for git hooks and merge driver installation","description":"Currently bd init prompts user to install git hooks and merge driver, but setup is incomplete if user declines. Change to install by default unless --skip-hooks or --skip-merge-driver flags are passed. Better safe defaults. If installation fails, warn user and suggest bd doctor --fix.","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-21T23:16:10.172238-08:00","updated_at":"2025-12-23T04:20:51.885765-08:00","closed_at":"2025-12-23T04:20:51.885765-08:00","dependencies":[{"issue_id":"bd-bxha","depends_on_id":"bd-tbz3","type":"parent-child","created_at":"2025-11-21T23:16:10.173034-08:00","created_by":"daemon"}]} -{"id":"bd-bxqv","title":"Update documentation for CLI consolidation","description":"## Task\nUpdate all documentation to reflect CLI consolidation changes.\n\n## Files requiring updates\n\n### Primary docs\n- docs/CLI_REFERENCE.md - Major updates\n - Add admin section (cleanup, compact, reset)\n - Update migrate section (subcommands)\n - Update formula section (add cook)\n - Remove/update standalone command references\n\n### Secondary docs \n- docs/DELETIONS.md - migrate-tombstones → migrate tombstones, compact → admin compact\n- docs/FAQ.md - compact → admin compact\n- docs/QUICKSTART.md - compact, cleanup → admin compact, admin cleanup\n- docs/TROUBLESHOOTING.md - compact → admin compact\n- docs/CONFIG.md - compact → admin compact\n- docs/INSTALLING.md - quickstart reference\n- docs/EXTENDING.md - quickstart reference\n\n### Skills docs\n- skills/beads/SKILL.md - compact, quickstart references\n- skills/beads/references/CLI_REFERENCE.md - mirror main CLI_REFERENCE.md\n\n### Other docs\n- commands/quickstart.md - update or remove\n- commands/compact.md - update to admin compact\n- examples/compaction/README.md - update examples\n- README.md - quickstart reference\n- CHANGELOG.md - add consolidation changes section\n\n## Implementation notes\n- Keep backwards compatibility notices where aliases exist\n- Update command examples to use new paths\n- Consider adding deprecation warnings section\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T15:11:33.307408-08:00","created_by":"mayor","updated_at":"2025-12-27T16:19:36.155138-08:00","closed_at":"2025-12-27T16:19:36.155138-08:00","dependencies":[{"issue_id":"bd-bxqv","depends_on_id":"bd-w3z7","type":"blocks","created_at":"2025-12-27T15:11:52.445529-08:00","created_by":"daemon"},{"issue_id":"bd-bxqv","depends_on_id":"bd-do8e","type":"blocks","created_at":"2025-12-27T15:11:52.475688-08:00","created_by":"daemon"},{"issue_id":"bd-bxqv","depends_on_id":"bd-3u8m","type":"blocks","created_at":"2025-12-27T15:11:52.504528-08:00","created_by":"daemon"},{"issue_id":"bd-bxqv","depends_on_id":"bd-kff0","type":"blocks","created_at":"2025-12-27T15:11:52.533506-08:00","created_by":"daemon"}]} +{"id":"bd-bxqv","title":"Update documentation for CLI consolidation","description":"## Task\nUpdate all documentation to reflect CLI consolidation changes.\n\n## Files requiring updates\n\n### Primary docs\n- docs/CLI_REFERENCE.md - Major updates\n - Add admin section (cleanup, compact, reset)\n - Update migrate section (subcommands)\n - Update formula section (add cook)\n - Remove/update standalone command references\n\n### Secondary docs \n- docs/DELETIONS.md - migrate-tombstones → migrate tombstones, compact → admin compact\n- docs/FAQ.md - compact → admin compact\n- docs/QUICKSTART.md - compact, cleanup → admin compact, admin cleanup\n- docs/TROUBLESHOOTING.md - compact → admin compact\n- docs/CONFIG.md - compact → admin compact\n- docs/INSTALLING.md - quickstart reference\n- docs/EXTENDING.md - quickstart reference\n\n### Skills docs\n- skills/beads/SKILL.md - compact, quickstart references\n- skills/beads/references/CLI_REFERENCE.md - mirror main CLI_REFERENCE.md\n\n### Other docs\n- commands/quickstart.md - update or remove\n- commands/compact.md - update to admin compact\n- examples/compaction/README.md - update examples\n- README.md - quickstart reference\n- CHANGELOG.md - add consolidation changes section\n\n## Implementation notes\n- Keep backwards compatibility notices where aliases exist\n- Update command examples to use new paths\n- Consider adding deprecation warnings section\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T15:11:33.307408-08:00","updated_at":"2025-12-27T16:19:36.155138-08:00","closed_at":"2025-12-27T16:19:36.155138-08:00","created_by":"mayor","dependencies":[{"issue_id":"bd-bxqv","depends_on_id":"bd-w3z7","type":"blocks","created_at":"2025-12-27T15:11:52.445529-08:00","created_by":"daemon"},{"issue_id":"bd-bxqv","depends_on_id":"bd-do8e","type":"blocks","created_at":"2025-12-27T15:11:52.475688-08:00","created_by":"daemon"},{"issue_id":"bd-bxqv","depends_on_id":"bd-3u8m","type":"blocks","created_at":"2025-12-27T15:11:52.504528-08:00","created_by":"daemon"},{"issue_id":"bd-bxqv","depends_on_id":"bd-kff0","type":"blocks","created_at":"2025-12-27T15:11:52.533506-08:00","created_by":"daemon"}]} {"id":"bd-by0d","title":"Work on beads-ldv: Fix bd graph crashes with nil pointer ...","description":"Work on beads-ldv: Fix bd graph crashes with nil pointer dereference (GH#657). Fix nil pointer in computeDependencyCounts at graph.go:428. When done, submit MR (not PR) to integration branch for Refinery.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-19T22:55:27.829359-08:00","updated_at":"2025-12-19T23:28:32.428314-08:00","closed_at":"2025-12-19T23:20:49.038441-08:00"} {"id":"bd-by3x","title":"Windows binaries lack SQLite support (GH #253)","description":"Windows users installing via install.ps1 get \"sql: unknown driver sqlite\" error. Root cause: GoReleaser was building with CGO_ENABLED=0, which excludes SQLite driver.\n\nFixed by:\n1. Enabling CGO in .goreleaser.yml\n2. Installing MinGW cross-compiler in release workflow\n3. Splitting builds per platform to set correct CC for Windows\n\nNeeds new release to fix for users.","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-07T15:54:13.134815-08:00","updated_at":"2025-11-07T15:55:07.024156-08:00","closed_at":"2025-11-07T15:55:07.024156-08:00"} -{"id":"bd-byrsb","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T12:03:44.325998-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T12:03:44.392685-08:00","closed_at":"2026-01-13T12:03:44.392685-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-bz1ac","title":"Issue to close","status":"closed","priority":1,"issue_type":"bug","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:11.26094-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:11.339129-08:00","closed_at":"2026-01-11T18:16:11.339129-08:00","close_reason":"Testing complete"} -{"id":"bd-bz1g7","title":"Merge: onyx-mk9abhg7","description":"branch: polecat/onyx-mk9abhg7\ntarget: main\nsource_issue: onyx-mk9abhg7\nrig: beads\nagent_bead: bd-beads-polecat-onyx\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T21:30:34.094253-08:00","created_by":"stevey","updated_at":"2026-01-10T21:53:12.353742-08:00","closed_at":"2026-01-10T21:53:12.353742-08:00","close_reason":"Branch no longer exists on remote","labels":["gt:merge-request"]} -{"id":"bd-bz3gz","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:58:49.390425-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T00:58:49.4254-08:00","closed_at":"2026-01-09T00:58:49.4254-08:00","close_reason":"auto-closed session event"} +{"id":"bd-byrsb","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T12:03:44.325998-08:00","updated_at":"2026-01-13T12:03:44.392685-08:00","closed_at":"2026-01-13T12:03:44.392685-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-bz1ac","title":"Issue to close","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-11T18:16:11.26094-08:00","updated_at":"2026-01-11T18:16:11.339129-08:00","closed_at":"2026-01-11T18:16:11.339129-08:00","close_reason":"Testing complete","created_by":"beads/crew/wolf"} +{"id":"bd-bz1g7","title":"Merge: onyx-mk9abhg7","description":"branch: polecat/onyx-mk9abhg7\ntarget: main\nsource_issue: onyx-mk9abhg7\nrig: beads\nagent_bead: bd-beads-polecat-onyx\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T21:30:34.094253-08:00","updated_at":"2026-01-10T21:53:12.353742-08:00","closed_at":"2026-01-10T21:53:12.353742-08:00","close_reason":"Branch no longer exists on remote","created_by":"stevey"} +{"id":"bd-bz3gz","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:58:49.390425-08:00","updated_at":"2026-01-09T00:58:49.4254-08:00","closed_at":"2026-01-09T00:58:49.4254-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-bzfy","title":"Integrate beads-merge tool by @neongreen","description":"**Context**: @neongreen built a production-ready 3-way merge tool for JSONL files that works with both Git and Jujutsu. This is superior to our planned bd resolve-conflicts because it prevents conflicts proactively instead of resolving them after the fact.\n\n**Tool**: https://github.com/neongreen/mono/tree/main/beads-merge\n\n**What it does**:\n- 3-way merge of JSONL files (base, left, right)\n- Field-level merging (titles, status, priority, etc.)\n- Smart dependency merging (union + dedup)\n- Conflict markers for unresolvable conflicts\n- Exit code 1 for conflicts (standard)\n\n**Integration options**:\n\n1. **Recommend (minimal effort)** - Document in AGENTS.md + TROUBLESHOOTING.md\n2. **Bundle binary** - Include in releases (cross-platform builds)\n3. **Port to Go** - Reimplement in bd codebase\n4. **Auto-install hook** - During bd init, offer to install merge driver\n\n**Recommendation**: Start with option 1 (document), then option 2 (bundle) once proven.\n\n**Related**: bd-5f483051 (bd resolve-conflicts - can close as superseded)","notes":"Created GitHub issue to discuss integration approach with @neongreen: https://github.com/neongreen/mono/issues/240\n\nAwaiting their preference on:\n1. Vendor with attribution (fastest)\n2. Extract as importable module (best long-term)\n3. Keep as separate tool (current state)\n\nNext: Wait for response before proceeding with integration.\n\nUPDATE 2025-11-06: @neongreen gave permission to vendor! Quote: \"I switched from beads to my own thing (tk) so I'm very happy to give beads-merge away — feel free to move it into the beads repo and I will point mono's readme to beads\"\n\nNext: Vendor beads-merge with full attribution","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-05T11:31:44.906652-08:00","updated_at":"2025-11-06T18:19:16.233387-08:00","closed_at":"2025-11-06T15:38:37.052274-08:00"} {"id":"bd-c01f","title":"Implement bd stale command to find abandoned/forgotten issues","description":"Add bd stale command to surface issues that haven't been updated recently and may need attention.\n\nUse cases:\n- In-progress issues with no recent activity (may be abandoned)\n- Open issues that have been forgotten\n- Issues that might be outdated or no longer relevant\n\nQuery logic should find non-closed issues where updated_at exceeds a time threshold.\n\nShould support:\n- --days N flag (default 30-90 days)\n- --status filter (e.g., only in_progress)\n- --json output for automation\n\nReferences GitHub issue #184 where user expected this command to exist.","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-10-31T22:48:46.85435-07:00","updated_at":"2025-10-31T22:54:33.704492-07:00","closed_at":"2025-10-31T22:54:33.704492-07:00"} -{"id":"bd-c0b6","title":"bd init --from-jsonl: Skip git history scan","description":"## Problem\n\n`bd init` scans git history to find all issues ever created, which:\n- Resurrects deleted/compacted issues\n- Takes a long time on large repos\n- Defeats manual JSONL cleanup\n\n## Solution\n\nAdd `bd init --from-jsonl` flag that:\n1. Creates fresh database\n2. Imports ONLY from current .beads/issues.jsonl\n3. Skips git history scan entirely\n\n## Use Case\n\nAfter manually cleaning JSONL or receiving a clean JSONL from another source:\n```bash\n# Clean JSONL manually or via script\nbd init --from-jsonl # Use current JSONL as-is\n```\n\n(Moved from hq-c21fj)","status":"closed","priority":3,"issue_type":"feature","created_at":"2026-01-02T01:29:20.851319-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-02T16:59:09.07064-08:00","closed_at":"2026-01-02T16:59:09.07064-08:00","close_reason":"Already implemented: bd init --from-jsonl exists and does exactly this"} +{"id":"bd-c0b6","title":"bd init --from-jsonl: Skip git history scan","description":"## Problem\n\n`bd init` scans git history to find all issues ever created, which:\n- Resurrects deleted/compacted issues\n- Takes a long time on large repos\n- Defeats manual JSONL cleanup\n\n## Solution\n\nAdd `bd init --from-jsonl` flag that:\n1. Creates fresh database\n2. Imports ONLY from current .beads/issues.jsonl\n3. Skips git history scan entirely\n\n## Use Case\n\nAfter manually cleaning JSONL or receiving a clean JSONL from another source:\n```bash\n# Clean JSONL manually or via script\nbd init --from-jsonl # Use current JSONL as-is\n```\n\n(Moved from hq-c21fj)","status":"closed","priority":3,"issue_type":"feature","created_at":"2026-01-02T01:29:20.851319-08:00","updated_at":"2026-01-02T16:59:09.07064-08:00","closed_at":"2026-01-02T16:59:09.07064-08:00","close_reason":"Already implemented: bd init --from-jsonl exists and does exactly this","created_by":"beads/crew/dave"} {"id":"bd-c13f","title":"Add unit tests for parent resurrection","description":"Test resurrection with deleted parent (should succeed), resurrection with never-existed parent (should fail gracefully), multi-level resurrection (bd-abc.1.2 with both parents missing). Verify tombstone creation and is_tombstone flag.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-04T12:32:21.325335-08:00","updated_at":"2025-11-05T00:08:42.813728-08:00","closed_at":"2025-11-05T00:08:42.813731-08:00"} {"id":"bd-c2po","title":"Gate eval: Consider rate limiting for GitHub API calls","description":"Each gate evaluation makes a network call to GitHub API via gh CLI. With many gates, this could hit API rate limits.\n\nFuture improvements:\n1. Batch queries where possible\n2. Add caching with TTL for recently-checked gates\n3. Exponential backoff on rate limit errors\n\nLow priority - unlikely to be an issue until we have many concurrent gates.","status":"closed","priority":4,"issue_type":"task","created_at":"2025-12-25T23:13:13.295309-08:00","updated_at":"2025-12-30T19:32:18.332836-08:00","closed_at":"2025-12-30T19:32:18.332836-08:00","close_reason":"Deferred - unlikely to be an issue until we have many concurrent gates per description"} {"id":"bd-c2xs","title":"Exclude pinned issues from bd blocked","description":"Update bd blocked to exclude pinned issues. Pinned issues are context markers and should not appear in the blocked work list.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-18T23:33:44.684242-08:00","updated_at":"2025-12-21T11:29:42.179389-08:00","closed_at":"2025-12-21T11:29:42.179389-08:00","dependencies":[{"issue_id":"bd-c2xs","depends_on_id":"bd-0vg","type":"blocks","created_at":"2025-12-18T23:33:56.521323-08:00","created_by":"daemon"},{"issue_id":"bd-c2xs","depends_on_id":"bd-7h5","type":"blocks","created_at":"2025-12-18T23:34:07.736681-08:00","created_by":"daemon"}]} {"id":"bd-c362","title":"Extract database search logic into helper function","description":"The logic for finding a database in a beads directory is duplicated:\n- FindDatabasePath() BEADS_DIR section (beads.go:141-169)\n- findDatabaseInTree() (beads.go:248-280)\n\nBoth implement the same search order:\n1. Check config.json first (single source of truth)\n2. Fall back to canonical beads.db\n3. Search for *.db files, filtering backups and vc.db\n\nRefactoring suggestion:\nExtract to a helper function like:\n func findDatabaseInBeadsDir(beadsDir string) string\n\nBenefits:\n- Single source of truth for database search logic\n- Easier to maintain and update search order\n- Reduces code duplication\n\nRelated to [deleted:bd-e16b] implementation.","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-11-02T18:34:02.831543-08:00","updated_at":"2025-12-09T18:38:37.685269872-05:00","closed_at":"2025-11-25T22:27:33.794656-08:00","dependencies":[{"issue_id":"bd-c362","depends_on_id":"bd-e16b","type":"blocks","created_at":"2025-11-02T18:34:02.832607-08:00","created_by":"daemon"}]} {"id":"bd-c3ei","title":"Migration guide documentation","description":"Write comprehensive migration guide covering: OSS contributor workflow, team workflow, multi-phase development, multiple personas. Include step-by-step instructions, troubleshooting, and backward compatibility notes.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-05T18:04:29.84662-08:00","updated_at":"2025-11-05T18:12:30.907835-08:00","closed_at":"2025-11-05T18:12:30.907835-08:00","dependencies":[{"issue_id":"bd-c3ei","depends_on_id":"bd-8rd","type":"parent-child","created_at":"2025-11-05T18:04:39.028291-08:00","created_by":"daemon"}]} {"id":"bd-c3u","title":"Review PR #512: clarify bd ready docs","description":"Review and merge PR #512 from aspiers. This PR clarifies what bd ready does after git pull in README.md. Simple 1-line change. URL: https://github.com/anthropics/beads/pull/512","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-13T08:15:13.405161+11:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-c3yrt","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:50:52.023371-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:50:52.091503-08:00","closed_at":"2026-01-11T19:50:52.091503-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-c3yrt","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:50:52.023371-08:00","updated_at":"2026-01-11T19:50:52.091503-08:00","closed_at":"2026-01-11T19:50:52.091503-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-c49","title":"Audit all cmd/bd tests and group into suites","description":"Analyze all 279 tests in cmd/bd and identify:\n1. Which tests can share DB setup (most of them\\!)\n2. Which tests actually need isolation (export/import, git ops)\n3. Optimal grouping into test suites\n\nCreate a mapping document showing:\n- Current: 279 individual test functions\n- Proposed: ~10-15 test suites with subtests\n- Expected speedup per suite\n\nBlocks all refactoring work.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-21T11:49:19.438242-05:00","updated_at":"2025-11-21T16:07:50.846006-05:00","closed_at":"2025-11-21T15:15:29.50544-05:00"} -{"id":"bd-c4nfq","title":"Review PR #16929: Respect --comment flag","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #16929 (anthropics/claude-code)\n\nPR: https://github.com/anthropics/claude-code/pull/16929\nAuthor: heathdutton\nFixes: #16606\n\nThe /code-review command was posting inline comments by default, but README says terminal output is default.\n- gh pr view 16929 --repo anthropics/claude-code\n- gh pr diff 16929 --repo anthropics/claude-code\n- If good: gh pr merge 16929 --repo anthropics/claude-code --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/wolf","created_at":"2026-01-08T14:20:29.469584-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:29:35.606395-08:00","closed_at":"2026-01-08T14:29:35.606395-08:00","close_reason":"Wrong repo - these were for anthropics/claude-code, not steveyegge/beads"} +{"id":"bd-c4nfq","title":"Review PR #16929: Respect --comment flag","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #16929 (anthropics/claude-code)\n\nPR: https://github.com/anthropics/claude-code/pull/16929\nAuthor: heathdutton\nFixes: #16606\n\nThe /code-review command was posting inline comments by default, but README says terminal output is default.\n- gh pr view 16929 --repo anthropics/claude-code\n- gh pr diff 16929 --repo anthropics/claude-code\n- If good: gh pr merge 16929 --repo anthropics/claude-code --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-08T14:20:29.469584-08:00","updated_at":"2026-01-08T14:29:35.606395-08:00","closed_at":"2026-01-08T14:29:35.606395-08:00","close_reason":"Wrong repo - these were for anthropics/claude-code, not steveyegge/beads","created_by":"beads/crew/emma"} {"id":"bd-c4rq","title":"Refactor: Move staleness check inside daemon branch","description":"## Problem\n\nCurrently ensureDatabaseFresh() is called before the daemon mode check, but it checks daemonClient != nil internally and returns early. This is redundant.\n\n**Location:** All read commands (list.go:196, show.go:27, ready.go:102, status.go:80, etc.)\n\n## Current Pattern\n\nCall happens before daemon check, function checks daemonClient internally.\n\n## Better Pattern\n\nMove staleness check to direct mode branch only, after daemon check.\n\n## Impact\nLow - minor performance improvement (avoids one function call per command in daemon mode)\n\n## Effort\nMedium - requires refactoring 8 command files\n\n## Priority\nLow - can defer to future cleanup PR","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-11-20T20:17:45.119583-05:00","updated_at":"2025-12-09T18:38:37.686612072-05:00","closed_at":"2025-11-28T23:37:52.276192-08:00"} {"id":"bd-c4wq","title":"Work on gt-8tmz.36: Validate expanded step IDs are unique...","description":"Work on gt-8tmz.36: Validate expanded step IDs are unique. In internal/formula/, add validation during cooking that checks for duplicate step IDs after expansion. When done: 1) bd close gt-8tmz.36, 2) bd sync, 3) git push, 4) gt mq submit","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T19:26:31.323192-08:00","updated_at":"2025-12-25T19:37:49.605774-08:00","closed_at":"2025-12-25T19:37:49.605774-08:00"} {"id":"bd-c6w","title":"bd info whats-new missing releases","description":"Current release is v0.25.1 but `bd info --whats-new` stops at v0.23.0, indicating something is missing in the create new release workflow.","notes":"github issue #386","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-26T05:50:37.252394374-07:00","updated_at":"2025-11-26T06:28:21.974264087-07:00","closed_at":"2025-11-26T06:28:21.974264087-07:00"} @@ -1000,8 +999,8 @@ {"id":"bd-c8x","title":"Don't search parent directories for .beads databases","description":"bd currently walks up the directory tree looking for .beads directories, which can find unrelated databases (e.g., ~/.beads). This causes confusing warnings and potential data pollution.\n\nShould either:\n1. Stop at git root (don't search above it)\n2. Only use explicit BEADS_DB env var or local .beads\n3. At minimum, don't search in home directory","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-27T22:10:41.992686-08:00","updated_at":"2025-12-02T17:11:19.737425041-05:00","closed_at":"2025-11-28T22:15:55.878353-08:00"} {"id":"bd-c947dd1b","title":"Remove Daemon Storage Cache","description":"The daemon's multi-repo storage cache is the root cause of stale data bugs. Since global daemon is deprecated, we only ever serve one repository, making the cache unnecessary complexity. This epic removes the cache entirely for simpler, more reliable direct storage access.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-10-28T10:50:15.126939-07:00","updated_at":"2025-10-30T17:12:58.21743-07:00","closed_at":"2025-10-28T10:49:53.612049-07:00"} {"id":"bd-c9a482db","title":"Add internal/ai package for AI-assisted repairs","description":"Add AI integration package to support AI-powered repair commands.\n\nProviders:\n- Anthropic (Claude)\n- OpenAI\n- Ollama (local)\n\nFeatures:\n- Conflict resolution analysis\n- Duplicate detection via embeddings\n- Configuration via env vars (BEADS_AI_PROVIDER, BEADS_AI_API_KEY, etc.)\n\nSee repair_commands.md lines 357-425 for design.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-28T19:37:55.722841-07:00","updated_at":"2025-12-14T12:12:46.503526-08:00","closed_at":"2025-11-06T19:27:19.150657-08:00"} -{"id":"bd-c9ymy","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:21:48.669052-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T01:21:48.718581-08:00","closed_at":"2026-01-12T01:21:48.718581-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-c9yya","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:58:41.995929-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T00:58:42.029362-08:00","closed_at":"2026-01-09T00:58:42.029362-08:00","close_reason":"auto-closed session event"} +{"id":"bd-c9ymy","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T01:21:48.669052-08:00","updated_at":"2026-01-12T01:21:48.718581-08:00","closed_at":"2026-01-12T01:21:48.718581-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-c9yya","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:58:41.995929-08:00","updated_at":"2026-01-09T00:58:42.029362-08:00","closed_at":"2026-01-09T00:58:42.029362-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/dave"} {"id":"bd-caa9","title":"Migration tool for existing users","description":"Ensure smooth migration for existing users to separate branch workflow.\n\nTasks:\n- Add bd migrate --separate-branch command\n- Detect existing repos, migrate cleanly\n- Preserve git history\n- Add rollback mechanism\n- Test migration on beads' own repo (dogfooding)\n- Communication plan (GitHub discussion, docs)\n- Version compatibility checks\n\nEstimated effort: 2-3 days","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-02T15:22:35.627388-08:00","updated_at":"2025-12-14T12:12:46.534847-08:00","closed_at":"2025-11-04T12:36:53.789201-08:00","dependencies":[{"issue_id":"bd-caa9","depends_on_id":"bd-a101","type":"parent-child","created_at":"2025-11-02T15:22:48.382619-08:00","created_by":"stevey"}]} {"id":"bd-cb2f","title":"Week 1 task","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-03T19:11:59.358093-08:00","updated_at":"2025-12-14T00:32:11.048433-08:00","closed_at":"2025-12-13T23:29:56.877967-08:00"} {"id":"bd-cb64c226.1","title":"Performance Validation","description":"Confirm no performance regression from cache removal","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-10-28T10:50:15.126019-07:00","updated_at":"2025-12-17T23:18:29.108883-08:00","deleted_at":"2025-12-17T23:18:29.108883-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} @@ -1018,133 +1017,133 @@ {"id":"bd-cbed9619.5","title":"Add content-addressable identity to Issue type","description":"**Summary:** Added content-addressable identity to Issue type by implementing a ContentHash field that generates a unique SHA256 fingerprint based on semantic issue content. This resolves issue identification challenges when multiple system instances create issues with identical IDs but different contents.\n\n**Key Decisions:**\n- Use SHA256 for content hashing\n- Hash excludes ID and timestamps\n- Compute hash automatically at creation/import time\n- Add database column for hash storage\n\n**Resolution:** Successfully implemented a deterministic content hashing mechanism that enables reliable issue identification across distributed systems, improving data integrity and collision detection.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-10-28T18:36:44.914967-07:00","updated_at":"2025-12-17T23:18:29.112933-08:00","deleted_at":"2025-12-17T23:18:29.112933-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} {"id":"bd-cc03","title":"Build Node.js CLI wrapper for WASM","description":"Create npm package that wraps bd.wasm. Child of epic bd-44d0.\n\n## Tasks\n- [ ] Set up npm package structure (package.json)\n- [ ] Implement CLI argument parsing\n- [ ] Load and execute WASM module\n- [ ] Handle stdout/stderr correctly\n- [ ] Support --json flag for all commands\n- [ ] Add bd-wasm bin script\n\n## Success Criteria\n- bd-wasm ready --json works identically to bd\n- All core commands supported","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-02T18:33:31.310268-08:00","updated_at":"2025-12-14T12:12:46.531854-08:00","closed_at":"2025-11-05T00:55:48.758198-08:00","dependencies":[{"issue_id":"bd-cc03","depends_on_id":"bd-197b","type":"blocks","created_at":"2025-11-02T18:33:31.311017-08:00","created_by":"daemon"}]} {"id":"bd-cc4f","title":"Implement TryResurrectParent function","description":"Create internal/storage/sqlite/resurrection.go with TryResurrectParent(ctx, parentID) function. Parse JSONL history to find deleted parent, create tombstone with status=deleted and is_tombstone=true flag. Handle recursive resurrection for multi-level missing parents (bd-abc.1.2 with missing bd-abc and bd-abc.1).","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-04T12:31:59.61107-08:00","updated_at":"2025-11-05T00:08:42.813998-08:00","closed_at":"2025-11-05T00:08:42.814-08:00"} -{"id":"bd-ccmv2","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T11:05:12.319852-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T11:05:12.357967-08:00","closed_at":"2026-01-09T11:05:12.357967-08:00","close_reason":"auto-closed session event"} +{"id":"bd-ccmv2","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T11:05:12.319852-08:00","updated_at":"2026-01-09T11:05:12.357967-08:00","closed_at":"2026-01-09T11:05:12.357967-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/dave"} {"id":"bd-cddj","title":"GH#520: Daemon sync-branch commit fails with pre-commit hooks (needs --no-verify)","description":"gitCommitInWorktree in daemon_sync_branch.go missing --no-verify flag, causing commit failures when pre-commit hooks installed. Library function in worktree.go:684 has correct impl. See: https://github.com/steveyegge/beads/issues/520","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-14T16:31:33.151247-08:00","updated_at":"2025-12-16T01:27:28.896303-08:00","closed_at":"2025-12-16T01:27:28.896303-08:00"} {"id":"bd-cdf7","title":"Add tests for DetectCycles to improve coverage from 29.6%","description":"DetectCycles currently has 29.6% coverage. Need comprehensive tests for:\n- Simple cycles (A-\u003eB-\u003eA)\n- Complex multi-node cycles\n- Acyclic graphs (should not detect cycles)\n- Self-loops\n- Multiple independent cycles\n- Edge cases (empty graph, single node)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-01T22:40:58.977156-07:00","updated_at":"2025-11-01T22:52:02.243223-07:00","closed_at":"2025-11-01T22:52:02.243223-07:00"} {"id":"bd-ce37850f","title":"Add embedding generation for duplicate detection","description":"Use embeddings for scalable duplicate detection.\n\nModel: text-embedding-3-small (OpenAI) or all-MiniLM-L6-v2 (local)\nStorage: SQLite vector extension or in-memory\nCost: ~/bin/bash.0002 per 100 issues\n\nMuch cheaper than LLM comparisons for large databases.\n\nFiles: internal/embeddings/ (new package)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-28T14:48:29.072913-07:00","updated_at":"2025-12-14T12:12:46.532701-08:00","closed_at":"2025-11-06T19:27:25.234801-08:00"} -{"id":"bd-ce70","title":"Review: Polecats should not delete tracked beads files","description":"During gt-3w685 implementation, nux accidentally included .beads/issues.jsonl deletion in commit. Review polecat sandboxing to ensure .beads/ files are protected from accidental deletion. Consider adding .beads/ to a protected paths list or gitignore in polecat worktrees.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:10:43.645481-08:00","created_by":"mayor","updated_at":"2026-01-06T20:14:25.968848-08:00","closed_at":"2026-01-06T20:14:25.968848-08:00","close_reason":"Refiling as gt- issue"} -{"id":"bd-ceo1c","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T17:31:39.359946-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T17:31:39.42748-08:00","closed_at":"2026-01-12T17:31:39.42748-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ce70","title":"Review: Polecats should not delete tracked beads files","description":"During gt-3w685 implementation, nux accidentally included .beads/issues.jsonl deletion in commit. Review polecat sandboxing to ensure .beads/ files are protected from accidental deletion. Consider adding .beads/ to a protected paths list or gitignore in polecat worktrees.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:10:43.645481-08:00","updated_at":"2026-01-06T20:14:25.968848-08:00","closed_at":"2026-01-06T20:14:25.968848-08:00","close_reason":"Refiling as gt- issue","created_by":"mayor"} +{"id":"bd-ceo1c","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T17:31:39.359946-08:00","updated_at":"2026-01-12T17:31:39.42748-08:00","closed_at":"2026-01-12T17:31:39.42748-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} {"id":"bd-cf349eb3","title":"Update LINTING.md with current baseline","description":"After cleanup, document the remaining acceptable baseline in LINTING.md so we can track regression.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-27T23:20:10.39272-07:00","updated_at":"2025-10-30T17:12:58.215471-07:00","closed_at":"2025-10-27T23:05:31.945614-07:00"} -{"id":"bd-cfxq","title":"Merge: topaz-1767106269860","description":"branch: polecat/topaz-1767106269860\ntarget: main\nsource_issue: topaz-1767106269860\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T07:18:49.114417-08:00","created_by":"beads/polecats/topaz","updated_at":"2025-12-30T18:12:30.985385-08:00","closed_at":"2025-12-30T18:11:08.052794-08:00"} +{"id":"bd-cfxq","title":"Merge: topaz-1767106269860","description":"branch: polecat/topaz-1767106269860\ntarget: main\nsource_issue: topaz-1767106269860\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T07:18:49.114417-08:00","updated_at":"2025-12-30T18:12:30.985385-08:00","closed_at":"2025-12-30T18:11:08.052794-08:00","created_by":"beads/polecats/topaz"} {"id":"bd-chsc","title":"Test lowercase p0","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-05T12:58:41.457875-08:00","updated_at":"2025-11-05T12:58:44.721486-08:00","closed_at":"2025-11-05T12:58:44.721486-08:00"} {"id":"bd-cils","title":"Work on beads-2nh: Fix gt spawn --issue to find issues in...","description":"Work on beads-2nh: Fix gt spawn --issue to find issues in rig's beads database. When done, submit MR (not PR) to integration branch for Refinery.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-19T22:55:47.573854-08:00","updated_at":"2025-12-20T00:49:51.927884-08:00","closed_at":"2025-12-19T23:28:28.605343-08:00"} -{"id":"bd-cj2e","title":"bd update --parent: allow reparenting issues","description":"**Request:** Add `--parent` flag to `bd update` command.\n\n**Use case:** When renaming/migrating an epic (e.g., gt-oki8p → gt-liftoff), need to reparent child issues to the new epic.\n\n**Current workaround:** None clean - must delete and recreate children, or manually edit JSONL.\n\n**Proposed:**\n```bash\nbd update gt-j0gx2 --parent=gt-liftoff\n```\n\n**Note:** `bd create` already has `--parent` flag, so the semantics are established.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-27T21:42:44.396998-08:00","created_by":"mayor","updated_at":"2025-12-27T22:17:12.346147-08:00","closed_at":"2025-12-27T22:17:12.346147-08:00"} +{"id":"bd-cj2e","title":"bd update --parent: allow reparenting issues","description":"**Request:** Add `--parent` flag to `bd update` command.\n\n**Use case:** When renaming/migrating an epic (e.g., gt-oki8p → gt-liftoff), need to reparent child issues to the new epic.\n\n**Current workaround:** None clean - must delete and recreate children, or manually edit JSONL.\n\n**Proposed:**\n```bash\nbd update gt-j0gx2 --parent=gt-liftoff\n```\n\n**Note:** `bd create` already has `--parent` flag, so the semantics are established.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-27T21:42:44.396998-08:00","updated_at":"2025-12-27T22:17:12.346147-08:00","closed_at":"2025-12-27T22:17:12.346147-08:00","created_by":"mayor"} {"id":"bd-cjxp","title":"Bug P0","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-07T19:00:22.536449-08:00","updated_at":"2025-11-07T22:07:17.345535-08:00","closed_at":"2025-11-07T21:55:09.429643-08:00"} -{"id":"bd-ckax0","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T12:30:30.680554-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T12:30:30.750882-08:00","closed_at":"2026-01-13T12:30:30.750882-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ckax0","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T12:30:30.680554-08:00","updated_at":"2026-01-13T12:30:30.750882-08:00","closed_at":"2026-01-13T12:30:30.750882-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-ckvw","title":"Add schema compatibility probe to prevent silent migration failures","description":"Issue #262 revealed a serious bug: migrations may fail silently, causing UNIQUE constraint errors later.\n\nRoot cause:\n- sqlite.New() runs migrations once on open\n- checkVersionMismatch() prints 'database will be upgraded automatically' but only updates metadata\n- If migrations fail or daemon runs older version, queries expecting new columns fail with 'no such column'\n- Import logic misinterprets this as 'not found' and tries INSERT on existing ID\n- Result: UNIQUE constraint failed: issues.id\n\nFix strategy (minimal):\n1. Add schema probe in sqlite.New() after RunMigrations\n - SELECT all expected columns from all tables with LIMIT 0\n - If fails, retry RunMigrations and probe again\n - If still fails, return fatal error with clear message\n2. Fix checkVersionMismatch to not claim 'will upgrade' unless probe passes\n3. Only update bd_version after successful migration probe\n4. Add schema verification before import operations\n5. Map 'no such column' errors to clear actionable message\n\nRelated: #262","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-08T13:23:26.934246-08:00","updated_at":"2025-11-08T13:53:29.219542-08:00","closed_at":"2025-11-08T13:53:29.219542-08:00"} -{"id":"bd-cl1o","title":"Merge: obsidian-mjw4b7ph","description":"branch: polecat/obsidian-mjw4b7ph\ntarget: main\nsource_issue: obsidian-mjw4b7ph\nrig: beads\nagent_bead: gt-beads-polecat-obsidian","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-01T16:17:26.585696-08:00","created_by":"beads/polecats/obsidian","updated_at":"2026-01-01T16:19:26.187-08:00","closed_at":"2026-01-01T16:19:26.187-08:00","close_reason":"Branch dropped during rebase - changes already in main"} +{"id":"bd-cl1o","title":"Merge: obsidian-mjw4b7ph","description":"branch: polecat/obsidian-mjw4b7ph\ntarget: main\nsource_issue: obsidian-mjw4b7ph\nrig: beads\nagent_bead: gt-beads-polecat-obsidian","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-01T16:17:26.585696-08:00","updated_at":"2026-01-01T16:19:26.187-08:00","closed_at":"2026-01-01T16:19:26.187-08:00","close_reason":"Branch dropped during rebase - changes already in main","created_by":"beads/polecats/obsidian"} {"id":"bd-clou5","title":"Digest: mol-refinery-patrol","description":"Patrol: empty merge queue, no branches processed, system healthy","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-13T17:04:52.294694-08:00","updated_at":"2026-01-13T17:04:52.294694-08:00","closed_at":"2026-01-13T17:04:52.294644-08:00","close_reason":"Squashed from 11 wisps"} -{"id":"bd-clryf","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:18:02.054712-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:18:02.121754-08:00","closed_at":"2026-01-11T19:18:02.121754-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-clvv8","title":"Review and merge PR #1055: bump upload-pages-artifact v3→v4","description":"dispatched_by: beads/crew/emma\n\n## Easy-win PR Review\n\nPR: https://github.com/steveyegge/beads/pull/1055\nType: Dependabot dependency bump (GitHub Actions)\nChange: actions/upload-pages-artifact v3 → v4\n\n## Task\n1. Review the PR diff: `gh pr diff 1055 --repo steveyegge/beads`\n2. Check CI status: `gh pr checks 1055 --repo steveyegge/beads`\n3. If CI passes and diff looks safe, approve and merge:\n `gh pr review 1055 --repo steveyegge/beads --approve`\n `gh pr merge 1055 --repo steveyegge/beads --squash`\n4. Close this bead when done\n\n## Notes\n- Major version bump: dotfiles will NOT be included in artifacts (breaking change)\n- Likely OK for beads since we probably don't rely on dotfiles in page artifacts","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/fang","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:28:32.929163-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T23:05:19.841777-08:00","closed_at":"2026-01-12T23:05:19.841777-08:00","close_reason":"PR #1055 reviewed and merged. CI failure was pre-existing version mismatch unrelated to this Dependabot bump.","external_ref":"gh-1055"} -{"id":"bd-cm5g","title":"Merge: basalt-mjtme50i","description":"branch: polecat/basalt-mjtme50i\ntarget: main\nsource_issue: basalt-mjtme50i\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T22:20:38.32952-08:00","created_by":"beads/polecats/basalt","updated_at":"2026-01-01T10:43:18.622647-08:00","closed_at":"2026-01-01T10:43:18.622647-08:00","close_reason":"Stale MR - branch no longer exists on remote"} -{"id":"bd-cmdfo","title":"Assigned issue","status":"open","priority":1,"issue_type":"task","assignee":"testuser","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:02.343011-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:02.343011-08:00"} -{"id":"bd-cmqzz","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:14:19.936945-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:14:20.002371-08:00","closed_at":"2026-01-11T19:14:20.002371-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-cmvj7","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T13:00:31.48751-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T13:00:31.564948-08:00","closed_at":"2026-01-13T13:00:31.564948-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-cn56","title":"Update merge_slot.go to use labels instead of type","description":"Change merge slot bead management to use gt:slot label instead of TypeSlot.\n\n## Work\n- Change IssueType=slot to IssueType=task when creating slots\n- Add gt:slot label when creating slot beads \n\n## Files\n- cmd/bd/merge_slot.go","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:40:21.878624-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-06T22:11:03.563553-08:00","closed_at":"2026-01-06T22:11:03.563553-08:00","close_reason":"Migrated merge_slot.go to use gt:slot label instead of type","dependencies":[{"issue_id":"bd-cn56","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.610957-08:00","created_by":"beads/crew/dave"}]} +{"id":"bd-clryf","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:18:02.054712-08:00","updated_at":"2026-01-11T19:18:02.121754-08:00","closed_at":"2026-01-11T19:18:02.121754-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-clvv8","title":"Review and merge PR #1055: bump upload-pages-artifact v3→v4","description":"dispatched_by: beads/crew/emma\n\n## Easy-win PR Review\n\nPR: https://github.com/steveyegge/beads/pull/1055\nType: Dependabot dependency bump (GitHub Actions)\nChange: actions/upload-pages-artifact v3 → v4\n\n## Task\n1. Review the PR diff: `gh pr diff 1055 --repo steveyegge/beads`\n2. Check CI status: `gh pr checks 1055 --repo steveyegge/beads`\n3. If CI passes and diff looks safe, approve and merge:\n `gh pr review 1055 --repo steveyegge/beads --approve`\n `gh pr merge 1055 --repo steveyegge/beads --squash`\n4. Close this bead when done\n\n## Notes\n- Major version bump: dotfiles will NOT be included in artifacts (breaking change)\n- Likely OK for beads since we probably don't rely on dotfiles in page artifacts","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T19:28:32.929163-08:00","updated_at":"2026-01-12T23:05:19.841777-08:00","closed_at":"2026-01-12T23:05:19.841777-08:00","close_reason":"PR #1055 reviewed and merged. CI failure was pre-existing version mismatch unrelated to this Dependabot bump.","created_by":"beads/crew/emma"} +{"id":"bd-cm5g","title":"Merge: basalt-mjtme50i","description":"branch: polecat/basalt-mjtme50i\ntarget: main\nsource_issue: basalt-mjtme50i\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T22:20:38.32952-08:00","updated_at":"2026-01-01T10:43:18.622647-08:00","closed_at":"2026-01-01T10:43:18.622647-08:00","close_reason":"Stale MR - branch no longer exists on remote","created_by":"beads/polecats/basalt"} +{"id":"bd-cmdfo","title":"Assigned issue","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-11T18:16:02.343011-08:00","updated_at":"2026-01-11T18:16:02.343011-08:00","created_by":"beads/crew/wolf"} +{"id":"bd-cmqzz","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:14:19.936945-08:00","updated_at":"2026-01-11T19:14:20.002371-08:00","closed_at":"2026-01-11T19:14:20.002371-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-cmvj7","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T13:00:31.48751-08:00","updated_at":"2026-01-13T13:00:31.564948-08:00","closed_at":"2026-01-13T13:00:31.564948-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-cn56","title":"Update merge_slot.go to use labels instead of type","description":"Change merge slot bead management to use gt:slot label instead of TypeSlot.\n\n## Work\n- Change IssueType=slot to IssueType=task when creating slots\n- Add gt:slot label when creating slot beads \n\n## Files\n- cmd/bd/merge_slot.go","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:40:21.878624-08:00","updated_at":"2026-01-06T22:11:03.563553-08:00","closed_at":"2026-01-06T22:11:03.563553-08:00","close_reason":"Migrated merge_slot.go to use gt:slot label instead of type","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-cn56","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.610957-08:00","created_by":"beads/crew/dave"}]} {"id":"bd-cnwx","title":"Refactor mol.go: split 1200+ line file into subcommands","description":"## Problem\n\ncmd/bd/mol.go has grown to 1200+ lines with all molecule subcommands in one file.\n\n## Current State\n- mol.go: 1218 lines (bond, spawn, run, distill, catalog, show, etc.)\n- Hard to navigate, review, and maintain\n\n## Proposed Structure\nSplit into separate files by subcommand:\n```\ncmd/bd/\n├── mol.go # Root command, shared helpers\n├── mol_bond.go # bd mol bond\n├── mol_spawn.go # bd mol spawn \n├── mol_run.go # bd mol run\n├── mol_distill.go # bd mol distill\n├── mol_catalog.go # bd mol catalog\n├── mol_show.go # bd mol show\n└── mol_test.go # Tests (already separate)\n```\n\n## Benefits\n- Easier code review\n- Better separation of concerns\n- Simpler navigation\n- Each subcommand self-contained","status":"closed","priority":2,"issue_type":"chore","created_at":"2025-12-21T11:30:58.832192-08:00","updated_at":"2025-12-21T11:42:49.390824-08:00","closed_at":"2025-12-21T11:42:49.390824-08:00"} {"id":"bd-co29","title":"Merge: bd-n386","description":"branch: polecat/immortan\ntarget: main\nsource_issue: bd-n386\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-23T20:41:45.644113-08:00","updated_at":"2025-12-23T21:21:57.70152-08:00","closed_at":"2025-12-23T21:21:57.70152-08:00"} -{"id":"bd-coh0k","title":"Blocked issue","status":"open","priority":1,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:01.649522-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:01.649522-08:00"} +{"id":"bd-coh0k","title":"Blocked issue","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-11T18:16:01.649522-08:00","updated_at":"2026-01-11T18:16:01.649522-08:00","created_by":"beads/crew/wolf"} {"id":"bd-crgr","title":"GH#517: Claude sets priority wrong on new install","description":"Claude uses 'medium/high/low' for priority instead of P0-P4. Update bd prime/onboard output to be clearer about priority syntax. See GitHub issue #517.","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-12-16T01:03:34.803084-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} -{"id":"bd-crncp","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T14:06:30.524914-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T14:06:30.558713-08:00","closed_at":"2026-01-09T14:06:30.558713-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-crv06","title":"Issue 1","status":"open","priority":1,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:14.494763-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:14.494763-08:00","dependencies":[{"issue_id":"bd-crv06","depends_on_id":"bd-r53nt","type":"related","created_at":"2026-01-11T18:16:14.690959-08:00","created_by":"beads/crew/wolf"}]} -{"id":"bd-cs2l","title":"Test Agent","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2025-12-28T01:55:35.621013-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T02:21:06.391783-08:00","deleted_at":"2025-12-28T02:21:06.391783-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"agent"} -{"id":"bd-cslfj","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T16:42:36.889361-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T16:42:36.954085-08:00","closed_at":"2026-01-12T16:42:36.954085-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-csnep","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:27:05.392572-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T16:27:05.428055-08:00","closed_at":"2026-01-10T16:27:05.428055-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-crncp","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T14:06:30.524914-08:00","updated_at":"2026-01-09T14:06:30.558713-08:00","closed_at":"2026-01-09T14:06:30.558713-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-crv06","title":"Issue 1","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-11T18:16:14.494763-08:00","updated_at":"2026-01-11T18:16:14.494763-08:00","created_by":"beads/crew/wolf","dependencies":[{"issue_id":"bd-crv06","depends_on_id":"bd-r53nt","type":"related","created_at":"2026-01-11T18:16:14.690959-08:00","created_by":"beads/crew/wolf"}]} +{"id":"bd-cs2l","title":"Test Agent","status":"tombstone","priority":2,"issue_type":"agent","created_at":"2025-12-28T01:55:35.621013-08:00","updated_at":"2025-12-28T02:21:06.391783-08:00","created_by":"beads/crew/dave","deleted_at":"2025-12-28T02:21:06.391783-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"agent"} +{"id":"bd-cslfj","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T16:42:36.889361-08:00","updated_at":"2026-01-12T16:42:36.954085-08:00","closed_at":"2026-01-12T16:42:36.954085-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-csnep","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:27:05.392572-08:00","updated_at":"2026-01-10T16:27:05.428055-08:00","closed_at":"2026-01-10T16:27:05.428055-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-csnr","title":"activity --follow: Silent error handling","description":"In activity.go:175-179, when the daemon is down or errors occur during polling in --follow mode, errors are silently ignored:\n\n```go\nnewEvents, err := fetchMutations(lastPoll)\nif err != nil {\n // Daemon might be down, continue trying\n continue\n}\n```\n\nThis means:\n- Users won't know if the daemon is unreachable\n- Could appear frozen when actually failing\n- No indication of lost events\n\nShould at least show a warning after N consecutive failures, or show '...' indicator to show polling status.\n\nDiscovered during code review of bd-xo1o implementation.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-23T04:06:18.590743-08:00","updated_at":"2025-12-23T04:16:04.64978-08:00","closed_at":"2025-12-23T04:16:04.64978-08:00"} {"id":"bd-csvy","title":"Add tests for merge driver auto-config in bd init","description":"Add comprehensive tests for the merge driver auto-configuration functionality in `bd init`.\n\n**Test cases needed:**\n- Auto-install in quiet mode\n- Skip with --skip-merge-driver flag\n- Detect already-installed merge driver\n- Append to existing .gitattributes\n- Interactive prompt behavior (if feasible)\n\n**File:** `cmd/bd/init_test.go`","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-05T19:27:04.133078-08:00","updated_at":"2025-11-06T18:19:16.233673-08:00","closed_at":"2025-11-06T15:56:36.014814-08:00","dependencies":[{"issue_id":"bd-csvy","depends_on_id":"bd-32nm","type":"discovered-from","created_at":"2025-11-05T19:27:04.134299-08:00","created_by":"daemon"}]} -{"id":"bd-ctmg","title":"CLI cleanup: Rename bd mol catalog to bd formula list","description":"## Problem\n`bd mol catalog` shows formulas, not molecules. This is confusing.\n\nCurrent state:\n- `bd formula list` - lists formulas\n- `bd mol catalog` - ALSO lists formulas (duplicate!)\n\nThe \"mol\" namespace should be for molecules (instantiated work), not formulas (templates).\n\n## Proposed Change\n- Remove `bd mol catalog`\n- Keep `bd formula list` as the canonical command\n- Update docs to use `bd formula list`\n\n## Alternative\nIf we want a \"catalog\" concept separate from \"list\", make it `bd formula catalog`.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T14:28:04.647593-08:00","created_by":"mayor","updated_at":"2025-12-27T14:33:44.517362-08:00","closed_at":"2025-12-27T14:33:44.517362-08:00"} +{"id":"bd-ctmg","title":"CLI cleanup: Rename bd mol catalog to bd formula list","description":"## Problem\n`bd mol catalog` shows formulas, not molecules. This is confusing.\n\nCurrent state:\n- `bd formula list` - lists formulas\n- `bd mol catalog` - ALSO lists formulas (duplicate!)\n\nThe \"mol\" namespace should be for molecules (instantiated work), not formulas (templates).\n\n## Proposed Change\n- Remove `bd mol catalog`\n- Keep `bd formula list` as the canonical command\n- Update docs to use `bd formula list`\n\n## Alternative\nIf we want a \"catalog\" concept separate from \"list\", make it `bd formula catalog`.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T14:28:04.647593-08:00","updated_at":"2025-12-27T14:33:44.517362-08:00","closed_at":"2025-12-27T14:33:44.517362-08:00","created_by":"mayor"} {"id":"bd-cuek","title":"bd doctor --fix destroys child→parent dependencies without confirmation","description":"GH#740: User reports that `bd doctor --fix` removed their intentional child→parent dependencies, calling them an 'anti-pattern'.\n\nThe fix in `cmd/bd/doctor/fix/validation.go` (ChildParentDependencies function) automatically deletes dependencies where a child issue depends on its parent epic.\n\n**Problem**: This assumes all such dependencies are mistakes, but users may intentionally want children blocked by their parent (e.g., 'don't start subtasks until parent is fully scoped').\n\n**Solution options**:\n1. Remove this fix entirely (let users manage their own deps)\n2. Require explicit opt-in flag like `--fix-child-parent`\n3. Add confirmation prompt before destructive action\n4. Add `--dry-run` to preview what would be removed\n5. Only warn, never auto-fix\n\n**Files involved**:\n- `cmd/bd/doctor/validation.go:311-382` (check)\n- `cmd/bd/doctor/fix/validation.go:165-227` (fix)","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-12-25T13:59:52.811547-08:00","updated_at":"2025-12-25T14:05:41.249168-08:00","closed_at":"2025-12-25T14:05:41.249168-08:00"} -{"id":"bd-culyr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T18:01:16.277838-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T18:01:16.328396-08:00","closed_at":"2026-01-13T18:01:16.328396-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-cwiyj","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T21:35:17.536387-08:00","created_by":"beads/crew/giles","updated_at":"2026-01-08T21:35:17.571045-08:00","closed_at":"2026-01-08T21:35:17.571045-08:00","close_reason":"auto-closed session event"} -{"id":"bd-cwpl","title":"bd doctor --deep: validate full graph integrity","description":"Add a deep validation mode to bd doctor that checks the entire issue graph.\n\nCurrent doctor checks:\n- Orphan sessions\n- Orphan processes \n- Wisp GC\n- Sync status\n\nProposed --deep checks:\n- **Parent consistency**: Every issue with parent field points to existing issue\n- **Dependency symmetry**: If A depends on B, B should show A in blocks\n- **Orphan issues**: Issues mentioned in commits but never closed\n- **Circular dependencies**: Detect dependency cycles\n- **Epic completeness**: Epics with all children closed should be closeable\n- **Agent bead integrity**: Agent beads have required fields (role_bead, state)\n- **Mail thread integrity**: Messages point to valid threads\n- **Molecule state**: Molecules have valid current_step pointing to existing step\n\nUse case: After complex operations (reparenting, migrations, bulk updates), run `bd doctor --deep` to catch graph inconsistencies before they cause problems.\n\nPerformance: May be slow on large databases - warn user and show progress.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-27T23:07:22.185409-08:00","created_by":"mayor","updated_at":"2025-12-28T02:13:41.833478-08:00","closed_at":"2025-12-28T02:13:41.833478-08:00"} -{"id":"bd-cx3ts","title":"Deacon Patrol","description":"Mayor's daemon patrol loop for handling callbacks, health checks, and cleanup.","status":"open","priority":2,"issue_type":"molecule","created_at":"2026-01-07T23:28:35.676224-08:00","created_by":"deacon","updated_at":"2026-01-07T23:28:35.676224-08:00"} +{"id":"bd-culyr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T18:01:16.277838-08:00","updated_at":"2026-01-13T18:01:16.328396-08:00","closed_at":"2026-01-13T18:01:16.328396-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-cwiyj","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T21:35:17.536387-08:00","updated_at":"2026-01-08T21:35:17.571045-08:00","closed_at":"2026-01-08T21:35:17.571045-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/giles"} +{"id":"bd-cwpl","title":"bd doctor --deep: validate full graph integrity","description":"Add a deep validation mode to bd doctor that checks the entire issue graph.\n\nCurrent doctor checks:\n- Orphan sessions\n- Orphan processes \n- Wisp GC\n- Sync status\n\nProposed --deep checks:\n- **Parent consistency**: Every issue with parent field points to existing issue\n- **Dependency symmetry**: If A depends on B, B should show A in blocks\n- **Orphan issues**: Issues mentioned in commits but never closed\n- **Circular dependencies**: Detect dependency cycles\n- **Epic completeness**: Epics with all children closed should be closeable\n- **Agent bead integrity**: Agent beads have required fields (role_bead, state)\n- **Mail thread integrity**: Messages point to valid threads\n- **Molecule state**: Molecules have valid current_step pointing to existing step\n\nUse case: After complex operations (reparenting, migrations, bulk updates), run `bd doctor --deep` to catch graph inconsistencies before they cause problems.\n\nPerformance: May be slow on large databases - warn user and show progress.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-27T23:07:22.185409-08:00","updated_at":"2025-12-28T02:13:41.833478-08:00","closed_at":"2025-12-28T02:13:41.833478-08:00","created_by":"mayor"} +{"id":"bd-cx3ts","title":"Deacon Patrol","description":"Mayor's daemon patrol loop for handling callbacks, health checks, and cleanup.","status":"open","priority":2,"issue_type":"molecule","created_at":"2026-01-07T23:28:35.676224-08:00","updated_at":"2026-01-07T23:28:35.676224-08:00","created_by":"deacon"} {"id":"bd-czss","title":"Update CHANGELOG.md with release notes","description":"Add meaningful release notes to CHANGELOG.md describing what changed in {{version}}","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T22:55:59.909641-08:00","updated_at":"2025-12-20T17:59:26.262153-08:00","closed_at":"2025-12-20T01:23:51.407302-08:00","dependencies":[{"issue_id":"bd-czss","depends_on_id":"bd-6s61","type":"parent-child","created_at":"2025-12-19T22:56:14.862724-08:00","created_by":"daemon"},{"issue_id":"bd-czss","depends_on_id":"bd-qkw9","type":"blocks","created_at":"2025-12-19T22:56:23.145894-08:00","created_by":"daemon"}]} -{"id":"bd-d0f6m","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:05:48.836019-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-12T23:05:48.904953-08:00","closed_at":"2026-01-12T23:05:48.904953-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-d0f6m","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T23:05:48.836019-08:00","updated_at":"2026-01-12T23:05:48.904953-08:00","closed_at":"2026-01-12T23:05:48.904953-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} {"id":"bd-d148","title":"GH#483: Pre-commit hook fails unnecessarily when .beads removed","description":"Pre-commit hook fails on bd sync when .beads directory exists but user is on branch without beads. Should exit gracefully. See GitHub issue #483.","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-12-16T01:03:40.049785-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-d19a","title":"Fix import failure on missing parent issues","description":"Import process fails atomically when JSONL references deleted parent issues. Implement hybrid solution: topological sorting + parent resurrection to handle deleted parents gracefully while maintaining referential integrity. See docs/import-bug-analysis-bd-3xq.md for full analysis.","status":"closed","priority":0,"issue_type":"epic","created_at":"2025-11-04T12:31:30.994759-08:00","updated_at":"2025-11-05T00:08:42.814239-08:00","closed_at":"2025-11-05T00:08:42.814243-08:00"} -{"id":"bd-d1n1","title":"Epic: Gate-Aware Release Workflow","description":"Reimagine beads-release.formula using gates for async waits.\n\n## Background\nCurrent release workflow has polecat sitting idle during CI (5-10 min wait).\nGates allow clean handoff: polecat completes phase, gate blocks next step,\nRefinery polls external condition, gate closes, new polecat resumes.\n\n## Phases\n1. Formula gate syntax (Step.Gate field)\n2. Gate bead creation during cook\n3. Polecat phase handoff protocol\n4. Refinery gh:run auto-discovery\n5. Full gate-aware release formula\n\n## Related\n- bd-mcva: Gate Evaluation (phases 2-4) - infrastructure\n- beads-release.formula.json: Current workflow","status":"closed","priority":1,"issue_type":"epic","created_at":"2026-01-02T13:26:59.278771-08:00","created_by":"mayor","updated_at":"2026-01-02T16:54:51.00089-08:00","closed_at":"2026-01-02T16:54:51.00089-08:00","close_reason":"All 5 tasks complete: schema, cook gates, phase handoff, refinery discovery, formula v2"} -{"id":"bd-d1rda","title":"Review and merge PR #1059: bump golang.org/x/term v0.38→v0.39","description":"dispatched_by: beads/crew/emma\n\n## Easy-win PR Review\n\nPR: https://github.com/steveyegge/beads/pull/1059\nType: Dependabot dependency bump (Go modules)\nChange: golang.org/x/term 0.38.0 → 0.39.0\n\n## Task\n1. Review the PR diff: `gh pr diff 1059 --repo steveyegge/beads`\n2. Check CI status: `gh pr checks 1059 --repo steveyegge/beads`\n3. If CI passes and diff looks safe, approve and merge:\n `gh pr review 1059 --repo steveyegge/beads --approve`\n `gh pr merge 1059 --repo steveyegge/beads --squash`\n4. Close this bead when done\n\n## Notes\n- Minor version bump, adds transpose and delete key handling","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/dave","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:28:36.554339-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T19:38:45.811-08:00","closed_at":"2026-01-12T19:38:45.811-08:00","close_reason":"PR #1059 already merged (commit f827086b)","external_ref":"gh-1059"} +{"id":"bd-d1n1","title":"Epic: Gate-Aware Release Workflow","description":"Reimagine beads-release.formula using gates for async waits.\n\n## Background\nCurrent release workflow has polecat sitting idle during CI (5-10 min wait).\nGates allow clean handoff: polecat completes phase, gate blocks next step,\nRefinery polls external condition, gate closes, new polecat resumes.\n\n## Phases\n1. Formula gate syntax (Step.Gate field)\n2. Gate bead creation during cook\n3. Polecat phase handoff protocol\n4. Refinery gh:run auto-discovery\n5. Full gate-aware release formula\n\n## Related\n- bd-mcva: Gate Evaluation (phases 2-4) - infrastructure\n- beads-release.formula.json: Current workflow","status":"closed","priority":1,"issue_type":"epic","created_at":"2026-01-02T13:26:59.278771-08:00","updated_at":"2026-01-02T16:54:51.00089-08:00","closed_at":"2026-01-02T16:54:51.00089-08:00","close_reason":"All 5 tasks complete: schema, cook gates, phase handoff, refinery discovery, formula v2","created_by":"mayor"} +{"id":"bd-d1rda","title":"Review and merge PR #1059: bump golang.org/x/term v0.38→v0.39","description":"dispatched_by: beads/crew/emma\n\n## Easy-win PR Review\n\nPR: https://github.com/steveyegge/beads/pull/1059\nType: Dependabot dependency bump (Go modules)\nChange: golang.org/x/term 0.38.0 → 0.39.0\n\n## Task\n1. Review the PR diff: `gh pr diff 1059 --repo steveyegge/beads`\n2. Check CI status: `gh pr checks 1059 --repo steveyegge/beads`\n3. If CI passes and diff looks safe, approve and merge:\n `gh pr review 1059 --repo steveyegge/beads --approve`\n `gh pr merge 1059 --repo steveyegge/beads --squash`\n4. Close this bead when done\n\n## Notes\n- Minor version bump, adds transpose and delete key handling","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T19:28:36.554339-08:00","updated_at":"2026-01-12T19:38:45.811-08:00","closed_at":"2026-01-12T19:38:45.811-08:00","close_reason":"PR #1059 already merged (commit f827086b)","created_by":"beads/crew/emma"} {"id":"bd-d28c","title":"Test createTombstone and deleteIssue wrappers","description":"Add tests for the createTombstone and deleteIssue wrapper functions in cmd/bd/delete.go.\n\n## Functions under test\n- createTombstone (cmd/bd/delete.go:335) - Wrapper around SQLite CreateTombstone\n- deleteIssue (cmd/bd/delete.go:349) - Wrapper around SQLite DeleteIssue\n\n## Test scenarios for createTombstone\n1. Successful tombstone creation\n2. Tombstone with reason and actor tracking\n3. Error when issue doesn't exist\n4. Verify tombstone status set correctly\n5. Verify audit trail recorded\n6. Rollback/error handling\n\n## Test scenarios for deleteIssue\n1. Successful issue deletion\n2. Error on non-existent issue\n3. Verify issue removed from database\n4. Error handling when storage backend doesn't support delete\n\n## Coverage target\nCurrent: 0%\nTarget: \u003e85%\n\n## Related\n- Parent epic: bd-kyll\n- Original issue: bd-7z4","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-18T13:08:37.669214532-07:00","updated_at":"2025-12-23T21:44:33.169062-08:00","closed_at":"2025-12-23T21:44:33.169062-08:00","dependencies":[{"issue_id":"bd-d28c","depends_on_id":"bd-kyll","type":"parent-child","created_at":"2025-12-18T13:08:37.70588226-07:00","created_by":"mhwilkie"}]} -{"id":"bd-d2n74","title":"Add 'work_type' field for mutex vs open_competition","description":"dispatched_by: beads/crew/emma\n\nAdd string field for work type. Values: 'mutex' (one worker, exclusive - default) or 'open_competition' (many submit, buyer picks). Per Decision 006. Default: mutex.","status":"closed","priority":1,"issue_type":"task","assignee":"beads/crew/giles","created_at":"2026-01-10T16:34:06.735553-08:00","created_by":"gastown/crew/max","updated_at":"2026-01-10T19:35:04.574402-08:00","closed_at":"2026-01-10T19:35:04.574402-08:00","close_reason":"Implementation complete - work_type field added","dependencies":[{"issue_id":"bd-d2n74","depends_on_id":"bd-imi7w","type":"parent-child","created_at":"2026-01-10T16:34:21.538272-08:00","created_by":"gastown/crew/max"}]} +{"id":"bd-d2n74","title":"Add 'work_type' field for mutex vs open_competition","description":"dispatched_by: beads/crew/emma\n\nAdd string field for work type. Values: 'mutex' (one worker, exclusive - default) or 'open_competition' (many submit, buyer picks). Per Decision 006. Default: mutex.","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-10T16:34:06.735553-08:00","updated_at":"2026-01-10T19:35:04.574402-08:00","closed_at":"2026-01-10T19:35:04.574402-08:00","close_reason":"Implementation complete - work_type field added","created_by":"gastown/crew/max","dependencies":[{"issue_id":"bd-d2n74","depends_on_id":"bd-imi7w","type":"parent-child","created_at":"2026-01-10T16:34:21.538272-08:00","created_by":"gastown/crew/max"}]} {"id":"bd-d33c","title":"Separate process/lock/PID concerns into process.go","description":"Create internal/daemonrunner/process.go with: acquireDaemonLock, PID file read/write, stopDaemon, isDaemonRunning, getPIDFilePath, socket path helpers, version check.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-01T11:41:14.871122-07:00","updated_at":"2025-11-01T23:43:55.66159-07:00","closed_at":"2025-11-01T23:43:55.66159-07:00"} {"id":"bd-d355a07d","title":"Import validation falsely reports data loss on collision resolution","description":"## Problem\n\nPost-import validation reports 'data loss detected!' when import count reduces due to legitimate collision resolution.\n\n## Example\n\n```\nImport complete: 1 created, 8 updated, 142 unchanged, 19 skipped, 1 issues remapped\nPost-import validation failed: import reduced issue count: 165 → 164 (data loss detected!)\n```\n\nThis was actually successful collision resolution (bd-70419816 duplicated → remapped to-70419816), not data loss.\n\n## Impact\n\n- False alarms waste investigation time\n- Undermines confidence in import validation\n- Confuses users/agents about sync health\n\n## Solution\n\nImprove validation to distinguish:\n- Collision-resolution merges (expected count reduction)\n- Actual data loss (unexpected disappearance)\n\nTrack remapped issue count and adjust expected post-import count accordingly.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-10-29T23:15:00.815227-07:00","updated_at":"2025-12-14T12:12:46.501323-08:00","closed_at":"2025-11-08T00:33:04.659308-08:00"} {"id":"bd-d3e5","title":"Test issue 2","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-14T11:21:13.878680387-07:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-d3f0","title":"Add 'bd comment' as alias for 'bd comments add'","description":"The command 'bd comments add' is verbose and unintuitive. Add 'bd comment' as a shorter alias that works the same way.\n\n## Rationale\n- More natural: 'bd comment \u003cissue-id\u003e \u003ctext\u003e' reads better than 'bd comments add \u003cissue-id\u003e \u003ctext\u003e'\n- Matches user expectations: users naturally try 'bd comment' first\n- Follows convention: other commands like 'bd create', 'bd show', 'bd close' are verbs\n\n## Implementation\nCould be implemented as:\n1. A new command that wraps bd comments add\n2. An alias registered in cobra\n3. Keep 'bd comments add' for backwards compatibility\n\n## Examples\n```bash\nbd comment bd-1234 'This is a comment'\nbd comment bd-1234 'Multi-line comment' --body 'Additional details here'\n```","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-02T17:13:18.82563-08:00","updated_at":"2025-12-14T12:12:46.500442-08:00","closed_at":"2025-11-03T22:20:30.223939-08:00"} -{"id":"bd-d3zju","title":"Refactor: Consider passing max-depth as parameter instead of importing config in storage","description":"The GH#995 fix introduced a config dependency in the storage layer (both sqlite and memory). This creates coupling between storage and config packages.\n\nConsider refactoring to pass max-depth as a parameter to GetNextChildID, or via a StorageOptions struct, to maintain better separation of concerns.\n\nFiles affected:\n- internal/storage/sqlite/hash_ids.go\n- internal/storage/memory/memory.go\n\nLow priority - current implementation works correctly.","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-10T13:36:00.795224-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-10T13:36:00.795224-08:00","labels":["refactor"]} +{"id":"bd-d3zju","title":"Refactor: Consider passing max-depth as parameter instead of importing config in storage","description":"The GH#995 fix introduced a config dependency in the storage layer (both sqlite and memory). This creates coupling between storage and config packages.\n\nConsider refactoring to pass max-depth as a parameter to GetNextChildID, or via a StorageOptions struct, to maintain better separation of concerns.\n\nFiles affected:\n- internal/storage/sqlite/hash_ids.go\n- internal/storage/memory/memory.go\n\nLow priority - current implementation works correctly.","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-10T13:36:00.795224-08:00","updated_at":"2026-01-10T13:36:00.795224-08:00","created_by":"beads/crew/fang"} {"id":"bd-d4ec5a82","title":"Add MCP functions for repair commands","description":"Add repair commands to beads-mcp for agent access:\n- beads_resolve_conflicts()\n- beads_find_duplicates()\n- beads_detect_pollution()\n- beads_validate()\n\nFiles: integrations/beads-mcp/src/beads_mcp/server.py","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-28T14:48:29.071495-07:00","updated_at":"2025-12-14T12:12:46.509914-08:00","closed_at":"2025-11-06T19:27:19.170894-08:00"} {"id":"bd-d4i","title":"Create tip system infrastructure for contextual hints","description":"Implement a tip/hint system that shows helpful contextual messages after successful commands. This is different from the existing error-path \"Hint:\" messages - tips appear on success paths to educate users about features they might not know about.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-11T23:29:15.693956-08:00","updated_at":"2025-12-09T18:38:37.687749872-05:00","closed_at":"2025-11-25T17:47:30.747566-08:00"} {"id":"bd-d4jl","title":"Commit and push release","description":"git add -A \u0026\u0026 git commit -m 'chore: bump version to 0.32.1' \u0026\u0026 git push","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-20T21:53:21.928138-08:00","updated_at":"2025-12-20T21:57:12.81943-08:00","closed_at":"2025-12-20T21:57:12.81943-08:00","dependencies":[{"issue_id":"bd-d4jl","depends_on_id":"bd-an4s","type":"parent-child","created_at":"2025-12-20T21:53:21.930015-08:00","created_by":"daemon"},{"issue_id":"bd-d4jl","depends_on_id":"bd-tj00","type":"blocks","created_at":"2025-12-20T21:53:29.884457-08:00","created_by":"daemon"}]} -{"id":"bd-d5j5x","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:18:38.159574-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T18:18:38.219591-08:00","closed_at":"2026-01-11T18:18:38.219591-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-d5kpr","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:39:32.989194-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T18:39:33.028295-08:00","closed_at":"2026-01-09T18:39:33.028295-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-d5rvi","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T08:48:30.242226-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T08:48:30.310281-08:00","closed_at":"2026-01-11T08:48:30.310281-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-d5j5x","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T18:18:38.159574-08:00","updated_at":"2026-01-11T18:18:38.219591-08:00","closed_at":"2026-01-11T18:18:38.219591-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-d5kpr","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:39:32.989194-08:00","updated_at":"2026-01-09T18:39:33.028295-08:00","closed_at":"2026-01-09T18:39:33.028295-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-d5rvi","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T08:48:30.242226-08:00","updated_at":"2026-01-11T08:48:30.310281-08:00","closed_at":"2026-01-11T08:48:30.310281-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-d68f","title":"Add tests for Comments API (AddIssueComment, GetIssueComments)","description":"Comments API currently has 0% coverage. Need tests for:\n- AddIssueComment - adding comments to issues\n- GetIssueComments - retrieving comments\n- Comment ordering and pagination\n- Edge cases (non-existent issues, empty comments)","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-01T22:40:58.980688-07:00","updated_at":"2025-11-01T22:53:42.124391-07:00","closed_at":"2025-11-01T22:53:42.124391-07:00"} {"id":"bd-d6aq","title":"Test reservation expiration and renewal","description":"Verify TTL-based reservation expiration works correctly.\n\nAcceptance Criteria:\n- Reserve with short TTL (30s)\n- Verify other agents can't claim\n- Wait for expiration\n- Verify reservation auto-released\n- Other agent can now claim\n- Test renewal/heartbeat mechanism\n\nFile: tests/integration/test_reservation_ttl.py","notes":"Implemented comprehensive TTL/expiration test suite in tests/integration/test_reservation_ttl.py\n\nTest Coverage:\n✅ Short TTL reservations (30s) - verifies TTL is properly set\n✅ Reservation blocking - confirms agent2 cannot claim while agent1 holds reservation\n✅ Auto-release after expiration - validates expired reservations are auto-cleaned and become available\n✅ Renewal/heartbeat - tests that re-reserving extends expiration time\n\nAll 4 tests passing in 56.9s total (including 30s+ wait time for expiration tests).\n\nMock server implements full TTL management:\n- Reservation class with expiration tracking\n- Auto-cleanup of expired reservations on each request\n- Renewal support (same agent re-reserving)\n- 409 conflict for cross-agent reservation attempts","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-07T22:43:21.547821-08:00","updated_at":"2025-11-08T02:24:30.296982-08:00","closed_at":"2025-11-08T02:24:30.296982-08:00","dependencies":[{"issue_id":"bd-d6aq","depends_on_id":"bd-m9th","type":"blocks","created_at":"2025-11-07T22:43:21.548731-08:00","created_by":"daemon"}]} -{"id":"bd-d6qyx","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:41:06.496811-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T15:41:06.531149-08:00","closed_at":"2026-01-10T15:41:06.531149-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-d6qyx","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:41:06.496811-08:00","updated_at":"2026-01-10T15:41:06.531149-08:00","closed_at":"2026-01-10T15:41:06.531149-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-d73u","title":"Re: Thread Test 2","description":"Great! Thread is working well.","status":"tombstone","priority":2,"issue_type":"message","created_at":"2025-12-16T18:21:46.655093-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","dependencies":[{"issue_id":"bd-d73u","depends_on_id":"bd-vpan","type":"replies-to","created_at":"2025-12-18T13:45:31.137191-08:00","created_by":"migration"}],"deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"message"} {"id":"bd-d76d","title":"Modify EnsureIDs to support parent resurrection","description":"Update internal/storage/sqlite/ids.go:189-202 to call TryResurrectParent before failing on missing parent. Add resurrection mode flag, log resurrected parents for transparency. Maintain backwards compatibility with strict validation mode.","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-04T12:31:59.659507-08:00","updated_at":"2025-11-05T00:08:42.814463-08:00","closed_at":"2025-11-05T00:08:42.814466-08:00"} {"id":"bd-d7e88238","title":"Rapid 3","status":"closed","priority":3,"issue_type":"task","created_at":"2025-10-29T19:11:57.459655-07:00","updated_at":"2025-12-14T12:12:46.510484-08:00","closed_at":"2025-11-07T23:18:52.333825-08:00"} -{"id":"bd-d7kdn","title":"Review and merge PR #1043: Pass hookArgs to pre-push (fixes #1041)","description":"dispatched_by: beads/crew/emma","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/grip","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T16:35:29.766439-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T16:41:58.888397-08:00","closed_at":"2026-01-12T16:41:58.888397-08:00","close_reason":"PR #1043 merged, issue #1041 auto-closed"} +{"id":"bd-d7kdn","title":"Review and merge PR #1043: Pass hookArgs to pre-push (fixes #1041)","description":"dispatched_by: beads/crew/emma","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-12T16:35:29.766439-08:00","updated_at":"2026-01-12T16:41:58.888397-08:00","closed_at":"2026-01-12T16:41:58.888397-08:00","close_reason":"PR #1043 merged, issue #1041 auto-closed","created_by":"beads/crew/emma"} {"id":"bd-d84j","title":"Fix PR #319: Performance Improvements - CI failures and lint errors","description":"PR #319 (Performance Improvements) has excellent performance optimizations but is blocked by CI failures.\n\n## The PR\n- URL: https://github.com/steveyegge/beads/pull/319\n- Author: @rsnodgrass (Ryan)\n- Claimed improvements: bd ready 20.5x faster (752ms → 36.6ms), startup 10.5x faster\n\n## CI Failures\n\n### Lint Errors (8 total)\n1. cmd/bd/deletion_tracking.go:57 - unchecked os.Remove\n2. cmd/bd/import.go:548 - unchecked os.RemoveAll\n3. cmd/bd/message.go:205 - unchecked resp.Body.Close\n4. cmd/bd/migrate_issues.go:633 - unchecked fmt.Scanln\n5. cmd/bd/migrate_issues.go:701 - unchecked MarkFlagRequired\n6. cmd/bd/migrate_issues.go:702 - unchecked MarkFlagRequired\n7. cmd/bd/show.go:610 - gosec G104 unhandled error\n8. cmd/bd/show.go:614 - gosec G104 unhandled error\n\n### Test Failures\nAll syncbranch_test.go tests failing with:\n\"migration external_ref_column failed: failed to create index on external_ref: sqlite3: SQL logic error: no such table: main.issues\"\n\nThis suggests the PR branch needs rebasing on current main.\n\n## Required Work\n\n### 1. Fix Lint Errors\nAdd proper error handling for all 8 flagged locations. Most can use _ = or log warnings.\n\n### 2. Rebase on Current Main\nThe migration test failures indicate the branch is out of sync. Need to:\n- git fetch upstream\n- git rebase upstream/main\n- Resolve any conflicts\n- Verify tests pass locally\n\n### 3. Verify CI Passes\n- All lint checks green\n- All tests pass (Linux, Windows, Nix)\n\n## Optional Improvements\n- Consider splitting into smaller PRs (core index, WASM cache, testing infra)\n- Add documentation for benchmark usage\n- Extract helper functions in doctor/perf.go for better testability\n\n## Value\nThis PR delivers real performance improvements. The index optimization alone is worth merging quickly once CI is fixed.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-15T12:24:34.50322-08:00","updated_at":"2025-11-15T12:43:11.49933-08:00","closed_at":"2025-11-15T12:43:11.49933-08:00"} {"id":"bd-d9e0","title":"Extract validation functions to validators.go","description":"Move validatePriority, validateStatus, validateIssueType, validateTitle, validateEstimatedMinutes, validateFieldUpdate to validators.go","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-01T19:28:54.915909-07:00","updated_at":"2025-11-02T12:32:00.159298-08:00","closed_at":"2025-11-02T12:32:00.1593-08:00"} {"id":"bd-d9mu","title":"Cross-rig external dependency support","description":"Support dependencies on issues in other rigs/repos.\n\n## Use Case\n\nGas Town issues often depend on Beads issues (and vice versa). Currently we use labels like `external:beads/bd-xxx` as documentation, but:\n- `bd blocked` doesn't recognize external deps\n- `bd ready` doesn't filter them out\n- No way to query cross-rig status\n\n## Proposed UX\n\n### Adding external deps\n```bash\n# New syntax for bd dep add\nbd dep add gt-a07f external:beads:bd-kwjh\n\n# Or maybe cleaner\nbd dep add gt-a07f --external beads:bd-kwjh\n```\n\n### Showing blocked status\n```bash\nbd blocked\n# → gt-a07f blocked by external:beads:bd-kwjh (unverified)\n\n# With optional cross-rig query\nbd blocked --resolve-external\n# → gt-a07f blocked by external:beads:bd-kwjh (closed) ← unblocked!\n```\n\n### Storage\nCould use:\n- Special dependency type: `type: external`\n- Label convention: `external:rig:id`\n- New field: `external_deps: [\"beads:bd-kwjh\"]`\n\n## Implementation Notes\n\nCross-rig queries would need:\n- Known rig locations (config or discovery)\n- Read-only beads access to external rigs\n- Caching to avoid repeated queries\n\nFor MVP, just recognizing external deps and marking them as 'unverified' blockers would be valuable.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-22T02:27:23.892706-08:00","updated_at":"2025-12-22T22:32:49.261551-08:00","closed_at":"2025-12-22T22:32:49.261551-08:00"} {"id":"bd-da96-baseline-lint","title":"Baseline quality gate failure: lint","description":"The lint quality gate is failing on the baseline (main branch).\n\nThis blocks the executor from claiming work until fixed.\n\nError: golangci-lint failed: exit status 1\n\nOutput:\n```\ncmd/bd/search.go:39:12: Error return value of `cmd.Help` is not checked (errcheck)\n\t\t\tcmd.Help()\n\t\t\t ^\ncmd/bd/clean.go:118:15: G304: Potential file inclusion via variable (gosec)\n\tfile, err := os.Open(gitignorePath)\n\t ^\ncmd/bd/doctor/gitignore.go:98:12: G306: Expect WriteFile permissions to be 0600 or less (gosec)\n\tif err := os.WriteFile(gitignorePath, []byte(GitignoreTemplate), 0644); err != nil {\n\t ^\ncmd/bd/merge.go:121:16: G204: Subprocess launched with variable (gosec)\n\t\t\tgitRmCmd := exec.Command(\"git\", \"rm\", \"-f\", \"--quiet\", fullPath)\n\t\t\t ^\ncmd/bd/doctor.go:167:20: `cancelled` is a misspelling of `canceled` (misspell)\n\t\tfmt.Println(\"Fix cancelled.\")\n\t\t ^\ncmd/bd/flush_manager.go:139:42: `cancelling` is a misspelling of `canceling` (misspell)\n\t\t// Send shutdown request FIRST (before cancelling context)\n\t\t ^\ncmd/bd/flush_manager.go:261:15: `cancelled` is a misspelling of `canceled` (misspell)\n\t\t\t// Context cancelled (shouldn't normally happen)\n\t\t\t ^\ncmd/bd/flush_manager.go:269:55: (*FlushManager).performFlush - result 0 (error) is always nil (unparam)\nfunc (fm *FlushManager) performFlush(fullExport bool) error {\n ^\n8 issues:\n* errcheck: 1\n* gosec: 3\n* misspell: 3\n* unparam: 1\n\n```","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-21T10:17:25.963791-05:00","updated_at":"2025-11-21T10:25:33.537845-05:00","closed_at":"2025-11-21T10:25:33.53596-05:00"} {"id":"bd-db72","title":"Upgrade local Homebrew installation","description":"Upgrade bd via Homebrew:\n\n```bash\nbrew update\nbrew upgrade bd\n/opt/homebrew/bin/bd version # Verify shows 0.33.2\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T16:10:13.760552-08:00","updated_at":"2025-12-21T17:29:31.791368-08:00","deleted_at":"2025-12-21T17:29:31.791368-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-dcd6f14b","title":"Batch test 4","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T15:29:02.053523-07:00","updated_at":"2025-10-31T12:00:43.182861-07:00","closed_at":"2025-10-31T12:00:43.182861-07:00"} -{"id":"bd-dcu13","title":"Fix: Daemon mode doesn't persist defer_until (GH#993)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #993. Daemon mode isn't persisting the defer_until value properly.","status":"closed","priority":1,"issue_type":"bug","assignee":"beads/polecats/opal","created_at":"2026-01-09T22:19:57.234366-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-10T16:39:37.680006-08:00","closed_at":"2026-01-10T16:39:37.680006-08:00","close_reason":"Already fixed in current code. The fix was applied in commits 370b9463 (GH#950) and 4486e0e7 (GH#952). The issue was reported because the user's installed binary was outdated. Testing confirms defer_until is correctly persisted in daemon mode with the current codebase."} +{"id":"bd-dcu13","title":"Fix: Daemon mode doesn't persist defer_until (GH#993)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #993. Daemon mode isn't persisting the defer_until value properly.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-09T22:19:57.234366-08:00","updated_at":"2026-01-10T16:39:37.680006-08:00","closed_at":"2026-01-10T16:39:37.680006-08:00","close_reason":"Already fixed in current code. The fix was applied in commits 370b9463 (GH#950) and 4486e0e7 (GH#952). The issue was reported because the user's installed binary was outdated. Testing confirms defer_until is correctly persisted in daemon mode with the current codebase.","created_by":"beads/crew/dave"} {"id":"bd-dd6f6d26","title":"Fix autoimport tests for content-hash collision scoring","description":"## Overview\nThree autoimport tests are failing after [deleted:[deleted:bd-cbed9619.4]] because they expect behavior based on the old reference-counting collision resolution, but the system now uses deterministic content-hash scoring.\n\n## Failing Tests\n1. `TestAutoImportMultipleCollisionsRemapped` - expects local versions preserved\n2. `TestAutoImportAllCollisionsRemapped` - expects local versions preserved \n3. `TestAutoImportCollisionRemapMultipleFields` - expects specific collision resolution behavior\n\n## Root Cause\nThese tests were written when ScoreCollisions used reference counting to determine which version to keep. Now it uses content-hash comparison (introduced in commit 2e87329), which produces different but deterministic results.\n\n## Example\nOld behavior: Issue with more references would be kept\nNew behavior: Issue with lexicographically lower content hash is kept\n\n## Solution\nUpdate each test to:\n1. Verify the new content-hash based behavior is correct\n2. Check that the remapped issue (not necessarily local/remote) has the expected content\n3. Ensure dependencies are preserved on the correct remapped issue\n\n## Acceptance Criteria\n- All three autoimport tests pass\n- Tests verify content-hash determinism (same collision always resolves the same way)\n- Tests check dependency preservation on remapped issues\n- Test documentation explains content-hash scoring expectations\n\n## Files to Modify\n- `cmd/bd/autoimport_collision_test.go`\n\n## Testing\nRun: `go test ./cmd/bd -run \"TestAutoImport.*Collision\" -v`","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-28T19:12:56.344193-07:00","updated_at":"2025-12-16T01:05:56.141544-08:00","closed_at":"2025-10-28T19:18:35.106895-07:00"} -{"id":"bd-ddkst","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T00:56:13.088451-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T00:56:13.156957-08:00","closed_at":"2026-01-13T00:56:13.156957-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ddkst","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T00:56:13.088451-08:00","updated_at":"2026-01-13T00:56:13.156957-08:00","closed_at":"2026-01-13T00:56:13.156957-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-de0h","title":"bd message: Add HTTP client timeout to prevent hangs","description":"HTTP client in `sendAgentMailRequest` uses default http.Post with no timeout.\n\n**Location:** cmd/bd/message.go:181\n\n**Problem:**\n- Can hang indefinitely if server is unresponsive\n- No way to cancel stuck requests\n- Poor UX in flaky networks\n\n**Fix:**\n```go\nclient := \u0026http.Client{Timeout: 30 * time.Second}\nresp, err := client.Post(url, \"application/json\", bytes.NewReader(reqBody))\n```\n\n**Impact:** Production reliability and security issue","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-08T12:54:24.942645-08:00","updated_at":"2025-11-08T12:56:59.948929-08:00","closed_at":"2025-11-08T12:56:59.948929-08:00","dependencies":[{"issue_id":"bd-de0h","depends_on_id":"bd-6uix","type":"parent-child","created_at":"2025-11-08T12:55:54.860847-08:00","created_by":"daemon"}]} {"id":"bd-de6","title":"Fix FindBeadsDir to prioritize main repo .beads for worktrees","description":"The FindBeadsDir function should prioritize finding .beads in the main repository root when accessed from a worktree, rather than finding worktree-local .beads directories. This ensures proper sharing of the database across all worktrees.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-07T16:48:36.883117467-07:00","updated_at":"2025-12-23T22:33:23.795459-08:00","closed_at":"2025-12-23T22:33:23.795459-08:00"} -{"id":"bd-desl","title":"Test hooked status","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T22:24:24.647682-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-28T22:30:38.057696-08:00","closed_at":"2025-12-28T22:30:38.057696-08:00"} +{"id":"bd-desl","title":"Test hooked status","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T22:24:24.647682-08:00","updated_at":"2025-12-28T22:30:38.057696-08:00","closed_at":"2025-12-28T22:30:38.057696-08:00","created_by":"beads/crew/emma"} {"id":"bd-df11","title":"Add import metrics for external_ref matching statistics","description":"Add observability for external_ref matching behavior during imports to help debug and optimize import operations.\n\nMetrics to track:\n- Number of issues matched by external_ref\n- Number of issues matched by ID\n- Number of issues matched by content hash\n- Number of external_ref updates vs creates\n- Average import time with vs without external_ref\n\nOutput format:\n- Add to ImportResult struct\n- Include in import command output\n- Consider structured logging\n\nUse cases:\n- Debugging slow imports\n- Understanding match distribution\n- Optimizing import performance\n\nRelated: bd-1022","status":"closed","priority":4,"issue_type":"chore","created_at":"2025-11-02T15:32:46.157899-08:00","updated_at":"2025-12-14T12:12:46.529191-08:00","closed_at":"2025-11-08T02:20:01.01371-08:00"} {"id":"bd-df190564","title":"bd repair-deps - Orphaned dependency cleaner","description":"Find and fix orphaned dependency references.\n\nImplementation:\n- Scan all issues for dependencies pointing to non-existent issues\n- Report orphaned refs\n- Auto-fix with --fix flag\n- Interactive mode with --interactive\n\nFiles: cmd/bd/repair_deps.go (new)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T19:42:29.852745-07:00","updated_at":"2025-10-31T18:24:19.418221-07:00","closed_at":"2025-10-31T18:24:19.418221-07:00"} -{"id":"bd-dh24","title":"bd migrate sync enables core.sparseCheckout on main worktree (GH#886)","description":"Running bd migrate sync sets core.sparseCheckout=true in main repo's .git/config, causing annoying git status message. Fix: disable sparse checkout after worktree creation.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-04T11:20:03.230245-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-04T11:24:19.964839-08:00","closed_at":"2026-01-04T11:24:19.964839-08:00","close_reason":"Fixed in 6b83527d - disable core.sparseCheckout on main repo after worktree creation"} +{"id":"bd-dh24","title":"bd migrate sync enables core.sparseCheckout on main worktree (GH#886)","description":"Running bd migrate sync sets core.sparseCheckout=true in main repo's .git/config, causing annoying git status message. Fix: disable sparse checkout after worktree creation.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-04T11:20:03.230245-08:00","updated_at":"2026-01-04T11:24:19.964839-08:00","closed_at":"2026-01-04T11:24:19.964839-08:00","close_reason":"Fixed in 6b83527d - disable core.sparseCheckout on main repo after worktree creation","created_by":"beads/crew/grip"} {"id":"bd-dh8a","title":"Optimize --sandbox mode: skip FlushManager","description":"When `--sandbox` mode is enabled, skip FlushManager creation entirely.\n\n## Current Behavior\n`main.go:561` always creates FlushManager:\n```go\nflushManager = NewFlushManager(autoFlushEnabled, getDebounceDuration())\n```\n\nEven with `--sandbox` (which sets `noAutoFlush=true`), the FlushManager goroutine is still running.\n\n## Proposed Change\n```go\n// Only create FlushManager if we might actually need it\nif !sandboxMode \u0026\u0026 autoFlushEnabled {\n flushManager = NewFlushManager(true, getDebounceDuration())\n}\n```\n\n## Handle nil FlushManager\nUpdate PersistentPostRun to handle nil:\n```go\nif flushManager != nil \u0026\u0026 !skipFinalFlush {\n if err := flushManager.Shutdown(); err != nil {\n // ...\n }\n}\n```\n\n## Synchronous Export Fallback\nWhen sandbox mode + write operation occurs, do synchronous export:\n```go\nif sandboxMode \u0026\u0026 isDirty {\n performSynchronousExport()\n}\n```\n\n## Also: Default lock-timeout to 100ms in sandbox mode\nIn PersistentPreRun, when sandboxMode is detected:\n```go\nif sandboxMode {\n noDaemon = true\n noAutoFlush = true\n noAutoImport = true\n if lockTimeout == 30*time.Second { // Not explicitly set\n lockTimeout = 100 * time.Millisecond\n }\n}\n```\n\nPart of bd-olc1","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-13T17:54:58.594335-08:00","updated_at":"2025-12-13T18:06:10.370218-08:00","closed_at":"2025-12-13T18:06:10.370218-08:00","dependencies":[{"issue_id":"bd-dh8a","depends_on_id":"bd-59er","type":"blocks","created_at":"2025-12-13T17:55:26.590151-08:00","created_by":"daemon"},{"issue_id":"bd-dh8a","depends_on_id":"bd-r4od","type":"blocks","created_at":"2025-12-13T17:55:26.626988-08:00","created_by":"daemon"}]} {"id":"bd-dhza","title":"Reduce global state in cmd/bd/main.go (25+ variables)","description":"Code health review found main.go has 25+ global variables (lines 57-112):\n\n- dbPath, actor, store, jsonOutput, daemonClient, noDaemon\n- rootCtx, rootCancel, autoFlushEnabled\n- isDirty (marked 'USED BY LEGACY CODE')\n- needsFullExport (marked 'USED BY LEGACY CODE')\n- flushTimer (marked 'DEPRECATED')\n- flushMutex, storeMutex, storeActive\n- flushFailureCount, lastFlushError, flushManager\n- skipFinalFlush, autoImportEnabled\n- versionUpgradeDetected, previousVersion, upgradeAcknowledged\n\nImpact:\n- Hard to test individual commands\n- Race conditions possible\n- State leakage between commands\n\nFix: Move toward dependency injection. Remove deprecated variables. Consider cmd/bd/internal package.","notes":"COMPLETED: Migration of legacy flush state to FlushManager. The main work (isDirty, needsFullExport, flushTimer) moved to local vars in FlushManager.run() lines 170-173. This fixes the race conditions. Remaining globals are: Cobra flag bindings (standard), runtime state (store, daemonClient - structural), store coordination (storeActive/storeMutex). Future: move error tracking to FlushManager, create cmd/bd/internal for encapsulation.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-16T18:17:29.643293-08:00","updated_at":"2025-12-23T22:36:09.600594-08:00","closed_at":"2025-12-23T22:36:09.600594-08:00"} -{"id":"bd-diovx","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:39:21.940392-08:00","created_by":"beads/refinery","updated_at":"2026-01-07T17:39:21.977538-08:00","closed_at":"2026-01-07T17:39:21.977538-08:00","close_reason":"auto-closed session event"} -{"id":"bd-djhk","title":"Test agent with fields","status":"closed","priority":2,"issue_type":"agent","created_at":"2025-12-27T23:44:08.97791-08:00","created_by":"mayor","updated_at":"2025-12-27T23:44:15.275899-08:00","closed_at":"2025-12-27T23:44:15.275899-08:00"} +{"id":"bd-diovx","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:39:21.940392-08:00","updated_at":"2026-01-07T17:39:21.977538-08:00","closed_at":"2026-01-07T17:39:21.977538-08:00","close_reason":"auto-closed session event","created_by":"beads/refinery"} +{"id":"bd-djhk","title":"Test agent with fields","status":"closed","priority":2,"issue_type":"agent","created_at":"2025-12-27T23:44:08.97791-08:00","updated_at":"2025-12-27T23:44:15.275899-08:00","closed_at":"2025-12-27T23:44:15.275899-08:00","created_by":"mayor"} {"id":"bd-dju6","title":"Commit and push release","description":"git add -A \u0026\u0026 git commit \u0026\u0026 git push to trigger CI","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T13:52:33.065863-08:00","updated_at":"2025-12-21T13:53:49.957804-08:00","deleted_at":"2025-12-21T13:53:49.957804-08:00","deleted_by":"stevey","delete_reason":"manual delete","original_type":"task"} -{"id":"bd-dkf1g","title":"Add 'owner' field for human attribution (HOP CV chains)","description":"dispatched_by: beads/crew/emma\n\nProblem: created_by tracks executor (agent), but HOP CV needs owner (human email).\n\nSolution: Add owner field to Issue struct.\n\nDesign: Decision 008 says human identity = git author email. This is the foundation of CV accumulation.\n\nMigration: Add column, populate from GIT_AUTHOR_EMAIL.\n\nAcceptance Criteria:\n- owner field added to types.go\n- Migration adds column\n- bd create populates from git author\n- Owner included in content hash","status":"closed","priority":1,"issue_type":"task","assignee":"beads/crew/dave","created_at":"2026-01-10T16:33:31.010936-08:00","created_by":"gastown/crew/max","updated_at":"2026-01-10T19:28:26.126028-08:00","closed_at":"2026-01-10T19:28:26.126028-08:00","close_reason":"Implemented: owner field added for human attribution (commit ceb5769c)","dependencies":[{"issue_id":"bd-dkf1g","depends_on_id":"bd-imi7w","type":"parent-child","created_at":"2026-01-10T16:33:44.786109-08:00","created_by":"gastown/crew/max"}]} -{"id":"bd-dkhuu","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T18:30:48.695176-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T18:30:48.755717-08:00","closed_at":"2026-01-12T18:30:48.755717-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-dl2mf","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T02:35:53.795251-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-13T02:35:53.859377-08:00","closed_at":"2026-01-13T02:35:53.859377-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-dl8pb","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:35:17.86501-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T00:35:17.899663-08:00","closed_at":"2026-01-09T00:35:17.899663-08:00","close_reason":"auto-closed session event"} -{"id":"bd-dlk31","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T14:31:34.382228-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T14:31:34.417966-08:00","closed_at":"2026-01-09T14:31:34.417966-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-dkf1g","title":"Add 'owner' field for human attribution (HOP CV chains)","description":"dispatched_by: beads/crew/emma\n\nProblem: created_by tracks executor (agent), but HOP CV needs owner (human email).\n\nSolution: Add owner field to Issue struct.\n\nDesign: Decision 008 says human identity = git author email. This is the foundation of CV accumulation.\n\nMigration: Add column, populate from GIT_AUTHOR_EMAIL.\n\nAcceptance Criteria:\n- owner field added to types.go\n- Migration adds column\n- bd create populates from git author\n- Owner included in content hash","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-10T16:33:31.010936-08:00","updated_at":"2026-01-10T19:28:26.126028-08:00","closed_at":"2026-01-10T19:28:26.126028-08:00","close_reason":"Implemented: owner field added for human attribution (commit ceb5769c)","created_by":"gastown/crew/max","dependencies":[{"issue_id":"bd-dkf1g","depends_on_id":"bd-imi7w","type":"parent-child","created_at":"2026-01-10T16:33:44.786109-08:00","created_by":"gastown/crew/max"}]} +{"id":"bd-dkhuu","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T18:30:48.695176-08:00","updated_at":"2026-01-12T18:30:48.755717-08:00","closed_at":"2026-01-12T18:30:48.755717-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-dl2mf","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T02:35:53.795251-08:00","updated_at":"2026-01-13T02:35:53.859377-08:00","closed_at":"2026-01-13T02:35:53.859377-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} +{"id":"bd-dl8pb","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:35:17.86501-08:00","updated_at":"2026-01-09T00:35:17.899663-08:00","closed_at":"2026-01-09T00:35:17.899663-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-dlk31","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T14:31:34.382228-08:00","updated_at":"2026-01-09T14:31:34.417966-08:00","closed_at":"2026-01-09T14:31:34.417966-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-dmb","title":"Fresh clone: bd should suggest 'bd init' when no database exists","description":"On a fresh clone of a repo using beads, running `bd stats` or `bd list` gives a cryptic error:\n\n```\nError: failed to open database: post-migration validation failed: migration invariants failed:\n - required_config_present: required config key missing: issue_prefix (database has 2 issues)\n```\n\n**Expected**: A helpful message like:\n```\nNo database found. This appears to be a fresh clone.\nRun 'bd init --prefix \u003cprefix\u003e' to hydrate from the committed JSONL file.\nFound: .beads/beads.jsonl (38 issues)\n```\n\n**Why this matters**: The current UX is confusing for new contributors or fresh clones. The happy path should be obvious.","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-27T20:21:04.947959-08:00","updated_at":"2025-11-27T22:40:11.654051-08:00","closed_at":"2025-11-27T22:40:11.654051-08:00"} -{"id":"bd-do8e","title":"Consolidate migrate-* commands under bd migrate","description":"## Task\nMove standalone migrate commands under `bd migrate` parent:\n- `bd migrate-hash-ids` → `bd migrate hash-ids`\n- `bd migrate-issues` → `bd migrate issues`\n- `bd migrate-sync` → `bd migrate sync`\n- `bd migrate-tombstones` → `bd migrate tombstones`\n\n## Implementation\n\n### 1. Update migrate.go\nAdd subcommands to migrateCmd:\n```go\nfunc init() {\n migrateCmd.AddCommand(migrateHashIDsCmd)\n migrateCmd.AddCommand(migrateIssuesCmd)\n migrateCmd.AddCommand(migrateSyncCmd)\n migrateCmd.AddCommand(migrateTombstonesCmd)\n}\n```\n\n### 2. Update each migrate_*.go file\n- Change `Use:` from `migrate-foo` to `foo`\n- Remove `rootCmd.AddCommand()` from init()\n\n### 3. Create hidden aliases for backwards compatibility\nIn main.go, add hidden top-level commands that forward to subcommands.\n\n### 4. Update docs\n- docs/DELETIONS.md - references `bd migrate-tombstones`\n- docs/CLI_REFERENCE.md - migration section\n\n## Files to modify\n- cmd/bd/migrate.go\n- cmd/bd/migrate_hash_ids.go \n- cmd/bd/migrate_issues.go\n- cmd/bd/migrate_sync.go\n- cmd/bd/migrate_tombstones.go\n- cmd/bd/main.go (aliases)\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T15:10:41.618026-08:00","created_by":"mayor","updated_at":"2025-12-27T16:01:32.021299-08:00","closed_at":"2025-12-27T16:01:32.021299-08:00"} -{"id":"bd-do8v","title":"Merge: opal-mjxl27un","description":"branch: polecat/opal-mjxl27un\ntarget: main\nsource_issue: opal-mjxl27un\nrig: beads\nagent_bead: bd-beads-polecat-opal","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T16:52:42.06401-08:00","created_by":"beads/polecats/opal","updated_at":"2026-01-02T17:14:47.279945-08:00","closed_at":"2026-01-02T17:14:47.279945-08:00","close_reason":"Orphaned MR - opal stopped (closed no-op), branch never pushed"} +{"id":"bd-do8e","title":"Consolidate migrate-* commands under bd migrate","description":"## Task\nMove standalone migrate commands under `bd migrate` parent:\n- `bd migrate-hash-ids` → `bd migrate hash-ids`\n- `bd migrate-issues` → `bd migrate issues`\n- `bd migrate-sync` → `bd migrate sync`\n- `bd migrate-tombstones` → `bd migrate tombstones`\n\n## Implementation\n\n### 1. Update migrate.go\nAdd subcommands to migrateCmd:\n```go\nfunc init() {\n migrateCmd.AddCommand(migrateHashIDsCmd)\n migrateCmd.AddCommand(migrateIssuesCmd)\n migrateCmd.AddCommand(migrateSyncCmd)\n migrateCmd.AddCommand(migrateTombstonesCmd)\n}\n```\n\n### 2. Update each migrate_*.go file\n- Change `Use:` from `migrate-foo` to `foo`\n- Remove `rootCmd.AddCommand()` from init()\n\n### 3. Create hidden aliases for backwards compatibility\nIn main.go, add hidden top-level commands that forward to subcommands.\n\n### 4. Update docs\n- docs/DELETIONS.md - references `bd migrate-tombstones`\n- docs/CLI_REFERENCE.md - migration section\n\n## Files to modify\n- cmd/bd/migrate.go\n- cmd/bd/migrate_hash_ids.go \n- cmd/bd/migrate_issues.go\n- cmd/bd/migrate_sync.go\n- cmd/bd/migrate_tombstones.go\n- cmd/bd/main.go (aliases)\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T15:10:41.618026-08:00","updated_at":"2025-12-27T16:01:32.021299-08:00","closed_at":"2025-12-27T16:01:32.021299-08:00","created_by":"mayor"} +{"id":"bd-do8v","title":"Merge: opal-mjxl27un","description":"branch: polecat/opal-mjxl27un\ntarget: main\nsource_issue: opal-mjxl27un\nrig: beads\nagent_bead: bd-beads-polecat-opal","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T16:52:42.06401-08:00","updated_at":"2026-01-02T17:14:47.279945-08:00","closed_at":"2026-01-02T17:14:47.279945-08:00","close_reason":"Orphaned MR - opal stopped (closed no-op), branch never pushed","created_by":"beads/polecats/opal"} {"id":"bd-dow9","title":"Improve CheckStaleness error handling","description":"## Problem\n\nCheckStaleness returns 'false' (not stale) for multiple error conditions instead of returning errors. This masks problems.\n\n**Location:** internal/autoimport/autoimport.go:253-285\n\n## Edge Cases That Return False\n\n1. **Invalid last_import_time format** (line 259-262)\n - Corrupted metadata returns 'not stale'\n - Could show stale data\n\n2. **No JSONL file found** (line 267-277)\n - If glob fails, falls back to 'issues.jsonl'\n - If that's empty, returns 'not stale'\n\n3. **JSONL stat fails** (line 279-282)\n - Permission denied, file missing\n - Returns 'not stale' even though can't verify\n\n## Current Code\n\n```go\nlastImportTime, err := time.Parse(time.RFC3339, lastImportStr)\nif err \\!= nil {\n return false, nil // ← Should return error\n}\n\n// ...\n\nif jsonlPath == \"\" {\n return false, nil // ← Should return error\n}\n\nstat, err := os.Stat(jsonlPath)\nif err \\!= nil {\n return false, nil // ← Should return error\n}\n```\n\n## Fix\n\n```go\nlastImportTime, err := time.Parse(time.RFC3339, lastImportStr)\nif err \\!= nil {\n return false, fmt.Errorf(\"corrupted last_import_time: %w\", err)\n}\n\n// ...\n\nif jsonlPath == \"\" {\n return false, fmt.Errorf(\"no JSONL file found\")\n}\n\nstat, err := os.Stat(jsonlPath)\nif err \\!= nil {\n return false, fmt.Errorf(\"cannot stat JSONL: %w\", err)\n}\n```\n\n## Impact\nMedium - edge cases are rare but should be handled\n\n## Effort \n30 minutes - requires updating callers in RPC server\n\n## Dependencies\nRequires: bd-n4td (warning on errors)","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-20T20:16:45.658965-05:00","updated_at":"2025-12-14T00:32:11.049429-08:00","closed_at":"2025-12-13T23:32:56.573608-08:00"} {"id":"bd-dp4w","title":"Test message","description":"This is a test message body","status":"tombstone","priority":2,"issue_type":"message","created_at":"2025-12-16T18:11:58.467876-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"message"} -{"id":"bd-dpbm","title":"Test no validate","description":"Quick capture","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-01T19:24:58.637574-08:00","created_by":"beads/polecats/opal","updated_at":"2026-01-01T19:25:09.044121-08:00","closed_at":"2026-01-01T19:25:09.044121-08:00","close_reason":"Test issue cleanup"} -{"id":"bd-dpij0","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:43:41.92036-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T02:43:41.980821-08:00","closed_at":"2026-01-12T02:43:41.980821-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-dpipj","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:11:23.62417-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T11:11:23.69431-08:00","closed_at":"2026-01-13T11:11:23.69431-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-dpkdm","title":"Add AllowStale option to beads List API for resilient GUPP detection","description":"## Problem\n\nWhen the beads database is out of sync with the JSONL file (common after another agent syncs), `bd list` fails with \"Database out of sync with JSONL\". This causes `checkSlungWork()` in gastown's `gt prime` to silently fail, which means:\n\n1. AUTONOMOUS WORK MODE is never shown\n2. Normal startup directive is displayed instead\n3. Agents follow that instead of GUPP\n4. **Hooked work sits idle - massive GUPP violation**\n\nRoot cause: Commit 1da3e18 made staleness checks stricter, and `checkSlungWork()` silently returns false on error.\n\n## Solution\n\nImplement a resilient three-layer approach:\n\n### Step 1: Add AllowStale to ListOptions (beads)\n- Add `AllowStale bool` field to `ListOptions` struct\n- Update `List()` to pass `--allow-stale` flag when set\n\n### Step 2: Update checkSlungWork in gastown\n- Try quick `bd sync --import-only` first (best effort)\n- Try normal list\n- If error, log warning and retry with `AllowStale: true`\n- Only return false if both attempts fail\n\n### Step 3: Never fail silently\n- Always log errors instead of silent `return false`\n\n## Concurrency Note\n\nMultiple workers may spin up and try `bd sync` simultaneously. SQLite's own locking serializes writes, so this is safe but potentially slow. No additional mutex needed for correctness.\n\n## Files to Change\n\n**In beads:**\n- `internal/beads/beads.go` - Add AllowStale to ListOptions, update List()\n\n**In gastown (separate PR):**\n- `internal/cmd/prime.go` - Update checkSlungWork() with resilient logic\n\n## Testing\n- Simulate stale DB by modifying JSONL without importing\n- Verify AUTONOMOUS MODE shows with AllowStale fallback\n- Test concurrent worker startup","status":"closed","priority":1,"issue_type":"epic","assignee":"beads/crew/dave","created_at":"2026-01-09T00:36:54.636297-08:00","created_by":"gastown/crew/george","updated_at":"2026-01-09T00:42:33.462367-08:00","closed_at":"2026-01-09T00:42:33.462367-08:00","close_reason":"Implemented AllowStale option in List API - added to ListArgs struct and CLI passthrough. Daemon already handles staleness gracefully. Gastown step 2 pending separately."} -{"id":"bd-dq74","title":"bd repair: Handle .beads/redirect files","description":"The bd repair command hardcodes .beads/beads.db path but doesn't follow .beads/redirect files like other commands do. This means repair won't work on clones that use redirected beads directories.\n\nFix: Check for .beads/redirect file and follow it to find the actual database location.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-29T12:47:53.089729-08:00","created_by":"stevey","updated_at":"2025-12-29T12:59:05.121303-08:00","closed_at":"2025-12-29T12:59:05.121303-08:00","close_reason":"Fixed in commit d7a67ad6"} -{"id":"bd-dq8pu","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:58:53.861683-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:58:53.906534-08:00","closed_at":"2026-01-11T22:58:53.906534-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-dpbm","title":"Test no validate","description":"Quick capture","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-01T19:24:58.637574-08:00","updated_at":"2026-01-01T19:25:09.044121-08:00","closed_at":"2026-01-01T19:25:09.044121-08:00","close_reason":"Test issue cleanup","created_by":"beads/polecats/opal"} +{"id":"bd-dpij0","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T02:43:41.92036-08:00","updated_at":"2026-01-12T02:43:41.980821-08:00","closed_at":"2026-01-12T02:43:41.980821-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-dpipj","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T11:11:23.62417-08:00","updated_at":"2026-01-13T11:11:23.69431-08:00","closed_at":"2026-01-13T11:11:23.69431-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-dpkdm","title":"Add AllowStale option to beads List API for resilient GUPP detection","description":"## Problem\n\nWhen the beads database is out of sync with the JSONL file (common after another agent syncs), `bd list` fails with \"Database out of sync with JSONL\". This causes `checkSlungWork()` in gastown's `gt prime` to silently fail, which means:\n\n1. AUTONOMOUS WORK MODE is never shown\n2. Normal startup directive is displayed instead\n3. Agents follow that instead of GUPP\n4. **Hooked work sits idle - massive GUPP violation**\n\nRoot cause: Commit 1da3e18 made staleness checks stricter, and `checkSlungWork()` silently returns false on error.\n\n## Solution\n\nImplement a resilient three-layer approach:\n\n### Step 1: Add AllowStale to ListOptions (beads)\n- Add `AllowStale bool` field to `ListOptions` struct\n- Update `List()` to pass `--allow-stale` flag when set\n\n### Step 2: Update checkSlungWork in gastown\n- Try quick `bd sync --import-only` first (best effort)\n- Try normal list\n- If error, log warning and retry with `AllowStale: true`\n- Only return false if both attempts fail\n\n### Step 3: Never fail silently\n- Always log errors instead of silent `return false`\n\n## Concurrency Note\n\nMultiple workers may spin up and try `bd sync` simultaneously. SQLite's own locking serializes writes, so this is safe but potentially slow. No additional mutex needed for correctness.\n\n## Files to Change\n\n**In beads:**\n- `internal/beads/beads.go` - Add AllowStale to ListOptions, update List()\n\n**In gastown (separate PR):**\n- `internal/cmd/prime.go` - Update checkSlungWork() with resilient logic\n\n## Testing\n- Simulate stale DB by modifying JSONL without importing\n- Verify AUTONOMOUS MODE shows with AllowStale fallback\n- Test concurrent worker startup","status":"closed","priority":1,"issue_type":"epic","created_at":"2026-01-09T00:36:54.636297-08:00","updated_at":"2026-01-09T00:42:33.462367-08:00","closed_at":"2026-01-09T00:42:33.462367-08:00","close_reason":"Implemented AllowStale option in List API - added to ListArgs struct and CLI passthrough. Daemon already handles staleness gracefully. Gastown step 2 pending separately.","created_by":"gastown/crew/george"} +{"id":"bd-dq74","title":"bd repair: Handle .beads/redirect files","description":"The bd repair command hardcodes .beads/beads.db path but doesn't follow .beads/redirect files like other commands do. This means repair won't work on clones that use redirected beads directories.\n\nFix: Check for .beads/redirect file and follow it to find the actual database location.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-29T12:47:53.089729-08:00","updated_at":"2025-12-29T12:59:05.121303-08:00","closed_at":"2025-12-29T12:59:05.121303-08:00","close_reason":"Fixed in commit d7a67ad6","created_by":"stevey"} +{"id":"bd-dq8pu","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:58:53.861683-08:00","updated_at":"2026-01-11T22:58:53.906534-08:00","closed_at":"2026-01-11T22:58:53.906534-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-dqck","title":"Version Bump: test-squash","description":"Release checklist for version test-squash. This molecule ensures all release steps are completed properly.","status":"tombstone","priority":1,"issue_type":"epic","created_at":"2025-12-21T13:52:33.065408-08:00","updated_at":"2025-12-21T13:53:41.946036-08:00","deleted_at":"2025-12-21T13:53:41.946036-08:00","deleted_by":"stevey","delete_reason":"manual delete","original_type":"epic"} {"id":"bd-dqd83","title":"Digest: mol-refinery-patrol","description":"Patrol cycle: queue empty, no branches to merge","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-13T17:08:48.915682-08:00","updated_at":"2026-01-13T17:08:48.915682-08:00","closed_at":"2026-01-13T17:08:48.91563-08:00","close_reason":"Squashed from 11 wisps"} -{"id":"bd-dqmb1","title":"Fix: SQLite WAL fails on WSL2 /mnt/c/ (GH#920)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #920. SQLite WAL mode fails when database is on Windows filesystem via WSL2.","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/dave","created_at":"2026-01-09T22:20:24.108375-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T23:03:05.074957-08:00","closed_at":"2026-01-09T23:03:05.074957-08:00","close_reason":"Fixed: auto-detect WSL2 Windows filesystem and use DELETE mode"} +{"id":"bd-dqmb1","title":"Fix: SQLite WAL fails on WSL2 /mnt/c/ (GH#920)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #920. SQLite WAL mode fails when database is on Windows filesystem via WSL2.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-09T22:20:24.108375-08:00","updated_at":"2026-01-09T23:03:05.074957-08:00","closed_at":"2026-01-09T23:03:05.074957-08:00","close_reason":"Fixed: auto-detect WSL2 Windows filesystem and use DELETE mode","created_by":"beads/crew/dave"} {"id":"bd-dqu8","title":"Restart running daemons","description":"Kill and restart any running bd daemons to pick up new version: pkill -f 'bd daemon' \u0026\u0026 bd daemon --start","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-20T00:32:26.559311-08:00","updated_at":"2025-12-20T00:32:59.123766-08:00","closed_at":"2025-12-20T00:32:59.123766-08:00","dependencies":[{"issue_id":"bd-dqu8","depends_on_id":"bd-6s61","type":"parent-child","created_at":"2025-12-20T00:32:39.36213-08:00","created_by":"daemon"},{"issue_id":"bd-dqu8","depends_on_id":"bd-fgw3","type":"blocks","created_at":"2025-12-20T00:32:39.427846-08:00","created_by":"daemon"}]} -{"id":"bd-dqwuf","title":"Add IsBuiltIn() method to IssueType","description":"Add a method to types.IssueType that returns true for built-in types (task, bug, feature, epic, chore).\n\nLocation: internal/types/types.go\n\n```go\nfunc (t IssueType) IsBuiltIn() bool {\n switch t {\n case TypeTask, TypeBug, TypeFeature, TypeEpic, TypeChore:\n return true\n }\n return false\n}\n```\n\nAdd tests in internal/types/types_test.go.","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-09T14:05:53.244095-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T14:08:36.079177-08:00","closed_at":"2026-01-09T14:08:36.079177-08:00","close_reason":"Added IsBuiltIn() method to IssueType and tests","dependencies":[{"issue_id":"bd-dqwuf","depends_on_id":"bd-9ji4z","type":"parent-child","created_at":"2026-01-09T14:06:00.804493-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-dqwuf","title":"Add IsBuiltIn() method to IssueType","description":"Add a method to types.IssueType that returns true for built-in types (task, bug, feature, epic, chore).\n\nLocation: internal/types/types.go\n\n```go\nfunc (t IssueType) IsBuiltIn() bool {\n switch t {\n case TypeTask, TypeBug, TypeFeature, TypeEpic, TypeChore:\n return true\n }\n return false\n}\n```\n\nAdd tests in internal/types/types_test.go.","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-09T14:05:53.244095-08:00","updated_at":"2026-01-09T14:08:36.079177-08:00","closed_at":"2026-01-09T14:08:36.079177-08:00","close_reason":"Added IsBuiltIn() method to IssueType and tests","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-dqwuf","depends_on_id":"bd-9ji4z","type":"parent-child","created_at":"2026-01-09T14:06:00.804493-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-drcx","title":"bd mol run: Support proto lookup by title","description":"`bd mol run` only accepts proto ID (e.g., gt-lwuu), not proto title (e.g., mol-polecat-work).\n\n## Current Behavior\n```bash\nbd mol run mol-polecat-work --var issue=gt-xxx\n# Error: no issue found matching \"mol-polecat-work\"\n\nbd mol run gt-lwuu --var issue=gt-xxx \n# Works\n```\n\n## Desired Behavior\nBoth should work - lookup by ID or by title.\n\n## Why This Matters\n- Proto titles are human-readable and memorable\n- Proto IDs are opaque (gt-lwuu vs mol-polecat-work)\n- Hardcoding IDs in code is fragile (IDs change across databases)\n- `bd mol catalog` shows both: `gt-lwuu: mol-polecat-work`\n\n## Workaround\nCurrently using hardcoded proto ID in gt spawn, which is brittle.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-24T23:12:49.151242-08:00","updated_at":"2025-12-24T23:32:20.615624-08:00","closed_at":"2025-12-24T23:32:20.615624-08:00"} {"id":"bd-drxs","title":"Make merge requests ephemeral wisps instead of permanent issues","description":"## Problem\n\nMerge requests (MRs) are currently created as regular beads issues (type: merge-request). This means they:\n- Sync to JSONL and propagate via git\n- Accumulate in the issue database indefinitely\n- Clutter `bd list` output with closed MRs\n- Create permanent records for inherently transient artifacts\n\nMRs are process artifacts, not work products. They exist briefly while code awaits merge, then their purpose is fulfilled. The git merge commit and GitHub PR (if applicable) provide the permanent audit trail - the beads MR is redundant.\n\n## Proposed Solution\n\nMake MRs ephemeral wisps that exist only during the merge process:\n\n1. **Create MRs as wisps**: When a polecat completes work and requests merge, create the MR in `.beads-wisp/` instead of `.beads/`\n\n2. **Refinery visibility**: This works because all clones within a rig share the same database:\n ```\n beads/ ← Rig root\n ├── .beads/ ← Permanent issues (synced to JSONL)\n ├── .beads-wisp/ ← Ephemeral wisps (NOT synced)\n ├── crew/dave/ ← Uses rig's shared DB\n ├── polecats/*/ ← Uses rig's shared DB\n └── refinery/ ← Uses rig's shared DB\n ```\n The refinery can see wisp MRs immediately - same SQLite database.\n\n3. **On merge completion**: Burn the wisp (delete without digest). The git merge commit IS the permanent record. No digest needed since:\n - Digest wouldn't be smaller than the MR itself (~200-300 bytes either way)\n - Git history provides complete audit trail\n - GitHub PR (if used) provides discussion/approval record\n\n4. **On merge rejection/abandonment**: Burn the wisp. Optionally notify the source polecat via mail.\n\n## Benefits\n\n- **Clean JSONL**: MRs never pollute the permanent issue history\n- **No accumulation**: Wisps are burned on completion, no cleanup needed\n- **Correct semantics**: Wisps are for \"operational ephemera\" - MRs fit perfectly\n- **Reduced sync churn**: Fewer JSONL updates, faster `bd sync`\n- **Cleaner queries**: `bd list` shows work items, not process artifacts\n\n## Implementation Notes\n\n### Where MRs are created\n\nCurrently MRs are created by the witness or polecat when work is ready for merge. This code needs to:\n- Set `wisp: true` on the MR issue\n- Or use a dedicated wisp creation path\n\n### Refinery changes\n\nThe refinery queries for pending MRs to process. It needs to:\n- Query wisp storage as well as (or instead of) permanent storage\n- Use `bd mol burn` or equivalent to delete processed MRs\n\n### What about cross-rig MRs?\n\nIf an MR needs to be visible outside the rig (e.g., external collaborators):\n- They would see the GitHub PR anyway\n- Or we could create a permanent \"merge completed\" notification issue\n- But this is likely unnecessary - MRs are internal coordination\n\n### Migration\n\nExisting MRs in permanent storage:\n- Can be cleaned up with `bd cleanup` or manual deletion\n- Or left to age out naturally\n- No migration of open MRs needed (they'll complete under old system\n\n## Alternatives Considered\n\n1. **Auto-cleanup of closed MRs**: Keep MRs as permanent issues but auto-delete after 24h. Simpler but still creates sync churn and temporary JSONL pollution.\n\n2. **MRs as mail only**: Polecat sends mail to refinery with merge details, no MR issue at all. Loses queryability (bd-801b [P2] [merge-request] closed - Merge: bd-bqcc\nbd-pvu0 [P2] [merge-request] closed - Merge: bd-4opy\nbd-i0rx [P2] [merge-request] closed - Merge: bd-ao0s\nbd-u0sb [P2] [merge-request] closed - Merge: bd-uqfn\nbd-8e0q [P2] [merge-request] closed - Merge: beads-ocs\nbd-hvng [P2] [merge-request] closed - Merge: bd-w193\nbd-4sfl [P2] [merge-request] closed - Merge: bd-14ie\nbd-sumr [P2] [merge-request] closed - Merge: bd-t4sb\nbd-3x9o [P2] [merge-request] closed - Merge: bd-by0d\nbd-whgv [P2] [merge-request] closed - Merge: bd-401h\nbd-f3ll [P2] [merge-request] closed - Merge: bd-ot0w\nbd-fmdy [P3] [merge-request] closed - Merge: bd-kzda).\n\n3. **Separate merge queue**: Refinery maintains internal state for pending merges, not in beads at all. Clean but requires new infrastructure.\n\nWisps are the cleanest solution - they already exist, have the right semantics, and require minimal changes.\n\n## Related\n\n- Wisp architecture: \n- Current MR creation: witness/refinery code paths\n- bd-pvu0, bd-801b: Example MRs currently in permanent storage\nEOF\n)","status":"tombstone","priority":0,"issue_type":"feature","created_at":"2025-12-23T01:39:25.4918-08:00","updated_at":"2025-12-23T01:58:23.550668-08:00","deleted_at":"2025-12-23T01:58:23.550668-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"feature"} {"id":"bd-dsdh","title":"Document sync.branch 'always dirty' working tree behavior","description":"## Context\n\nWhen sync.branch is configured, the .beads/issues.jsonl file in main's working tree is ALWAYS dirty. This is by design:\n\n1. bd sync commits to beads-sync branch (via worktree)\n2. bd sync copies JSONL to main's working tree (so CLI commands work)\n3. This copy is NOT committed to main (to reduce commit noise)\n\nContributors who watch main branch history pushed for sync.branch to avoid constant beads commit noise. But users need to understand the trade-off.\n\n## Documentation Needed\n\nUpdate README.md sync.branch section with:\n\n1. **Clear explanation** of why .beads/ is always dirty on main\n2. **\"Be Zen about it\"** - this is expected, not a bug\n3. **Workflow options:**\n - Accept dirty state, use `bd sync --merge` periodically to snapshot to main\n - Or disable sync.branch if clean working tree is more important\n4. **Shell alias tip** to hide beads from git status:\n ```bash\n alias gs='git status -- \":!.beads/\"'\n ```\n5. **When to merge**: releases, milestones, or periodic snapshots\n\n## Related\n\n- bd-7b7h: Fix that allows bd sync --merge to work with dirty .beads/\n- bd-elqd: Investigation that identified this as expected behavior","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-16T23:16:12.253559-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-dsg87","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:46:01.476813-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T20:46:01.551441-08:00","closed_at":"2026-01-11T20:46:01.551441-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-dsg87","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T20:46:01.476813-08:00","updated_at":"2026-01-11T20:46:01.551441-08:00","closed_at":"2026-01-11T20:46:01.551441-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-dsp","title":"Test stdin body-file","status":"tombstone","priority":4,"issue_type":"task","created_at":"2025-12-17T17:27:32.098806-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-dtl8","title":"Test deleteViaDaemon RPC client integration","description":"Add comprehensive tests for the deleteViaDaemon function (cmd/bd/delete.go:21) which handles client-side RPC deletion calls.\n\n## Function under test\n- deleteViaDaemon: CLI command handler that sends delete requests to daemon via RPC\n\n## Test scenarios needed\n1. Successful deletion via daemon\n2. Cascade deletion through daemon\n3. Force deletion through daemon\n4. Dry-run mode (no actual deletion)\n5. Error handling:\n - Daemon unavailable\n - Invalid issue IDs\n - Dependency conflicts\n6. JSON output validation\n7. Human-readable output formatting\n\n## Coverage target\nCurrent: 0%\nTarget: \u003e80%\n\n## Related\n- Parent epic: bd-kyll\n- Original issue: bd-7z4","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-18T13:08:29.805706253-07:00","updated_at":"2025-12-23T23:50:35.615163-08:00","closed_at":"2025-12-23T23:50:35.615163-08:00","dependencies":[{"issue_id":"bd-dtl8","depends_on_id":"bd-kyll","type":"parent-child","created_at":"2025-12-18T13:08:29.807984381-07:00","created_by":"mhwilkie"}]} {"id":"bd-du9h","title":"Add Validation type and validations field to Issue","description":"Add Validation struct (Validator *EntityRef, Outcome string, Timestamp time.Time, Score *float32) and Validations []Validation field to Issue. Tracks who validated/approved work completion. Core to HOP proof-of-stake concept - validators stake reputation on approvals.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-22T17:53:37.725701-08:00","updated_at":"2025-12-22T20:08:59.925028-08:00","closed_at":"2025-12-22T20:08:59.925028-08:00","dependencies":[{"issue_id":"bd-du9h","depends_on_id":"bd-7pwh","type":"parent-child","created_at":"2025-12-22T17:53:43.470984-08:00","created_by":"daemon"},{"issue_id":"bd-du9h","depends_on_id":"bd-nmch","type":"blocks","created_at":"2025-12-22T17:53:47.896552-08:00","created_by":"daemon"}]} -{"id":"bd-durco","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:33:32.558686-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-09T22:33:32.595092-08:00","closed_at":"2026-01-09T22:33:32.595092-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-duyg","title":"Feature: bd swarm list - discover existing swarm molecules","description":"No command to list existing swarm molecules.\n\nAdd `bd swarm list` to show all swarm molecules:\n\n```\nbd swarm list\n\nActive swarms:\n bd-xyz: Swarm: Feature X (3/10 complete, 2 active)\n bd-abc: Swarm: Bug fixes (0/5 complete)\n```\n\nCould also be achieved via `bd list --mol-type=swarm` but dedicated command would show richer info.","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-28T21:38:11.773961-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T22:03:49.97246-08:00","closed_at":"2025-12-28T22:03:49.97246-08:00","dependencies":[{"issue_id":"bd-duyg","depends_on_id":"bd-2ubv","type":"parent-child","created_at":"2025-12-28T21:38:44.775264-08:00","created_by":"daemon"}]} +{"id":"bd-durco","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:33:32.558686-08:00","updated_at":"2026-01-09T22:33:32.595092-08:00","closed_at":"2026-01-09T22:33:32.595092-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} +{"id":"bd-duyg","title":"Feature: bd swarm list - discover existing swarm molecules","description":"No command to list existing swarm molecules.\n\nAdd `bd swarm list` to show all swarm molecules:\n\n```\nbd swarm list\n\nActive swarms:\n bd-xyz: Swarm: Feature X (3/10 complete, 2 active)\n bd-abc: Swarm: Bug fixes (0/5 complete)\n```\n\nCould also be achieved via `bd list --mol-type=swarm` but dedicated command would show richer info.","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-28T21:38:11.773961-08:00","updated_at":"2025-12-28T22:03:49.97246-08:00","closed_at":"2025-12-28T22:03:49.97246-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-duyg","depends_on_id":"bd-2ubv","type":"parent-child","created_at":"2025-12-28T21:38:44.775264-08:00","created_by":"daemon"}]} {"id":"bd-dvd","title":"GetNextChildID doesn't attempt parent resurrection from JSONL history","description":"When creating a child issue with --parent flag, GetNextChildID fails immediately if parent doesn't exist in DB, without attempting to resurrect it from JSONL history. This breaks the intended resurrection workflow and causes 'parent issue X does not exist' errors even when the parent exists in JSONL.\n\nRelated to GH #334 and #278.\n\nCurrent behavior:\n- GetNextChildID checks if parent exists in DB\n- If not found, returns error immediately\n- No resurrection attempt\n\nExpected behavior:\n- GetNextChildID should call TryResurrectParent before failing\n- Parent should be restored as tombstone if found in JSONL history\n- Child creation should succeed if resurrection succeeds\n\nImpact: Users cannot create child issues for parents that were deleted but exist in JSONL history.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-21T10:02:51.496365-05:00","updated_at":"2025-11-22T14:57:44.534796097-05:00","closed_at":"2025-11-21T15:09:02.731171-05:00"} {"id":"bd-dvw8","title":"GH#523: Fix closed issues missing closed_at timestamp during db upgrade","description":"Old beads databases may have closed issues without closed_at timestamps, causing 'closed issues must have closed_at timestamp' validation errors on upgrade to 0.29.0. Need defensive handling during import. See: https://github.com/steveyegge/beads/issues/523","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-14T16:31:30.421555-08:00","updated_at":"2025-12-16T14:39:19.052482-08:00","closed_at":"2025-12-14T17:29:34.746247-08:00"} {"id":"bd-dwh","title":"Implement or remove ExpectExit/ExpectStdout verification fields","description":"The Verification struct in internal/types/workflow.go has ExpectExit and ExpectStdout fields that are never used by workflowVerifyCmd. Either implement the functionality or remove the dead fields.","status":"tombstone","priority":3,"issue_type":"task","created_at":"2025-12-17T22:23:02.708627-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-dx2dc","title":"Refactor merge queue to use wisps instead of .beads/mq/ JSON files","description":"## Simplified Scope\n\nAdd bd doctor check for stale .beads/mq/*.json files + auto-fix to delete them.\n\n**Files to modify:**\n- cmd/bd/doctor/maintenance.go - Add CheckStaleMQFiles()\n- cmd/bd/doctor.go - Wire up the check\n- cmd/bd/doctor_fix.go - Add fix handler\n\n**Why this is simple:**\n- The .beads/mq/ files are LOCAL ONLY (not committed to git)\n- They're stale because their branches no longer exist\n- gt done already creates merge-request wisps correctly\n- No migration needed - just delete the orphaned files\n\n**Full design:** See plan file at ~/.claude-accounts/ghosttrack/plans/reflective-splashing-canyon.md\n\n**Follow-up:** After this merges, create gastown convoy for full mrqueue removal.","status":"closed","priority":2,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T18:17:00.242528-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T19:42:58.081117-08:00","closed_at":"2026-01-12T19:42:58.081117-08:00","close_reason":"Implemented: commit 66c5c4d8 - bd doctor now checks for stale .beads/mq/ files"} -{"id":"bd-dx6e","title":"bd activity --town: Aggregated town feed","description":"Add --town flag to bd activity for aggregated cross-rig feed.\n\nBehavior:\n- Uses routes.jsonl to discover all rigs\n- Aggregates activity from all rig beads\n- Essential for Deacon's convoy tracking and cross-rig dep resolution\n\nUsage:\n bd activity --follow --town # Stream all rig activity\n\nRelated: hq-7h8jx (Convoy System epic in town beads)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-29T18:47:03.057447-08:00","created_by":"mayor","updated_at":"2025-12-29T21:10:00.71961-08:00","closed_at":"2025-12-29T21:10:00.71961-08:00","close_reason":"Implemented --town flag for bd activity. Aggregates mutations from all rig daemons discovered via routes.jsonl."} -{"id":"bd-dx7m3","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:29:21.865951-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T02:29:21.931598-08:00","closed_at":"2026-01-12T02:29:21.931598-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-dx2dc","title":"Refactor merge queue to use wisps instead of .beads/mq/ JSON files","description":"## Simplified Scope\n\nAdd bd doctor check for stale .beads/mq/*.json files + auto-fix to delete them.\n\n**Files to modify:**\n- cmd/bd/doctor/maintenance.go - Add CheckStaleMQFiles()\n- cmd/bd/doctor.go - Wire up the check\n- cmd/bd/doctor_fix.go - Add fix handler\n\n**Why this is simple:**\n- The .beads/mq/ files are LOCAL ONLY (not committed to git)\n- They're stale because their branches no longer exist\n- gt done already creates merge-request wisps correctly\n- No migration needed - just delete the orphaned files\n\n**Full design:** See plan file at ~/.claude-accounts/ghosttrack/plans/reflective-splashing-canyon.md\n\n**Follow-up:** After this merges, create gastown convoy for full mrqueue removal.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T18:17:00.242528-08:00","updated_at":"2026-01-12T19:42:58.081117-08:00","closed_at":"2026-01-12T19:42:58.081117-08:00","close_reason":"Implemented: commit 66c5c4d8 - bd doctor now checks for stale .beads/mq/ files","created_by":"beads/crew/emma"} +{"id":"bd-dx6e","title":"bd activity --town: Aggregated town feed","description":"Add --town flag to bd activity for aggregated cross-rig feed.\n\nBehavior:\n- Uses routes.jsonl to discover all rigs\n- Aggregates activity from all rig beads\n- Essential for Deacon's convoy tracking and cross-rig dep resolution\n\nUsage:\n bd activity --follow --town # Stream all rig activity\n\nRelated: hq-7h8jx (Convoy System epic in town beads)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-29T18:47:03.057447-08:00","updated_at":"2025-12-29T21:10:00.71961-08:00","closed_at":"2025-12-29T21:10:00.71961-08:00","close_reason":"Implemented --town flag for bd activity. Aggregates mutations from all rig daemons discovered via routes.jsonl.","created_by":"mayor"} +{"id":"bd-dx7m3","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T02:29:21.865951-08:00","updated_at":"2026-01-12T02:29:21.931598-08:00","closed_at":"2026-01-12T02:29:21.931598-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-dxdn","title":"bd ready taking 5 seconds with 132 issues (89 closed)","description":"User reports bd ready is annoyingly slow on M2 Mac - 5 seconds for 132 issues (89 closed). Started noticing after hash-based IDs update. Need to investigate performance regression. Reported in GH #243.","notes":"Root cause identified: Not a query performance issue, but stale daemon locks causing 5s timeout delays.\n\nFixed in bd-ndyz (closed) via 5 sub-issues:\n- bd-expt: Fast-fail socket checks (200ms timeout)\n- bd-wgu4: Lock probe before RPC attempts\n- bd-1mzt: Self-heal stale artifacts\n- bd-vcg5: Panic recovery + socket cleanup\n- bd-j7e2: RPC diagnostics (BD_RPC_DEBUG)\n\nAll fixes merged. Ready for v0.22.2 release.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-07T00:26:30.359512-08:00","updated_at":"2025-11-08T13:17:08.766029-08:00","closed_at":"2025-11-08T02:35:47.956638-08:00"} {"id":"bd-dxtc","title":"Test daemon RPC delete handler","description":"Add tests for the daemon-side RPC delete handler that processes delete requests from clients.\n\n## What needs testing\n- Daemon's Delete RPC handler implementation\n- Processing delete requests from RPC clients\n- Cascade deletion at daemon level\n- Force deletion at daemon level\n- Dry-run mode validation\n- Error responses to clients\n- Dependency validation before deletion\n- Tombstone creation via daemon\n\n## Test scenarios\n1. Delete single issue via RPC\n2. Delete multiple issues via RPC\n3. Cascade deletion of dependents\n4. Force delete with orphaned dependents\n5. Dry-run returns what would be deleted without actual deletion\n6. Error: invalid issue IDs\n7. Error: insufficient permissions\n8. Error: dependency blocks deletion (without force/cascade)\n\n## Related\n- Parent epic: bd-kyll\n- Original issue: bd-7z4","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-18T13:08:33.532111042-07:00","updated_at":"2025-12-23T23:48:47.399582-08:00","closed_at":"2025-12-23T23:48:47.399582-08:00","dependencies":[{"issue_id":"bd-dxtc","depends_on_id":"bd-kyll","type":"parent-child","created_at":"2025-12-18T13:08:33.534367367-07:00","created_by":"mhwilkie"}]} -{"id":"bd-dywj3","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:34:59.667155-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:34:59.733536-08:00","closed_at":"2026-01-11T22:34:59.733536-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-dywj3","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:34:59.667155-08:00","updated_at":"2026-01-11T22:34:59.733536-08:00","closed_at":"2026-01-11T22:34:59.733536-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-dyy","title":"Review PR #513: fix hooks install docs","description":"Review and merge PR #513 from aspiers. This PR fixes incorrect docs for how to install git hooks - updates README to use bd hooks install instead of removed install.sh. Simple 1-line change. URL: https://github.com/anthropics/beads/pull/513","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-13T08:15:14.838772+11:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-dzryf","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T14:59:05.076458-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T14:59:05.14616-08:00","closed_at":"2026-01-13T14:59:05.14616-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-dzryf","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T14:59:05.076458-08:00","updated_at":"2026-01-13T14:59:05.14616-08:00","closed_at":"2026-01-13T14:59:05.14616-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-dzuvc","title":"Digest: mol-refinery-patrol","description":"Empty queue patrol - no branches waiting to merge","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T03:40:42.491766-08:00","updated_at":"2026-01-11T03:40:42.491766-08:00","closed_at":"2026-01-11T03:40:42.491714-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-e044","title":"Add mermaid output format for bd dep tree","description":"Add visual dependency graph output using Mermaid format for better visualization of issue relationships.\n\nExample usage:\n bd dep tree --format mermaid \u003cissue-id\u003e\n bd dep tree --format mermaid bd-42 \u003e graph.md\n\nThis would output Mermaid syntax that can be rendered in GitHub, documentation sites, or Mermaid live editor.\n\nImplementation notes:\n- Add --format flag to dep tree command\n- Support 'text' (default) and 'mermaid' formats\n- Mermaid graph should show issue IDs, titles, and dependency types\n- Consider using flowchart LR or graph TD syntax","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-03T18:10:18.978383-08:00","updated_at":"2025-11-03T20:55:06.696363-08:00","closed_at":"2025-11-03T20:55:06.69637-08:00"} {"id":"bd-e05d","title":"Investigate and optimize test suite performance","description":"Test suite is taking very long to run (\u003e45s for cmd/bd tests, full suite timing unknown but was cancelled).\n\nThis impacts development velocity and CI/CD performance.\n\nInvestigation needed:\n- Profile which tests are slowest\n- Identify bottlenecks (disk I/O, network, excessive setup/teardown?)\n- Consider parallelization opportunities\n- Look for redundant test cases\n- Check if integration tests can be optimized","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-02T15:37:44.529955-08:00","updated_at":"2025-11-02T16:40:27.358938-08:00","closed_at":"2025-11-02T16:40:27.358945-08:00"} @@ -1153,101 +1152,101 @@ {"id":"bd-e1085716","title":"bd validate - Comprehensive health check","description":"Run all validation checks in one command.\n\nChecks:\n- Duplicates\n- Orphaned dependencies\n- Test pollution\n- Git conflicts\n\nSupports --fix-all for auto-repair.\n\nDepends on bd-cbed9619.1, bd-0dcea000, bd-31aab707, bd-9826b69a.\n\nFiles: cmd/bd/validate.go (new)","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-10-29T23:05:13.980679-07:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-e166","title":"Improve timestamp comparison readability in import","description":"The timestamp comparison logic uses double-negative which can be confusing:\n\nCurrent code:\nif !incoming.UpdatedAt.After(existing.UpdatedAt) {\n // skip update\n}\n\nMore readable:\nif incoming.UpdatedAt.After(existing.UpdatedAt) {\n // perform update\n} else {\n // skip (local is newer)\n}\n\nThis is a minor refactor for code clarity.\n\nRelated: bd-1022\nFiles: internal/importer/importer.go:411, 488","status":"closed","priority":4,"issue_type":"chore","created_at":"2025-11-02T15:32:12.27108-08:00","updated_at":"2025-12-09T18:38:37.688877572-05:00","closed_at":"2025-11-26T22:25:27.124071-08:00"} {"id":"bd-e16b","title":"Replace BEADS_DB with BEADS_DIR environment variable","description":"Implement BEADS_DIR as a replacement for BEADS_DB to point to the .beads directory instead of the database file directly.\n\nRationale:\n- With --no-db mode, there's no .db file to point to\n- The .beads directory is the logical unit (contains config.yaml, db files, jsonl files)\n- More intuitive: point to the beads directory not the database file\n\nImplementation:\n1. Add BEADS_DIR environment variable support\n2. Maintain backward compatibility with BEADS_DB\n3. Priority order: BEADS_DIR \u003e BEADS_DB \u003e auto-discovery\n4. If BEADS_DIR is set, look for config.yaml in that directory to find actual database path\n5. Update documentation and migration guide\n\nFiles to modify:\n- beads.go (FindDatabasePath function)\n- cmd/bd/main.go (initialization)\n- Documentation (CLI_REFERENCE.md, TROUBLESHOOTING.md, etc.)\n- MCP integration (integrations/beads-mcp/src/beads_mcp/config.py)\n\nTesting:\n- Ensure BEADS_DB still works (backward compatibility)\n- Test BEADS_DIR with both db and --no-db modes\n- Test priority order when both are set\n- Update integration tests\n\nRelated to GitHub issue #179","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-02T18:19:26.131948-08:00","updated_at":"2025-11-02T18:27:14.545162-08:00","closed_at":"2025-11-02T18:27:14.545162-08:00"} -{"id":"bd-e1bp5","title":"Review \u0026 merge PR #1013: Hyphenated prefix support","description":"dispatched_by: beads/crew/emma\n\n## PR Review Task\n\n**PR:** https://github.com/steveyegge/beads/pull/1013\n**Author:** sukhodolin\n\n## Summary\nFix ValidateIDFormat to support hyphenated prefixes (e.g., 'bead-me-up-3e9').\n\n## Changes\n- internal/validation/bead.go: Use utils.ExtractIssuePrefix instead of naive first-hyphen split\n- internal/validation/bead_test.go: Add comprehensive test cases\n\n## The Bug\nBefore: 'bead-me-up-3e9' → prefix 'bead' (wrong)\nAfter: 'bead-me-up-3e9' → prefix 'bead-me-up' (correct)\n\nThis fixes `bd create --parent` failing for projects with hyphenated prefixes.\n\n## Review Checklist\n1. Pull branch locally: `gh pr checkout 1013 --repo steveyegge/beads`\n2. Run tests: `go test ./internal/validation/...`\n3. Verify all new test cases pass\n4. If all good, merge: `gh pr merge 1013 --repo steveyegge/beads --squash`\n\n## Classification\nEasy-win: Bug fix using existing utility, excellent test coverage.","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/giles","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:17:33.24321-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T18:46:13.779933-08:00","closed_at":"2026-01-11T18:46:13.779933-08:00","close_reason":"PR #1013 merged to main"} +{"id":"bd-e1bp5","title":"Review \u0026 merge PR #1013: Hyphenated prefix support","description":"dispatched_by: beads/crew/emma\n\n## PR Review Task\n\n**PR:** https://github.com/steveyegge/beads/pull/1013\n**Author:** sukhodolin\n\n## Summary\nFix ValidateIDFormat to support hyphenated prefixes (e.g., 'bead-me-up-3e9').\n\n## Changes\n- internal/validation/bead.go: Use utils.ExtractIssuePrefix instead of naive first-hyphen split\n- internal/validation/bead_test.go: Add comprehensive test cases\n\n## The Bug\nBefore: 'bead-me-up-3e9' → prefix 'bead' (wrong)\nAfter: 'bead-me-up-3e9' → prefix 'bead-me-up' (correct)\n\nThis fixes `bd create --parent` failing for projects with hyphenated prefixes.\n\n## Review Checklist\n1. Pull branch locally: `gh pr checkout 1013 --repo steveyegge/beads`\n2. Run tests: `go test ./internal/validation/...`\n3. Verify all new test cases pass\n4. If all good, merge: `gh pr merge 1013 --repo steveyegge/beads --squash`\n\n## Classification\nEasy-win: Bug fix using existing utility, excellent test coverage.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T18:17:33.24321-08:00","updated_at":"2026-01-11T18:46:13.779933-08:00","closed_at":"2026-01-11T18:46:13.779933-08:00","close_reason":"PR #1013 merged to main","created_by":"beads/crew/emma"} {"id":"bd-e1d645e8","title":"Rapid 4","status":"closed","priority":3,"issue_type":"task","created_at":"2025-10-29T19:11:57.484329-07:00","updated_at":"2025-12-14T12:12:46.554853-08:00","closed_at":"2025-11-07T23:18:52.316948-08:00"} {"id":"bd-e2e6","title":"Implement postinstall script for binary download","description":"Create npm/scripts/postinstall.js that downloads platform-specific binaries:\n\n## Platform detection\n- Detect os.platform() and os.arch()\n- Map to GitHub release asset names:\n - linux-amd64 → bd-linux-amd64\n - linux-arm64 → bd-linux-arm64\n - darwin-amd64 → bd-darwin-amd64\n - darwin-arm64 → bd-darwin-arm64\n - win32-x64 → bd-windows-amd64.exe\n\n## Download logic\n- Fetch from GitHub releases: https://github.com/steveyegge/beads/releases/latest/download/${asset}\n- Save to npm/bin/bd (or bd.exe on Windows)\n- Set executable permissions (chmod +x)\n- Handle errors gracefully with helpful messages\n\n## Error handling\n- Check for unsupported platforms\n- Retry on network failures\n- Provide manual download instructions if automated fails\n- Skip download if binary already exists (for local development)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-02T23:39:56.652829-08:00","updated_at":"2025-11-03T10:31:45.382215-08:00","closed_at":"2025-11-03T10:31:45.382215-08:00","dependencies":[{"issue_id":"bd-e2e6","depends_on_id":"bd-febc","type":"parent-child","created_at":"2025-11-02T23:40:32.94671-08:00","created_by":"daemon"}]} -{"id":"bd-e2q9","title":"bd sync fails when run from directory with beads redirect","description":"\n## Bug\n\n`bd sync` fails with 'git status failed in worktree: exit status 128' when run from a directory that uses a beads redirect (e.g., crew/gus/.beads/redirect pointing to mayor/rig/.beads).\n\n## Reproduction\n\n1. Be in gastown/crew/gus (has .beads/redirect → ../../mayor/rig/.beads)\n2. Run `bd sync`\n3. Error: 'git status failed in worktree: exit status 128'\n\n## Workaround\n\nRun `bd sync` from the actual beads location:\n```bash\ncd /Users/stevey/gt/gastown/mayor/rig \u0026\u0026 bd sync\n```\n\n## Root Cause\n\nThe worktree path resolution in `getBeadsWorktreePath()` likely uses the crew/gus repo root instead of following the redirect to mayor/rig. The git worktree for beads-sync is in mayor/rig/.git/beads-worktrees/, not crew/gus/.git/beads-worktrees/.\n\n## Impact\n\nCrew workers with redirected beads cannot sync directly from their workspace.\n","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-31T11:58:39.875764-08:00","created_by":"gastown/crew/gus","updated_at":"2025-12-31T13:31:39.510735-08:00","closed_at":"2025-12-31T13:31:39.510735-08:00","close_reason":"Fixed: use getRepoRootFromPath(ctx, beadsDir) instead of syncbranch.GetRepoRoot(ctx) to resolve repo root from redirect target"} +{"id":"bd-e2q9","title":"bd sync fails when run from directory with beads redirect","description":"\n## Bug\n\n`bd sync` fails with 'git status failed in worktree: exit status 128' when run from a directory that uses a beads redirect (e.g., crew/gus/.beads/redirect pointing to mayor/rig/.beads).\n\n## Reproduction\n\n1. Be in gastown/crew/gus (has .beads/redirect → ../../mayor/rig/.beads)\n2. Run `bd sync`\n3. Error: 'git status failed in worktree: exit status 128'\n\n## Workaround\n\nRun `bd sync` from the actual beads location:\n```bash\ncd /Users/stevey/gt/gastown/mayor/rig \u0026\u0026 bd sync\n```\n\n## Root Cause\n\nThe worktree path resolution in `getBeadsWorktreePath()` likely uses the crew/gus repo root instead of following the redirect to mayor/rig. The git worktree for beads-sync is in mayor/rig/.git/beads-worktrees/, not crew/gus/.git/beads-worktrees/.\n\n## Impact\n\nCrew workers with redirected beads cannot sync directly from their workspace.\n","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-31T11:58:39.875764-08:00","updated_at":"2025-12-31T13:31:39.510735-08:00","closed_at":"2025-12-31T13:31:39.510735-08:00","close_reason":"Fixed: use getRepoRootFromPath(ctx, beadsDir) instead of syncbranch.GetRepoRoot(ctx) to resolve repo root from redirect target","created_by":"gastown/crew/gus"} {"id":"bd-e55c","title":"Import overwrites newer local issues with older remote versions","description":"## Problem\n\nDuring git pull + import, local issues with newer updated_at timestamps get overwritten by older versions from remote JSONL.\n\n## What Happened\n\nTimeline:\n1. 17:52 - Closed bd-df190564 and bd-b501fcc1 locally (updated_at: 2025-10-31)\n2. 17:51 - Remote pushed same issues with status=open (updated_at: 2025-10-30)\n3. 17:52 - Local sync pulled remote commit and imported JSONL\n4. Result: Issues reverted to open despite local version being newer\n\n## Root Cause\n\nDetectCollisions (internal/storage/sqlite/collision.go:67-79) compares fields but doesn't check timestamps:\n\n```go\nconflictingFields := compareIssues(existing, incoming)\nif len(conflictingFields) == 0 {\n result.ExactMatches = append(result.ExactMatches, incoming.ID)\n} else {\n // Same ID, different content - treats as UPDATE\n result.Collisions = append(result.Collisions, \u0026CollisionDetail{...})\n}\n```\n\nImport applies incoming version regardless of which is newer.\n\n## Expected Behavior\n\nImport should:\n1. Compare updated_at timestamps when collision detected\n2. Skip update if local version is newer\n3. Apply update only if remote version is newer\n4. Warn on timestamp conflicts\n\n## Solution\n\nAdd timestamp checking to DetectCollisions or importIssues:\n\n```go\nif len(conflictingFields) \u003e 0 {\n // Check timestamps\n if !incoming.UpdatedAt.After(existing.UpdatedAt) {\n // Local is newer or same - skip update\n result.ExactMatches = append(result.ExactMatches, incoming.ID)\n continue\n }\n // Remote is newer - apply update\n result.Collisions = append(result.Collisions, \u0026CollisionDetail{...})\n}\n```\n\n## Files\n- internal/storage/sqlite/collision.go\n- internal/importer/importer.go\n\n## References\n- Discovered during bd-df190564, bd-b501fcc1 re-opening","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-10-31T17:56:43.919306-07:00","updated_at":"2025-10-31T18:05:55.521427-07:00","closed_at":"2025-10-31T18:05:55.521427-07:00"} -{"id":"bd-e5xlg","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T05:39:40.456516-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T05:39:40.499743-08:00","closed_at":"2026-01-11T05:39:40.499743-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-e5xlg","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T05:39:40.456516-08:00","updated_at":"2026-01-11T05:39:40.499743-08:00","closed_at":"2026-01-11T05:39:40.499743-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-e652","title":"bd doctor doesn't detect version mismatches or stale daemons","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-10-31T21:07:56.957214-07:00","updated_at":"2025-11-01T17:05:36.615761-07:00","closed_at":"2025-11-01T17:05:36.615761-07:00","dependencies":[{"issue_id":"bd-e652","depends_on_id":"bd-2752a7a2","type":"discovered-from","created_at":"2025-10-31T21:07:56.958708-07:00","created_by":"stevey"}]} {"id":"bd-e6d71828","title":"Add transaction + retry logic for N-way collision resolution","description":"## Problem\nCurrent N-way collision resolution fails on UNIQUE constraint violations during convergence rounds when 5+ clones sync. The RemapCollisions function is non-atomic and performs operations sequentially:\n1. Delete old issues (CASCADE deletes dependencies)\n2. Create remapped issues (can fail with UNIQUE constraint)\n3. Recreate dependencies\n4. Update text references\n\nFailure at step 2 leaves database in inconsistent state.\n\n## Solution\nWrap collision resolution in database transaction with retry logic:\n- Make entire RemapCollisions operation atomic\n- Retry up to 3 times on UNIQUE constraint failures\n- Re-sync counters between retries\n- Add better error messages for debugging\n\n## Implementation\nLocation: internal/storage/sqlite/collision.go:342 (RemapCollisions function)\n\n```go\n// Retry up to 3 times on UNIQUE constraint failures\nfor attempt := 0; attempt \u003c 3; attempt++ {\n err := s.db.ExecInTransaction(func(tx *sql.Tx) error {\n // All collision resolution operations\n })\n if !isUniqueConstraintError(err) {\n return err\n }\n s.SyncAllCounters(ctx)\n}\n```\n\n## Success Criteria\n- 5-clone collision test passes reliably\n- No partial state on UNIQUE constraint errors\n- Automatic recovery from transient ID conflicts\n\n## References\n- See beads_nway_test.go:124 for the KNOWN LIMITATION comment\n- Related to-7c5915ae (transaction support)","notes":"## Progress Made\n\n1. Added `ExecInTransaction` helper to SQLiteStorage for atomic database operations\n2. Added `IsUniqueConstraintError` function to detect UNIQUE constraint violations\n3. Wrapped `RemapCollisions` with retry logic (up to 3 attempts) with counter sync between retries\n4. Enhanced `handleRename` to detect and handle race conditions where target ID already exists\n5. Added defensive checks for when old ID has been deleted by another clone\n\n## Test Results\n\nThe changes improve N-way collision handling but don't fully solve the problem:\n- Original error: `UNIQUE constraint failed: issues.id` during first convergence round\n- With changes: Test proceeds further but encounters different collision scenarios\n- New error: `target ID already exists with different content` in later convergence rounds\n\n## Root Cause Analysis\n\nThe issue is more complex than initially thought. In N-way scenarios:\n1. Clone A remaps bd-1c63eb84 → test-2 → test-4\n2. Clone B remaps bd-1c63eb84 → test-3 → test-4 \n3. Both try to create test-4, but with different intermediate states\n4. This creates legitimate content collisions that require additional resolution\n\n## Next Steps \n\nThe full solution requires:\n1. Making remapping fully deterministic across clones (same input → same remapped ID)\n2. OR making `handleRename` more tolerant of mid-flight collisions\n3. OR implementing full transaction support for multi-step collision resolution -7c5915ae)\n\nThe retry logic added here provides a foundation but isn't sufficient for complex N-way scenarios.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T10:22:32.716678-07:00","updated_at":"2025-11-02T17:08:52.043475-08:00","closed_at":"2025-11-02T17:08:52.043477-08:00"} -{"id":"bd-e6llb","title":"BG's issue to reopen","status":"open","priority":1,"issue_type":"bug","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:00.121151-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:00.261062-08:00"} +{"id":"bd-e6llb","title":"BG's issue to reopen","status":"open","priority":1,"issue_type":"bug","created_at":"2026-01-11T18:16:00.121151-08:00","updated_at":"2026-01-11T18:16:00.261062-08:00","created_by":"beads/crew/wolf"} {"id":"bd-e6x","title":"bd sync --squash: batch multiple syncs into single commit","description":"For solo developers who don't need real-time multi-agent coordination, add a --squash option to bd sync that accumulates changes and commits them in a single commit rather than one commit per sync.\n\nThis addresses the git history pollution concern (many 'bd sync: timestamp' commits) while preserving the default behavior needed for orchestration.\n\n**Proposed behavior:**\n- `bd sync --squash` accumulates pending exports without committing\n- Commits accumulated changes on session end or explicit `bd sync` (without --squash)\n- Default behavior unchanged (immediate commits for orchestration)\n\n**Use case:** Solo developers who want cleaner git history but don't need real-time coordination between agents.\n\n**Related:** PR #411 (docs: reduce bd sync commit pollution)\n**See also:** Multi-repo support as alternative solution (docs/MULTI_REPO_AGENTS.md)","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-11-28T18:21:47.789887-08:00","updated_at":"2025-12-02T17:11:19.738252987-05:00","closed_at":"2025-11-28T21:56:57.608777-08:00"} -{"id":"bd-e7318","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T16:14:00.592844-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T16:14:00.666911-08:00","closed_at":"2026-01-13T16:14:00.666911-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-e73xs","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:51:42.378344-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T18:51:42.446452-08:00","closed_at":"2026-01-11T18:51:42.446452-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-e7318","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T16:14:00.592844-08:00","updated_at":"2026-01-13T16:14:00.666911-08:00","closed_at":"2026-01-13T16:14:00.666911-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-e73xs","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T18:51:42.378344-08:00","updated_at":"2026-01-11T18:51:42.446452-08:00","closed_at":"2026-01-11T18:51:42.446452-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-e7ou","title":"Fix --as flag: uses title instead of ID in mol bond","description":"In bondProtoProto, the --as flag is documented as 'Custom ID for compound proto' but the implementation uses it as the title, not the issue ID.\n\n**Current behavior (mol.go:637-638):**\n```go\nif customID != '' {\n compoundTitle = customID // Used as title, not ID\n}\n```\n\n**Options:**\n1. Change flag description to say 'Custom title' (documentation fix)\n2. Actually use it as a custom ID prefix or full ID (feature change)\n3. Add separate --title flag and make --as actually set ID\n\nRecommend option 1 for simplest fix - change 'Custom ID' to 'Custom title' in the flag description.","status":"closed","priority":3,"issue_type":"bug","created_at":"2025-12-21T10:22:59.069368-08:00","updated_at":"2025-12-21T21:18:48.514513-08:00","closed_at":"2025-12-21T21:18:48.514513-08:00"} -{"id":"bd-e7v0c","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:08:38.465263-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T15:08:38.498968-08:00","closed_at":"2026-01-10T15:08:38.498968-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-e7v0c","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:08:38.465263-08:00","updated_at":"2026-01-10T15:08:38.498968-08:00","closed_at":"2026-01-10T15:08:38.498968-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-e8be4224","title":"Batch test 3","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T15:29:01.964091-07:00","updated_at":"2025-10-31T12:00:43.183212-07:00","closed_at":"2025-10-31T12:00:43.183212-07:00"} -{"id":"bd-e8kq","title":"Consolidate migrate-* commands into migrate subcommands","description":"Move migrate-hash-ids, migrate-issues, migrate-sync, migrate-tombstones under 'migrate' as subcommands. Reduces 5 top-level commands to 1.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T12:59:09.187369-08:00","created_by":"stevey","updated_at":"2025-12-28T13:02:51.321846-08:00","closed_at":"2025-12-28T13:02:51.321848-08:00"} +{"id":"bd-e8kq","title":"Consolidate migrate-* commands into migrate subcommands","description":"Move migrate-hash-ids, migrate-issues, migrate-sync, migrate-tombstones under 'migrate' as subcommands. Reduces 5 top-level commands to 1.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T12:59:09.187369-08:00","updated_at":"2025-12-28T13:02:51.321846-08:00","closed_at":"2025-12-28T13:02:51.321848-08:00","created_by":"stevey"} {"id":"bd-e92","title":"Add test coverage for internal/autoimport package","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-20T21:21:22.338577-05:00","updated_at":"2025-12-09T18:38:37.690070772-05:00","closed_at":"2025-11-28T21:52:34.222127-08:00","dependencies":[{"issue_id":"bd-e92","depends_on_id":"bd-ge7","type":"blocks","created_at":"2025-11-20T21:21:31.128625-05:00","created_by":"daemon"}]} {"id":"bd-e98221b3","title":"Update AGENTS.md and README.md with \"bd daemons\" documentation","description":"Document the new \"bd daemons\" command and all subcommands in AGENTS.md and README.md. Include examples and troubleshooting guidance.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-26T19:41:11.099254-07:00","updated_at":"2025-12-14T12:12:46.535252-08:00","closed_at":"2025-11-06T19:51:57.75321-08:00"} {"id":"bd-eb3c","title":"UX nightmare: multiple ways daemon can fail with misleading messages","status":"closed","priority":0,"issue_type":"epic","created_at":"2025-10-31T21:08:09.090553-07:00","updated_at":"2025-11-01T20:27:42.79962-07:00","closed_at":"2025-11-01T20:27:42.79962-07:00"} -{"id":"bd-ebap8","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T10:28:31.690282-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T10:28:31.750653-08:00","closed_at":"2026-01-11T10:28:31.750653-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-ecmd","title":"Add type: event for state transitions","description":"Events capture operational state changes as immutable records.\n\nFields needed:\n- event_type: string (namespaced category like patrol.muted, agent.started) \n- actor: string (entity URI who caused this)\n- target: string (entity URI or bead ID affected)\n- payload: object (event-specific JSON data)\n\nExample:\n id: evt-x7k2\n type: event\n event_type: patrol.muted\n actor: human:overseer\n target: agent:deacon\n payload: {reason: fixing deadlock, until: gt-abc1}\n\nThis enables:\n- bd activity --follow showing events\n- bd list --type=event --target=agent:deacon\n- Full audit trail for operational state\n- HOP-compatible transaction records","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-12-30T15:15:23.440095-08:00","created_by":"gastown/crew/max","updated_at":"2025-12-30T18:12:30.97233-08:00","closed_at":"2025-12-30T16:13:57.467275-08:00","close_reason":"Implemented type: event for state transitions with all required fields"} +{"id":"bd-ebap8","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T10:28:31.690282-08:00","updated_at":"2026-01-11T10:28:31.750653-08:00","closed_at":"2026-01-11T10:28:31.750653-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-ecmd","title":"Add type: event for state transitions","description":"Events capture operational state changes as immutable records.\n\nFields needed:\n- event_type: string (namespaced category like patrol.muted, agent.started) \n- actor: string (entity URI who caused this)\n- target: string (entity URI or bead ID affected)\n- payload: object (event-specific JSON data)\n\nExample:\n id: evt-x7k2\n type: event\n event_type: patrol.muted\n actor: human:overseer\n target: agent:deacon\n payload: {reason: fixing deadlock, until: gt-abc1}\n\nThis enables:\n- bd activity --follow showing events\n- bd list --type=event --target=agent:deacon\n- Full audit trail for operational state\n- HOP-compatible transaction records","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-12-30T15:15:23.440095-08:00","updated_at":"2025-12-30T18:12:30.97233-08:00","closed_at":"2025-12-30T16:13:57.467275-08:00","close_reason":"Implemented type: event for state transitions with all required fields","created_by":"gastown/crew/max"} {"id":"bd-ee1","title":"Add security tests for WriteFile permissions in doctor command","description":"Test coverage gap identified by automated analysis (vc-217).\n\n**Original Issue:** [deleted:[deleted:bd-da96-baseline-lint]]\n\nIn cmd/bd/doctor/gitignore.go:98, os.WriteFile uses 0644 permissions, flagged by gosec G306 as potentially too permissive.\n\nAdd tests to verify:\n- File is created with appropriate permissions (0600 or less)\n- Existing file permissions are not loosened\n- File ownership is correct\n- Sensitive data handling if .gitignore contains secrets\n\nThis ensures .gitignore files are created with secure permissions to prevent unauthorized access.\n\n_This issue was automatically created by AI test coverage analysis._","status":"open","priority":1,"issue_type":"task","created_at":"2025-11-21T10:25:33.529153-05:00","updated_at":"2025-11-22T14:57:44.539058246-05:00","dependencies":[{"issue_id":"bd-ee1","depends_on_id":"bd-da96-baseline-lint","type":"discovered-from","created_at":"2025-11-21T10:25:33.530705-05:00","created_by":"ai-supervisor"}]} -{"id":"bd-ee58w","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:29:40.041794-08:00","created_by":"beads/crew/giles","updated_at":"2026-01-09T22:29:40.077721-08:00","closed_at":"2026-01-09T22:29:40.077721-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ee58w","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:29:40.041794-08:00","updated_at":"2026-01-09T22:29:40.077721-08:00","closed_at":"2026-01-09T22:29:40.077721-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/giles"} {"id":"bd-eef03e0a","title":"Stress test: event storm handling","description":"Simulate 100+ rapid JSONL writes. Verify debouncer batches to single import. Verify no data loss. Test daemon stability.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T20:49:49.138725-07:00","updated_at":"2025-10-31T19:18:50.682925-07:00","closed_at":"2025-10-31T19:18:50.682925-07:00"} {"id":"bd-eeqf","title":"GH#486: Claude forgets beads workflow mid-session","description":"Claude progressively reverts to TodoWrite or skips tracking despite CLAUDE.md instructions. Happens after context resets or long sessions. Need stronger prompting or hooks. See: https://github.com/steveyegge/beads/issues/486","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-14T16:32:21.544338-08:00","updated_at":"2025-12-16T01:27:29.005426-08:00","closed_at":"2025-12-16T01:27:29.005426-08:00"} {"id":"bd-ef72b864","title":"Add MCP server functions for repair commands","description":"Expose new repair commands via MCP server for agent access:\n\nFunctions to add:\n- beads_repair_deps()\n- beads_detect_pollution()\n- beads_validate()\n- beads_resolve_conflicts() (when implemented)\n\nUpdate integrations/beads-mcp/src/beads_mcp/server.py\n\nSee repair_commands.md lines 803-884 for design.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-28T19:38:02.227921-07:00","updated_at":"2025-10-30T17:12:58.180404-07:00","closed_at":"2025-10-29T23:14:44.187562-07:00"} {"id":"bd-ef85","title":"Add --json flags to all bd commands for agent-friendly output","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-10-31T22:39:45.312496-07:00","updated_at":"2025-10-31T22:39:50.157022-07:00","closed_at":"2025-10-31T22:39:50.157022-07:00"} {"id":"bd-efm","title":"sync tries to create worktree in .git file","description":"example: bd sync --no-daemon\n→ Exporting pending changes to JSONL...\n→ Committing changes to sync branch 'worktree-db-fail'...\nError committing to sync branch: failed to create worktree: failed to create worktree parent directory: mkdir /var/home/matt/dev/beads/worktree-db-fail/.git: not a directory","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-07T15:43:38.086614222-07:00","updated_at":"2025-12-15T16:12:59.165821-08:00","closed_at":"2025-12-13T23:32:36.995519-08:00"} -{"id":"bd-efo6","title":"Test cross-rig issue creation","description":"Testing --rig flag from town root","status":"tombstone","priority":3,"issue_type":"task","created_at":"2025-12-27T00:43:21.006012-08:00","created_by":"stevey","updated_at":"2025-12-27T00:43:27.389223-08:00","deleted_at":"2025-12-27T00:43:27.389223-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} -{"id":"bd-eg459","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:12:15.800535-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:12:15.868624-08:00","closed_at":"2026-01-11T21:12:15.868624-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-ehjx8","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T01:27:28.739438-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-13T01:27:28.804261-08:00","closed_at":"2026-01-13T01:27:28.804261-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-ehwp","title":"Merge: ruby-1767138542815","description":"branch: polecat/ruby-1767138542815\ntarget: main\nsource_issue: ruby-1767138542815\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T15:59:42.840764-08:00","created_by":"beads/polecats/ruby","updated_at":"2025-12-30T18:12:30.981876-08:00","closed_at":"2025-12-30T18:11:07.972179-08:00"} +{"id":"bd-efo6","title":"Test cross-rig issue creation","description":"Testing --rig flag from town root","status":"tombstone","priority":3,"issue_type":"task","created_at":"2025-12-27T00:43:21.006012-08:00","updated_at":"2025-12-27T00:43:27.389223-08:00","created_by":"stevey","deleted_at":"2025-12-27T00:43:27.389223-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} +{"id":"bd-eg459","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:12:15.800535-08:00","updated_at":"2026-01-11T21:12:15.868624-08:00","closed_at":"2026-01-11T21:12:15.868624-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-ehjx8","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T01:27:28.739438-08:00","updated_at":"2026-01-13T01:27:28.804261-08:00","closed_at":"2026-01-13T01:27:28.804261-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-ehwp","title":"Merge: ruby-1767138542815","description":"branch: polecat/ruby-1767138542815\ntarget: main\nsource_issue: ruby-1767138542815\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T15:59:42.840764-08:00","updated_at":"2025-12-30T18:12:30.981876-08:00","closed_at":"2025-12-30T18:11:07.972179-08:00","created_by":"beads/polecats/ruby"} {"id":"bd-eijl","title":"bd ship command for publishing capabilities","description":"Add `bd ship \u003ccapability\u003e` command that:\n\n1. Finds issue with `export:\u003ccapability\u003e` label\n2. Validates issue is closed (or --force to override)\n3. Adds `provides:\u003ccapability\u003e` label\n4. Protects `provides:*` namespace (only bd ship can add these labels)\n\nExample:\n```bash\nbd ship mol-run-assignee\n# Output: Shipped mol-run-assignee (bd-xyz)\n```\n\nPart of cross-project dependency system.\nSee: gastown/docs/cross-project-deps.md","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-21T22:37:19.123024-08:00","updated_at":"2025-12-21T23:11:47.498859-08:00","closed_at":"2025-12-21T23:11:47.498859-08:00"} {"id":"bd-eimz","title":"Add Agent Mail to QUICKSTART.md","description":"Mention Agent Mail as optional advanced feature in quickstart guide.\n\nFile: docs/QUICKSTART.md","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-07T22:42:51.357009-08:00","updated_at":"2025-11-08T01:07:11.598558-08:00","closed_at":"2025-11-08T01:07:11.598558-08:00","dependencies":[{"issue_id":"bd-eimz","depends_on_id":"bd-xzrv","type":"blocks","created_at":"2025-11-07T23:04:09.841956-08:00","created_by":"daemon"}]} {"id":"bd-eiz9","title":"Help agents understand version changes with bd info --whats-new","description":"**Problem** (from GH Discussion #239 by @maphew):\nWeekly major versions mean agents need to adapt workflows, but currently there's no efficient way to communicate \"what changed that affects you.\"\n\n**Proposed solutions:**\n\n1. **bd info --whats-new** - Show agent-actionable changes since last version\n ```\n Since v0.20.1:\n • Hash IDs eliminate collisions - remove ID coordination workarounds\n • Event-driven daemon (opt-in) - add BEADS_DAEMON_MODE=events\n • Merge driver auto-configured - conflicts rarer\n ```\n\n2. **Version-aware bd onboard** - Detect version changes and show diff of agent-relevant changes\n\n3. **AGENTS.md top section** - \"🆕 Recent Changes (Last 3 Versions)\" with workflow impacts\n\n**Why agents need this:**\n- Raw CHANGELOG is token-heavy and buried in release details\n- Full bd onboard re-run wasteful if only 2-3 things changed\n- Currently requires user to manually explain updates\n\n**Related:** https://github.com/steveyegge/beads/discussions/239","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-06T21:03:30.057576-08:00","updated_at":"2025-11-08T02:42:56.733731-08:00","closed_at":"2025-11-08T02:25:55.509249-08:00"} -{"id":"bd-ej3ni","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:20:58.399505-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T01:20:58.446112-08:00","closed_at":"2026-01-12T01:20:58.446112-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-eko4","title":"Add pre-migration orphan cleanup to avoid chicken-and-egg fix failure","description":"## Problem\n\nWhen the database has orphaned foreign key references (dependencies or labels pointing to non-existent issues), the migration invariant check fails, preventing the database from opening. This creates a chicken-and-egg problem:\n\n1. `bd doctor --fix` tries to open the database\n2. Opening triggers migrations with invariant checks\n3. Invariant check fails due to orphaned refs\n4. Fix never runs because database won't open\n\n## Root Cause\n\nAggressive tombstone deletion (e.g., deleting ~1000 old tombstones) left behind orphaned:\n- 218+ dependencies where issue_id not in issues\n- 222+ dependencies where depends_on_id not in issues \n- 30+ labels where issue_id not in issues\n\n## Current Workaround\n\nDirect SQL to clean up before bd can run:\n```sql\nDELETE FROM dependencies WHERE NOT EXISTS (SELECT 1 FROM issues WHERE id = issue_id);\nDELETE FROM dependencies WHERE NOT EXISTS (SELECT 1 FROM issues WHERE id = depends_on_id) AND depends_on_id NOT LIKE 'external:%';\nDELETE FROM labels WHERE NOT EXISTS (SELECT 1 FROM issues WHERE id = issue_id);\n```\n\n## Proposed Fix\n\nAdd a pre-migration cleanup step that runs BEFORE invariant checks:\n1. Option A: Run orphan cleanup as part of migrations (before invariant check)\n2. Option B: Add `bd doctor --force-fix` that bypasses invariant checks\n3. Option C: Have invariant check auto-clean orphans instead of failing\n\nOption A is cleanest - orphan cleanup should be part of normal migration.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-28T23:18:24.65227-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-29T13:46:30.625571-08:00","closed_at":"2025-12-29T13:46:30.625571-08:00","close_reason":"Implemented Option A: CleanOrphanedRefs runs before captureSnapshot in RunMigrations, preventing chicken-and-egg problem"} +{"id":"bd-ej3ni","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T01:20:58.399505-08:00","updated_at":"2026-01-12T01:20:58.446112-08:00","closed_at":"2026-01-12T01:20:58.446112-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-eko4","title":"Add pre-migration orphan cleanup to avoid chicken-and-egg fix failure","description":"## Problem\n\nWhen the database has orphaned foreign key references (dependencies or labels pointing to non-existent issues), the migration invariant check fails, preventing the database from opening. This creates a chicken-and-egg problem:\n\n1. `bd doctor --fix` tries to open the database\n2. Opening triggers migrations with invariant checks\n3. Invariant check fails due to orphaned refs\n4. Fix never runs because database won't open\n\n## Root Cause\n\nAggressive tombstone deletion (e.g., deleting ~1000 old tombstones) left behind orphaned:\n- 218+ dependencies where issue_id not in issues\n- 222+ dependencies where depends_on_id not in issues \n- 30+ labels where issue_id not in issues\n\n## Current Workaround\n\nDirect SQL to clean up before bd can run:\n```sql\nDELETE FROM dependencies WHERE NOT EXISTS (SELECT 1 FROM issues WHERE id = issue_id);\nDELETE FROM dependencies WHERE NOT EXISTS (SELECT 1 FROM issues WHERE id = depends_on_id) AND depends_on_id NOT LIKE 'external:%';\nDELETE FROM labels WHERE NOT EXISTS (SELECT 1 FROM issues WHERE id = issue_id);\n```\n\n## Proposed Fix\n\nAdd a pre-migration cleanup step that runs BEFORE invariant checks:\n1. Option A: Run orphan cleanup as part of migrations (before invariant check)\n2. Option B: Add `bd doctor --force-fix` that bypasses invariant checks\n3. Option C: Have invariant check auto-clean orphans instead of failing\n\nOption A is cleanest - orphan cleanup should be part of normal migration.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-28T23:18:24.65227-08:00","updated_at":"2025-12-29T13:46:30.625571-08:00","closed_at":"2025-12-29T13:46:30.625571-08:00","close_reason":"Implemented Option A: CleanOrphanedRefs runs before captureSnapshot in RunMigrations, preventing chicken-and-egg problem","created_by":"beads/crew/dave"} {"id":"bd-elqd","title":"Systematic bd sync stability investigation","description":"## Context\n\nbd sync has chronic instability issues that have persisted since inception:\n- issues.jsonl is always dirty after push\n- bd sync often creates messes requiring manual cleanup\n- Problems escalating despite accumulated bug fixes\n- Workarounds are getting increasingly draconian\n\n## Goal\n\nSystematically observe and diagnose bd sync failures rather than applying band-aid fixes.\n\n## Approach\n\n1. Start fresh session with latest binary (all fixes applied)\n2. Run bd sync and carefully observe what happens\n3. Document exact sequence of events when things go wrong\n4. File specific issues for each discrete problem identified\n5. Track the root causes, not just symptoms\n\n## Test Environment\n\n- Fresh clone or clean state\n- Latest bd binary with all bug fixes\n- Monitor both local and remote JSONL state\n- Check for timing issues, race conditions, merge conflicts\n\n## Success Criteria\n\n- Identify root causes of sync instability\n- Create actionable issues for each problem\n- Eventually achieve stable bd sync (no manual intervention needed)","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-16T22:57:25.35289-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-emg","title":"bd init should refuse when JSONL already has issues (safety guard)","description":"When running `bd init` in a directory with an existing JSONL containing issues, bd should refuse and suggest the correct action instead of proceeding.\n\n## The Problem\n\nCurrent behavior when database is missing but JSONL exists:\n```\n$ bd create \"test\"\nError: no beads database found\nHint: run 'bd init' to create a database...\n```\n\nThis leads users (and AI agents) to reflexively run `bd init`, which can cause:\n- Prefix mismatch if wrong prefix specified\n- Data corruption if JSONL is damaged\n- Confusion about what actually happened\n\n## Proposed Behavior\n\n```\n$ bd init --prefix bd\n\n⚠ Found existing .beads/issues.jsonl with 76 issues.\n\nThis appears to be a fresh clone, not a new project.\n\nTo hydrate the database from existing JSONL:\n bd doctor --fix\n\nTo force re-initialization (may cause data loss):\n bd init --prefix bd --force\n\nAborting.\n```\n\n## Trigger Conditions\n\n- `.beads/issues.jsonl` or `.beads/beads.jsonl` exists\n- File contains \u003e 0 valid issue lines\n- No `--force` flag provided\n\n## Edge Cases\n\n- Empty JSONL (0 issues) → allow init (new project)\n- Corrupted JSONL → warn but allow with confirmation\n- Existing `.db` file → definitely refuse (weird state)\n\n## Related\n\n- bd-dmb: Fresh clone should suggest hydration (better error messages)\n- bd-4ew: bd doctor should detect fresh clone\n\nThis issue is about the safety guard on `bd init` itself, not the error messages from other commands.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-28T18:21:41.149304-08:00","updated_at":"2025-12-02T17:11:19.739937029-05:00","closed_at":"2025-11-28T22:17:18.849507-08:00"} -{"id":"bd-en43","title":"Evaluate agent fields on Issue struct","description":"Investigate and decide what to do with Gas Town-specific fields on Issue struct.\n\n## Fields to evaluate\n- HookBead (current work on agent's hook)\n- RoleBead (role definition bead)\n- AgentState (idle|running|stuck|stopped)\n- LastActivity (timestamp for timeout detection)\n- RoleType (polecat|crew|witness|refinery|mayor|deacon)\n- Rig (rig name)\n\n## Options\n1. Keep as optional fields (pragmatic, non-breaking)\n2. Move to separate agent_state table (clean but complex)\n3. Store in description/notes as JSON (hacky)\n4. Document as 'extension fields' for now\n\n## Files\n- internal/types/types.go\n- internal/storage/sqlite/migrations/030_agent_fields.go","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:40:50.93332-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-06T22:19:20.753048-08:00","closed_at":"2026-01-06T22:19:20.753048-08:00","close_reason":"Decision: Keep agent fields as optional extension fields. They're already in the schema, don't hurt if unused, and Gas Town depends on them. Moving them would be unnecessary complexity.","dependencies":[{"issue_id":"bd-en43","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.739178-08:00","created_by":"beads/crew/dave"}]} +{"id":"bd-en43","title":"Evaluate agent fields on Issue struct","description":"Investigate and decide what to do with Gas Town-specific fields on Issue struct.\n\n## Fields to evaluate\n- HookBead (current work on agent's hook)\n- RoleBead (role definition bead)\n- AgentState (idle|running|stuck|stopped)\n- LastActivity (timestamp for timeout detection)\n- RoleType (polecat|crew|witness|refinery|mayor|deacon)\n- Rig (rig name)\n\n## Options\n1. Keep as optional fields (pragmatic, non-breaking)\n2. Move to separate agent_state table (clean but complex)\n3. Store in description/notes as JSON (hacky)\n4. Document as 'extension fields' for now\n\n## Files\n- internal/types/types.go\n- internal/storage/sqlite/migrations/030_agent_fields.go","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:40:50.93332-08:00","updated_at":"2026-01-06T22:19:20.753048-08:00","closed_at":"2026-01-06T22:19:20.753048-08:00","close_reason":"Decision: Keep agent fields as optional extension fields. They're already in the schema, don't hurt if unused, and Gas Town depends on them. Moving them would be unnecessary complexity.","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-en43","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.739178-08:00","created_by":"beads/crew/dave"}]} {"id":"bd-eph-5h2","title":"beads-release","description":"Beads release workflow","status":"tombstone","priority":2,"issue_type":"epic","created_at":"2025-12-30T21:17:38.213979-08:00","updated_at":"2026-01-04T23:41:06.945589-08:00","close_reason":"Cleanup: stale molecule","deleted_at":"2026-01-01T11:14:44.070596-08:00","deleted_by":"beads/crew/wolf","delete_reason":"misfiled - should have been a wisp","original_type":"epic"} {"id":"bd-epvx","title":"Create Go adapter library (optional)","description":"For agents written in Go, provide native adapter library instead of shelling out to curl.\n\nAcceptance Criteria:\n- agentmail.Client struct\n- HTTP client with timeout/retry logic\n- Same API as Python adapter\n- Example usage in examples/go-agent/\n- Unit tests\n\nFile: pkg/agentmail/client.go\n\nNote: Lower priority - can shell out to curl initially","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-11-07T22:42:28.781577-08:00","updated_at":"2025-11-08T15:58:37.146674-08:00","closed_at":"2025-11-08T15:48:57.83973-08:00","dependencies":[{"issue_id":"bd-epvx","depends_on_id":"bd-m9th","type":"blocks","created_at":"2025-11-07T23:04:01.47471-08:00","created_by":"daemon"}]} -{"id":"bd-epww","title":"Document pinned status in CLI_REFERENCE.md","description":"## Task\n\nThe `pinned` status is a valid issue status but is not documented in CLI_REFERENCE.md.\n\n## Current Status Values (from types.go:295-301)\n\n- open\n- in_progress\n- blocked\n- deferred\n- closed\n- tombstone\n- **pinned** ← undocumented\n\n## Definition\n\n`StatusPinned Status = \"pinned\" // Persistent bead that stays open indefinitely (bd-6v2)`\n\n## Where to Document\n\nAdd to the 'Issue Types' or create a new 'Issue Statuses' section in docs/CLI_REFERENCE.md.\n\n## Related\n\nThe pinned status is heavily used by gt for hook management (`--status=pinned`).","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T17:12:35.296002-08:00","created_by":"gastown/crew/joe","updated_at":"2025-12-27T19:13:05.640767-08:00","closed_at":"2025-12-27T19:13:05.640767-08:00"} +{"id":"bd-epww","title":"Document pinned status in CLI_REFERENCE.md","description":"## Task\n\nThe `pinned` status is a valid issue status but is not documented in CLI_REFERENCE.md.\n\n## Current Status Values (from types.go:295-301)\n\n- open\n- in_progress\n- blocked\n- deferred\n- closed\n- tombstone\n- **pinned** ← undocumented\n\n## Definition\n\n`StatusPinned Status = \"pinned\" // Persistent bead that stays open indefinitely (bd-6v2)`\n\n## Where to Document\n\nAdd to the 'Issue Types' or create a new 'Issue Statuses' section in docs/CLI_REFERENCE.md.\n\n## Related\n\nThe pinned status is heavily used by gt for hook management (`--status=pinned`).","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T17:12:35.296002-08:00","updated_at":"2025-12-27T19:13:05.640767-08:00","closed_at":"2025-12-27T19:13:05.640767-08:00","created_by":"gastown/crew/joe"} {"id":"bd-eqjc","title":"bd init creates nested .beads directories","description":"bd init sometimes creates .beads/.beads/ nested directories, which should never happen. This occurs fairly often and can cause confusion about which .beads directory is active. Need to add validation to detect if already inside a .beads directory and either error or use the parent .beads location.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-06T22:21:22.948727-08:00","updated_at":"2025-11-06T22:22:41.04958-08:00","closed_at":"2025-11-06T22:22:41.04958-08:00"} -{"id":"bd-er7d7","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T23:05:23.999666-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-09T23:05:24.037438-08:00","closed_at":"2026-01-09T23:05:24.037438-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-er7d7","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T23:05:23.999666-08:00","updated_at":"2026-01-09T23:05:24.037438-08:00","closed_at":"2026-01-09T23:05:24.037438-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} {"id":"bd-er7r","title":"GH#509: bd fails to find .beads from nested worktrees","description":"findDatabaseInTree stops at worktree git root, missing .beads in parent repo. Should check git-common-dir and search past worktree root. See: https://github.com/steveyegge/beads/issues/509","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-14T16:32:00.082813-08:00","updated_at":"2025-12-16T01:27:29.033379-08:00","closed_at":"2025-12-16T01:27:29.033379-08:00"} {"id":"bd-es19","title":"BG's issue to reopen","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-22T14:57:44.542501548-05:00","updated_at":"2025-11-22T14:57:44.542501548-05:00","closed_at":"2025-11-07T21:57:59.90981-08:00"} -{"id":"bd-etvcn","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:22:38.384741-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:22:38.449891-08:00","closed_at":"2026-01-11T21:22:38.449891-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-etvcn","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:22:38.384741-08:00","updated_at":"2026-01-11T21:22:38.449891-08:00","closed_at":"2026-01-11T21:22:38.449891-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-etyv","title":"Smart --var detection for mol distill","description":"Implemented bidirectional syntax support for mol distill --var flag.\n\n**Problem:**\n- spawn uses: --var variable=value (assignment style)\n- distill used: --var value=variable (substitution style)\n- Agents would naturally guess spawn-style for both\n\n**Solution:**\nSmart detection that accepts BOTH syntaxes by checking which side appears in the epic text:\n- --var branch=feature-auth → finds 'feature-auth' in text → works\n- --var feature-auth=branch → finds 'feature-auth' in text → also works\n\n**Changes:**\n- Added parseDistillVar() with smart detection\n- Added collectSubgraphText() helper\n- Restructured runMolDistill to load subgraph before parsing vars\n- Updated help text to document both syntaxes\n- Added comprehensive tests in mol_test.go\n\n**Edge cases handled:**\n- Both sides found: prefers spawn-style (more common guess)\n- Neither found: helpful error message\n- Empty sides: validation error\n- Values containing '=' (e.g., KEY=VALUE): works via SplitN\n\nEmbodies the Beads philosophy: watch what agents do, make their guess correct.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T11:08:50.83923-08:00","updated_at":"2025-12-21T11:08:56.432536-08:00","closed_at":"2025-12-21T11:08:56.432536-08:00"} -{"id":"bd-etzsr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T13:45:28.7952-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T13:45:28.946382-08:00","closed_at":"2026-01-10T13:45:28.946382-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-evt7a","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T15:25:47.674485-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T15:25:47.746294-08:00","closed_at":"2026-01-13T15:25:47.746294-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-ewcd","title":"Merge: onyx-mjxcs6um","description":"branch: polecat/onyx-mjxcs6um\ntarget: main\nsource_issue: onyx-mjxcs6um\nrig: beads\nagent_bead: bd-beads-polecat-onyx","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T13:07:05.288722-08:00","created_by":"beads/polecats/onyx","updated_at":"2026-01-02T13:41:56.622999-08:00","closed_at":"2026-01-02T13:41:56.622999-08:00","close_reason":"Branches merged, cleaning up stale MR beads"} -{"id":"bd-ex51t","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T14:28:12.477526-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T14:28:12.51271-08:00","closed_at":"2026-01-10T14:28:12.51271-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-exd2p","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:43:50.525702-08:00","created_by":"beads/witness","updated_at":"2026-01-10T21:43:50.595327-08:00","closed_at":"2026-01-10T21:43:50.595327-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-etzsr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T13:45:28.7952-08:00","updated_at":"2026-01-10T13:45:28.946382-08:00","closed_at":"2026-01-10T13:45:28.946382-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-evt7a","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T15:25:47.674485-08:00","updated_at":"2026-01-13T15:25:47.746294-08:00","closed_at":"2026-01-13T15:25:47.746294-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-ewcd","title":"Merge: onyx-mjxcs6um","description":"branch: polecat/onyx-mjxcs6um\ntarget: main\nsource_issue: onyx-mjxcs6um\nrig: beads\nagent_bead: bd-beads-polecat-onyx","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T13:07:05.288722-08:00","updated_at":"2026-01-02T13:41:56.622999-08:00","closed_at":"2026-01-02T13:41:56.622999-08:00","close_reason":"Branches merged, cleaning up stale MR beads","created_by":"beads/polecats/onyx"} +{"id":"bd-ex51t","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T14:28:12.477526-08:00","updated_at":"2026-01-10T14:28:12.51271-08:00","closed_at":"2026-01-10T14:28:12.51271-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-exd2p","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:43:50.525702-08:00","updated_at":"2026-01-10T21:43:50.595327-08:00","closed_at":"2026-01-10T21:43:50.595327-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} {"id":"bd-expt","title":"RPC fast-fail: stat socket before dial, cap timeouts to 200ms","description":"Eliminate 5s delay when daemon socket is missing by:\n1. Add os.Stat(socketPath) check before dialing in TryConnect\n2. Return (nil, nil) immediately if socket doesn't exist\n3. Set default dial timeout to 200ms in TryConnect\n4. Keep TryConnectWithTimeout for explicit health/status checks (1-2s)\n\nThis prevents clients from waiting through full timeout when no daemon is running.","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-07T16:42:12.688526-08:00","updated_at":"2025-11-07T22:07:17.345918-08:00","closed_at":"2025-11-07T21:04:21.671436-08:00","dependencies":[{"issue_id":"bd-expt","depends_on_id":"bd-ndyz","type":"discovered-from","created_at":"2025-11-07T16:42:12.689284-08:00","created_by":"daemon"}]} -{"id":"bd-exy3","title":"Ephemeral patrol molecules leaking into beads","description":"## Problem\n\nEphemeral patrol orchestration molecules (e.g., mol-deacon-patrol, wisp step issues) keep appearing in `bd ready` output in gastown beads.\n\nThese are ephemeral/wisp issues that should:\n1. Never be synced to the beads-sync branch\n2. Live only in .beads-wisp/ (ephemeral storage)\n3. Be squashed to digests, not persisted as regular beads\n\n## Examples found\n\n- gt-wisp-6ue: mol-deacon-patrol\n- gt-pacdm: mol-deacon-patrol \n- gt-wisp-mpm: Check own context limit\n- gt-wisp-lkc: Clean dead sessions\n\n## Investigation needed\n\n1. Where are these being created? (gt mol bond? manual bd create?)\n2. Why are they using the gt- prefix instead of staying ephemeral?\n3. Is the wisp storage (.beads-wisp/) being used correctly?\n4. Is bd sync accidentally picking up ephemeral issues?\n\n## Expected behavior\n\nPatrol molecules and their steps should be ephemeral and never appear in `bd ready` or `bd list`.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-27T17:04:16.51075-08:00","created_by":"gastown/crew/joe","updated_at":"2025-12-27T19:18:16.809273-08:00","closed_at":"2025-12-27T19:18:16.809273-08:00"} -{"id":"bd-eylk","title":"Full event test","status":"tombstone","priority":2,"issue_type":"event","created_at":"2025-12-30T16:08:32.342126-08:00","created_by":"beads/polecats/obsidian","updated_at":"2025-12-30T16:08:59.772362-08:00","deleted_at":"2025-12-30T16:08:59.772362-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"event"} +{"id":"bd-exy3","title":"Ephemeral patrol molecules leaking into beads","description":"## Problem\n\nEphemeral patrol orchestration molecules (e.g., mol-deacon-patrol, wisp step issues) keep appearing in `bd ready` output in gastown beads.\n\nThese are ephemeral/wisp issues that should:\n1. Never be synced to the beads-sync branch\n2. Live only in .beads-wisp/ (ephemeral storage)\n3. Be squashed to digests, not persisted as regular beads\n\n## Examples found\n\n- gt-wisp-6ue: mol-deacon-patrol\n- gt-pacdm: mol-deacon-patrol \n- gt-wisp-mpm: Check own context limit\n- gt-wisp-lkc: Clean dead sessions\n\n## Investigation needed\n\n1. Where are these being created? (gt mol bond? manual bd create?)\n2. Why are they using the gt- prefix instead of staying ephemeral?\n3. Is the wisp storage (.beads-wisp/) being used correctly?\n4. Is bd sync accidentally picking up ephemeral issues?\n\n## Expected behavior\n\nPatrol molecules and their steps should be ephemeral and never appear in `bd ready` or `bd list`.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-27T17:04:16.51075-08:00","updated_at":"2025-12-27T19:18:16.809273-08:00","closed_at":"2025-12-27T19:18:16.809273-08:00","created_by":"gastown/crew/joe"} +{"id":"bd-eylk","title":"Full event test","status":"tombstone","priority":2,"issue_type":"event","created_at":"2025-12-30T16:08:32.342126-08:00","updated_at":"2025-12-30T16:08:59.772362-08:00","created_by":"beads/polecats/obsidian","deleted_at":"2025-12-30T16:08:59.772362-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"event"} {"id":"bd-eyrh","title":"🤝 HANDOFF: Review remaining beads PRs","description":"## Current State\nJust merged PR #653 (doctor refactor) and added tests to restore coverage.\n\n## Remaining Open PRs to Review\nRun `gh pr list --repo steveyegge/beads` to see current list. As of handoff:\n\n1. #655 - feat: Linear Integration (jblwilliams)\n2. #651 - feat(audit): agent audit trail (dchichkov)\n3. #648 - Stop init creating redundant @AGENTS.md (maphew)\n4. #646 - fix(unix): handle Statfs field types (jordanhubbard)\n5. #645 - feat: /plan-to-beads Claude Code command (petebytes)\n6. #642, #641, #640 - sync branch fixes (cpdata)\n\n## Review Checklist\n- Check CI status with `gh pr checks \u003cnum\u003e --repo steveyegge/beads`\n- Verify no .beads/ data leaking (we have a hook now)\n- Review code quality\n- Merge good ones, request changes on problematic ones\n\n## Notes\n- User wants us to be proactive about merging good PRs\n- Can add tests ourselves if coverage drops","status":"tombstone","priority":2,"issue_type":"message","created_at":"2025-12-19T17:44:34.149837-08:00","updated_at":"2025-12-21T13:53:33.613805-08:00","deleted_at":"2025-12-21T13:53:33.613805-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"message"} -{"id":"bd-eysh","title":"Test refile v2","description":"Testing improved refile","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-31T13:00:22.994648-08:00","created_by":"beads/crew/grip","updated_at":"2025-12-31T13:00:30.637161-08:00","closed_at":"2025-12-31T13:00:30.637161-08:00","close_reason":"Refiled to gt-w66v4"} +{"id":"bd-eysh","title":"Test refile v2","description":"Testing improved refile","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-31T13:00:22.994648-08:00","updated_at":"2025-12-31T13:00:30.637161-08:00","closed_at":"2025-12-31T13:00:30.637161-08:00","close_reason":"Refiled to gt-w66v4","created_by":"beads/crew/grip"} {"id":"bd-eyto","title":"Time-dependent tests may be flaky near TTL boundary","description":"Several tombstone merge tests use time.Now() to create test data: time.Now().Add(-24 * time.Hour), time.Now().Add(-60 * 24 * time.Hour), etc. While these work reliably in practice (24h vs 30d TTL has large margin), they could theoretically be flaky if: 1) Tests run slowly, 2) System clock changes during test, 3) TTL constants change. Recommendation: Consider using a fixed reference time or time injection for deterministic tests. Lower priority since current margin is large. Files: internal/merge/merge_test.go:1337-1338, 1352-1353, 1548-1549, 1590-1591","status":"hooked","priority":3,"issue_type":"task","created_at":"2025-12-05T16:37:02.348143-08:00","updated_at":"2025-12-30T15:44:43.36321-08:00"} -{"id":"bd-ezpaw","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:38:43.191922-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:38:43.258402-08:00","closed_at":"2026-01-11T21:38:43.258402-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ezpaw","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:38:43.191922-08:00","updated_at":"2026-01-11T21:38:43.258402-08:00","closed_at":"2026-01-11T21:38:43.258402-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-f0d9bcf2","title":"Batch test 1","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T15:29:01.795728-07:00","updated_at":"2025-10-31T12:00:43.184078-07:00","closed_at":"2025-10-31T12:00:43.184078-07:00"} {"id":"bd-f0n","title":"Git history fallback missing timeout - could hang on large repos","description":"## Problem\n\nThe git commands in `checkGitHistoryForDeletions` have no timeout. On large repos with extensive history, `git log --all -S` or `git log --all -G` can take a very long time (minutes).\n\n## Location\n`internal/importer/importer.go:899` and `:930`\n\n## Impact\n- Import could hang indefinitely\n- User has no feedback that git search is running\n- No way to cancel except killing the process\n\n## Fix\nAdd context with timeout to git commands:\n\n```go\nctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)\ndefer cancel()\ncmd := exec.CommandContext(ctx, \"git\", ...)\n```\n\nAlso consider adding a `--since` flag to bound the git history search.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-25T12:48:24.388639-08:00","updated_at":"2025-11-25T15:04:53.669714-08:00","closed_at":"2025-11-25T15:04:53.669714-08:00"} -{"id":"bd-f0pj4","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:36:14.758388-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T23:36:14.823993-08:00","closed_at":"2026-01-12T23:36:14.823993-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-f0wm","title":"Swarm status doesn't update after task completions","description":"During swarm bd-784c, the swarm status remained at '9% (1/11 tasks merged)' even after 5 tasks were completed and closed.\n\n**Observed:**\n```\ngt swarm status bd-784c\nProgress: 9% (1/11 tasks merged)\n```\n\nBut bd list showed 4+ issues closed:\n- bd-j3dj, bd-kkka, bd-1tkd, bd-9btu all closed\n\n**Expected:**\nSwarm status should reflect actual completion count, either by:\n1. Polling issue status from beads\n2. Updating when polecats close issues\n3. Updating when commits are pushed to integration branch\n\n**Impact:**\nCoordinator (me) had to manually check bd list to know actual progress.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-28T16:17:49.27816-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T22:14:20.098792-08:00","closed_at":"2025-12-28T22:14:20.098792-08:00"} -{"id":"bd-f1xm","title":"Merge: garnet-mk0ckipo","description":"branch: polecat/garnet-mk0ckipo\ntarget: main\nsource_issue: garnet-mk0ckipo\nrig: beads\nagent_bead: bd-beads-polecat-garnet\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-04T15:17:19.231575-08:00","created_by":"beads/polecats/garnet","updated_at":"2026-01-05T19:45:43.983711-08:00","closed_at":"2026-01-05T19:45:43.983711-08:00","close_reason":"Branch deleted, already merged"} +{"id":"bd-f0pj4","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T23:36:14.758388-08:00","updated_at":"2026-01-12T23:36:14.823993-08:00","closed_at":"2026-01-12T23:36:14.823993-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-f0wm","title":"Swarm status doesn't update after task completions","description":"During swarm bd-784c, the swarm status remained at '9% (1/11 tasks merged)' even after 5 tasks were completed and closed.\n\n**Observed:**\n```\ngt swarm status bd-784c\nProgress: 9% (1/11 tasks merged)\n```\n\nBut bd list showed 4+ issues closed:\n- bd-j3dj, bd-kkka, bd-1tkd, bd-9btu all closed\n\n**Expected:**\nSwarm status should reflect actual completion count, either by:\n1. Polling issue status from beads\n2. Updating when polecats close issues\n3. Updating when commits are pushed to integration branch\n\n**Impact:**\nCoordinator (me) had to manually check bd list to know actual progress.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-28T16:17:49.27816-08:00","updated_at":"2025-12-28T22:14:20.098792-08:00","closed_at":"2025-12-28T22:14:20.098792-08:00","created_by":"beads/crew/dave"} +{"id":"bd-f1xm","title":"Merge: garnet-mk0ckipo","description":"branch: polecat/garnet-mk0ckipo\ntarget: main\nsource_issue: garnet-mk0ckipo\nrig: beads\nagent_bead: bd-beads-polecat-garnet\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-04T15:17:19.231575-08:00","updated_at":"2026-01-05T19:45:43.983711-08:00","closed_at":"2026-01-05T19:45:43.983711-08:00","close_reason":"Branch deleted, already merged","created_by":"beads/polecats/garnet"} {"id":"bd-f282","title":"Test npm package installation locally","description":"Verify npm package works before publishing:\n\n## Local testing\n- Run npm pack in npm/ directory\n- Install tarball globally: npm install -g beads-bd-0.21.5.tgz\n- Test basic commands:\n - bd --version\n - bd init --quiet --prefix test\n - bd create \"Test issue\" -p 1 --json\n - bd list --json\n - bd sync\n\n## Test environments\n- macOS (darwin-arm64 and darwin-amd64)\n- Linux (ubuntu docker container for linux-amd64)\n- Windows (optional, if available)\n\n## Validation\n- Binary downloads during postinstall\n- All bd commands work identically to native\n- No permission issues\n- Proper error messages on failure","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-02T23:40:05.71835-08:00","updated_at":"2025-11-03T10:31:45.382577-08:00","closed_at":"2025-11-03T10:31:45.382577-08:00","dependencies":[{"issue_id":"bd-f282","depends_on_id":"bd-febc","type":"parent-child","created_at":"2025-11-02T23:40:32.968748-08:00","created_by":"daemon"}]} {"id":"bd-f2lb","title":"Update CHANGELOG.md with release notes","description":"Add meaningful release notes to CHANGELOG.md describing what changed in test-squash","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T13:52:33.066065-08:00","updated_at":"2025-12-21T13:53:49.858742-08:00","deleted_at":"2025-12-21T13:53:49.858742-08:00","deleted_by":"stevey","delete_reason":"manual delete","original_type":"task"} -{"id":"bd-f2yq","title":"Merge: onyx-mjxjhqu4","description":"branch: polecat/onyx-mjxjhqu4\ntarget: main\nsource_issue: onyx-mjxjhqu4\nrig: beads\nagent_bead: bd-beads-polecat-onyx","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T16:13:16.170964-08:00","created_by":"beads/polecats/onyx","updated_at":"2026-01-02T17:14:48.355985-08:00","closed_at":"2026-01-02T17:14:48.355985-08:00","close_reason":"Orphaned MR - onyx stopped (dropped no-op), branch never pushed"} -{"id":"bd-f302v","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:41:28.181989-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:41:28.24842-08:00","closed_at":"2026-01-11T22:41:28.24842-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-f3j75","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:24:44.259503-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:24:44.325027-08:00","closed_at":"2026-01-11T22:24:44.325027-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-f2yq","title":"Merge: onyx-mjxjhqu4","description":"branch: polecat/onyx-mjxjhqu4\ntarget: main\nsource_issue: onyx-mjxjhqu4\nrig: beads\nagent_bead: bd-beads-polecat-onyx","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T16:13:16.170964-08:00","updated_at":"2026-01-02T17:14:48.355985-08:00","closed_at":"2026-01-02T17:14:48.355985-08:00","close_reason":"Orphaned MR - onyx stopped (dropped no-op), branch never pushed","created_by":"beads/polecats/onyx"} +{"id":"bd-f302v","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:41:28.181989-08:00","updated_at":"2026-01-11T22:41:28.24842-08:00","closed_at":"2026-01-11T22:41:28.24842-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-f3j75","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:24:44.259503-08:00","updated_at":"2026-01-11T22:24:44.325027-08:00","closed_at":"2026-01-11T22:24:44.325027-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-f3ll","title":"Merge: bd-ot0w","description":"branch: polecat/dementus\ntarget: main\nsource_issue: bd-ot0w\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-19T23:20:33.495772-08:00","updated_at":"2025-12-20T23:17:27.000252-08:00","closed_at":"2025-12-20T23:17:27.000252-08:00"} {"id":"bd-f3luc","title":"Digest: mol-refinery-patrol","description":"Patrol: queue empty, no work to process","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T17:23:17.423701-08:00","updated_at":"2026-01-12T17:23:17.423701-08:00","closed_at":"2026-01-12T17:23:17.423652-08:00","close_reason":"Squashed from 11 wisps"} -{"id":"bd-f3ojo","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T01:03:55.552347-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T01:03:55.61886-08:00","closed_at":"2026-01-13T01:03:55.61886-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-f526","title":"Deacon Patrol","description":"Mayor's daemon patrol loop for handling callbacks, health checks, and cleanup.","status":"closed","priority":2,"issue_type":"molecule","created_at":"2025-12-27T18:14:20.809207-08:00","created_by":"deacon","updated_at":"2026-01-09T21:15:43.013905-08:00","closed_at":"2026-01-09T21:15:43.013905-08:00","close_reason":"Orphaned patrol molecules"} +{"id":"bd-f3ojo","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T01:03:55.552347-08:00","updated_at":"2026-01-13T01:03:55.61886-08:00","closed_at":"2026-01-13T01:03:55.61886-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-f526","title":"Deacon Patrol","description":"Mayor's daemon patrol loop for handling callbacks, health checks, and cleanup.","status":"closed","priority":2,"issue_type":"molecule","created_at":"2025-12-27T18:14:20.809207-08:00","updated_at":"2026-01-09T21:15:43.013905-08:00","closed_at":"2026-01-09T21:15:43.013905-08:00","close_reason":"Orphaned patrol molecules","created_by":"deacon"} {"id":"bd-f5cc","title":"Thread Test","description":"Testing the thread feature","status":"tombstone","priority":2,"issue_type":"message","created_at":"2025-12-16T18:21:01.244501-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","dependencies":[{"issue_id":"bd-f5cc","depends_on_id":"bd-x36g","type":"supersedes","created_at":"2025-12-18T13:45:31.137191-08:00","created_by":"migration"}],"deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"message"} {"id":"bd-f616","title":"Digest: Version Bump: test-squash","description":"## Molecule Execution Summary\n\n**Molecule**: Version Bump: test-squash\n**Steps**: 8\n\n**Completed**: 0/8\n\n---\n\n### Steps\n\n1. **[open]** Verify release artifacts\n Check GitHub releases page - binaries for darwin/linux/windows should be available\n\n2. **[open]** Commit and push release\n git add -A \u0026\u0026 git commit \u0026\u0026 git push to trigger CI\n\n3. **[open]** Update CHANGELOG.md with release notes\n Add meaningful release notes to CHANGELOG.md describing what changed in test-squash\n\n4. **[open]** Wait for CI to pass\n Monitor GitHub Actions - all checks must pass before release artifacts are built\n\n5. **[open]** Restart running daemons\n Kill and restart any running bd daemons to pick up new version: pkill -f 'bd daemon' \u0026\u0026 bd daemon --start\n\n6. **[open]** Update local installation\n Run install script or brew upgrade to get new version locally: curl -fsSL .../install.sh | bash\n\n7. **[open]** Run bump-version.sh test-squash\n Run ./scripts/bump-version.sh test-squash to update version in all files\n\n8. **[open]** Update info.go versionChanges\n Add entry to versionChanges in cmd/bd/info.go with agent-actionable changes for test-squash\n\n","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T13:53:18.471919-08:00","updated_at":"2025-12-21T13:53:35.256043-08:00","deleted_at":"2025-12-21T13:53:35.256043-08:00","deleted_by":"stevey","delete_reason":"manual delete","original_type":"task"} {"id":"bd-f7p1","title":"Add tests for mol spawn --attach","description":"Code review (bd-obep) found no tests for the spawn --attach functionality.\n\n**Test cases needed:**\n1. Basic attach - spawn proto with one --attach\n2. Multiple attachments - spawn with --attach A --attach B\n3. Attach types - verify sequential vs parallel bonding\n4. Error case: attaching non-proto (missing template label)\n5. Variable aggregation - vars from primary + attachments combined\n6. Dry-run output includes attachment info\n\n**Implementation notes:**\n- Tests should use in-memory storage\n- Create test protos, spawn with attachments, verify dependency structure\n- Check that sequential uses 'blocks' type, parallel uses 'parent-child'","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T10:58:16.766461-08:00","updated_at":"2025-12-21T21:33:12.136215-08:00","closed_at":"2025-12-21T21:33:12.136215-08:00","dependencies":[{"issue_id":"bd-f7p1","depends_on_id":"bd-obep","type":"discovered-from","created_at":"2025-12-21T10:58:16.767616-08:00","created_by":"daemon"}]} {"id":"bd-f8b764c9","title":"Hash-based IDs with aliasing system","description":"Replace sequential auto-increment IDs (bd-1c63eb84, bd-9063acda) with content-hash based IDs (bd-af78e9a2) plus human-friendly aliases (#1, #2).\n\n## Motivation\nCurrent sequential IDs cause collision problems when multiple clones work offline:\n- Non-deterministic convergence in N-way scenarios (bd-cbed9619.1, bd-e6d71828)\n- Complex collision resolution logic (~2,100 LOC)\n- UNIQUE constraint violations during import\n- Requires coordination between workers\n\nHash-based IDs eliminate collisions entirely while aliases preserve human readability.\n\n## Benefits\n- ✅ Collision-free distributed ID generation\n- ✅ Eliminates ~2,100 LOC of collision handling code\n- ✅ Better git merge behavior (different IDs = different JSONL lines)\n- ✅ True offline-first workflows\n- ✅ Simpler auto-import (no remapping needed)\n- ✅ Enables parallel CI/CD workers without coordination\n\n## Design\n- Canonical ID: bd-af78e9a2 (8-char SHA256 prefix of title+desc+timestamp+creator)\n- Alias: #42 (auto-increment per workspace, mutable, display-only)\n- CLI accepts both: bd show bd-af78e9a2 OR bd show #42\n- JSONL stores hash IDs only (aliases reconstructed on import)\n- Alias conflicts resolved via content-hash ordering (deterministic)\n\n## Breaking Change\nThis is a v2.0 feature requiring migration. Provide bd migrate --hash-ids tool.\n\n## Timeline\n~9 weeks (Phase 1: Hash IDs 4w, Phase 2: Aliases 3w, Phase 3: Testing 2w)\n\n## Dependencies\nShould complete after bd-7c5915ae (cleanup validation) and before bd-710a4916 (CRDT).","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-10-29T21:23:49.592315-07:00","updated_at":"2025-10-31T12:32:32.6038-07:00","closed_at":"2025-10-31T12:32:32.6038-07:00"} -{"id":"bd-f8b764c9.1","title":"Dogfood: Migrate beads repo to hash IDs","description":"Final validation: migrate the beads project itself to hash-based IDs.\n\n## Purpose\nDogfooding the migration on beads' own issue database to:\n1. Validate migration tool works on real data\n2. Discover edge cases\n3. Verify all workflows still work\n4. Build confidence for users\n\n## Pre-Migration Checklist\n- [ ] All bd-f8b764c9 child tasks completed\n- [ ] All tests pass: `go test ./...`\n- [ ] Migration tool tested on test databases\n- [ ] Documentation updated\n- [ ] MCP server updated and published\n- [ ] Clean git status\n\n## Migration Steps\n\n### 1. Create Backup\n```bash\n# Backup database\ncp -r .beads .beads.backup-1761798568\n\n# Backup JSONL\ncp .beads/beads.jsonl .beads/beads.jsonl.backup\n\n# Create git branch for migration\ngit checkout -b hash-id-migration\ngit add .beads.backup-*\ngit commit -m \"Pre-migration backup\"\n```\n\n### 2. Run Migration (Dry Run)\n```bash\nbd migrate --hash-ids --dry-run \u003e migration-plan.txt\ncat migration-plan.txt\n\n# Review:\n# - Number of issues to migrate\n# - Hash collision check (should be zero)\n# - Text reference updates\n# - Dependency updates\n```\n\n### 3. Run Migration (Real)\n```bash\nbd migrate --hash-ids 2\u003e\u00261 | tee migration-log.txt\n\n# Expected output:\n# ✓ Backup created: .beads/beads.db.backup-1234567890\n# ✓ Generated 150 hash IDs\n# ✓ No hash collisions detected\n# ✓ Updated issues table schema\n# ✓ Updated 150 issue IDs\n# ✓ Updated 87 dependencies\n# ✓ Updated 234 text references\n# ✓ Exported to .beads/beads.jsonl\n# ✓ Migration complete!\n```\n\n### 4. Validation\n\n#### Database Integrity\n```bash\n# Check all issues have hash IDs\nbd list | grep -v \"bd-[a-f0-9]\\{8\\}\" \u0026\u0026 echo \"FAIL: Non-hash IDs found\"\n\n# Check all issues have aliases\nsqlite3 .beads/beads.db \"SELECT COUNT(*) FROM issues WHERE alias IS NULL\"\n# Should be 0\n\n# Check no alias duplicates\nsqlite3 .beads/beads.db \"SELECT alias, COUNT(*) FROM issues GROUP BY alias HAVING COUNT(*) \u003e 1\"\n# Should be empty\n```\n\n#### Functionality Tests\n```bash\n# Test show by hash ID\nbd show bd-\n\n# Test show by alias\nbd show #1\n\n# Test create new issue\nbd create \"Test issue after migration\" -p 2\n# Should get hash ID + alias\n\n# Test update\nbd update #1 --priority 1\n\n# Test dependencies\nbd dep tree #1\n\n# Test export\nbd export\ngit diff .beads/beads.jsonl\n# Should show hash IDs\n```\n\n#### Text Reference Validation\n```bash\n# Check that old IDs were updated in descriptions\ngrep -r \"bd-[0-9]\\{1,3\\}[^a-f0-9]\" .beads/beads.jsonl \u0026\u0026 echo \"FAIL: Old ID format found\"\n\n# Verify hash ID references exist\ngrep -o \"bd-[a-f0-9]\\{8\\}\" .beads/beads.jsonl | sort -u | wc -l\n# Should match number of hash IDs\n```\n\n### 5. Commit Migration\n```bash\ngit add .beads/beads.jsonl .beads/beads.db\ngit commit -m \"Migrate to hash-based IDs (v2.0)\n\n- Migrated 150 issues to hash IDs\n- Preserved aliases (#1-#150)\n- Updated 87 dependencies\n- Updated 234 text references\n- Zero hash collisions\n\nMigration log: migration-log.txt\"\n\ngit push origin hash-id-migration\n```\n\n### 6. Create PR\n```bash\ngh pr create --title \"Migrate to hash-based IDs (v2.0)\" --body \"## Summary\nMigrates beads project to hash-based IDs as part of v2.0 release.\n\n## Migration Stats\n- Issues migrated: 150\n- Dependencies updated: 87\n- Text references updated: 234\n- Hash collisions: 0\n- Aliases assigned: 150\n\n## Validation\n- ✅ All tests pass\n- ✅ Database integrity verified\n- ✅ All workflows tested (show, update, create, deps)\n- ✅ Text references updated correctly\n- ✅ Export produces valid JSONL\n\n## Files Changed\n- `.beads/beads.jsonl` - Hash IDs in all entries\n- `.beads/beads.db` - Schema updated with aliases\n\n## Rollback\nIf issues arise:\n\\`\\`\\`bash\nmv .beads.backup-1234567890 .beads\nbd export\n\\`\\`\\`\n\nSee migration-log.txt for full details.\"\n```\n\n### 7. Merge and Cleanup\n```bash\n# After PR approval\ngit checkout main\ngit merge hash-id-migration\ngit push origin main\n\n# Tag release\ngit tag v2.0.0\ngit push origin v2.0.0\n\n# Cleanup\nrm migration-log.txt migration-plan.txt\ngit checkout .beads.backup-* # Keep in git history\n```\n\n## Rollback Procedure\nIf migration fails or has issues:\n\n```bash\n# Restore backup\nmv .beads .beads.failed-migration\nmv .beads.backup-1234567890 .beads\n\n# Regenerate JSONL\nbd export\n\n# Verify restoration\nbd list\ngit diff .beads/beads.jsonl\n\n# Cleanup\ngit checkout hash-id-migration\ngit reset --hard main\n```\n\n## Post-Migration Communication\n\n### GitHub Issue/Discussion\n```markdown\n## Beads v2.0 Released: Hash-Based IDs\n\nWe've migrated beads to hash-based IDs! 🎉\n\n**What changed:**\n- Issues now use hash IDs (bd-af78e9a2) instead of sequential (bd-cb64c226.3)\n- Human-friendly aliases (#42) for easy reference\n- Zero collision risk in distributed workflows\n\n**Action required:**\nIf you have a local clone, you need to migrate:\n\n\\`\\`\\`bash\ngit pull origin main\nbd migrate --hash-ids\ngit push origin main\n\\`\\`\\`\n\nSee MIGRATION.md for details.\n\n**Benefits:**\n- ✅ No more ID collisions\n- ✅ Work offline without coordination\n- ✅ Simpler codebase (-2,100 LOC)\n\nQuestions? Reply here or see docs/HASH_IDS.md\n```\n\n## Success Criteria\n- [ ] Migration completes without errors\n- [ ] All validation checks pass\n- [ ] PR merged to main\n- [ ] v2.0.0 tagged and released\n- [ ] Documentation updated\n- [ ] Community notified\n- [ ] No rollback needed within 1 week\n\n## Files to Create\n- migration-log.txt (transient)\n- migration-plan.txt (transient)\n\n## Timeline\nExecute after all other bd-f8b764c9 tasks complete (estimated: ~8 weeks from start)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:29:28.591526-07:00","updated_at":"2025-10-31T12:32:32.607092-07:00","closed_at":"2025-10-31T12:32:32.607092-07:00","dependencies":[{"issue_id":"bd-f8b764c9.1","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:29:28.59248-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.1","depends_on_id":"bd-f8b764c9.4","type":"blocks","created_at":"2025-10-29T21:29:28.593033-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.1","depends_on_id":"bd-f8b764c9.3","type":"blocks","created_at":"2025-10-29T21:29:28.593437-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.1","depends_on_id":"bd-f8b764c9.12","type":"blocks","created_at":"2025-10-29T21:29:28.593876-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.1","depends_on_id":"bd-f8b764c9.2","type":"blocks","created_at":"2025-10-29T21:29:28.594521-07:00","created_by":"stevey"}]} +{"id":"bd-f8b764c9.1","title":"Dogfood: Migrate beads repo to hash IDs","description":"Final validation: migrate the beads project itself to hash-based IDs.\n\n## Purpose\nDogfooding the migration on beads' own issue database to:\n1. Validate migration tool works on real data\n2. Discover edge cases\n3. Verify all workflows still work\n4. Build confidence for users\n\n## Pre-Migration Checklist\n- [ ] All bd-f8b764c9 child tasks completed\n- [ ] All tests pass: `go test ./...`\n- [ ] Migration tool tested on test databases\n- [ ] Documentation updated\n- [ ] MCP server updated and published\n- [ ] Clean git status\n\n## Migration Steps\n\n### 1. Create Backup\n```bash\n# Backup database\ncp -r .beads .beads.backup-1761798568\n\n# Backup JSONL\ncp .beads/beads.jsonl .beads/beads.jsonl.backup\n\n# Create git branch for migration\ngit checkout -b hash-id-migration\ngit add .beads.backup-*\ngit commit -m \"Pre-migration backup\"\n```\n\n### 2. Run Migration (Dry Run)\n```bash\nbd migrate --hash-ids --dry-run \u003e migration-plan.txt\ncat migration-plan.txt\n\n# Review:\n# - Number of issues to migrate\n# - Hash collision check (should be zero)\n# - Text reference updates\n# - Dependency updates\n```\n\n### 3. Run Migration (Real)\n```bash\nbd migrate --hash-ids 2\u003e\u00261 | tee migration-log.txt\n\n# Expected output:\n# ✓ Backup created: .beads/beads.db.backup-1234567890\n# ✓ Generated 150 hash IDs\n# ✓ No hash collisions detected\n# ✓ Updated issues table schema\n# ✓ Updated 150 issue IDs\n# ✓ Updated 87 dependencies\n# ✓ Updated 234 text references\n# ✓ Exported to .beads/beads.jsonl\n# ✓ Migration complete!\n```\n\n### 4. Validation\n\n#### Database Integrity\n```bash\n# Check all issues have hash IDs\nbd list | grep -v \"bd-[a-f0-9]\\{8\\}\" \u0026\u0026 echo \"FAIL: Non-hash IDs found\"\n\n# Check all issues have aliases\nsqlite3 .beads/beads.db \"SELECT COUNT(*) FROM issues WHERE alias IS NULL\"\n# Should be 0\n\n# Check no alias duplicates\nsqlite3 .beads/beads.db \"SELECT alias, COUNT(*) FROM issues GROUP BY alias HAVING COUNT(*) \u003e 1\"\n# Should be empty\n```\n\n#### Functionality Tests\n```bash\n# Test show by hash ID\nbd show bd-\n\n# Test show by alias\nbd show #1\n\n# Test create new issue\nbd create \"Test issue after migration\" -p 2\n# Should get hash ID + alias\n\n# Test update\nbd update #1 --priority 1\n\n# Test dependencies\nbd dep tree #1\n\n# Test export\nbd export\ngit diff .beads/beads.jsonl\n# Should show hash IDs\n```\n\n#### Text Reference Validation\n```bash\n# Check that old IDs were updated in descriptions\ngrep -r \"bd-[0-9]\\{1,3\\}[^a-f0-9]\" .beads/beads.jsonl \u0026\u0026 echo \"FAIL: Old ID format found\"\n\n# Verify hash ID references exist\ngrep -o \"bd-[a-f0-9]\\{8\\}\" .beads/beads.jsonl | sort -u | wc -l\n# Should match number of hash IDs\n```\n\n### 5. Commit Migration\n```bash\ngit add .beads/beads.jsonl .beads/beads.db\ngit commit -m \"Migrate to hash-based IDs (v2.0)\n\n- Migrated 150 issues to hash IDs\n- Preserved aliases (#1-#150)\n- Updated 87 dependencies\n- Updated 234 text references\n- Zero hash collisions\n\nMigration log: migration-log.txt\"\n\ngit push origin hash-id-migration\n```\n\n### 6. Create PR\n```bash\ngh pr create --title \"Migrate to hash-based IDs (v2.0)\" --body \"## Summary\nMigrates beads project to hash-based IDs as part of v2.0 release.\n\n## Migration Stats\n- Issues migrated: 150\n- Dependencies updated: 87\n- Text references updated: 234\n- Hash collisions: 0\n- Aliases assigned: 150\n\n## Validation\n- ✅ All tests pass\n- ✅ Database integrity verified\n- ✅ All workflows tested (show, update, create, deps)\n- ✅ Text references updated correctly\n- ✅ Export produces valid JSONL\n\n## Files Changed\n- `.beads/beads.jsonl` - Hash IDs in all entries\n- `.beads/beads.db` - Schema updated with aliases\n\n## Rollback\nIf issues arise:\n\\`\\`\\`bash\nmv .beads.backup-1234567890 .beads\nbd export\n\\`\\`\\`\n\nSee migration-log.txt for full details.\"\n```\n\n### 7. Merge and Cleanup\n```bash\n# After PR approval\ngit checkout main\ngit merge hash-id-migration\ngit push origin main\n\n# Tag release\ngit tag v2.0.0\ngit push origin v2.0.0\n\n# Cleanup\nrm migration-log.txt migration-plan.txt\ngit checkout .beads.backup-* # Keep in git history\n```\n\n## Rollback Procedure\nIf migration fails or has issues:\n\n```bash\n# Restore backup\nmv .beads .beads.failed-migration\nmv .beads.backup-1234567890 .beads\n\n# Regenerate JSONL\nbd export\n\n# Verify restoration\nbd list\ngit diff .beads/beads.jsonl\n\n# Cleanup\ngit checkout hash-id-migration\ngit reset --hard main\n```\n\n## Post-Migration Communication\n\n### GitHub Issue/Discussion\n```markdown\n## Beads v2.0 Released: Hash-Based IDs\n\nWe've migrated beads to hash-based IDs! 🎉\n\n**What changed:**\n- Issues now use hash IDs (bd-af78e9a2) instead of sequential (bd-cb64c226.3)\n- Human-friendly aliases (#42) for easy reference\n- Zero collision risk in distributed workflows\n\n**Action required:**\nIf you have a local clone, you need to migrate:\n\n\\`\\`\\`bash\ngit pull origin main\nbd migrate --hash-ids\ngit push origin main\n\\`\\`\\`\n\nSee MIGRATION.md for details.\n\n**Benefits:**\n- ✅ No more ID collisions\n- ✅ Work offline without coordination\n- ✅ Simpler codebase (-2,100 LOC)\n\nQuestions? Reply here or see docs/HASH_IDS.md\n```\n\n## Success Criteria\n- [ ] Migration completes without errors\n- [ ] All validation checks pass\n- [ ] PR merged to main\n- [ ] v2.0.0 tagged and released\n- [ ] Documentation updated\n- [ ] Community notified\n- [ ] No rollback needed within 1 week\n\n## Files to Create\n- migration-log.txt (transient)\n- migration-plan.txt (transient)\n\n## Timeline\nExecute after all other bd-f8b764c9 tasks complete (estimated: ~8 weeks from start)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:29:28.591526-07:00","updated_at":"2025-10-31T12:32:32.607092-07:00","closed_at":"2025-10-31T12:32:32.607092-07:00","dependencies":[{"issue_id":"bd-f8b764c9.1","depends_on_id":"bd-f8b764c9.12","type":"blocks","created_at":"2025-10-29T21:29:28.593876-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.1","depends_on_id":"bd-f8b764c9.2","type":"blocks","created_at":"2025-10-29T21:29:28.594521-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.1","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:29:28.59248-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.1","depends_on_id":"bd-f8b764c9.4","type":"blocks","created_at":"2025-10-29T21:29:28.593033-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.1","depends_on_id":"bd-f8b764c9.3","type":"blocks","created_at":"2025-10-29T21:29:28.593437-07:00","created_by":"stevey"}]} {"id":"bd-f8b764c9.10","title":"Add alias field to database schema","description":"Extend database schema to support human-friendly aliases alongside hash IDs.\n\n## Database Changes\n\n### 1. Add alias column to issues table\n```sql\nALTER TABLE issues ADD COLUMN alias INTEGER UNIQUE;\nCREATE INDEX idx_issues_alias ON issues(alias);\n```\n\n### 2. Add alias counter table\n```sql\nCREATE TABLE alias_counter (\n id INTEGER PRIMARY KEY CHECK (id = 1),\n next_alias INTEGER NOT NULL DEFAULT 1\n);\nINSERT INTO alias_counter (id, next_alias) VALUES (1, 1);\n```\n\n### 3. Add alias conflict tracking (for multi-clone scenarios)\n```sql\nCREATE TABLE alias_history (\n issue_id TEXT NOT NULL,\n alias INTEGER NOT NULL,\n assigned_at TIMESTAMP NOT NULL,\n workspace_id TEXT NOT NULL,\n PRIMARY KEY (issue_id, alias)\n);\n```\n\n## API Changes\n\n### CreateIssue\n- Generate hash ID\n- Assign next available alias\n- Store both in database\n\n### ResolveAliasConflicts (new function)\n- Detect conflicting alias assignments after import\n- Apply resolution strategy (content-hash ordering)\n- Reassign losers to next available aliases\n\n## Migration Path\n```bash\nbd migrate --add-aliases # Adds columns, assigns aliases to existing issues\n```\n\n## Files to Modify\n- internal/storage/sqlite/schema.go\n- internal/storage/sqlite/sqlite.go (CreateIssue, GetIssue)\n- internal/storage/sqlite/aliases.go (new file for alias logic)\n- internal/storage/sqlite/migrations.go\n\n## Testing\n- Test alias auto-assignment on create\n- Test alias uniqueness constraint\n- Test alias lookup performance\n- Test alias conflict resolution","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:24:13.968241-07:00","updated_at":"2025-10-31T12:32:32.610663-07:00","closed_at":"2025-10-31T12:32:32.610663-07:00","dependencies":[{"issue_id":"bd-f8b764c9.10","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:24:13.96959-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.10","depends_on_id":"bd-f8b764c9.11","type":"blocks","created_at":"2025-10-29T21:29:45.952824-07:00","created_by":"stevey"}]} {"id":"bd-f8b764c9.11","title":"Design hash ID generation algorithm","description":"Design and specify the hash-based ID generation algorithm.\n\n## Requirements\n- Deterministic: same inputs → same ID\n- Collision-resistant: ~2^32 space for 8-char hex\n- Fast: \u003c1μs per generation\n- Includes timestamp for uniqueness\n- Includes creator/workspace for distributed uniqueness\n\n## Proposed Algorithm\n```go\nfunc GenerateIssueID(title, desc string, created time.Time, workspaceID string) string {\n h := sha256.New()\n h.Write([]byte(title))\n h.Write([]byte(desc))\n h.Write([]byte(created.Format(time.RFC3339Nano)))\n h.Write([]byte(workspaceID))\n hash := hex.EncodeToString(h.Sum(nil))\n return \"bd-\" + hash[:8] // 8-char prefix = 2^32 space\n}\n```\n\n## Open Questions\n1. 8 chars (2^32) or 16 chars (2^64) for collision resistance?\n2. Include priority/type in hash? (Pro: more entropy. Con: immutable)\n3. How to handle workspace ID generation? (hostname? UUID?)\n4. What if title+desc change? (Answer: ID stays same - hash only used at creation)\n\n## Deliverables\n- Design doc: docs/HASH_ID_DESIGN.md\n- Collision probability analysis\n- Performance benchmarks\n- Prototype implementation in internal/types/id_generator.go","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:24:01.843634-07:00","updated_at":"2025-10-31T12:32:32.610902-07:00","closed_at":"2025-10-31T12:32:32.610902-07:00","dependencies":[{"issue_id":"bd-f8b764c9.11","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:24:01.844994-07:00","created_by":"stevey"}]} {"id":"bd-f8b764c9.12","title":"Update documentation for hash IDs and aliases","description":"Update all documentation to explain hash-based IDs and aliasing system.\n\n## Files to Update\n\n### 1. README.md\nAdd section explaining hash IDs:\n```markdown\n## Issue IDs\n\nBeads uses **hash-based IDs** for collision-free distributed issue tracking:\n\n- **Hash ID**: `bd-af78e9a2` (8-char SHA256 prefix, immutable, globally unique)\n- **Alias**: `#42` (sequential number, mutable, human-friendly)\n\n### Using IDs\n```bash\nbd show bd-af78e9a2 # Use hash ID\nbd show #42 # Use alias\nbd show 42 # Use alias (shorthand)\n```\n\n### Why Hash IDs?\n- **Collision-free**: Work offline without ID conflicts\n- **Distributed**: No coordination needed between clones\n- **Git-friendly**: Different IDs = different JSONL lines, fewer merge conflicts\n\n### Aliases\nAliases are workspace-local shortcuts for hash IDs. They're:\n- Automatically assigned on issue creation\n- Reassigned deterministically on sync (if conflicts)\n- Can be manually controlled with `bd alias` commands\n```\n\n### 2. AGENTS.md\nUpdate agent workflow:\n```markdown\n## Hash-Based IDs (v2.0+)\n\nBeads v2.0 uses hash-based IDs to eliminate collision problems:\n\n**When creating issues**:\n```bash\nbd create \"Fix bug\" -p 1\n# → Creates bd-af78e9a2 with alias #1\n```\n\n**When referencing issues**:\n- In text: Use hash IDs (stable): \"See bd-af78e9a2 for details\"\n- In CLI: Use aliases (readable): `bd update #42 --status done`\n\n**After sync**:\n- Alias conflicts resolved automatically (content-hash ordering)\n- No ID collisions possible\n- No remapping needed\n\n**Migration from v1.x**:\n```bash\nbd migrate --hash-ids # One-time migration\n```\n```\n\n### 3. QUICKSTART.md (if exists)\nShow alias usage in examples:\n```bash\n# Create issue (gets hash ID + alias)\nbd create \"Fix authentication bug\" -p 1\n# → Created bd-af78e9a2 (alias: #1)\n\n# Reference by alias\nbd show #1\nbd update #1 --status in_progress\nbd close #1 --reason \"Fixed\"\n```\n\n### 4. ADVANCED.md\nAdd section on hash ID internals:\n```markdown\n## Hash ID Generation\n\nHash IDs are generated deterministically:\n\n```go\nSHA256(title || description || timestamp || workspace_id)[:8]\n```\n\n**Collision probability**:\n- 8 hex chars = 2^32 space = ~4 billion IDs\n- Birthday paradox: 50% collision probability at ~65,000 issues\n- For typical projects (\u003c10,000 issues), collision risk is negligible\n\n**Collision detection**:\nIf a hash collision occurs (extremely rare), beads:\n1. Detects on insert (UNIQUE constraint)\n2. Appends random suffix: `bd-af78e9a2-a1b2`\n3. Retries insert\n\n## Alias Conflict Resolution\n\nWhen multiple clones assign same alias to different issues:\n\n**Strategy**: Content-hash ordering (deterministic)\n- Sort conflicting issue IDs lexicographically\n- Lowest hash ID keeps the alias\n- Others reassigned to next available aliases\n\n**Example**:\n```\nClone A: Assigns #42 to bd-a1b2c3d4\nClone B: Assigns #42 to bd-e5f6a7b8\nAfter sync: bd-a1b2c3d4 keeps #42 (lower hash)\n bd-e5f6a7b8 gets #100 (next available)\n```\n```\n\n### 5. MIGRATION.md (new file)\n```markdown\n# Migrating to Hash-Based IDs (v2.0)\n\n## Overview\nBeads v2.0 introduces hash-based IDs to eliminate collision problems. This is a **breaking change** requiring migration.\n\n## Migration Steps\n\n### 1. Backup\n```bash\ncp -r .beads .beads.backup\ngit commit -am \"Pre-migration backup\"\n```\n\n### 2. Run Migration\n```bash\n# Dry run first\nbd migrate --hash-ids --dry-run\n\n# Apply migration\nbd migrate --hash-ids\n```\n\n### 3. Commit Changes\n```bash\ngit add .beads/issues.jsonl\ngit commit -m \"Migrate to hash-based IDs (v2.0)\"\ngit push origin main\n```\n\n### 4. Coordinate with Collaborators\nAll clones must migrate before syncing:\n1. Notify team: \"Migrating to v2.0 on [date]\"\n2. All collaborators pull latest\n3. All run `bd migrate --hash-ids`\n4. All push changes\n5. Resume normal work\n\n## Rollback\n```bash\n# Restore backup\nmv .beads.backup .beads\nbd export # Regenerate JSONL\ngit checkout .beads/issues.jsonl\n```\n\n## FAQ\n\n**Q: Can I mix v1.x and v2.0 clones?**\nA: No. All clones must be on same version.\n\n**Q: Will my old issue IDs work?**\nA: No, but aliases preserve the numbers: bd-1c63eb84 → #1\n\n**Q: What happens to links like \"see bd-cb64c226.3\"?**\nA: Migration updates all text references automatically.\n```\n\n### 6. CHANGELOG.md\n```markdown\n## v2.0.0 (YYYY-MM-DD)\n\n### Breaking Changes\n- **Hash-based IDs**: Issues now use collision-free hash IDs (bd-af78e9a2)\n instead of sequential IDs (bd-1c63eb84, bd-9063acda)\n- **Aliasing system**: Human-friendly aliases (#42) for hash IDs\n- **Migration required**: Run `bd migrate --hash-ids` to convert v1.x databases\n\n### Added\n- `bd alias` command for manual alias control\n- `bd migrate --hash-ids` migration tool\n- Alias conflict resolution (deterministic, content-hash ordering)\n\n### Removed\n- ID collision detection and resolution (~2,100 LOC)\n- `bd import --resolve-collisions` flag (no longer needed)\n\n### Benefits\n- ✅ Zero ID collisions in distributed workflows\n- ✅ Simpler codebase (-1,350 net LOC)\n- ✅ Better git merge behavior\n- ✅ True offline-first operation\n```\n\n## Testing\n- Build docs locally (if using doc generator)\n- Check all links work\n- Verify examples are correct\n- Spellcheck\n\n## Files to Create/Modify\n- README.md (hash ID section)\n- AGENTS.md (workflow updates)\n- ADVANCED.md (internals)\n- MIGRATION.md (new)\n- CHANGELOG.md (v2.0 entry)\n- docs/ (any other docs)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T21:28:10.979971-07:00","updated_at":"2025-10-31T12:32:32.611114-07:00","closed_at":"2025-10-31T12:32:32.611114-07:00","dependencies":[{"issue_id":"bd-f8b764c9.12","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:28:10.981344-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.12","depends_on_id":"bd-f8b764c9.4","type":"blocks","created_at":"2025-10-29T21:28:10.981767-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.12","depends_on_id":"bd-f8b764c9.13","type":"blocks","created_at":"2025-10-29T21:28:10.982167-07:00","created_by":"stevey"}]} {"id":"bd-f8b764c9.13","title":"Add bd alias command for manual alias control","description":"Add command for users to manually view and reassign aliases.\n\n## Command: bd alias\n\n### Subcommands\n\n#### 1. bd alias list\nShow all alias mappings:\n```bash\n$ bd alias list\n#1 → bd-af78e9a2 Fix authentication bug\n#2 → bd-e5f6a7b8 Add logging to daemon\n#42 → bd-1a2b3c4d Investigate jujutsu integration\n#100 → bd-9a8b7c6d (reassigned after conflict)\n```\n\n#### 2. bd alias set \u003calias\u003e \u003chash-id\u003e\nManually assign alias to specific issue:\n```bash\n$ bd alias set 42 bd-1a2b3c4d\n✓ Assigned alias #42 to bd-1a2b3c4d\n\n$ bd alias set 1 bd-af78e9a2\n✗ Error: Alias #1 already assigned to bd-e5f6a7b8\nUse --force to override\n```\n\n#### 3. bd alias compact\nRenumber all aliases to fill gaps:\n```bash\n$ bd alias compact [--dry-run]\n\nCurrent aliases: #1, #2, #5, #7, #100, #101\nAfter compacting: #1, #2, #3, #4, #5, #6\n\nRenumbering:\n #5 → #3\n #7 → #4\n #100 → #5\n #101 → #6\n\nApply changes? [y/N]\n```\n\n#### 4. bd alias reset\nRegenerate all aliases (sequential from 1):\n```bash\n$ bd alias reset [--sort-by=priority|created|id]\n\nWARNING: This will reassign ALL aliases. Continue? [y/N]\n\nReassigning 150 issues by priority:\n bd-a1b2c3d4 → #1 (P0: Critical security bug)\n bd-e5f6a7b8 → #2 (P0: Data loss fix)\n bd-1a2b3c4d → #3 (P1: Jujutsu integration)\n ...\n```\n\n#### 5. bd alias find \u003chash-id\u003e\nLook up alias for hash ID:\n```bash\n$ bd alias find bd-af78e9a2\n#1\n\n$ bd alias find bd-nonexistent\n✗ Error: Issue not found\n```\n\n## Use Cases\n\n### 1. Keep Important Issues Low-Numbered\n```bash\n# After closing many P0 issues, compact to free low numbers\nbd alias compact\n\n# Or manually set\nbd alias set 1 bd-\u003ccritical-bug-hash\u003e\n```\n\n### 2. Consistent Aliases Across Clones\n```bash\n# After migration, coordinator assigns canonical aliases\nbd alias reset --sort-by=id\ngit add .beads/aliases.jsonl\ngit commit -m \"Canonical alias assignments\"\ngit push\n\n# Other clones pull and adopt\ngit pull\nbd import # Alias conflicts resolved automatically\n```\n\n### 3. Debug Alias Conflicts\n```bash\n# See which aliases were reassigned\nbd alias list | grep \"#100\"\n```\n\n## Flags\n\n### Global\n- `--dry-run`: Preview changes without applying\n- `--force`: Override existing alias assignments\n\n### bd alias reset\n- `--sort-by=priority`: Assign by priority (P0 first)\n- `--sort-by=created`: Assign by creation time (oldest first)\n- `--sort-by=id`: Assign by hash ID (lexicographic)\n\n## Implementation\n\nFile: cmd/bd/alias.go\n```go\nfunc aliasListCmd() *cobra.Command {\n return \u0026cobra.Command{\n Use: \"list\",\n Short: \"List all alias mappings\",\n Run: func(cmd *cobra.Command, args []string) {\n aliases := storage.GetAllAliases()\n for _, a := range aliases {\n fmt.Printf(\"#%-4d → %s %s\\n\", \n a.Alias, a.IssueID, a.Title)\n }\n },\n }\n}\n\nfunc aliasSetCmd() *cobra.Command {\n return \u0026cobra.Command{\n Use: \"set \u003calias\u003e \u003chash-id\u003e\",\n Short: \"Manually assign alias to issue\",\n Args: cobra.ExactArgs(2),\n Run: func(cmd *cobra.Command, args []string) {\n alias, _ := strconv.Atoi(args[0])\n hashID := args[1]\n \n force, _ := cmd.Flags().GetBool(\"force\")\n if err := storage.SetAlias(alias, hashID, force); err != nil {\n fmt.Fprintf(os.Stderr, \"Error: %v\\n\", err)\n os.Exit(1)\n }\n fmt.Printf(\"✓ Assigned alias #%d to %s\\n\", alias, hashID)\n },\n }\n}\n```\n\n## Files to Create\n- cmd/bd/alias.go\n\n## Testing\n- Test alias list output\n- Test alias set with/without force\n- Test alias compact removes gaps\n- Test alias reset with different sort orders\n- Test alias find lookup","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-29T21:26:53.751795-07:00","updated_at":"2025-10-31T12:32:32.611358-07:00","closed_at":"2025-10-31T12:32:32.611358-07:00","dependencies":[{"issue_id":"bd-f8b764c9.13","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:26:53.753259-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.13","depends_on_id":"bd-f8b764c9.7","type":"blocks","created_at":"2025-10-29T21:26:53.753733-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.13","depends_on_id":"bd-f8b764c9.6","type":"blocks","created_at":"2025-10-29T21:26:53.754112-07:00","created_by":"stevey"}]} -{"id":"bd-f8b764c9.2","title":"Update MCP server for hash IDs","description":"Update beads-mcp server to support hash IDs and aliases.\n\n## Changes Needed\n\n### 1. MCP Function Signatures (No Change)\nFunctions already use issue IDs as strings, so they work with hash IDs:\n\n```python\n# These already work!\nbeads_show(issue_id: str) # Accepts bd-af78e9a2 or #42\nbeads_update(issue_id: str, ...) # Accepts both formats\nbeads_close(issue_ids: List[str]) # Accepts both formats\n```\n\n### 2. Add Alias Resolution Helper\nFile: integrations/beads-mcp/src/beads_mcp/server.py\n\n```python\ndef resolve_issue_id(issue_id: str) -\u003e str:\n \"\"\"Resolve alias to hash ID if needed.\"\"\"\n # Hash ID: pass through\n if issue_id.startswith('bd-') and len(issue_id) == 11:\n return issue_id\n \n # Alias: #42 or 42\n alias_str = issue_id.lstrip('#')\n try:\n alias = int(alias_str)\n # Call bd to resolve\n result = subprocess.run(\n ['bd', 'alias', 'find', f'bd-{alias}'],\n capture_output=True, text=True\n )\n if result.returncode == 0:\n return result.stdout.strip()\n except ValueError:\n pass\n \n # Invalid format\n raise ValueError(f\"Invalid issue ID: {issue_id}\")\n```\n\n### 3. Update Response Formatting\nShow aliases in responses:\n\n```python\n@server.call_tool()\nasync def beads_show(issue_id: str) -\u003e List[TextContent]:\n resolved_id = resolve_issue_id(issue_id)\n \n result = subprocess.run(['bd', 'show', resolved_id], ...)\n \n # Parse response and add alias info\n # Format: \"bd-af78e9a2 (alias: #42)\"\n ...\n```\n\n### 4. Add beads_alias_* Functions\n\n```python\n@server.call_tool()\nasync def beads_alias_list() -\u003e List[TextContent]:\n \"\"\"List all alias mappings.\"\"\"\n result = subprocess.run(['bd', 'alias', 'list'], ...)\n return [TextContent(type=\"text\", text=result.stdout)]\n\n@server.call_tool()\nasync def beads_alias_set(alias: int, issue_id: str) -\u003e List[TextContent]:\n \"\"\"Manually assign alias to issue.\"\"\"\n result = subprocess.run(['bd', 'alias', 'set', str(alias), issue_id], ...)\n return [TextContent(type=\"text\", text=result.stdout)]\n\n@server.call_tool()\nasync def beads_alias_compact() -\u003e List[TextContent]:\n \"\"\"Compact aliases to fill gaps.\"\"\"\n result = subprocess.run(['bd', 'alias', 'compact'], ...)\n return [TextContent(type=\"text\", text=result.stdout)]\n```\n\n### 5. Update Documentation\nFile: integrations/beads-mcp/README.md\n\n```markdown\n## Issue IDs (v2.0+)\n\nThe MCP server accepts both hash IDs and aliases:\n\n```python\n# Using hash IDs\nawait beads_show(issue_id=\"bd-af78e9a2\")\n\n# Using aliases\nawait beads_show(issue_id=\"#42\")\nawait beads_show(issue_id=\"42\") # Shorthand\n```\n\n## Alias Management\n\nNew functions for alias control:\n\n- `beads_alias_list()` - List all alias mappings\n- `beads_alias_set(alias, issue_id)` - Manually assign alias\n- `beads_alias_compact()` - Compact aliases to fill gaps\n\n## Migration\n\nAfter migrating to hash IDs:\n1. Update beads-mcp: `pip install --upgrade beads-mcp`\n2. Restart MCP server\n3. All existing workflows continue to work\n```\n\n### 6. Version Compatibility\nDetect and handle both v1.x and v2.0 formats:\n\n```python\ndef detect_beads_version() -\u003e str:\n \"\"\"Detect if beads is using sequential or hash IDs.\"\"\"\n result = subprocess.run(['bd', 'list', '-n', '1'], ...)\n first_id = parse_first_issue_id(result.stdout)\n \n if first_id.startswith('bd-') and len(first_id) \u003e 11:\n return '2.0' # Hash ID\n else:\n return '1.x' # Sequential ID\n\n# On startup\nbeads_version = detect_beads_version()\nlogger.info(f\"Detected beads version: {beads_version}\")\n```\n\n## Testing\n\n### Unit Tests\nFile: integrations/beads-mcp/tests/test_hash_ids.py\n\n```python\ndef test_resolve_hash_id():\n \"\"\"Hash IDs pass through unchanged.\"\"\"\n assert resolve_issue_id(\"bd-af78e9a2\") == \"bd-af78e9a2\"\n\ndef test_resolve_alias():\n \"\"\"Aliases resolve to hash IDs.\"\"\"\n # Mock bd alias find command\n assert resolve_issue_id(\"#42\") == \"bd-af78e9a2\"\n assert resolve_issue_id(\"42\") == \"bd-af78e9a2\"\n\ndef test_invalid_id():\n \"\"\"Invalid IDs raise ValueError.\"\"\"\n with pytest.raises(ValueError):\n resolve_issue_id(\"invalid\")\n```\n\n### Integration Tests\n```python\nasync def test_show_with_hash_id(mcp_server):\n result = await mcp_server.beads_show(issue_id=\"bd-af78e9a2\")\n assert \"bd-af78e9a2\" in result[0].text\n\nasync def test_show_with_alias(mcp_server):\n result = await mcp_server.beads_show(issue_id=\"#42\")\n assert \"bd-af78e9a2\" in result[0].text # Resolved\n```\n\n## Backward Compatibility\nThe MCP server should work with both:\n- Beads v1.x (sequential IDs)\n- Beads v2.0+ (hash IDs)\n\nDetection happens at runtime based on issue ID format.\n\n## Files to Modify\n- integrations/beads-mcp/src/beads_mcp/server.py\n- integrations/beads-mcp/README.md\n- integrations/beads-mcp/tests/test_hash_ids.py (new)\n- integrations/beads-mcp/pyproject.toml (bump version)\n\n## Deployment\n```bash\ncd integrations/beads-mcp\n# Bump version to 2.0.0\npoetry version 2.0.0\n# Publish to PyPI\npoetry publish --build\n```","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:28:45.256074-07:00","updated_at":"2025-10-31T12:32:32.60786-07:00","closed_at":"2025-10-31T12:32:32.60786-07:00","dependencies":[{"issue_id":"bd-f8b764c9.2","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:28:45.257315-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.2","depends_on_id":"bd-f8b764c9.7","type":"blocks","created_at":"2025-10-29T21:28:45.258057-07:00","created_by":"stevey"}]} +{"id":"bd-f8b764c9.2","title":"Update MCP server for hash IDs","description":"Update beads-mcp server to support hash IDs and aliases.\n\n## Changes Needed\n\n### 1. MCP Function Signatures (No Change)\nFunctions already use issue IDs as strings, so they work with hash IDs:\n\n```python\n# These already work!\nbeads_show(issue_id: str) # Accepts bd-af78e9a2 or #42\nbeads_update(issue_id: str, ...) # Accepts both formats\nbeads_close(issue_ids: List[str]) # Accepts both formats\n```\n\n### 2. Add Alias Resolution Helper\nFile: integrations/beads-mcp/src/beads_mcp/server.py\n\n```python\ndef resolve_issue_id(issue_id: str) -\u003e str:\n \"\"\"Resolve alias to hash ID if needed.\"\"\"\n # Hash ID: pass through\n if issue_id.startswith('bd-') and len(issue_id) == 11:\n return issue_id\n \n # Alias: #42 or 42\n alias_str = issue_id.lstrip('#')\n try:\n alias = int(alias_str)\n # Call bd to resolve\n result = subprocess.run(\n ['bd', 'alias', 'find', f'bd-{alias}'],\n capture_output=True, text=True\n )\n if result.returncode == 0:\n return result.stdout.strip()\n except ValueError:\n pass\n \n # Invalid format\n raise ValueError(f\"Invalid issue ID: {issue_id}\")\n```\n\n### 3. Update Response Formatting\nShow aliases in responses:\n\n```python\n@server.call_tool()\nasync def beads_show(issue_id: str) -\u003e List[TextContent]:\n resolved_id = resolve_issue_id(issue_id)\n \n result = subprocess.run(['bd', 'show', resolved_id], ...)\n \n # Parse response and add alias info\n # Format: \"bd-af78e9a2 (alias: #42)\"\n ...\n```\n\n### 4. Add beads_alias_* Functions\n\n```python\n@server.call_tool()\nasync def beads_alias_list() -\u003e List[TextContent]:\n \"\"\"List all alias mappings.\"\"\"\n result = subprocess.run(['bd', 'alias', 'list'], ...)\n return [TextContent(type=\"text\", text=result.stdout)]\n\n@server.call_tool()\nasync def beads_alias_set(alias: int, issue_id: str) -\u003e List[TextContent]:\n \"\"\"Manually assign alias to issue.\"\"\"\n result = subprocess.run(['bd', 'alias', 'set', str(alias), issue_id], ...)\n return [TextContent(type=\"text\", text=result.stdout)]\n\n@server.call_tool()\nasync def beads_alias_compact() -\u003e List[TextContent]:\n \"\"\"Compact aliases to fill gaps.\"\"\"\n result = subprocess.run(['bd', 'alias', 'compact'], ...)\n return [TextContent(type=\"text\", text=result.stdout)]\n```\n\n### 5. Update Documentation\nFile: integrations/beads-mcp/README.md\n\n```markdown\n## Issue IDs (v2.0+)\n\nThe MCP server accepts both hash IDs and aliases:\n\n```python\n# Using hash IDs\nawait beads_show(issue_id=\"bd-af78e9a2\")\n\n# Using aliases\nawait beads_show(issue_id=\"#42\")\nawait beads_show(issue_id=\"42\") # Shorthand\n```\n\n## Alias Management\n\nNew functions for alias control:\n\n- `beads_alias_list()` - List all alias mappings\n- `beads_alias_set(alias, issue_id)` - Manually assign alias\n- `beads_alias_compact()` - Compact aliases to fill gaps\n\n## Migration\n\nAfter migrating to hash IDs:\n1. Update beads-mcp: `pip install --upgrade beads-mcp`\n2. Restart MCP server\n3. All existing workflows continue to work\n```\n\n### 6. Version Compatibility\nDetect and handle both v1.x and v2.0 formats:\n\n```python\ndef detect_beads_version() -\u003e str:\n \"\"\"Detect if beads is using sequential or hash IDs.\"\"\"\n result = subprocess.run(['bd', 'list', '-n', '1'], ...)\n first_id = parse_first_issue_id(result.stdout)\n \n if first_id.startswith('bd-') and len(first_id) \u003e 11:\n return '2.0' # Hash ID\n else:\n return '1.x' # Sequential ID\n\n# On startup\nbeads_version = detect_beads_version()\nlogger.info(f\"Detected beads version: {beads_version}\")\n```\n\n## Testing\n\n### Unit Tests\nFile: integrations/beads-mcp/tests/test_hash_ids.py\n\n```python\ndef test_resolve_hash_id():\n \"\"\"Hash IDs pass through unchanged.\"\"\"\n assert resolve_issue_id(\"bd-af78e9a2\") == \"bd-af78e9a2\"\n\ndef test_resolve_alias():\n \"\"\"Aliases resolve to hash IDs.\"\"\"\n # Mock bd alias find command\n assert resolve_issue_id(\"#42\") == \"bd-af78e9a2\"\n assert resolve_issue_id(\"42\") == \"bd-af78e9a2\"\n\ndef test_invalid_id():\n \"\"\"Invalid IDs raise ValueError.\"\"\"\n with pytest.raises(ValueError):\n resolve_issue_id(\"invalid\")\n```\n\n### Integration Tests\n```python\nasync def test_show_with_hash_id(mcp_server):\n result = await mcp_server.beads_show(issue_id=\"bd-af78e9a2\")\n assert \"bd-af78e9a2\" in result[0].text\n\nasync def test_show_with_alias(mcp_server):\n result = await mcp_server.beads_show(issue_id=\"#42\")\n assert \"bd-af78e9a2\" in result[0].text # Resolved\n```\n\n## Backward Compatibility\nThe MCP server should work with both:\n- Beads v1.x (sequential IDs)\n- Beads v2.0+ (hash IDs)\n\nDetection happens at runtime based on issue ID format.\n\n## Files to Modify\n- integrations/beads-mcp/src/beads_mcp/server.py\n- integrations/beads-mcp/README.md\n- integrations/beads-mcp/tests/test_hash_ids.py (new)\n- integrations/beads-mcp/pyproject.toml (bump version)\n\n## Deployment\n```bash\ncd integrations/beads-mcp\n# Bump version to 2.0.0\npoetry version 2.0.0\n# Publish to PyPI\npoetry publish --build\n```","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:28:45.256074-07:00","updated_at":"2025-10-31T12:32:32.60786-07:00","closed_at":"2025-10-31T12:32:32.60786-07:00","dependencies":[{"issue_id":"bd-f8b764c9.2","depends_on_id":"bd-f8b764c9.7","type":"blocks","created_at":"2025-10-29T21:28:45.258057-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.2","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:28:45.257315-07:00","created_by":"stevey"}]} {"id":"bd-f8b764c9.3","title":"Test: N-clone scenario with hash IDs (no collisions)","description":"Comprehensive test to verify hash IDs eliminate collision problems.\n\n## Test: TestHashIDsNClones\n\n### Purpose\nVerify that N clones can work offline and sync without ID collisions using hash IDs.\n\n### Test Scenario\n```\nSetup:\n- 1 bare remote repo\n- 5 clones (A, B, C, D, E)\n\nOffline Work:\n- Each clone creates 10 issues with different titles\n- No coordination, no network access\n- Total: 50 unique issues\n\nSync:\n- Clones sync in random order\n- Each pull/import other clones' issues\n\nExpected Result:\n- All 5 clones converge to 50 issues\n- Zero ID collisions\n- Zero remapping needed\n- Alias conflicts resolved deterministically\n```\n\n### Implementation\nFile: cmd/bd/beads_hashid_test.go (new)\n\n```go\nfunc TestHashIDsFiveClones(t *testing.T) {\n tmpDir := t.TempDir()\n remoteDir := setupBareRepo(t, tmpDir)\n \n // Setup 5 clones\n clones := make(map[string]string)\n for _, name := range []string{\"A\", \"B\", \"C\", \"D\", \"E\"} {\n clones[name] = setupClone(t, tmpDir, remoteDir, name)\n }\n \n // Each clone creates 10 issues offline\n for name, dir := range clones {\n for i := 0; i \u003c 10; i++ {\n createIssue(t, dir, fmt.Sprintf(\"%s-issue-%d\", name, i))\n }\n // No sync yet!\n }\n \n // Sync in random order\n syncOrder := []string{\"C\", \"A\", \"E\", \"B\", \"D\"}\n for _, name := range syncOrder {\n syncClone(t, clones[name], name)\n }\n \n // Final convergence round\n for _, name := range []string{\"A\", \"B\", \"C\", \"D\", \"E\"} {\n finalPull(t, clones[name], name)\n }\n \n // Verify all clones have all 50 issues\n for name, dir := range clones {\n issues := getIssues(t, dir)\n if len(issues) != 50 {\n t.Errorf(\"Clone %s: expected 50 issues, got %d\", name, len(issues))\n }\n \n // Verify all issue IDs are hash-based\n for _, issue := range issues {\n if !strings.HasPrefix(issue.ID, \"bd-\") || len(issue.ID) != 11 {\n t.Errorf(\"Invalid hash ID: %s\", issue.ID)\n }\n }\n }\n \n // Verify no collision resolution occurred\n // (This would be in logs if it happened)\n \n t.Log(\"✓ All 5 clones converged to 50 issues with zero collisions\")\n}\n```\n\n### Edge Case Tests\n\n#### Test: Hash Collision Detection (Artificial)\n```go\nfunc TestHashCollisionDetection(t *testing.T) {\n // Artificially inject collision by mocking hash function\n // Verify system detects and handles it\n}\n```\n\n#### Test: Alias Conflicts Resolved Deterministically\n```go\nfunc TestAliasConflictsNClones(t *testing.T) {\n // Two clones assign same alias to different issues\n // Verify deterministic resolution (content-hash ordering)\n // Verify all clones converge to same alias assignments\n}\n```\n\n#### Test: Mixed Sequential and Hash IDs (Should Fail)\n```go\nfunc TestMixedIDsRejected(t *testing.T) {\n // Try to import JSONL with sequential IDs into hash-ID database\n // Verify error or warning\n}\n```\n\n### Performance Test\n\n#### Benchmark: Hash ID Generation\n```go\nfunc BenchmarkHashIDGeneration(b *testing.B) {\n for i := 0; i \u003c b.N; i++ {\n GenerateHashID(\"title\", \"description\", time.Now(), \"workspace-id\")\n }\n}\n\n// Expected: \u003c 1μs per generation\n```\n\n#### Benchmark: N-Clone Convergence Time\n```go\nfunc BenchmarkNCloneConvergence(b *testing.B) {\n for _, n := range []int{3, 5, 10, 20} {\n b.Run(fmt.Sprintf(\"N=%d\", n), func(b *testing.B) {\n // Measure total convergence time\n })\n }\n}\n\n// Expected: Linear scaling O(N)\n```\n\n### Acceptance Criteria\n- TestHashIDsFiveClones passes reliably (10/10 runs)\n- Zero ID collisions in any scenario\n- All clones converge in single round (not multi-round like old system)\n- Alias conflicts resolved deterministically\n- Performance benchmarks meet targets (\u003c1μs hash gen)\n\n## Files to Create\n- cmd/bd/beads_hashid_test.go\n\n## Comparison to Old System\nThis test replaces:\n- TestTwoCloneCollision (bd-71107098) - no longer needed\n- TestThreeCloneCollision (bd-cbed9619) - no longer needed\n- TestFiveCloneCollision (bd-a40f374f) - no longer needed\n\nOld system required complex collision resolution and multi-round convergence.\nNew system: single-round convergence with zero collisions.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:27:26.954107-07:00","updated_at":"2025-10-31T12:32:32.608225-07:00","closed_at":"2025-10-31T12:32:32.608225-07:00","dependencies":[{"issue_id":"bd-f8b764c9.3","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:27:26.955522-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.3","depends_on_id":"bd-f8b764c9.5","type":"blocks","created_at":"2025-10-29T21:27:26.956175-07:00","created_by":"stevey"}]} {"id":"bd-f8b764c9.4","title":"Migration tool: sequential → hash IDs","description":"Create migration tool to convert existing sequential-ID databases to hash-ID format.\n\n## Command: bd migrate --hash-ids\n\n```bash\nbd migrate --hash-ids [--dry-run]\n```\n\n## Migration Process\n\n### 1. Backup Database\n```bash\ncp .beads/beads.db .beads/beads.db.backup-1761798384\necho \"✓ Backup created: .beads/beads.db.backup-1234567890\"\n```\n\n### 2. Generate Hash IDs for Existing Issues\n```go\nfunc migrateToHashIDs(db *SQLiteStorage) error {\n // Read all issues\n issues, err := db.ListIssues(ctx, ListOptions{Status: \"all\"})\n \n // Generate mapping: old ID → new hash ID\n mapping := make(map[string]string)\n for _, issue := range issues {\n hashID := GenerateHashID(\n issue.Title,\n issue.Description,\n issue.CreatedAt,\n db.workspaceID,\n )\n mapping[issue.ID] = hashID\n }\n \n // Detect hash collisions (extremely rare)\n if hasCollisions(mapping) {\n return fmt.Errorf(\"hash collision detected, aborting\")\n }\n \n return nil\n}\n```\n\n### 3. Update Database Schema\n```sql\n-- Add alias column\nALTER TABLE issues ADD COLUMN alias INTEGER UNIQUE;\n\n-- Populate aliases from old IDs\nUPDATE issues SET alias = CAST(SUBSTR(id, 4) AS INTEGER)\n WHERE id LIKE 'bd-%' AND SUBSTR(id, 4) GLOB '[0-9]*';\n\n-- Create new issues_new table with hash IDs\nCREATE TABLE issues_new (\n id TEXT PRIMARY KEY, -- Hash IDs now\n alias INTEGER UNIQUE,\n title TEXT NOT NULL,\n -- ... rest of schema\n);\n\n-- Copy data with ID mapping\nINSERT INTO issues_new SELECT \n \u003cnew_hash_id\u003e, -- From mapping\n alias,\n title,\n -- ...\nFROM issues;\n\n-- Drop old table, rename new\nDROP TABLE issues;\nALTER TABLE issues_new RENAME TO issues;\n```\n\n### 4. Update Dependencies\n```sql\n-- Update depends_on_id using mapping\nUPDATE dependencies \nSET issue_id = \u003cnew_hash_id\u003e,\n depends_on_id = \u003cnew_depends_on_hash_id\u003e\nFROM mapping;\n```\n\n### 5. Update Text References\n```go\n// Update all text fields that mention old IDs\nfunc updateTextReferences(db *SQLiteStorage, mapping map[string]string) error {\n for oldID, newID := range mapping {\n // Update description, notes, design, acceptance_criteria\n db.Exec(`UPDATE issues SET \n description = REPLACE(description, ?, ?),\n notes = REPLACE(notes, ?, ?),\n design = REPLACE(design, ?, ?),\n acceptance_criteria = REPLACE(acceptance_criteria, ?, ?)\n `, oldID, newID, oldID, newID, oldID, newID, oldID, newID)\n }\n}\n```\n\n### 6. Export to JSONL\n```bash\nbd export # Writes hash IDs to .beads/issues.jsonl\ngit add .beads/issues.jsonl\ngit commit -m \"Migrate to hash-based IDs\"\n```\n\n## Output\n```bash\n$ bd migrate --hash-ids\nMigrating to hash-based IDs...\n✓ Backup created: .beads/beads.db.backup-1730246400\n✓ Generated 150 hash IDs\n✓ No hash collisions detected\n✓ Updated issues table schema\n✓ Updated 150 issue IDs\n✓ Updated 87 dependencies\n✓ Updated 234 text references\n✓ Exported to .beads/issues.jsonl\n✓ Migration complete!\n\nNext steps:\n 1. Test: bd list, bd show #1, etc.\n 2. Commit: git commit -m \"Migrate to hash-based IDs\"\n 3. Push: git push origin main\n 4. Notify collaborators to pull and re-init\n```\n\n## Dry Run Mode\n```bash\n$ bd migrate --hash-ids --dry-run\n[DRY RUN] Would migrate 150 issues:\n bd-1c63eb84 → bd-af78e9a2 (alias: #1)\n bd-9063acda → bd-e5f6a7b8 (alias: #2)\n ...\n bd-150 → bd-9a8b7c6d (alias: #150)\n\n[DRY RUN] Would update:\n - 150 issue IDs\n - 87 dependencies\n - 234 text references in descriptions/notes\n\nNo changes made. Run without --dry-run to apply.\n```\n\n## Files to Create\n- cmd/bd/migrate.go (new command)\n- internal/storage/sqlite/migrations/hash_ids.go\n\n## Testing\n- Test migration on small database (10 issues)\n- Test migration on large database (1000 issues)\n- Test hash collision detection (inject collision artificially)\n- Test text reference updates\n- Test rollback (restore from backup)\n- Test migrated database works correctly\n\n## Rollback Procedure\n```bash\n# If migration fails or has issues\nmv .beads/beads.db.backup-1234567890 .beads/beads.db\nbd export # Restore JSONL from backup DB\n```\n\n## Multi-Clone Coordination\n**Important**: All clones must migrate before syncing:\n\n1. Coordinator sends message: \"Migrating to hash IDs on 2025-10-30 at 10:00 UTC\"\n2. All collaborators pull latest changes\n3. All run: `bd migrate --hash-ids`\n4. All push changes\n5. New work can continue with hash IDs\n\n**Do NOT**:\n- Mix sequential and hash IDs in same database\n- Sync before all clones migrate","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:26:24.563993-07:00","updated_at":"2025-10-31T12:32:32.608574-07:00","closed_at":"2025-10-31T12:32:32.608574-07:00","dependencies":[{"issue_id":"bd-f8b764c9.4","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:26:24.565325-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.4","depends_on_id":"bd-f8b764c9.9","type":"blocks","created_at":"2025-10-29T21:26:24.565945-07:00","created_by":"stevey"}]} -{"id":"bd-f8b764c9.5","title":"Delete collision resolution code","description":"Remove ~2,100 LOC of ID collision detection and resolution code (no longer needed with hash IDs).\n\n## Files to Delete Entirely\n```\ninternal/storage/sqlite/collision.go (~800 LOC)\ninternal/storage/sqlite/collision_test.go (~300 LOC)\ncmd/bd/autoimport_collision_test.go (~400 LOC)\n```\n\n## Code to Remove from Existing Files\n\n### internal/importer/importer.go\nRemove:\n- `DetectCollisions()` calls\n- `ScoreCollisions()` logic\n- `RemapCollisions()` calls\n- `handleRename()` function\n- All collision-related error handling\n\nKeep:\n- Basic import logic\n- Exact match detection (idempotent import)\n\n### beads_twoclone_test.go\nRemove:\n- `TestTwoCloneCollision` (bd-71107098)\n- `TestThreeCloneCollision` (bd-cbed9619)\n- `TestFiveCloneCollision` (bd-a40f374f)\n- All N-way collision tests\n\n### cmd/bd/import.go\nRemove:\n- `--resolve-collisions` flag\n- `--dry-run` collision preview\n- Collision reporting\n\n## Issues Closed by This Change\n- bd-71107098: Add test for symmetric collision\n--89: Content-hash collision resolution\n- bd-cbed9619: N-way collision resolution epic\n- bd-cbed9619.5: Add ScoreCollisions (already done but now unnecessary)\n- bd-cbed9619.4: Make DetectCollisions read-only\n- bd-cbed9619.3: ResolveNWayCollisions function\n- bd-cbed9619.2: Multi-round import convergence\n- bd-cbed9619.1: Multi-round convergence for N-way collisions\n- bd-e6d71828: Transaction + retry logic for collisions\n- bd-70419816: Test case for symmetric collision\n\n## Verification Steps\n1. `grep -r \"collision\" --include=\"*.go\"` → should only find alias conflicts\n2. `go test ./...` → all tests pass\n3. `go build ./cmd/bd` → clean build\n4. Check LOC reduction: `git diff --stat`\n\n## Expected Metrics\n- **Files deleted**: 3\n- **LOC removed**: ~2,100\n- **Test coverage**: Should increase (less untested code)\n- **Binary size**: Slightly smaller\n\n## Caution\nDo NOT delete:\n- Alias conflict resolution (new code in bd-f8b764c9.6)\n- Duplicate detection (bd-581b80b3, bd-149) - different from ID collisions\n- Merge conflict resolution (bd-7e7ddffa.1, bd-5f483051) - git conflicts, not ID collisions\n\n## Files to Modify\n- internal/importer/importer.go (remove collision handling)\n- cmd/bd/import.go (remove --resolve-collisions flag)\n- beads_twoclone_test.go (remove collision tests)\n- Delete: internal/storage/sqlite/collision.go\n- Delete: internal/storage/sqlite/collision_test.go \n- Delete: cmd/bd/autoimport_collision_test.go\n\n## Testing\n- Ensure all remaining tests pass\n- Manual test: create issue on two clones, sync → no collisions\n- Verify error if somehow hash collision occurs (extremely unlikely)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:25:50.976383-07:00","updated_at":"2025-10-31T12:32:32.608942-07:00","closed_at":"2025-10-31T12:32:32.608942-07:00","dependencies":[{"issue_id":"bd-f8b764c9.5","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:25:50.977857-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.5","depends_on_id":"bd-f8b764c9.9","type":"blocks","created_at":"2025-10-29T21:25:50.978395-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.5","depends_on_id":"bd-f8b764c9.8","type":"blocks","created_at":"2025-10-29T21:25:50.978842-07:00","created_by":"stevey"}]} -{"id":"bd-f8b764c9.6","title":"Implement alias conflict resolution","description":"Handle alias conflicts when multiple clones assign same alias to different issues.\n\n## Scenario\n```\nClone A: Creates bd-a1b2c3d4, assigns alias #42\nClone B: Creates bd-e5f6a7b8, assigns alias #42\nAfter sync: Conflict! Which issue gets #42?\n```\n\n## Resolution Strategy: Content-Hash Ordering\nDeterministic, same result on all clones:\n```go\nfunc ResolveAliasConflicts(conflicts []AliasConflict) []AliasRemapping {\n for _, conflict := range conflicts {\n // Sort by hash ID (lexicographic)\n sort.Strings(conflict.IssueIDs)\n \n // Winner: lowest hash ID (arbitrary but deterministic)\n winner := conflict.IssueIDs[0]\n \n // Losers: reassign to next available aliases\n for _, loser := range conflict.IssueIDs[1:] {\n newAlias := getNextAlias()\n remappings = append(remappings, AliasRemapping{\n IssueID: loser,\n OldAlias: conflict.Alias,\n NewAlias: newAlias,\n })\n }\n }\n return remappings\n}\n```\n\n## Detection During Import\nFile: internal/importer/importer.go\n```go\nfunc handleAliasConflicts(imported []Issue, existing []Issue) error {\n // Build alias map from imported issues\n aliasMap := make(map[int][]string) // alias → issue IDs\n \n for _, issue := range imported {\n aliasMap[issue.Alias] = append(aliasMap[issue.Alias], issue.ID)\n }\n \n // Check against existing aliases\n for alias, importedIDs := range aliasMap {\n existingID := storage.GetIssueIDByAlias(alias)\n if existingID != \"\" {\n // Conflict! Resolve it\n allIDs := append(importedIDs, existingID)\n conflicts = append(conflicts, AliasConflict{\n Alias: alias,\n IssueIDs: allIDs,\n })\n }\n }\n \n // Resolve and apply\n remappings := ResolveAliasConflicts(conflicts)\n applyAliasRemappings(remappings)\n}\n```\n\n## Alternative Strategies (For Future Consideration)\n\n### Priority-Based\n```go\n// Higher priority keeps alias\nif issueA.Priority \u003c issueB.Priority {\n winner = issueA\n}\n```\n\n### Timestamp-Based (Last-Write-Wins)\n```go\n// Newer issue keeps alias\nif issueA.UpdatedAt.After(issueB.UpdatedAt) {\n winner = issueA\n}\n```\n\n### Manual Resolution\n```bash\nbd resolve-aliases --manual\n# Interactive prompt for each conflict\n```\n\n## User Notification\n```bash\n$ bd sync\n✓ Synced 5 issues\n⚠ Alias conflicts resolved:\n - Issue bd-e5f6a7b8: alias changed from #42 to #100\n - Issue bd-9a8b7c6d: alias changed from #15 to #101\n```\n\n## Files to Create/Modify\n- internal/storage/sqlite/alias_conflicts.go (new)\n- internal/importer/importer.go (detect conflicts)\n- cmd/bd/sync.go (show conflict notifications)\n\n## Testing\n- Test two clones assign same alias to different issues\n- Test conflict resolution is deterministic (same on all clones)\n- Test loser gets new alias\n- Test winner keeps original alias\n- Test multiple conflicts resolved in one import","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:25:27.389191-07:00","updated_at":"2025-10-31T12:32:32.609245-07:00","closed_at":"2025-10-31T12:32:32.609245-07:00","dependencies":[{"issue_id":"bd-f8b764c9.6","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:25:27.390611-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.6","depends_on_id":"bd-f8b764c9.10","type":"blocks","created_at":"2025-10-29T21:25:27.391127-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.6","depends_on_id":"bd-f8b764c9.8","type":"blocks","created_at":"2025-10-29T21:25:27.39154-07:00","created_by":"stevey"}]} -{"id":"bd-f8b764c9.7","title":"CLI accepts both hash IDs and aliases","description":"Update all CLI commands to accept both hash IDs (bd-af78e9a2) and aliases (#42, or just 42).\n\n## Parsing Logic\n```go\n// internal/utils/id_parser.go\nfunc ParseIssueID(input string) (issueID string, err error) {\n // Hash ID: bd-af78e9a2\n if strings.HasPrefix(input, \"bd-\") {\n return input, nil\n }\n \n // Alias: #42 or 42\n aliasStr := strings.TrimPrefix(input, \"#\")\n alias, err := strconv.Atoi(aliasStr)\n if err != nil {\n return \"\", fmt.Errorf(\"invalid issue ID: %s\", input)\n }\n \n // Resolve alias to hash ID\n return storage.GetIssueIDByAlias(alias)\n}\n```\n\n## Commands to Update\nAll commands that accept issue IDs:\n\n### 1. bd show\n```bash\nbd show bd-af78e9a2 # Hash ID\nbd show #42 # Alias\nbd show 42 # Alias (shorthand)\nbd show bd-af78e9a2 #42 # Mixed (multiple IDs)\n```\n\n### 2. bd update\n```bash\nbd update #42 --status in_progress\nbd update bd-af78e9a2 --priority 1\n```\n\n### 3. bd close\n```bash\nbd close #42 --reason \"Done\"\n```\n\n### 4. bd dep add/tree\n```bash\nbd dep add #42 #1 --type blocks\nbd dep tree bd-af78e9a2\n```\n\n### 5. bd label add/remove\n```bash\nbd label add #42 critical\n```\n\n### 6. bd merge\n```bash\nbd merge #42 #43 --into #41\n```\n\n## Display Format\nDefault to showing aliases in output:\n```bash\n$ bd list\n#1 Fix authentication bug P1 open\n#2 Add logging to daemon P2 open \n#42 Investigate jujutsu integration P3 open\n```\n\nWith `--format=hash` flag:\n```bash\n$ bd list --format=hash\nbd-af78e9a2 Fix authentication bug P1 open\nbd-e5f6a7b8 Add logging to daemon P2 open\nbd-1a2b3c4d Investigate jujutsu integration P3 open\n```\n\n## Files to Modify\n- internal/utils/id_parser.go (new)\n- cmd/bd/show.go\n- cmd/bd/update.go\n- cmd/bd/close.go\n- cmd/bd/reopen.go\n- cmd/bd/dep.go\n- cmd/bd/label.go\n- cmd/bd/merge.go\n- cmd/bd/list.go (add --format flag)\n\n## Testing\n- Test hash ID parsing\n- Test alias parsing (#42, 42)\n- Test mixed IDs in single command\n- Test error on invalid ID\n- Test alias resolution failure","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:25:06.256317-07:00","updated_at":"2025-10-31T12:32:32.609634-07:00","closed_at":"2025-10-31T12:32:32.609634-07:00","dependencies":[{"issue_id":"bd-f8b764c9.7","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:25:06.257796-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.7","depends_on_id":"bd-f8b764c9.10","type":"blocks","created_at":"2025-10-29T21:25:06.258307-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.7","depends_on_id":"bd-f8b764c9.8","type":"blocks","created_at":"2025-10-29T21:29:45.993274-07:00","created_by":"stevey"}]} -{"id":"bd-f8b764c9.8","title":"Update JSONL format to use hash IDs","description":"Update JSONL import/export to use hash IDs, store aliases separately.\n\n## Current JSONL Format\n```jsonl\n{\"id\":\"bd-1c63eb84\",\"title\":\"Fix bug\",\"status\":\"open\",...}\n{\"id\":\"bd-9063acda\",\"title\":\"Add test\",\"status\":\"open\",...}\n```\n\n## New JSONL Format (Option A: Include Alias)\n```jsonl\n{\"id\":\"bd-af78e9a2\",\"alias\":1,\"title\":\"Fix bug\",\"status\":\"open\",...}\n{\"id\":\"bd-e5f6a7b8\",\"alias\":2,\"title\":\"Add test\",\"status\":\"open\",...}\n```\n\n## New JSONL Format (Option B: Hash ID Only)\n```jsonl\n{\"id\":\"bd-af78e9a2\",\"title\":\"Fix bug\",\"status\":\"open\",...}\n{\"id\":\"bd-e5f6a7b8\",\"title\":\"Add test\",\"status\":\"open\",...}\n```\n\nStore aliases in separate .beads/aliases.jsonl (local only, git-ignored):\n```jsonl\n{\"hash\":\"bd-af78e9a2\",\"alias\":1}\n{\"hash\":\"bd-e5f6a7b8\",\"alias\":2}\n```\n\n**Recommendation**: Option B (hash only in main JSONL)\n- Cleaner git diffs (no alias conflicts)\n- Aliases are workspace-local preference\n- Main JSONL is canonical, portable\n\n## Export Changes\nFile: cmd/bd/export.go\n```go\n// Export issues with hash IDs\nfor _, issue := range issues {\n json := marshalIssue(issue) // Uses issue.ID (hash)\n // Don't include alias in JSONL\n}\n\n// Separately export aliases to .beads/aliases.jsonl\nexportAliases(issues)\n```\n\n## Import Changes \nFile: cmd/bd/import.go, internal/importer/importer.go\n```go\n// Import issues by hash ID\nissue := unmarshalIssue(line)\n// Assign new alias on import (don't use incoming alias)\nissue.Alias = getNextAlias()\n\n// No collision detection needed! Hash IDs are globally unique\n```\n\n## Dependency Reference Format\nNo change needed - already uses issue IDs:\n```json\n{\"depends_on_id\":\"bd-af78e9a2\",\"type\":\"blocks\"}\n```\n\n## Files to Modify\n- cmd/bd/export.go (use hash IDs)\n- cmd/bd/import.go (import hash IDs, assign aliases)\n- internal/importer/importer.go (remove collision detection!)\n- .gitignore (add .beads/aliases.jsonl)\n\n## Testing\n- Test export produces hash IDs\n- Test import assigns new aliases\n- Test dependencies preserved with hash IDs\n- Test no collision detection triggered","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:24:47.408106-07:00","updated_at":"2025-10-31T12:32:32.609925-07:00","closed_at":"2025-10-31T12:32:32.609925-07:00","dependencies":[{"issue_id":"bd-f8b764c9.8","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:24:47.409489-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.8","depends_on_id":"bd-f8b764c9.9","type":"blocks","created_at":"2025-10-29T21:24:47.409977-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.8","depends_on_id":"bd-f8b764c9.10","type":"blocks","created_at":"2025-10-29T21:29:45.975499-07:00","created_by":"stevey"}]} +{"id":"bd-f8b764c9.5","title":"Delete collision resolution code","description":"Remove ~2,100 LOC of ID collision detection and resolution code (no longer needed with hash IDs).\n\n## Files to Delete Entirely\n```\ninternal/storage/sqlite/collision.go (~800 LOC)\ninternal/storage/sqlite/collision_test.go (~300 LOC)\ncmd/bd/autoimport_collision_test.go (~400 LOC)\n```\n\n## Code to Remove from Existing Files\n\n### internal/importer/importer.go\nRemove:\n- `DetectCollisions()` calls\n- `ScoreCollisions()` logic\n- `RemapCollisions()` calls\n- `handleRename()` function\n- All collision-related error handling\n\nKeep:\n- Basic import logic\n- Exact match detection (idempotent import)\n\n### beads_twoclone_test.go\nRemove:\n- `TestTwoCloneCollision` (bd-71107098)\n- `TestThreeCloneCollision` (bd-cbed9619)\n- `TestFiveCloneCollision` (bd-a40f374f)\n- All N-way collision tests\n\n### cmd/bd/import.go\nRemove:\n- `--resolve-collisions` flag\n- `--dry-run` collision preview\n- Collision reporting\n\n## Issues Closed by This Change\n- bd-71107098: Add test for symmetric collision\n--89: Content-hash collision resolution\n- bd-cbed9619: N-way collision resolution epic\n- bd-cbed9619.5: Add ScoreCollisions (already done but now unnecessary)\n- bd-cbed9619.4: Make DetectCollisions read-only\n- bd-cbed9619.3: ResolveNWayCollisions function\n- bd-cbed9619.2: Multi-round import convergence\n- bd-cbed9619.1: Multi-round convergence for N-way collisions\n- bd-e6d71828: Transaction + retry logic for collisions\n- bd-70419816: Test case for symmetric collision\n\n## Verification Steps\n1. `grep -r \"collision\" --include=\"*.go\"` → should only find alias conflicts\n2. `go test ./...` → all tests pass\n3. `go build ./cmd/bd` → clean build\n4. Check LOC reduction: `git diff --stat`\n\n## Expected Metrics\n- **Files deleted**: 3\n- **LOC removed**: ~2,100\n- **Test coverage**: Should increase (less untested code)\n- **Binary size**: Slightly smaller\n\n## Caution\nDo NOT delete:\n- Alias conflict resolution (new code in bd-f8b764c9.6)\n- Duplicate detection (bd-581b80b3, bd-149) - different from ID collisions\n- Merge conflict resolution (bd-7e7ddffa.1, bd-5f483051) - git conflicts, not ID collisions\n\n## Files to Modify\n- internal/importer/importer.go (remove collision handling)\n- cmd/bd/import.go (remove --resolve-collisions flag)\n- beads_twoclone_test.go (remove collision tests)\n- Delete: internal/storage/sqlite/collision.go\n- Delete: internal/storage/sqlite/collision_test.go \n- Delete: cmd/bd/autoimport_collision_test.go\n\n## Testing\n- Ensure all remaining tests pass\n- Manual test: create issue on two clones, sync → no collisions\n- Verify error if somehow hash collision occurs (extremely unlikely)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:25:50.976383-07:00","updated_at":"2025-10-31T12:32:32.608942-07:00","closed_at":"2025-10-31T12:32:32.608942-07:00","dependencies":[{"issue_id":"bd-f8b764c9.5","depends_on_id":"bd-f8b764c9.9","type":"blocks","created_at":"2025-10-29T21:25:50.978395-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.5","depends_on_id":"bd-f8b764c9.8","type":"blocks","created_at":"2025-10-29T21:25:50.978842-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.5","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:25:50.977857-07:00","created_by":"stevey"}]} +{"id":"bd-f8b764c9.6","title":"Implement alias conflict resolution","description":"Handle alias conflicts when multiple clones assign same alias to different issues.\n\n## Scenario\n```\nClone A: Creates bd-a1b2c3d4, assigns alias #42\nClone B: Creates bd-e5f6a7b8, assigns alias #42\nAfter sync: Conflict! Which issue gets #42?\n```\n\n## Resolution Strategy: Content-Hash Ordering\nDeterministic, same result on all clones:\n```go\nfunc ResolveAliasConflicts(conflicts []AliasConflict) []AliasRemapping {\n for _, conflict := range conflicts {\n // Sort by hash ID (lexicographic)\n sort.Strings(conflict.IssueIDs)\n \n // Winner: lowest hash ID (arbitrary but deterministic)\n winner := conflict.IssueIDs[0]\n \n // Losers: reassign to next available aliases\n for _, loser := range conflict.IssueIDs[1:] {\n newAlias := getNextAlias()\n remappings = append(remappings, AliasRemapping{\n IssueID: loser,\n OldAlias: conflict.Alias,\n NewAlias: newAlias,\n })\n }\n }\n return remappings\n}\n```\n\n## Detection During Import\nFile: internal/importer/importer.go\n```go\nfunc handleAliasConflicts(imported []Issue, existing []Issue) error {\n // Build alias map from imported issues\n aliasMap := make(map[int][]string) // alias → issue IDs\n \n for _, issue := range imported {\n aliasMap[issue.Alias] = append(aliasMap[issue.Alias], issue.ID)\n }\n \n // Check against existing aliases\n for alias, importedIDs := range aliasMap {\n existingID := storage.GetIssueIDByAlias(alias)\n if existingID != \"\" {\n // Conflict! Resolve it\n allIDs := append(importedIDs, existingID)\n conflicts = append(conflicts, AliasConflict{\n Alias: alias,\n IssueIDs: allIDs,\n })\n }\n }\n \n // Resolve and apply\n remappings := ResolveAliasConflicts(conflicts)\n applyAliasRemappings(remappings)\n}\n```\n\n## Alternative Strategies (For Future Consideration)\n\n### Priority-Based\n```go\n// Higher priority keeps alias\nif issueA.Priority \u003c issueB.Priority {\n winner = issueA\n}\n```\n\n### Timestamp-Based (Last-Write-Wins)\n```go\n// Newer issue keeps alias\nif issueA.UpdatedAt.After(issueB.UpdatedAt) {\n winner = issueA\n}\n```\n\n### Manual Resolution\n```bash\nbd resolve-aliases --manual\n# Interactive prompt for each conflict\n```\n\n## User Notification\n```bash\n$ bd sync\n✓ Synced 5 issues\n⚠ Alias conflicts resolved:\n - Issue bd-e5f6a7b8: alias changed from #42 to #100\n - Issue bd-9a8b7c6d: alias changed from #15 to #101\n```\n\n## Files to Create/Modify\n- internal/storage/sqlite/alias_conflicts.go (new)\n- internal/importer/importer.go (detect conflicts)\n- cmd/bd/sync.go (show conflict notifications)\n\n## Testing\n- Test two clones assign same alias to different issues\n- Test conflict resolution is deterministic (same on all clones)\n- Test loser gets new alias\n- Test winner keeps original alias\n- Test multiple conflicts resolved in one import","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:25:27.389191-07:00","updated_at":"2025-10-31T12:32:32.609245-07:00","closed_at":"2025-10-31T12:32:32.609245-07:00","dependencies":[{"issue_id":"bd-f8b764c9.6","depends_on_id":"bd-f8b764c9.10","type":"blocks","created_at":"2025-10-29T21:25:27.391127-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.6","depends_on_id":"bd-f8b764c9.8","type":"blocks","created_at":"2025-10-29T21:25:27.39154-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.6","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:25:27.390611-07:00","created_by":"stevey"}]} +{"id":"bd-f8b764c9.7","title":"CLI accepts both hash IDs and aliases","description":"Update all CLI commands to accept both hash IDs (bd-af78e9a2) and aliases (#42, or just 42).\n\n## Parsing Logic\n```go\n// internal/utils/id_parser.go\nfunc ParseIssueID(input string) (issueID string, err error) {\n // Hash ID: bd-af78e9a2\n if strings.HasPrefix(input, \"bd-\") {\n return input, nil\n }\n \n // Alias: #42 or 42\n aliasStr := strings.TrimPrefix(input, \"#\")\n alias, err := strconv.Atoi(aliasStr)\n if err != nil {\n return \"\", fmt.Errorf(\"invalid issue ID: %s\", input)\n }\n \n // Resolve alias to hash ID\n return storage.GetIssueIDByAlias(alias)\n}\n```\n\n## Commands to Update\nAll commands that accept issue IDs:\n\n### 1. bd show\n```bash\nbd show bd-af78e9a2 # Hash ID\nbd show #42 # Alias\nbd show 42 # Alias (shorthand)\nbd show bd-af78e9a2 #42 # Mixed (multiple IDs)\n```\n\n### 2. bd update\n```bash\nbd update #42 --status in_progress\nbd update bd-af78e9a2 --priority 1\n```\n\n### 3. bd close\n```bash\nbd close #42 --reason \"Done\"\n```\n\n### 4. bd dep add/tree\n```bash\nbd dep add #42 #1 --type blocks\nbd dep tree bd-af78e9a2\n```\n\n### 5. bd label add/remove\n```bash\nbd label add #42 critical\n```\n\n### 6. bd merge\n```bash\nbd merge #42 #43 --into #41\n```\n\n## Display Format\nDefault to showing aliases in output:\n```bash\n$ bd list\n#1 Fix authentication bug P1 open\n#2 Add logging to daemon P2 open \n#42 Investigate jujutsu integration P3 open\n```\n\nWith `--format=hash` flag:\n```bash\n$ bd list --format=hash\nbd-af78e9a2 Fix authentication bug P1 open\nbd-e5f6a7b8 Add logging to daemon P2 open\nbd-1a2b3c4d Investigate jujutsu integration P3 open\n```\n\n## Files to Modify\n- internal/utils/id_parser.go (new)\n- cmd/bd/show.go\n- cmd/bd/update.go\n- cmd/bd/close.go\n- cmd/bd/reopen.go\n- cmd/bd/dep.go\n- cmd/bd/label.go\n- cmd/bd/merge.go\n- cmd/bd/list.go (add --format flag)\n\n## Testing\n- Test hash ID parsing\n- Test alias parsing (#42, 42)\n- Test mixed IDs in single command\n- Test error on invalid ID\n- Test alias resolution failure","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:25:06.256317-07:00","updated_at":"2025-10-31T12:32:32.609634-07:00","closed_at":"2025-10-31T12:32:32.609634-07:00","dependencies":[{"issue_id":"bd-f8b764c9.7","depends_on_id":"bd-f8b764c9.10","type":"blocks","created_at":"2025-10-29T21:25:06.258307-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.7","depends_on_id":"bd-f8b764c9.8","type":"blocks","created_at":"2025-10-29T21:29:45.993274-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.7","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:25:06.257796-07:00","created_by":"stevey"}]} +{"id":"bd-f8b764c9.8","title":"Update JSONL format to use hash IDs","description":"Update JSONL import/export to use hash IDs, store aliases separately.\n\n## Current JSONL Format\n```jsonl\n{\"id\":\"bd-1c63eb84\",\"title\":\"Fix bug\",\"status\":\"open\",...}\n{\"id\":\"bd-9063acda\",\"title\":\"Add test\",\"status\":\"open\",...}\n```\n\n## New JSONL Format (Option A: Include Alias)\n```jsonl\n{\"id\":\"bd-af78e9a2\",\"alias\":1,\"title\":\"Fix bug\",\"status\":\"open\",...}\n{\"id\":\"bd-e5f6a7b8\",\"alias\":2,\"title\":\"Add test\",\"status\":\"open\",...}\n```\n\n## New JSONL Format (Option B: Hash ID Only)\n```jsonl\n{\"id\":\"bd-af78e9a2\",\"title\":\"Fix bug\",\"status\":\"open\",...}\n{\"id\":\"bd-e5f6a7b8\",\"title\":\"Add test\",\"status\":\"open\",...}\n```\n\nStore aliases in separate .beads/aliases.jsonl (local only, git-ignored):\n```jsonl\n{\"hash\":\"bd-af78e9a2\",\"alias\":1}\n{\"hash\":\"bd-e5f6a7b8\",\"alias\":2}\n```\n\n**Recommendation**: Option B (hash only in main JSONL)\n- Cleaner git diffs (no alias conflicts)\n- Aliases are workspace-local preference\n- Main JSONL is canonical, portable\n\n## Export Changes\nFile: cmd/bd/export.go\n```go\n// Export issues with hash IDs\nfor _, issue := range issues {\n json := marshalIssue(issue) // Uses issue.ID (hash)\n // Don't include alias in JSONL\n}\n\n// Separately export aliases to .beads/aliases.jsonl\nexportAliases(issues)\n```\n\n## Import Changes \nFile: cmd/bd/import.go, internal/importer/importer.go\n```go\n// Import issues by hash ID\nissue := unmarshalIssue(line)\n// Assign new alias on import (don't use incoming alias)\nissue.Alias = getNextAlias()\n\n// No collision detection needed! Hash IDs are globally unique\n```\n\n## Dependency Reference Format\nNo change needed - already uses issue IDs:\n```json\n{\"depends_on_id\":\"bd-af78e9a2\",\"type\":\"blocks\"}\n```\n\n## Files to Modify\n- cmd/bd/export.go (use hash IDs)\n- cmd/bd/import.go (import hash IDs, assign aliases)\n- internal/importer/importer.go (remove collision detection!)\n- .gitignore (add .beads/aliases.jsonl)\n\n## Testing\n- Test export produces hash IDs\n- Test import assigns new aliases\n- Test dependencies preserved with hash IDs\n- Test no collision detection triggered","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:24:47.408106-07:00","updated_at":"2025-10-31T12:32:32.609925-07:00","closed_at":"2025-10-31T12:32:32.609925-07:00","dependencies":[{"issue_id":"bd-f8b764c9.8","depends_on_id":"bd-f8b764c9.10","type":"blocks","created_at":"2025-10-29T21:29:45.975499-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.8","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:24:47.409489-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.8","depends_on_id":"bd-f8b764c9.9","type":"blocks","created_at":"2025-10-29T21:24:47.409977-07:00","created_by":"stevey"}]} {"id":"bd-f8b764c9.9","title":"Implement hash ID generation in CreateIssue","description":"Replace sequential ID generation with hash-based IDs in CreateIssue function.\n\n## Current Behavior (internal/storage/sqlite/sqlite.go)\n```go\nfunc (s *SQLiteStorage) CreateIssue(ctx context.Context, issue *types.Issue) error {\n // ID comes from auto-increment counter\n // Collisions possible across clones\n}\n```\n\n## New Behavior\n```go\nfunc (s *SQLiteStorage) CreateIssue(ctx context.Context, issue *types.Issue) error {\n // Generate hash ID if not provided\n if issue.ID == \"\" {\n issue.ID = idgen.GenerateHashID(\n issue.Title,\n issue.Description,\n time.Now(),\n s.workspaceID,\n )\n }\n \n // Assign next alias\n issue.Alias = s.getNextAlias()\n \n // Insert with hash ID + alias\n // ...\n}\n```\n\n## Workspace ID Generation\nAdd to database initialization:\n```go\n// Generate stable workspace ID (persisted in .beads/workspace_id)\nworkspaceID := getOrCreateWorkspaceID()\n```\n\nOptions for workspace ID:\n1. Hostname + random suffix\n2. UUID (random)\n3. Git remote URL hash (deterministic per repo)\n\nRecommended: Option 3 (git remote hash) for reproducibility\n\n## Hash Collision Detection\n```go\n// On insert, check for collision (unlikely but possible)\nexisting, err := s.GetIssue(ctx, issue.ID)\nif err == nil {\n // Hash collision! Add random suffix and retry\n issue.ID = issue.ID + \"-\" + randomSuffix(4)\n}\n```\n\n## Files to Create/Modify\n- internal/types/id_generator.go (new)\n- internal/storage/sqlite/sqlite.go (CreateIssue)\n- internal/storage/sqlite/workspace.go (new - workspace ID management)\n- .beads/workspace_id (new file, git-ignored)\n\n## Testing\n- Test hash ID generation is deterministic\n- Test collision detection and retry\n- Test workspace ID persistence\n- Benchmark: hash generation performance (\u003c1μs)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-10-29T21:24:29.412237-07:00","updated_at":"2025-10-31T12:32:32.610403-07:00","closed_at":"2025-10-31T12:32:32.610403-07:00","dependencies":[{"issue_id":"bd-f8b764c9.9","depends_on_id":"bd-f8b764c9","type":"parent-child","created_at":"2025-10-29T21:24:29.413417-07:00","created_by":"stevey"},{"issue_id":"bd-f8b764c9.9","depends_on_id":"bd-f8b764c9.11","type":"blocks","created_at":"2025-10-29T21:24:29.413823-07:00","created_by":"stevey"}]} {"id":"bd-f99o2","title":"Digest: mol-refinery-patrol","description":"Patrol cycle: Queue empty, no merges needed","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T19:58:04.397029-08:00","updated_at":"2026-01-10T19:58:04.397029-08:00","closed_at":"2026-01-10T19:58:04.396988-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-f9a1","title":"Add index usage verification test for external_ref lookups","description":"Currently we test that idx_issues_external_ref index exists, but we don't verify that it's actually being used by the query planner.\n\nProposed solution:\n- Add test using EXPLAIN QUERY PLAN\n- Verify that 'SEARCH TABLE issues USING INDEX idx_issues_external_ref' appears in plan\n- Ensures O(1) lookup performance is maintained\n\nRelated: bd-1022\nFiles: internal/storage/sqlite/external_ref_test.go:260","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-02T15:32:09.85419-08:00","updated_at":"2025-11-02T16:40:01.033779-08:00","closed_at":"2025-11-02T16:40:01.033779-08:00"} -{"id":"bd-fa1q","title":"bd swarm create command","description":"Add bd swarm create to create a swarm molecule from an epic.\n\n## Context\nSwarms ARE persistent molecules - not separate JSON state. This command creates\na swarm molecule that:\n- Links to the epic it orchestrates\n- Has mol_type=swarm\n- Specifies a coordinator\n- Can be discovered by any agent\n\n## Core Principle: Discovery Over Tracking\nThe swarm molecule doesn't track step-by-step state. Instead:\n- Query bd ready --parent=\u003cepic\u003e to find the ready front\n- Query bd list --parent=\u003cepic\u003e --status=closed to find completed\n- Derive progress from children's statuses\n\n## Implementation\n1. New command: bd swarm create \u003cepic-id\u003e [--coordinator=\u003caddr\u003e]\n2. Validate epic structure first (call bd swarm validate)\n3. Create molecule bead:\n - mol_type: swarm\n - epic: \u003cepic-id\u003e\n - coordinator: \u003caddr\u003e\n - status: open\n4. Return the swarm molecule ID\n\n## Single-Issue Wrapping\nIf given a single issue (not epic), auto-wrap:\n- Create an epic with that issue as child\n- Then create swarm molecule\n\n## Reference\n~/gt/docs/swarm-architecture.md - 'Swarm Structure' section\n\n## Acceptance\n- bd swarm create \u003cepic\u003e creates a swarm molecule\n- Molecule has mol_type=swarm\n- Links to epic via epic field\n- Validates structure before creation","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-28T19:11:35.067432-08:00","created_by":"mayor","updated_at":"2025-12-28T21:34:32.026937-08:00","closed_at":"2025-12-28T21:34:32.026937-08:00","dependencies":[{"issue_id":"bd-fa1q","depends_on_id":"bd-oxgi","type":"blocks","created_at":"2025-12-28T19:11:52.428038-08:00","created_by":"daemon"},{"issue_id":"bd-fa1q","depends_on_id":"bd-nkqx","type":"blocks","created_at":"2025-12-28T19:11:52.446532-08:00","created_by":"daemon"}]} +{"id":"bd-fa1q","title":"bd swarm create command","description":"Add bd swarm create to create a swarm molecule from an epic.\n\n## Context\nSwarms ARE persistent molecules - not separate JSON state. This command creates\na swarm molecule that:\n- Links to the epic it orchestrates\n- Has mol_type=swarm\n- Specifies a coordinator\n- Can be discovered by any agent\n\n## Core Principle: Discovery Over Tracking\nThe swarm molecule doesn't track step-by-step state. Instead:\n- Query bd ready --parent=\u003cepic\u003e to find the ready front\n- Query bd list --parent=\u003cepic\u003e --status=closed to find completed\n- Derive progress from children's statuses\n\n## Implementation\n1. New command: bd swarm create \u003cepic-id\u003e [--coordinator=\u003caddr\u003e]\n2. Validate epic structure first (call bd swarm validate)\n3. Create molecule bead:\n - mol_type: swarm\n - epic: \u003cepic-id\u003e\n - coordinator: \u003caddr\u003e\n - status: open\n4. Return the swarm molecule ID\n\n## Single-Issue Wrapping\nIf given a single issue (not epic), auto-wrap:\n- Create an epic with that issue as child\n- Then create swarm molecule\n\n## Reference\n~/gt/docs/swarm-architecture.md - 'Swarm Structure' section\n\n## Acceptance\n- bd swarm create \u003cepic\u003e creates a swarm molecule\n- Molecule has mol_type=swarm\n- Links to epic via epic field\n- Validates structure before creation","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-28T19:11:35.067432-08:00","updated_at":"2025-12-28T21:34:32.026937-08:00","closed_at":"2025-12-28T21:34:32.026937-08:00","created_by":"mayor","dependencies":[{"issue_id":"bd-fa1q","depends_on_id":"bd-nkqx","type":"blocks","created_at":"2025-12-28T19:11:52.446532-08:00","created_by":"daemon"},{"issue_id":"bd-fa1q","depends_on_id":"bd-oxgi","type":"blocks","created_at":"2025-12-28T19:11:52.428038-08:00","created_by":"daemon"}]} {"id":"bd-fa2h","title":"🤝 HANDOFF: v0.31.0 released, molecules discussion","description":"Session completed 0.31.0 release and had important molecules discussion.\n\n## Completed\n- v0.31.0 released (deferred status, audit trail, directory labels, etc.)\n- Fixed lint issues, hook version markers, codesigning\n- All CI green, artifacts verified\n\n## Filed Issues\n- bd-usro: Rename template instantiate → bd mol bond\n- bd-y8bj: Auto-detect identity for bd mail (P1 bug)\n- gt-975: Molecule execution support for polecats/crew\n- gt-976: Crew lifecycle support in Deacon\n\n## Key Insight\nMolecules are the future - TodoWrite is ephemeral, molecules are persistent institutional memory on the world chain. I tried to use TodoWrite for version bump and missed steps (codesigning, MCP verification). Molecules would have caught this.\n\n## Next Steps\n- bd mol bond implementation is priority\n- Max has gt-976 for crew lifecycle (enables automated refresh mid-molecule)\n\nCheck bd ready and gt-975/976 status.","status":"closed","priority":2,"issue_type":"message","created_at":"2025-12-20T17:23:09.889562-08:00","updated_at":"2025-12-21T17:52:18.467069-08:00","closed_at":"2025-12-21T17:52:18.467069-08:00"} {"id":"bd-fasa","title":"Prefix detection treats embedded hyphens as prefix delimiters","description":"The prefix detection logic in bd import incorrectly identifies issues like 'vc-baseline-test' and 'vc-92cl-gate-test' as having different prefixes ('vc-baseline-' and 'vc-92cl-gate-') instead of recognizing them as having the standard 'vc-' prefix with hyphenated suffixes.\n\nThis breaks import with error: 'prefix mismatch detected: database uses vc- but found issues with prefixes: [vc-92cl-gate- (1 issues) vc-baseline- (1 issues)]'\n\nThe prefix should be determined by the pattern: prefix is everything up to and including the first hyphen. The suffix can contain hyphens without being treated as part of the prefix.\n\nExample problematic IDs:\n- vc-baseline-test (detected as prefix: vc-baseline-)\n- vc-92cl-gate-test (detected as prefix: vc-92cl-gate-)\n- vc-test (correctly detected as prefix: vc-)\n\nImpact: Users cannot use descriptive multi-part IDs without triggering false prefix mismatch errors.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-09T14:27:19.046489-08:00","updated_at":"2025-11-09T14:53:53.22312-08:00","closed_at":"2025-11-09T14:53:53.22312-08:00"} {"id":"bd-fb05","title":"Refactor sqlite.go into focused modules","description":"Split sqlite.go (2,298 lines) into focused modules: migrations.go, ids.go, issues.go, events.go, dirty.go, db.go. This will improve maintainability and reduce cognitive load.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-01T11:41:14.805895-07:00","updated_at":"2025-12-14T12:12:46.551226-08:00","closed_at":"2025-11-01T22:56:21.90217-07:00"} @@ -1263,136 +1262,136 @@ {"id":"bd-fb95094c.8","title":"Remove unreachable utility functions","description":"Several small utility functions are unreachable:\n\nFiles to clean:\n1. `internal/storage/sqlite/hash.go` - `computeIssueContentHash` (line 17)\n - Check if entire file can be deleted if only contains this function\n\n2. `internal/config/config.go` - `FileUsed` (line 151)\n - Delete unused config helper\n\n3. `cmd/bd/git_sync_test.go` - `verifyIssueOpen` (line 300)\n - Delete dead test helper\n\n4. `internal/compact/haiku.go` - `HaikuClient.SummarizeTier2` (line 81)\n - Tier 2 summarization not implemented\n - Options: implement feature OR delete method\n\nImpact: Removes 50-100 LOC depending on decisions","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-27T20:30:19.963392-07:00","updated_at":"2025-12-14T12:12:46.496249-08:00","closed_at":"2025-11-07T10:55:55.982696-08:00","dependencies":[{"issue_id":"bd-fb95094c.8","depends_on_id":"bd-fb95094c","type":"parent-child","created_at":"2025-10-27T20:30:19.968126-07:00","created_by":"daemon"}]} {"id":"bd-fb95094c.9","title":"Remove unreachable RPC methods","description":"Several RPC server and client methods are unreachable and should be removed:\n\nServer methods (internal/rpc/server.go):\n- `Server.GetLastImportTime` (line 2116)\n- `Server.SetLastImportTime` (line 2123)\n- `Server.findJSONLPath` (line 2255)\n\nClient methods (internal/rpc/client.go):\n- `Client.Import` (line 311) - RPC import not used (daemon uses autoimport)\n\nEvidence:\n```bash\ngo run golang.org/x/tools/cmd/deadcode@latest -test ./...\n```\n\nImpact: Removes ~80 LOC of unused RPC code","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-27T20:30:19.962209-07:00","updated_at":"2025-12-14T12:12:46.520065-08:00","closed_at":"2025-11-07T10:55:55.984293-08:00","dependencies":[{"issue_id":"bd-fb95094c.9","depends_on_id":"bd-fb95094c","type":"parent-child","created_at":"2025-10-27T20:30:19.965239-07:00","created_by":"daemon"}]} {"id":"bd-fber","title":"Work on gt-8tmz.31: Formula validation specification. Wri...","description":"Work on gt-8tmz.31: Formula validation specification. Write docs/formula-validation.md specifying all validation rules for formulas. When done: 1) bd close gt-8tmz.31, 2) bd sync, 3) git push, 4) gt mq submit","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T19:26:36.741916-08:00","updated_at":"2025-12-25T19:32:10.788141-08:00","closed_at":"2025-12-25T19:32:10.788141-08:00"} -{"id":"bd-fbkd","title":"Gate check should auto-discover non-numeric await_id","description":"When `bd gate check` encounters a gh:run gate with a non-numeric await_id (workflow name hint like 'release.yml'), it currently returns:\n\n```\nawaiting discovery (workflow hint: release.yml) - run 'bd gate discover'\n```\n\nThis requires manual intervention. The fix committed in 8528fcaa added the message, but didn't add auto-discovery.\n\n**Proposal:** `checkGHRun` should automatically call the discovery logic when it encounters a workflow name hint, rather than requiring a separate command.\n\n**Why this matters:**\n- The beads-release formula creates gates with `id = 'release.yml'`\n- Agents running the formula shouldn't need to know about the discover command\n- The chicken-and-egg problem: you can't release the version that fixes the release process\n\n**Implementation:**\n1. In `checkGHRun`, when `!isNumericID(gate.AwaitID)`:\n - Query recent GitHub runs\n - Match using `workflowNameMatches`\n - Auto-update the gate's await_id\n - Then proceed with the normal check","status":"closed","priority":1,"issue_type":"feature","assignee":"beads/crew/emma","created_at":"2026-01-07T00:20:21.829762-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:37:05.876882-08:00","closed_at":"2026-01-07T00:37:05.876882-08:00","close_reason":"Implemented auto-discovery in gate check - uses gh run list --workflow=X and takes most recent run (ZFC-compliant)"} -{"id":"bd-fbl9","title":"Test parent task","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T23:26:53.012747-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-27T23:27:40.44858-08:00","closed_at":"2025-12-27T23:27:40.44858-08:00"} +{"id":"bd-fbkd","title":"Gate check should auto-discover non-numeric await_id","description":"When `bd gate check` encounters a gh:run gate with a non-numeric await_id (workflow name hint like 'release.yml'), it currently returns:\n\n```\nawaiting discovery (workflow hint: release.yml) - run 'bd gate discover'\n```\n\nThis requires manual intervention. The fix committed in 8528fcaa added the message, but didn't add auto-discovery.\n\n**Proposal:** `checkGHRun` should automatically call the discovery logic when it encounters a workflow name hint, rather than requiring a separate command.\n\n**Why this matters:**\n- The beads-release formula creates gates with `id = 'release.yml'`\n- Agents running the formula shouldn't need to know about the discover command\n- The chicken-and-egg problem: you can't release the version that fixes the release process\n\n**Implementation:**\n1. In `checkGHRun`, when `!isNumericID(gate.AwaitID)`:\n - Query recent GitHub runs\n - Match using `workflowNameMatches`\n - Auto-update the gate's await_id\n - Then proceed with the normal check","status":"closed","priority":1,"issue_type":"feature","created_at":"2026-01-07T00:20:21.829762-08:00","updated_at":"2026-01-07T00:37:05.876882-08:00","closed_at":"2026-01-07T00:37:05.876882-08:00","close_reason":"Implemented auto-discovery in gate check - uses gh run list --workflow=X and takes most recent run (ZFC-compliant)","created_by":"beads/crew/emma"} +{"id":"bd-fbl9","title":"Test parent task","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T23:26:53.012747-08:00","updated_at":"2025-12-27T23:27:40.44858-08:00","closed_at":"2025-12-27T23:27:40.44858-08:00","created_by":"beads/crew/emma"} {"id":"bd-fc2d","title":"Refactor sqlite.go (2298 lines)","description":"Break down internal/storage/sqlite/sqlite.go into smaller, more focused modules. The file is currently 2298 lines and should be split into logical components.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-01T19:28:40.899111-07:00","updated_at":"2025-11-01T22:21:01.729379-07:00","closed_at":"2025-11-01T22:21:01.729379-07:00"} {"id":"bd-fcl1","title":"Merge: bd-au0.5","description":"branch: polecat/Searcher\ntarget: main\nsource_issue: bd-au0.5\nrig: beads","status":"closed","priority":1,"issue_type":"merge-request","created_at":"2025-12-23T13:39:11.946667-08:00","updated_at":"2025-12-23T19:12:08.346454-08:00","closed_at":"2025-12-23T19:12:08.346454-08:00"} {"id":"bd-fd56","title":"Wrap git operations in GitClient interface","description":"Create internal/daemonrunner/git.go with GitClient interface (HasUpstream, HasChanges, Commit, Push, Pull). Default implementation using os/exec. Use in Syncer and Run loop for testability.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-01T11:41:14.88734-07:00","updated_at":"2025-11-02T12:32:00.159595-08:00","closed_at":"2025-11-02T12:32:00.159597-08:00"} {"id":"bd-fd8753d9","title":"Document bd edit command and verify MCP exclusion","description":"Follow-up from PR #152:\n1. Add \"bd edit\" to AGENTS.md with \"Humans only\" note\n2. Verify MCP server doesn't expose bd edit command\n3. Consider adding test for command registration","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-26T13:23:47.982295-07:00","updated_at":"2025-12-14T12:12:46.527274-08:00","closed_at":"2025-11-06T19:41:08.675575-08:00"} -{"id":"bd-fdiuw","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:10:18.24073-08:00","created_by":"beads/witness","updated_at":"2026-01-10T21:10:18.280577-08:00","closed_at":"2026-01-10T21:10:18.280577-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-fdiuw","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:10:18.24073-08:00","updated_at":"2026-01-10T21:10:18.280577-08:00","closed_at":"2026-01-10T21:10:18.280577-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} {"id":"bd-febc","title":"npm package for bd with native binaries","description":"Create an npm package that wraps native bd binaries for easy installation in Claude Code for Web and other Node.js environments.\n\n## Problem\nClaude Code for Web sandboxes are full Linux VMs with npm support, but cannot easily download binaries from GitHub releases due to network restrictions or tooling limitations.\n\n## Solution\nPublish bd as an npm package that:\n- Downloads platform-specific native binaries during postinstall\n- Provides a CLI wrapper that invokes the native binary\n- Works seamlessly in Claude Code for Web SessionStart hooks\n- Maintains full feature parity (uses native SQLite)\n\n## Benefits vs WASM\n- ✅ Full SQLite support (no custom VFS needed)\n- ✅ All features work identically to native bd\n- ✅ Better performance (native vs WASM overhead)\n- ✅ ~4 hours effort vs ~2 days for WASM\n- ✅ Minimal maintenance burden\n\n## Success Criteria\n- npm install @beads/bd works in Claude Code for Web\n- All bd commands function identically to native binary\n- SessionStart hook documented for auto-installation\n- Package published to npm registry","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-02T23:39:37.684109-08:00","updated_at":"2025-11-03T10:39:44.932565-08:00","closed_at":"2025-11-03T10:39:44.932565-08:00"} -{"id":"bd-fedb","title":"Polecats should spawn with auto-accept mode enabled","description":"During swarm bd-784c, polecats (Toast, Nux) were spawned without --dangerously-skip-permissions or equivalent auto-accept mode.\n\n**Problem:**\nEvery edit, bash command, and tool use required manual confirmation via tmux send-keys. This defeats the purpose of autonomous polecat operation.\n\n**Expected:**\nPolecats in a swarm should run with permissions bypassed so they can work autonomously.\n\n**Workaround used:**\n- Manually sent Enter keys via tmux to accept prompts\n- Eventually polecats entered 'bypass permissions on' mode after restart\n\n**Suggestion:**\n- gt sling should pass --dangerously-skip-permissions by default for polecats\n- Or polecats should have a .claude/settings.local.json pre-configured for auto-accept","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-28T16:17:47.061327-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T22:14:19.109728-08:00","closed_at":"2025-12-28T22:14:19.109728-08:00"} +{"id":"bd-fedb","title":"Polecats should spawn with auto-accept mode enabled","description":"During swarm bd-784c, polecats (Toast, Nux) were spawned without --dangerously-skip-permissions or equivalent auto-accept mode.\n\n**Problem:**\nEvery edit, bash command, and tool use required manual confirmation via tmux send-keys. This defeats the purpose of autonomous polecat operation.\n\n**Expected:**\nPolecats in a swarm should run with permissions bypassed so they can work autonomously.\n\n**Workaround used:**\n- Manually sent Enter keys via tmux to accept prompts\n- Eventually polecats entered 'bypass permissions on' mode after restart\n\n**Suggestion:**\n- gt sling should pass --dangerously-skip-permissions by default for polecats\n- Or polecats should have a .claude/settings.local.json pre-configured for auto-accept","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-28T16:17:47.061327-08:00","updated_at":"2025-12-28T22:14:19.109728-08:00","closed_at":"2025-12-28T22:14:19.109728-08:00","created_by":"beads/crew/dave"} {"id":"bd-fej5","title":"bd hook: detect agent from cwd instead of defaulting to $USER","description":"**Problem:**\n`bd hook` without `--agent` defaults to `$USER` (e.g., \"stevey\") instead of detecting the agent identity from the current working directory.\n\n**Expected behavior:**\nWhen running from `/Users/stevey/gt/beads/crew/dave`, the agent should be detected as `beads/crew/dave`.\n\n**Current behavior:**\n```bash\n$ pwd\n/Users/stevey/gt/beads/crew/dave\n$ bd hook\nHook: stevey\n (empty)\n\n$ bd hook --agent beads/crew/dave\nHook: beads/crew/dave\n 📌 bd-hobo (mol) - open\n```\n\n**Fix:**\nbd hook should use the same cwd-based agent detection that other commands use (similar to how `gt mail` determines identity from cwd).","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-24T20:01:27.613892-08:00","updated_at":"2025-12-25T12:41:10.65257-08:00","closed_at":"2025-12-25T12:41:10.65257-08:00"} -{"id":"bd-fen8","title":"Remove Gas Town types from IssueType enum","description":"Remove agent, role, rig, convoy, slot from built-in IssueType constants.\n\n## Work\n- Remove TypeAgent, TypeRole, TypeRig, TypeConvoy, TypeSlot constants\n- Update IsValid() switch statement to remove these types\n- Update RequiredSections() to remove agent/role/convoy references in default case comment\n\n## Files\n- internal/types/types.go","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-06T20:40:18.97767-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-06T22:17:27.356036-08:00","closed_at":"2026-01-06T22:17:27.356036-08:00","close_reason":"Removed Gas Town types (agent, role, rig, convoy, slot) from IssueType enum and updated all tests","dependencies":[{"issue_id":"bd-fen8","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.547683-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-fen8","depends_on_id":"bd-649s","type":"blocks","created_at":"2026-01-06T20:41:20.894067-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-fen8","depends_on_id":"bd-16z7","type":"blocks","created_at":"2026-01-06T22:06:03.350893-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-fen8","depends_on_id":"bd-4jxh","type":"blocks","created_at":"2026-01-06T22:06:03.379232-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-fen8","depends_on_id":"bd-cn56","type":"blocks","created_at":"2026-01-06T22:06:03.40727-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-fen8","depends_on_id":"bd-4kp2","type":"blocks","created_at":"2026-01-06T22:06:15.543349-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-fen8","depends_on_id":"bd-mgt2","type":"blocks","created_at":"2026-01-06T22:06:15.571831-08:00","created_by":"beads/crew/dave"}]} +{"id":"bd-fen8","title":"Remove Gas Town types from IssueType enum","description":"Remove agent, role, rig, convoy, slot from built-in IssueType constants.\n\n## Work\n- Remove TypeAgent, TypeRole, TypeRig, TypeConvoy, TypeSlot constants\n- Update IsValid() switch statement to remove these types\n- Update RequiredSections() to remove agent/role/convoy references in default case comment\n\n## Files\n- internal/types/types.go","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-06T20:40:18.97767-08:00","updated_at":"2026-01-06T22:17:27.356036-08:00","closed_at":"2026-01-06T22:17:27.356036-08:00","close_reason":"Removed Gas Town types (agent, role, rig, convoy, slot) from IssueType enum and updated all tests","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-fen8","depends_on_id":"bd-cn56","type":"blocks","created_at":"2026-01-06T22:06:03.40727-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-fen8","depends_on_id":"bd-4kp2","type":"blocks","created_at":"2026-01-06T22:06:15.543349-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-fen8","depends_on_id":"bd-mgt2","type":"blocks","created_at":"2026-01-06T22:06:15.571831-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-fen8","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.547683-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-fen8","depends_on_id":"bd-649s","type":"blocks","created_at":"2026-01-06T20:41:20.894067-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-fen8","depends_on_id":"bd-16z7","type":"blocks","created_at":"2026-01-06T22:06:03.350893-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-fen8","depends_on_id":"bd-4jxh","type":"blocks","created_at":"2026-01-06T22:06:03.379232-08:00","created_by":"beads/crew/dave"}]} {"id":"bd-ffjt","title":"Unify template.go and mol.go under bd mol","description":"Consolidate the two DAG-template systems into one under the mol command. mol.go (on rictus branch) has the right UX (catalog/show/bond), template.go has the mechanics. Merge them, deprecate bd template commands.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-20T23:52:13.208972-08:00","updated_at":"2025-12-21T00:01:59.283765-08:00","closed_at":"2025-12-21T00:01:59.283765-08:00"} -{"id":"bd-ffp5","title":"Review PR #908: feat(doctor) external hook managers","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #908 from roelofb.\n\nPR: https://github.com/anthropics/beads/pull/908\nChanges: +1364/-5, 4 files (doctor/fix/hooks.go, hooks_test.go, git.go, CHANGELOG.md)\n\nFeature: detect external hook managers and check bd integration\n\nReview checklist:\n- [ ] Code quality and style\n- [ ] Tests pass\n- [ ] Feature works as intended\n- [ ] Approve or request changes","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/giles","created_at":"2026-01-05T19:09:22.112242-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-05T19:12:29.744463-08:00","closed_at":"2026-01-05T19:12:29.744463-08:00","close_reason":"PR #908 reviewed, approved, and merged"} +{"id":"bd-ffp5","title":"Review PR #908: feat(doctor) external hook managers","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #908 from roelofb.\n\nPR: https://github.com/anthropics/beads/pull/908\nChanges: +1364/-5, 4 files (doctor/fix/hooks.go, hooks_test.go, git.go, CHANGELOG.md)\n\nFeature: detect external hook managers and check bd integration\n\nReview checklist:\n- [ ] Code quality and style\n- [ ] Tests pass\n- [ ] Feature works as intended\n- [ ] Approve or request changes","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-05T19:09:22.112242-08:00","updated_at":"2026-01-05T19:12:29.744463-08:00","closed_at":"2026-01-05T19:12:29.744463-08:00","close_reason":"PR #908 reviewed, approved, and merged","created_by":"beads/crew/emma"} {"id":"bd-ffr9","title":"deletions.jsonl recreated locally after tombstone migration","description":"After running bd migrate-tombstones and removing deletions.jsonl from git, the file gets recreated locally on subsequent bd commands.\n\n**Steps to reproduce:**\n1. Run bd migrate-tombstones (converts to inline tombstones)\n2. Remove deletions.jsonl from git and filesystem\n3. Run bd sync or bd stats\n4. deletions.jsonl reappears\n\n**Expected behavior:**\nAfter migration, deletions.jsonl should not be recreated. All tombstone data should come from inline tombstones in issues.jsonl.\n\n**Workaround:** Add deletions.jsonl to .gitignore to prevent re-tracking. File still gets created but won't pollute the repo.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-15T17:28:50.949625-08:00","updated_at":"2025-12-16T00:54:56.459227-08:00","closed_at":"2025-12-16T00:54:56.459227-08:00"} -{"id":"bd-fghuk","title":"Review and merge PR #1058: bump golang.org/x/mod v0.31→v0.32","description":"dispatched_by: beads/crew/emma\n\n## Easy-win PR Review\n\nPR: https://github.com/steveyegge/beads/pull/1058\nType: Dependabot dependency bump (Go modules)\nChange: golang.org/x/mod 0.31.0 → 0.32.0\n\n## Task\n1. Review the PR diff: `gh pr diff 1058 --repo steveyegge/beads`\n2. Check CI status: `gh pr checks 1058 --repo steveyegge/beads`\n3. If CI passes and diff looks safe, approve and merge:\n `gh pr review 1058 --repo steveyegge/beads --approve`\n `gh pr merge 1058 --repo steveyegge/beads --squash`\n4. Close this bead when done\n\n## Notes\n- Minor version bump, routine Go dependency update","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/wolf","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:28:35.652289-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T19:30:26.963389-08:00","closed_at":"2026-01-12T19:30:26.963389-08:00","close_reason":"Reviewed PR #1058. Diff is safe (routine Go dependency bump). Cannot merge due to pre-existing CI failures: 1) plugin.json version mismatch, 2) Nix vendorHash needs update. Added review comment. PR ready to merge once infra issues fixed.","external_ref":"gh-1058"} -{"id":"bd-fgqpg","title":"bd mol ready --gated: hardcoded query limits","description":"Hardcoded Limit:100 for closed gates and Limit:500 for ready work (mol_ready_gated.go:122,134). Could miss molecules in large deployments. Consider making configurable or at least documenting the limitation.","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-08T21:32:18.566735-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T21:32:18.566735-08:00","dependencies":[{"issue_id":"bd-fgqpg","depends_on_id":"bd-ka761","type":"discovered-from","created_at":"2026-01-08T21:32:27.973688-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-fghuk","title":"Review and merge PR #1058: bump golang.org/x/mod v0.31→v0.32","description":"dispatched_by: beads/crew/emma\n\n## Easy-win PR Review\n\nPR: https://github.com/steveyegge/beads/pull/1058\nType: Dependabot dependency bump (Go modules)\nChange: golang.org/x/mod 0.31.0 → 0.32.0\n\n## Task\n1. Review the PR diff: `gh pr diff 1058 --repo steveyegge/beads`\n2. Check CI status: `gh pr checks 1058 --repo steveyegge/beads`\n3. If CI passes and diff looks safe, approve and merge:\n `gh pr review 1058 --repo steveyegge/beads --approve`\n `gh pr merge 1058 --repo steveyegge/beads --squash`\n4. Close this bead when done\n\n## Notes\n- Minor version bump, routine Go dependency update","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T19:28:35.652289-08:00","updated_at":"2026-01-12T19:30:26.963389-08:00","closed_at":"2026-01-12T19:30:26.963389-08:00","close_reason":"Reviewed PR #1058. Diff is safe (routine Go dependency bump). Cannot merge due to pre-existing CI failures: 1) plugin.json version mismatch, 2) Nix vendorHash needs update. Added review comment. PR ready to merge once infra issues fixed.","created_by":"beads/crew/emma"} +{"id":"bd-fgqpg","title":"bd mol ready --gated: hardcoded query limits","description":"Hardcoded Limit:100 for closed gates and Limit:500 for ready work (mol_ready_gated.go:122,134). Could miss molecules in large deployments. Consider making configurable or at least documenting the limitation.","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-08T21:32:18.566735-08:00","updated_at":"2026-01-08T21:32:18.566735-08:00","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-fgqpg","depends_on_id":"bd-ka761","type":"discovered-from","created_at":"2026-01-08T21:32:27.973688-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-fgw3","title":"Update local installation","description":"Run install script or brew upgrade to get new version locally: curl -fsSL .../install.sh | bash","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T22:56:05.052016-08:00","updated_at":"2025-12-20T00:49:51.928221-08:00","closed_at":"2025-12-20T00:25:52.805029-08:00","dependencies":[{"issue_id":"bd-fgw3","depends_on_id":"bd-6s61","type":"parent-child","created_at":"2025-12-19T22:56:15.248427-08:00","created_by":"daemon"},{"issue_id":"bd-fgw3","depends_on_id":"bd-si4g","type":"blocks","created_at":"2025-12-19T22:56:23.497325-08:00","created_by":"daemon"}]} -{"id":"bd-fh5gq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:01:14.863446-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:01:14.926676-08:00","closed_at":"2026-01-11T19:01:14.926676-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-fherg","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:29:38.494746-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T00:29:38.531019-08:00","closed_at":"2026-01-09T00:29:38.531019-08:00","close_reason":"auto-closed session event"} +{"id":"bd-fh5gq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:01:14.863446-08:00","updated_at":"2026-01-11T19:01:14.926676-08:00","closed_at":"2026-01-11T19:01:14.926676-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-fherg","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:29:38.494746-08:00","updated_at":"2026-01-09T00:29:38.531019-08:00","closed_at":"2026-01-09T00:29:38.531019-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-fi05","title":"bd sync fails with orphaned issues and duplicate ID conflict","description":"After fixing the deleted_at TEXT column scanning bug (commit 18b1eb2), bd sync still fails with two issues:\n\n1. Orphan Detection Warning: 12 orphaned child issues whose parents no longer exist (bd-cb64c226.* and bd-cbed9619.*)\n\n2. Import Failure: UNIQUE constraint failed for bd-360 - this tombstone exists in both DB and JSONL\n\nError: \"Import failed: error creating depth-0 issues: bulk insert issues: failed to insert issue bd-360: sqlite3: constraint failed: UNIQUE constraint failed: issues.id\"\n\nFix options:\n- Delete orphaned child issues with bd delete\n- Resolve bd-360 duplicate (in deletions.jsonl vs tombstone in DB)\n- Reset sync branch: git branch -f beads-sync main \u0026\u0026 git push --force-with-lease origin beads-sync","notes":"Fixed tombstone constraint violation bug. When deleting closed issues, the CHECK constraint (status = 'closed') = (closed_at IS NOT NULL) was violated because CreateTombstone didn't clear closed_at. Fix: set closed_at = NULL in tombstone creation SQL.\n\nThe sync data corruption (orphaned issues in beads-sync branch) requires manual cleanup: reset sync branch with 'git branch -f beads-sync main \u0026\u0026 git push --force-with-lease origin beads-sync'","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-12-13T07:14:33.831346-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} -{"id":"bd-firao","title":"BG's issue to reopen","status":"open","priority":1,"issue_type":"bug","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:11.502623-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:11.641379-08:00"} -{"id":"bd-fjth5","title":"Refactor: Use types.MaxHierarchyDepth constant for fallback default","description":"The GH#995 fix added fallback defaults in two places:\n\n- internal/storage/sqlite/hash_ids.go:58: `maxDepth = 3 // fallback default`\n- internal/storage/memory/memory.go:1606: `maxDepth = 3 // fallback default`\n\nThese duplicate the value from types.MaxHierarchyDepth (internal/types/id_generator.go:92).\n\nShould reference the constant instead of hardcoding 3 to maintain single source of truth.\n\nLow priority - cosmetic improvement.","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-10T13:36:08.122138-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-10T13:36:08.122138-08:00","labels":["refactor"]} +{"id":"bd-firao","title":"BG's issue to reopen","status":"open","priority":1,"issue_type":"bug","created_at":"2026-01-11T18:16:11.502623-08:00","updated_at":"2026-01-11T18:16:11.641379-08:00","created_by":"beads/crew/wolf"} +{"id":"bd-fjth5","title":"Refactor: Use types.MaxHierarchyDepth constant for fallback default","description":"The GH#995 fix added fallback defaults in two places:\n\n- internal/storage/sqlite/hash_ids.go:58: `maxDepth = 3 // fallback default`\n- internal/storage/memory/memory.go:1606: `maxDepth = 3 // fallback default`\n\nThese duplicate the value from types.MaxHierarchyDepth (internal/types/id_generator.go:92).\n\nShould reference the constant instead of hardcoding 3 to maintain single source of truth.\n\nLow priority - cosmetic improvement.","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-10T13:36:08.122138-08:00","updated_at":"2026-01-10T13:36:08.122138-08:00","created_by":"beads/crew/fang"} {"id":"bd-fjuf","title":"Work on gt-8tmz.10: Rename Engineer in Box to Shiny. Rena...","description":"Work on gt-8tmz.10: Rename Engineer in Box to Shiny. Rename mol-engineer-in-box references to mol-shiny or just 'shiny'. Update docs and code in internal/formula/ and .beads/formulas/. When done: 1) bd close gt-8tmz.10, 2) bd sync, 3) git push, 4) gt mq submit","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T19:26:18.426959-08:00","updated_at":"2025-12-25T19:30:19.947382-08:00","closed_at":"2025-12-25T19:30:19.947382-08:00"} {"id":"bd-fkdw","title":"Update bash-agent example with Agent Mail integration","description":"Add Agent Mail integration to examples/bash-agent/agent.sh using curl for HTTP calls.\n\nAcceptance Criteria:\n- Health check function using curl\n- Reserve issue before claiming\n- Send notifications on status change\n- Release on completion\n- Graceful degradation if curl fails\n- No bash errors when Agent Mail unavailable\n\nFile: examples/bash-agent/agent.sh","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-07T22:42:28.722048-08:00","updated_at":"2025-11-08T01:09:25.900138-08:00","closed_at":"2025-11-08T01:09:25.900138-08:00","dependencies":[{"issue_id":"bd-fkdw","depends_on_id":"bd-m9th","type":"blocks","created_at":"2025-11-07T23:04:01.398259-08:00","created_by":"daemon"}]} {"id":"bd-fkp68","title":"Digest: mol-refinery-patrol","description":"Patrol: queue empty, no work processed","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T23:37:26.823421-08:00","updated_at":"2026-01-10T23:37:26.823421-08:00","closed_at":"2026-01-10T23:37:26.823378-08:00","close_reason":"Squashed from 11 wisps"} -{"id":"bd-fl9xb","title":"Review PR #960: Fix filepath.Rel sync error","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #960 (steveyegge/beads)\n\nPR: https://github.com/steveyegge/beads/pull/960\nAuthor: peterkc\nFixes: #959\n\nFixes bd sync failing with filepath.Rel error when dbPath is relative.\n- gh pr view 960 --repo steveyegge/beads\n- gh pr diff 960 --repo steveyegge/beads\n- If good: gh pr merge 960 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/giles","created_at":"2026-01-08T14:30:23.843917-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:37:19.657459-08:00","closed_at":"2026-01-08T14:37:19.657459-08:00","close_reason":"PR #960 reviewed and merged. Fix ensures dbPath is always absolute via CanonicalizePath, preventing filepath.Rel errors in sync-branch mode."} +{"id":"bd-fl9xb","title":"Review PR #960: Fix filepath.Rel sync error","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #960 (steveyegge/beads)\n\nPR: https://github.com/steveyegge/beads/pull/960\nAuthor: peterkc\nFixes: #959\n\nFixes bd sync failing with filepath.Rel error when dbPath is relative.\n- gh pr view 960 --repo steveyegge/beads\n- gh pr diff 960 --repo steveyegge/beads\n- If good: gh pr merge 960 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-08T14:30:23.843917-08:00","updated_at":"2026-01-08T14:37:19.657459-08:00","closed_at":"2026-01-08T14:37:19.657459-08:00","close_reason":"PR #960 reviewed and merged. Fix ensures dbPath is always absolute via CanonicalizePath, preventing filepath.Rel errors in sync-branch mode.","created_by":"beads/crew/emma"} {"id":"bd-fmdy","title":"Merge: bd-kzda","description":"branch: polecat/toast\ntarget: main\nsource_issue: bd-kzda\nrig: beads","status":"closed","priority":3,"issue_type":"merge-request","created_at":"2025-12-23T00:27:28.952413-08:00","updated_at":"2025-12-23T01:33:25.731326-08:00","closed_at":"2025-12-23T01:33:25.731326-08:00"} -{"id":"bd-fmyez","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T23:04:16.116235-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T23:04:16.188262-08:00","closed_at":"2026-01-11T23:04:16.188262-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-fmyez","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T23:04:16.116235-08:00","updated_at":"2026-01-11T23:04:16.188262-08:00","closed_at":"2026-01-11T23:04:16.188262-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-fom","title":"Remove all deletions.jsonl code except migration","description":"There's deletions manifest code spread across the entire codebase that should have been removed after tombstone migration:\n\nFiles with deletions code (non-migration):\n- internal/deletions/ - entire package\n- cmd/bd/sync.go - 25+ references, auto-compact, sanitize\n- cmd/bd/delete.go - dual-writes to deletions.jsonl\n- internal/importer/importer.go - checks deletions manifest\n- internal/syncbranch/worktree.go - merges deletions.jsonl\n- cmd/bd/doctor/fix/sync.go - cleanupDeletionsManifest\n- cmd/bd/doctor/fix/deletions.go - HydrateDeletionsManifest\n- cmd/bd/integrity.go - checks deletions for data loss\n- cmd/bd/deleted.go - entire command\n- cmd/bd/compact.go - pruneDeletionsManifest\n- cmd/bd/doctor.go - checkDeletionsManifest\n- Plus many more\n\nAction: Aggressively remove all non-migration deletions code. Tombstones are the only deletion mechanism now.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-16T13:29:04.960863-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-foqmt","title":"Fix periodic auto-pull never executing git pull (GH#1015)","description":"dispatched_by: beads/crew/emma\n\n## GitHub Issue\nhttps://github.com/steveyegge/beads/issues/1015\n\n## Problem\nThe `remoteSyncTicker` periodic sync never actually pulls from remote because `performAutoImport()` has a `hasJSONLChanged()` check that returns early BEFORE the git pull can execute.\n\n## Root Cause\nIn `cmd/bd/daemon_sync.go`, `performAutoImport()` checks the hash BEFORE pulling:\n- Check compares local JSONL to database hash\n- Since no git pull happened, local file hasn't changed\n- Returns early, never reaches `syncBranchPull()`\n\n## Fix\nMove `hasJSONLChanged()` check to AFTER `syncBranchPull()`:\n1. Pull from git first\n2. Then check if pulled JSONL differs from DB\n3. If changed, proceed with import\n\n## Files\n- `cmd/bd/daemon_sync.go` - `performAutoImport()` function","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/dave","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:45:38.706946-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T02:48:55.333534-08:00","closed_at":"2026-01-12T02:48:55.333536-08:00"} -{"id":"bd-fqze8","title":"Add 'crystallizes' field for work economics","description":"dispatched_by: beads/crew/emma\n\nAdd boolean field to track whether work compounds (crystallizes=true: code, features) or evaporates (crystallizes=false: ops, support). Per Decision 006, this affects CV weighting. Default: false (conservative).","status":"closed","priority":1,"issue_type":"task","assignee":"beads/crew/fang","created_at":"2026-01-10T16:34:06.487466-08:00","created_by":"gastown/crew/max","updated_at":"2026-01-10T23:21:17.458797-08:00","closed_at":"2026-01-10T23:21:17.458797-08:00","close_reason":"Crystallizes field implemented","dependencies":[{"issue_id":"bd-fqze8","depends_on_id":"bd-imi7w","type":"parent-child","created_at":"2026-01-10T16:34:21.496543-08:00","created_by":"gastown/crew/max"}]} -{"id":"bd-frkzo","title":"Session ended: gt-gastown-crew-george","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T21:51:17.681136-08:00","created_by":"beads/witness","updated_at":"2026-01-09T21:15:40.68839-08:00","closed_at":"2026-01-09T21:15:40.68839-08:00","close_reason":"Stale session ended events"} +{"id":"bd-foqmt","title":"Fix periodic auto-pull never executing git pull (GH#1015)","description":"dispatched_by: beads/crew/emma\n\n## GitHub Issue\nhttps://github.com/steveyegge/beads/issues/1015\n\n## Problem\nThe `remoteSyncTicker` periodic sync never actually pulls from remote because `performAutoImport()` has a `hasJSONLChanged()` check that returns early BEFORE the git pull can execute.\n\n## Root Cause\nIn `cmd/bd/daemon_sync.go`, `performAutoImport()` checks the hash BEFORE pulling:\n- Check compares local JSONL to database hash\n- Since no git pull happened, local file hasn't changed\n- Returns early, never reaches `syncBranchPull()`\n\n## Fix\nMove `hasJSONLChanged()` check to AFTER `syncBranchPull()`:\n1. Pull from git first\n2. Then check if pulled JSONL differs from DB\n3. If changed, proceed with import\n\n## Files\n- `cmd/bd/daemon_sync.go` - `performAutoImport()` function","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-12T02:45:38.706946-08:00","updated_at":"2026-01-12T02:48:55.333534-08:00","closed_at":"2026-01-12T02:48:55.333536-08:00","created_by":"beads/crew/emma"} +{"id":"bd-fqze8","title":"Add 'crystallizes' field for work economics","description":"dispatched_by: beads/crew/emma\n\nAdd boolean field to track whether work compounds (crystallizes=true: code, features) or evaporates (crystallizes=false: ops, support). Per Decision 006, this affects CV weighting. Default: false (conservative).","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-10T16:34:06.487466-08:00","updated_at":"2026-01-10T23:21:17.458797-08:00","closed_at":"2026-01-10T23:21:17.458797-08:00","close_reason":"Crystallizes field implemented","created_by":"gastown/crew/max","dependencies":[{"issue_id":"bd-fqze8","depends_on_id":"bd-imi7w","type":"parent-child","created_at":"2026-01-10T16:34:21.496543-08:00","created_by":"gastown/crew/max"}]} +{"id":"bd-frkzo","title":"Session ended: gt-gastown-crew-george","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T21:51:17.681136-08:00","updated_at":"2026-01-09T21:15:40.68839-08:00","closed_at":"2026-01-09T21:15:40.68839-08:00","close_reason":"Stale session ended events","created_by":"beads/witness"} {"id":"bd-fsb1","title":"Test issue","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-05T11:21:51.383077-08:00","updated_at":"2025-11-05T11:21:56.888913-08:00","closed_at":"2025-11-05T11:21:56.888913-08:00"} -{"id":"bd-ft5pw","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T00:37:08.760978-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T00:37:08.823855-08:00","closed_at":"2026-01-11T00:37:08.823855-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ft5pw","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T00:37:08.760978-08:00","updated_at":"2026-01-11T00:37:08.823855-08:00","closed_at":"2026-01-11T00:37:08.823855-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-fu83","title":"Fix daemon/direct mode inconsistency in relate and duplicate commands","description":"The relate.go and duplicate.go commands have inconsistent daemon/direct mode handling:\n\nWhen daemonClient is connected, they resolve IDs via RPC but then perform updates directly via store.UpdateIssue(), bypassing the daemon.\n\nAffected locations:\n- relate.go:125-139 (runRelate update)\n- relate.go:235-246 (runUnrelate update) \n- duplicate.go:120 (runDuplicate update)\n- duplicate.go:207 (runSupersede update)\n\nShould either use RPC for updates when daemon is running, or document why direct access is intentional.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-16T20:52:54.164189-08:00","updated_at":"2025-12-21T21:47:14.10222-08:00","closed_at":"2025-12-21T21:47:14.10222-08:00"} -{"id":"bd-fub6l","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T17:41:38.092677-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T17:41:38.166262-08:00","closed_at":"2026-01-13T17:41:38.166262-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-fub6l","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T17:41:38.092677-08:00","updated_at":"2026-01-13T17:41:38.166262-08:00","closed_at":"2026-01-13T17:41:38.166262-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-fufvq","title":"Digest: mol-refinery-patrol","description":"Patrol: queue empty, no merges, main healthy","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T05:05:44.457291-08:00","updated_at":"2026-01-11T05:05:44.457291-08:00","closed_at":"2026-01-11T05:05:44.457249-08:00","close_reason":"Squashed from 11 wisps"} -{"id":"bd-fv7a1","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:28:08.449521-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T01:28:08.496985-08:00","closed_at":"2026-01-12T01:28:08.496985-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-fw756","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:25:19.294098-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T18:25:19.355743-08:00","closed_at":"2026-01-11T18:25:19.355743-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-fwtow","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:06:35.151907-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T23:06:35.196433-08:00","closed_at":"2026-01-12T23:06:35.196433-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-fv7a1","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T01:28:08.449521-08:00","updated_at":"2026-01-12T01:28:08.496985-08:00","closed_at":"2026-01-12T01:28:08.496985-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-fw756","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T18:25:19.294098-08:00","updated_at":"2026-01-11T18:25:19.355743-08:00","closed_at":"2026-01-11T18:25:19.355743-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-fwtow","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T23:06:35.151907-08:00","updated_at":"2026-01-12T23:06:35.196433-08:00","closed_at":"2026-01-12T23:06:35.196433-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-fx7v","title":"Improve test coverage for cmd/bd/doctor/fix (23.9% → 50%)","description":"The doctor/fix package has only 23.9% test coverage. The doctor fix functionality is important for troubleshooting.\n\nCurrent coverage: 23.9%\nTarget coverage: 50%","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-13T20:43:05.67127-08:00","updated_at":"2025-12-23T22:32:34.337963-08:00","closed_at":"2025-12-23T22:32:34.337963-08:00"} {"id":"bd-fxc7m","title":"Digest: mol-refinery-patrol","description":"Patrol: MQ empty, no branches to process","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-13T17:13:21.717151-08:00","updated_at":"2026-01-13T17:13:21.717151-08:00","closed_at":"2026-01-13T17:13:21.717102-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-fy4q","title":"Phase 1.2 follow-up: Clarify format storage","description":"Phase 1.2 created the bdt executable structure but issues.toon is currently stored in JSONL format, not TOON format.\n\nThis is intentional for now:\n- Phase 1.2 (bd-jv4w): Just infrastructure - separate binary, separate directory\n- Phase 1.3 (bd-j0tr): Implement actual TOON encoding/writing\n\nFor now, keep as-is: filename '.toon' signals intent, content is JSONL (interim format). Phase 1.3 will switch to actual TOON.","status":"hooked","priority":3,"issue_type":"task","created_at":"2025-12-19T14:03:19.491040345-07:00","updated_at":"2025-12-30T15:44:43.351039-08:00","dependencies":[{"issue_id":"bd-fy4q","depends_on_id":"bd-jv4w","type":"discovered-from","created_at":"2025-12-19T14:03:19.498933555-07:00","created_by":"daemon"}]} -{"id":"bd-fyb56","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T01:03:03.391571-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T01:03:03.427417-08:00","closed_at":"2026-01-09T01:03:03.427417-08:00","close_reason":"auto-closed session event"} +{"id":"bd-fyb56","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T01:03:03.391571-08:00","updated_at":"2026-01-09T01:03:03.427417-08:00","closed_at":"2026-01-09T01:03:03.427417-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-fzbg","title":"Update python-agent example with Agent Mail integration","description":"Modify examples/python-agent/agent.py to use Agent Mail adapter at 4 integration points.\n\nAcceptance Criteria:\n- Import and initialize adapter\n- Check inbox before find_ready_work()\n- Reserve issue before claim_task()\n- Notify on status changes\n- Release reservation on complete_task()\n- Works identically when Agent Mail disabled\n- No changes required to core Beads CLI\n\nFile: examples/python-agent/agent.py","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-07T22:42:28.661337-08:00","updated_at":"2025-11-08T00:20:35.213902-08:00","closed_at":"2025-11-08T00:20:35.213902-08:00","dependencies":[{"issue_id":"bd-fzbg","depends_on_id":"bd-m9th","type":"blocks","created_at":"2025-11-07T23:04:01.315332-08:00","created_by":"daemon"}]} -{"id":"bd-g1ai","title":"Merge: opal-1767106266450","description":"branch: polecat/opal-1767106266450\ntarget: main\nsource_issue: opal-1767106266450\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T07:03:00.719374-08:00","created_by":"beads/polecats/opal","updated_at":"2025-12-30T15:44:43.359036-08:00","closed_at":"2025-12-30T10:27:23.067611-08:00"} -{"id":"bd-g2hm8","title":"Design: Reconcile identity model across federation, rigs, and sovereignty tiers","description":"Deep design work needed to reconcile:\n\n1. Identity hierarchy: Human \u003e Town \u003e Rig \u003e Agent\n2. Town = Human principle (single-human towns, federation for collaboration)\n3. Sovereignty tiers per rig (public/org/pseudonymous/anonymous)\n4. Reputation aggregation across different sovereignty levels\n5. Anonymous chain reputation (cryptographic identity separate from human)\n6. Account-switching problem (executor changes, work context persists)\n\nKey docs to reconcile:\n- decisions/008-identity-model.md\n- PLATFORM-OF-PLATFORMS.md (sovereignty tiers)\n- FEDERATION.md (new identity section)\n\nOpen questions:\n- Rig sovereignty changes (does historical work become public?)\n- Cross-rig reputation (how does Tier 4 affect Tier 1 CV?)\n- Key rotation and ownership proofs\n- Rig migration between towns\n\nSee FEDERATION.md 'Identity Hierarchy and Sovereignty' section for context.","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-10T19:02:29.537526-08:00","created_by":"gastown/crew/max","updated_at":"2026-01-10T19:09:51.509701-08:00","closed_at":"2026-01-10T19:09:51.509701-08:00","close_reason":"Fleshed out identity hierarchy design in FEDERATION.md. Key resolutions: towns single-owner with human-controlled linking; reputation flows filtered by sovereignty tiers; T4 work isolated to crypto keys; all 5 open questions answered."} +{"id":"bd-g1ai","title":"Merge: opal-1767106266450","description":"branch: polecat/opal-1767106266450\ntarget: main\nsource_issue: opal-1767106266450\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T07:03:00.719374-08:00","updated_at":"2025-12-30T15:44:43.359036-08:00","closed_at":"2025-12-30T10:27:23.067611-08:00","created_by":"beads/polecats/opal"} +{"id":"bd-g2hm8","title":"Design: Reconcile identity model across federation, rigs, and sovereignty tiers","description":"Deep design work needed to reconcile:\n\n1. Identity hierarchy: Human \u003e Town \u003e Rig \u003e Agent\n2. Town = Human principle (single-human towns, federation for collaboration)\n3. Sovereignty tiers per rig (public/org/pseudonymous/anonymous)\n4. Reputation aggregation across different sovereignty levels\n5. Anonymous chain reputation (cryptographic identity separate from human)\n6. Account-switching problem (executor changes, work context persists)\n\nKey docs to reconcile:\n- decisions/008-identity-model.md\n- PLATFORM-OF-PLATFORMS.md (sovereignty tiers)\n- FEDERATION.md (new identity section)\n\nOpen questions:\n- Rig sovereignty changes (does historical work become public?)\n- Cross-rig reputation (how does Tier 4 affect Tier 1 CV?)\n- Key rotation and ownership proofs\n- Rig migration between towns\n\nSee FEDERATION.md 'Identity Hierarchy and Sovereignty' section for context.","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-10T19:02:29.537526-08:00","updated_at":"2026-01-10T19:09:51.509701-08:00","closed_at":"2026-01-10T19:09:51.509701-08:00","close_reason":"Fleshed out identity hierarchy design in FEDERATION.md. Key resolutions: towns single-owner with human-controlled linking; reputation flows filtered by sovereignty tiers; T4 work isolated to crypto keys; all 5 open questions answered.","created_by":"gastown/crew/max"} {"id":"bd-g3ey","title":"bd sync --import-only doesn't update DB mtime causing bd doctor false warning","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-08T15:18:16.761052+01:00","updated_at":"2025-11-08T15:58:37.147425-08:00","closed_at":"2025-11-08T13:12:01.718252-08:00"} {"id":"bd-g4b4","title":"bd close hooks: context check and notifications","description":"Add hook system to bd close for notifications and custom actions.\n\n## Scope (MVP)\n\nImplement **command hooks only** for bd close. Deferred: notify, webhook types.\n\n## Implementation\n\n### 1. Config Schema\n\nAdd to internal/configfile/config.go:\n\n```go\ntype HooksConfig struct {\n OnClose []HookEntry `yaml:\"on_close,omitempty\"`\n}\n\ntype HookEntry struct {\n Command string `yaml:\"command\"` // Shell command to run\n Name string `yaml:\"name,omitempty\"` // Optional display name\n}\n```\n\nAdd `Hooks HooksConfig` field to Config struct.\n\n### 2. Hook Execution\n\nCreate internal/hooks/close_hooks.go:\n\n```go\nfunc RunCloseHooks(ctx context.Context, cfg *configfile.Config, issue *types.Issue) error {\n for _, hook := range cfg.Hooks.OnClose {\n cmd := exec.CommandContext(ctx, \"sh\", \"-c\", hook.Command)\n cmd.Env = append(os.Environ(),\n \"BEAD_ID=\"+issue.ID,\n \"BEAD_TITLE=\"+issue.Title,\n \"BEAD_TYPE=\"+string(issue.IssueType),\n \"BEAD_PRIORITY=\"+strconv.Itoa(issue.Priority),\n \"BEAD_CLOSE_REASON=\"+issue.CloseReason,\n )\n cmd.Stdout = os.Stdout\n cmd.Stderr = os.Stderr\n if err := cmd.Run(); err \\!= nil {\n // Log warning but dont fail the close\n fmt.Fprintf(os.Stderr, \"Warning: close hook %q failed: %v\\n\", hook.Name, err)\n }\n }\n return nil\n}\n```\n\n### 3. Integration Point\n\nIn cmd/bd/close.go, after successful close:\n\n```go\n// Run close hooks\nif cfg := configfile.Load(); cfg \\!= nil {\n hooks.RunCloseHooks(ctx, cfg, closedIssue)\n}\n```\n\n### 4. Example Config\n\n```yaml\n# .beads/config.yaml\nhooks:\n on_close:\n - name: show-next\n command: bd ready --limit 1\n - name: context-check \n command: echo \"Issue $BEAD_ID closed. Check context if nearing limit.\"\n```\n\n## Environment Variables\n\n| Variable | Description |\n|----------|-------------|\n| BEAD_ID | Issue ID (e.g., bd-abc1) |\n| BEAD_TITLE | Issue title |\n| BEAD_TYPE | Issue type (task, bug, feature, etc.) |\n| BEAD_PRIORITY | Priority (0-4) |\n| BEAD_CLOSE_REASON | Close reason if provided |\n\n## Testing\n\nAdd test in internal/hooks/close_hooks_test.go:\n- Test hook execution with mock config\n- Test env vars are set correctly\n- Test hook failure doesnt block close\n\n## Files to Create/Modify\n\n1. **Create:** internal/hooks/close_hooks.go\n2. **Create:** internal/hooks/close_hooks_test.go \n3. **Modify:** internal/configfile/config.go (add HooksConfig)\n4. **Modify:** cmd/bd/close.go (call RunCloseHooks)\n5. **Modify:** docs/CONFIG.md (document hooks config)\n\n## Out of Scope (Future)\n\n- notify hook type (gt mail integration)\n- webhook type (HTTP POST)\n- on_create, on_update hooks\n- Hook timeout configuration\n- Parallel hook execution","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-22T17:03:56.183461-08:00","updated_at":"2025-12-23T13:38:15.898746-08:00","closed_at":"2025-12-23T13:38:15.898746-08:00","dependencies":[{"issue_id":"bd-g4b4","depends_on_id":"bd-iz5t","type":"parent-child","created_at":"2025-12-23T12:44:07.811793-08:00","created_by":"daemon"}]} {"id":"bd-g5p7","title":"Extract duplicated validation logic from CLI commands","description":"~150 lines of identical validation logic duplicated between cmd_create.go and cmd_update.go\n\nDuplication found:\n- validateBeadFields(): 2 identical copies (50+ lines each) \n- parseTimeWithDefault(): 2 identical copies (30 lines each)\n- Flag definitions: 15+ duplicate registrations\n\nSolution: Extract to shared packages:\n- internal/validation/bead.go - Centralized validation\n- internal/utils/time.go - Consolidate time parsing (already exists)\n- cmd/bd/flags.go - Shared flag registration\n\nImpact: Changes require touching 2+ files; high risk of inconsistency; steep learning curve\n\nEffort: 4-6 hours","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-16T14:51:10.159953-08:00","updated_at":"2025-11-21T10:01:44.281231-05:00","closed_at":"2025-11-20T20:39:34.426726-05:00"} -{"id":"bd-g5q9","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:31:24.24289-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T17:31:24.27373-08:00","closed_at":"2026-01-07T17:31:24.27373-08:00","close_reason":"auto-closed session event"} -{"id":"bd-g66dq","title":"beads-metadata sync branch deleted from origin","description":"The beads-metadata remote tracking branch was deleted from origin, causing bd sync to fail. The local worktree at .git/beads-worktrees/beads-metadata/ has uncommitted changes but cannot push because the upstream is gone.\n\nError: git status in worktree shows 'Your branch is based on origin/beads-metadata, but the upstream is gone.'\n\nInvestigation needed:\n- Was beads-metadata intentionally replaced by beads-sync?\n- Should the sync config be updated to use a different branch?\n- The deleted branch was shown during git fetch --prune","status":"closed","priority":1,"issue_type":"bug","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T10:42:47.379061-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T12:50:42.884405-08:00","closed_at":"2026-01-13T12:50:42.884405-08:00","close_reason":"Resolved: beads-metadata branch intentionally deleted and replaced by beads-sync. Worktree cleaned up."} -{"id":"bd-g68fw","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T10:47:13.883254-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T10:47:13.944406-08:00","closed_at":"2026-01-11T10:47:13.944406-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-g6m5","title":"Code smell: Mixed daemon/direct mode logic throughout commands","description":"Most commands duplicate logic for both daemon and direct modes:\n\n```go\nif daemonClient != nil {\n // Daemon implementation\n} else {\n // Direct implementation\n}\n```\n\nThis pattern appears multiple times within the same function in show.go, list.go, and other commands.\n\n**Problem:**\n- Doubles the code paths to test\n- Changes to data retrieval require updates in two places\n- Difficult to reason about behavior\n\n**Acceptance Criteria:**\n- [ ] Create StorageAccessor interface for both modes\n- [ ] Use strategy pattern for daemon vs direct operations\n- [ ] Centralize dispatching logic\n- [ ] Reduce code duplication\n- [ ] Tests pass","status":"hooked","priority":3,"issue_type":"chore","created_at":"2025-12-28T18:59:31.571393-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-30T15:44:43.359727-08:00","dependencies":[{"issue_id":"bd-g6m5","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.716024-08:00","created_by":"daemon"}]} -{"id":"bd-g7ay","title":"Merge: obsidian-mjwn3dvc","description":"branch: polecat/obsidian-mjwn3dvc\ntarget: main\nsource_issue: obsidian-mjwn3dvc\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T02:03:39.189973-08:00","created_by":"mayor","updated_at":"2026-01-02T13:41:56.629738-08:00","closed_at":"2026-01-02T13:41:56.629738-08:00","close_reason":"Branches merged, cleaning up stale MR beads"} -{"id":"bd-g7eq","title":"Agent beads: structured labels for filtering","description":"## Agent Beads Need Queryable Labels\n\nCurrently agent beads have role_type/rig in description text, not as labels. This breaks @group resolution in gt mail.\n\n## Current State\n\n```json\n{\n \"id\": \"gt-gastown-witness\",\n \"issue_type\": \"agent\",\n \"description\": \"...\\\\nrole_type: witness\\\\nrig: gastown\\\\n...\"\n}\n```\n\nCannot query: `bd list --type=agent --label=role_type:witness` returns nothing.\n\n## Required\n\nAgent bead creation should add labels:\n- `role_type:\u003ctype\u003e` (witness, refinery, crew, polecat, dog, mayor, deacon)\n- `rig:\u003crig\u003e` (gastown, beads, or \"town\" for town-level)\n\n## Where to Fix\n\ngt polecat/crew/agent creation commands should add labels:\n```bash\nbd create --type=agent ... --labels=\"role_type:witness,rig:gastown\"\n```\n\n## Queries Enabled\n\n```bash\nbd list --type=agent --label=role_type:witness # All witnesses\nbd list --type=agent --label=rig:gastown # All gastown agents\nbd list --type=agent --label=role_type:dog # All dogs\n```\n\n## Acceptance\n- New agent beads created with role_type/rig labels\n- Existing agent beads backfilled (one-time script)\n- @group patterns work in gt mail router","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-29T20:47:33.950733-08:00","created_by":"gastown/crew/joe","updated_at":"2025-12-29T21:16:00.746383-08:00","closed_at":"2025-12-29T21:16:00.746383-08:00","close_reason":"Implemented: role_type/rig labels for agent beads, auto-labeling on create/update, backfill command"} -{"id":"bd-g7pxp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T14:05:29.904283-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T14:05:29.974401-08:00","closed_at":"2026-01-13T14:05:29.974401-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-g5q9","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:31:24.24289-08:00","updated_at":"2026-01-07T17:31:24.27373-08:00","closed_at":"2026-01-07T17:31:24.27373-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-g66dq","title":"beads-metadata sync branch deleted from origin","description":"The beads-metadata remote tracking branch was deleted from origin, causing bd sync to fail. The local worktree at .git/beads-worktrees/beads-metadata/ has uncommitted changes but cannot push because the upstream is gone.\n\nError: git status in worktree shows 'Your branch is based on origin/beads-metadata, but the upstream is gone.'\n\nInvestigation needed:\n- Was beads-metadata intentionally replaced by beads-sync?\n- Should the sync config be updated to use a different branch?\n- The deleted branch was shown during git fetch --prune","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-13T10:42:47.379061-08:00","updated_at":"2026-01-13T12:50:42.884405-08:00","closed_at":"2026-01-13T12:50:42.884405-08:00","close_reason":"Resolved: beads-metadata branch intentionally deleted and replaced by beads-sync. Worktree cleaned up.","created_by":"beads/refinery"} +{"id":"bd-g68fw","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T10:47:13.883254-08:00","updated_at":"2026-01-11T10:47:13.944406-08:00","closed_at":"2026-01-11T10:47:13.944406-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-g6m5","title":"Code smell: Mixed daemon/direct mode logic throughout commands","description":"Most commands duplicate logic for both daemon and direct modes:\n\n```go\nif daemonClient != nil {\n // Daemon implementation\n} else {\n // Direct implementation\n}\n```\n\nThis pattern appears multiple times within the same function in show.go, list.go, and other commands.\n\n**Problem:**\n- Doubles the code paths to test\n- Changes to data retrieval require updates in two places\n- Difficult to reason about behavior\n\n**Acceptance Criteria:**\n- [ ] Create StorageAccessor interface for both modes\n- [ ] Use strategy pattern for daemon vs direct operations\n- [ ] Centralize dispatching logic\n- [ ] Reduce code duplication\n- [ ] Tests pass","status":"hooked","priority":3,"issue_type":"chore","created_at":"2025-12-28T18:59:31.571393-08:00","updated_at":"2025-12-30T15:44:43.359727-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-g6m5","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.716024-08:00","created_by":"daemon"}]} +{"id":"bd-g7ay","title":"Merge: obsidian-mjwn3dvc","description":"branch: polecat/obsidian-mjwn3dvc\ntarget: main\nsource_issue: obsidian-mjwn3dvc\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T02:03:39.189973-08:00","updated_at":"2026-01-02T13:41:56.629738-08:00","closed_at":"2026-01-02T13:41:56.629738-08:00","close_reason":"Branches merged, cleaning up stale MR beads","created_by":"mayor"} +{"id":"bd-g7eq","title":"Agent beads: structured labels for filtering","description":"## Agent Beads Need Queryable Labels\n\nCurrently agent beads have role_type/rig in description text, not as labels. This breaks @group resolution in gt mail.\n\n## Current State\n\n```json\n{\n \"id\": \"gt-gastown-witness\",\n \"issue_type\": \"agent\",\n \"description\": \"...\\\\nrole_type: witness\\\\nrig: gastown\\\\n...\"\n}\n```\n\nCannot query: `bd list --type=agent --label=role_type:witness` returns nothing.\n\n## Required\n\nAgent bead creation should add labels:\n- `role_type:\u003ctype\u003e` (witness, refinery, crew, polecat, dog, mayor, deacon)\n- `rig:\u003crig\u003e` (gastown, beads, or \"town\" for town-level)\n\n## Where to Fix\n\ngt polecat/crew/agent creation commands should add labels:\n```bash\nbd create --type=agent ... --labels=\"role_type:witness,rig:gastown\"\n```\n\n## Queries Enabled\n\n```bash\nbd list --type=agent --label=role_type:witness # All witnesses\nbd list --type=agent --label=rig:gastown # All gastown agents\nbd list --type=agent --label=role_type:dog # All dogs\n```\n\n## Acceptance\n- New agent beads created with role_type/rig labels\n- Existing agent beads backfilled (one-time script)\n- @group patterns work in gt mail router","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-29T20:47:33.950733-08:00","updated_at":"2025-12-29T21:16:00.746383-08:00","closed_at":"2025-12-29T21:16:00.746383-08:00","close_reason":"Implemented: role_type/rig labels for agent beads, auto-labeling on create/update, backfill command","created_by":"gastown/crew/joe"} +{"id":"bd-g7pxp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T14:05:29.904283-08:00","updated_at":"2026-01-13T14:05:29.974401-08:00","closed_at":"2026-01-13T14:05:29.974401-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-g9eu","title":"Investigate TestRoutingIntegration failure","description":"TestRoutingIntegration/maintainer_with_SSH_remote failed during pre-commit check with \"expected role maintainer, got contributor\".\nThis occurred while running `go test -short ./...` on darwin/arm64.\nThe failure appears unrelated to storage/sqlite changes.\nNeed to investigate if this is a flaky test or environmental issue.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-20T15:55:19.337094-08:00","updated_at":"2025-12-23T23:49:49.11706-08:00","closed_at":"2025-12-23T23:49:49.11706-08:00"} {"id":"bd-gart","title":"Debug test 2","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-08T00:04:35.317835-08:00","updated_at":"2025-11-08T00:06:46.18875-08:00","closed_at":"2025-11-08T00:06:46.18875-08:00"} -{"id":"bd-gc9r","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:11:45.467727-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:11:45.50256-08:00","closed_at":"2026-01-07T00:11:45.50256-08:00","close_reason":"auto-closed session event"} +{"id":"bd-gc9r","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:11:45.467727-08:00","updated_at":"2026-01-07T00:11:45.50256-08:00","closed_at":"2026-01-07T00:11:45.50256-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-gdn","title":"Add functional tests for FlushManager correctness verification","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-20T21:21:53.967757-05:00","updated_at":"2025-11-20T21:35:53.1183-05:00","closed_at":"2025-11-20T21:35:53.1183-05:00"} {"id":"bd-gdzd","title":"Import fails on same-content-different-ID instead of treating as update","description":"## Problem\n\nThe importer still has rename detection (importer.go:482-500) that triggers when same content hash has different IDs. With hash IDs, this shouldn't happen, but when it does (test data, bugs, legacy data), the import fails:\n\n```\nfailed to handle rename bd-ce75 -\u003e bd-5a90: rename collision handling removed - should not occur with hash IDs\n```\n\n## Current Behavior\n\n1. Importer finds same content hash with different IDs\n2. Calls handleRename() (line 490)\n3. handleRename() errors out (line 294): \"rename collision handling removed\"\n4. Import fails\n\n## Expected Behavior\n\nSame content hash + different IDs should be treated as an **update**, not a rename:\n- Keep existing ID (already in database)\n- Update fields if incoming has newer timestamp\n- Discard incoming ID (it's wrong - hash should have generated same ID)\n\n## Impact\n\n- Import fails on legitimate edge cases (test data, data corruption)\n- Cryptic error message\n- Blocks sync operations\n\n## Fix\n\nIn handleRename() or import loop, instead of erroring:\n```go\n// Same content, different ID - treat as update\nif incoming.UpdatedAt.After(existing.UpdatedAt) {\n existing.Status = incoming.Status\n // ... copy other fields\n s.UpdateIssue(ctx, existing)\n}\nresult.Updated++\n```\n\n## Files\n- internal/importer/importer.go:271-294 (handleRename)\n- internal/importer/importer.go:482-500 (rename detection)\n\n## Repro\nImport JSONL with bd-ce75 and bd-5a90 (both \"Test parent issue\" but different content hashes).","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-05T00:27:51.150233-08:00","updated_at":"2025-11-05T01:02:54.469971-08:00","closed_at":"2025-11-05T01:02:54.469979-08:00"} {"id":"bd-ge7","title":"Improve Beads test coverage from 46% to 80%","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-20T21:21:03.700271-05:00","updated_at":"2025-12-09T18:38:37.691262172-05:00","closed_at":"2025-11-28T21:56:04.085939-08:00"} -{"id":"bd-gf7q3","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:13:05.704064-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T18:13:05.744994-08:00","closed_at":"2026-01-09T18:13:05.744994-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-gfm50","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T08:36:35.451373-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T08:36:35.516319-08:00","closed_at":"2026-01-11T08:36:35.516319-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-gf7q3","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:13:05.704064-08:00","updated_at":"2026-01-09T18:13:05.744994-08:00","closed_at":"2026-01-09T18:13:05.744994-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-gfm50","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T08:36:35.451373-08:00","updated_at":"2026-01-11T08:36:35.516319-08:00","closed_at":"2026-01-11T08:36:35.516319-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-gfo3","title":"Merge: bd-ykd9","description":"branch: polecat/Doctor\ntarget: main\nsource_issue: bd-ykd9\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-23T13:34:43.778808-08:00","updated_at":"2025-12-23T19:12:08.353427-08:00","closed_at":"2025-12-23T19:12:08.353427-08:00"} {"id":"bd-ggbc","title":"Update documentation for merge driver auto-config","description":"Update documentation to reflect the new merge driver auto-configuration during `bd init`.\n\n**Files to update:**\n- README.md - Mention merge driver setup in initialization section\n- AGENTS.md - Update onboarding section about merge driver\n- Possibly QUICKSTART.md\n\n**Content:**\n- Explain what the merge driver does\n- Show --skip-merge-driver flag usage\n- Manual installation steps for post-init setup","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-05T19:27:04.155662-08:00","updated_at":"2025-11-05T19:29:55.188122-08:00","closed_at":"2025-11-05T19:29:55.188122-08:00","dependencies":[{"issue_id":"bd-ggbc","depends_on_id":"bd-32nm","type":"discovered-from","created_at":"2025-11-05T19:27:04.156491-08:00","created_by":"daemon"}]} -{"id":"bd-gghoz","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T00:36:41.190814-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T00:36:41.227337-08:00","closed_at":"2026-01-10T00:36:41.227337-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-gghoz","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T00:36:41.190814-08:00","updated_at":"2026-01-10T00:36:41.227337-08:00","closed_at":"2026-01-10T00:36:41.227337-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-ghb","title":"Add --yes flag to bd doctor --fix for non-interactive mode","description":"## Feature Request\n\nAdd a `--yes` or `-y` flag to `bd doctor --fix` that automatically confirms all prompts, enabling non-interactive usage in scripts and CI/CD pipelines.\n\n## Current Behavior\n`bd doctor --fix` prompts for confirmation before applying fixes, which blocks automated workflows.\n\n## Desired Behavior\n`bd doctor --fix --yes` should apply all fixes without prompting.\n\n## Use Cases\n- CI/CD pipelines that need to auto-fix issues\n- Scripts that automate repository setup\n- Pre-commit hooks that want to silently fix issues","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-11-26T23:22:45.486584-08:00","updated_at":"2025-12-02T17:11:19.741550211-05:00","closed_at":"2025-11-28T21:55:06.895066-08:00"} -{"id":"bd-gi2ol","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:46:05.186629-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T13:46:05.220272-08:00","closed_at":"2026-01-09T13:46:05.220272-08:00","close_reason":"auto-closed session event"} -{"id":"bd-gigi","title":"bd admin compact --older-than=0 ignores the flag, uses default 30 days","description":"When running bd admin compact --prune --older-than=0, the output says 'No expired tombstones to prune (TTL: 30 days)' - the flag value is ignored.\n\nRoot cause: In runCompactPrune() in compact_tombstone.go:180, the check 'if compactOlderThan \u003e 0' means that --older-than=0 is treated the same as not passing the flag, defaulting to 30 days.\n\nFix: Change the default flag value in compact.go:785 to -1 (sentinel for 'use default'), and treat 0 as 'expire all tombstones' by passing a negative TTL to pruneExpiredTombstones().\n\nMoved from gt-65gwa (gastown) - was filed in wrong rig.","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/emma","created_at":"2025-12-29T23:34:41.255352-08:00","created_by":"gastown/polecats/dementus","updated_at":"2025-12-30T00:00:43.476085-08:00","closed_at":"2025-12-30T00:00:43.476085-08:00","close_reason":"Fixed: flag default changed to -1 sentinel, 0 now means expire all"} -{"id":"bd-gjdnl","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T07:11:02.60281-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T07:11:02.661803-08:00","closed_at":"2026-01-11T07:11:02.661803-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-gi2ol","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:46:05.186629-08:00","updated_at":"2026-01-09T13:46:05.220272-08:00","closed_at":"2026-01-09T13:46:05.220272-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/dave"} +{"id":"bd-gigi","title":"bd admin compact --older-than=0 ignores the flag, uses default 30 days","description":"When running bd admin compact --prune --older-than=0, the output says 'No expired tombstones to prune (TTL: 30 days)' - the flag value is ignored.\n\nRoot cause: In runCompactPrune() in compact_tombstone.go:180, the check 'if compactOlderThan \u003e 0' means that --older-than=0 is treated the same as not passing the flag, defaulting to 30 days.\n\nFix: Change the default flag value in compact.go:785 to -1 (sentinel for 'use default'), and treat 0 as 'expire all tombstones' by passing a negative TTL to pruneExpiredTombstones().\n\nMoved from gt-65gwa (gastown) - was filed in wrong rig.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-29T23:34:41.255352-08:00","updated_at":"2025-12-30T00:00:43.476085-08:00","closed_at":"2025-12-30T00:00:43.476085-08:00","close_reason":"Fixed: flag default changed to -1 sentinel, 0 now means expire all","created_by":"gastown/polecats/dementus"} +{"id":"bd-gjdnl","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T07:11:02.60281-08:00","updated_at":"2026-01-11T07:11:02.661803-08:00","closed_at":"2026-01-11T07:11:02.661803-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-gjla","title":"Test Thread","description":"Initial message for threading test","status":"tombstone","priority":2,"issue_type":"message","created_at":"2025-12-16T18:19:51.704324-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","dependencies":[{"issue_id":"bd-gjla","depends_on_id":"bd-f5cc","type":"duplicates","created_at":"2025-12-18T13:45:31.137191-08:00","created_by":"migration"}],"deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"message"} {"id":"bd-glc2g","title":"Digest: mol-refinery-patrol","description":"Patrol complete: merge queue empty, no branches processed","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-13T16:39:07.793803-08:00","updated_at":"2026-01-13T16:39:07.793803-08:00","closed_at":"2026-01-13T16:39:07.793751-08:00","close_reason":"Squashed from 11 wisps"} -{"id":"bd-glnl","title":"Fix agent ID parser for hyphenated rig names (GH#868)","description":"Agent ID format \u003cprefix\u003e-\u003crig\u003e-\u003crole\u003e-\u003cname\u003e fails when rig contains hyphens. Fix: parse from ends - prefix first, name last, role second-to-last (must be crew/polecat/witness/etc), rig is everything in between.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-03T13:12:36.582939-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-03T13:22:34.844129-08:00","closed_at":"2026-01-03T13:22:34.844129-08:00","close_reason":"Fixed in commit 86c91aea"} +{"id":"bd-glnl","title":"Fix agent ID parser for hyphenated rig names (GH#868)","description":"Agent ID format \u003cprefix\u003e-\u003crig\u003e-\u003crole\u003e-\u003cname\u003e fails when rig contains hyphens. Fix: parse from ends - prefix first, name last, role second-to-last (must be crew/polecat/witness/etc), rig is everything in between.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-03T13:12:36.582939-08:00","updated_at":"2026-01-03T13:22:34.844129-08:00","closed_at":"2026-01-03T13:22:34.844129-08:00","close_reason":"Fixed in commit 86c91aea","created_by":"beads/crew/grip"} {"id":"bd-gm7p","title":"Use in-memory filesystem for test git operations","description":"Use tmpfs/ramdisk for git operations in tests to reduce I/O overhead.\n\nOptions:\n1. Mount /tmp as tmpfs in CI (GitHub Actions supports this)\n2. Use Go's testing.TB.TempDir() which may already use tmpfs on some systems\n3. Explicitly create ramdisk for tests on macOS\n\nExpected savings: 20-30% reduction in git operation time","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-04T01:24:19.803224-08:00","updated_at":"2025-11-04T10:52:42.722474-08:00","closed_at":"2025-11-04T10:52:42.722474-08:00","dependencies":[{"issue_id":"bd-gm7p","depends_on_id":"bd-l5gq","type":"blocks","created_at":"2025-11-04T01:24:19.80414-08:00","created_by":"daemon"}]} -{"id":"bd-gn5r","title":"Implement bd lint command","description":"New command to check issues for missing sections. Supports: bd lint (all open), bd lint \u003cid\u003e (single), bd lint --fix (interactive).","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-01T11:19:08.013558-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-01T14:18:39.458936-08:00","closed_at":"2026-01-01T14:18:39.458936-08:00","close_reason":"Implemented bd lint command with daemon and direct mode support","dependencies":[{"issue_id":"bd-gn5r","depends_on_id":"bd-ou35","type":"parent-child","created_at":"2026-01-01T11:19:22.736105-08:00","created_by":"beads/crew/grip"},{"issue_id":"bd-gn5r","depends_on_id":"bd-615z","type":"blocks","created_at":"2026-01-01T11:19:23.944461-08:00","created_by":"beads/crew/grip"}]} -{"id":"bd-gnmvy","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T14:26:51.42129-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T14:26:51.497754-08:00","closed_at":"2026-01-13T14:26:51.497754-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-go6nj","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:43:09.756147-08:00","created_by":"beads/crew/giles","updated_at":"2026-01-09T13:43:09.791685-08:00","closed_at":"2026-01-09T13:43:09.791685-08:00","close_reason":"auto-closed session event"} +{"id":"bd-gn5r","title":"Implement bd lint command","description":"New command to check issues for missing sections. Supports: bd lint (all open), bd lint \u003cid\u003e (single), bd lint --fix (interactive).","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-01T11:19:08.013558-08:00","updated_at":"2026-01-01T14:18:39.458936-08:00","closed_at":"2026-01-01T14:18:39.458936-08:00","close_reason":"Implemented bd lint command with daemon and direct mode support","created_by":"beads/crew/grip","dependencies":[{"issue_id":"bd-gn5r","depends_on_id":"bd-615z","type":"blocks","created_at":"2026-01-01T11:19:23.944461-08:00","created_by":"beads/crew/grip"},{"issue_id":"bd-gn5r","depends_on_id":"bd-ou35","type":"parent-child","created_at":"2026-01-01T11:19:22.736105-08:00","created_by":"beads/crew/grip"}]} +{"id":"bd-gnmvy","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T14:26:51.42129-08:00","updated_at":"2026-01-13T14:26:51.497754-08:00","closed_at":"2026-01-13T14:26:51.497754-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-go6nj","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:43:09.756147-08:00","updated_at":"2026-01-09T13:43:09.791685-08:00","closed_at":"2026-01-09T13:43:09.791685-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/giles"} {"id":"bd-gocx","title":"Run bump-version.sh 0.32.1","description":"Execute ./scripts/bump-version.sh 0.32.1 to update all version references","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-20T21:53:18.470174-08:00","updated_at":"2025-12-20T21:54:54.500836-08:00","closed_at":"2025-12-20T21:54:54.500836-08:00","dependencies":[{"issue_id":"bd-gocx","depends_on_id":"bd-an4s","type":"parent-child","created_at":"2025-12-20T21:53:18.471793-08:00","created_by":"daemon"},{"issue_id":"bd-gocx","depends_on_id":"bd-x3j8","type":"blocks","created_at":"2025-12-20T21:53:29.688436-08:00","created_by":"daemon"}]} -{"id":"bd-goeti","title":"Add 'delegated-from' edge type for completion cascades","description":"dispatched_by: beads/crew/emma\n\nAdd new DependencyType 'delegated-from' for work delegation chains. Enables completion cascade: when delegated work completes, validation flows up to parent. Per GRAPH-ARCHITECTURE delegation semantics.","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/giles","created_at":"2026-01-10T16:34:07.749125-08:00","created_by":"gastown/crew/max","updated_at":"2026-01-10T19:39:08.986152-08:00","closed_at":"2026-01-10T19:39:08.986152-08:00","close_reason":"Added DepDelegatedFrom edge type with tests. Fixed pre-existing test compile errors (TypeRig undefined, parseCommaSeparated typo, work_type column in migration test).","dependencies":[{"issue_id":"bd-goeti","depends_on_id":"bd-imi7w","type":"parent-child","created_at":"2026-01-10T16:34:27.052383-08:00","created_by":"gastown/crew/max"}]} -{"id":"bd-goo6d","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:01:59.638357-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:01:59.703454-08:00","closed_at":"2026-01-11T22:01:59.703454-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-goeti","title":"Add 'delegated-from' edge type for completion cascades","description":"dispatched_by: beads/crew/emma\n\nAdd new DependencyType 'delegated-from' for work delegation chains. Enables completion cascade: when delegated work completes, validation flows up to parent. Per GRAPH-ARCHITECTURE delegation semantics.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T16:34:07.749125-08:00","updated_at":"2026-01-10T19:39:08.986152-08:00","closed_at":"2026-01-10T19:39:08.986152-08:00","close_reason":"Added DepDelegatedFrom edge type with tests. Fixed pre-existing test compile errors (TypeRig undefined, parseCommaSeparated typo, work_type column in migration test).","created_by":"gastown/crew/max","dependencies":[{"issue_id":"bd-goeti","depends_on_id":"bd-imi7w","type":"parent-child","created_at":"2026-01-10T16:34:27.052383-08:00","created_by":"gastown/crew/max"}]} +{"id":"bd-goo6d","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:01:59.638357-08:00","updated_at":"2026-01-11T22:01:59.703454-08:00","closed_at":"2026-01-11T22:01:59.703454-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-gpe7","title":"Tests take too long - unacceptable for project size","description":"## Problem\n\nRunning `go test ./internal/importer/... -v` takes an unacceptably long time (minutes). For a project this size, tests should complete in seconds.\n\n## Impact\n\n- Slows down development iteration\n- AI agents waste time waiting for tests\n- Blocks rapid bug fixes and validation\n- Poor developer experience\n\n## Investigation Needed\n\n- Profile which tests are slow\n- Check for unnecessary sleeps, timeouts, or integration tests\n- Look for tests that could be parallelized\n- Consider splitting unit vs integration tests\n\n## Goal\n\nTest suite for a single package should complete in \u003c5 seconds, ideally \u003c2 seconds.","notes":"## Optimizations Applied\n\n1. **Added t.Parallel() to CLI tests** (13 tests) - allows concurrent execution\n2. **Removed unnecessary 200ms sleep** in daemon_autoimport_test.go - Execute() forces auto-import synchronously\n3. **Reduced filesystem settle wait** from 100ms → 50ms on non-Windows platforms\n4. **Optimized debouncer test sleeps** (9 reductions):\n - Before debounce waits: 30ms → 20ms, 20ms → 10ms\n - After debounce waits: 40ms → 35ms, 30ms → 35ms, etc.\n - Thread safety test: 100ms → 70ms\n - Sequential cycles: 50ms → 40ms (3x)\n - Cancel tests: 70-80ms → 60ms\n\n## Results\n\n### cmd/bd package (main improvement target):\n- **Before**: 5+ minutes (timeout)\n- **After**: ~18-20 seconds\n- **Speedup**: ~15-18x faster\n\n### internal/importer package:\n- **After**: \u003c1 second (0.9s)\n\n### Full test suite (with `-short` flag):\n- Most packages complete in \u003c2s\n- Total runtime constrained by sequential integration tests\n\n## Known Issues\n\n- TestConcurrentExternalRefImports hangs due to :memory: connection pool issue (bd-b121)\n- Some sync_branch tests may need sequential execution (git worktree conflicts)","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-05T00:54:47.784504-08:00","updated_at":"2025-11-05T01:41:57.544395-08:00","closed_at":"2025-11-05T01:41:57.544395-08:00"} -{"id":"bd-gpqah","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T12:41:58.455614-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T12:41:58.495269-08:00","closed_at":"2026-01-09T12:41:58.495269-08:00","close_reason":"auto-closed session event"} -{"id":"bd-gqlxp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:10:38.564191-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T20:10:38.631725-08:00","closed_at":"2026-01-11T20:10:38.631725-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-gpqah","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T12:41:58.455614-08:00","updated_at":"2026-01-09T12:41:58.495269-08:00","closed_at":"2026-01-09T12:41:58.495269-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-gqlxp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T20:10:38.564191-08:00","updated_at":"2026-01-11T20:10:38.631725-08:00","closed_at":"2026-01-11T20:10:38.631725-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-gqo","title":"Implement health checks in daemon event loop","description":"Add health checks to checkDaemonHealth() function in daemon_event_loop.go:170:\n- Database integrity check\n- Disk space check\n- Memory usage check\n\nCurrently it's just a no-op placeholder.","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-11-21T18:55:07.534304-05:00","updated_at":"2025-12-09T18:38:37.692820972-05:00","closed_at":"2025-11-28T23:10:19.946063-08:00"} {"id":"bd-gqxd","title":"Enrich MutationEvent with title and assignee","description":"Current MutationEvent only has IssueID, no context. Add Title and Assignee fields so activity feeds can display meaningful info without extra lookups. Emit these fields when creating mutation events in server_core.go.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-23T16:26:34.907259-08:00","updated_at":"2025-12-23T16:39:39.229462-08:00","closed_at":"2025-12-23T16:39:39.229462-08:00"} {"id":"bd-gr4q","title":"Gate await fields cleared by auto-flush/auto-import cycle","description":"## Problem\n\nWhen creating a gate with `--await` fields (e.g., `gh:run:123`), the await_type and await_id are initially stored correctly in the SQLite database. However, they get cleared (set to empty strings) during subsequent bd commands due to the auto-flush/auto-import cycle.\n\n## Reproduction Steps\n\n1. Create a gate with await:\n ```\n bd gate create --molecule test-mol --await gh:run:20517738002\n ```\n Output shows correct `await_type: gh:run, await_id: 20517738002`\n\n2. Check database - fields are present\n\n3. Run any bd command (e.g., `bd list`)\n\n4. Check database again - await_type and await_id are now empty\n\n## Root Cause\n\nGates are wisps (ephemeral issues). During the auto-flush cycle:\n1. Auto-flush exports issues to JSONL (filtering out wisps)\n2. Auto-import reads JSONL and updates DB rows\n3. The update clears fields that weren't in the JSONL (including await fields)\n\n## Workaround\n\nUsing `--no-auto-import --no-auto-flush` flags preserves the fields, but this isn't practical for normal use.\n\n## Impact\n\nGitHub gate evaluation (`bd gate eval`) cannot work because by the time eval runs, the await fields have been cleared.\n\n## Suggested Fix\n\nEither:\n1. Don't clear await fields during auto-import if they weren't in the source\n2. Store wisp fields separately from the main JSONL export\n3. Include wisps in export but filter them at sync time","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-25T22:59:11.309657-08:00","updated_at":"2025-12-25T23:20:20.33151-08:00","closed_at":"2025-12-25T23:20:20.33151-08:00"} {"id":"bd-gra","title":"Add error handling test for cmd.Help() in search command","description":"Test coverage gap identified by automated analysis (vc-217).\n\n**Original Issue:** [deleted:bd-da96-baseline-lint]\n\nIn cmd/bd/search.go:39, the return value of cmd.Help() is not checked, flagged by errcheck linter.\n\nAdd test to verify:\n- Error handling when cmd.Help() fails (e.g., output redirection fails)\n- Proper error propagation to caller\n- Command still exits gracefully on help error\n\nThis ensures the search command handles help errors properly and doesn't silently ignore failures.\n\n_This issue was automatically created by AI test coverage analysis._","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-21T10:25:33.52308-05:00","updated_at":"2025-11-21T21:29:36.982333456-05:00","closed_at":"2025-11-21T19:31:21.889039-05:00","dependencies":[{"issue_id":"bd-gra","depends_on_id":"bd-da96-baseline-lint","type":"discovered-from","created_at":"2025-11-21T10:25:33.526016-05:00","created_by":"ai-supervisor"}]} -{"id":"bd-gregm","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:23:43.920936-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T11:23:43.991502-08:00","closed_at":"2026-01-13T11:23:43.991502-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-gret5","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T08:56:17.798115-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T08:56:17.861971-08:00","closed_at":"2026-01-11T08:56:17.861971-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-gro1f","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:18:37.770832-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T00:18:37.833468-08:00","closed_at":"2026-01-12T00:18:37.833468-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-gregm","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T11:23:43.920936-08:00","updated_at":"2026-01-13T11:23:43.991502-08:00","closed_at":"2026-01-13T11:23:43.991502-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-gret5","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T08:56:17.798115-08:00","updated_at":"2026-01-11T08:56:17.861971-08:00","closed_at":"2026-01-11T08:56:17.861971-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-gro1f","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:18:37.770832-08:00","updated_at":"2026-01-12T00:18:37.833468-08:00","closed_at":"2026-01-12T00:18:37.833468-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-guc","title":"bd sync should not stage gitignored snapshot files","description":"## Problem\n\n`gitCommitBeadsDir` in `cmd/bd/sync.go` runs `git add .beads/` which stages all files in the directory, including snapshot files that are listed in `.beads/.gitignore`.\n\nIf a snapshot file (e.g., `beads.left.meta.json`) was ever committed before being added to `.gitignore`, git continues to track it. This causes merge conflicts when multiple polecats run `bd sync` concurrently, since each one modifies and commits these temporary files.\n\n## Root Cause\n\nLine ~568 in sync.go:\n```go\naddCmd := exec.CommandContext(ctx, \"git\", \"add\", beadsDir)\n```\n\nThis stages everything in `.beads/`, but `.gitignore` only prevents *untracked* files from being added - it doesn't affect already-tracked files.\n\n## Suggested Fix\n\nOption A: After `git add .beads/`, run `git reset` on snapshot files:\n```go\nexec.Command(\"git\", \"reset\", \"HEAD\", \".beads/beads.*.jsonl\", \".beads/*.meta.json\")\n```\n\nOption B: Stage only specific files instead of the whole directory:\n```go\nexec.Command(\"git\", \"add\", \".beads/issues.jsonl\", \".beads/deletions.jsonl\", \".beads/metadata.json\")\n```\n\nOption C: Detect and untrack snapshot files if they're tracked:\n```go\n// Check if file is tracked: git ls-files --error-unmatch \u003cfile\u003e\n// If tracked, run: git rm --cached \u003cfile\u003e\n```\n\nOption B is probably cleanest - explicitly add only the files that should be committed.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-27T20:47:14.603799-08:00","updated_at":"2025-11-28T17:28:55.54563-08:00","closed_at":"2025-11-27T22:34:23.336713-08:00"} {"id":"bd-gusac","title":"Digest: mol-refinery-patrol","description":"Patrol cycle: queue empty, no branches processed","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-13T00:49:15.372697-08:00","updated_at":"2026-01-13T00:49:15.372697-08:00","closed_at":"2026-01-13T00:49:15.372637-08:00","close_reason":"Squashed from 11 wisps"} -{"id":"bd-gwwr1","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:26:09.860235-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T00:26:09.896478-08:00","closed_at":"2026-01-09T00:26:09.896478-08:00","close_reason":"auto-closed session event"} -{"id":"bd-gxaf","title":"BUG: gt rig shutdown doesn't kill tmux sessions","description":"## Problem\n\n`gt rig shutdown wyvern` updates runtime JSON to `state: stopped` but does NOT kill the tmux sessions (`gt-wyvern-witness`, `gt-wyvern-refinery`).\n\nSince `gt rig status` checks for tmux sessions (correctly), it shows them as running.\n\n## Evidence\n\nAfter `gt rig shutdown wyvern`:\n- Runtime JSON: `state: stopped` ✓\n- tmux sessions: still exist ✗\n\n## Impact\n\n- Rig appears running after shutdown\n- tmux status shows green icon for 'stopped' rigs\n- User confusion\n\n## Root Cause\n\n`gt rig shutdown` in internal/cmd/rig.go updates runtime state but doesn't call `tmux kill-session` for witness/refinery.\n\n## Fix\n\nIn shutdown logic, after setting state to stopped, kill:\n- `gt-{rig}-witness` session\n- `gt-{rig}-refinery` session","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-06T13:07:49.503732-08:00","created_by":"mayor","updated_at":"2026-01-06T13:17:46.264981-08:00","closed_at":"2026-01-06T13:17:46.264981-08:00","close_reason":"Fixed: Added tmux kill-session to witness.Manager.Stop() matching refinery's implementation"} -{"id":"bd-gxawn","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T06:51:22.913105-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T06:51:22.972772-08:00","closed_at":"2026-01-11T06:51:22.972772-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-gxb4","title":"gt done --phase-complete: gastown changes for phase handoff","description":"The gt done --phase-complete flag and Witness handling changes need to be\napplied to the gastown project. These changes are already written and tested\nin the mayor/rig but need to be properly committed through a gastown worktree.\n\nFiles changed:\n- internal/cmd/done.go: Add --phase-complete and --gate flags\n- internal/beads/beads.go: Add AddGateWaiter method\n- internal/witness/protocol.go: Add Gate field to PolecatDonePayload\n- internal/witness/handlers.go: Handle PHASE_COMPLETE exit type\n\nThis is a dependency for bd-quw1 (polecat phase handoff).\n\nThe beads changes (bd gate add-waiter, bd gate show) are committed in bd-quw1.","status":"closed","priority":1,"issue_type":"task","assignee":"gastown/polecats/nux","created_at":"2026-01-02T16:36:47.633276-08:00","created_by":"beads/polecats/jasper","updated_at":"2026-01-02T16:41:46.202082-08:00","closed_at":"2026-01-02T16:41:46.202082-08:00","close_reason":"Committed phase-complete flag changes to gastown"} +{"id":"bd-gwwr1","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:26:09.860235-08:00","updated_at":"2026-01-09T00:26:09.896478-08:00","closed_at":"2026-01-09T00:26:09.896478-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-gxaf","title":"BUG: gt rig shutdown doesn't kill tmux sessions","description":"## Problem\n\n`gt rig shutdown wyvern` updates runtime JSON to `state: stopped` but does NOT kill the tmux sessions (`gt-wyvern-witness`, `gt-wyvern-refinery`).\n\nSince `gt rig status` checks for tmux sessions (correctly), it shows them as running.\n\n## Evidence\n\nAfter `gt rig shutdown wyvern`:\n- Runtime JSON: `state: stopped` ✓\n- tmux sessions: still exist ✗\n\n## Impact\n\n- Rig appears running after shutdown\n- tmux status shows green icon for 'stopped' rigs\n- User confusion\n\n## Root Cause\n\n`gt rig shutdown` in internal/cmd/rig.go updates runtime state but doesn't call `tmux kill-session` for witness/refinery.\n\n## Fix\n\nIn shutdown logic, after setting state to stopped, kill:\n- `gt-{rig}-witness` session\n- `gt-{rig}-refinery` session","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-06T13:07:49.503732-08:00","updated_at":"2026-01-06T13:17:46.264981-08:00","closed_at":"2026-01-06T13:17:46.264981-08:00","close_reason":"Fixed: Added tmux kill-session to witness.Manager.Stop() matching refinery's implementation","created_by":"mayor"} +{"id":"bd-gxawn","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T06:51:22.913105-08:00","updated_at":"2026-01-11T06:51:22.972772-08:00","closed_at":"2026-01-11T06:51:22.972772-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-gxb4","title":"gt done --phase-complete: gastown changes for phase handoff","description":"The gt done --phase-complete flag and Witness handling changes need to be\napplied to the gastown project. These changes are already written and tested\nin the mayor/rig but need to be properly committed through a gastown worktree.\n\nFiles changed:\n- internal/cmd/done.go: Add --phase-complete and --gate flags\n- internal/beads/beads.go: Add AddGateWaiter method\n- internal/witness/protocol.go: Add Gate field to PolecatDonePayload\n- internal/witness/handlers.go: Handle PHASE_COMPLETE exit type\n\nThis is a dependency for bd-quw1 (polecat phase handoff).\n\nThe beads changes (bd gate add-waiter, bd gate show) are committed in bd-quw1.","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-02T16:36:47.633276-08:00","updated_at":"2026-01-02T16:41:46.202082-08:00","closed_at":"2026-01-02T16:41:46.202082-08:00","close_reason":"Committed phase-complete flag changes to gastown","created_by":"beads/polecats/jasper"} {"id":"bd-gxq","title":"Simplify bd onboard to minimal AGENTS.md snippet pointing to bd prime","description":"## Context\nGH#604 raised concerns about bd onboard bloating AGENTS.md with ~100+ lines of static instructions that:\n- Load every session whether beads is being used or not\n- Get stale when bd upgrades\n- Waste tokens\n\n## Solution\nSimplify `bd onboard` to output a minimal snippet (~2 lines) that points to `bd prime`:\n\n```markdown\n## Issue Tracking\nThis project uses beads (`bd`) for issue tracking.\nRun `bd prime` for workflow context, or hooks auto-inject it.\n```\n\n## Rationale\n- `bd prime` is dynamic, concise (~80 lines), and always matches installed bd version\n- Hooks already auto-inject `bd prime` at session start when .beads/ detected\n- AGENTS.md only needs to mention beads exists, not contain full instructions\n\n## Implementation\n1. Update `cmd/bd/onboard.go` to output minimal snippet\n2. Keep `--output` flag for BD_GUIDE.md generation (may still be useful)\n3. Update help text to explain the new approach","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-18T11:42:38.604891-08:00","updated_at":"2025-12-18T11:47:28.020419-08:00","closed_at":"2025-12-18T11:47:28.020419-08:00"} {"id":"bd-gz0x","title":"Fix daemon exiting after 5s on macOS due to PID 1 parent monitoring","description":"GitHub issue #278 reports that the daemon exits after \u003c=5 seconds on macOS because it incorrectly treats PID 1 (launchd) as a dead parent.\n\nWhen the daemon detaches on macOS, it gets reparented to PID 1 (launchd), which is the init process. The checkParentProcessAlive function was incorrectly treating PID 1 as a sign that the parent died.\n\nFixed by changing the logic to treat PID 1 as a valid parent for detached daemons.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-09T16:15:34.606508-08:00","updated_at":"2025-11-09T16:15:37.46914-08:00","closed_at":"2025-11-09T16:15:37.46914-08:00"} -{"id":"bd-h048","title":"Refactor sync_test to use direct import logic","description":"In cmd/bd/sync_test.go:444, there's a TODO to refactor the test to use direct import logic instead of subprocess calls. This would make the test more reliable and faster.\n\nFile: cmd/bd/sync_test.go:444","status":"closed","priority":4,"issue_type":"chore","created_at":"2025-12-28T16:32:55.612958-08:00","created_by":"stevey","updated_at":"2025-12-30T18:12:30.968094-08:00","closed_at":"2025-12-30T16:00:09.642672-08:00","close_reason":"Refactored test to use direct import logic via importIssuesCore instead of subprocess. Test now passes."} +{"id":"bd-h048","title":"Refactor sync_test to use direct import logic","description":"In cmd/bd/sync_test.go:444, there's a TODO to refactor the test to use direct import logic instead of subprocess calls. This would make the test more reliable and faster.\n\nFile: cmd/bd/sync_test.go:444","status":"closed","priority":4,"issue_type":"chore","created_at":"2025-12-28T16:32:55.612958-08:00","updated_at":"2025-12-30T18:12:30.968094-08:00","closed_at":"2025-12-30T16:00:09.642672-08:00","close_reason":"Refactored test to use direct import logic via importIssuesCore instead of subprocess. Test now passes.","created_by":"stevey"} {"id":"bd-h0we","title":"Review SQLite indexes and scaling bottlenecks","description":"Audit the beads SQLite schema for:\n\n## Index Review\n- Are all frequently-queried columns indexed?\n- Are compound indexes needed for common query patterns?\n- Any missing indexes on foreign keys or filter columns?\n\n## Scaling Bottlenecks\n- How does performance degrade with 10k, 100k, 1M issues?\n- Full table scans in hot paths?\n- JSONL export/import performance at scale\n- Transaction contention in multi-agent scenarios\n\n## Common Query Patterns to Optimize\n- bd ready (status + blocked_by resolution)\n- bd list with filters (status, type, priority, labels)\n- bd show with dependency graph traversal\n- bd sync import/export\n\n## Deliverables\n- Document current indexes\n- Identify missing indexes\n- Benchmark key operations at scale\n- Recommend schema improvements","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T23:41:06.481881-08:00","updated_at":"2025-12-22T22:59:25.178175-08:00","closed_at":"2025-12-22T22:59:25.178175-08:00"} {"id":"bd-h27p","title":"Merge: bd-g4b4","description":"branch: polecat/Hooker\ntarget: main\nsource_issue: bd-g4b4\nrig: beads","status":"closed","priority":3,"issue_type":"merge-request","created_at":"2025-12-23T13:38:50.707153-08:00","updated_at":"2025-12-23T19:12:08.357806-08:00","closed_at":"2025-12-23T19:12:08.357806-08:00"} -{"id":"bd-h2er0","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:10:47.245565-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:10:47.279058-08:00","closed_at":"2026-01-08T14:10:47.279058-08:00","close_reason":"auto-closed session event"} -{"id":"bd-h4ffe","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T00:24:24.330198-08:00","created_by":"beads/witness","updated_at":"2026-01-10T00:24:24.38733-08:00","closed_at":"2026-01-10T00:24:24.38733-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-h2er0","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:10:47.245565-08:00","updated_at":"2026-01-08T14:10:47.279058-08:00","closed_at":"2026-01-08T14:10:47.279058-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-h4ffe","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T00:24:24.330198-08:00","updated_at":"2026-01-10T00:24:24.38733-08:00","closed_at":"2026-01-10T00:24:24.38733-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} {"id":"bd-h4hc","title":"Test child issue","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-05T13:00:42.368282-08:00","updated_at":"2025-11-05T13:01:11.64526-08:00","closed_at":"2025-11-05T13:01:11.64526-08:00"} -{"id":"bd-h4tj","title":"Refinery Patrol","description":"Merge queue processor patrol loop with verification gates.","status":"closed","priority":2,"issue_type":"molecule","created_at":"2025-12-27T19:24:07.068355-08:00","created_by":"deacon","updated_at":"2025-12-30T18:12:30.964309-08:00","closed_at":"2025-12-30T18:11:14.218164-08:00"} -{"id":"bd-h502","title":"Swarm: Test epic for duplicate swarm","description":"Swarm molecule orchestrating epic bd-4d9d.\n\nEpic: bd-4d9d\nCoordinator: ","status":"closed","priority":2,"issue_type":"molecule","created_at":"2025-12-28T21:59:45.597534-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-29T13:40:29.713516-08:00","closed_at":"2025-12-29T13:40:29.713516-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates","dependencies":[{"issue_id":"bd-h502","depends_on_id":"bd-4d9d","type":"relates-to","created_at":"2025-12-28T21:59:45.598237-08:00","created_by":"beads/crew/dave"}]} +{"id":"bd-h4tj","title":"Refinery Patrol","description":"Merge queue processor patrol loop with verification gates.","status":"closed","priority":2,"issue_type":"molecule","created_at":"2025-12-27T19:24:07.068355-08:00","updated_at":"2025-12-30T18:12:30.964309-08:00","closed_at":"2025-12-30T18:11:14.218164-08:00","created_by":"deacon"} +{"id":"bd-h502","title":"Swarm: Test epic for duplicate swarm","description":"Swarm molecule orchestrating epic bd-4d9d.\n\nEpic: bd-4d9d\nCoordinator: ","status":"closed","priority":2,"issue_type":"molecule","created_at":"2025-12-28T21:59:45.597534-08:00","updated_at":"2025-12-29T13:40:29.713516-08:00","closed_at":"2025-12-29T13:40:29.713516-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-h502","depends_on_id":"bd-4d9d","type":"relates-to","created_at":"2025-12-28T21:59:45.598237-08:00","created_by":"beads/crew/dave"}]} {"id":"bd-h5n1","title":"bd cleanup should also prune expired tombstones","description":"## Problem\n\n`bd cleanup` deletes closed issues (converting them to tombstones) but does NOT prune expired tombstones. Users expect 'cleanup' to do comprehensive cleanup.\n\n## Current Behavior\n\n1. `bd cleanup --force` → converts closed issues to tombstones\n2. Expired tombstones (\u003e30 days) remain in issues.jsonl\n3. User must separately run `bd compact` to prune tombstones\n4. `bd doctor` warns about expired tombstones: 'Run bd compact to prune'\n\n## Expected Behavior\n\n`bd cleanup` should also prune expired tombstones from issues.jsonl.\n\n## Impact\n\nWith v0.30.0 making tombstones the default migration path, this UX gap becomes more visible. Users cleaning up their database shouldn't need to know about a separate `bd compact` command.\n\n## Proposed Solution\n\nCall `pruneExpiredTombstones()` at the end of the cleanup command (same function used by compact). Report results:\n\n```\n✓ Deleted 15 closed issue(s)\n✓ Pruned 3 expired tombstone(s) (older than 30 days)\n```\n\n## Files to Modify\n\n- `cmd/bd/cleanup.go` - Add call to pruneExpiredTombstones after deleteBatch\n- May need to move pruneExpiredTombstones to shared location if not already accessible\n\n## Acceptance Criteria\n\n- [ ] `bd cleanup --force` prunes expired tombstones after deleting closed issues\n- [ ] `bd cleanup --dry-run` shows what tombstones would be pruned\n- [ ] JSON output includes tombstone prune results","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-13T23:49:35.963356-08:00","updated_at":"2025-12-16T02:19:57.237989-08:00","closed_at":"2025-12-14T17:29:50.073906-08:00"} {"id":"bd-h6bo","title":"Protos should have distinct prefix (e.g., proto-)","description":"Currently protos use the same bd- prefix as regular issues, making them visually indistinguishable. When you see bd-7bs4 it looks like work to squash, not a reusable template.\n\n**Problem:**\n- Protos look like regular issues\n- No visual signal that something is a template vs active work\n- Easy to accidentally close/modify protos thinking they're issues\n\n**Proposed Solution:**\n- Protos should have their own prefix (e.g., `proto-`, `mol-`, or `tpl-`)\n- Could be a separate database/storage for the proto library\n- Or a convention where proto IDs are generated differently\n\n**Alternatives:**\n1. Separate proto database with `proto-` prefix\n2. Special ID format for protos (e.g., `bd:proto:release`)\n3. Visual indicator in bd list/show output (already have labels, but not enough)\n\n**Current workaround:** Label with `template` and `molecule`, but IDs still look like regular issues.","status":"tombstone","priority":2,"issue_type":"feature","created_at":"2025-12-24T16:30:28.677791-08:00","updated_at":"2025-12-24T16:45:24.862627-08:00","deleted_at":"2025-12-24T16:45:24.862627-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"feature"} -{"id":"bd-h6zte","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T20:06:41.557239-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T20:06:47.643644-08:00","closed_at":"2026-01-12T20:06:47.643644-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-h7k89","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:52:16.325362-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T13:52:16.360347-08:00","closed_at":"2026-01-09T13:52:16.360347-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-h7qrl","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T05:11:28.426544-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T05:11:28.485879-08:00","closed_at":"2026-01-11T05:11:28.485879-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-h7vij","title":"test","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T19:26:12.092181-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-10T19:27:06.374364-08:00","closed_at":"2026-01-10T19:27:06.374364-08:00","close_reason":"Closed"} +{"id":"bd-h6zte","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T20:06:41.557239-08:00","updated_at":"2026-01-12T20:06:47.643644-08:00","closed_at":"2026-01-12T20:06:47.643644-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-h7k89","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:52:16.325362-08:00","updated_at":"2026-01-09T13:52:16.360347-08:00","closed_at":"2026-01-09T13:52:16.360347-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-h7qrl","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T05:11:28.426544-08:00","updated_at":"2026-01-11T05:11:28.485879-08:00","closed_at":"2026-01-11T05:11:28.485879-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-h7vij","title":"test","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T19:26:12.092181-08:00","updated_at":"2026-01-10T19:27:06.374364-08:00","closed_at":"2026-01-10T19:27:06.374364-08:00","close_reason":"Closed","created_by":"beads/crew/dave"} {"id":"bd-h807","title":"Cross-project dependency support","description":"Enable tracking dependencies across project boundaries.\n\n## Mechanism\n- Producer: `bd ship \u003ccapability\u003e` adds `provides:\u003ccapability\u003e` label\n- Consumer: `blocked_by: external:\u003cproject\u003e:\u003ccapability\u003e`\n- Resolution: `bd ready` checks external deps via config\n\n## Design Doc\nSee: gastown/docs/cross-project-deps.md\n\n## Children\n- bd-eijl: bd ship command\n- bd-om4a: external: prefix in blocked_by\n- bd-66w1: external_projects config\n- bd-zmmy: bd ready resolution","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-21T22:38:01.116241-08:00","updated_at":"2025-12-22T00:02:09.271076-08:00","closed_at":"2025-12-22T00:02:09.271076-08:00"} {"id":"bd-h8q","title":"Add tests for validation functions","description":"Validation functions like ParseIssueType have 0% coverage. These are critical for ensuring data quality and preventing invalid data from entering the system.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-18T07:01:02.843488344-07:00","updated_at":"2025-12-18T07:03:53.561016965-07:00","closed_at":"2025-12-18T07:03:53.561016965-07:00","dependencies":[{"issue_id":"bd-h8q","depends_on_id":"bd-6ss","type":"discovered-from","created_at":"2025-12-18T07:01:02.846419747-07:00","created_by":"matt"}]} {"id":"bd-h8ym","title":"Wait for CI to pass","description":"Monitor GitHub Actions - all checks must pass before release artifacts are built","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T13:52:33.066792-08:00","updated_at":"2025-12-21T13:53:49.454536-08:00","deleted_at":"2025-12-21T13:53:49.454536-08:00","deleted_by":"stevey","delete_reason":"manual delete","original_type":"task"} {"id":"bd-haxi","title":"Restart running daemons","description":"Kill and restart any running bd daemons to pick up new version: pkill -f 'bd daemon' \u0026\u0026 bd daemon --start","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T13:52:33.066262-08:00","updated_at":"2025-12-21T13:53:49.757078-08:00","deleted_at":"2025-12-21T13:53:49.757078-08:00","deleted_by":"stevey","delete_reason":"manual delete","original_type":"task"} {"id":"bd-haze","title":"Fix beads-9yc: pinned column missing from schema. gt mail...","description":"Fix beads-9yc: pinned column missing from schema. gt mail send fails because some beads DBs lack the pinned column. Add migration to ensure it exists.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-19T15:05:33.394801-08:00","updated_at":"2025-12-21T15:26:35.171757-08:00","closed_at":"2025-12-21T15:26:35.171757-08:00"} -{"id":"bd-hbz8e","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T18:13:35.29649-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T18:13:35.363606-08:00","closed_at":"2026-01-12T18:13:35.363606-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-hcppl","title":"Merge: ruby-mk905whv","description":"branch: polecat/ruby-mk905whv\ntarget: main\nsource_issue: ruby-mk905whv\nrig: beads\nagent_bead: bd-beads-polecat-ruby\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T21:03:04.892148-08:00","created_by":"beads/polecats/ruby","updated_at":"2026-01-10T22:05:21.848032-08:00","closed_at":"2026-01-10T22:05:21.848032-08:00","close_reason":"Changes already on main (patch dropped during rebase)","labels":["gt:merge-request"]} +{"id":"bd-hbz8e","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T18:13:35.29649-08:00","updated_at":"2026-01-12T18:13:35.363606-08:00","closed_at":"2026-01-12T18:13:35.363606-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-hcppl","title":"Merge: ruby-mk905whv","description":"branch: polecat/ruby-mk905whv\ntarget: main\nsource_issue: ruby-mk905whv\nrig: beads\nagent_bead: bd-beads-polecat-ruby\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T21:03:04.892148-08:00","updated_at":"2026-01-10T22:05:21.848032-08:00","closed_at":"2026-01-10T22:05:21.848032-08:00","close_reason":"Changes already on main (patch dropped during rebase)","created_by":"beads/polecats/ruby"} {"id":"bd-hdt","title":"Implement auto-merge functionality in duplicates command","description":"The duplicates.go file has a TODO at line 95 to implement the performMerge function for automatic duplicate merging. Currently it just prints a warning message. This would automate the merge process instead of just suggesting commands.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-21T18:55:02.828619-05:00","updated_at":"2025-12-09T18:38:37.693818772-05:00","closed_at":"2025-11-27T22:36:11.517878-08:00"} {"id":"bd-hfs0i","title":"Digest: mol-refinery-patrol","description":"Empty queue patrol: no branches to merge, all checks clean","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T02:45:56.792904-08:00","updated_at":"2026-01-12T02:45:56.792904-08:00","closed_at":"2026-01-12T02:45:56.792858-08:00","close_reason":"Squashed from 11 wisps","dependencies":[{"issue_id":"bd-hfs0i","depends_on_id":"bd-wisp-ec4","type":"parent-child","created_at":"2026-01-12T02:45:56.793879-08:00","created_by":"beads/refinery"}]} -{"id":"bd-hfyz","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T01:09:26.199301-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T01:09:26.233806-08:00","closed_at":"2026-01-07T01:09:26.233806-08:00","close_reason":"auto-closed session event"} -{"id":"bd-hgswd","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T21:16:20.67497-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T21:16:20.709134-08:00","closed_at":"2026-01-09T21:16:20.709134-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-hhjqr","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T14:04:31.381615-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T14:04:31.420548-08:00","closed_at":"2026-01-09T14:04:31.420548-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-hhls3","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:11:30.596263-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:11:30.663581-08:00","closed_at":"2026-01-11T22:11:30.663581-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-hfyz","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T01:09:26.199301-08:00","updated_at":"2026-01-07T01:09:26.233806-08:00","closed_at":"2026-01-07T01:09:26.233806-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-hgswd","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T21:16:20.67497-08:00","updated_at":"2026-01-09T21:16:20.709134-08:00","closed_at":"2026-01-09T21:16:20.709134-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-hhjqr","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T14:04:31.381615-08:00","updated_at":"2026-01-09T14:04:31.420548-08:00","closed_at":"2026-01-09T14:04:31.420548-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-hhls3","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:11:30.596263-08:00","updated_at":"2026-01-11T22:11:30.663581-08:00","closed_at":"2026-01-11T22:11:30.663581-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-hhv3","title":"Test and document molecular chemistry commands","description":"## Context\n\nImplemented the molecular chemistry UX commands per the design docs:\n- gastown/mayor/rig/docs/molecular-chemistry.md\n- gastown/mayor/rig/docs/chemistry-design-changes.md\n\nCommit: cadf798b\n\n## New Commands to Test\n\n| Command | Purpose |\n|---------|---------|\n| `bd pour \u003cproto\u003e` | Instantiate proto as persistent mol |\n| `bd wisp create \u003cproto\u003e` | Instantiate proto as ephemeral wisp |\n| `bd hook [--agent]` | Inspect what's on an agent's hook |\n\n## Enhanced Commands to Test\n\n| Command | Changes |\n|---------|---------|\n| `bd mol spawn --pour` | New flag, `--persistent` deprecated |\n| `bd mol bond --pour` | Force liquid phase on wisp target |\n| `bd pin --for \u003cagent\u003e --start` | Chemistry workflow support |\n\n## Test Scenarios\n\n1. **bd pour**: Create persistent mol from a proto\n - Verify creates in .beads/ (not .beads-wisp/)\n - Verify variable substitution works\n - Verify --dry-run works\n\n2. **bd wisp create**: Create ephemeral wisp from proto\n - Verify creates in .beads-wisp/\n - Verify bd wisp list shows it\n - Verify bd mol squash works\n - Verify bd mol burn works\n\n3. **bd hook**: Inspect pinned work\n - Pin something, verify bd hook shows it\n - Test --agent flag\n - Test --json output\n\n4. **bd pin --for**: Assign work to agent\n - Verify sets pinned=true\n - Verify sets assignee\n - Verify --start sets status=in_progress\n\n5. **bd mol bond --pour**: Force liquid on wisp target\n - Bond a proto to a wisp with --pour\n - Verify spawned issues are in .beads/\n\n## Documentation\n\n- Update CLAUDE.md with new commands\n- Add examples to --help output (already done)\n- Consider adding to docs/CLI_REFERENCE.md\n\n## Code Review\n\n- Check for edge cases\n- Verify error messages are helpful\n- Ensure --json output is consistent","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-22T02:22:10.906646-08:00","updated_at":"2025-12-22T02:55:37.983703-08:00","closed_at":"2025-12-22T02:55:37.983703-08:00"} -{"id":"bd-hj0s","title":"Add 'convoy' issue type with reactive completion","description":"Add convoy as a new issue type with reactive completion semantics.\n\nBehavior:\n- Convoy has list of tracked issues (via 'tracks' relation)\n- When all tracked issues close (including wontfix), convoy auto-closes\n- Supports cross-prefix tracking (convoy in hq-* tracks gt-*, bd-*)\n\nImplementation:\n- New type: convoy\n- Reactive completion trigger on tracked issue closure\n- Query support: 'bd list --type=convoy'\n\nRelated: hq-7h8jx (Convoy System epic in town beads)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-29T18:47:02.011011-08:00","created_by":"mayor","updated_at":"2025-12-30T15:44:43.361813-08:00","closed_at":"2025-12-30T00:05:13.515078-08:00","close_reason":"Implemented convoy type with reactive completion","dependencies":[{"issue_id":"bd-hj0s","depends_on_id":"bd-3roq","type":"blocks","created_at":"2025-12-29T18:47:10.59211-08:00","created_by":"daemon"}]} -{"id":"bd-hkmqx","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T13:29:11.452418-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T13:29:11.534925-08:00","closed_at":"2026-01-13T13:29:11.534925-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-hj0s","title":"Add 'convoy' issue type with reactive completion","description":"Add convoy as a new issue type with reactive completion semantics.\n\nBehavior:\n- Convoy has list of tracked issues (via 'tracks' relation)\n- When all tracked issues close (including wontfix), convoy auto-closes\n- Supports cross-prefix tracking (convoy in hq-* tracks gt-*, bd-*)\n\nImplementation:\n- New type: convoy\n- Reactive completion trigger on tracked issue closure\n- Query support: 'bd list --type=convoy'\n\nRelated: hq-7h8jx (Convoy System epic in town beads)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-29T18:47:02.011011-08:00","updated_at":"2025-12-30T15:44:43.361813-08:00","closed_at":"2025-12-30T00:05:13.515078-08:00","close_reason":"Implemented convoy type with reactive completion","created_by":"mayor","dependencies":[{"issue_id":"bd-hj0s","depends_on_id":"bd-3roq","type":"blocks","created_at":"2025-12-29T18:47:10.59211-08:00","created_by":"daemon"}]} +{"id":"bd-hkmqx","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T13:29:11.452418-08:00","updated_at":"2026-01-13T13:29:11.534925-08:00","closed_at":"2026-01-13T13:29:11.534925-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-hkr6","title":"GH#518: Document bd setup command","description":"bd setup is undiscoverable. Add to README/docs. Currently only findable by grepping source. See GitHub issue #518.","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-16T01:03:54.664668-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-hlsw","title":"Add sync resilience guardrails for forced pushes and prefix mismatches","description":"Beads can get into unrecoverable sync states when remote forces pushes occur (e.g., rebases) combined with prefix mismatches from multi-worker scenarios. Add detection, prevention, and auto-recovery features to handle this gracefully.","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-14T10:40:14.872875259-07:00","updated_at":"2025-12-30T18:12:30.963683-08:00","closed_at":"2025-12-30T17:05:34.559059-08:00","close_reason":"Epic complete: All sync resilience guardrails implemented - auto-recovery mode (bd-hlsw.3) and sync branch integrity guards (bd-hlsw.4)"} {"id":"bd-hlsw.1","title":"Pre-sync integrity check (bd sync --check)","description":"Add bd sync --check flag that detects problematic states before attempting sync: forced pushes on sync branch (via git reflog), prefix mismatches in JSONL, orphaned children with missing parents. Output combined diagnostic without modifying state.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-14T10:40:20.493608412-07:00","updated_at":"2025-12-16T02:19:57.23868-08:00","closed_at":"2025-12-16T01:13:33.639724-08:00","dependencies":[{"issue_id":"bd-hlsw.1","depends_on_id":"bd-hlsw","type":"parent-child","created_at":"2025-12-14T10:40:20.494249154-07:00","created_by":"daemon"}]} @@ -1400,76 +1399,76 @@ {"id":"bd-hlsw.3","title":"Auto-recovery mode (bd sync --auto-recover)","description":"Add bd sync --auto-recover flag that: detects problematic sync state, backs up .beads/issues.db with timestamp, rebuilds DB from JSONL atomically, verifies consistency, reports what was fixed. Provides safety valve when sync integrity fails.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-14T10:40:20.599836875-07:00","updated_at":"2025-12-30T15:44:43.352476-08:00","closed_at":"2025-12-30T07:02:42.636957-08:00","close_reason":"Implemented --auto-recover flag with detection, backup, rebuild, verify, and reporting. Added tests.","dependencies":[{"issue_id":"bd-hlsw.3","depends_on_id":"bd-hlsw","type":"parent-child","created_at":"2025-12-14T10:40:20.600435888-07:00","created_by":"daemon"}]} {"id":"bd-hlsw.4","title":"Sync branch integrity guards","description":"Track sync branch parent commit. If sync branch was force-pushed, warn user and require confirmation before proceeding. Add option to reset to remote if user accepts rebase. Prevents silent corruption from forced pushes.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-14T10:40:20.645402352-07:00","updated_at":"2025-12-30T17:05:23.464495-08:00","closed_at":"2025-12-30T17:05:23.464495-08:00","close_reason":"Implemented sync branch integrity guards: (1) Added force-push detection via stored remote SHA tracking, (2) Added user warning and confirmation prompt when force-push detected, (3) Added --accept-rebase flag for non-interactive reset to remote, (4) Added tests for new functionality","dependencies":[{"issue_id":"bd-hlsw.4","depends_on_id":"bd-hlsw","type":"parent-child","created_at":"2025-12-14T10:40:20.646425761-07:00","created_by":"daemon"}]} {"id":"bd-hlyr","title":"Merge: bd-m8ro","description":"branch: polecat/max\ntarget: main\nsource_issue: bd-m8ro\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-23T20:45:40.218445-08:00","updated_at":"2025-12-23T21:21:57.69886-08:00","closed_at":"2025-12-23T21:21:57.69886-08:00"} -{"id":"bd-hmeb","title":"bd slot set doesn't support cross-beads prefix routing","description":"## Problem\n\n`bd slot set` fails when setting a slot to a bead that lives in a different beads database (cross-db routing).\n\n## Evidence\n\nWhen spawning a polecat:\n```\nWarning: could not set role slot: bd slot set gt-gastown-polecat-chumbucket role hq-polecat-role: \nError: failed to resolve bead hq-polecat-role: no issue found matching \"hq-polecat-role\"\n```\n\nThe agent bead `gt-gastown-polecat-chumbucket` is in rig beads (`gastown/mayor/rig/.beads/`).\nThe role bead `hq-polecat-role` is in town beads (`~/gt/.beads/`).\n\n`bd show hq-polecat-role` works fine (uses prefix routing via routes.jsonl).\n`bd slot set ... hq-polecat-role` fails (does not use routing).\n\n## Root Cause\n\n`bd slot set` resolves the target bead in the current database only, ignoring the `hq-` prefix that should route to town beads.\n\n## Expected Behavior\n\n`bd slot set \u003cagent\u003e \u003cslot\u003e \u003cbead\u003e` should:\n1. Check if `\u003cbead\u003e` has a routable prefix (e.g., `hq-`, `gt-`, `bd-`)\n2. If so, resolve it via routes.jsonl like `bd show` does\n3. Store the bead reference (cross-db references are valid for slots)\n\n## Workaround\n\nCurrently the warning is non-fatal - the role slot just is not set. But this breaks role-based queries.\n\n## Files\n\n- `cmd/slot.go` - slot set command implementation\n- Need to add routing logic similar to `cmd/show.go`","status":"closed","priority":1,"issue_type":"bug","assignee":"beads/polecats/garnet","created_at":"2026-01-04T15:12:40.230597-08:00","created_by":"mayor","updated_at":"2026-01-04T15:16:19.493134-08:00","closed_at":"2026-01-04T15:16:19.493134-08:00","close_reason":"Added prefix routing to bd slot set command. Now uses needsRouting() and resolveAndGetIssueWithRouting() to handle cross-beads references like hq-* from rig beads."} -{"id":"bd-hn824","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T10:20:37.813804-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T10:20:37.879142-08:00","closed_at":"2026-01-11T10:20:37.879142-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-hmeb","title":"bd slot set doesn't support cross-beads prefix routing","description":"## Problem\n\n`bd slot set` fails when setting a slot to a bead that lives in a different beads database (cross-db routing).\n\n## Evidence\n\nWhen spawning a polecat:\n```\nWarning: could not set role slot: bd slot set gt-gastown-polecat-chumbucket role hq-polecat-role: \nError: failed to resolve bead hq-polecat-role: no issue found matching \"hq-polecat-role\"\n```\n\nThe agent bead `gt-gastown-polecat-chumbucket` is in rig beads (`gastown/mayor/rig/.beads/`).\nThe role bead `hq-polecat-role` is in town beads (`~/gt/.beads/`).\n\n`bd show hq-polecat-role` works fine (uses prefix routing via routes.jsonl).\n`bd slot set ... hq-polecat-role` fails (does not use routing).\n\n## Root Cause\n\n`bd slot set` resolves the target bead in the current database only, ignoring the `hq-` prefix that should route to town beads.\n\n## Expected Behavior\n\n`bd slot set \u003cagent\u003e \u003cslot\u003e \u003cbead\u003e` should:\n1. Check if `\u003cbead\u003e` has a routable prefix (e.g., `hq-`, `gt-`, `bd-`)\n2. If so, resolve it via routes.jsonl like `bd show` does\n3. Store the bead reference (cross-db references are valid for slots)\n\n## Workaround\n\nCurrently the warning is non-fatal - the role slot just is not set. But this breaks role-based queries.\n\n## Files\n\n- `cmd/slot.go` - slot set command implementation\n- Need to add routing logic similar to `cmd/show.go`","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-04T15:12:40.230597-08:00","updated_at":"2026-01-04T15:16:19.493134-08:00","closed_at":"2026-01-04T15:16:19.493134-08:00","close_reason":"Added prefix routing to bd slot set command. Now uses needsRouting() and resolveAndGetIssueWithRouting() to handle cross-beads references like hq-* from rig beads.","created_by":"mayor"} +{"id":"bd-hn824","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T10:20:37.813804-08:00","updated_at":"2026-01-11T10:20:37.879142-08:00","closed_at":"2026-01-11T10:20:37.879142-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-hnkg","title":"GH#540: Add silent quick-capture mode (bd q)","description":"Add bd q alias for quick capture that outputs only issue ID. Useful for piping/scripting. See GitHub issue #540.","status":"tombstone","priority":2,"issue_type":"feature","created_at":"2025-12-16T01:03:38.260135-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"feature"} -{"id":"bd-hnnig","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:53:21.121124-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-09T13:53:21.169378-08:00","closed_at":"2026-01-09T13:53:21.169378-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-hnw8j","title":"gt prime: add tests for --dry-run, --state, --explain flags","description":"dispatched_by: mayor\n\nThe new observability flags have no test coverage:\n\n1. --dry-run: Test that side effects are skipped (marker not removed, bd prime not called)\n2. --state: Test state detection for each state (normal, post-handoff, crash-recovery, autonomous)\n3. --explain: Test that [EXPLAIN] tags are added when flag is set\n\nKey functions to test:\n- detectSessionState()\n- outputState()\n- checkHandoffMarkerDryRun()\n- explain()\n\nLocation: gastown/mayor/rig/internal/cmd/prime.go, needs prime_test.go additions","status":"closed","priority":2,"issue_type":"task","assignee":"beads/polecats/jade","created_at":"2026-01-10T00:46:27.973422-08:00","created_by":"mayor","updated_at":"2026-01-12T19:46:01.041179-08:00","closed_at":"2026-01-12T19:46:01.041179-08:00","close_reason":"Added comprehensive tests for gt prime observability flags:\n- TestCheckHandoffMarkerDryRun: Verifies --dry-run doesn't remove handoff marker\n- TestCheckHandoffMarkerDryRun_NoMarker: Tests --dry-run when no marker exists\n- TestDetectSessionState: Tests all 4 states (normal, post-handoff, crash-recovery, autonomous)\n- TestOutputState: Tests text and JSON output formats for --state flag\n- TestExplain: Tests [EXPLAIN] tag output when --explain is enabled\n- TestDryRunSkipsSideEffects: CLI integration test for --dry-run\n\nAll tests pass."} -{"id":"bd-hnwxp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:40:41.166373-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:40:41.23064-08:00","closed_at":"2026-01-11T19:40:41.23064-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-hnnig","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:53:21.121124-08:00","updated_at":"2026-01-09T13:53:21.169378-08:00","closed_at":"2026-01-09T13:53:21.169378-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} +{"id":"bd-hnw8j","title":"gt prime: add tests for --dry-run, --state, --explain flags","description":"dispatched_by: mayor\n\nThe new observability flags have no test coverage:\n\n1. --dry-run: Test that side effects are skipped (marker not removed, bd prime not called)\n2. --state: Test state detection for each state (normal, post-handoff, crash-recovery, autonomous)\n3. --explain: Test that [EXPLAIN] tags are added when flag is set\n\nKey functions to test:\n- detectSessionState()\n- outputState()\n- checkHandoffMarkerDryRun()\n- explain()\n\nLocation: gastown/mayor/rig/internal/cmd/prime.go, needs prime_test.go additions","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T00:46:27.973422-08:00","updated_at":"2026-01-12T19:46:01.041179-08:00","closed_at":"2026-01-12T19:46:01.041179-08:00","close_reason":"Added comprehensive tests for gt prime observability flags:\n- TestCheckHandoffMarkerDryRun: Verifies --dry-run doesn't remove handoff marker\n- TestCheckHandoffMarkerDryRun_NoMarker: Tests --dry-run when no marker exists\n- TestDetectSessionState: Tests all 4 states (normal, post-handoff, crash-recovery, autonomous)\n- TestOutputState: Tests text and JSON output formats for --state flag\n- TestExplain: Tests [EXPLAIN] tag output when --explain is enabled\n- TestDryRunSkipsSideEffects: CLI integration test for --dry-run\n\nAll tests pass.","created_by":"mayor"} +{"id":"bd-hnwxp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:40:41.166373-08:00","updated_at":"2026-01-11T19:40:41.23064-08:00","closed_at":"2026-01-11T19:40:41.23064-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-ho5","title":"Add 'town report' command for aggregated swarm status","description":"## Problem\nGetting a full swarm status requires running 6+ commands:\n- `town list \u003crig\u003e` for each rig\n- `town mail inbox` as Boss\n- `bd list --status=open/in_progress` per rig\n\nThis is slow and error-prone for both humans and agents.\n\n## Proposed Solution\nAdd `town report [RIG]` command that aggregates:\n- All rigs with polecat states (running/stopped, awake/asleep)\n- Boss inbox summary (unread count, recent senders)\n- Aggregate issue counts per rig (open/in_progress/blocked)\n\nExample output:\n```\n=== beads ===\nPolecats: 5 (5 running, 0 stopped)\nIssues: 20 open, 0 in_progress, 0 blocked\n\n=== gastown ===\nPolecats: 6 (4 running, 2 stopped)\nIssues: 0 open, 0 in_progress, 0 blocked\n\n=== Boss Mail ===\nUnread: 10 | Total: 22\nRecent: rictus (21:19), scrotus (21:14), immortanjoe (21:14)\n```\n\n## Acceptance Criteria\n- [ ] `town report` shows all rigs\n- [ ] `town report \u003crig\u003e` shows single rig detail\n- [ ] Output is concise and scannable\n- [ ] Completes in \u003c2 seconds","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-27T22:55:36.8919-08:00","updated_at":"2025-11-27T22:56:08.071838-08:00","closed_at":"2025-11-27T22:56:08.071838-08:00"} -{"id":"bd-hobo","title":"Distinct prefixes for protos, molecules, wisps","description":"Template/workflow entities should have visually distinct prefixes from regular issues.\n\n**Problem:**\n- Protos (bd-7bs4) look like regular issues - invites squashing\n- Molecules (poured instances) also use bd- prefix\n- Wisps are in separate DB but still use bd- when referenced\n\n**Proposed Prefixes:**\n- `proto-` for templates (e.g., proto-release, proto-review)\n- `mol-` for active molecules (poured from protos)\n- `wisp-` for ephemeral wisps (vapor phase)\n\n**Benefits:**\n- Instant visual recognition of entity type\n- Prevents accidental modification of templates\n- Clear lifecycle: proto → mol → wisp → digest\n\n**Implementation options:**\n1. Separate databases with different prefixes\n2. Issue type determines prefix generation\n3. Naming convention enforced by bd pour/wisp commands","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-24T16:45:24.940809-08:00","updated_at":"2025-12-25T02:04:52.459233-08:00","closed_at":"2025-12-25T02:04:52.459233-08:00","labels":["workflow"]} -{"id":"bd-hp2gf","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:22:50.612675-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T18:22:50.678625-08:00","closed_at":"2026-01-11T18:22:50.678625-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-hp8g","title":"gt sling should look up formulas from .beads/formulas/ registry","description":"## Problem\n\ngt sling \u003cformula-name\u003e doesn't find formulas from the registry that bd formula list shows.\n\n## What I tried\n\n1. gt sling beads/crew/emma --formula beads-release --var version=0.42.0\n - Problem: --formula flag doesn't exist\n\n2. gt sling beads-release beads/crew/emma --var version=0.42.0\n - Error: open .../beads-release: no such file or directory\n - Problem: Looks for file in cwd, not formula registry\n\n## What worked\n\nbd mol wisp beads-release --var version=0.42.0 - correctly finds formula from .beads/formulas/\n\n## Expected\n\ngt sling should use the same formula lookup as bd mol wisp - checking .beads/formulas/*.formula.json\n\n## Documentation gap\n\nThe help shows examples like 'gt sling mol-release mayor/' suggesting formula slinging works, but it doesn't find registry formulas.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-30T21:18:17.251292-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-04T15:22:07.76793-08:00","closed_at":"2025-12-30T22:06:27.153176-08:00","close_reason":"Fixed in both repos: bd cook now looks up formulas from registry, and gt sling uses bd mol wisp"} -{"id":"bd-hpdfw","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:32:41.671104-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T23:32:41.736919-08:00","closed_at":"2026-01-12T23:32:41.736919-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-hobo","title":"Distinct prefixes for protos, molecules, wisps","description":"Template/workflow entities should have visually distinct prefixes from regular issues.\n\n**Problem:**\n- Protos (bd-7bs4) look like regular issues - invites squashing\n- Molecules (poured instances) also use bd- prefix\n- Wisps are in separate DB but still use bd- when referenced\n\n**Proposed Prefixes:**\n- `proto-` for templates (e.g., proto-release, proto-review)\n- `mol-` for active molecules (poured from protos)\n- `wisp-` for ephemeral wisps (vapor phase)\n\n**Benefits:**\n- Instant visual recognition of entity type\n- Prevents accidental modification of templates\n- Clear lifecycle: proto → mol → wisp → digest\n\n**Implementation options:**\n1. Separate databases with different prefixes\n2. Issue type determines prefix generation\n3. Naming convention enforced by bd pour/wisp commands","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-24T16:45:24.940809-08:00","updated_at":"2025-12-25T02:04:52.459233-08:00","closed_at":"2025-12-25T02:04:52.459233-08:00"} +{"id":"bd-hp2gf","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T18:22:50.612675-08:00","updated_at":"2026-01-11T18:22:50.678625-08:00","closed_at":"2026-01-11T18:22:50.678625-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-hp8g","title":"gt sling should look up formulas from .beads/formulas/ registry","description":"## Problem\n\ngt sling \u003cformula-name\u003e doesn't find formulas from the registry that bd formula list shows.\n\n## What I tried\n\n1. gt sling beads/crew/emma --formula beads-release --var version=0.42.0\n - Problem: --formula flag doesn't exist\n\n2. gt sling beads-release beads/crew/emma --var version=0.42.0\n - Error: open .../beads-release: no such file or directory\n - Problem: Looks for file in cwd, not formula registry\n\n## What worked\n\nbd mol wisp beads-release --var version=0.42.0 - correctly finds formula from .beads/formulas/\n\n## Expected\n\ngt sling should use the same formula lookup as bd mol wisp - checking .beads/formulas/*.formula.json\n\n## Documentation gap\n\nThe help shows examples like 'gt sling mol-release mayor/' suggesting formula slinging works, but it doesn't find registry formulas.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-30T21:18:17.251292-08:00","updated_at":"2026-01-04T15:22:07.76793-08:00","closed_at":"2025-12-30T22:06:27.153176-08:00","close_reason":"Fixed in both repos: bd cook now looks up formulas from registry, and gt sling uses bd mol wisp","created_by":"beads/crew/emma"} +{"id":"bd-hpdfw","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T23:32:41.671104-08:00","updated_at":"2026-01-12T23:32:41.736919-08:00","closed_at":"2026-01-12T23:32:41.736919-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-hpt5","title":"show commit hash in 'bd version' when built from source'\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-13T13:26:14.662089379-07:00","updated_at":"2025-11-14T09:18:09.721428859-07:00","closed_at":"2025-11-14T09:18:09.721428859-07:00"} {"id":"bd-hpxvi","title":"Digest: mol-refinery-patrol","description":"Patrol cycle: queue empty, inherited handoff from previous session, no work to process","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T17:21:48.950982-08:00","updated_at":"2026-01-12T17:21:48.950982-08:00","closed_at":"2026-01-12T17:21:48.950928-08:00","close_reason":"Squashed from 5 wisps","dependencies":[{"issue_id":"bd-hpxvi","depends_on_id":"bd-wisp-ec4","type":"parent-child","created_at":"2026-01-12T17:21:48.95197-08:00","created_by":"beads/refinery"}]} {"id":"bd-hr39","title":"bd cook: needs field not converted to step dependencies","description":"When cooking a formula with `needs` fields on steps, the dependencies are not created between sibling steps.\n\n## Expected\n\nFormula:\n```yaml\nsteps:\n - id: inbox-check\n title: Check inbox\n - id: trigger-spawns\n title: Nudge polecats\n needs: [inbox-check]\n```\n\nShould create:\n- mol-foo.inbox-check (no deps)\n- mol-foo.trigger-spawns → depends on → mol-foo.inbox-check\n\n## Actual\n\nBoth steps only depend on the parent proto:\n- mol-foo.inbox-check → depends on → mol-foo\n- mol-foo.trigger-spawns → depends on → mol-foo\n\nThe `needs` field is ignored.\n\n## Impact\n\nThis breaks the step execution order. Steps that should wait for predecessors will run in parallel or out of order.\n\n## Reproduction\n\n```bash\nbd cook mol-deacon-patrol.formula.yaml\nbd show mol-deacon-patrol.trigger-pending-spawns\n# Shows: Depends on mol-deacon-patrol (parent only)\n# Should show: Depends on mol-deacon-patrol.inbox-check\n```","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-24T13:49:59.023514-08:00","updated_at":"2025-12-24T13:59:09.929298-08:00","closed_at":"2025-12-24T13:59:09.929298-08:00"} -{"id":"bd-hsebc","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T09:34:40.429935-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T09:34:40.492171-08:00","closed_at":"2026-01-11T09:34:40.492171-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-hserm","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:26:44.881082-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T21:26:44.948955-08:00","closed_at":"2026-01-11T21:26:44.948955-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-hsebc","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T09:34:40.429935-08:00","updated_at":"2026-01-11T09:34:40.492171-08:00","closed_at":"2026-01-11T09:34:40.492171-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-hserm","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:26:44.881082-08:00","updated_at":"2026-01-11T21:26:44.948955-08:00","closed_at":"2026-01-11T21:26:44.948955-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-hsl3","title":"Updated title","status":"closed","priority":0,"issue_type":"feature","created_at":"2025-11-07T19:07:12.92354-08:00","updated_at":"2025-11-07T22:07:17.346243-08:00","closed_at":"2025-11-07T21:57:59.911411-08:00"} -{"id":"bd-htfk","title":"Measure notification latency vs git sync","description":"Benchmark end-to-end latency for status updates to propagate between agents using both methods.\n\nAcceptance Criteria:\n- Measure git sync latency (commit → push → pull → import)\n- Measure Agent Mail latency (send_message → fetch_inbox)\n- Document latency distribution (p50, p95, p99)\n- Verify \u003c100ms claim for Agent Mail\n- Compare against 1-5s baseline for git\n\nSuccess Metric: Agent Mail latency \u003c 100ms, git sync latency \u003e 1000ms","notes":"Latency benchmark completed. Results documented in latency_results.md:\n- Git sync: 2000-5000ms (full cycle with network)\n- Agent Mail: \u003c100ms (HTTP API round-trip)\n- Confirms 20-50x latency reduction claim","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-07T22:42:00.031959-08:00","updated_at":"2025-11-08T00:05:02.04159-08:00","closed_at":"2025-11-08T00:05:02.04159-08:00","dependencies":[{"issue_id":"bd-htfk","depends_on_id":"bd-muls","type":"blocks","created_at":"2025-11-07T23:03:52.969505-08:00","created_by":"daemon"},{"issue_id":"bd-htfk","depends_on_id":"bd-spmx","type":"parent-child","created_at":"2025-11-08T00:02:47.918425-08:00","created_by":"daemon"}]} -{"id":"bd-htqex","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T13:15:36.432027-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T13:15:36.50279-08:00","closed_at":"2026-01-13T13:15:36.50279-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-htwx","title":"Stale daemon.lock files cause 5+ second delays","description":"## Problem\nWhen a bd daemon crashes or is killed without cleanup, it leaves a stale daemon.lock file. Subsequent bd commands try to connect to the dead daemon, causing 5+ second timeouts before falling back to direct mode.\n\nFound during gt status optimization (gt-zdtpw) - one stale wyvern daemon was causing 10+ second delays.\n\n## Evidence\n```\n# Lock files with stale PIDs:\n$ find ~/gt -name \"daemon.lock\" -exec cat {} \\;\n{\"pid\": 11045, ...} # Not running (from Dec 27)\n{\"pid\": 15986, ...} # Not running (from Dec 27)\n{\"pid\": 98055, ...} # Just restarted\n\n# But running daemons have different PIDs:\n$ ps aux | grep \"bd.*daemon\"\n11847, 11683, 11624 # None match the lock files!\n```\n\n## Proposed fixes\n\n### 1. Validate lock on startup (quick fix)\nBefore trusting daemon.lock, check if the PID is still running:\n```python\ndef is_daemon_alive(lock_path):\n lock = json.load(open(lock_path))\n try:\n os.kill(lock[\"pid\"], 0) # Signal 0 = check if alive\n return True\n except OSError:\n return False\n```\n\n### 2. Heartbeat mechanism (robust fix)\nDaemon writes periodic heartbeat to lock file or separate file.\nClients check heartbeat age before attempting IPC.\n\n### 3. Lock cleanup in daemon startup\nWhen starting a new daemon, always check for and clean stale locks.\n\n### 4. Graceful shutdown handling\nRegister signal handlers (SIGTERM, SIGINT) to clean up lock on exit.\n\n## Workaround\nFor now, gastown uses `--no-daemon` for all read operations to avoid this issue.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-31T12:19:37.758373-08:00","created_by":"gastown/crew/max","updated_at":"2025-12-31T13:03:56.641703-08:00","closed_at":"2025-12-31T13:03:56.641703-08:00","close_reason":"Fixed - use flock-based check as authoritative source instead of PID file"} -{"id":"bd-hu0i1","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:27:25.017645-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T20:27:25.053639-08:00","closed_at":"2026-01-08T20:27:25.053639-08:00","close_reason":"auto-closed session event"} +{"id":"bd-htfk","title":"Measure notification latency vs git sync","description":"Benchmark end-to-end latency for status updates to propagate between agents using both methods.\n\nAcceptance Criteria:\n- Measure git sync latency (commit → push → pull → import)\n- Measure Agent Mail latency (send_message → fetch_inbox)\n- Document latency distribution (p50, p95, p99)\n- Verify \u003c100ms claim for Agent Mail\n- Compare against 1-5s baseline for git\n\nSuccess Metric: Agent Mail latency \u003c 100ms, git sync latency \u003e 1000ms","notes":"Latency benchmark completed. Results documented in latency_results.md:\n- Git sync: 2000-5000ms (full cycle with network)\n- Agent Mail: \u003c100ms (HTTP API round-trip)\n- Confirms 20-50x latency reduction claim","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-07T22:42:00.031959-08:00","updated_at":"2025-11-08T00:05:02.04159-08:00","closed_at":"2025-11-08T00:05:02.04159-08:00","dependencies":[{"issue_id":"bd-htfk","depends_on_id":"bd-spmx","type":"parent-child","created_at":"2025-11-08T00:02:47.918425-08:00","created_by":"daemon"},{"issue_id":"bd-htfk","depends_on_id":"bd-muls","type":"blocks","created_at":"2025-11-07T23:03:52.969505-08:00","created_by":"daemon"}]} +{"id":"bd-htqex","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T13:15:36.432027-08:00","updated_at":"2026-01-13T13:15:36.50279-08:00","closed_at":"2026-01-13T13:15:36.50279-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-htwx","title":"Stale daemon.lock files cause 5+ second delays","description":"## Problem\nWhen a bd daemon crashes or is killed without cleanup, it leaves a stale daemon.lock file. Subsequent bd commands try to connect to the dead daemon, causing 5+ second timeouts before falling back to direct mode.\n\nFound during gt status optimization (gt-zdtpw) - one stale wyvern daemon was causing 10+ second delays.\n\n## Evidence\n```\n# Lock files with stale PIDs:\n$ find ~/gt -name \"daemon.lock\" -exec cat {} \\;\n{\"pid\": 11045, ...} # Not running (from Dec 27)\n{\"pid\": 15986, ...} # Not running (from Dec 27)\n{\"pid\": 98055, ...} # Just restarted\n\n# But running daemons have different PIDs:\n$ ps aux | grep \"bd.*daemon\"\n11847, 11683, 11624 # None match the lock files!\n```\n\n## Proposed fixes\n\n### 1. Validate lock on startup (quick fix)\nBefore trusting daemon.lock, check if the PID is still running:\n```python\ndef is_daemon_alive(lock_path):\n lock = json.load(open(lock_path))\n try:\n os.kill(lock[\"pid\"], 0) # Signal 0 = check if alive\n return True\n except OSError:\n return False\n```\n\n### 2. Heartbeat mechanism (robust fix)\nDaemon writes periodic heartbeat to lock file or separate file.\nClients check heartbeat age before attempting IPC.\n\n### 3. Lock cleanup in daemon startup\nWhen starting a new daemon, always check for and clean stale locks.\n\n### 4. Graceful shutdown handling\nRegister signal handlers (SIGTERM, SIGINT) to clean up lock on exit.\n\n## Workaround\nFor now, gastown uses `--no-daemon` for all read operations to avoid this issue.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-31T12:19:37.758373-08:00","updated_at":"2025-12-31T13:03:56.641703-08:00","closed_at":"2025-12-31T13:03:56.641703-08:00","close_reason":"Fixed - use flock-based check as authoritative source instead of PID file","created_by":"gastown/crew/max"} +{"id":"bd-hu0i1","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:27:25.017645-08:00","updated_at":"2026-01-08T20:27:25.053639-08:00","closed_at":"2026-01-08T20:27:25.053639-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-hulf","title":"Molecule execution state management","description":"Implement molecule execution state tracking.\n\n## State Location\n\n```\n.beads/molecules/\u003cmol-id\u003e.state.yaml\n```\n\n## State Schema\n\n```yaml\nid: mol-deacon-patrol\nformula: mol-deacon-patrol # Source formula\nbonded_at: ISO timestamp\nbonded_by: entity who created it\n\n# Execution state\nstatus: running | paused | completed | failed\ncurrent_step: step-id\nstarted_at: ISO timestamp\ncompleted_at: ISO timestamp (if done)\n\n# Loop tracking\nreset_count: 0\nlast_reset_at: null\n\n# Per-step state\nsteps:\n inbox-check:\n status: completed | in_progress | pending\n started_at: ...\n completed_at: ...\n spawn-work:\n status: pending\n self-inspect:\n status: pending\n\n# Variables (from formula instantiation)\nvariables:\n rig: gastown\n issue_id: gt-xxx\n```\n\n## Operations\n\n- CreateState(molID, formula, variables) - Initialize state\n- LoadState(molID) - Read current state \n- SaveState(molID, state) - Write state\n- AdvanceStep(molID) - Mark current complete, find next\n- ResetState(molID) - Reset all steps to pending\n\n## Files\n\n- internal/mol/state.go\n- internal/mol/types.go","status":"closed","priority":0,"issue_type":"task","created_at":"2025-12-24T15:53:43.381634-08:00","updated_at":"2025-12-24T16:53:11.807645-08:00","closed_at":"2025-12-24T16:53:11.807645-08:00"} {"id":"bd-hv01","title":"Deletions not propagated across multi-workspace sync","description":"## Problem\n\nWhen working with multiple beads workspaces (clones) sharing the same git remote, deleted issues keep coming back.\n\n## Reproduction\n\n1. Clone A deletes issue `bd-xyz` via `bd delete bd-xyz --force`\n2. Clone A daemon syncs and pushes to GitHub\n3. Clone B still has `bd-xyz` in its database\n4. Clone B daemon exports and pushes its JSONL\n5. Clone A pulls and imports → `bd-xyz` comes back!\n\n## Root Cause\n\n**No deletion tracking mechanism.** The system has no way to distinguish between:\n- \"Issue doesn't exist in JSONL because it was deleted\" \n- \"Issue doesn't exist in JSONL because the export is stale\"\n\nImport treats missing issues as \"not in this export\" rather than \"explicitly deleted.\"\n\n## Solution Options\n\n1. **Tombstone records** - Keep deleted issues in JSONL with `\"status\":\"deleted\"` or `\"deleted_at\"` field\n2. **Deletion log** - Separate `.beads/deletions.jsonl` file tracking all deleted IDs\n3. **Three-way merge** - Import compares: DB state, old JSONL, new JSONL\n4. **Manual conflict resolution** - Detect resurrection and prompt user\n\n## Related\n\n- Similar to resurrection logic for orphaned children (bd-cc4f)\n- beads-merge tool handles this better with 3-way merge","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-05T18:34:24.094474-08:00","updated_at":"2025-11-06T18:19:16.233949-08:00","closed_at":"2025-11-06T17:52:24.860716-08:00","dependencies":[{"issue_id":"bd-hv01","depends_on_id":"bd-qqvw","type":"blocks","created_at":"2025-11-05T18:42:35.485002-08:00","created_by":"daemon"}]} -{"id":"bd-hv0zl","title":"Session ended: gt-gastown-crew-george","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T23:35:29.446162-08:00","created_by":"beads/refinery","updated_at":"2026-01-09T21:15:40.684842-08:00","closed_at":"2026-01-09T21:15:40.684842-08:00","close_reason":"Stale session ended events"} -{"id":"bd-hvim5","title":"Review PR #1040: Add prek support as pre-commit alternative","description":"dispatched_by: beads/crew/emma\n\nEasy-win feature with tests. PR: https://github.com/steveyegge/beads/pull/1040. prek is Rust-based pre-commit alternative. Run tests, verify detection patterns, approve and merge.","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/wolf","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T17:26:06.302165-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T17:30:20.424363-08:00","closed_at":"2026-01-12T17:30:20.424363-08:00","close_reason":"PR #1040 merged. Added prek support as pre-commit alternative with proper detection ordering and tests."} +{"id":"bd-hv0zl","title":"Session ended: gt-gastown-crew-george","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T23:35:29.446162-08:00","updated_at":"2026-01-09T21:15:40.684842-08:00","closed_at":"2026-01-09T21:15:40.684842-08:00","close_reason":"Stale session ended events","created_by":"beads/refinery"} +{"id":"bd-hvim5","title":"Review PR #1040: Add prek support as pre-commit alternative","description":"dispatched_by: beads/crew/emma\n\nEasy-win feature with tests. PR: https://github.com/steveyegge/beads/pull/1040. prek is Rust-based pre-commit alternative. Run tests, verify detection patterns, approve and merge.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T17:26:06.302165-08:00","updated_at":"2026-01-12T17:30:20.424363-08:00","closed_at":"2026-01-12T17:30:20.424363-08:00","close_reason":"PR #1040 merged. Added prek support as pre-commit alternative with proper detection ordering and tests.","created_by":"beads/crew/emma"} {"id":"bd-hvng","title":"Merge: bd-w193","description":"branch: polecat/nux\ntarget: main\nsource_issue: bd-w193\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-19T23:23:47.496139-08:00","updated_at":"2025-12-20T23:17:26.996479-08:00","closed_at":"2025-12-20T23:17:26.996479-08:00"} -{"id":"bd-hvwnb","title":"gt prime: detectSessionState duplicates checkSlungWork logic","description":"detectSessionState() (lines 1775-1799) duplicates the hooked bead detection logic from checkSlungWork() (lines 1035-1066). This could lead to drift if one is updated without the other.\n\nOptions:\n1. Extract shared helper function for hooked bead detection\n2. Have detectSessionState call into checkSlungWork (would need refactoring)\n3. Accept duplication with comment noting the relationship\n\nLocation: gastown/mayor/rig/internal/cmd/prime.go","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T00:45:57.553336-08:00","created_by":"mayor","updated_at":"2026-01-11T20:41:19.75541-08:00","closed_at":"2026-01-11T20:41:19.75541-08:00","close_reason":"Won't fix - minor duplication between checkSlungWork and detectSessionState. Low drift risk since both in same package. Not worth the churn."} -{"id":"bd-hw1g","title":"Merge: quartz-mjxey2w1","description":"branch: polecat/quartz-mjxey2w1\ntarget: main\nsource_issue: quartz-mjxey2w1\nrig: beads\nagent_bead: bd-beads-polecat-quartz","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T14:00:55.648449-08:00","created_by":"beads/polecats/quartz","updated_at":"2026-01-02T17:14:49.305672-08:00","closed_at":"2026-01-02T17:14:49.305672-08:00","close_reason":"Orphaned MR - quartz stopped (design doc), branch never pushed"} +{"id":"bd-hvwnb","title":"gt prime: detectSessionState duplicates checkSlungWork logic","description":"detectSessionState() (lines 1775-1799) duplicates the hooked bead detection logic from checkSlungWork() (lines 1035-1066). This could lead to drift if one is updated without the other.\n\nOptions:\n1. Extract shared helper function for hooked bead detection\n2. Have detectSessionState call into checkSlungWork (would need refactoring)\n3. Accept duplication with comment noting the relationship\n\nLocation: gastown/mayor/rig/internal/cmd/prime.go","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T00:45:57.553336-08:00","updated_at":"2026-01-11T20:41:19.75541-08:00","closed_at":"2026-01-11T20:41:19.75541-08:00","close_reason":"Won't fix - minor duplication between checkSlungWork and detectSessionState. Low drift risk since both in same package. Not worth the churn.","created_by":"mayor"} +{"id":"bd-hw1g","title":"Merge: quartz-mjxey2w1","description":"branch: polecat/quartz-mjxey2w1\ntarget: main\nsource_issue: quartz-mjxey2w1\nrig: beads\nagent_bead: bd-beads-polecat-quartz","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T14:00:55.648449-08:00","updated_at":"2026-01-02T17:14:49.305672-08:00","closed_at":"2026-01-02T17:14:49.305672-08:00","close_reason":"Orphaned MR - quartz stopped (design doc), branch never pushed","created_by":"beads/polecats/quartz"} {"id":"bd-hw3c","title":"Fix GH #227: bd edit broken pipe errors","description":"bd edit command gets \"broken pipe\" errors when using daemon mode because editing can take minutes and the daemon connection times out.\n\nSolution: Force bd edit to always use direct mode (--no-daemon) since it's human-only and interactive.\n\nFixed by checking cmd.Name() == \"edit\" in main.go PersistentPreRun and setting noDaemon = true.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-05T14:36:04.289431-08:00","updated_at":"2025-11-05T14:36:08.103964-08:00","closed_at":"2025-11-05T14:36:08.103964-08:00"} {"id":"bd-hw3w","title":"Update info.go versionChanges","description":"Add entry to versionChanges in cmd/bd/info.go with agent-actionable changes for {{version}}","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T22:56:01.016558-08:00","updated_at":"2025-12-20T17:59:26.262511-08:00","closed_at":"2025-12-20T01:23:50.3879-08:00","dependencies":[{"issue_id":"bd-hw3w","depends_on_id":"bd-6s61","type":"parent-child","created_at":"2025-12-19T22:56:14.941855-08:00","created_by":"daemon"},{"issue_id":"bd-hw3w","depends_on_id":"bd-czss","type":"blocks","created_at":"2025-12-19T22:56:23.219257-08:00","created_by":"daemon"}]} -{"id":"bd-hxcf","title":"Add tests for sync redirect handling in git status checks","description":"Commit a61cbde6 added redirect detection for .beads/redirect but lacks tests.\n\nWhen beadsDir is redirected to another repo (crew worktree scenario), git\ncommands now detect this and use git -C \u003ctargetRepoDir\u003e.\n\nTest cases needed:\n- gitHasBeadsChanges() with redirected beads dir runs git from target repo\n- gitHasUncommittedBeadsChanges() handles redirect correctly\n- Redirect detection works with symlinks vs redirect file\n- Non-redirected case still works normally\n\nLocation: cmd/bd/sync_git.go:93-108 and 472-485\nSuggested test file: cmd/bd/sync_git_test.go","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-07T01:18:10.759059-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T21:30:52.419179-08:00","closed_at":"2026-01-10T21:30:52.419179-08:00","close_reason":"Added 8 test cases for redirect handling in sync_git_test.go covering gitHasBeadsChanges and gitHasUncommittedBeadsChanges with and without redirects."} +{"id":"bd-hxcf","title":"Add tests for sync redirect handling in git status checks","description":"Commit a61cbde6 added redirect detection for .beads/redirect but lacks tests.\n\nWhen beadsDir is redirected to another repo (crew worktree scenario), git\ncommands now detect this and use git -C \u003ctargetRepoDir\u003e.\n\nTest cases needed:\n- gitHasBeadsChanges() with redirected beads dir runs git from target repo\n- gitHasUncommittedBeadsChanges() handles redirect correctly\n- Redirect detection works with symlinks vs redirect file\n- Non-redirected case still works normally\n\nLocation: cmd/bd/sync_git.go:93-108 and 472-485\nSuggested test file: cmd/bd/sync_git_test.go","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-07T01:18:10.759059-08:00","updated_at":"2026-01-10T21:30:52.419179-08:00","closed_at":"2026-01-10T21:30:52.419179-08:00","close_reason":"Added 8 test cases for redirect handling in sync_git_test.go covering gitHasBeadsChanges and gitHasUncommittedBeadsChanges with and without redirects.","created_by":"beads/crew/emma"} {"id":"bd-hxou","title":"Daemon performAutoImport should update jsonl_content_hash after import","description":"The daemon's performAutoImport function was not updating jsonl_content_hash after successful import, unlike the CLI import path. This could cause repeated imports if the file hash and DB hash diverge.\n\nFix: Added hash update after validatePostImport succeeds, using repoKey for multi-repo support.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-13T06:44:04.442976-08:00","updated_at":"2025-12-13T06:44:09.546976-08:00","closed_at":"2025-12-13T06:44:09.546976-08:00"} {"id":"bd-hy9p","title":"Add --body-file flag to bd create for reading descriptions from files","description":"## Problem\n\nCreating issues with long/complex descriptions via CLI requires shell escaping gymnastics:\n\n```bash\n# Current workaround - awkward heredoc quoting\nbd create --title=\"...\" --description=\"$(cat \u003c\u003c'EOF'\n...markdown...\nEOF\n)\"\n\n# Often fails with quote escaping errors in eval context\n# Agents resort to writing temp files then reading them\n```\n\n## Proposed Solution\n\nAdd `--body-file` and `--description-file` flags to read description from a file, matching `gh` CLI pattern.\n\n```bash\n# Natural pattern that aligns with training data\ncat \u003e /tmp/desc.md \u003c\u003c 'EOF'\n...markdown content...\nEOF\n\nbd create --title=\"...\" --body-file=/tmp/desc.md\n```\n\n## Implementation\n\n### 1. Add new flags to `bd create`\n\n```go\ncreateCmd.Flags().String(\"body-file\", \"\", \"Read description from file (use - for stdin)\")\ncreateCmd.Flags().String(\"description-file\", \"\", \"Alias for --body-file\")\n```\n\n### 2. Flag precedence\n\n- If `--body-file` or `--description-file` is provided, read from file\n- If value is `-`, read from stdin\n- Otherwise fall back to `--body` or `--description` flag\n- If neither provided, description is empty (current behavior)\n\n### 3. Error handling\n\n- File doesn't exist → clear error message\n- File not readable → clear error message\n- stdin specified but not available → clear error message\n\n## Benefits\n\n✅ **Matches training data**: `gh issue create --body-file file.txt` is a common pattern\n✅ **No shell escaping issues**: File content is read directly\n✅ **Works with any content**: Markdown, special characters, quotes, etc.\n✅ **Agent-friendly**: Agents already write complex content to temp files\n✅ **User-friendly**: Easier for humans too when pasting long descriptions\n\n## Related Commands\n\nConsider adding similar support to:\n- `bd update --body-file` (for updating descriptions)\n- `bd comment --body-file` (if/when we add comments)\n\n## Examples\n\n```bash\n# From file\nbd create --title=\"Add new feature\" --body-file=feature.md\n\n# From stdin\necho \"Quick description\" | bd create --title=\"Bug fix\" --body-file=-\n\n# With other flags\nbd create \\\n --title=\"Security issue\" \\\n --type=bug \\\n --priority=0 \\\n --body-file=security-report.md \\\n --label=security\n```\n\n## Testing\n\n- Test with normal files\n- Test with stdin (`-`)\n- Test with non-existent files (error handling)\n- Test with binary files (should handle gracefully)\n- Test with empty files (valid - empty description)\n- Test that `--description-file` and `--body-file` are equivalent aliases","status":"tombstone","priority":1,"issue_type":"feature","created_at":"2025-11-22T00:02:08.762684-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"feature"} -{"id":"bd-hyiy3","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T18:16:47.839706-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-12T18:16:47.885521-08:00","closed_at":"2026-01-12T18:16:47.885521-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-hyxhe","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T18:03:29.065315-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T18:03:29.132129-08:00","closed_at":"2026-01-12T18:03:29.132129-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-hz46s","title":"Ensure last-touched is never tracked in git","description":"The `.beads/last-touched` file is local runtime state that should never be in git.\n\n**Current issue:**\n- `~/gt/wyvern/.beads/last-touched` is tracked in git\n- Missing `.beads/.gitignore` in some repos allows this\n\n**Required changes:**\n\n1. **Remove from git** (one-time fix for wyvern):\n ```bash\n cd ~/gt \u0026\u0026 git rm --cached wyvern/.beads/last-touched\n ```\n\n2. **bd doctor check** - add to `cmd/bd/doctor/gitignore.go`:\n - Verify `last-touched` is NOT tracked in git (`git ls-files --error-unmatch`)\n - Verify `last-touched` IS in `.beads/.gitignore`\n - Provide auto-fix if missing\n\n3. **bd init** - ensure `.beads/.gitignore` is created with full template including `last-touched`\n\n4. **Town .gitignore safety net** - add `**/.beads/last-touched` to town's `.gitignore`\n\n**Files to modify:**\n- `cmd/bd/doctor/gitignore.go` - add tracked-in-git check\n- `cmd/bd/init.go` - ensure .gitignore creation\n- `~/gt/.gitignore` - add safety net pattern","status":"open","priority":2,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:49:57.540324-08:00","created_by":"mayor","updated_at":"2026-01-12T01:49:57.540324-08:00"} +{"id":"bd-hyiy3","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T18:16:47.839706-08:00","updated_at":"2026-01-12T18:16:47.885521-08:00","closed_at":"2026-01-12T18:16:47.885521-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/grip"} +{"id":"bd-hyxhe","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T18:03:29.065315-08:00","updated_at":"2026-01-12T18:03:29.132129-08:00","closed_at":"2026-01-12T18:03:29.132129-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-hz46s","title":"Ensure last-touched is never tracked in git","description":"The `.beads/last-touched` file is local runtime state that should never be in git.\n\n**Current issue:**\n- `~/gt/wyvern/.beads/last-touched` is tracked in git\n- Missing `.beads/.gitignore` in some repos allows this\n\n**Required changes:**\n\n1. **Remove from git** (one-time fix for wyvern):\n ```bash\n cd ~/gt \u0026\u0026 git rm --cached wyvern/.beads/last-touched\n ```\n\n2. **bd doctor check** - add to `cmd/bd/doctor/gitignore.go`:\n - Verify `last-touched` is NOT tracked in git (`git ls-files --error-unmatch`)\n - Verify `last-touched` IS in `.beads/.gitignore`\n - Provide auto-fix if missing\n\n3. **bd init** - ensure `.beads/.gitignore` is created with full template including `last-touched`\n\n4. **Town .gitignore safety net** - add `**/.beads/last-touched` to town's `.gitignore`\n\n**Files to modify:**\n- `cmd/bd/doctor/gitignore.go` - add tracked-in-git check\n- `cmd/bd/init.go` - ensure .gitignore creation\n- `~/gt/.gitignore` - add safety net pattern","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T01:49:57.540324-08:00","updated_at":"2026-01-12T01:49:57.540324-08:00","created_by":"mayor"} {"id":"bd-hzvz","title":"Update info.go versionChanges","description":"Add entry to versionChanges in cmd/bd/info.go with agent-actionable changes for 0.30.7","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T22:56:48.649359-08:00","updated_at":"2025-12-19T22:57:31.604229-08:00","closed_at":"2025-12-19T22:57:31.604229-08:00","dependencies":[{"issue_id":"bd-hzvz","depends_on_id":"bd-8pyn","type":"parent-child","created_at":"2025-12-19T22:56:48.652068-08:00","created_by":"stevey"},{"issue_id":"bd-hzvz","depends_on_id":"bd-2ep8","type":"blocks","created_at":"2025-12-19T22:56:48.652376-08:00","created_by":"stevey"}]} {"id":"bd-i00","title":"Convert magic numbers to named constants in FlushManager","status":"closed","priority":4,"issue_type":"task","created_at":"2025-11-20T21:22:17.845269-05:00","updated_at":"2025-11-20T21:35:53.11654-05:00","closed_at":"2025-11-20T21:35:53.11654-05:00"} {"id":"bd-i0rx","title":"Merge: bd-ao0s","description":"branch: polecat/rictus\ntarget: main\nsource_issue: bd-ao0s\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-20T01:13:42.716658-08:00","updated_at":"2025-12-20T23:17:26.993744-08:00","closed_at":"2025-12-20T23:17:26.993744-08:00"} -{"id":"bd-i3ed","title":"Refactor bd setup to recipe-based architecture (GH#898)","description":"## Summary\n\nReplace tool-specific setup commands (cursor, claude, etc.) with a generic recipe-based system. New tools become config entries, not code changes.\n\n## Motivation\n\nGH#898 requests Kilo Code integration. Current approach requires new Go code for each tool:\n- `cmd/bd/setup/cursor.go`\n- `cmd/bd/setup/kilocode.go` (proposed)\n- `cmd/bd/setup/windsurf.go` (future?)\n- ...\n\nThis does not scale. All these integrations do the same thing:\n1. Generate markdown content (beads workflow instructions)\n2. Write to tool-specific path\n\nThe **content** is identical. Only the **destination path** varies.\n\n## Design\n\n### Core Insight\n\nBeads does not need to know anything about Kilo Code, Cursor, or Claude Code beyond where they read their rules files. That is a path mapping—data, not code.\n\n### Recipe Format\n\n```toml\n# .beads/recipes.toml (user additions/overrides)\n[cursor]\npath = \".cursor/rules/bd.md\"\n\n[claude]\npath = \"CLAUDE.md\"\n\n[kilocode]\npath = \".kilocode/rules/bd.md\"\n\n[my-custom-editor]\npath = \".myeditor/config/bd.md\"\n```\n\n### Built-in Defaults\n\nShip sensible defaults compiled into binary:\n- cursor → `.cursor/rules/bd.md`\n- claude → `CLAUDE.md`\n- windsurf → `.windsurf/rules/bd.md`\n- cody → `.cody/rules/bd.md` (verify path)\n\nUser file overrides/extends built-in defaults.\n\n### Commands\n\n| Command | Description |\n|---------|-------------|\n| `bd setup \u003crecipe\u003e` | Write template to recipe path |\n| `bd setup --list` | Show available recipes (built-in + user) |\n| `bd setup --print` | Dump template to stdout |\n| `bd setup -o \u003cpath\u003e` | Write to arbitrary path (escape hatch) |\n| `bd setup \u003crecipe\u003e --check` | Verify if installed |\n| `bd setup \u003crecipe\u003e --remove` | Delete the file |\n| `bd setup --add \u003cname\u003e \u003cpath\u003e` | Save custom recipe |\n\n### Template\n\nSingle markdown template embedded in binary. Contains:\n- What beads is\n- Key commands (`bd ready`, `bd create`, `bd close`, etc.)\n- Workflow guidance\n- JSON flags for programmatic use\n\n### Implementation Plan\n\n1. Add `--print` and `-o` flags to existing setup command\n2. Create `internal/recipes/` package\n - Built-in recipes (Go map or embed)\n - Load/merge user `.beads/recipes.toml`\n3. Refactor `cmd/bd/setup/setup.go` to use recipes\n4. Remove tool-specific files (`cursor.go`, etc.)\n5. Add `--add` command to save custom recipes\n6. Update documentation\n\n### Migration\n\nExisting `bd setup cursor` continues to work—just backed by recipe lookup instead of dedicated code.\n\n## Out of Scope (for now)\n\n- `--global` flag (user-level config paths) — use `-o` escape hatch\n- `mode: append` (add to existing file) — wait until requested\n- GitHub recipe registry — overkill for path mappings\n- TOML migration for config.yaml — separate initiative\n\n## Response to GH#898\n\nOnce implemented, respond to PR:\n\n\u003e Thanks for the contribution! We are refactoring `bd setup` to a recipe-based approach where new tools are config entries, not code changes.\n\u003e\n\u003e Instead of new Go files, please submit a PR adding Kilo Code to the built-in recipes in `internal/recipes/builtin.go` (or equivalent). Happy to help if you have questions!\n\n## References\n\n- GH#898: Kilo Code integration request\n- Current setup code: `cmd/bd/setup/`\n","status":"closed","priority":1,"issue_type":"feature","created_at":"2026-01-04T20:05:44.32166-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-04T21:57:21.225792-08:00","closed_at":"2026-01-04T21:57:21.225792-08:00","close_reason":"Implemented recipe-based architecture for bd setup"} -{"id":"bd-i54l","title":"Extract Gas Town-specific issue types from beads core","description":"dispatched_by: beads/crew/dave\n\n## Problem\n\nBeads has accumulated issue types that are specific to Gas Town's orchestration model:\n\n```go\nTypeAgent IssueType = \"agent\" // Agent identity bead\nTypeRole IssueType = \"role\" // Agent role definition \nTypeRig IssueType = \"rig\" // Rig identity bead (project container)\nTypeConvoy IssueType = \"convoy\" // Cross-project tracking\nTypeSlot IssueType = \"slot\" // Exclusive access slot (merge-slot gate)\n```\n\nThis violates separation of concerns. Beads is supposed to be a **generic AI-friendly issue tracker** that Gas Town happens to use - not \"Gas Town's issue tracker.\"\n\n## Impact\n\n- **Credibility**: Beads can't be presented as a standalone tool when it has hardcoded knowledge of a specific orchestration system\n- **Coupling**: Changes to Gas Town's identity model require beads releases\n- **Confusion**: Users outside Gas Town see types that don't apply to them\n\n## Solution\n\n### Option A: Labels instead of types\nGas Town uses labels like `gt:agent`, `gt:role`, `gt:rig` instead of dedicated types. Beads stays generic.\n\n### Option B: Type extension mechanism\nBeads supports custom type registration via config. Gas Town registers its types at init time.\n\n### Option C: Separate identity store\nGas Town maintains agent/role/rig identity outside beads entirely. Beads only tracks work items.\n\n## Types to evaluate\n\n| Type | Keep in beads? | Rationale |\n|------|----------------|-----------|\n| `gate` | Yes | Generic workflow concept (async waits) |\n| `molecule` | Yes | Generic workflow templates |\n| `agent` | **No** | Gas Town identity |\n| `role` | **No** | Gas Town identity |\n| `rig` | **No** | Gas Town identity |\n| `convoy` | **No** | Gas Town cross-rig tracking |\n| `slot` | Maybe | Could be generic \"mutex\" concept |\n\n## Files affected\n\n- `internal/types/types.go` - Type definitions\n- `cmd/bd/create.go` - Type validation\n- `cmd/bd/update.go` - Type validation \n- `internal/storage/sqlite/migrations/030_agent_fields.go` - Schema fields\n- Possibly others with type switch statements","status":"closed","priority":1,"issue_type":"epic","assignee":"beads/crew/dave","created_at":"2026-01-06T20:26:52.332746-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-06T22:19:33.376638-08:00","closed_at":"2026-01-06T22:19:33.376638-08:00","close_reason":"Core type extraction complete. All Gas Town types (agent, role, rig, convoy, slot) removed from beads core and replaced with label-based identification. Remaining task bd-jybi is a data migration for existing beads, which is a deployment concern.","labels":["architecture","separation-of-concerns"]} -{"id":"bd-i5l","title":"Witness Patrol","description":"Per-rig worker monitor patrol loop with progressive nudging.","status":"tombstone","priority":2,"issue_type":"molecule","created_at":"2025-12-26T21:20:47.650732-08:00","created_by":"deacon","updated_at":"2025-12-27T00:10:54.176287-08:00","deleted_at":"2025-12-27T00:10:54.176287-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"molecule"} -{"id":"bd-i5zq3","title":"Assigned issue","status":"open","priority":1,"issue_type":"task","assignee":"testuser","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:13.648845-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:13.648845-08:00"} -{"id":"bd-i63qd","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:24:57.008528-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T00:24:57.078803-08:00","closed_at":"2026-01-12T00:24:57.078803-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-i6fx4","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T12:44:57.191053-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T12:44:57.245416-08:00","closed_at":"2026-01-10T12:44:57.245416-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-i6lc4","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:09:12.693523-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:09:12.761759-08:00","closed_at":"2026-01-11T21:09:12.761759-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-i3ed","title":"Refactor bd setup to recipe-based architecture (GH#898)","description":"## Summary\n\nReplace tool-specific setup commands (cursor, claude, etc.) with a generic recipe-based system. New tools become config entries, not code changes.\n\n## Motivation\n\nGH#898 requests Kilo Code integration. Current approach requires new Go code for each tool:\n- `cmd/bd/setup/cursor.go`\n- `cmd/bd/setup/kilocode.go` (proposed)\n- `cmd/bd/setup/windsurf.go` (future?)\n- ...\n\nThis does not scale. All these integrations do the same thing:\n1. Generate markdown content (beads workflow instructions)\n2. Write to tool-specific path\n\nThe **content** is identical. Only the **destination path** varies.\n\n## Design\n\n### Core Insight\n\nBeads does not need to know anything about Kilo Code, Cursor, or Claude Code beyond where they read their rules files. That is a path mapping—data, not code.\n\n### Recipe Format\n\n```toml\n# .beads/recipes.toml (user additions/overrides)\n[cursor]\npath = \".cursor/rules/bd.md\"\n\n[claude]\npath = \"CLAUDE.md\"\n\n[kilocode]\npath = \".kilocode/rules/bd.md\"\n\n[my-custom-editor]\npath = \".myeditor/config/bd.md\"\n```\n\n### Built-in Defaults\n\nShip sensible defaults compiled into binary:\n- cursor → `.cursor/rules/bd.md`\n- claude → `CLAUDE.md`\n- windsurf → `.windsurf/rules/bd.md`\n- cody → `.cody/rules/bd.md` (verify path)\n\nUser file overrides/extends built-in defaults.\n\n### Commands\n\n| Command | Description |\n|---------|-------------|\n| `bd setup \u003crecipe\u003e` | Write template to recipe path |\n| `bd setup --list` | Show available recipes (built-in + user) |\n| `bd setup --print` | Dump template to stdout |\n| `bd setup -o \u003cpath\u003e` | Write to arbitrary path (escape hatch) |\n| `bd setup \u003crecipe\u003e --check` | Verify if installed |\n| `bd setup \u003crecipe\u003e --remove` | Delete the file |\n| `bd setup --add \u003cname\u003e \u003cpath\u003e` | Save custom recipe |\n\n### Template\n\nSingle markdown template embedded in binary. Contains:\n- What beads is\n- Key commands (`bd ready`, `bd create`, `bd close`, etc.)\n- Workflow guidance\n- JSON flags for programmatic use\n\n### Implementation Plan\n\n1. Add `--print` and `-o` flags to existing setup command\n2. Create `internal/recipes/` package\n - Built-in recipes (Go map or embed)\n - Load/merge user `.beads/recipes.toml`\n3. Refactor `cmd/bd/setup/setup.go` to use recipes\n4. Remove tool-specific files (`cursor.go`, etc.)\n5. Add `--add` command to save custom recipes\n6. Update documentation\n\n### Migration\n\nExisting `bd setup cursor` continues to work—just backed by recipe lookup instead of dedicated code.\n\n## Out of Scope (for now)\n\n- `--global` flag (user-level config paths) — use `-o` escape hatch\n- `mode: append` (add to existing file) — wait until requested\n- GitHub recipe registry — overkill for path mappings\n- TOML migration for config.yaml — separate initiative\n\n## Response to GH#898\n\nOnce implemented, respond to PR:\n\n\u003e Thanks for the contribution! We are refactoring `bd setup` to a recipe-based approach where new tools are config entries, not code changes.\n\u003e\n\u003e Instead of new Go files, please submit a PR adding Kilo Code to the built-in recipes in `internal/recipes/builtin.go` (or equivalent). Happy to help if you have questions!\n\n## References\n\n- GH#898: Kilo Code integration request\n- Current setup code: `cmd/bd/setup/`\n","status":"closed","priority":1,"issue_type":"feature","created_at":"2026-01-04T20:05:44.32166-08:00","updated_at":"2026-01-04T21:57:21.225792-08:00","closed_at":"2026-01-04T21:57:21.225792-08:00","close_reason":"Implemented recipe-based architecture for bd setup","created_by":"beads/crew/fang"} +{"id":"bd-i54l","title":"Extract Gas Town-specific issue types from beads core","description":"dispatched_by: beads/crew/dave\n\n## Problem\n\nBeads has accumulated issue types that are specific to Gas Town's orchestration model:\n\n```go\nTypeAgent IssueType = \"agent\" // Agent identity bead\nTypeRole IssueType = \"role\" // Agent role definition \nTypeRig IssueType = \"rig\" // Rig identity bead (project container)\nTypeConvoy IssueType = \"convoy\" // Cross-project tracking\nTypeSlot IssueType = \"slot\" // Exclusive access slot (merge-slot gate)\n```\n\nThis violates separation of concerns. Beads is supposed to be a **generic AI-friendly issue tracker** that Gas Town happens to use - not \"Gas Town's issue tracker.\"\n\n## Impact\n\n- **Credibility**: Beads can't be presented as a standalone tool when it has hardcoded knowledge of a specific orchestration system\n- **Coupling**: Changes to Gas Town's identity model require beads releases\n- **Confusion**: Users outside Gas Town see types that don't apply to them\n\n## Solution\n\n### Option A: Labels instead of types\nGas Town uses labels like `gt:agent`, `gt:role`, `gt:rig` instead of dedicated types. Beads stays generic.\n\n### Option B: Type extension mechanism\nBeads supports custom type registration via config. Gas Town registers its types at init time.\n\n### Option C: Separate identity store\nGas Town maintains agent/role/rig identity outside beads entirely. Beads only tracks work items.\n\n## Types to evaluate\n\n| Type | Keep in beads? | Rationale |\n|------|----------------|-----------|\n| `gate` | Yes | Generic workflow concept (async waits) |\n| `molecule` | Yes | Generic workflow templates |\n| `agent` | **No** | Gas Town identity |\n| `role` | **No** | Gas Town identity |\n| `rig` | **No** | Gas Town identity |\n| `convoy` | **No** | Gas Town cross-rig tracking |\n| `slot` | Maybe | Could be generic \"mutex\" concept |\n\n## Files affected\n\n- `internal/types/types.go` - Type definitions\n- `cmd/bd/create.go` - Type validation\n- `cmd/bd/update.go` - Type validation \n- `internal/storage/sqlite/migrations/030_agent_fields.go` - Schema fields\n- Possibly others with type switch statements","status":"closed","priority":1,"issue_type":"epic","created_at":"2026-01-06T20:26:52.332746-08:00","updated_at":"2026-01-06T22:19:33.376638-08:00","closed_at":"2026-01-06T22:19:33.376638-08:00","close_reason":"Core type extraction complete. All Gas Town types (agent, role, rig, convoy, slot) removed from beads core and replaced with label-based identification. Remaining task bd-jybi is a data migration for existing beads, which is a deployment concern.","created_by":"beads/crew/dave"} +{"id":"bd-i5l","title":"Witness Patrol","description":"Per-rig worker monitor patrol loop with progressive nudging.","status":"tombstone","priority":2,"issue_type":"molecule","created_at":"2025-12-26T21:20:47.650732-08:00","updated_at":"2025-12-27T00:10:54.176287-08:00","created_by":"deacon","deleted_at":"2025-12-27T00:10:54.176287-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"molecule"} +{"id":"bd-i5zq3","title":"Assigned issue","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-11T18:16:13.648845-08:00","updated_at":"2026-01-11T18:16:13.648845-08:00","created_by":"beads/crew/wolf"} +{"id":"bd-i63qd","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:24:57.008528-08:00","updated_at":"2026-01-12T00:24:57.078803-08:00","closed_at":"2026-01-12T00:24:57.078803-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-i6fx4","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T12:44:57.191053-08:00","updated_at":"2026-01-10T12:44:57.245416-08:00","closed_at":"2026-01-10T12:44:57.245416-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-i6lc4","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:09:12.693523-08:00","updated_at":"2026-01-11T21:09:12.761759-08:00","closed_at":"2026-01-11T21:09:12.761759-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-i7a6","title":"Test actor flag","status":"closed","priority":4,"issue_type":"task","created_at":"2025-12-26T20:47:28.470006-08:00","updated_at":"2025-12-28T09:26:06.084894-08:00","closed_at":"2025-12-28T09:26:06.084894-08:00"} -{"id":"bd-i8zab","title":"Batch wisp deletion in deleteSessionCostWisps","description":"## Problem\n\n`deleteSessionCostWisps()` (internal/cmd/costs.go:1188) burns wisps one at a time in a loop. This creates O(n) subprocess calls for deletion.\n\n## Location\n\ninternal/cmd/costs.go:1143-1191\n\n## Solution\n\nCheck if `bd mol burn` supports multiple IDs. If so, collect IDs and burn in one call.\nIf not, consider adding batch support to bd.","status":"closed","priority":3,"issue_type":"task","assignee":"beads/polecats/quartz","created_at":"2026-01-08T22:55:15.514066-08:00","created_by":"mayor","updated_at":"2026-01-09T00:25:53.94924-08:00","closed_at":"2026-01-09T00:25:53.94924-08:00","close_reason":"Implemented batch wisp deletion in bd mol burn and updated deleteSessionCostWisps to use it"} -{"id":"bd-i9oqv","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T00:47:28.905293-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T00:47:28.946953-08:00","closed_at":"2026-01-10T00:47:28.946953-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-i8zab","title":"Batch wisp deletion in deleteSessionCostWisps","description":"## Problem\n\n`deleteSessionCostWisps()` (internal/cmd/costs.go:1188) burns wisps one at a time in a loop. This creates O(n) subprocess calls for deletion.\n\n## Location\n\ninternal/cmd/costs.go:1143-1191\n\n## Solution\n\nCheck if `bd mol burn` supports multiple IDs. If so, collect IDs and burn in one call.\nIf not, consider adding batch support to bd.","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-08T22:55:15.514066-08:00","updated_at":"2026-01-09T00:25:53.94924-08:00","closed_at":"2026-01-09T00:25:53.94924-08:00","close_reason":"Implemented batch wisp deletion in bd mol burn and updated deleteSessionCostWisps to use it","created_by":"mayor"} +{"id":"bd-i9oqv","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T00:47:28.905293-08:00","updated_at":"2026-01-10T00:47:28.946953-08:00","closed_at":"2026-01-10T00:47:28.946953-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-ia3g","title":"BondRef.ProtoID field name is misleading for mol+mol bonds","description":"In bondMolMol, the BondRef.ProtoID field is used to store molecule IDs:\n\n```go\nBondedFrom: append(molA.BondedFrom, types.BondRef{\n ProtoID: molB.ID, // This is a molecule, not a proto\n ...\n})\n```\n\nThis is semantically confusing since ProtoID suggests it should only hold proto references.\n\n**Options:**\n1. Rename ProtoID to SourceID (breaking change, needs migration)\n2. Add documentation clarifying ProtoID can hold molecule IDs in bond context\n3. Leave as-is, accept the naming is imprecise\n\nLow priority since it's just naming, not functionality.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T10:23:00.755067-08:00","updated_at":"2025-12-30T15:44:43.355533-08:00","closed_at":"2025-12-30T00:40:56.399444-08:00","close_reason":"Merged via refinery"} {"id":"bd-ibl9","title":"Merge: bd-4qfb","description":"branch: polecat/Polish\ntarget: main\nsource_issue: bd-4qfb\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-23T13:37:57.255125-08:00","updated_at":"2025-12-23T19:12:08.352249-08:00","closed_at":"2025-12-23T19:12:08.352249-08:00"} {"id":"bd-ic1m","title":"Benchmark git traffic reduction","description":"Automated benchmark comparing git operations with/without Agent Mail.\n\nAcceptance Criteria:\n- Script that processes 50 issues\n- Counts git operations (pull, commit, push)\n- Generates comparison report\n- Verifies ≥70% reduction\n- Fails if regression detected\n\nFile: tests/benchmarks/git_traffic.py\n\nOutput: Without Agent Mail: 450 git operations, With Agent Mail: 135 git operations, Reduction: 70%","notes":"Implemented automated benchmark script with following features:\n- Processes configurable number of issues (default 50)\n- Compares git operations in two modes: git-only vs Agent Mail\n- Generates detailed comparison report with statistics\n- Exit code reflects pass/fail based on 70% reduction target\n- Results: 98.5% reduction (200 ops → 3 ops) for 50 issues\n\nFiles created:\n- tests/benchmarks/git_traffic.py (main benchmark script)\n- tests/benchmarks/README.md (documentation)\n- tests/benchmarks/git_traffic_50_issues.md (sample results)\n\nThe benchmark vastly exceeds the 70% target, showing 98.5% reduction.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-07T22:43:21.486095-08:00","updated_at":"2025-11-08T02:08:19.648473-08:00","closed_at":"2025-11-08T02:08:19.648473-08:00","dependencies":[{"issue_id":"bd-ic1m","depends_on_id":"bd-fzbg","type":"blocks","created_at":"2025-11-07T22:43:21.486966-08:00","created_by":"daemon"},{"issue_id":"bd-ic1m","depends_on_id":"bd-nemp","type":"blocks","created_at":"2025-11-07T22:43:21.487388-08:00","created_by":"daemon"}]} {"id":"bd-icfe","title":"gt spawn/crew setup should create .beads/redirect for worktrees","description":"Crew clones and polecats need a .beads/redirect file pointing to the shared beads database (../../mayor/rig/.beads). Currently:\n\n- redirect files can get deleted by git clean\n- not auto-created during gt spawn or worktree setup\n- missing redirects cause 'no beads database found' errors\n\nFound missing in: gastown/joe, beads/zoey (after git clean)\n\nFix options:\n1. gt spawn creates redirect during worktree setup\n2. gt prime regenerates missing redirects\n3. bd commands auto-detect worktree and find shared beads\n\nThis should be standard Gas Town rig configuration.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-21T01:30:26.115872-08:00","updated_at":"2025-12-21T17:51:25.740811-08:00","closed_at":"2025-12-21T17:51:25.740811-08:00"} {"id":"bd-icnf","title":"Add bd mol run command (bond + assign + pin)","description":"bd mol run = bond + assign root to caller + pin to startup mail. This is the Gas Town integration point. When agent restarts, check startup mail, find pinned molecule root, query bd ready for next step. Makes molecules immortal.","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-12-20T23:52:17.462882-08:00","updated_at":"2025-12-21T00:07:25.803058-08:00","closed_at":"2025-12-21T00:07:25.803058-08:00","dependencies":[{"issue_id":"bd-icnf","depends_on_id":"bd-ffjt","type":"blocks","created_at":"2025-12-20T23:52:25.871742-08:00","created_by":"daemon"}]} -{"id":"bd-id0vs","title":"Test issue 2","status":"open","priority":2,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:10.790204-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:10.790204-08:00"} -{"id":"bd-ie7j","title":"bd repair: Add --json output flag","description":"bd repair lacks --json output for machine-readable results, unlike most other bd commands.\n\nAdd --json flag that outputs structured JSON with:\n- orphan counts by type\n- list of orphaned references\n- repair status (success/failure)\n- backup path","status":"closed","priority":4,"issue_type":"feature","created_at":"2025-12-29T12:48:12.62521-08:00","created_by":"stevey","updated_at":"2025-12-29T12:57:43.747348-08:00","closed_at":"2025-12-29T12:57:43.747348-08:00","close_reason":"Implemented in repair.go: added orphan detection for comments/events tables and --json output flag"} +{"id":"bd-id0vs","title":"Test issue 2","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-11T18:16:10.790204-08:00","updated_at":"2026-01-11T18:16:10.790204-08:00","created_by":"beads/crew/wolf"} +{"id":"bd-ie7j","title":"bd repair: Add --json output flag","description":"bd repair lacks --json output for machine-readable results, unlike most other bd commands.\n\nAdd --json flag that outputs structured JSON with:\n- orphan counts by type\n- list of orphaned references\n- repair status (success/failure)\n- backup path","status":"closed","priority":4,"issue_type":"feature","created_at":"2025-12-29T12:48:12.62521-08:00","updated_at":"2025-12-29T12:57:43.747348-08:00","closed_at":"2025-12-29T12:57:43.747348-08:00","close_reason":"Implemented in repair.go: added orphan detection for comments/events tables and --json output flag","created_by":"stevey"} {"id":"bd-ieyy","title":"bd close --continue: auto-advance to next molecule step","description":"Add --continue flag to bd close for seamless molecule step transitions.\n\n## Usage\n\nbd close \u003cstep-id\u003e --continue [--no-auto]\n\n## Behavior\n\n1. Closes the specified step\n2. Finds next ready step in same molecule (sibling/child)\n3. By default, marks it in_progress (--no-auto to skip)\n4. Outputs the transition\n\n## Output\n\n[done] Closed gt-abc.3: Implement feature\n\nNext ready in molecule:\n gt-abc.4: Write tests\n\n[arrow] Marked in_progress (use --no-auto to skip)\n\n## If no next step\n\n[done] Closed gt-abc.6: Exit decision\n\nMolecule gt-abc complete! All steps closed.\nConsider: bd mol squash gt-abc --summary '...'\n\n## Key behaviors\n- Detects parent molecule from closed step\n- Finds next unblocked sibling\n- Auto-claims by default (propulsion principle)\n- Graceful handling when molecule is complete\n\n## Gas Town integration\n- gt-lz13: Update templates with nav workflow\n- gt-um6q: Update docs with nav workflow","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-12-22T17:03:44.238243-08:00","updated_at":"2025-12-22T17:36:31.937727-08:00","closed_at":"2025-12-22T17:36:31.937727-08:00"} -{"id":"bd-ifa0","title":"Merge: amber-1767146829144","description":"branch: polecat/amber-1767146829144\ntarget: main\nsource_issue: amber-1767146829144\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T18:11:33.875918-08:00","created_by":"beads/polecats/amber","updated_at":"2025-12-30T19:35:50.452577-08:00","closed_at":"2025-12-30T18:16:13.605293-08:00"} +{"id":"bd-ifa0","title":"Merge: amber-1767146829144","description":"branch: polecat/amber-1767146829144\ntarget: main\nsource_issue: amber-1767146829144\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T18:11:33.875918-08:00","updated_at":"2025-12-30T19:35:50.452577-08:00","closed_at":"2025-12-30T18:16:13.605293-08:00","created_by":"beads/polecats/amber"} {"id":"bd-ifuw","title":"test hook pin fix","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-23T04:43:15.598698-08:00","updated_at":"2025-12-23T04:51:29.438139-08:00","deleted_at":"2025-12-23T04:51:29.438139-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} {"id":"bd-ihp9","title":"Fix FOREIGN KEY constraint failures in AddComment and ApplyCompaction","description":"The 'CloseIssue', 'UpdateIssueID', and 'RemoveLabel' methods were fixed in PR #348 to prevent foreign key constraint failures when operating on non-existent issues.\n\nHowever, the Oracle identified two other methods that follow the same problematic pattern:\n1. `AddComment` (in `internal/storage/sqlite/events.go`)\n2. `ApplyCompaction` (in `internal/storage/sqlite/compact.go`)\n\nThese methods attempt to insert an event record after updating the issue, without verifying that the issue update actually affected any rows. This leads to a foreign key constraint failure if the issue does not exist.\n\nWe need to:\n1. Create reproduction tests for these failure cases\n2. Apply the same fix pattern: check `RowsAffected()` after the update, and return a proper \"issue not found\" error if it is 0, before attempting to insert the event.\n3. Standardize the error message format to \"issue %s not found\" or \"issue not found: %s\" for consistency.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-20T09:49:55.090644-08:00","updated_at":"2025-11-20T09:53:54.466769-08:00","closed_at":"2025-11-20T09:53:54.466769-08:00"} -{"id":"bd-ihu31","title":"Add --ready flag to bd list to show only available work","description":"## Problem\n`bd list` by default shows all non-closed issues including hooked ones. Hooked work is actively being worked on and shouldn't appear in the pool of available work.\n\n## Solution\nAdd a `--ready` flag to `bd list` that filters to show only work that can actually be picked up:\n- Status is `open` (not hooked, not in_progress, not blocked, not deferred)\n- Could potentially also exclude assigned issues (optional consideration)\n\n## Current Workaround\n`bd list --status open` works but isn't as intuitive as `--ready`\n\n## Implementation\n- Add `--ready` boolean flag to list command\n- When set, filter to status=open only\n- Consider if it should also filter out assigned issues (probably not by default)","status":"closed","priority":1,"issue_type":"feature","assignee":"beads/crew/dave","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:59:57.131925-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T02:05:30.421139-08:00","closed_at":"2026-01-12T02:05:30.421139-08:00","close_reason":"Implemented --ready flag for bd list"} -{"id":"bd-ii8ug","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T05:08:11.390419-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T05:08:11.459049-08:00","closed_at":"2026-01-11T05:08:11.459049-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ihu31","title":"Add --ready flag to bd list to show only available work","description":"## Problem\n`bd list` by default shows all non-closed issues including hooked ones. Hooked work is actively being worked on and shouldn't appear in the pool of available work.\n\n## Solution\nAdd a `--ready` flag to `bd list` that filters to show only work that can actually be picked up:\n- Status is `open` (not hooked, not in_progress, not blocked, not deferred)\n- Could potentially also exclude assigned issues (optional consideration)\n\n## Current Workaround\n`bd list --status open` works but isn't as intuitive as `--ready`\n\n## Implementation\n- Add `--ready` boolean flag to list command\n- When set, filter to status=open only\n- Consider if it should also filter out assigned issues (probably not by default)","status":"closed","priority":1,"issue_type":"feature","created_at":"2026-01-12T01:59:57.131925-08:00","updated_at":"2026-01-12T02:05:30.421139-08:00","closed_at":"2026-01-12T02:05:30.421139-08:00","close_reason":"Implemented --ready flag for bd list","created_by":"beads/crew/dave"} +{"id":"bd-ii8ug","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T05:08:11.390419-08:00","updated_at":"2026-01-11T05:08:11.459049-08:00","closed_at":"2026-01-11T05:08:11.459049-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-iic1","title":"Phase 2.2: Switch bdt storage to TOON format","description":"Currently bdt stores issues in JSONL format in issues.toon file. Phase 2.2 must implement actual TOON format storage - this is the fundamental goal of the bdtoon project.\n\n## Current State (Phase 2.1)\n- issues.toon stores JSONL (intermediate format)\n- --toon flag allows output in TOON format for LLM consumption\n- Problem: We're not actually using TOON as the fundamental storage format\n\n## Required Work (Phase 2.2)\n1. Switch issue file I/O to write TOON format instead of JSONL\n - Update cmd/bdt/storage.go to use EncodeTOON for writing\n - Update cmd/bdt/storage.go to decode TOON (currently decodes JSON)\n - Ensure round-trip: write TOON → read TOON → write TOON is byte-identical\n\n2. Update command implementations\n - cmd/bdt/create.go: Write newly created issues to TOON format\n - cmd/bdt/list.go: Read issues from TOON format\n - cmd/bdt/show.go: Read from TOON format\n - cmd/bdt/import.go: Convert imported JSONL to TOON\n - cmd/bdt/export.go: Export TOON to JSONL (for bd compatibility)\n\n3. Implement TOON parser that handles gotoon's encoder-only limitation\n - Since gotoon doesn't decode TOON, need custom TOON→JSON decoder\n - OR continue storing TOON but decoding via intermediate JSON conversion\n\n4. Git merge driver optimization\n - TOON is line-oriented, better for 3-way merges than binary formats\n - Configure git merge driver for .toon files\n\n5. Comprehensive testing\n - Round-trip tests: Issue → TOON → storage → read → Issue\n - Merge conflict resolution tests with TOON format\n - Large issue set performance tests\n\n## Success Criteria\n- issues.toon stores actual TOON format (not JSONL)\n- bdt list reads from TOON file\n- bdt create writes to TOON file\n- Round-trip: create issue → list → show returns identical data\n- All 65+ tests still passing\n- Performance comparable to JSONL storage","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T14:05:41.394964404-07:00","updated_at":"2025-12-19T14:37:17.879612634-07:00","closed_at":"2025-12-19T14:37:17.879612634-07:00"} -{"id":"bd-ijz6g","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T03:02:27.533124-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-13T03:02:27.601795-08:00","closed_at":"2026-01-13T03:02:27.601795-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-ik1b","title":"Add --validate flag to bd create","description":"Opt-in strict mode that fails creation if required sections are missing. Uses ValidateTemplate() under the hood.","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-01T11:19:09.036754-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-04T15:22:08.701283-08:00","closed_at":"2026-01-01T14:20:06.932309-08:00","close_reason":"Implemented --validate flag for bd create command","dependencies":[{"issue_id":"bd-ik1b","depends_on_id":"bd-ou35","type":"parent-child","created_at":"2026-01-01T11:19:22.754415-08:00","created_by":"beads/crew/grip"},{"issue_id":"bd-ik1b","depends_on_id":"bd-615z","type":"blocks","created_at":"2026-01-01T11:19:23.964595-08:00","created_by":"beads/crew/grip"}]} -{"id":"bd-ikamv","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T08:28:44.796775-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T08:28:44.861913-08:00","closed_at":"2026-01-11T08:28:44.861913-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-ilfo1","title":"Closed gate cleanup/pruning mechanism","description":"Closed gates accumulate over time and never get cleaned up. The SearchIssues query for closed gates will grow unbounded. Options: (1) Add --since filter, (2) Automatic pruning of old closed gates, (3) Tombstone old gates after N days.","status":"open","priority":4,"issue_type":"task","created_at":"2026-01-08T21:32:19.768359-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T21:32:19.768359-08:00","dependencies":[{"issue_id":"bd-ilfo1","depends_on_id":"bd-ka761","type":"discovered-from","created_at":"2026-01-08T21:32:28.003567-08:00","created_by":"beads/crew/emma"}]} -{"id":"bd-imi7w","title":"Schema Readiness: Pre-Federation Schema Changes","description":"Track schema changes needed in Beads BEFORE federation features are implemented.\n\n## Context\n\nBeads is a multi-orchestrator work tracker. Schema changes made NOW are cheap; changes made AFTER production adoption are expensive.\n\n## Design Principles\n\n1. **Beads is multi-orchestrator** - Nothing specific to any single orchestrator\n2. **Progressive enhancement** - New fields are optional, backwards compatible\n3. **Owner vs Executor** - Human identity (owner) distinct from agent identity (executor)\n4. **Git as ledger** - Work history IS the source of truth\n\n## Success Criteria\n\n- [ ] All Priority 1 fields implemented\n- [ ] URI scheme is protocol-agnostic\n- [ ] Migration path documented\n- [ ] No breaking changes to existing beads","status":"closed","priority":1,"issue_type":"epic","created_at":"2026-01-10T16:33:12.482232-08:00","created_by":"gastown/crew/max","updated_at":"2026-01-10T20:36:39.472367-08:00","closed_at":"2026-01-10T20:36:39.472367-08:00","close_reason":"All 8 schema changes implemented and consolidated: owner, crystallizes, work_type, hop:// URI, quality_score, source_system, delegated-from edge, attests edge. Migrations 036-040 created. Tests passing."} -{"id":"bd-imj","title":"Deletion propagation via deletions manifest","description":"## Problem\n\nWhen `bd cleanup -f` or `bd delete` removes issues in one clone, those deletions don't propagate to other clones. The import logic only creates/updates, never deletes. This causes \"resurrection\" where deleted issues reappear.\n\n## Root Cause\n\nImport sees DB issues not in JSONL and assumes they're \"local unpushed work\" rather than \"intentionally deleted upstream.\"\n\n## Solution: Deletions Manifest\n\nAdd `.beads/deletions.jsonl` - an append-only log of deleted issue IDs with metadata.\n\n### Format\n```jsonl\n{\"id\":\"bd-xxx\",\"ts\":\"2025-11-25T10:00:00Z\",\"by\":\"stevey\"}\n{\"id\":\"bd-yyy\",\"ts\":\"2025-11-25T10:05:00Z\",\"by\":\"claude\",\"reason\":\"duplicate of bd-zzz\"}\n```\n\n### Fields\n- `id`: Issue ID (required)\n- `ts`: ISO 8601 UTC timestamp (required)\n- `by`: Actor who deleted (required)\n- `reason`: Optional context (\"cleanup\", \"duplicate of X\", etc.)\n\n### Import Logic\n```\nFor each DB issue not in JSONL:\n 1. Check deletions manifest → if found, delete from DB\n 2. Fallback: check git history → if found, delete + backfill manifest\n 3. Neither → keep (local unpushed work)\n```\n\n### Conflict Resolution\nSimultaneous deletions from multiple clones are handled naturally:\n- Append-only design means both clones append their deletion records\n- On merge, file contains duplicate entries (same ID, different timestamps)\n- `LoadDeletions` deduplicates by ID (keeps any/first entry)\n- Result: deletion propagates correctly, duplicates are harmless\n\n### Pruning Policy\n- Default retention: 7 days (configurable via `deletions.retention_days`)\n- Auto-compact during `bd sync` is **opt-in** (disabled by default)\n- Hard cap: `deletions.max_entries` (default 50000)\n- Git fallback handles pruned entries (self-healing)\n\n### Self-Healing\nWhen git fallback catches a resurrection (pruned entry), it backfills the manifest. One-time git scan cost, then fast again.\n\n### Size Estimates\n- ~80 bytes/entry\n- 7-day retention with 100 deletions/day = ~56KB\n- Git compressed: ~10KB\n\n## Benefits\n- ✅ Deletions propagate across clones\n- ✅ O(1) lookup (no git scan in normal case)\n- ✅ Works in shallow clones\n- ✅ Survives history rewrite\n- ✅ Audit trail (who deleted what when)\n- ✅ Self-healing via git fallback\n- ✅ Bounded size via time-based pruning\n\n## References\n- Investigation session: 2025-11-25\n- Related: bd-2q6d (stale database warnings)","status":"closed","priority":0,"issue_type":"epic","created_at":"2025-11-25T09:56:01.98027-08:00","updated_at":"2025-11-25T16:36:27.965168-08:00","closed_at":"2025-11-25T16:36:27.965168-08:00","dependencies":[{"issue_id":"bd-imj","depends_on_id":"bd-qsm","type":"blocks","created_at":"2025-11-25T09:57:42.821911-08:00","created_by":"daemon"},{"issue_id":"bd-imj","depends_on_id":"bd-x2i","type":"blocks","created_at":"2025-11-25T09:57:42.851712-08:00","created_by":"daemon"},{"issue_id":"bd-imj","depends_on_id":"bd-44e","type":"blocks","created_at":"2025-11-25T09:57:42.88154-08:00","created_by":"daemon"},{"issue_id":"bd-imj","depends_on_id":"bd-bhd","type":"blocks","created_at":"2025-11-25T14:56:23.675787-08:00","created_by":"daemon"},{"issue_id":"bd-imj","depends_on_id":"bd-bgs","type":"blocks","created_at":"2025-11-25T14:56:23.744648-08:00","created_by":"daemon"},{"issue_id":"bd-imj","depends_on_id":"bd-f0n","type":"blocks","created_at":"2025-11-25T14:56:23.80649-08:00","created_by":"daemon"},{"issue_id":"bd-imj","depends_on_id":"bd-v29","type":"blocks","created_at":"2025-11-25T14:56:23.864569-08:00","created_by":"daemon"},{"issue_id":"bd-imj","depends_on_id":"bd-mdw","type":"blocks","created_at":"2025-11-25T14:56:48.592492-08:00","created_by":"daemon"},{"issue_id":"bd-imj","depends_on_id":"bd-03r","type":"blocks","created_at":"2025-11-25T14:56:54.295851-08:00","created_by":"daemon"}]} -{"id":"bd-imxi","title":"Add bd setup gemini for Gemini CLI integration","description":"## Summary\n\nAdd `bd setup gemini` command to install beads hooks for Gemini CLI, similar to existing `bd setup claude`.\n\nRef: GitHub #845\n\n## Research Findings\n\n### Gemini CLI Has Compatible Hooks\n\nGemini CLI (https://geminicli.com/docs/hooks/) supports nearly identical hook events:\n\n| Gemini CLI Event | Claude Code Equivalent | Purpose |\n|------------------|----------------------|---------|\n| **SessionStart** | SessionStart | Initialize resources, load context |\n| **SessionEnd** | - | Clean up, save state |\n| **PreCompress** | PreCompact | Before context compression |\n| **BeforeAgent** | - | Add context before planning |\n\nConfiguration format is almost identical to Claude:\n```json\n{\n \"hooks\": {\n \"SessionStart\": [{\n \"matcher\": \"\",\n \"hooks\": [{\n \"type\": \"command\",\n \"command\": \"bd prime\"\n }]\n }]\n }\n}\n```\n\n### GEMINI.md Support\n\n- Hierarchical loading: ~/.gemini/GEMINI.md → project root → subdirectories\n- Concatenated into system prompt automatically\n- Gemini CLI also reads AGENTS.md (already supported via `bd setup factory`)\n\n### Antigravity\n\nGoogle's IDE-based agentic platform (released Nov 2025):\n- Uses Gemini 3 with 1M token context\n- Has \"knowledge base\" for saved context\n- Less documented - may share Gemini CLI infrastructure\n- Needs separate research for dedicated support\n\n## Implementation Plan\n\n### Phase 1: Core Gemini CLI Support\n\n1. **Create `cmd/bd/setup/gemini.go`**\n - Mirror structure from `claude.go`\n - Target: `~/.gemini/settings.json`\n - Install SessionStart and PreCompress hooks\n - Support --project flag for local settings\n - Support --stealth flag\n\n2. **Add doctor check in `cmd/bd/doctor/gemini.go`**\n - Check if hooks installed\n - Verify settings.json structure\n\n3. **Update `cmd/bd/setup.go`**\n - Add gemini subcommand\n - Wire up to setup/gemini.go\n\n### Phase 2: Optional Enhancements\n\n4. **GEMINI.md generation** (optional)\n - Could generate project-level GEMINI.md\n - Or document that AGENTS.md already works\n\n5. **Antigravity support** (separate issue)\n - Needs research on Antigravity's configuration system\n - May be able to share Gemini CLI hooks\n - May need IDE-specific integration\n\n## Open Questions\n\n1. Where does Gemini CLI store settings? Need to verify `~/.gemini/settings.json` path\n2. Does Gemini CLI use same JSON structure as Claude for hooks?\n3. Can one implementation cover both Gemini CLI and Antigravity?\n4. Should we generate GEMINI.md or rely on AGENTS.md?\n\n## Acceptance Criteria\n\n- [ ] `bd setup gemini` installs hooks to Gemini CLI settings\n- [ ] `bd setup gemini --check` verifies installation\n- [ ] `bd doctor` reports Gemini CLI integration status\n- [ ] Documentation updated in docs/SETUP.md","status":"closed","priority":2,"issue_type":"feature","created_at":"2026-01-01T23:47:07.399783-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-02T00:01:16.319278-08:00","closed_at":"2026-01-02T00:01:16.319278-08:00","close_reason":"Implemented bd setup gemini with SessionStart/PreCompress hooks","comments":[{"id":9,"issue_id":"bd-imxi","author":"beads/crew/wolf","text":"Deprioritizing Antigravity - focusing on Gemini CLI only. Antigravity may share the same hook infrastructure anyway, so Gemini CLI support might just work. Will revisit if there's demand.","created_at":"2026-01-02T07:55:13Z"}]} +{"id":"bd-ijz6g","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T03:02:27.533124-08:00","updated_at":"2026-01-13T03:02:27.601795-08:00","closed_at":"2026-01-13T03:02:27.601795-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} +{"id":"bd-ik1b","title":"Add --validate flag to bd create","description":"Opt-in strict mode that fails creation if required sections are missing. Uses ValidateTemplate() under the hood.","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-01T11:19:09.036754-08:00","updated_at":"2026-01-04T15:22:08.701283-08:00","closed_at":"2026-01-01T14:20:06.932309-08:00","close_reason":"Implemented --validate flag for bd create command","created_by":"beads/crew/grip","dependencies":[{"issue_id":"bd-ik1b","depends_on_id":"bd-ou35","type":"parent-child","created_at":"2026-01-01T11:19:22.754415-08:00","created_by":"beads/crew/grip"},{"issue_id":"bd-ik1b","depends_on_id":"bd-615z","type":"blocks","created_at":"2026-01-01T11:19:23.964595-08:00","created_by":"beads/crew/grip"}]} +{"id":"bd-ikamv","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T08:28:44.796775-08:00","updated_at":"2026-01-11T08:28:44.861913-08:00","closed_at":"2026-01-11T08:28:44.861913-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-ilfo1","title":"Closed gate cleanup/pruning mechanism","description":"Closed gates accumulate over time and never get cleaned up. The SearchIssues query for closed gates will grow unbounded. Options: (1) Add --since filter, (2) Automatic pruning of old closed gates, (3) Tombstone old gates after N days.","status":"open","priority":4,"issue_type":"task","created_at":"2026-01-08T21:32:19.768359-08:00","updated_at":"2026-01-08T21:32:19.768359-08:00","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-ilfo1","depends_on_id":"bd-ka761","type":"discovered-from","created_at":"2026-01-08T21:32:28.003567-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-imi7w","title":"Schema Readiness: Pre-Federation Schema Changes","description":"Track schema changes needed in Beads BEFORE federation features are implemented.\n\n## Context\n\nBeads is a multi-orchestrator work tracker. Schema changes made NOW are cheap; changes made AFTER production adoption are expensive.\n\n## Design Principles\n\n1. **Beads is multi-orchestrator** - Nothing specific to any single orchestrator\n2. **Progressive enhancement** - New fields are optional, backwards compatible\n3. **Owner vs Executor** - Human identity (owner) distinct from agent identity (executor)\n4. **Git as ledger** - Work history IS the source of truth\n\n## Success Criteria\n\n- [ ] All Priority 1 fields implemented\n- [ ] URI scheme is protocol-agnostic\n- [ ] Migration path documented\n- [ ] No breaking changes to existing beads","status":"closed","priority":1,"issue_type":"epic","created_at":"2026-01-10T16:33:12.482232-08:00","updated_at":"2026-01-10T20:36:39.472367-08:00","closed_at":"2026-01-10T20:36:39.472367-08:00","close_reason":"All 8 schema changes implemented and consolidated: owner, crystallizes, work_type, hop:// URI, quality_score, source_system, delegated-from edge, attests edge. Migrations 036-040 created. Tests passing.","created_by":"gastown/crew/max"} +{"id":"bd-imj","title":"Deletion propagation via deletions manifest","description":"## Problem\n\nWhen `bd cleanup -f` or `bd delete` removes issues in one clone, those deletions don't propagate to other clones. The import logic only creates/updates, never deletes. This causes \"resurrection\" where deleted issues reappear.\n\n## Root Cause\n\nImport sees DB issues not in JSONL and assumes they're \"local unpushed work\" rather than \"intentionally deleted upstream.\"\n\n## Solution: Deletions Manifest\n\nAdd `.beads/deletions.jsonl` - an append-only log of deleted issue IDs with metadata.\n\n### Format\n```jsonl\n{\"id\":\"bd-xxx\",\"ts\":\"2025-11-25T10:00:00Z\",\"by\":\"stevey\"}\n{\"id\":\"bd-yyy\",\"ts\":\"2025-11-25T10:05:00Z\",\"by\":\"claude\",\"reason\":\"duplicate of bd-zzz\"}\n```\n\n### Fields\n- `id`: Issue ID (required)\n- `ts`: ISO 8601 UTC timestamp (required)\n- `by`: Actor who deleted (required)\n- `reason`: Optional context (\"cleanup\", \"duplicate of X\", etc.)\n\n### Import Logic\n```\nFor each DB issue not in JSONL:\n 1. Check deletions manifest → if found, delete from DB\n 2. Fallback: check git history → if found, delete + backfill manifest\n 3. Neither → keep (local unpushed work)\n```\n\n### Conflict Resolution\nSimultaneous deletions from multiple clones are handled naturally:\n- Append-only design means both clones append their deletion records\n- On merge, file contains duplicate entries (same ID, different timestamps)\n- `LoadDeletions` deduplicates by ID (keeps any/first entry)\n- Result: deletion propagates correctly, duplicates are harmless\n\n### Pruning Policy\n- Default retention: 7 days (configurable via `deletions.retention_days`)\n- Auto-compact during `bd sync` is **opt-in** (disabled by default)\n- Hard cap: `deletions.max_entries` (default 50000)\n- Git fallback handles pruned entries (self-healing)\n\n### Self-Healing\nWhen git fallback catches a resurrection (pruned entry), it backfills the manifest. One-time git scan cost, then fast again.\n\n### Size Estimates\n- ~80 bytes/entry\n- 7-day retention with 100 deletions/day = ~56KB\n- Git compressed: ~10KB\n\n## Benefits\n- ✅ Deletions propagate across clones\n- ✅ O(1) lookup (no git scan in normal case)\n- ✅ Works in shallow clones\n- ✅ Survives history rewrite\n- ✅ Audit trail (who deleted what when)\n- ✅ Self-healing via git fallback\n- ✅ Bounded size via time-based pruning\n\n## References\n- Investigation session: 2025-11-25\n- Related: bd-2q6d (stale database warnings)","status":"closed","priority":0,"issue_type":"epic","created_at":"2025-11-25T09:56:01.98027-08:00","updated_at":"2025-11-25T16:36:27.965168-08:00","closed_at":"2025-11-25T16:36:27.965168-08:00","dependencies":[{"issue_id":"bd-imj","depends_on_id":"bd-bgs","type":"blocks","created_at":"2025-11-25T14:56:23.744648-08:00","created_by":"daemon"},{"issue_id":"bd-imj","depends_on_id":"bd-44e","type":"blocks","created_at":"2025-11-25T09:57:42.88154-08:00","created_by":"daemon"},{"issue_id":"bd-imj","depends_on_id":"bd-bhd","type":"blocks","created_at":"2025-11-25T14:56:23.675787-08:00","created_by":"daemon"},{"issue_id":"bd-imj","depends_on_id":"bd-f0n","type":"blocks","created_at":"2025-11-25T14:56:23.80649-08:00","created_by":"daemon"},{"issue_id":"bd-imj","depends_on_id":"bd-x2i","type":"blocks","created_at":"2025-11-25T09:57:42.851712-08:00","created_by":"daemon"},{"issue_id":"bd-imj","depends_on_id":"bd-mdw","type":"blocks","created_at":"2025-11-25T14:56:48.592492-08:00","created_by":"daemon"},{"issue_id":"bd-imj","depends_on_id":"bd-03r","type":"blocks","created_at":"2025-11-25T14:56:54.295851-08:00","created_by":"daemon"},{"issue_id":"bd-imj","depends_on_id":"bd-qsm","type":"blocks","created_at":"2025-11-25T09:57:42.821911-08:00","created_by":"daemon"},{"issue_id":"bd-imj","depends_on_id":"bd-v29","type":"blocks","created_at":"2025-11-25T14:56:23.864569-08:00","created_by":"daemon"}]} +{"id":"bd-imxi","title":"Add bd setup gemini for Gemini CLI integration","description":"## Summary\n\nAdd `bd setup gemini` command to install beads hooks for Gemini CLI, similar to existing `bd setup claude`.\n\nRef: GitHub #845\n\n## Research Findings\n\n### Gemini CLI Has Compatible Hooks\n\nGemini CLI (https://geminicli.com/docs/hooks/) supports nearly identical hook events:\n\n| Gemini CLI Event | Claude Code Equivalent | Purpose |\n|------------------|----------------------|---------|\n| **SessionStart** | SessionStart | Initialize resources, load context |\n| **SessionEnd** | - | Clean up, save state |\n| **PreCompress** | PreCompact | Before context compression |\n| **BeforeAgent** | - | Add context before planning |\n\nConfiguration format is almost identical to Claude:\n```json\n{\n \"hooks\": {\n \"SessionStart\": [{\n \"matcher\": \"\",\n \"hooks\": [{\n \"type\": \"command\",\n \"command\": \"bd prime\"\n }]\n }]\n }\n}\n```\n\n### GEMINI.md Support\n\n- Hierarchical loading: ~/.gemini/GEMINI.md → project root → subdirectories\n- Concatenated into system prompt automatically\n- Gemini CLI also reads AGENTS.md (already supported via `bd setup factory`)\n\n### Antigravity\n\nGoogle's IDE-based agentic platform (released Nov 2025):\n- Uses Gemini 3 with 1M token context\n- Has \"knowledge base\" for saved context\n- Less documented - may share Gemini CLI infrastructure\n- Needs separate research for dedicated support\n\n## Implementation Plan\n\n### Phase 1: Core Gemini CLI Support\n\n1. **Create `cmd/bd/setup/gemini.go`**\n - Mirror structure from `claude.go`\n - Target: `~/.gemini/settings.json`\n - Install SessionStart and PreCompress hooks\n - Support --project flag for local settings\n - Support --stealth flag\n\n2. **Add doctor check in `cmd/bd/doctor/gemini.go`**\n - Check if hooks installed\n - Verify settings.json structure\n\n3. **Update `cmd/bd/setup.go`**\n - Add gemini subcommand\n - Wire up to setup/gemini.go\n\n### Phase 2: Optional Enhancements\n\n4. **GEMINI.md generation** (optional)\n - Could generate project-level GEMINI.md\n - Or document that AGENTS.md already works\n\n5. **Antigravity support** (separate issue)\n - Needs research on Antigravity's configuration system\n - May be able to share Gemini CLI hooks\n - May need IDE-specific integration\n\n## Open Questions\n\n1. Where does Gemini CLI store settings? Need to verify `~/.gemini/settings.json` path\n2. Does Gemini CLI use same JSON structure as Claude for hooks?\n3. Can one implementation cover both Gemini CLI and Antigravity?\n4. Should we generate GEMINI.md or rely on AGENTS.md?\n\n## Acceptance Criteria\n\n- [ ] `bd setup gemini` installs hooks to Gemini CLI settings\n- [ ] `bd setup gemini --check` verifies installation\n- [ ] `bd doctor` reports Gemini CLI integration status\n- [ ] Documentation updated in docs/SETUP.md","status":"closed","priority":2,"issue_type":"feature","created_at":"2026-01-01T23:47:07.399783-08:00","updated_at":"2026-01-02T00:01:16.319278-08:00","closed_at":"2026-01-02T00:01:16.319278-08:00","close_reason":"Implemented bd setup gemini with SessionStart/PreCompress hooks","created_by":"beads/crew/wolf"} {"id":"bd-in7","title":"Test message","description":"Hello world","status":"tombstone","priority":2,"issue_type":"message","created_at":"2025-12-17T23:16:13.184946-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"message"} {"id":"bd-in7q","title":"Fix: bd migrate-tombstones corrupts deletions manifest","description":"When running 'bd migrate-tombstones' followed by 'bd sync', the operation adds thousands of issues to deletions.jsonl with author 'bd-doctor-hydrate' that should never have been deleted. This causes:\n1. Issues are marked as deleted that were never intended for deletion\n2. Subsequent 'bd sync' fails with 3-way merge errors\n3. The migration operation corrupts database state\n\n## Root Cause\nThe tombstone migration logic incorrectly identifies issues that should be migrated as 'deleted issues' and adds them to the deletions manifest instead of converting them to inline tombstones.\n\n## Reproduction\n1. bd sync --import-only\n2. bd migrate-tombstones\n3. bd sync\nResult: See thousands of 'Skipping bd-xxxx (in deletions manifest: deleted 2025-12-14 by bd-doctor-hydrate)' lines and 3-way merge failures\n\n## Impact\n- Database becomes inconsistent\n- Issues permanently lost from local database\n- Requires full reset to recover\n\n## Files to Investigate\n- cmd/bd/migrate_tombstones.go - migration logic\n- deletions manifest handling during migration","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-12-14T11:22:23.464098142-07:00","updated_at":"2025-12-14T11:35:25.916924256-07:00","closed_at":"2025-12-14T11:35:25.916924256-07:00"} {"id":"bd-indn","title":"bd template commands fail with daemon mode","description":"The `bd template show` and `bd template instantiate` commands fail with 'Error loading template: no database connection' when daemon is running.\n\n**Reproduction:**\n```bash\nbd daemon --start\nbd template show bd-qqc # Error: no database connection\nbd template show bd-qqc --no-daemon # Works\n```\n\n**Expected:** Template commands should work with daemon like other commands.\n\n**Workaround:** Use `--no-daemon` flag.\n\n**Location:** Likely in cmd/bd/template.go - daemon RPC path not implemented for template operations.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-18T22:57:35.16596-08:00","updated_at":"2025-12-23T22:40:32.763595-08:00","closed_at":"2025-12-23T22:40:32.763595-08:00"} @@ -1478,121 +1477,120 @@ {"id":"bd-iov0","title":"Document -short flag in testing guide","description":"Add documentation about the -short flag and how it's used to skip slow tests. Should explain that developers can run 'go test -short ./...' for fast iteration and 'go test ./...' for full coverage.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-06T17:30:49.618187-08:00","updated_at":"2025-11-06T20:06:49.220061-08:00","closed_at":"2025-11-06T19:41:08.643188-08:00"} {"id":"bd-ipj7","title":"enhance 'bd status' to show recent activity","description":"It would be nice to be able to quickly view the last N changes in the database, to see wha's recently been worked on. I'm imagining something like 'bd status activity'.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-21T11:08:50.996541974-07:00","updated_at":"2025-12-21T17:54:00.279039-08:00","closed_at":"2025-12-21T17:54:00.279039-08:00"} {"id":"bd-ipva","title":"Update go install bd to 0.33.2","description":"Rebuild and install bd to ~/go/bin:\n\n```bash\ngo install ./cmd/bd\n~/go/bin/bd version # Verify shows 0.33.2\n```\n\nNote: If ~/go/bin is in PATH before /opt/homebrew/bin, this is the version that runs by default.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T16:10:13.760715-08:00","updated_at":"2025-12-21T17:29:31.791368-08:00","deleted_at":"2025-12-21T17:29:31.791368-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-iq128","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:40:27.672733-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T02:40:27.7398-08:00","closed_at":"2026-01-12T02:40:27.7398-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-iq19","title":"Distill: promote ad-hoc epic to proto","description":"Extract a reusable proto from an existing ad-hoc epic.\n\nCOMMAND: bd mol distill \u003cepic-id\u003e [--as \u003cproto-name\u003e]\n\nBEHAVIOR:\n- Clone the epic and all children as a new proto\n- Set is_template=true on all cloned issues\n- Replace concrete values with {{variable}} placeholders (interactive or --var flags)\n- Add to proto catalog\n\nFLAGS:\n- --as NAME: Custom proto ID (default: proto-\u003cepic-id\u003e)\n- --var field=placeholder: Replace value with variable placeholder\n- --interactive: Prompt for each field that looks parameterizable\n- --dry-run: Preview the proto structure\n\nEXAMPLE:\n bd mol distill bd-o5xe --as proto-feature-workflow \\\n --var title=feature_name \\\n --var assignee=worker\n\nUSE CASES:\n- Team develops good workflow organically, wants to reuse it\n- Capture tribal knowledge as executable templates\n- Create starting point for similar future work\n\nThe reverse of spawn: instead of proto → molecule, it's molecule → proto.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T01:05:07.953538-08:00","updated_at":"2025-12-21T10:31:56.814246-08:00","closed_at":"2025-12-21T10:31:56.814246-08:00","dependencies":[{"issue_id":"bd-iq19","depends_on_id":"bd-o5xe","type":"parent-child","created_at":"2025-12-21T01:05:16.495774-08:00","created_by":"daemon"},{"issue_id":"bd-iq19","depends_on_id":"bd-rnnr","type":"blocks","created_at":"2025-12-21T01:05:16.560404-08:00","created_by":"daemon"}]} +{"id":"bd-iq128","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T02:40:27.672733-08:00","updated_at":"2026-01-12T02:40:27.7398-08:00","closed_at":"2026-01-12T02:40:27.7398-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-iq19","title":"Distill: promote ad-hoc epic to proto","description":"Extract a reusable proto from an existing ad-hoc epic.\n\nCOMMAND: bd mol distill \u003cepic-id\u003e [--as \u003cproto-name\u003e]\n\nBEHAVIOR:\n- Clone the epic and all children as a new proto\n- Set is_template=true on all cloned issues\n- Replace concrete values with {{variable}} placeholders (interactive or --var flags)\n- Add to proto catalog\n\nFLAGS:\n- --as NAME: Custom proto ID (default: proto-\u003cepic-id\u003e)\n- --var field=placeholder: Replace value with variable placeholder\n- --interactive: Prompt for each field that looks parameterizable\n- --dry-run: Preview the proto structure\n\nEXAMPLE:\n bd mol distill bd-o5xe --as proto-feature-workflow \\\n --var title=feature_name \\\n --var assignee=worker\n\nUSE CASES:\n- Team develops good workflow organically, wants to reuse it\n- Capture tribal knowledge as executable templates\n- Create starting point for similar future work\n\nThe reverse of spawn: instead of proto → molecule, it's molecule → proto.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T01:05:07.953538-08:00","updated_at":"2025-12-21T10:31:56.814246-08:00","closed_at":"2025-12-21T10:31:56.814246-08:00","dependencies":[{"issue_id":"bd-iq19","depends_on_id":"bd-rnnr","type":"blocks","created_at":"2025-12-21T01:05:16.560404-08:00","created_by":"daemon"},{"issue_id":"bd-iq19","depends_on_id":"bd-o5xe","type":"parent-child","created_at":"2025-12-21T01:05:16.495774-08:00","created_by":"daemon"}]} {"id":"bd-iq7n","title":"Audit and fix JSONL filename mismatches across all repo clones","description":"## Problem\n\nMultiple clones of repos are configured with different JSONL filenames (issues.jsonl vs beads.jsonl), causing:\n1. JSONL files to be resurrected after deletion (one clone pushes issues.jsonl, another pushes beads.jsonl)\n2. Agents unable to see issues filed by other agents after sync\n3. Merge conflicts and data inconsistencies\n\n## Root Cause\n\nWhen repos were \"bd doctored\" or initialized at different times, some got issues.jsonl (old default) and others got beads.jsonl (Beads repo specific). These clones push their respective files, creating duplicates.\n\n## Task\n\nScan all repo clones under ~/src/ (1-2 levels deep) and standardize their JSONL configuration.\n\n### Step 1: Find all beads-enabled repos\n\n```bash\n# Find all directories named 'beads' at levels 1-2 under ~/src/\nfind ~/src -maxdepth 2 -type d -name beads\n```\n\n### Step 2: For each repo found, check configuration\n\nFor each directory from Step 1, check:\n- Does `.beads/metadata.json` exist?\n- What is the `jsonl_export` value?\n- What JSONL files actually exist in `.beads/`?\n- Are there multiple JSONL files (problem!)?\n\n### Step 3: Create audit report\n\nGenerate a report showing:\n```\nRepo Path | Config | Actual Files | Status\n----------------------------------- | ------------- | ---------------------- | --------\n~/src/beads | beads.jsonl | beads.jsonl | OK\n~/src/dave/beads | issues.jsonl | issues.jsonl | MISMATCH\n~/src/emma/beads | issues.jsonl | issues.jsonl, beads.jsonl | DUPLICATE!\n```\n\n### Step 4: Determine canonical name for each repo\n\nFor repos that are the SAME git repository (check `git remote -v`):\n- Group them together\n- Determine which JSONL filename should be canonical (majority wins, or beads.jsonl for the beads repo itself)\n- List which clones need to be updated\n\n### Step 5: Generate fix script\n\nCreate a script that for each mismatched clone:\n1. Updates `.beads/metadata.json` to use the canonical name\n2. If JSONL file needs renaming: `git mv .beads/old.jsonl .beads/new.jsonl`\n3. Removes any duplicate JSONL files: `git rm .beads/duplicate.jsonl`\n4. Commits the change\n5. Syncs: `bd sync`\n\n### Expected Output\n\n1. Audit report showing all repos and their config status\n2. List of repos grouped by git remote (same repository)\n3. Fix script or manual instructions for standardizing each repo\n4. Verification that after fixes, all clones of the same repo use the same JSONL filename\n\n### Edge Cases\n\n- Handle repos without metadata.json (use default discovery)\n- Handle repos with no git remote (standalone/local)\n- Handle repos that are not git repositories\n- Don't modify repos with uncommitted changes (warn instead)\n\n### Success Criteria\n\n- All clones of the same git repository use the same JSONL filename\n- No duplicate JSONL files in any repo\n- All configurations documented in metadata.json\n- bd doctor passes on all repos","status":"tombstone","priority":0,"issue_type":"task","created_at":"2025-11-21T23:58:35.044762-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-ir5t","title":"Merge: quartz-1767106247671","description":"branch: polecat/quartz-1767106247671\ntarget: main\nsource_issue: quartz-1767106247671\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T07:02:08.919103-08:00","created_by":"beads/polecats/quartz","updated_at":"2025-12-30T15:44:43.349476-08:00","closed_at":"2025-12-30T10:27:23.069509-08:00"} -{"id":"bd-irah","title":"Add refs field for cross-references with relationship type","description":"The refs field enables rich relationships beyond parent/child and depends-on.\n\nStructure:\n refs: [{id: string, rel: string}]\n\nRelationship types:\n- until: active until target closes\n- caused_by: triggered by target\n- relates_to: general association\n- supersedes: replaces target\n- validates: approval relationship\n\nExample:\n refs:\n - id: gt-abc1\n rel: until\n - id: hq-xyz9\n rel: caused_by\n\nEnables:\n- bd show gt-abc1 --refs (what references this?)\n- Conditional state (muted UNTIL issue closes)\n- Audit trails (this event CAUSED_BY that issue)","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-30T15:15:34.948913-08:00","created_by":"gastown/crew/max","updated_at":"2025-12-30T18:12:30.975264-08:00","closed_at":"2025-12-30T15:51:38.291217-08:00","close_reason":"Implemented refs feature: added until/caused-by/validates dependency types and --refs flag to bd show"} -{"id":"bd-irmpv","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:17:46.952262-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T02:17:47.014718-08:00","closed_at":"2026-01-12T02:17:47.014718-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ir5t","title":"Merge: quartz-1767106247671","description":"branch: polecat/quartz-1767106247671\ntarget: main\nsource_issue: quartz-1767106247671\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T07:02:08.919103-08:00","updated_at":"2025-12-30T15:44:43.349476-08:00","closed_at":"2025-12-30T10:27:23.069509-08:00","created_by":"beads/polecats/quartz"} +{"id":"bd-irah","title":"Add refs field for cross-references with relationship type","description":"The refs field enables rich relationships beyond parent/child and depends-on.\n\nStructure:\n refs: [{id: string, rel: string}]\n\nRelationship types:\n- until: active until target closes\n- caused_by: triggered by target\n- relates_to: general association\n- supersedes: replaces target\n- validates: approval relationship\n\nExample:\n refs:\n - id: gt-abc1\n rel: until\n - id: hq-xyz9\n rel: caused_by\n\nEnables:\n- bd show gt-abc1 --refs (what references this?)\n- Conditional state (muted UNTIL issue closes)\n- Audit trails (this event CAUSED_BY that issue)","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-30T15:15:34.948913-08:00","updated_at":"2025-12-30T18:12:30.975264-08:00","closed_at":"2025-12-30T15:51:38.291217-08:00","close_reason":"Implemented refs feature: added until/caused-by/validates dependency types and --refs flag to bd show","created_by":"gastown/crew/max"} +{"id":"bd-irmpv","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T02:17:46.952262-08:00","updated_at":"2026-01-12T02:17:47.014718-08:00","closed_at":"2026-01-12T02:17:47.014718-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-irq6","title":"Remove unused global daemon infrastructure (internal/daemonrunner/)","description":"The internal/daemonrunner/ package (1,468 LOC) contains the old global daemon implementation that is no longer used. We now use per-workspace daemons.\n\nDeadcode analysis shows all these functions are unreachable:\n- Daemon.Start, runGlobalDaemon, setupLock\n- validateSingleDatabase, validateSchemaVersion\n- registerDaemon, unregisterDaemon\n- validateDatabaseFingerprint\n- Full git client implementation (NewGitClient, HasUpstream, HasChanges, Commit, Push, Pull)\n- Helper functions: isGitRepo, gitHasUpstream, gitHasChanges, gitCommit\n\nThe entire package appears unused since switching to per-workspace daemon architecture.\n\nFiles to remove:\n- daemon.go (9,436 bytes)\n- git.go (3,510 bytes) \n- sync.go (6,401 bytes)\n- fingerprint.go (2,076 bytes)\n- process.go (3,332 bytes)\n- rpc.go (994 bytes)\n- config.go (486 bytes)\n- logger.go (1,579 bytes)\n- flock_*.go (platform-specific file locking)\n- signals_*.go (platform-specific signal handling)\n- All test files\n\nTotal cleanup: ~1,500 LOC","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-06T19:30:50.936943-08:00","updated_at":"2025-11-06T19:35:10.646498-08:00","closed_at":"2025-11-06T19:35:10.646498-08:00"} {"id":"bd-is6m","title":"Add gate checking to Deacon patrol loop","description":"Integrate gate checking into Deacon's patrol cycle.\n\n## Patrol Integration\n```go\nfunc (d *Deacon) checkGates(ctx context.Context) {\n gates, _ := d.store.ListOpenGates(ctx)\n \n for _, gate := range gates {\n // Check timeout\n if time.Since(gate.CreatedAt) \u003e gate.Timeout {\n d.notifyWaiters(gate, \"timeout\")\n d.closeGate(gate, \"timed out\")\n continue\n }\n \n // Check condition\n if d.checkCondition(gate.AwaitType, gate.AwaitID) {\n d.notifyWaiters(gate, \"cleared\")\n d.closeGate(gate, \"condition met\")\n }\n }\n}\n```\n\n## Note\nThis task is in Gas Town (gt), not beads. May need to be moved there.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-23T11:44:36.839709-08:00","updated_at":"2025-12-23T12:19:44.204647-08:00","closed_at":"2025-12-23T12:19:44.204647-08:00","dependencies":[{"issue_id":"bd-is6m","depends_on_id":"bd-udsi","type":"parent-child","created_at":"2025-12-23T11:44:52.909253-08:00","created_by":"daemon"},{"issue_id":"bd-is6m","depends_on_id":"bd-u66e","type":"blocks","created_at":"2025-12-23T11:44:56.428084-08:00","created_by":"daemon"}]} -{"id":"bd-isi6q","title":"Fix daemon socket path exceeds macOS 104-char limit (GH#1001)","description":"dispatched_by: mayor\n\nDaemon socket path can exceed macOS 104-char limit in deep directories. See https://github.com/steveyegge/beads/issues/1001","status":"closed","priority":2,"issue_type":"task","assignee":"beads/polecats/quartz","created_at":"2026-01-10T12:18:32.427353-08:00","created_by":"mayor","updated_at":"2026-01-10T16:43:58.362672-08:00","closed_at":"2026-01-10T16:43:58.362672-08:00","close_reason":"Fixed: Daemon now automatically uses /tmp/beads-{hash}/daemon.sock for deep directory paths that would exceed macOS 104-char sun_path limit. Added SocketPathForWorkspace() and SocketPathForDatabase() functions to internal/daemon/socketpath.go. Updated all callers to use the new functions. Backward compatible - short paths still use traditional .beads/bd.sock location.","labels":["bug"]} -{"id":"bd-it19","title":"Code smell: show.go is 1592 lines - needs splitting","description":"cmd/bd/show.go is 1592 lines mixing data fetching, transformation, output formatting, and thread reconstruction.\n\n**Problem:**\n- Too large to understand and maintain\n- Poor separation of concerns\n- Hard to test individual components\n\n**Acceptance Criteria:**\n- [ ] Extract formatting into show_formatter.go\n- [ ] Extract thread reconstruction into show_threads.go\n- [ ] Each file under 500 lines\n- [ ] No functionality changes\n- [ ] Tests pass","status":"closed","priority":2,"issue_type":"chore","created_at":"2025-12-28T18:59:00.865612-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T19:01:18.42196-08:00","closed_at":"2025-12-28T19:01:18.42196-08:00","dependencies":[{"issue_id":"bd-it19","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.61907-08:00","created_by":"daemon"}]} +{"id":"bd-isi6q","title":"Fix daemon socket path exceeds macOS 104-char limit (GH#1001)","description":"dispatched_by: mayor\n\nDaemon socket path can exceed macOS 104-char limit in deep directories. See https://github.com/steveyegge/beads/issues/1001","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T12:18:32.427353-08:00","updated_at":"2026-01-10T16:43:58.362672-08:00","closed_at":"2026-01-10T16:43:58.362672-08:00","close_reason":"Fixed: Daemon now automatically uses /tmp/beads-{hash}/daemon.sock for deep directory paths that would exceed macOS 104-char sun_path limit. Added SocketPathForWorkspace() and SocketPathForDatabase() functions to internal/daemon/socketpath.go. Updated all callers to use the new functions. Backward compatible - short paths still use traditional .beads/bd.sock location.","created_by":"mayor"} +{"id":"bd-it19","title":"Code smell: show.go is 1592 lines - needs splitting","description":"cmd/bd/show.go is 1592 lines mixing data fetching, transformation, output formatting, and thread reconstruction.\n\n**Problem:**\n- Too large to understand and maintain\n- Poor separation of concerns\n- Hard to test individual components\n\n**Acceptance Criteria:**\n- [ ] Extract formatting into show_formatter.go\n- [ ] Extract thread reconstruction into show_threads.go\n- [ ] Each file under 500 lines\n- [ ] No functionality changes\n- [ ] Tests pass","status":"closed","priority":2,"issue_type":"chore","created_at":"2025-12-28T18:59:00.865612-08:00","updated_at":"2025-12-28T19:01:18.42196-08:00","closed_at":"2025-12-28T19:01:18.42196-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-it19","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.61907-08:00","created_by":"daemon"}]} {"id":"bd-it3x","title":"Issue with labels","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-07T19:07:18.388873-08:00","updated_at":"2025-11-07T22:07:17.346541-08:00","closed_at":"2025-11-07T21:55:09.429989-08:00"} -{"id":"bd-iugnm","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T19:20:05.05824-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-07T19:20:05.094481-08:00","closed_at":"2026-01-07T19:20:05.094481-08:00","close_reason":"auto-closed session event"} -{"id":"bd-iutu","title":"Test comment display","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-27T17:50:24.269413-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-27T17:53:39.950742-08:00","comments":[{"id":5,"issue_id":"bd-iutu","author":"beads/crew/dave","text":"This is a test comment","created_at":"2025-12-28T01:50:30Z"}],"deleted_at":"2025-12-27T17:53:39.950742-08:00","deleted_by":"beads/crew/dave","delete_reason":"manual delete","original_type":"task"} -{"id":"bd-iw11","title":"Fix TestCheckMetadataVersionTracking test threshold","description":"The test 'TestCheckMetadataVersionTracking/slightly_outdated_version' fails because:\n\n- Test uses version 0.35.0 as 'slightly outdated'\n- Current version is 0.45.0 (10 minor versions ahead)\n- The 'slightly outdated' threshold has been exceeded, so it now reports 'very old'\n\nThe test's version threshold needs updating, or the threshold logic needs adjusting.\n\n## Error\n```\ndoctor_test.go:984: Expected status ok, got warning (message: Last recorded version is very old: 0.35.0 (current: 0.45.0))\n```\n\n## Fix options\n1. Update test version from 0.35.0 to 0.43.0 (within threshold)\n2. Make test threshold calculation relative to current version","status":"closed","priority":3,"issue_type":"bug","created_at":"2026-01-06T22:47:02.397237-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-06T23:31:14.785508-08:00","closed_at":"2026-01-06T23:31:14.785508-08:00","close_reason":"Fixed by updating test version from 0.35.0 to 0.43.0"} -{"id":"bd-iw4z","title":"Compound visualization in bd mol show","description":"Enhance bd mol show to display compound structure.\n\nENHANCEMENTS:\n- Show constituent protos and how they're bonded\n- Display bond type (sequential/parallel) between components\n- Indicate attachment points\n- Show combined variable requirements across all protos\n\nEXAMPLE OUTPUT:\n\n Compound: proto-feature-with-tests\n Bonded from:\n └─ proto-feature (root)\n └─ proto-testing (sequential, after completion)\n \n Variables: {{name}}, {{version}}, {{test_suite}}\n \n Structure:\n proto-feature-with-tests\n ├─ Design feature {{name}}\n ├─ Implement core\n ├─ Write unit tests ← from proto-testing\n └─ Run test suite {{test_suite}} ← from proto-testing","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T00:59:26.71318-08:00","updated_at":"2026-01-02T13:42:51.390118-08:00","closed_at":"2026-01-02T13:42:51.390118-08:00","close_reason":"Implemented compound visualization in mol show. Added showCompoundBondingInfo() to display bonded-from lineage with bond types. Updated both showMolecule() and showMoleculeWithParallel() to detect compounds and show the 'Bonded from:' section. Added JSON output fields is_compound and bonded_from. Added unit tests for IsCompound(), GetConstituents(), and formatBondType().","dependencies":[{"issue_id":"bd-iw4z","depends_on_id":"bd-o5xe","type":"parent-child","created_at":"2025-12-21T00:59:51.500865-08:00","created_by":"daemon"},{"issue_id":"bd-iw4z","depends_on_id":"bd-rnnr","type":"blocks","created_at":"2025-12-21T00:59:51.891643-08:00","created_by":"daemon"}]} -{"id":"bd-ixhsz","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T05:57:23.490247-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T05:57:23.552115-08:00","closed_at":"2026-01-11T05:57:23.552115-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-iybw9","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T16:19:23.149493-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T16:19:23.224338-08:00","closed_at":"2026-01-13T16:19:23.224338-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-iugnm","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T19:20:05.05824-08:00","updated_at":"2026-01-07T19:20:05.094481-08:00","closed_at":"2026-01-07T19:20:05.094481-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/wolf"} +{"id":"bd-iutu","title":"Test comment display","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-27T17:50:24.269413-08:00","updated_at":"2025-12-27T17:53:39.950742-08:00","created_by":"beads/crew/dave","deleted_at":"2025-12-27T17:53:39.950742-08:00","deleted_by":"beads/crew/dave","delete_reason":"manual delete","original_type":"task"} +{"id":"bd-iw11","title":"Fix TestCheckMetadataVersionTracking test threshold","description":"The test 'TestCheckMetadataVersionTracking/slightly_outdated_version' fails because:\n\n- Test uses version 0.35.0 as 'slightly outdated'\n- Current version is 0.45.0 (10 minor versions ahead)\n- The 'slightly outdated' threshold has been exceeded, so it now reports 'very old'\n\nThe test's version threshold needs updating, or the threshold logic needs adjusting.\n\n## Error\n```\ndoctor_test.go:984: Expected status ok, got warning (message: Last recorded version is very old: 0.35.0 (current: 0.45.0))\n```\n\n## Fix options\n1. Update test version from 0.35.0 to 0.43.0 (within threshold)\n2. Make test threshold calculation relative to current version","status":"closed","priority":3,"issue_type":"bug","created_at":"2026-01-06T22:47:02.397237-08:00","updated_at":"2026-01-06T23:31:14.785508-08:00","closed_at":"2026-01-06T23:31:14.785508-08:00","close_reason":"Fixed by updating test version from 0.35.0 to 0.43.0","created_by":"beads/crew/emma"} +{"id":"bd-iw4z","title":"Compound visualization in bd mol show","description":"Enhance bd mol show to display compound structure.\n\nENHANCEMENTS:\n- Show constituent protos and how they're bonded\n- Display bond type (sequential/parallel) between components\n- Indicate attachment points\n- Show combined variable requirements across all protos\n\nEXAMPLE OUTPUT:\n\n Compound: proto-feature-with-tests\n Bonded from:\n └─ proto-feature (root)\n └─ proto-testing (sequential, after completion)\n \n Variables: {{name}}, {{version}}, {{test_suite}}\n \n Structure:\n proto-feature-with-tests\n ├─ Design feature {{name}}\n ├─ Implement core\n ├─ Write unit tests ← from proto-testing\n └─ Run test suite {{test_suite}} ← from proto-testing","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T00:59:26.71318-08:00","updated_at":"2026-01-02T13:42:51.390118-08:00","closed_at":"2026-01-02T13:42:51.390118-08:00","close_reason":"Implemented compound visualization in mol show. Added showCompoundBondingInfo() to display bonded-from lineage with bond types. Updated both showMolecule() and showMoleculeWithParallel() to detect compounds and show the 'Bonded from:' section. Added JSON output fields is_compound and bonded_from. Added unit tests for IsCompound(), GetConstituents(), and formatBondType().","dependencies":[{"issue_id":"bd-iw4z","depends_on_id":"bd-rnnr","type":"blocks","created_at":"2025-12-21T00:59:51.891643-08:00","created_by":"daemon"},{"issue_id":"bd-iw4z","depends_on_id":"bd-o5xe","type":"parent-child","created_at":"2025-12-21T00:59:51.500865-08:00","created_by":"daemon"}]} +{"id":"bd-ixhsz","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T05:57:23.490247-08:00","updated_at":"2026-01-11T05:57:23.552115-08:00","closed_at":"2026-01-11T05:57:23.552115-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-iybw9","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T16:19:23.149493-08:00","updated_at":"2026-01-13T16:19:23.224338-08:00","closed_at":"2026-01-13T16:19:23.224338-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-iye7","title":"Add path normalization to getMultiRepoJSONLPaths()","description":"From bd-xo6b code review: getMultiRepoJSONLPaths() does not handle non-standard paths correctly.\n\nProblems:\n- No tilde expansion: ~/repos/foo treated as literal path\n- No absolute path conversion: ../other-repo breaks if working directory changes\n- No duplicate detection: If Primary=. and Additional=[.], same JSONL processed twice\n- No empty string handling: Empty paths create invalid /.beads/issues.jsonl\n\nImpact:\nConfig with tilde or relative paths will fail\n\nFix needed:\n1. Use filepath.Abs() for all paths\n2. Add tilde expansion via os.UserHomeDir()\n3. Deduplicate paths (use map to track seen paths)\n4. Filter out empty strings\n5. Validate paths exist and are readable\n\nFiles:\n- cmd/bd/deletion_tracking.go:333-358 (getMultiRepoJSONLPaths function)","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-06T19:31:51.882743-08:00","updated_at":"2025-11-06T19:35:41.246311-08:00","closed_at":"2025-11-06T19:35:41.246311-08:00","dependencies":[{"issue_id":"bd-iye7","depends_on_id":"bd-xo6b","type":"discovered-from","created_at":"2025-11-06T19:32:12.267906-08:00","created_by":"daemon"}]} {"id":"bd-iz5t","title":"Swarm: 13 beads backlog issues for polecat execution","description":"## Swarm Overview\n\n13 issues prepared for parallel polecat execution. All issues have been enhanced with concrete implementation guidance, file lists, and success criteria.\n\n## Issue List\n\n### Bug (1) - HIGH PRIORITY\n| ID | Priority | Title |\n|----|----------|-------|\n| bd-phtv | P1 | Pinned field overwritten by subsequent commands |\n\n### Test Coverage (3)\n| ID | Package | Target |\n|----|---------|--------|\n| bd-io8c | internal/syncbranch | 27% → 70% |\n| bd-thgk | internal/compact | 17% → 70% |\n| bd-tvu3 | internal/beads | 48% → 70% |\n\n### Code Quality (3)\n| ID | Task |\n|----|------|\n| bd-qioh | FatalError pattern standardization |\n| bd-rgyd | Split queries.go (1704 lines → 5 files) |\n| bd-u2sc.3 | Split cmd/bd files (sync/init/show/compact) |\n\n### Features (4)\n| ID | Task |\n|----|------|\n| bd-au0.5 | Search date/priority filters |\n| bd-ykd9 | Doctor --fix auto-repair |\n| bd-g4b4 | Close hooks system |\n| bd-likt | Gate daemon RPC |\n\n### Polish (2)\n| ID | Task |\n|----|------|\n| bd-4qfb | Doctor output formatting |\n| bd-u2sc.4 | slog structured logging |\n\n## Issue Details\n\nAll issues have been enhanced with:\n- Concrete file lists to modify\n- Code snippets and patterns\n- Success criteria\n- Test commands\n\nRun `bd show \u003cid\u003e` for full details on any issue.\n\n## Execution Notes\n\n- All issues are independent (no blockers between them)\n- bd-phtv (P1 bug) should get priority - affects bd pin functionality\n- Test coverage tasks are straightforward but time-consuming\n- File split tasks (bd-rgyd, bd-u2sc.3) are mechanical but important\n\n## Completed During Prep\n\n- bd-ucgz (P2 bug) - Fixed inline: external deps orphan check (commit f2db0a1d)\n- Moved 5 gastown issues out of beads backlog (gt-dh65, gt-ng6g, gt-fqcz, gt-gswn, gt-rw2z)\n- Deferred 4 premature/post-1.0 issues\n- Closed bd-udsi epic (core implementation complete)","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-23T12:43:58.427835-08:00","updated_at":"2025-12-23T20:26:50.629471-08:00","closed_at":"2025-12-23T20:26:50.629471-08:00"} {"id":"bd-j0tr","title":"Phase 1.3: Basic TOON read/write operations","description":"Add basic TOON read/write operations to bdt executable. Implement create, list, and show commands that use the internal/toon package for encoding/decoding to TOON format.\n\n## Subtasks\n1. Implement bdt create command - Create issues and serialize to TOON format\n2. Implement bdt list command - Read issues.toon and display all issues\n3. Implement bdt show command - Display single issue by ID\n4. Add file I/O operations for issues.toon\n5. Integrate internal/toon package (EncodeTOON, DecodeJSON)\n6. Write tests for create, list, show operations\n\n## Files to Create/Modify\n- cmd/bdt/create.go - Create command\n- cmd/bdt/list.go - List command \n- cmd/bdt/show.go - Show command\n- cmd/bdt/storage.go - File I/O helper\n\n## Success Criteria\n- bdt create \"Issue title\" creates and saves to issues.toon\n- bdt list displays all issues in human-readable format\n- bdt list --json shows JSON output\n- bdt show \u003cid\u003e displays single issue\n- Issues round-trip correctly: create → list → show\n- All tests passing with \u003e80% coverage","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T12:59:54.270296918-07:00","updated_at":"2025-12-19T13:09:00.196045685-07:00","closed_at":"2025-12-19T13:09:00.196045685-07:00"} -{"id":"bd-j2dvn","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T05:24:31.461566-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T05:24:31.522918-08:00","closed_at":"2026-01-11T05:24:31.522918-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-j3dj","title":"Code smell: Duplicated issue type switch in cook.go","description":"The same switch statement for mapping step type to IssueType appears twice in cook.go:\n\nLocation 1 (line 425):\n```go\nswitch step.Type {\ncase \"task\":\n issueType = types.TypeTask\ncase \"bug\":\n issueType = types.TypeBug\n// ...\n}\n```\n\nLocation 2 (line 764): Identical switch statement.\n\nShould extract to a helper function:\n```go\nfunc stepTypeToIssueType(stepType string) types.IssueType {\n switch stepType {\n case \"task\": return types.TypeTask\n case \"bug\": return types.TypeBug\n // ...\n default: return types.TypeTask\n }\n}\n```\n\nLocation: cmd/bd/cook.go:425 and cmd/bd/cook.go:764","status":"closed","priority":2,"issue_type":"chore","created_at":"2025-12-28T15:31:56.630449-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T15:42:13.001897-08:00","closed_at":"2025-12-28T15:42:13.001897-08:00","dependencies":[{"issue_id":"bd-j3dj","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.14981-08:00","created_by":"daemon"}]} +{"id":"bd-j2dvn","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T05:24:31.461566-08:00","updated_at":"2026-01-11T05:24:31.522918-08:00","closed_at":"2026-01-11T05:24:31.522918-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-j3dj","title":"Code smell: Duplicated issue type switch in cook.go","description":"The same switch statement for mapping step type to IssueType appears twice in cook.go:\n\nLocation 1 (line 425):\n```go\nswitch step.Type {\ncase \"task\":\n issueType = types.TypeTask\ncase \"bug\":\n issueType = types.TypeBug\n// ...\n}\n```\n\nLocation 2 (line 764): Identical switch statement.\n\nShould extract to a helper function:\n```go\nfunc stepTypeToIssueType(stepType string) types.IssueType {\n switch stepType {\n case \"task\": return types.TypeTask\n case \"bug\": return types.TypeBug\n // ...\n default: return types.TypeTask\n }\n}\n```\n\nLocation: cmd/bd/cook.go:425 and cmd/bd/cook.go:764","status":"closed","priority":2,"issue_type":"chore","created_at":"2025-12-28T15:31:56.630449-08:00","updated_at":"2025-12-28T15:42:13.001897-08:00","closed_at":"2025-12-28T15:42:13.001897-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-j3dj","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.14981-08:00","created_by":"daemon"}]} {"id":"bd-j3il","title":"Add bd reset command for clean slate restart","description":"Implement a command to reset beads to a clean starting state.\n\n**Context:** GitHub issue #479 - users sometimes get beads into an invalid state after updates, and there's no clean way to start fresh. The git backup/restore mechanism that protects against accidental deletion also makes it hard to intentionally reset.\n\n**Current workaround** (from maphew):\n```bash\nbd daemons killall\ngit rm .beads/*.jsonl\ngit commit -m 'remove old issues'\nrm .beads/*\nbd init\nbd onboard\n```\n\n**Desired:** A proper `bd reset` command that handles this cleanly and safely.","status":"tombstone","priority":2,"issue_type":"feature","created_at":"2025-12-13T08:41:34.956552+11:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"feature"} {"id":"bd-j3pcg","title":"Digest: mol-refinery-patrol","description":"Patrol cycle: queue empty, no merges","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T17:52:10.08019-08:00","updated_at":"2026-01-10T17:52:10.08019-08:00","closed_at":"2026-01-10T17:52:10.080149-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-j3zt","title":"Fix mypy errors in beads-mcp","description":"Running `mypy .` in `integrations/beads-mcp` reports 287 errors. These should be addressed to improve type safety and code quality.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-20T18:53:28.557708-05:00","updated_at":"2025-12-09T18:38:37.694947872-05:00","closed_at":"2025-11-27T00:37:17.188443-08:00"} {"id":"bd-j4cr","title":"bd cook: waits_for field not preserved in cooked protos","description":"The `waits_for` field in formula steps is not preserved in the cooked proto.\n\n## Formula\n\n```yaml\n- id: aggregate\n title: Aggregate arm results\n needs: [survey-workers]\n waits_for: all-children\n description: |\n This is a **fanout gate**...\n```\n\n## Expected\n\nThe cooked proto step should have metadata indicating it's a gate:\n- Label: `gate:all-children` or\n- Field in issue metadata indicating wait behavior\n\n## Actual\n\nThe `waits_for` field is silently ignored. Only the description mentions 'fanout gate'.\n\n## Impact\n\nThe execution engine cannot determine which steps are gates that need to wait\nfor dynamically-bonded children. This breaks the Christmas Ornament pattern\nwhere aggregate steps must wait for all polecat-arm wisps to complete.\n\n## Related\n\nbd-hr39: needs field not converted to step dependencies","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-24T13:51:10.494565-08:00","updated_at":"2025-12-24T13:59:09.932552-08:00","closed_at":"2025-12-24T13:59:09.932552-08:00"} -{"id":"bd-j5s63","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:23:17.937509-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:23:17.97128-08:00","closed_at":"2026-01-08T14:23:17.97128-08:00","close_reason":"auto-closed session event"} -{"id":"bd-j5tq1","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:25:29.623537-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:25:29.689859-08:00","closed_at":"2026-01-11T21:25:29.689859-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-j5s63","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:23:17.937509-08:00","updated_at":"2026-01-08T14:23:17.97128-08:00","closed_at":"2026-01-08T14:23:17.97128-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-j5tq1","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:25:29.623537-08:00","updated_at":"2026-01-11T21:25:29.689859-08:00","closed_at":"2026-01-11T21:25:29.689859-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-j6lr","title":"GH#402: Add --parent flag documentation to bd onboard","description":"bd onboard output is missing --parent flag for epic subtasks. Agents guess wrong syntax (--deps parent:). See GitHub issue #402.","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-16T01:03:56.594829-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-j7am3","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:37:40.001253-08:00","created_by":"beads/crew/giles","updated_at":"2026-01-08T14:37:40.035005-08:00","closed_at":"2026-01-08T14:37:40.035005-08:00","close_reason":"auto-closed session event"} +{"id":"bd-j7am3","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:37:40.001253-08:00","updated_at":"2026-01-08T14:37:40.035005-08:00","closed_at":"2026-01-08T14:37:40.035005-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/giles"} {"id":"bd-j7e2","title":"RPC diagnostics: BD_RPC_DEBUG timing logs","description":"Add lightweight diagnostic logging for RPC connection attempts:\n- BD_RPC_DEBUG=1 prints to stderr:\n - Socket path being dialed\n - Socket exists check result \n - Dial start/stop time\n - Connection outcome\n- Improve bd daemon --status messaging when lock not held\n\nThis helps field triage of connection issues without verbose daemon logs.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-07T16:42:12.772364-08:00","updated_at":"2025-11-07T22:07:17.346817-08:00","closed_at":"2025-11-07T21:29:32.243458-08:00","dependencies":[{"issue_id":"bd-j7e2","depends_on_id":"bd-ndyz","type":"discovered-from","created_at":"2025-11-07T16:42:12.773714-08:00","created_by":"daemon"}]} -{"id":"bd-j7v7","title":"Merge: ruby-mk0ev0fb","description":"branch: polecat/ruby-mk0ev0fb\ntarget: main\nsource_issue: ruby-mk0ev0fb\nrig: beads\nagent_bead: bd-beads-polecat-ruby\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-04T16:21:31.460826-08:00","created_by":"beads/polecats/ruby","updated_at":"2026-01-05T19:45:43.982501-08:00","closed_at":"2026-01-05T19:45:43.982501-08:00","close_reason":"Branch deleted, already merged"} -{"id":"bd-j8tz0","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:15:20.491772-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T18:15:20.546549-08:00","closed_at":"2026-01-11T18:15:20.546549-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-j9ac9","title":"Update GIT_INTEGRATION.md for Jujutsu (GH#906)","description":"dispatched_by: beads/crew/dave\n\nUpdate the Jujutsu integration section to use 'bd merge' instead of standalone beads-merge binary. Fix provided in issue.","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/fang","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:42:19.464115-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T16:34:51.195142-08:00","closed_at":"2026-01-12T16:34:51.195142-08:00","close_reason":"Updated Jujutsu integration section to use bd merge instead of standalone beads-merge binary per GH#906","external_ref":"gh-906"} -{"id":"bd-jaz8u","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T17:34:08.111351-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T17:34:08.180238-08:00","closed_at":"2026-01-12T17:34:08.180238-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-jbgfb","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:34:55.131085-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T18:34:55.199477-08:00","closed_at":"2026-01-11T18:34:55.199477-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-jbqx","title":"Code smell: Repeated validation patterns could be centralized","description":"Similar validation patterns appear in multiple commands (create.go, show.go, update.go, etc.):\n- Check if resource exists\n- Check if resource is in valid state\n- Validate user input\n- Check permissions\n\n**Problem:**\n- Duplicated validation logic\n- Inconsistent validation between commands\n- Hard to add new validation rules consistently\n\n**Acceptance Criteria:**\n- [ ] Create internal/validation package\n- [ ] Centralize common validation logic\n- [ ] Use composition for validation chains\n- [ ] Update commands to use shared validators\n- [ ] Tests pass","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T19:00:03.171186-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-30T18:12:30.979965-08:00","closed_at":"2025-12-30T15:58:50.871474-08:00","close_reason":"Implemented composable validators in internal/validation/issue.go with Chain() composition, migrated show_unit_helpers.go to use centralized validators","dependencies":[{"issue_id":"bd-jbqx","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.84458-08:00","created_by":"daemon"}]} -{"id":"bd-jcdrt","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T09:41:07.26351-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T09:41:07.328097-08:00","closed_at":"2026-01-11T09:41:07.328097-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-jdv9t","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T14:32:15.396881-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T14:32:15.474071-08:00","closed_at":"2026-01-13T14:32:15.474071-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-jdz3","title":"Add pager support to bd list","description":"Add pager support following gh cli conventions:\n\nFlags:\n- --no-pager: disable pager for this command\n\nEnvironment variables:\n- BD_PAGER / PAGER: pager program (default: less)\n- BD_NO_PAGER: disable pager globally\n\nBehavior:\n- Auto-enable pager when output exceeds terminal height\n- Respect LESS env var for pager options\n- Disable pager when stdout is not a TTY (pipes/scripts)","notes":"## Implementation Plan\n\n### Dependencies\n```go\nimport \"github.com/muesli/termenv\" // or golang.org/x/term\n```\n\n### Code Changes\n\n1. **Add pager helper** (internal/ui/pager.go):\n```go\nfunc ToPager(content string) error {\n // Check BD_NO_PAGER or --no-pager\n if os.Getenv(\"BD_NO_PAGER\") \\!= \"\" {\n fmt.Print(content)\n return nil\n }\n \n // Get pager command\n pager := os.Getenv(\"BD_PAGER\")\n if pager == \"\" {\n pager = os.Getenv(\"PAGER\")\n }\n if pager == \"\" {\n pager = \"less\"\n }\n \n // Check if content exceeds terminal height\n // If not, just print directly\n \n // Pipe to pager\n cmd := exec.Command(pager)\n cmd.Stdin = strings.NewReader(content)\n cmd.Stdout = os.Stdout\n cmd.Stderr = os.Stderr\n return cmd.Run()\n}\n```\n\n2. **Add --no-pager flag** (cmd/bd/list.go init):\n```go\nlistCmd.Flags().Bool(\"no-pager\", false, \"Disable pager output\")\n```\n\n3. **Use pager in list output** (end of Run):\n```go\nif \\!noPager \u0026\u0026 isTerminal(os.Stdout) {\n ui.ToPager(output.String())\n} else {\n fmt.Print(output.String())\n}\n```\n\n### Environment Variables\n- `BD_PAGER`: pager program (overrides PAGER)\n- `BD_NO_PAGER`: set to any value to disable\n- `PAGER`: fallback pager\n- `LESS`: passed through for less options\n\n### Testing\n- `bd list` pipes to pager when output \u003e terminal height\n- `bd list --no-pager` prints directly\n- `BD_NO_PAGER=1 bd list` prints directly\n- `bd list | cat` auto-disables pager (not a TTY)","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-29T15:25:09.109258-08:00","created_by":"stevey","updated_at":"2025-12-30T15:44:43.356435-08:00","closed_at":"2025-12-30T00:41:45.168318-08:00","close_reason":"Merged via refinery"} -{"id":"bd-jfwxy","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:46:45.484779-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T23:46:45.554472-08:00","closed_at":"2026-01-12T23:46:45.554472-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-j7v7","title":"Merge: ruby-mk0ev0fb","description":"branch: polecat/ruby-mk0ev0fb\ntarget: main\nsource_issue: ruby-mk0ev0fb\nrig: beads\nagent_bead: bd-beads-polecat-ruby\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-04T16:21:31.460826-08:00","updated_at":"2026-01-05T19:45:43.982501-08:00","closed_at":"2026-01-05T19:45:43.982501-08:00","close_reason":"Branch deleted, already merged","created_by":"beads/polecats/ruby"} +{"id":"bd-j8tz0","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T18:15:20.491772-08:00","updated_at":"2026-01-11T18:15:20.546549-08:00","closed_at":"2026-01-11T18:15:20.546549-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-j9ac9","title":"Update GIT_INTEGRATION.md for Jujutsu (GH#906)","description":"dispatched_by: beads/crew/dave\n\nUpdate the Jujutsu integration section to use 'bd merge' instead of standalone beads-merge binary. Fix provided in issue.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T20:42:19.464115-08:00","updated_at":"2026-01-12T16:34:51.195142-08:00","closed_at":"2026-01-12T16:34:51.195142-08:00","close_reason":"Updated Jujutsu integration section to use bd merge instead of standalone beads-merge binary per GH#906","created_by":"beads/crew/dave"} +{"id":"bd-jaz8u","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T17:34:08.111351-08:00","updated_at":"2026-01-12T17:34:08.180238-08:00","closed_at":"2026-01-12T17:34:08.180238-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-jbgfb","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T18:34:55.131085-08:00","updated_at":"2026-01-11T18:34:55.199477-08:00","closed_at":"2026-01-11T18:34:55.199477-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-jbqx","title":"Code smell: Repeated validation patterns could be centralized","description":"Similar validation patterns appear in multiple commands (create.go, show.go, update.go, etc.):\n- Check if resource exists\n- Check if resource is in valid state\n- Validate user input\n- Check permissions\n\n**Problem:**\n- Duplicated validation logic\n- Inconsistent validation between commands\n- Hard to add new validation rules consistently\n\n**Acceptance Criteria:**\n- [ ] Create internal/validation package\n- [ ] Centralize common validation logic\n- [ ] Use composition for validation chains\n- [ ] Update commands to use shared validators\n- [ ] Tests pass","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T19:00:03.171186-08:00","updated_at":"2025-12-30T18:12:30.979965-08:00","closed_at":"2025-12-30T15:58:50.871474-08:00","close_reason":"Implemented composable validators in internal/validation/issue.go with Chain() composition, migrated show_unit_helpers.go to use centralized validators","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-jbqx","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.84458-08:00","created_by":"daemon"}]} +{"id":"bd-jcdrt","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T09:41:07.26351-08:00","updated_at":"2026-01-11T09:41:07.328097-08:00","closed_at":"2026-01-11T09:41:07.328097-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-jdv9t","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T14:32:15.396881-08:00","updated_at":"2026-01-13T14:32:15.474071-08:00","closed_at":"2026-01-13T14:32:15.474071-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-jdz3","title":"Add pager support to bd list","description":"Add pager support following gh cli conventions:\n\nFlags:\n- --no-pager: disable pager for this command\n\nEnvironment variables:\n- BD_PAGER / PAGER: pager program (default: less)\n- BD_NO_PAGER: disable pager globally\n\nBehavior:\n- Auto-enable pager when output exceeds terminal height\n- Respect LESS env var for pager options\n- Disable pager when stdout is not a TTY (pipes/scripts)","notes":"## Implementation Plan\n\n### Dependencies\n```go\nimport \"github.com/muesli/termenv\" // or golang.org/x/term\n```\n\n### Code Changes\n\n1. **Add pager helper** (internal/ui/pager.go):\n```go\nfunc ToPager(content string) error {\n // Check BD_NO_PAGER or --no-pager\n if os.Getenv(\"BD_NO_PAGER\") \\!= \"\" {\n fmt.Print(content)\n return nil\n }\n \n // Get pager command\n pager := os.Getenv(\"BD_PAGER\")\n if pager == \"\" {\n pager = os.Getenv(\"PAGER\")\n }\n if pager == \"\" {\n pager = \"less\"\n }\n \n // Check if content exceeds terminal height\n // If not, just print directly\n \n // Pipe to pager\n cmd := exec.Command(pager)\n cmd.Stdin = strings.NewReader(content)\n cmd.Stdout = os.Stdout\n cmd.Stderr = os.Stderr\n return cmd.Run()\n}\n```\n\n2. **Add --no-pager flag** (cmd/bd/list.go init):\n```go\nlistCmd.Flags().Bool(\"no-pager\", false, \"Disable pager output\")\n```\n\n3. **Use pager in list output** (end of Run):\n```go\nif \\!noPager \u0026\u0026 isTerminal(os.Stdout) {\n ui.ToPager(output.String())\n} else {\n fmt.Print(output.String())\n}\n```\n\n### Environment Variables\n- `BD_PAGER`: pager program (overrides PAGER)\n- `BD_NO_PAGER`: set to any value to disable\n- `PAGER`: fallback pager\n- `LESS`: passed through for less options\n\n### Testing\n- `bd list` pipes to pager when output \u003e terminal height\n- `bd list --no-pager` prints directly\n- `BD_NO_PAGER=1 bd list` prints directly\n- `bd list | cat` auto-disables pager (not a TTY)","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-29T15:25:09.109258-08:00","updated_at":"2025-12-30T15:44:43.356435-08:00","closed_at":"2025-12-30T00:41:45.168318-08:00","close_reason":"Merged via refinery","created_by":"stevey"} +{"id":"bd-jfwxy","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T23:46:45.484779-08:00","updated_at":"2026-01-12T23:46:45.554472-08:00","closed_at":"2026-01-12T23:46:45.554472-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-jgxi","title":"Auto-migrate database on CLI version bump","description":"When CLI is upgraded (e.g., 0.24.0 → 0.24.1), database version becomes stale. Add auto-migration in PersistentPreRun or daemon startup. Check dbVersion != CLIVersion and run bd migrate automatically. Fixes recurring UX issue where bd doctor shows version mismatch after every CLI upgrade.","status":"tombstone","priority":0,"issue_type":"feature","created_at":"2025-11-21T23:16:09.004619-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-jgxi","depends_on_id":"bd-tbz3","type":"parent-child","created_at":"2025-11-21T23:16:09.005513-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"feature"} -{"id":"bd-ji2bv","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T23:05:51.450724-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T23:05:51.496745-08:00","closed_at":"2026-01-11T23:05:51.496745-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ji2bv","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T23:05:51.450724-08:00","updated_at":"2026-01-11T23:05:51.496745-08:00","closed_at":"2026-01-11T23:05:51.496745-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} {"id":"bd-jijf","title":"Fix: --parent flag doesn't create parent-child dependency","description":"When using `bd create --parent \u003cid\u003e`, the code generates a hierarchical child ID (e.g., bd-123.1) but never creates a parent-child dependency. This causes `bd epic status` to show zero children even though child issues exist.\n\nRoot cause: create.go generates child ID using store.GetNextChildID() but never calls store.AddDependency() with type parent-child.\n\nFix: After creating the issue when parentID is set, automatically add a parent-child dependency linking child -\u003e parent.","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-15T13:15:22.138854-08:00","updated_at":"2025-11-15T13:18:29.301788-08:00","closed_at":"2025-11-15T13:18:29.301788-08:00"} {"id":"bd-jjua","title":"Auto-invoke 3-way merge for JSONL conflicts","description":"Currently when git pull encounters merge conflicts in .beads/issues.jsonl, the post-merge hook fails with an error message pointing users to manual resolution or the beads-merge tool.\n\nThis is a poor user experience - the conflict detection is working, but we should automatically invoke the advanced 3-way merging instead of just telling users about it.\n\n**Current behavior:**\n- Detect conflict markers in JSONL\n- Display error with manual resolution options\n- Exit with failure\n\n**Desired behavior:**\n- Detect conflict markers in JSONL\n- Automatically invoke beads-merge 3-way merge\n- Only fail if automatic merge cannot resolve the conflicts\n\n**Reference:**\n- beads-merge tool: https://github.com/neongreen/mono/tree/main/beads-merge\n- Error occurs in post-merge hook during bd sync after git pull","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-08T03:09:18.258708-08:00","updated_at":"2025-11-08T03:15:55.529652-08:00","closed_at":"2025-11-08T03:15:55.529652-08:00"} -{"id":"bd-jjzz","title":"Merge: obsidian-1767106243818","description":"branch: polecat/obsidian-1767106243818\ntarget: main\nsource_issue: obsidian-1767106243818\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T07:00:26.328349-08:00","created_by":"beads/polecats/obsidian","updated_at":"2025-12-30T15:44:43.366109-08:00","closed_at":"2025-12-30T10:27:23.070855-08:00"} -{"id":"bd-jk4hg","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:48:40.160252-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T23:48:40.230112-08:00","closed_at":"2026-01-12T23:48:40.230112-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-jjzz","title":"Merge: obsidian-1767106243818","description":"branch: polecat/obsidian-1767106243818\ntarget: main\nsource_issue: obsidian-1767106243818\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T07:00:26.328349-08:00","updated_at":"2025-12-30T15:44:43.366109-08:00","closed_at":"2025-12-30T10:27:23.070855-08:00","created_by":"beads/polecats/obsidian"} +{"id":"bd-jk4hg","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T23:48:40.160252-08:00","updated_at":"2026-01-12T23:48:40.230112-08:00","closed_at":"2026-01-12T23:48:40.230112-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-jke6","title":"Add covering index (label, issue_id) for label queries","description":"GetIssuesByLabel joins labels table but requires table lookup after using idx_labels_label.\n\n**Query (labels.go:165):**\n```sql\nSELECT ... FROM issues i\nJOIN labels l ON i.id = l.issue_id\nWHERE l.label = ?\n```\n\n**Problem:** Current idx_labels_label index doesn't cover issue_id, requiring row lookup.\n\n**Solution:** Add migration:\n```sql\nCREATE INDEX IF NOT EXISTS idx_labels_label_issue ON labels(label, issue_id);\n```\n\nThis is a covering index - query can be satisfied entirely from the index without touching the labels table rows.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-22T22:58:51.485354-08:00","updated_at":"2025-12-22T23:15:13.839904-08:00","closed_at":"2025-12-22T23:15:13.839904-08:00","dependencies":[{"issue_id":"bd-jke6","depends_on_id":"bd-h0we","type":"discovered-from","created_at":"2025-12-22T22:58:51.485984-08:00","created_by":"daemon"}]} -{"id":"bd-jmfmp","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:43:49.566438-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-12T19:43:49.613924-08:00","closed_at":"2026-01-12T19:43:49.613924-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-jnyci","title":"Review and merge PR #1055: bump actions/upload-pages-artifact from 3 to 4","description":"dispatched_by: beads/crew/emma\n\nPR: https://github.com/steveyegge/beads/pull/1055\n\n**Change:** Dependabot version bump for GH Actions upload-pages-artifact from v3 to v4.\n\n**Note:** v4 has a potentially breaking change: dotfiles will not be included in the artifact. This shouldn't affect us unless we rely on dotfiles in pages artifacts.\n\n**Review tasks:**\n1. Check if our pages workflow uses dotfiles (unlikely)\n2. If no concerns, merge with: gh pr merge 1055 --repo steveyegge/beads --squash\n3. Close this bead after merge","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/fang","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:03:52.768286-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T23:30:54.423334-08:00","closed_at":"2026-01-12T23:30:54.423334-08:00","close_reason":"PR was already merged"} +{"id":"bd-jmfmp","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:43:49.566438-08:00","updated_at":"2026-01-12T19:43:49.613924-08:00","closed_at":"2026-01-12T19:43:49.613924-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/grip"} +{"id":"bd-jnyci","title":"Review and merge PR #1055: bump actions/upload-pages-artifact from 3 to 4","description":"dispatched_by: beads/crew/emma\n\nPR: https://github.com/steveyegge/beads/pull/1055\n\n**Change:** Dependabot version bump for GH Actions upload-pages-artifact from v3 to v4.\n\n**Note:** v4 has a potentially breaking change: dotfiles will not be included in the artifact. This shouldn't affect us unless we rely on dotfiles in pages artifacts.\n\n**Review tasks:**\n1. Check if our pages workflow uses dotfiles (unlikely)\n2. If no concerns, merge with: gh pr merge 1055 --repo steveyegge/beads --squash\n3. Close this bead after merge","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T23:03:52.768286-08:00","updated_at":"2026-01-12T23:30:54.423334-08:00","closed_at":"2026-01-12T23:30:54.423334-08:00","close_reason":"PR was already merged","created_by":"beads/crew/emma"} {"id":"bd-jo38","title":"Add WaitGroup tracking to FileWatcher goroutines","description":"FileWatcher spawns goroutines without WaitGroup tracking, causing race condition on shutdown.\n\nLocation: cmd/bd/daemon_watcher.go:123-182, 215-291\n\nProblem:\n- Goroutines spawned without sync.WaitGroup\n- Close() cancels context but doesn't wait for goroutines to exit\n- Race condition: goroutine may access fw.debouncer during Close() cleanup\n- No guarantee goroutine stopped before fw.watcher.Close() is called\n\nSolution:\n- Add sync.WaitGroup field to FileWatcher\n- Track goroutines with wg.Add(1) and defer wg.Done()\n- Call wg.Wait() in Close() before cleanup\n\nImpact: Race condition on daemon shutdown; potential panic\n\nEffort: 2 hours","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-16T14:51:38.591371-08:00","updated_at":"2025-11-16T15:04:00.466334-08:00","closed_at":"2025-11-16T15:04:00.466334-08:00"} -{"id":"bd-jple","title":"Fix cross-worktree sync losing status changes (GH#865)","description":"Left snapshot protection during sync ignores timestamps, causing newer remote changes to be skipped. Need to make protection timestamp-aware: only protect if local is newer than incoming. See issue for detailed analysis and fix options.","status":"closed","priority":1,"issue_type":"bug","assignee":"beads/crew/emma","created_at":"2026-01-03T13:12:54.354717-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-03T13:27:47.682508-08:00","closed_at":"2026-01-03T13:27:47.682508-08:00","close_reason":"Fixed with timestamp-aware snapshot protection"} -{"id":"bd-jposm","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T21:38:28.342577-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T21:15:40.691248-08:00","closed_at":"2026-01-09T21:15:40.691248-08:00","close_reason":"Stale session ended events"} -{"id":"bd-jpu9","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:28:55.97548-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:28:56.00767-08:00","closed_at":"2026-01-07T00:28:56.00767-08:00","close_reason":"auto-closed session event"} -{"id":"bd-jrb0u","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:50:35.133209-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-09T13:50:35.172964-08:00","closed_at":"2026-01-09T13:50:35.172964-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-jrjwx","title":"Bug: resolve_conflicts.go has closed winning over tombstone (should be reversed)","description":"In `cmd/bd/resolve_conflicts.go` lines 418-425:\n\n```go\n// Status: closed wins\nif left.Status == \"closed\" || right.Status == \"closed\" {\n result.Status = \"closed\"\n} else if left.Status == \"tombstone\" || right.Status == \"tombstone\" {\n result.Status = \"tombstone\"\n}\n```\n\nThis is backwards. Tombstone should win over closed because:\n1. Tombstone represents an explicit deletion\n2. The main merge library (`internal/merge/merge.go` lines 657-660) correctly has tombstone winning first\n3. This bug causes corrupted state: status=closed + deleted_at set\n\n**Fix:** Swap the order so tombstone is checked first.","status":"open","priority":1,"issue_type":"bug","assignee":"beads/crew/giles","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:26:17.808709-08:00","created_by":"mayor","updated_at":"2026-01-12T01:36:53.572009-08:00"} -{"id":"bd-jsk7","title":"Agent beads: structured labels for filtering","description":"## Agent Beads Need Queryable Labels\n\nCurrently agent beads have role_type/rig in description text, not as labels. This breaks @group resolution in gt mail.\n\n## Current State\n```json\n{\n \"id\": \"gt-gastown-witness\",\n \"issue_type\": \"agent\",\n \"description\": \"...\\\\nrole_type: witness\\\\nrig: gastown\\\\n...\"\n}\n```\n\nCannot query: `bd list --type=agent --label=role_type:witness` returns nothing.\n\n## Required\nAgent bead creation should add labels:\n- `role_type:\u003ctype\u003e` (witness, refinery, crew, polecat, dog, mayor, deacon)\n- `rig:\u003crig\u003e` (gastown, beads, or \"town\" for town-level)\n\n## Where to Fix\ngt polecat/crew/agent creation commands should add labels.\n\n## Acceptance\n- New agent beads created with role_type/rig labels\n- @group patterns work in gt mail router","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-29T20:49:13.444793-08:00","created_by":"gastown/crew/joe","updated_at":"2025-12-29T20:58:04.67866-08:00","closed_at":"2025-12-29T20:58:04.67866-08:00","close_reason":"Duplicate of bd-g7eq"} +{"id":"bd-jple","title":"Fix cross-worktree sync losing status changes (GH#865)","description":"Left snapshot protection during sync ignores timestamps, causing newer remote changes to be skipped. Need to make protection timestamp-aware: only protect if local is newer than incoming. See issue for detailed analysis and fix options.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-03T13:12:54.354717-08:00","updated_at":"2026-01-03T13:27:47.682508-08:00","closed_at":"2026-01-03T13:27:47.682508-08:00","close_reason":"Fixed with timestamp-aware snapshot protection","created_by":"beads/crew/grip"} +{"id":"bd-jposm","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T21:38:28.342577-08:00","updated_at":"2026-01-09T21:15:40.691248-08:00","closed_at":"2026-01-09T21:15:40.691248-08:00","close_reason":"Stale session ended events","created_by":"beads/crew/dave"} +{"id":"bd-jpu9","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:28:55.97548-08:00","updated_at":"2026-01-07T00:28:56.00767-08:00","closed_at":"2026-01-07T00:28:56.00767-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-jrb0u","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:50:35.133209-08:00","updated_at":"2026-01-09T13:50:35.172964-08:00","closed_at":"2026-01-09T13:50:35.172964-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} +{"id":"bd-jrjwx","title":"Bug: resolve_conflicts.go has closed winning over tombstone (should be reversed)","description":"In `cmd/bd/resolve_conflicts.go` lines 418-425:\n\n```go\n// Status: closed wins\nif left.Status == \"closed\" || right.Status == \"closed\" {\n result.Status = \"closed\"\n} else if left.Status == \"tombstone\" || right.Status == \"tombstone\" {\n result.Status = \"tombstone\"\n}\n```\n\nThis is backwards. Tombstone should win over closed because:\n1. Tombstone represents an explicit deletion\n2. The main merge library (`internal/merge/merge.go` lines 657-660) correctly has tombstone winning first\n3. This bug causes corrupted state: status=closed + deleted_at set\n\n**Fix:** Swap the order so tombstone is checked first.","status":"open","priority":1,"issue_type":"bug","created_at":"2026-01-12T01:26:17.808709-08:00","updated_at":"2026-01-12T01:36:53.572009-08:00","created_by":"mayor"} +{"id":"bd-jsk7","title":"Agent beads: structured labels for filtering","description":"## Agent Beads Need Queryable Labels\n\nCurrently agent beads have role_type/rig in description text, not as labels. This breaks @group resolution in gt mail.\n\n## Current State\n```json\n{\n \"id\": \"gt-gastown-witness\",\n \"issue_type\": \"agent\",\n \"description\": \"...\\\\nrole_type: witness\\\\nrig: gastown\\\\n...\"\n}\n```\n\nCannot query: `bd list --type=agent --label=role_type:witness` returns nothing.\n\n## Required\nAgent bead creation should add labels:\n- `role_type:\u003ctype\u003e` (witness, refinery, crew, polecat, dog, mayor, deacon)\n- `rig:\u003crig\u003e` (gastown, beads, or \"town\" for town-level)\n\n## Where to Fix\ngt polecat/crew/agent creation commands should add labels.\n\n## Acceptance\n- New agent beads created with role_type/rig labels\n- @group patterns work in gt mail router","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-29T20:49:13.444793-08:00","updated_at":"2025-12-29T20:58:04.67866-08:00","closed_at":"2025-12-29T20:58:04.67866-08:00","close_reason":"Duplicate of bd-g7eq","created_by":"gastown/crew/joe"} {"id":"bd-jv4w","title":"Phase 1.2: Separate bdt executable - Initial structure","description":"Create minimal bdt command structure completely separate from bd. Must not share code, config, or database.\n\n## Subtasks\n1. Create cmd/bdt/ directory with main.go\n2. Implement bdt version, help, and status commands\n3. Configure separate database location: $HOME/.bdt/ (not $HOME/.beads/)\n4. Create separate issues file: issues.toon (not issues.jsonl)\n5. Update build system:\n - Makefile: Add bdt target\n - .goreleaser.yml: Add bdt binary config\n\n## Files to Create\n- cmd/bdt/main.go - Entry point\n- cmd/bdt/version.go - Version handling\n- cmd/bdt/help.go - Help text (separate from bd)\n\n## Success Criteria\n- `make build` produces both `bd` and `bdt` executables\n- `bdt version` shows distinct version output from bd\n- `bdt --help` shows distinct help text\n- bdt uses $HOME/.bdt/ directory (verify with `bdt info`)\n- bd and bdt completely isolated (no shared imports beyond stdlib)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T11:48:34.866877282-07:00","updated_at":"2025-12-19T12:59:11.389296015-07:00","closed_at":"2025-12-19T12:59:11.389296015-07:00"} {"id":"bd-jvkt5","title":"Digest: mol-refinery-patrol","description":"Patrol cycle: queue empty, 0 branches merged, no issues","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T20:14:38.287395-08:00","updated_at":"2026-01-10T20:14:38.287395-08:00","closed_at":"2026-01-10T20:14:38.287363-08:00","close_reason":"Squashed from 11 wisps","dependencies":[{"issue_id":"bd-jvkt5","depends_on_id":"bd-wisp-d7b","type":"parent-child","created_at":"2026-01-10T20:14:38.288235-08:00","created_by":"beads/refinery"}]} {"id":"bd-jvu","title":"Add bd update --parent flag to change issue parent","description":"Allow changing an issue's parent with bd update --parent \u003cnew-parent-id\u003e. Useful for reorganizing tasks under different epics or moving issues between hierarchies. Should update the parent-child dependency relationship.","status":"tombstone","priority":3,"issue_type":"feature","created_at":"2025-12-17T22:24:07.274485-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"feature"} -{"id":"bd-jvwjr","title":"Bug P0","status":"open","priority":0,"issue_type":"bug","assignee":"alice","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:13.828787-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:13.828787-08:00"} +{"id":"bd-jvwjr","title":"Bug P0","status":"open","priority":0,"issue_type":"bug","created_at":"2026-01-11T18:16:13.828787-08:00","updated_at":"2026-01-11T18:16:13.828787-08:00","created_by":"beads/crew/wolf"} {"id":"bd-jx90","title":"Add simple cleanup command to delete closed issues","description":"Users want a simple command to delete all closed issues without requiring Anthropic API key (unlike compact). Requested in GH #243.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-07T00:26:30.372137-08:00","updated_at":"2025-11-07T22:07:17.347122-08:00","closed_at":"2025-11-07T22:05:16.325863-08:00"} -{"id":"bd-jxp6","title":"Merge: jasper-1767142011373","description":"branch: polecat/jasper-1767142011373\ntarget: main\nsource_issue: jasper-1767142011373\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T16:57:20.349497-08:00","created_by":"beads/polecats/jasper","updated_at":"2025-12-30T18:12:30.965618-08:00","closed_at":"2025-12-30T18:11:07.859316-08:00"} -{"id":"bd-jy5f6","title":"Fix: Global install leaves invalid hooks (GH#955)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #955. Global installation leaves invalid hooks in settings.json causing Claude Code to fail.","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/grip","created_at":"2026-01-09T22:20:07.1156-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T23:04:14.557469-08:00","closed_at":"2026-01-09T23:04:14.557469-08:00","close_reason":"Fixed: removeHookCommand now deletes hook keys when empty instead of leaving null values. Also added cleanup during install to fix existing broken settings."} -{"id":"bd-jybi","title":"Migration: add gt:* labels to existing Gas Town beads","description":"One-time migration to add gt:* labels to existing Gas Town beads.\n\n## Work\n- Create migration command or script\n- Find all beads with type=agent, add label gt:agent\n- Find all beads with type=role, add label gt:role\n- Find all beads with type=rig, add label gt:rig\n- Find all beads with type=convoy, add label gt:convoy\n- Find all beads with type=slot, add label gt:slot\n\n## Notes\nThis runs in Gas Town, not in beads core. May be a gt command rather than bd command.","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-06T20:40:54.0364-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-06T20:40:54.0364-08:00","dependencies":[{"issue_id":"bd-jybi","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.801895-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-jybi","depends_on_id":"bd-7xd7","type":"blocks","created_at":"2026-01-06T20:41:29.183759-08:00","created_by":"beads/crew/dave"}]} +{"id":"bd-jxp6","title":"Merge: jasper-1767142011373","description":"branch: polecat/jasper-1767142011373\ntarget: main\nsource_issue: jasper-1767142011373\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T16:57:20.349497-08:00","updated_at":"2025-12-30T18:12:30.965618-08:00","closed_at":"2025-12-30T18:11:07.859316-08:00","created_by":"beads/polecats/jasper"} +{"id":"bd-jy5f6","title":"Fix: Global install leaves invalid hooks (GH#955)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #955. Global installation leaves invalid hooks in settings.json causing Claude Code to fail.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-09T22:20:07.1156-08:00","updated_at":"2026-01-09T23:04:14.557469-08:00","closed_at":"2026-01-09T23:04:14.557469-08:00","close_reason":"Fixed: removeHookCommand now deletes hook keys when empty instead of leaving null values. Also added cleanup during install to fix existing broken settings.","created_by":"beads/crew/dave"} +{"id":"bd-jybi","title":"Migration: add gt:* labels to existing Gas Town beads","description":"One-time migration to add gt:* labels to existing Gas Town beads.\n\n## Work\n- Create migration command or script\n- Find all beads with type=agent, add label gt:agent\n- Find all beads with type=role, add label gt:role\n- Find all beads with type=rig, add label gt:rig\n- Find all beads with type=convoy, add label gt:convoy\n- Find all beads with type=slot, add label gt:slot\n\n## Notes\nThis runs in Gas Town, not in beads core. May be a gt command rather than bd command.","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-06T20:40:54.0364-08:00","updated_at":"2026-01-06T20:40:54.0364-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-jybi","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.801895-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-jybi","depends_on_id":"bd-7xd7","type":"blocks","created_at":"2026-01-06T20:41:29.183759-08:00","created_by":"beads/crew/dave"}]} {"id":"bd-k0j9","title":"Test dependency parent","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-05T11:23:02.505901-08:00","updated_at":"2025-11-05T11:23:20.91305-08:00","closed_at":"2025-11-05T11:23:20.91305-08:00"} -{"id":"bd-k3wd","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:39:59.12092-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:39:59.15223-08:00","closed_at":"2026-01-07T00:39:59.15223-08:00","close_reason":"auto-closed session event"} +{"id":"bd-k3wd","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:39:59.12092-08:00","updated_at":"2026-01-07T00:39:59.15223-08:00","closed_at":"2026-01-07T00:39:59.15223-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-k4b","title":"Enhance dep tree to show full dependency graph","description":"When running `bd dep tree \u003cissue-id\u003e`, the current output only shows the issue itself without its dependency relationships.\n\n## Current Behavior\n\n```\n$ bd dep tree gt-0iqq\n🌲 Dependency tree for gt-0iqq:\n\n→ gt-0iqq: Implement Boss (global overseer) [P2] (open)\n```\n\nThis doesn't show any of the dependency structure.\n\n## Desired Behavior\n\nShow the full dependency DAG rooted at the given issue. For example:\n\n```\n$ bd dep tree gt-0iqq\n🌲 Dependency tree for gt-0iqq:\n\ngt-0iqq: Implement Boss (global overseer) [P2] (open)\n├── gt-0xh4: Boss session management [P2] (open) [READY]\n│ ├── gt-le7c: Boss mail identity [P2] (open)\n│ │ ├── gt-r8fe: Boss human escalation queue [P2] (open)\n│ │ └── gt-vdak: Boss dispatch loop [P2] (open)\n│ │ └── gt-kgy6: Boss resource management [P2] (open)\n│ │ └── gt-93iv: Boss wake daemon [P2] (open)\n│ └── gt-vdak: (shown above)\n```\n\n## Suggested Options\n\n- `--direction=down|up|both` - Show dependents (what this blocks), dependencies (what blocks this), or both\n- `--status=open` - Filter to only show issues with a given status\n- `--depth=N` - Limit tree depth\n- Handle DAG cycles gracefully (show \"(shown above)\" or similar for already-displayed nodes)\n\n## Use Case\n\nWhen reorganizing a set of related issues (like I just did with the Boss implementation), being able to visualize the full dependency graph helps verify the structure is correct before syncing.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-25T19:18:18.750649-08:00","updated_at":"2025-11-25T19:50:46.863319-08:00","closed_at":"2025-11-25T19:31:55.312314-08:00"} -{"id":"bd-k4ww","title":"Merge: pearl-mjtmd27a","description":"branch: polecat/pearl-mjtmd27a\ntarget: main\nsource_issue: pearl-mjtmd27a\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T22:16:38.232474-08:00","created_by":"beads/polecats/pearl","updated_at":"2026-01-01T10:43:18.623861-08:00","closed_at":"2026-01-01T10:43:18.623861-08:00","close_reason":"Stale MR - branch no longer exists on remote"} +{"id":"bd-k4ww","title":"Merge: pearl-mjtmd27a","description":"branch: polecat/pearl-mjtmd27a\ntarget: main\nsource_issue: pearl-mjtmd27a\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T22:16:38.232474-08:00","updated_at":"2026-01-01T10:43:18.623861-08:00","closed_at":"2026-01-01T10:43:18.623861-08:00","close_reason":"Stale MR - branch no longer exists on remote","created_by":"beads/polecats/pearl"} {"id":"bd-k58","title":"Proposal workflow (propose/withdraw/accept)","description":"Implement commands and state machine for moving issues between personal planning repos and canonical upstream repos, enabling contributors to propose work without polluting PRs.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-04T11:21:41.113647-08:00","updated_at":"2025-11-05T00:08:42.814698-08:00","closed_at":"2025-11-05T00:08:42.814699-08:00","dependencies":[{"issue_id":"bd-k58","depends_on_id":"bd-4ms","type":"parent-child","created_at":"2025-11-04T11:22:21.811261-08:00","created_by":"daemon"}]} -{"id":"bd-k6by7","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:52:51.593185-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-09T13:52:51.631065-08:00","closed_at":"2026-01-09T13:52:51.631065-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-k82j1","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:44:22.376665-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:44:22.442307-08:00","closed_at":"2026-01-11T19:44:22.442307-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-k6by7","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:52:51.593185-08:00","updated_at":"2026-01-09T13:52:51.631065-08:00","closed_at":"2026-01-09T13:52:51.631065-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} +{"id":"bd-k82j1","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:44:22.376665-08:00","updated_at":"2026-01-11T19:44:22.442307-08:00","closed_at":"2026-01-11T19:44:22.442307-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-k92d","title":"Critical: Beads deletes issues during sync (GH#464)","description":"# Findings\n\n## Root Cause 1: git-history-backfill deletes issues during repo ID mismatch\n\n**Location:** internal/importer/importer.go, purgeDeletedIssues()\n\nThe git-history-backfill mechanism checks git history to find deleted issues. When there's a repo ID mismatch (e.g., database from a different clone or after remote URL change), this can incorrectly treat local issues as deleted because they don't exist in the remote's git history.\n\n**Fix Applied:** Added safety guard at lines 971-987 in importer.go that:\n- Checks issue status before deletion via git-history-backfill\n- Prevents deletion of open/in_progress issues\n- Provides clear warning with actionable steps\n- Suggests using --no-git-history flag or bd delete for explicit deletion\n\n## Root Cause 2: Daemon sync race condition overwrites local unpushed changes\n\n**Location:** cmd/bd/daemon_sync.go, performAutoImport()\n\nThe daemon sync's auto-import function pulls from remote without checking for uncommitted local changes. This can overwrite local work that hasn't been pushed yet.\n\n**Fix Applied:** Added warning at lines 565-575 in daemon_sync.go that:\n- Checks for uncommitted changes before pulling\n- Warns user about potential overwrite\n- Suggests running 'bd sync' to commit/push first\n- Continues with pull but user is informed\n\n## Additional Safety Improvements\n\n1. Enhanced repo ID mismatch error message (daemon_sync.go:362-371)\n - Added warning about deletion risk\n - Clarified that mismatch can cause incorrect deletions\n\n2. Safety guard in deletions manifest processing (importer.go:886-902)\n - Prevents deletion of open/in_progress issues in deletions.jsonl\n - Provides diagnostic information\n - Suggests recovery options\n\n3. Updated tests (purge_test.go)\n - Changed test to use closed issue (safe to delete)\n - Verifies safety guard works correctly\n\n## Testing\n\nAll tests pass:\n- go test ./internal/importer/... ✓\n- go build ./cmd/bd/ ✓\n\nThe safety guards now prevent both root causes from deleting active work.","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-12-14T23:00:19.36203-08:00","updated_at":"2025-12-14T23:07:43.311616-08:00","closed_at":"2025-12-14T23:07:43.311616-08:00"} -{"id":"bd-k9f1t","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T14:27:04.672799-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T14:27:04.71014-08:00","closed_at":"2026-01-09T14:27:04.71014-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-k9wf9","title":"Create /pr-list and /ghi-list skills for formatted tabular output","status":"open","priority":2,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:19:00.55636-08:00","created_by":"gastown/crew/max","updated_at":"2026-01-11T22:19:00.55636-08:00"} -{"id":"bd-ka3cu","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T12:14:25.455727-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T12:14:25.526077-08:00","closed_at":"2026-01-13T12:14:25.526077-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-ka761","title":"Gate-based async molecule resume","description":"## Summary\n\nRefactor molecule execution to use gates for async coordination, eliminating spin-wait\nanti-patterns. When a polecat hits a gate step, it exits cleanly. The Deacon patrol\ndiscovers molecules with resolved gates and dispatches new polecats to continue.\n\n## Motivation\n\nThe beads-release formula has a `wait-ci` step that tells agents to poll GitHub Actions\nfor 5-10 minutes. This is wasteful and unreliable. We have gate infrastructure in beads\nbut no integration with molecule execution flow.\n\nDave ran a version bump to 0.46.0 without the release molecule - exactly because agents\ndon't know all the steps when there's no enforced workflow with proper async handling.\n\n## Design\n\n### Gate Steps in Formula Schema\n\n```toml\n[[steps]]\nid = \"wait-ci\"\ngate = \"gh:run\"\ngate_hint = \"release.yml\"\ntimeout = \"30m\"\n```\n\n### Flow\n\n1. `bd mol cook` creates gate beads for gate steps\n2. Polecat reaches gate step → checks if gate closed\n3. If open → `gt done --phase-complete --gate \u003cid\u003e` and exit\n4. Deacon patrol runs `bd gate check` → closes resolved gates\n5. Deacon discovers molecules with closed gates → slings to polecats\n6. New polecat continues from gate step\n\n### Key Principle\n\nDiscovery-based resume, not waiter-based. The molecule state IS the waiter.\nPatrol discovers reality each cycle. Nondeterministic idempotence.\n\n## Components\n\n- **Beads**: Formula parser, mol cook, mol ready --gated\n- **Gas Town**: Deacon patrol step for molecule dispatch\n- **Release formula**: Refactor to use gate step\n\n## References\n\n- Gate infrastructure: cmd/bd/gate.go\n- Current release formula: formulas/beads-release.formula.toml\n- Deacon patrol: mol-deacon-patrol.formula.toml","status":"closed","priority":1,"issue_type":"epic","assignee":"beads/crew/dave","created_at":"2026-01-08T20:53:10.34329-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T23:04:08.671651-08:00","closed_at":"2026-01-08T23:04:08.671653-08:00","close_reason":"All 5 child tasks completed: formula parser recognizes gate fields, mol cook creates gate beads, mol ready --gated finds gate-ready molecules, Deacon patrol dispatches them, and beads-release formula refactored to use gate steps"} -{"id":"bd-kazt","title":"Add tests for 3-way merge scenarios","description":"Comprehensive test coverage for merge logic.\n\n**Test cases**:\n- Simple field updates (left vs right)\n- Dependency merging (union + dedup)\n- Timestamp handling (max wins)\n- Deletion detection (deleted in one, modified in other)\n- Conflict generation (incompatible changes)\n- Issue resurrection prevention (bd-hv01 regression test)\n\n**Files**:\n- `internal/merge/merge_test.go`\n- `cmd/bd/merge_test.go`","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-05T18:42:20.472275-08:00","updated_at":"2025-11-06T15:52:41.863426-08:00","closed_at":"2025-11-06T15:52:41.863426-08:00","dependencies":[{"issue_id":"bd-kazt","depends_on_id":"bd-qqvw","type":"parent-child","created_at":"2025-11-05T18:42:28.740517-08:00","created_by":"daemon"},{"issue_id":"bd-kazt","depends_on_id":"bd-oif6","type":"blocks","created_at":"2025-11-05T18:42:35.469582-08:00","created_by":"daemon"}]} +{"id":"bd-k9f1t","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T14:27:04.672799-08:00","updated_at":"2026-01-09T14:27:04.71014-08:00","closed_at":"2026-01-09T14:27:04.71014-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-k9wf9","title":"Create /pr-list and /ghi-list skills for formatted tabular output","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-11T22:19:00.55636-08:00","updated_at":"2026-01-11T22:19:00.55636-08:00","created_by":"gastown/crew/max"} +{"id":"bd-ka3cu","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T12:14:25.455727-08:00","updated_at":"2026-01-13T12:14:25.526077-08:00","closed_at":"2026-01-13T12:14:25.526077-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-ka761","title":"Gate-based async molecule resume","description":"## Summary\n\nRefactor molecule execution to use gates for async coordination, eliminating spin-wait\nanti-patterns. When a polecat hits a gate step, it exits cleanly. The Deacon patrol\ndiscovers molecules with resolved gates and dispatches new polecats to continue.\n\n## Motivation\n\nThe beads-release formula has a `wait-ci` step that tells agents to poll GitHub Actions\nfor 5-10 minutes. This is wasteful and unreliable. We have gate infrastructure in beads\nbut no integration with molecule execution flow.\n\nDave ran a version bump to 0.46.0 without the release molecule - exactly because agents\ndon't know all the steps when there's no enforced workflow with proper async handling.\n\n## Design\n\n### Gate Steps in Formula Schema\n\n```toml\n[[steps]]\nid = \"wait-ci\"\ngate = \"gh:run\"\ngate_hint = \"release.yml\"\ntimeout = \"30m\"\n```\n\n### Flow\n\n1. `bd mol cook` creates gate beads for gate steps\n2. Polecat reaches gate step → checks if gate closed\n3. If open → `gt done --phase-complete --gate \u003cid\u003e` and exit\n4. Deacon patrol runs `bd gate check` → closes resolved gates\n5. Deacon discovers molecules with closed gates → slings to polecats\n6. New polecat continues from gate step\n\n### Key Principle\n\nDiscovery-based resume, not waiter-based. The molecule state IS the waiter.\nPatrol discovers reality each cycle. Nondeterministic idempotence.\n\n## Components\n\n- **Beads**: Formula parser, mol cook, mol ready --gated\n- **Gas Town**: Deacon patrol step for molecule dispatch\n- **Release formula**: Refactor to use gate step\n\n## References\n\n- Gate infrastructure: cmd/bd/gate.go\n- Current release formula: formulas/beads-release.formula.toml\n- Deacon patrol: mol-deacon-patrol.formula.toml","status":"closed","priority":1,"issue_type":"epic","created_at":"2026-01-08T20:53:10.34329-08:00","updated_at":"2026-01-08T23:04:08.671651-08:00","closed_at":"2026-01-08T23:04:08.671653-08:00","close_reason":"All 5 child tasks completed: formula parser recognizes gate fields, mol cook creates gate beads, mol ready --gated finds gate-ready molecules, Deacon patrol dispatches them, and beads-release formula refactored to use gate steps","created_by":"beads/crew/emma"} +{"id":"bd-kazt","title":"Add tests for 3-way merge scenarios","description":"Comprehensive test coverage for merge logic.\n\n**Test cases**:\n- Simple field updates (left vs right)\n- Dependency merging (union + dedup)\n- Timestamp handling (max wins)\n- Deletion detection (deleted in one, modified in other)\n- Conflict generation (incompatible changes)\n- Issue resurrection prevention (bd-hv01 regression test)\n\n**Files**:\n- `internal/merge/merge_test.go`\n- `cmd/bd/merge_test.go`","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-05T18:42:20.472275-08:00","updated_at":"2025-11-06T15:52:41.863426-08:00","closed_at":"2025-11-06T15:52:41.863426-08:00","dependencies":[{"issue_id":"bd-kazt","depends_on_id":"bd-oif6","type":"blocks","created_at":"2025-11-05T18:42:35.469582-08:00","created_by":"daemon"},{"issue_id":"bd-kazt","depends_on_id":"bd-qqvw","type":"parent-child","created_at":"2025-11-05T18:42:28.740517-08:00","created_by":"daemon"}]} {"id":"bd-kb4g","title":"TestHooksCheckGitHooks failing - version mismatch (0.23.0 vs 0.23.1)","description":"The test is checking embedded hook versions and expecting 0.23.1, but got 0.23.0. This appears to be a version consistency issue that needs investigation.\n\nTest output:\n```\nHook pre-commit version mismatch: got 0.23.0, want 0.23.1\nHook post-merge version mismatch: got 0.23.0, want 0.23.1\nHook pre-push version mismatch: got 0.23.0, want 0.23.1\n```\n\nThis is blocking the landing of GH #274 fix.","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-09T14:13:14.138537-08:00","updated_at":"2025-11-20T18:54:56.496852-05:00","closed_at":"2025-11-10T10:46:09.94181-08:00"} -{"id":"bd-kb5yu","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:31:07.510822-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:31:07.579702-08:00","closed_at":"2026-01-11T19:31:07.579702-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-kbfn","title":"Phase 2: Timer Gates (Witness integration)","description":"Implement timer gate evaluation in Witness patrol.\n\n## Behavior\n- Witness patrol includes `bd gate check --type=timer`\n- Gate metadata: timeout, created_at stored on gate issue\n- Expired gates escalate to Deacon/Overseer (not auto-close)\n\n## Implementation\n1. Add timer gate check to mol-witness-patrol.formula.toml\n2. `bd gate check --type=timer` evaluates: now \u003e created_at + timeout\n3. Expired gates: escalate via `gt escalate --type gate_timeout`\n4. Non-expired gates: skip (will check next patrol)\n\n## Acceptance Criteria\n- [ ] `bd gate check --type=timer` works\n- [ ] Witness patrol runs timer check each cycle\n- [ ] Expired gates trigger escalation\n- [ ] Gate timeout configurable per-gate","status":"closed","priority":2,"issue_type":"task","assignee":"beads/polecats/quartz","created_at":"2026-01-02T01:55:40.113565-08:00","created_by":"mayor","updated_at":"2026-01-02T12:48:35.498928-08:00","closed_at":"2026-01-02T12:48:35.498928-08:00","close_reason":"Implemented bd gate check --type=timer with escalation support","dependencies":[{"issue_id":"bd-kbfn","depends_on_id":"bd-mcva","type":"parent-child","created_at":"2026-01-02T01:55:53.92126-08:00","created_by":"mayor"}]} -{"id":"bd-kblo","title":"bd prime should mention when beads is redirected","description":"## Problem\n\nAgents running in a redirected clone don't know they're sharing beads with other clones. This can cause confusion when molecules or issues seem to 'appear' or 'disappear'.\n\n## Proposed Solution\n\nWhen `bd prime` runs and detects a redirect, include it in the output:\n\n```\nBeads: /Users/stevey/gt/beads/mayor/rig/.beads\n (redirected from crew/dave - you share issues with other clones)\n```\n\n## Why\n\nVisibility over magic. If agents can see the redirect, they can reason about it.\n\n## Related\n\n- bd where command (shows this on demand)\n- gt redirect following (ensures gt matches bd behavior)","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-27T21:15:55.026907-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-27T21:33:33.765635-08:00","closed_at":"2025-12-27T21:33:33.765635-08:00"} -{"id":"bd-kc6v","title":"Merge: quartz-mk04ckp1","description":"branch: polecat/quartz-mk04ckp1\ntarget: main\nsource_issue: quartz-mk04ckp1\nrig: beads\nagent_bead: bd-beads-polecat-quartz\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-04T11:29:18.690587-08:00","created_by":"beads/polecats/quartz","updated_at":"2026-01-05T19:45:43.98813-08:00","closed_at":"2026-01-05T19:45:43.98813-08:00","close_reason":"Branch deleted, already merged"} -{"id":"bd-kdhu7","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T00:14:40.952282-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-13T00:14:41.08879-08:00","closed_at":"2026-01-13T00:14:41.08879-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-kb5yu","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:31:07.510822-08:00","updated_at":"2026-01-11T19:31:07.579702-08:00","closed_at":"2026-01-11T19:31:07.579702-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-kbfn","title":"Phase 2: Timer Gates (Witness integration)","description":"Implement timer gate evaluation in Witness patrol.\n\n## Behavior\n- Witness patrol includes `bd gate check --type=timer`\n- Gate metadata: timeout, created_at stored on gate issue\n- Expired gates escalate to Deacon/Overseer (not auto-close)\n\n## Implementation\n1. Add timer gate check to mol-witness-patrol.formula.toml\n2. `bd gate check --type=timer` evaluates: now \u003e created_at + timeout\n3. Expired gates: escalate via `gt escalate --type gate_timeout`\n4. Non-expired gates: skip (will check next patrol)\n\n## Acceptance Criteria\n- [ ] `bd gate check --type=timer` works\n- [ ] Witness patrol runs timer check each cycle\n- [ ] Expired gates trigger escalation\n- [ ] Gate timeout configurable per-gate","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-02T01:55:40.113565-08:00","updated_at":"2026-01-02T12:48:35.498928-08:00","closed_at":"2026-01-02T12:48:35.498928-08:00","close_reason":"Implemented bd gate check --type=timer with escalation support","created_by":"mayor","dependencies":[{"issue_id":"bd-kbfn","depends_on_id":"bd-mcva","type":"parent-child","created_at":"2026-01-02T01:55:53.92126-08:00","created_by":"mayor"}]} +{"id":"bd-kblo","title":"bd prime should mention when beads is redirected","description":"## Problem\n\nAgents running in a redirected clone don't know they're sharing beads with other clones. This can cause confusion when molecules or issues seem to 'appear' or 'disappear'.\n\n## Proposed Solution\n\nWhen `bd prime` runs and detects a redirect, include it in the output:\n\n```\nBeads: /Users/stevey/gt/beads/mayor/rig/.beads\n (redirected from crew/dave - you share issues with other clones)\n```\n\n## Why\n\nVisibility over magic. If agents can see the redirect, they can reason about it.\n\n## Related\n\n- bd where command (shows this on demand)\n- gt redirect following (ensures gt matches bd behavior)","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-27T21:15:55.026907-08:00","updated_at":"2025-12-27T21:33:33.765635-08:00","closed_at":"2025-12-27T21:33:33.765635-08:00","created_by":"beads/crew/dave"} +{"id":"bd-kc6v","title":"Merge: quartz-mk04ckp1","description":"branch: polecat/quartz-mk04ckp1\ntarget: main\nsource_issue: quartz-mk04ckp1\nrig: beads\nagent_bead: bd-beads-polecat-quartz\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-04T11:29:18.690587-08:00","updated_at":"2026-01-05T19:45:43.98813-08:00","closed_at":"2026-01-05T19:45:43.98813-08:00","close_reason":"Branch deleted, already merged","created_by":"beads/polecats/quartz"} {"id":"bd-kdoh","title":"Add tests for getMultiRepoJSONLPaths() edge cases","description":"From bd-xo6b code review: Missing test coverage for getMultiRepoJSONLPaths() edge cases.\n\nCurrent test gaps:\n- No tests for empty paths in config\n- No tests for duplicate paths\n- No tests for tilde expansion\n- No tests for relative paths\n- No tests for symlinks\n- No tests for paths with spaces\n- No tests for invalid/non-existent paths\n\nTest cases needed:\n\n1. Empty path handling:\n Primary = empty, Additional = [empty]\n Expected: Should either use . as default or error gracefully\n\n2. Duplicate detection:\n Primary = ., Additional = [., ./]\n Expected: Should return unique paths only\n\n3. Path normalization:\n Primary = ~/repos/main, Additional = [../other, ./foo/../bar]\n Expected: Should expand to absolute canonical paths\n\n4. Partial failure scenarios:\n What if snapshot capture succeeds for repos 1-2 but fails on repo 3?\n Test that system does not end up in inconsistent state\n\nFiles:\n- cmd/bd/deletion_tracking_test.go (add new tests)\n\nDependencies:\nDepends on fixing getMultiRepoJSONLPaths() path normalization first.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-06T19:31:52.921241-08:00","updated_at":"2025-11-06T20:06:49.220334-08:00","closed_at":"2025-11-06T19:53:34.515411-08:00","dependencies":[{"issue_id":"bd-kdoh","depends_on_id":"bd-xo6b","type":"discovered-from","created_at":"2025-11-06T19:32:12.353459-08:00","created_by":"daemon"},{"issue_id":"bd-kdoh","depends_on_id":"bd-iye7","type":"blocks","created_at":"2025-11-06T19:32:13.688686-08:00","created_by":"daemon"}]} -{"id":"bd-ke4xd","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T20:56:52.829722-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T20:56:52.865306-08:00","closed_at":"2026-01-07T20:56:52.865306-08:00","close_reason":"auto-closed session event"} +{"id":"bd-ke4xd","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T20:56:52.829722-08:00","updated_at":"2026-01-07T20:56:52.865306-08:00","closed_at":"2026-01-07T20:56:52.865306-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-keb","title":"Add database maintenance commands section to QUICKSTART.md","description":"**Problem:**\nUsers don't discover `bd compact` or `bd cleanup` commands until their database grows large. These maintenance commands aren't mentioned in quickstart documentation.\n\nRelated to issue #349 item #4.\n\n**Current state:**\ndocs/QUICKSTART.md ends at line 217 with \"See README.md for full documentation\" but has no mention of maintenance operations.\n\n**Proposed addition:**\nAdd a \"Database Maintenance\" section after line 140 (before \"Advanced: Agent Mail\" section) covering:\n- When database grows (many closed issues)\n- How to view compaction statistics\n- How to compact old issues\n- How to delete closed issues\n- Warning about permanence\n\n**Example content:**\n```markdown\n## Database Maintenance\n\nAs your project accumulates closed issues, the database grows. Use these commands to manage size:\n\n```bash\n# View compaction statistics\nbd compact --stats\n\n# Preview compaction candidates (30+ days closed)\nbd compact --analyze --json\n\n# Apply agent-generated summary\nbd compact --apply --id bd-42 --summary summary.txt\n\n# Immediately delete closed issues (use with caution!)\nbd cleanup --force\n```\n\n**When to compact:**\n- Database file \u003e 10MB with many old closed issues\n- After major project milestones\n- Before archiving a project phase\n```\n\n**Files to modify:**\n- docs/QUICKSTART.md (add section after line 140)","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-20T20:48:40.488512-05:00","updated_at":"2025-11-20T20:59:13.439462-05:00","closed_at":"2025-11-20T20:59:13.439462-05:00"} -{"id":"bd-keob","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:31:59.245551-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:31:59.398761-08:00","closed_at":"2026-01-07T00:31:59.398761-08:00","close_reason":"auto-closed session event"} -{"id":"bd-keooj","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T08:09:04.294631-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T08:09:04.356714-08:00","closed_at":"2026-01-11T08:09:04.356714-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-kff0","title":"Integrate detect-pollution into bd doctor","description":"## Task\nMove `bd detect-pollution` → `bd doctor --check=pollution`\n\n## Current state\n- detect-pollution already shows deprecation hint pointing to doctor\n- Doctor command exists with multiple checks\n\n## Implementation\n\n### 1. Update doctor.go\n- Add pollution check to the doctor checks\n- Add `--check=pollution` flag option\n- Integrate detect-pollution logic\n\n### 2. Update detect_pollution.go\n- Mark as hidden (deprecated)\n- Forward to doctor --check=pollution\n- Keep for one release cycle\n\n### 3. Update docs\n- Remove detect-pollution from any command lists\n- Update doctor docs to include pollution check\n\n## Files to modify\n- cmd/bd/doctor.go\n- cmd/bd/detect_pollution.go\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T15:11:10.46326-08:00","created_by":"mayor","updated_at":"2025-12-27T16:04:58.471341-08:00","closed_at":"2025-12-27T16:04:58.471341-08:00"} -{"id":"bd-kgjzm","title":"Daemon should cleanup /tmp/beads-* directories on shutdown","description":"Code review follow-up from GH#1001 fix.\n\nWhen using short socket paths (/tmp/beads-{hash}/bd.sock), the daemon creates directories in /tmp but doesn't clean them up on shutdown. These empty directories accumulate over time.\n\nThe CleanupSocketDir() function exists but isn't called from Server.Stop().\n\nShould:\n1. Call CleanupSocketDir() from server shutdown path\n2. Add integration test verifying cleanup happens\n\nRelated: GH#1001, commit 3ecffa11, bd-1vc13","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-10T13:36:40.91827-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-10T13:36:40.91827-08:00"} +{"id":"bd-keob","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:31:59.245551-08:00","updated_at":"2026-01-07T00:31:59.398761-08:00","closed_at":"2026-01-07T00:31:59.398761-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-keooj","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T08:09:04.294631-08:00","updated_at":"2026-01-11T08:09:04.356714-08:00","closed_at":"2026-01-11T08:09:04.356714-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-kff0","title":"Integrate detect-pollution into bd doctor","description":"## Task\nMove `bd detect-pollution` → `bd doctor --check=pollution`\n\n## Current state\n- detect-pollution already shows deprecation hint pointing to doctor\n- Doctor command exists with multiple checks\n\n## Implementation\n\n### 1. Update doctor.go\n- Add pollution check to the doctor checks\n- Add `--check=pollution` flag option\n- Integrate detect-pollution logic\n\n### 2. Update detect_pollution.go\n- Mark as hidden (deprecated)\n- Forward to doctor --check=pollution\n- Keep for one release cycle\n\n### 3. Update docs\n- Remove detect-pollution from any command lists\n- Update doctor docs to include pollution check\n\n## Files to modify\n- cmd/bd/doctor.go\n- cmd/bd/detect_pollution.go\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T15:11:10.46326-08:00","updated_at":"2025-12-27T16:04:58.471341-08:00","closed_at":"2025-12-27T16:04:58.471341-08:00","created_by":"mayor"} +{"id":"bd-kgjzm","title":"Daemon should cleanup /tmp/beads-* directories on shutdown","description":"Code review follow-up from GH#1001 fix.\n\nWhen using short socket paths (/tmp/beads-{hash}/bd.sock), the daemon creates directories in /tmp but doesn't clean them up on shutdown. These empty directories accumulate over time.\n\nThe CleanupSocketDir() function exists but isn't called from Server.Stop().\n\nShould:\n1. Call CleanupSocketDir() from server shutdown path\n2. Add integration test verifying cleanup happens\n\nRelated: GH#1001, commit 3ecffa11, bd-1vc13","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-10T13:36:40.91827-08:00","updated_at":"2026-01-10T13:36:40.91827-08:00","created_by":"beads/crew/wolf"} {"id":"bd-khnb","title":"bd migrate --update-repo-id triggers auto-import that resurrects deleted issues","description":"**Bug:** Running `bd migrate --update-repo-id` can resurrect previously deleted issues from git history.\n\n## What Happened\n\nUser deleted 490 closed issues:\n- Deletion committed successfully (06d655a) with JSONL at 48 lines\n- Database had 48 issues after deletion\n- User ran `bd migrate --update-repo-id` to fix legacy database\n- Migration triggered daemon auto-import\n- JSONL had been restored to 538 issues (from commit 6cd3a32 - before deletion)\n- Auto-import loaded the old JSONL over the cleaned database\n- Result: 490 deleted issues resurrected\n\n## Root Cause\n\nThe auto-import logic in `cmd/bd/sync.go:130-136`:\n```go\nif isJSONLNewer(jsonlPath) {\n fmt.Println(\"→ JSONL is newer than database, importing first...\")\n if err := importFromJSONL(ctx, jsonlPath, renameOnImport); err != nil {\n```\n\nThis checks if JSONL mtime is newer than database and auto-imports. The problem:\n1. Git operations (pull, merge, checkout) can restore old JSONL files\n2. Restored file has recent mtime (time of git operation)\n3. Auto-import sees \"newer\" JSONL and imports it\n4. Old data overwrites current database state\n\n## Timeline\n\n- 19:59: Commit 6cd3a32 restored JSONL to 538 issues from d99222d\n- 20:22: Commit 3520321 (bd sync)\n- 20:23: Commit 06d655a deleted 490 issues → JSONL now 48 lines\n- 20:23: User ran `bd migrate --update-repo-id`\n- Migration completed, daemon started\n- Daemon saw JSONL (restored earlier to 538) was \"newer\" than database\n- Auto-import resurrected 490 deleted issues\n\n## Impact\n\n- **Critical data loss bug** - user deletions can be undone silently\n- Affects any workflow that uses git branches, merges, or checkouts\n- Auto-import has no safety checks against importing older data\n- Users have no warning that old data will overwrite current state\n\n## Fix Options\n\n1. **Content-based staleness** (not mtime-based)\n - Compare JSONL content hash vs database content hash\n - Only import if content actually changed\n - Prevents re-importing old data with new mtime\n\n2. **Database timestamp check**\n - Store \"last export timestamp\" in database metadata\n - Only import JSONL if it's newer than last export\n - Prevents importing old JSONL after git operations\n\n3. **User confirmation**\n - Before auto-import, show diff of what will change\n - Require confirmation for large changes (\u003e10% issues affected)\n - Safety valve for destructive imports\n\n4. **Explicit sync mode**\n - Disable auto-import entirely\n - Require explicit `bd sync` or `bd import` commands\n - Trade convenience for safety\n\n## Recommended Solution\n\nCombination of #1 and #2:\n- Add `last_export_timestamp` to database metadata\n- Check JSONL mtime \u003e last_export_timestamp before importing\n- Add content hash check as additional safety\n- Show warning if importing would delete \u003e10 issues\n\nThis preserves auto-import convenience while preventing data loss.\n\n## Files Involved\n\n- `cmd/bd/sync.go:130-136` - Auto-import logic\n- `cmd/bd/daemon_sync.go` - Daemon export/import cycle\n- `internal/autoimport/autoimport.go` - Staleness detection\n\n## Reproduction Steps\n\n1. Create and delete some issues, commit to git\n2. Checkout an earlier commit (before deletion)\n3. Checkout back to current commit\n4. JSONL file now has recent mtime but old content\n5. Run any bd command that triggers auto-import\n6. Deleted issues are resurrected","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-20T20:44:35.235807-05:00","updated_at":"2025-11-20T21:51:31.806158-05:00","closed_at":"2025-11-20T21:51:31.806158-05:00"} -{"id":"bd-khuvw","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T21:17:45.693085-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T21:17:45.72978-08:00","closed_at":"2026-01-09T21:17:45.72978-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-khysc","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T13:35:09.623532-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-10T13:35:09.659526-08:00","closed_at":"2026-01-10T13:35:09.659526-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-kjons","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:50:13.727347-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T00:50:13.762208-08:00","closed_at":"2026-01-09T00:50:13.762208-08:00","close_reason":"auto-closed session event"} -{"id":"bd-kkka","title":"Dead code: fetchAndRebaseInWorktree() marked DEPRECATED but still exists","description":"attached_args: Remove dead code fetchAndRebaseInWorktree\n\nThe function fetchAndRebaseInWorktree() in internal/syncbranch/worktree.go (lines 811-830) is marked as DEPRECATED with a comment:\n\n```go\n// fetchAndRebaseInWorktree is DEPRECATED - kept for reference only.\n// Use contentMergeRecovery instead to avoid tombstone resurrection.\n```\n\nSince contentMergeRecovery() is the replacement and is being used, this dead code should be removed to reduce maintenance burden.\n\nLocation: internal/syncbranch/worktree.go:811-830","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T15:32:21.97865-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T16:41:36.721496-08:00","closed_at":"2025-12-28T16:41:36.721496-08:00","dependencies":[{"issue_id":"bd-kkka","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.241483-08:00","created_by":"daemon"}]} +{"id":"bd-khuvw","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T21:17:45.693085-08:00","updated_at":"2026-01-09T21:17:45.72978-08:00","closed_at":"2026-01-09T21:17:45.72978-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-khysc","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T13:35:09.623532-08:00","updated_at":"2026-01-10T13:35:09.659526-08:00","closed_at":"2026-01-10T13:35:09.659526-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} +{"id":"bd-kjons","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:50:13.727347-08:00","updated_at":"2026-01-09T00:50:13.762208-08:00","closed_at":"2026-01-09T00:50:13.762208-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-kkka","title":"Dead code: fetchAndRebaseInWorktree() marked DEPRECATED but still exists","description":"attached_args: Remove dead code fetchAndRebaseInWorktree\n\nThe function fetchAndRebaseInWorktree() in internal/syncbranch/worktree.go (lines 811-830) is marked as DEPRECATED with a comment:\n\n```go\n// fetchAndRebaseInWorktree is DEPRECATED - kept for reference only.\n// Use contentMergeRecovery instead to avoid tombstone resurrection.\n```\n\nSince contentMergeRecovery() is the replacement and is being used, this dead code should be removed to reduce maintenance burden.\n\nLocation: internal/syncbranch/worktree.go:811-830","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T15:32:21.97865-08:00","updated_at":"2025-12-28T16:41:36.721496-08:00","closed_at":"2025-12-28T16:41:36.721496-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-kkka","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.241483-08:00","created_by":"daemon"}]} {"id":"bd-kla1","title":"Add bd init --contributor wizard","description":"Interactive wizard for OSS contributor setup. Guides user through: fork workflow setup, separate planning repo configuration, auto-detection of fork relationships, examples of common OSS workflows.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-05T18:04:29.958409-08:00","updated_at":"2025-11-05T19:27:33.07529-08:00","closed_at":"2025-11-05T18:53:51.267625-08:00","dependencies":[{"issue_id":"bd-kla1","depends_on_id":"bd-8rd","type":"parent-child","created_at":"2025-11-05T18:04:39.120064-08:00","created_by":"daemon"}]} -{"id":"bd-km5jm","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T04:38:38.283934-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T04:38:38.346823-08:00","closed_at":"2026-01-11T04:38:38.346823-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-kmamh","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:46:27.107428-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T18:46:27.17953-08:00","closed_at":"2026-01-11T18:46:27.17953-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-km5jm","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T04:38:38.283934-08:00","updated_at":"2026-01-11T04:38:38.346823-08:00","closed_at":"2026-01-11T04:38:38.346823-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-kmamh","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T18:46:27.107428-08:00","updated_at":"2026-01-11T18:46:27.17953-08:00","closed_at":"2026-01-11T18:46:27.17953-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-knta","title":"Deacon Patrol","description":"Mayor's daemon patrol loop for handling callbacks, health checks, and cleanup.","status":"tombstone","priority":2,"issue_type":"molecule","created_at":"2025-12-26T13:08:21.233771-08:00","updated_at":"2025-12-27T00:10:54.179341-08:00","deleted_at":"2025-12-27T00:10:54.179341-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"molecule"} -{"id":"bd-kp9y","title":"gt swarm dispatch command not working","description":"The 'gt swarm dispatch' command shown in help doesn't appear to work as expected.\n\n**Observed:**\n```\n$ gt swarm dispatch bd-784c\n[prints help text instead of dispatching]\n```\n\n**Expected:**\nShould dispatch the next ready task from the epic to an available worker.\n\n**Workaround:**\nHad to manually use 'gt sling \u003cissue\u003e \u003cpolecat\u003e' for each task dispatch.\n\n**Impact:**\n- Manual task dispatch defeats swarm automation\n- Coordinator has to track which tasks are ready and which polecats are free\n\n**Suggestion:**\nImplement or fix 'gt swarm dispatch' to:\n1. Find next unassigned task in epic\n2. Find idle polecat in swarm\n3. Sling task to polecat automatically","status":"closed","priority":3,"issue_type":"bug","created_at":"2025-12-28T16:18:10.320094-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-29T18:30:05.386394-08:00","closed_at":"2025-12-29T18:30:05.386394-08:00","close_reason":"Moved to gastown: gt-s94gq (this is a gt command, not beads)"} -{"id":"bd-kpa7c","title":"Consolidate DaemonStatusReport with DaemonHealthReport types","description":"daemon_status.go defines DaemonStatusReport and DaemonStatusAllResponse which are very similar to DaemonHealthReport and DaemonHealthResponse in daemons.go.\n\nConsider:\n1. Merging these types into a single shared type\n2. Making daemon status --all and daemon health use the same type\n3. Deciding if 'bd daemon health' should be deprecated in favor of 'bd daemon status --all'\n\nBoth have: Workspace, PID, Version, Status, Issue, VersionMismatch fields.\nDaemonStatusReport adds: Started, UptimeSeconds, AutoCommit, AutoPush, AutoPull, LocalMode, SyncInterval, DaemonMode, LogPath, IsCurrent","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-10T16:30:45.639544-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T16:30:45.639544-08:00"} +{"id":"bd-kp9y","title":"gt swarm dispatch command not working","description":"The 'gt swarm dispatch' command shown in help doesn't appear to work as expected.\n\n**Observed:**\n```\n$ gt swarm dispatch bd-784c\n[prints help text instead of dispatching]\n```\n\n**Expected:**\nShould dispatch the next ready task from the epic to an available worker.\n\n**Workaround:**\nHad to manually use 'gt sling \u003cissue\u003e \u003cpolecat\u003e' for each task dispatch.\n\n**Impact:**\n- Manual task dispatch defeats swarm automation\n- Coordinator has to track which tasks are ready and which polecats are free\n\n**Suggestion:**\nImplement or fix 'gt swarm dispatch' to:\n1. Find next unassigned task in epic\n2. Find idle polecat in swarm\n3. Sling task to polecat automatically","status":"closed","priority":3,"issue_type":"bug","created_at":"2025-12-28T16:18:10.320094-08:00","updated_at":"2025-12-29T18:30:05.386394-08:00","closed_at":"2025-12-29T18:30:05.386394-08:00","close_reason":"Moved to gastown: gt-s94gq (this is a gt command, not beads)","created_by":"beads/crew/dave"} +{"id":"bd-kpa7c","title":"Consolidate DaemonStatusReport with DaemonHealthReport types","description":"daemon_status.go defines DaemonStatusReport and DaemonStatusAllResponse which are very similar to DaemonHealthReport and DaemonHealthResponse in daemons.go.\n\nConsider:\n1. Merging these types into a single shared type\n2. Making daemon status --all and daemon health use the same type\n3. Deciding if 'bd daemon health' should be deprecated in favor of 'bd daemon status --all'\n\nBoth have: Workspace, PID, Version, Status, Issue, VersionMismatch fields.\nDaemonStatusReport adds: Started, UptimeSeconds, AutoCommit, AutoPush, AutoPull, LocalMode, SyncInterval, DaemonMode, LogPath, IsCurrent","status":"open","priority":3,"issue_type":"task","created_at":"2026-01-10T16:30:45.639544-08:00","updated_at":"2026-01-10T16:30:45.639544-08:00","created_by":"beads/crew/emma"} {"id":"bd-kptp","title":"Merge: bd-qioh","description":"branch: polecat/Errata\ntarget: main\nsource_issue: bd-qioh\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-23T13:46:08.832073-08:00","updated_at":"2025-12-23T19:12:08.350136-08:00","closed_at":"2025-12-23T19:12:08.350136-08:00"} {"id":"bd-kpy","title":"Sync race: rebase-based divergence recovery resurrects tombstones","description":"## Problem\nWhen two repos sync simultaneously, tombstones can be resurrected:\n\n1. Repo A deletes issue (creates tombstone), pushes to sync branch\n2. Repo B (with 'closed' status) exports and tries to push\n3. Push fails (non-fast-forward)\n4. fetchAndRebaseInWorktree does git rebase\n5. Git rebase applies B's 'closed' patch on top of A's 'tombstone'\n6. TEXT-level rebase doesn't invoke beads merge driver\n7. 'closed' overwrites 'tombstone' = resurrection\n\n## Root Cause\nCommitToSyncBranch uses git rebase for divergence recovery, but rebase is text-level, not content-level. The proper content-level merge in PullFromSyncBranch handles tombstones correctly, but it runs AFTER the problematic push.\n\n## Proposed Fix\nOption 1: Don't push in CommitToSyncBranch - let PullFromSyncBranch handle merge+push\nOption 2: Replace git rebase with content-level merge in fetchAndRebaseInWorktree\nOption 3: Reorder sync steps: Export → Pull/Merge → Commit → Push\n\n## Workaround Applied\nExcluded tombstones from orphan detection warnings (commit 1e97d9cc).\n\nSee also: bd-3852 (Add orphan detection migration)","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-17T23:29:33.049272-08:00","updated_at":"2025-12-24T22:41:09.184574-08:00","closed_at":"2025-12-24T22:41:09.184574-08:00"} {"id":"bd-kqo1","title":"Show pin indicator in bd list output","description":"Add a visual indicator (e.g., pin emoji or [P] marker) for pinned issues in bd list output so users can easily identify them.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-18T23:33:47.402549-08:00","updated_at":"2025-12-21T11:30:27.272768-08:00","closed_at":"2025-12-21T11:30:27.272768-08:00","dependencies":[{"issue_id":"bd-kqo1","depends_on_id":"bd-0vg","type":"blocks","created_at":"2025-12-18T23:33:56.771791-08:00","created_by":"daemon"},{"issue_id":"bd-kqo1","depends_on_id":"bd-7h5","type":"blocks","created_at":"2025-12-18T23:34:07.985271-08:00","created_by":"daemon"}]} {"id":"bd-kqw0","title":"Update local installation","description":"Run install script or brew upgrade to get new version locally: curl -fsSL .../install.sh | bash","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T13:52:33.066452-08:00","updated_at":"2025-12-21T13:53:49.656073-08:00","deleted_at":"2025-12-21T13:53:49.656073-08:00","deleted_by":"stevey","delete_reason":"manual delete","original_type":"task"} -{"id":"bd-krk92","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:47:08.718362-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T22:47:08.760395-08:00","closed_at":"2026-01-09T22:47:08.760395-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-krmjw","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:45:44.924192-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T13:45:44.961706-08:00","closed_at":"2026-01-09T13:45:44.961706-08:00","close_reason":"auto-closed session event"} +{"id":"bd-krk92","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:47:08.718362-08:00","updated_at":"2026-01-09T22:47:08.760395-08:00","closed_at":"2026-01-09T22:47:08.760395-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-krmjw","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:45:44.924192-08:00","updated_at":"2026-01-09T13:45:44.961706-08:00","closed_at":"2026-01-09T13:45:44.961706-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-ktng","title":"Optimize CLI test suite - eliminate redundant git init calls","description":"Current: Each of 13 CLI tests calls git init (31s total). Solution: Use single test binary built once in init(), skip git operations where possible, or use mock filesystem.","status":"open","priority":2,"issue_type":"task","created_at":"2025-11-04T11:23:13.660276-08:00","updated_at":"2025-11-04T11:23:13.660276-08:00","dependencies":[{"issue_id":"bd-ktng","depends_on_id":"bd-l5gq","type":"discovered-from","created_at":"2025-11-04T11:23:13.662102-08:00","created_by":"daemon"}]} -{"id":"bd-kvus","title":"bd sync fails when .beads/redirect points to different repo","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-31T11:36:35.614607-08:00","created_by":"gastown/crew/max","updated_at":"2025-12-31T13:31:39.491734-08:00","closed_at":"2025-12-31T13:31:39.491734-08:00","close_reason":"Duplicate of bd-e2q9 (fixed in same commit)","comments":[{"id":8,"issue_id":"bd-kvus","author":"gastown/crew/max","text":"## Problem\n\nWhen `.beads/redirect` points to a different repository (e.g., `../../mayor/rig/.beads`), `bd sync` fails with:\n\n```\nError: committing to sync branch: failed to check for changes in worktree: git status failed in worktree: exit status 128\n```\n\n## Root Cause\n\n`bd sync` uses `getBeadsWorktreePath()` which calculates the worktree path based on the **source** repo's `.git` directory, not the **target** repo after following the redirect.\n\nFor example:\n- Running from: `/gastown/crew/max` \n- Redirect points to: `../../mayor/rig/.beads`\n- bd looks for worktree at: `/gastown/crew/max/.git/beads-worktrees/beads-sync` (wrong)\n- Should look at: `/gastown/mayor/rig/.git/beads-worktrees/beads-sync` (correct)\n\n## Reproduction\n\n```bash\n# From a clone with redirect\ncd /Users/stevey/gt/gastown/crew/max\ncat .beads/redirect # Shows ../../mayor/rig/.beads\nbd sync # Fails with exit status 128\n\n# Workaround: run from redirect target\ncd /Users/stevey/gt/gastown/mayor/rig\nbd sync # Works\n```\n\n## Fix\n\nIn `internal/syncbranch/worktree.go`, `getBeadsWorktreePath()` should resolve the redirect first and use the target repo's git directory for worktree operations.","created_at":"2025-12-31T19:36:51Z"}]} -{"id":"bd-kvwf","title":"Merge: quartz-1767142008267","description":"branch: polecat/quartz-1767142008267\ntarget: main\nsource_issue: quartz-1767142008267\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T16:50:35.727954-08:00","created_by":"beads/polecats/quartz","updated_at":"2025-12-30T18:12:30.969887-08:00","closed_at":"2025-12-30T18:11:07.891839-08:00"} +{"id":"bd-kvus","title":"bd sync fails when .beads/redirect points to different repo","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-31T11:36:35.614607-08:00","updated_at":"2025-12-31T13:31:39.491734-08:00","closed_at":"2025-12-31T13:31:39.491734-08:00","close_reason":"Duplicate of bd-e2q9 (fixed in same commit)","created_by":"gastown/crew/max"} +{"id":"bd-kvwf","title":"Merge: quartz-1767142008267","description":"branch: polecat/quartz-1767142008267\ntarget: main\nsource_issue: quartz-1767142008267\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T16:50:35.727954-08:00","updated_at":"2025-12-30T18:12:30.969887-08:00","closed_at":"2025-12-30T18:11:07.891839-08:00","created_by":"beads/polecats/quartz"} {"id":"bd-kwjh","title":"Wisp storage: ephemeral molecule tracking","description":"Implement ephemeral molecule storage for patrol cycles.\n\n## Architecture\n\nWisps are ephemeral molecules stored in `.beads-wisps/` (gitignored).\nWhen squashed, they create digests in permanent `.beads/`.\n\n**Storage is per-rig, not per-role**: Witness and Refinery share mayor/rig's \n`.beads-wisps/` since they execute from that context.\n\n## Design Doc\nSee: gastown/mayor/rig/docs/wisp-architecture.md\n\n## Key Requirements\n\n1. **Ephemeral storage**: `.beads-wisps/` directory, gitignored\n2. **Bond with --wisp**: Creates in wisps instead of permanent\n3. **Squash**: Deletes wisp, creates digest in permanent beads\n4. **Burn**: Deletes wisp, no digest\n5. **Wisp commands**: `bd wisp list`, `bd wisp gc`\n\n## Storage Locations\n\n| Context | Location |\n|---------|----------|\n| Rig (Deacon, Witness, Refinery) | mayor/rig/.beads-wisps/ |\n| Polecat (if used) | polecats/\u003cname\u003e/.beads-wisps/ |\n\n## Children (to be created)\n- bd mol bond --wisp flag\n- .beads-wisps/ storage backend\n- bd mol squash handles wisp to permanent\n- bd wisp list command\n- bd wisp gc command (orphan cleanup)","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-21T23:34:47.188806-08:00","updated_at":"2025-12-22T01:12:53.965768-08:00","closed_at":"2025-12-22T01:12:53.965768-08:00"} {"id":"bd-kwjh.1","title":".beads-ephemeral/ storage backend","description":"Implement ephemeral storage layer for wisps.\n\n## Requirements\n- New storage location: .beads-ephemeral/issues.jsonl (sibling to .beads/)\n- Gitignored by default (add to .beads/.gitignore)\n- Same JSONL format as regular beads\n- Config option: ephemeral.directory (relative path)\n- ephemeral.enabled config flag\n\n## Storage Behavior\n- Ephemeral issues have `ephemeral: true` field\n- No sync to remote (local only)\n- No daemon tracking needed (transient)\n\n## Implementation\n- Add EphemeralStore in storage package\n- Initialize on demand when --ephemeral flag used\n- Share Issue struct, just different storage path","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-22T00:06:46.706026-08:00","updated_at":"2025-12-22T00:08:26.009875-08:00","dependencies":[{"issue_id":"bd-kwjh.1","depends_on_id":"bd-kwjh","type":"parent-child","created_at":"2025-12-22T00:06:46.706461-08:00","created_by":"daemon"}],"deleted_at":"2025-12-22T00:08:26.009875-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} {"id":"bd-kwjh.2","title":".beads-ephemeral/ storage backend","description":"Implement ephemeral storage layer for wisps.\n\n## Requirements\n- New storage location: .beads-ephemeral/issues.jsonl (sibling to .beads/)\n- Gitignored by default (add to .beads/.gitignore)\n- Same JSONL format as regular beads\n- Config option: ephemeral.directory (relative path)\n- ephemeral.enabled config flag\n\n## Storage Behavior\n- Ephemeral issues have ephemeral: true field\n- No sync to remote (local only)\n- No daemon tracking needed (transient)\n\n## Implementation\n- Add EphemeralStore in storage package\n- Initialize on demand when --ephemeral flag used\n- Share Issue struct, just different storage path","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-22T00:06:56.248345-08:00","updated_at":"2025-12-22T00:13:51.281427-08:00","closed_at":"2025-12-22T00:13:51.281427-08:00","dependencies":[{"issue_id":"bd-kwjh.2","depends_on_id":"bd-kwjh","type":"parent-child","created_at":"2025-12-22T00:06:56.248725-08:00","created_by":"daemon"}]} -{"id":"bd-kwjh.3","title":"bd mol bond --ephemeral flag","description":"Add --ephemeral flag to bd mol bond command.\n\n## Behavior\n- `bd mol bond \u003cproto\u003e --ephemeral` creates molecule in .beads-ephemeral/\n- Without flag, creates in .beads/ (current behavior)\n- Ephemeral molecules have `ephemeral: true` in their issue record\n\n## Implementation\n- Add --ephemeral bool flag to mol bond command\n- Route to EphemeralStore when flag set\n- Set ephemeral:true on created issue\n\n## Testing\n- Test mol bond creates in correct location\n- Test ephemeral flag is persisted\n- Test regular mol bond still works","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-22T00:07:26.591728-08:00","updated_at":"2025-12-22T00:17:42.50719-08:00","closed_at":"2025-12-22T00:17:42.50719-08:00","dependencies":[{"issue_id":"bd-kwjh.3","depends_on_id":"bd-kwjh","type":"parent-child","created_at":"2025-12-22T00:07:26.592102-08:00","created_by":"daemon"},{"issue_id":"bd-kwjh.3","depends_on_id":"bd-kwjh.2","type":"blocks","created_at":"2025-12-22T00:07:26.592866-08:00","created_by":"daemon"}]} +{"id":"bd-kwjh.3","title":"bd mol bond --ephemeral flag","description":"Add --ephemeral flag to bd mol bond command.\n\n## Behavior\n- `bd mol bond \u003cproto\u003e --ephemeral` creates molecule in .beads-ephemeral/\n- Without flag, creates in .beads/ (current behavior)\n- Ephemeral molecules have `ephemeral: true` in their issue record\n\n## Implementation\n- Add --ephemeral bool flag to mol bond command\n- Route to EphemeralStore when flag set\n- Set ephemeral:true on created issue\n\n## Testing\n- Test mol bond creates in correct location\n- Test ephemeral flag is persisted\n- Test regular mol bond still works","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-22T00:07:26.591728-08:00","updated_at":"2025-12-22T00:17:42.50719-08:00","closed_at":"2025-12-22T00:17:42.50719-08:00","dependencies":[{"issue_id":"bd-kwjh.3","depends_on_id":"bd-kwjh.2","type":"blocks","created_at":"2025-12-22T00:07:26.592866-08:00","created_by":"daemon"},{"issue_id":"bd-kwjh.3","depends_on_id":"bd-kwjh","type":"parent-child","created_at":"2025-12-22T00:07:26.592102-08:00","created_by":"daemon"}]} {"id":"bd-kwjh.4","title":"bd mol squash handles wisp→digest","description":"Update bd mol squash to handle ephemeral molecules.\n\n## Behavior for Ephemeral Molecules\n1. Delete wisp from .beads-ephemeral/\n2. Create digest issue in .beads/ (permanent)\n3. Digest has type:digest and squashed_from field\n\n## Digest Format\n```json\n{\n \"id\": \"\u003cparent\u003e.digest-NNN\",\n \"type\": \"digest\",\n \"title\": \"\u003cproto\u003e cycle @ \u003ctimestamp\u003e\",\n \"description\": \"\u003csummary from --summary flag\u003e\",\n \"parent\": \"\u003cproto-id\u003e\",\n \"squashed_from\": \"\u003cwisp-id\u003e\"\n}\n```\n\n## Implementation\n- Detect if molecule is ephemeral (check storage location or flag)\n- Delete from ephemeral store\n- Create digest in permanent store\n- Return digest ID\n\n## Testing\n- Test squash of ephemeral mol creates digest\n- Test wisp is deleted after squash\n- Test digest is queryable","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-22T00:07:27.685116-08:00","updated_at":"2025-12-22T00:53:55.74082-08:00","closed_at":"2025-12-22T00:53:55.74082-08:00","dependencies":[{"issue_id":"bd-kwjh.4","depends_on_id":"bd-kwjh","type":"parent-child","created_at":"2025-12-22T00:07:27.686798-08:00","created_by":"daemon"},{"issue_id":"bd-kwjh.4","depends_on_id":"bd-kwjh.2","type":"blocks","created_at":"2025-12-22T00:07:27.687773-08:00","created_by":"daemon"}]} {"id":"bd-kwjh.5","title":"bd wisp list command","description":"Add bd wisp list command to show ephemeral molecules.\n\n## Usage\n```bash\nbd wisp list # List all wisps in current context\nbd wisp list --json # JSON output\nbd wisp list --all # Include orphaned wisps\n```\n\n## Output\n- Shows in-progress ephemeral molecules\n- Columns: ID, Title, Started, Last Update, Status\n- Warns about orphaned wisps (old updated_at)\n\n## Implementation\n- New 'wisp' command group\n- Read from .beads-ephemeral/issues.jsonl\n- Filter to ephemeral:true issues","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-22T00:07:29.514936-08:00","updated_at":"2025-12-22T01:09:03.514376-08:00","closed_at":"2025-12-22T01:09:03.514376-08:00","dependencies":[{"issue_id":"bd-kwjh.5","depends_on_id":"bd-kwjh","type":"parent-child","created_at":"2025-12-22T00:07:29.515301-08:00","created_by":"daemon"},{"issue_id":"bd-kwjh.5","depends_on_id":"bd-kwjh.2","type":"blocks","created_at":"2025-12-22T00:07:29.516134-08:00","created_by":"daemon"}]} {"id":"bd-kwjh.6","title":"bd wisp gc command","description":"Add bd wisp gc command to garbage collect orphaned wisps.\n\n## Usage\n```bash\nbd wisp gc # Clean orphaned wisps\nbd wisp gc --dry-run # Show what would be cleaned\nbd wisp gc --age 1h # Custom orphan threshold (default: 1h)\n```\n\n## Orphan Detection\nA wisp is orphaned if:\n- process_id field exists AND process is dead\n- OR updated_at older than threshold AND not complete\n- AND molecule status is not complete/abandoned\n\n## Behavior\n- Delete orphaned wisps (no digest created)\n- Report count of cleaned wisps\n- --dry-run shows candidates without deleting\n\n## Implementation\n- Add 'gc' subcommand to wisp group\n- Process detection via os.FindProcess or /proc\n- Configurable age threshold","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-22T00:07:30.861155-08:00","updated_at":"2025-12-22T01:12:37.283991-08:00","closed_at":"2025-12-22T01:12:37.283991-08:00","dependencies":[{"issue_id":"bd-kwjh.6","depends_on_id":"bd-kwjh","type":"parent-child","created_at":"2025-12-22T00:07:30.862681-08:00","created_by":"daemon"},{"issue_id":"bd-kwjh.6","depends_on_id":"bd-kwjh.2","type":"blocks","created_at":"2025-12-22T00:07:30.863721-08:00","created_by":"daemon"}]} @@ -1614,97 +1612,96 @@ {"id":"bd-kyll","title":"Add daemon-side delete operation tests","description":"Follow-up epic for PR #626: Add comprehensive test coverage for delete operations at the daemon/RPC layer. PR #626 successfully added storage layer tests but identified gaps in daemon-side delete operations and RPC integration testing.\n\n## Scope\nTests needed for:\n1. deleteViaDaemon (cmd/bd/delete.go:21) - RPC client-side deletion command\n2. Daemon RPC delete handler - Server-side deletion via daemon\n3. createTombstone wrapper (cmd/bd/delete.go:335) - Tombstone creation wrapper\n4. deleteIssue wrapper (cmd/bd/delete.go:349) - Direct deletion wrapper\n\n## Coverage targets\n- Delete via RPC daemon (both success and error paths)\n- Cascade deletion through daemon\n- Force deletion through daemon\n- Dry-run mode validation\n- Tombstone creation and verification\n- Error handling and edge cases","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-18T13:08:26.039663309-07:00","updated_at":"2025-12-25T01:44:03.584007-08:00","closed_at":"2025-12-25T01:44:03.584007-08:00"} {"id":"bd-kyo","title":"Run tests and linting","description":"Run the full test suite and linter:\n\n```bash\nTMPDIR=/tmp go test -short ./...\ngolangci-lint run ./...\n```\n\nFix any failures. Linting warnings acceptable (see LINTING.md).","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-18T22:42:59.290588-08:00","updated_at":"2025-12-24T16:25:30.300951-08:00","dependencies":[{"issue_id":"bd-kyo","depends_on_id":"bd-qqc","type":"parent-child","created_at":"2025-12-18T22:43:16.370234-08:00","created_by":"daemon"},{"issue_id":"bd-kyo","depends_on_id":"bd-8hy","type":"blocks","created_at":"2025-12-18T22:43:20.570742-08:00","created_by":"daemon"}],"deleted_at":"2025-12-24T16:25:30.300951-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} {"id":"bd-kzda","title":"Implement conditional bond type for mol bond","description":"The mol bond command accepts 'conditional' as a bond type but doesn't implement any conditional-specific behavior. It currently behaves identically to 'parallel'.\n\n**Expected behavior:**\nConditional bonds should mean 'B runs only if A fails' per the help text (mol.go:318).\n\n**Implementation needed:**\n- Add failure-condition dependency handling\n- Possibly new dependency type or status-based blocking\n- Update bondProtoProto, bondProtoMol, bondMolMol to handle conditional\n\n**Alternative:**\nRemove 'conditional' from valid bond types until implemented.\n\nThis is new functionality, not a regression.","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-21T10:23:01.966367-08:00","updated_at":"2025-12-23T01:33:25.734264-08:00","closed_at":"2025-12-23T01:33:25.734264-08:00"} -{"id":"bd-kzge1","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:19:10.397407-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T01:19:10.45858-08:00","closed_at":"2026-01-12T01:19:10.45858-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-kzge1","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T01:19:10.397407-08:00","updated_at":"2026-01-12T01:19:10.45858-08:00","closed_at":"2026-01-12T01:19:10.45858-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-kzxd","title":"Sync protection mechanism resurrects deleted issues","description":"During bd sync, the 'Protecting N issue(s) from left snapshot' logic resurrects issues that are in the deletions manifest, causing UNIQUE constraint failures on subsequent syncs.\n\n## Reproduction\n1. Delete an issue with bd delete (creates tombstone + deletions.jsonl entry)\n2. Run bd sync - succeeds\n3. Run bd sync again - fails with 'UNIQUE constraint failed: issues.id'\n\n## Root Cause\nThe protection mechanism (designed to prevent data loss during 3-way merge) keeps a snapshot of issues before sync. When importing after pull, it restores issues from this snapshot even if they're in the deletions manifest.\n\n## Observed Behavior\n- bd-3pd was deleted and added to deletions.jsonl\n- First sync exports tombstone, commits, pulls, imports - succeeds\n- Second sync: protection restores bd-3pd from left snapshot\n- Import tries to create bd-3pd which already exists → UNIQUE constraint error\n\n## Expected Behavior\nIssues in deletions manifest should NOT be restored by protection mechanism.\n\n## Workaround\nManually delete from DB: sqlite3 .beads/beads.db 'DELETE FROM issues WHERE id = \"bd-xxx\"'\n\n## Files to Investigate\n- cmd/bd/sync.go - protection logic\n- cmd/bd/snapshot_manager.go - left snapshot handling\n- internal/importer/importer.go - import with protection","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-13T10:11:02.550663-08:00","updated_at":"2025-12-13T10:20:51.651662-08:00","closed_at":"2025-12-13T10:20:51.651662-08:00"} -{"id":"bd-l0fnh","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:03:46.427973-08:00","created_by":"beads/witness","updated_at":"2026-01-10T21:03:46.476341-08:00","closed_at":"2026-01-10T21:03:46.476341-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-l0fnh","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:03:46.427973-08:00","updated_at":"2026-01-10T21:03:46.476341-08:00","closed_at":"2026-01-10T21:03:46.476341-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} {"id":"bd-l0pg","title":"GH#483: Pre-commit hook should not fail when .beads exists but bd sync fails","description":"Pre-commit hook exit 1 on bd sync --flush-only failure blocks commits even when user removed beads but .beads dir reappears. Should warn not fail. See: https://github.com/steveyegge/beads/issues/483","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-14T16:32:22.759225-08:00","updated_at":"2025-12-16T01:18:02.80947-08:00","closed_at":"2025-12-16T01:09:46.931395-08:00"} {"id":"bd-l13p","title":"Add GetWorkerStatus RPC endpoint","description":"New RPC endpoint to get all workers and their current molecule/step in one call. Returns: assignee, moleculeID, moleculeTitle, currentStep, totalSteps, stepTitle, lastActivity, status. Enables activity feed TUI to show worker state without multiple round trips.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-23T16:26:36.248654-08:00","updated_at":"2025-12-23T16:40:59.772138-08:00","closed_at":"2025-12-23T16:40:59.772138-08:00"} -{"id":"bd-l1s0v","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T19:20:04.553542-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-07T19:20:04.592896-08:00","closed_at":"2026-01-07T19:20:04.592896-08:00","close_reason":"auto-closed session event"} -{"id":"bd-l2de9","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T02:24:46.584691-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-13T02:24:46.652014-08:00","closed_at":"2026-01-13T02:24:46.652014-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-l371e","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T02:44:44.271856-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-13T02:44:44.33328-08:00","closed_at":"2026-01-13T02:44:44.33328-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-l1s0v","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T19:20:04.553542-08:00","updated_at":"2026-01-07T19:20:04.592896-08:00","closed_at":"2026-01-07T19:20:04.592896-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/dave"} +{"id":"bd-l2de9","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T02:24:46.584691-08:00","updated_at":"2026-01-13T02:24:46.652014-08:00","closed_at":"2026-01-13T02:24:46.652014-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-l371e","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T02:44:44.271856-08:00","updated_at":"2026-01-13T02:44:44.33328-08:00","closed_at":"2026-01-13T02:44:44.33328-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} {"id":"bd-l4b6","title":"Add tests for bd init --team wizard","description":"Write integration tests for the team wizard:\n- Test branch detection\n- Test sync branch creation\n- Test protected branch workflow\n- Test auto-sync configuration","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-05T18:58:18.192425-08:00","updated_at":"2025-11-06T20:06:49.22056-08:00","closed_at":"2025-11-06T19:55:39.687439-08:00"} -{"id":"bd-l5esz","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:49:41.269396-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T02:49:41.335288-08:00","closed_at":"2026-01-12T02:49:41.335288-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-l5esz","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T02:49:41.269396-08:00","updated_at":"2026-01-12T02:49:41.335288-08:00","closed_at":"2026-01-12T02:49:41.335288-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-l5gq","title":"Optimize test suite performance - cut runtime by 50%+","description":"## Problem\nTest suite takes ~20.8 seconds, with 95% of time spent in just 2 tests:\n- TestHashIDs_MultiCloneConverge: 11.08s (53%)\n- TestHashIDs_IdenticalContentDedup: 8.78s (42%)\n\nBoth tests in beads_hash_multiclone_test.go perform extensive Git operations (bare repos, multiple clones, sync rounds).\n\n## Goal\nCut total test time by at least 50% (to ~10 seconds or less).\n\n## Analysis\nTests already have some optimizations:\n- --shared --depth=1 --no-tags for fast cloning\n- Disabled hooks, gc, fsync\n- Support -short flag\n\n## Impact\n- Faster development feedback loop\n- Reduced CI costs and time\n- Better developer experience","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-11-04T01:23:14.410648-08:00","updated_at":"2025-11-04T11:23:13.683213-08:00","closed_at":"2025-11-04T11:23:13.683213-08:00"} -{"id":"bd-l5iqg","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T00:18:40.59742-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-13T00:18:40.663631-08:00","closed_at":"2026-01-13T00:18:40.663631-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-l5jpu","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T00:38:11.508998-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-10T00:38:11.545391-08:00","closed_at":"2026-01-10T00:38:11.545391-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-l6veq","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T13:37:03.899972-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T13:37:03.942079-08:00","closed_at":"2026-01-10T13:37:03.942079-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-l6yk","title":"bd mol burn should work on mols, not just wisps","description":"Currently `bd mol burn` only works on wisps (Ephemeral=true):\n\n```\n$ bd mol burn bd-mol-p7i\nError: molecule bd-mol-p7i is not a wisp (Ephemeral=false)\nHint: mol burn only works with wisp molecules\n Use 'bd delete' to remove non-wisp issues\n```\n\nThe name 'burn' implies destruction - it should work on any molecule, not just wisps. When called on a regular mol, it should convert to `bd delete --cascade`.\n\n**Proposed behavior:**\n- If wisp: current behavior (delete without tombstones)\n- If mol: `bd delete \u003cid\u003e --cascade` (delete with tombstones)\n\nThis makes the metaphor consistent: burn = destroy a molecule, regardless of phase.","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-29T17:05:08.115592-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-29T17:10:19.034979-08:00","closed_at":"2025-12-29T17:10:19.034979-08:00","close_reason":"Implemented: mol burn now works on both wisps and mols"} +{"id":"bd-l5jpu","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T00:38:11.508998-08:00","updated_at":"2026-01-10T00:38:11.545391-08:00","closed_at":"2026-01-10T00:38:11.545391-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} +{"id":"bd-l6veq","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T13:37:03.899972-08:00","updated_at":"2026-01-10T13:37:03.942079-08:00","closed_at":"2026-01-10T13:37:03.942079-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-l6yk","title":"bd mol burn should work on mols, not just wisps","description":"Currently `bd mol burn` only works on wisps (Ephemeral=true):\n\n```\n$ bd mol burn bd-mol-p7i\nError: molecule bd-mol-p7i is not a wisp (Ephemeral=false)\nHint: mol burn only works with wisp molecules\n Use 'bd delete' to remove non-wisp issues\n```\n\nThe name 'burn' implies destruction - it should work on any molecule, not just wisps. When called on a regular mol, it should convert to `bd delete --cascade`.\n\n**Proposed behavior:**\n- If wisp: current behavior (delete without tombstones)\n- If mol: `bd delete \u003cid\u003e --cascade` (delete with tombstones)\n\nThis makes the metaphor consistent: burn = destroy a molecule, regardless of phase.","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-29T17:05:08.115592-08:00","updated_at":"2025-12-29T17:10:19.034979-08:00","closed_at":"2025-12-29T17:10:19.034979-08:00","close_reason":"Implemented: mol burn now works on both wisps and mols","created_by":"beads/crew/emma"} {"id":"bd-l7u","title":"Duplicate DefaultRetentionDays constants","description":"## Problem\n\nThere are now two constants for the same value:\n\n1. `deletions.DefaultRetentionDays = 7` in `internal/deletions/deletions.go:184`\n2. `configfile.DefaultDeletionsRetentionDays = 7` in `internal/configfile/configfile.go:102`\n\n## Impact\n- DRY violation\n- Risk of values getting out of sync\n- Confusing which one to use\n\n## Fix\nRemove the constant from `deletions` package and have it import from `configfile`, or create a shared constants package.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-25T12:49:38.356211-08:00","updated_at":"2025-11-25T15:15:21.964842-08:00","closed_at":"2025-11-25T15:15:21.964842-08:00"} {"id":"bd-l7y3","title":"bd mol bond --pour should set Wisp=false","description":"In mol_bond.go bondProtoMol(), opts.Wisp is hardcoded to true (line 392). This ignores the --pour flag. When user specifies --pour to make an issue persistent, the Wisp field should be false so the issue is not marked for bulk deletion.\n\nCurrent behavior:\n- --pour flag correctly selects regular storage (not wisp storage)\n- But opts.Wisp=true means spawned issues are still marked for cleanup when closed\n\nExpected behavior:\n- --pour should set Wisp=false so persistent issues are not auto-cleaned\n\nComparison with mol_spawn.go (line 204):\n wisp := !pour // Correctly respects --pour flag\n result, err := spawnMolecule(ctx, store, subgraph, vars, assignee, actor, wisp)\n\nFix: Pass pour flag to bondProtoMol and set opts.Wisp = !pour","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-23T15:15:00.562346-08:00","updated_at":"2025-12-23T15:25:22.53144-08:00","closed_at":"2025-12-23T15:25:22.53144-08:00"} -{"id":"bd-l8xyv","title":"Review and merge PR #970: fix worktree path detection","description":"dispatched_by: beads/crew/emma\n\n## Task\nReview and merge PR #970 from shendsaliaga.\n\n**PR**: https://github.com/steveyegge/beads/pull/970\n\n## What it does\n- Fixes bd migrate sync failing in git worktree environments\n- Uses GetGitCommonDir() instead of GetGitDir() for worktree creation path\n- Uses LastIndex instead of Index to find /worktrees/ in user paths\n\n## Easy-win criteria met\n- Bug fix with clear reproduction (bare repo + worktree)\n- Small diff (26 additions, 8 deletions)\n- Well-documented fix\n- Low risk edge case fix\n\n## Instructions\n1. Clone/fetch the PR: gh pr checkout 970 --repo steveyegge/beads\n2. Run tests: go test ./cmd/bd/... ./internal/git/... ./internal/syncbranch/...\n3. Review the diff: gh pr diff 970 --repo steveyegge/beads\n4. If tests pass and code looks good, approve and merge\n5. Close this bead when done","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/giles","created_at":"2026-01-09T10:59:59.983259-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T11:02:16.831368-08:00","closed_at":"2026-01-09T11:02:16.831368-08:00","close_reason":"PR #970 reviewed, approved, and merged. Fixes worktree path detection for bare repo setups."} +{"id":"bd-l8xyv","title":"Review and merge PR #970: fix worktree path detection","description":"dispatched_by: beads/crew/emma\n\n## Task\nReview and merge PR #970 from shendsaliaga.\n\n**PR**: https://github.com/steveyegge/beads/pull/970\n\n## What it does\n- Fixes bd migrate sync failing in git worktree environments\n- Uses GetGitCommonDir() instead of GetGitDir() for worktree creation path\n- Uses LastIndex instead of Index to find /worktrees/ in user paths\n\n## Easy-win criteria met\n- Bug fix with clear reproduction (bare repo + worktree)\n- Small diff (26 additions, 8 deletions)\n- Well-documented fix\n- Low risk edge case fix\n\n## Instructions\n1. Clone/fetch the PR: gh pr checkout 970 --repo steveyegge/beads\n2. Run tests: go test ./cmd/bd/... ./internal/git/... ./internal/syncbranch/...\n3. Review the diff: gh pr diff 970 --repo steveyegge/beads\n4. If tests pass and code looks good, approve and merge\n5. Close this bead when done","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-09T10:59:59.983259-08:00","updated_at":"2026-01-09T11:02:16.831368-08:00","closed_at":"2026-01-09T11:02:16.831368-08:00","close_reason":"PR #970 reviewed, approved, and merged. Fixes worktree path detection for bare repo setups.","created_by":"beads/crew/emma"} {"id":"bd-l954","title":"Performance Testing Framework","description":"Add comprehensive performance testing for beads focusing on optimization guidance and validating 10K+ database scale. Uses standard Go tooling, follows existing patterns, minimal complexity.\n\nComponents:\n- Benchmark suite for critical operations at 10K-20K scale\n- Fixture generator for realistic test data (epic hierarchies, cross-links)\n- User diagnostics via bd doctor --perf\n- Always-on profiling integration\n\nGoals:\n- Identify bottlenecks for optimization work\n- Validate performance at 10K+ issue scale\n- Enable users to collect diagnostics for bug reports\n- Support both SQLite and JSONL import paths","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-11-13T22:22:11.203467-08:00","updated_at":"2025-12-09T18:38:37.696367072-05:00","closed_at":"2025-11-28T23:07:57.285628-08:00"} {"id":"bd-la9d","title":"Blocking issue","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-22T14:57:44.560338491-05:00","updated_at":"2025-11-22T14:57:44.560338491-05:00","closed_at":"2025-11-07T21:55:09.43148-08:00"} {"id":"bd-ldb0","title":"Rename ephemeral → wisp throughout codebase","description":"## The Change\n\nRename 'ephemeral' to 'wisp' throughout the beads codebase.\n\n## Why\n\n**Ephemeral** is:\n- 4 syllables (too long)\n- Greek/academic (doesn't match bond/burn/squash)\n- Overused in tech (K8s, networking, storage)\n- Passive/descriptive\n\n**Wisp** is:\n- 1 syllable (matches bond/burn/squash)\n- Evocative - you can SEE a wisp\n- Steam engine metaphor - Gas Town is engines, steam wisps rise and dissipate\n- Will-o'-the-wisp - transient spirits that guide then vanish\n- Unique - nobody else uses it\n\n## The Steam Engine Metaphor\n\n```\nEngine does work → generates steam\nSteam wisps rise → execution trace\nSteam condenses → digest (distillate)\nSteam dissipates → cleaned up (burned)\n```\n\n## Full Vocabulary\n\n| Term | Meaning |\n|------|---------|\n| bond | Attach proto to work (creates wisps) |\n| wisp | Temporary execution step |\n| squash | Condense wisps into digest |\n| burn | Destroy wisps without record |\n| digest | Permanent condensed record |\n\n## Changes Required\n\n### Code\n- `Ephemeral bool` → `Wisp bool` in types/issue.go\n- `--ephemeral` flag → remove (wisp is default)\n- `--persistent` flag → keep as opt-out\n- `bd cleanup --ephemeral` → `bd cleanup --wisps`\n- Update all references in mol_*.go files\n\n### Docs\n- Update all documentation\n- Update CLAUDE.md examples\n- Update CLI help text\n\n### Database Migration\n- Add migration to rename field (or keep internal name, just change API)\n\n## Example Usage After\n\n```bash\nbd mol bond mol-polecat-work # Creates wisps (default)\nbd mol bond mol-xxx --persistent # Creates permanent issues\nbd mol squash bd-xxx # Condenses wisps → digest\nbd cleanup --wisps # Clean old wisps\nbd list --wisps # Show wisp issues\n```","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-21T14:44:41.576068-08:00","updated_at":"2025-12-22T00:32:31.153738-08:00","closed_at":"2025-12-22T00:32:31.153738-08:00"} -{"id":"bd-lejq","title":"Release: minor version bump","description":"Bump minor version for beads release. Update version in relevant files, update CHANGELOG if present, ensure tests pass, tag release.","status":"closed","priority":1,"issue_type":"task","assignee":"beads/polecats/obsidian","created_at":"2026-01-02T00:56:08.161483-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-02T01:08:35.81288-08:00","closed_at":"2026-01-02T01:08:35.81288-08:00","close_reason":"Version 0.43.0 released"} +{"id":"bd-lejq","title":"Release: minor version bump","description":"Bump minor version for beads release. Update version in relevant files, update CHANGELOG if present, ensure tests pass, tag release.","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-02T00:56:08.161483-08:00","updated_at":"2026-01-02T01:08:35.81288-08:00","closed_at":"2026-01-02T01:08:35.81288-08:00","close_reason":"Version 0.43.0 released","created_by":"beads/crew/dave"} {"id":"bd-lfak","title":"bd preflight: PR readiness checks for contributors","description":"## Vision\n\nEncode project-specific institutional knowledge into executable checks. CONTRIBUTING.md is documentation that's read once and forgotten; `bd preflight` is documentation that runs at exactly the right moment.\n\n## Problem Statement\n\nContributors face a \"last mile\" problem - they do the work but stumble on project-specific gotchas at PR time:\n- Nix vendorHash gets stale when go.sum changes\n- Beads artifacts leak into PRs (see bd-umbf for namespace solution)\n- Version mismatches between version.go and default.nix\n- Tests/lint not run locally before pushing\n- Other project-specific checks that only surface when CI fails\n\nThese are too obscure to remember, exist in docs nobody reads end-to-end, and waste CI round-trips.\n\n## Why beads?\n\nBeads already has a foothold in the contributor workflow. It knows:\n- Git state (staged files, branch, dirty status)\n- Project structure\n- The specific issue being worked on\n- Project-specific configuration\n\n## Proposed Interface\n\n### Tier 1: Checklist Mode (v1)\n\n $ bd preflight\n PR Readiness Checklist:\n\n [ ] Tests pass: go test -short ./...\n [ ] Lint passes: golangci-lint run ./...\n [ ] No beads pollution: check .beads/issues.jsonl diff\n [ ] Nix hash current: go.sum unchanged or vendorHash updated\n [ ] Version sync: version.go matches default.nix\n\n Run 'bd preflight --check' to validate automatically.\n\n### Tier 2: Check Mode (v2)\n\n $ bd preflight --check\n ✓ Tests pass\n ✓ Lint passes\n ⚠ Beads pollution: 3 issues in diff - are these project issues or personal?\n ✗ Nix hash stale: go.sum changed, vendorHash needs update\n Fix: sha256-KRR6dXzsSw8OmEHGBEVDBOoIgfoZ2p0541T9ayjGHlI=\n ✓ Version sync\n\n 1 error, 1 warning. Run 'bd preflight --fix' to auto-fix where possible.\n\n### Tier 3: Fix Mode (v3)\n\n $ bd preflight --fix\n ✓ Updated vendorHash in default.nix\n ⚠ Cannot auto-fix beads pollution - manual review needed\n\n## Checks to Implement\n\n| Check | Description | Auto-fixable |\n|-------|-------------|--------------|\n| tests | Run go test -short ./... | No |\n| lint | Run golangci-lint | Partial (gofmt) |\n| beads-pollution | Detect personal issues in diff | No (see bd-umbf) |\n| nix-hash | Detect stale vendorHash | Yes (if nix available) |\n| version-sync | version.go matches default.nix | Yes |\n| no-debug | No TODO/FIXME/console.log | Warn only |\n| clean-stage | No unintended files staged | Warn only |\n\n## Future: Configuration\n\nMake checks configurable per-project via .beads/preflight.yaml:\n\n preflight:\n checks:\n - name: tests\n run: go test -short ./...\n required: true\n - name: no-secrets\n pattern: \"**/*.env\"\n staged: deny\n - name: custom-check\n run: ./scripts/validate.sh\n\nThis lets any project using beads define their own preflight checks.\n\n## Implementation Phases\n\n### Phase 1: Static Checklist\n- Implement bd preflight with hardcoded checklist for beads\n- No execution, just prints what to check\n- Update CONTRIBUTING.md to reference it\n\n### Phase 2: Automated Checks\n- Implement bd preflight --check\n- Run tests, lint, detect stale hashes\n- Clear pass/fail/warn output\n\n### Phase 3: Auto-fix\n- Implement bd preflight --fix\n- Fix vendorHash, version sync\n- Integrate with bd-umbf solution for pollution\n\n### Phase 4: Configuration\n- .beads/preflight.yaml support\n- Make it useful for other projects using beads\n- Plugin/hook system for custom checks\n\n## Dependencies\n\n- bd-umbf: Namespace isolation for beads pollution (blocking for full solution)\n\n## Success Metrics\n\n- Fewer CI failures on first PR push\n- Reduced \"fix nix hash\" commits\n- Contributors report preflight caught issues before CI","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-13T18:01:39.587078-08:00","updated_at":"2025-12-31T00:09:22.400043-08:00","closed_at":"2025-12-31T00:09:22.400043-08:00","close_reason":"All subtasks complete: bd preflight --check now runs tests, lint, nix-hash, and version-sync checks","dependencies":[{"issue_id":"bd-lfak","depends_on_id":"bd-umbf","type":"blocks","created_at":"2025-12-13T18:01:46.059901-08:00","created_by":"daemon"}]} -{"id":"bd-lfak.1","title":"Scaffold bd preflight command with checklist output","status":"closed","priority":2,"issue_type":"task","assignee":"beads/polecats/amber","created_at":"2025-12-30T18:06:29.297254-08:00","created_by":"mayor","updated_at":"2025-12-30T18:11:15.884294-08:00","closed_at":"2025-12-30T18:11:15.884294-08:00","close_reason":"Implemented static checklist output. Command now shows PR readiness checks. --check and --fix flags documented for future phases.","dependencies":[{"issue_id":"bd-lfak.1","depends_on_id":"bd-lfak","type":"parent-child","created_at":"2025-12-30T18:06:29.297783-08:00","created_by":"mayor"}]} -{"id":"bd-lfak.2","title":"Implement --check flag with test runner","description":"## Summary\nImplement the `--check` flag to run `go test -short ./...` and report results.\n\n## Implementation Details\n\n### Location\nFile: `cmd/bd/preflight.go`\n\n### Changes Required\n\n1. **Add check execution logic** in `runPreflight()`:\n```go\nif check {\n runChecks(cmd) // New function\n return\n}\n```\n\n2. **Implement test runner**:\n```go\nfunc runTestCheck() CheckResult {\n cmd := exec.Command(\"go\", \"test\", \"-short\", \"./...\")\n output, err := cmd.CombinedOutput()\n return CheckResult{\n Name: \"tests\",\n Passed: err == nil,\n Output: string(output),\n Command: \"go test -short ./...\",\n }\n}\n```\n\n3. **Define CheckResult struct**:\n```go\ntype CheckResult struct {\n Name string\n Passed bool\n Output string\n Command string\n}\n```\n\n4. **Output format**:\n```\n$ bd preflight --check\n✓ Tests pass\n Command: go test -short ./...\n \n# On failure:\n✗ Tests fail\n Command: go test -short ./...\n Output: [truncated test output]\n```\n\n### Testing\n- Add tests in `cmd/bd/preflight_test.go`\n- Test with passing tests (this repo)\n- Test with intentionally failing test (mock or temp file)\n\n### Acceptance Criteria\n- [x] `--check` flag runs tests (not just prints message)\n- [x] Clear pass/fail output with ✓/✗ symbols\n- [x] Shows command being run\n- [x] Shows output on failure (truncated if long)\n- [x] Exits with non-zero code if tests fail\n- [x] Works with `--json` flag for programmatic use","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-30T18:06:30.419315-08:00","created_by":"mayor","updated_at":"2026-01-04T15:22:07.768601-08:00","closed_at":"2025-12-30T23:33:04.567543-08:00","close_reason":"Fixed test/implementation mismatch - tests now align with actual preflight.go","dependencies":[{"issue_id":"bd-lfak.2","depends_on_id":"bd-lfak","type":"parent-child","created_at":"2025-12-30T18:06:30.419875-08:00","created_by":"mayor"},{"issue_id":"bd-lfak.2","depends_on_id":"bd-lfak.1","type":"blocks","created_at":"2025-12-30T18:06:48.582603-08:00","created_by":"mayor"}]} -{"id":"bd-lfak.3","title":"Implement lint check (golangci-lint)","description":"## Summary\nAdd lint check using golangci-lint to the preflight --check mode.\n\n## Implementation Details\n\n### Location\nFile: `cmd/bd/preflight.go`\n\n### Changes Required\n\n1. **Implement lint checker**:\n```go\nfunc runLintCheck() CheckResult {\n // First check if golangci-lint is available\n if _, err := exec.LookPath(\"golangci-lint\"); err != nil {\n return CheckResult{\n Name: \"lint\",\n Passed: false,\n Output: \"golangci-lint not found in PATH\",\n Command: \"golangci-lint run ./...\",\n Skipped: true,\n }\n }\n \n cmd := exec.Command(\"golangci-lint\", \"run\", \"./...\")\n output, err := cmd.CombinedOutput()\n return CheckResult{\n Name: \"lint\",\n Passed: err == nil,\n Output: string(output),\n Command: \"golangci-lint run ./...\",\n }\n}\n```\n\n2. **Add Skipped field to CheckResult** (if not already added by bd-lfak.2):\n```go\ntype CheckResult struct {\n Name string\n Passed bool\n Output string\n Command string\n Skipped bool // Tool not available\n}\n```\n\n3. **Output format**:\n```\n$ bd preflight --check\n✓ Lint passes\n Command: golangci-lint run ./...\n\n# When tool missing:\n⚠ Lint skipped (golangci-lint not found)\n Install: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest\n\n# On failure:\n✗ Lint fails\n Command: golangci-lint run ./...\n Output: [lint errors]\n```\n\n### Dependencies\n- Depends on bd-lfak.2 for CheckResult struct and runChecks() framework\n\n### Testing\n- Test with clean lint (this repo should pass)\n- Test with golangci-lint not in PATH (mock or temp PATH)\n- Test with lint errors (intentional bad code)\n\n### Notes\n- This repo has baseline warnings documented in docs/LINTING.md\n- golangci-lint respects .golangci.yml config if present\n\n### Acceptance Criteria\n- [x] Runs golangci-lint when --check flag is used\n- [x] Gracefully handles missing golangci-lint binary\n- [x] Shows clear pass/fail/skip output\n- [x] Shows lint errors on failure\n- [x] Works with --json flag","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-30T18:06:31.445431-08:00","created_by":"mayor","updated_at":"2025-12-31T00:03:07.142467-08:00","closed_at":"2025-12-31T00:03:07.142467-08:00","close_reason":"Implemented lint check with golangci-lint, graceful skip when tool not available","dependencies":[{"issue_id":"bd-lfak.3","depends_on_id":"bd-lfak","type":"parent-child","created_at":"2025-12-30T18:06:31.447094-08:00","created_by":"mayor"},{"issue_id":"bd-lfak.3","depends_on_id":"bd-lfak.1","type":"blocks","created_at":"2025-12-30T18:06:48.602793-08:00","created_by":"mayor"},{"issue_id":"bd-lfak.3","depends_on_id":"bd-lfak.2","type":"blocks","created_at":"2025-12-30T19:31:30.950646-08:00","created_by":"beads/crew/emma"}]} -{"id":"bd-lfak.4","title":"Implement nix-hash staleness detection","description":"## Summary\nDetect when go.sum has changed but vendorHash in default.nix may be stale.\n\n## Implementation Details\n\n### Location\nFile: `cmd/bd/preflight.go`\n\n### Detection Logic\n\n**Tier 1 (Simple - implement this):**\nCheck if go.sum has uncommitted changes (staged or unstaged). If so, warn that vendorHash might need updating.\n\n```go\nfunc runNixHashCheck() CheckResult {\n // Check if go.sum has changes\n cmd := exec.Command(\"git\", \"diff\", \"--name-only\", \"HEAD\", \"--\", \"go.sum\")\n output, _ := cmd.Output()\n \n // Also check staged changes\n stagedCmd := exec.Command(\"git\", \"diff\", \"--name-only\", \"--cached\", \"--\", \"go.sum\")\n stagedOutput, _ := stagedCmd.Output()\n \n hasChanges := len(output) \u003e 0 || len(stagedOutput) \u003e 0\n \n if hasChanges {\n return CheckResult{\n Name: \"nix-hash\",\n Passed: false,\n Output: \"go.sum has changes - vendorHash in default.nix may need updating\",\n Command: \"git diff HEAD -- go.sum\",\n Warning: true, // Not a hard failure, just a warning\n }\n }\n \n return CheckResult{\n Name: \"nix-hash\",\n Passed: true,\n Output: \"go.sum unchanged\",\n Command: \"git diff HEAD -- go.sum\",\n }\n}\n```\n\n**Tier 2 (Future - auto-fix):**\nIf nix is available, compute the correct vendorHash:\n```bash\nnix-prefetch-url --unpack \"https://...\"\n# or use nix build with --print-out-paths\n```\n\n### Key Files\n- `go.sum` - Go module checksums\n- `default.nix` - Contains vendorHash on line 12\n\n### Output Format\n```\n$ bd preflight --check\n✓ Nix hash current (go.sum unchanged)\n\n# When go.sum changed:\n⚠ Nix hash may be stale\n go.sum has uncommitted changes\n Hint: If you modified dependencies, run nix build to get new vendorHash\n \n# When nix available (future):\n✗ Nix hash stale\n Expected: sha256-KRR6dXzsSw8OmEHGBEVDBOoIgfoZ2p0541T9ayjGHlI=\n Current: sha256-ovG0EWQFtifHF5leEQTFvTjGvc+yiAjpAaqaV0OklgE=\n Fix: bd preflight --fix\n```\n\n### Add Warning field to CheckResult\n```go\ntype CheckResult struct {\n Name string\n Passed bool\n Output string\n Command string\n Skipped bool\n Warning bool // Yellow ⚠ instead of red ✗\n}\n```\n\n### Testing\n- Test with clean go.sum (no changes)\n- Test with modified go.sum (stage a fake change, then reset)\n- Test output format\n\n### Acceptance Criteria\n- [x] Detects when go.sum has uncommitted changes\n- [x] Shows as warning (⚠) not error (✗)\n- [x] Provides helpful hint about vendorHash\n- [x] Works with --json flag\n- [x] Does not require nix to be installed (just git)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-30T18:06:32.318167-08:00","created_by":"mayor","updated_at":"2025-12-31T00:06:02.045812-08:00","closed_at":"2025-12-31T00:06:02.045812-08:00","close_reason":"Implemented nix-hash staleness detection with warning state for go.sum changes","dependencies":[{"issue_id":"bd-lfak.4","depends_on_id":"bd-lfak","type":"parent-child","created_at":"2025-12-30T18:06:32.31998-08:00","created_by":"mayor"},{"issue_id":"bd-lfak.4","depends_on_id":"bd-lfak.1","type":"blocks","created_at":"2025-12-30T18:06:48.621655-08:00","created_by":"mayor"},{"issue_id":"bd-lfak.4","depends_on_id":"bd-lfak.2","type":"blocks","created_at":"2025-12-30T19:31:30.9704-08:00","created_by":"beads/crew/emma"}]} -{"id":"bd-lfak.5","title":"Implement version-sync check (version.go vs default.nix)","description":"## Summary\nCheck that version in `cmd/bd/version.go` matches version in `default.nix`.\n\n## Current State (as of writing)\n- version.go: Version = \"0.41.0\"\n- default.nix: version = \"0.37.0\"\n- **These are already out of sync!** This check would catch this.\n\n## Implementation Details\n\n### Location\nFile: `cmd/bd/preflight.go`\n\n### Key Files\n- `cmd/bd/version.go` line 17: `Version = \"0.41.0\"`\n- `default.nix` line 4: `version = \"0.37.0\";`\n\n### Implementation\n\n```go\nfunc runVersionSyncCheck() CheckResult {\n // Read version.go\n versionGoContent, err := os.ReadFile(\"cmd/bd/version.go\")\n if err != nil {\n return CheckResult{\n Name: \"version-sync\",\n Passed: false,\n Output: fmt.Sprintf(\"Cannot read cmd/bd/version.go: %v\", err),\n Skipped: true,\n }\n }\n \n // Extract version from version.go\n // Pattern: Version = \"X.Y.Z\"\n versionGoRe := regexp.MustCompile(`Version\\s*=\\s*\"([^\"]+)\"`)\n versionGoMatch := versionGoRe.FindSubmatch(versionGoContent)\n if versionGoMatch == nil {\n return CheckResult{\n Name: \"version-sync\",\n Passed: false,\n Output: \"Cannot parse version from version.go\",\n Skipped: true,\n }\n }\n goVersion := string(versionGoMatch[1])\n \n // Read default.nix\n nixContent, err := os.ReadFile(\"default.nix\")\n if err != nil {\n return CheckResult{\n Name: \"version-sync\",\n Passed: true, // No nix file = no sync needed\n Output: \"default.nix not found (skipping nix version check)\",\n Skipped: true,\n }\n }\n \n // Extract version from default.nix\n // Pattern: version = \"X.Y.Z\";\n nixRe := regexp.MustCompile(`version\\s*=\\s*\"([^\"]+)\"`)\n nixMatch := nixRe.FindSubmatch(nixContent)\n if nixMatch == nil {\n return CheckResult{\n Name: \"version-sync\",\n Passed: false,\n Output: \"Cannot parse version from default.nix\",\n Skipped: true,\n }\n }\n nixVersion := string(nixMatch[1])\n \n if goVersion != nixVersion {\n return CheckResult{\n Name: \"version-sync\",\n Passed: false,\n Output: fmt.Sprintf(\"Version mismatch: version.go=%s, default.nix=%s\", goVersion, nixVersion),\n Command: \"Compare cmd/bd/version.go and default.nix\",\n }\n }\n \n return CheckResult{\n Name: \"version-sync\",\n Passed: true,\n Output: fmt.Sprintf(\"Versions match: %s\", goVersion),\n Command: \"Compare cmd/bd/version.go and default.nix\",\n }\n}\n```\n\n### Output Format\n```\n$ bd preflight --check\n✓ Version sync (0.41.0)\n\n# On mismatch:\n✗ Version mismatch\n version.go: 0.41.0\n default.nix: 0.37.0\n Fix: Update default.nix to match version.go\n```\n\n### Future: Auto-fix\nFor --fix mode, update default.nix automatically:\n```go\n// Replace version line in default.nix\nnewContent := nixRe.ReplaceAll(nixContent, \n []byte(fmt.Sprintf(`version = \"%s\"`, goVersion)))\nos.WriteFile(\"default.nix\", newContent, 0644)\n```\n\n### Testing\n- Test with matching versions\n- Test with mismatched versions (current state!)\n- Test with missing files\n\n### Acceptance Criteria\n- [x] Reads version from both files\n- [x] Compares and reports mismatch\n- [x] Shows both versions clearly on mismatch\n- [x] Works when default.nix is missing (skip gracefully)\n- [x] Works with --json flag","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-30T18:06:33.380378-08:00","created_by":"mayor","updated_at":"2025-12-31T00:08:48.691805-08:00","closed_at":"2025-12-31T00:08:48.691805-08:00","close_reason":"Implemented version sync check comparing version.go and default.nix; also fixed existing mismatch","dependencies":[{"issue_id":"bd-lfak.5","depends_on_id":"bd-lfak","type":"parent-child","created_at":"2025-12-30T18:06:33.382134-08:00","created_by":"mayor"},{"issue_id":"bd-lfak.5","depends_on_id":"bd-lfak.1","type":"blocks","created_at":"2025-12-30T18:06:48.64101-08:00","created_by":"mayor"},{"issue_id":"bd-lfak.5","depends_on_id":"bd-lfak.2","type":"blocks","created_at":"2025-12-30T19:31:30.989707-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-lfak.1","title":"Scaffold bd preflight command with checklist output","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-30T18:06:29.297254-08:00","updated_at":"2025-12-30T18:11:15.884294-08:00","closed_at":"2025-12-30T18:11:15.884294-08:00","close_reason":"Implemented static checklist output. Command now shows PR readiness checks. --check and --fix flags documented for future phases.","created_by":"mayor","dependencies":[{"issue_id":"bd-lfak.1","depends_on_id":"bd-lfak","type":"parent-child","created_at":"2025-12-30T18:06:29.297783-08:00","created_by":"mayor"}]} +{"id":"bd-lfak.2","title":"Implement --check flag with test runner","description":"## Summary\nImplement the `--check` flag to run `go test -short ./...` and report results.\n\n## Implementation Details\n\n### Location\nFile: `cmd/bd/preflight.go`\n\n### Changes Required\n\n1. **Add check execution logic** in `runPreflight()`:\n```go\nif check {\n runChecks(cmd) // New function\n return\n}\n```\n\n2. **Implement test runner**:\n```go\nfunc runTestCheck() CheckResult {\n cmd := exec.Command(\"go\", \"test\", \"-short\", \"./...\")\n output, err := cmd.CombinedOutput()\n return CheckResult{\n Name: \"tests\",\n Passed: err == nil,\n Output: string(output),\n Command: \"go test -short ./...\",\n }\n}\n```\n\n3. **Define CheckResult struct**:\n```go\ntype CheckResult struct {\n Name string\n Passed bool\n Output string\n Command string\n}\n```\n\n4. **Output format**:\n```\n$ bd preflight --check\n✓ Tests pass\n Command: go test -short ./...\n \n# On failure:\n✗ Tests fail\n Command: go test -short ./...\n Output: [truncated test output]\n```\n\n### Testing\n- Add tests in `cmd/bd/preflight_test.go`\n- Test with passing tests (this repo)\n- Test with intentionally failing test (mock or temp file)\n\n### Acceptance Criteria\n- [x] `--check` flag runs tests (not just prints message)\n- [x] Clear pass/fail output with ✓/✗ symbols\n- [x] Shows command being run\n- [x] Shows output on failure (truncated if long)\n- [x] Exits with non-zero code if tests fail\n- [x] Works with `--json` flag for programmatic use","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-30T18:06:30.419315-08:00","updated_at":"2026-01-04T15:22:07.768601-08:00","closed_at":"2025-12-30T23:33:04.567543-08:00","close_reason":"Fixed test/implementation mismatch - tests now align with actual preflight.go","created_by":"mayor","dependencies":[{"issue_id":"bd-lfak.2","depends_on_id":"bd-lfak.1","type":"blocks","created_at":"2025-12-30T18:06:48.582603-08:00","created_by":"mayor"},{"issue_id":"bd-lfak.2","depends_on_id":"bd-lfak","type":"parent-child","created_at":"2025-12-30T18:06:30.419875-08:00","created_by":"mayor"}]} +{"id":"bd-lfak.3","title":"Implement lint check (golangci-lint)","description":"## Summary\nAdd lint check using golangci-lint to the preflight --check mode.\n\n## Implementation Details\n\n### Location\nFile: `cmd/bd/preflight.go`\n\n### Changes Required\n\n1. **Implement lint checker**:\n```go\nfunc runLintCheck() CheckResult {\n // First check if golangci-lint is available\n if _, err := exec.LookPath(\"golangci-lint\"); err != nil {\n return CheckResult{\n Name: \"lint\",\n Passed: false,\n Output: \"golangci-lint not found in PATH\",\n Command: \"golangci-lint run ./...\",\n Skipped: true,\n }\n }\n \n cmd := exec.Command(\"golangci-lint\", \"run\", \"./...\")\n output, err := cmd.CombinedOutput()\n return CheckResult{\n Name: \"lint\",\n Passed: err == nil,\n Output: string(output),\n Command: \"golangci-lint run ./...\",\n }\n}\n```\n\n2. **Add Skipped field to CheckResult** (if not already added by bd-lfak.2):\n```go\ntype CheckResult struct {\n Name string\n Passed bool\n Output string\n Command string\n Skipped bool // Tool not available\n}\n```\n\n3. **Output format**:\n```\n$ bd preflight --check\n✓ Lint passes\n Command: golangci-lint run ./...\n\n# When tool missing:\n⚠ Lint skipped (golangci-lint not found)\n Install: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest\n\n# On failure:\n✗ Lint fails\n Command: golangci-lint run ./...\n Output: [lint errors]\n```\n\n### Dependencies\n- Depends on bd-lfak.2 for CheckResult struct and runChecks() framework\n\n### Testing\n- Test with clean lint (this repo should pass)\n- Test with golangci-lint not in PATH (mock or temp PATH)\n- Test with lint errors (intentional bad code)\n\n### Notes\n- This repo has baseline warnings documented in docs/LINTING.md\n- golangci-lint respects .golangci.yml config if present\n\n### Acceptance Criteria\n- [x] Runs golangci-lint when --check flag is used\n- [x] Gracefully handles missing golangci-lint binary\n- [x] Shows clear pass/fail/skip output\n- [x] Shows lint errors on failure\n- [x] Works with --json flag","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-30T18:06:31.445431-08:00","updated_at":"2025-12-31T00:03:07.142467-08:00","closed_at":"2025-12-31T00:03:07.142467-08:00","close_reason":"Implemented lint check with golangci-lint, graceful skip when tool not available","created_by":"mayor","dependencies":[{"issue_id":"bd-lfak.3","depends_on_id":"bd-lfak.2","type":"blocks","created_at":"2025-12-30T19:31:30.950646-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-lfak.3","depends_on_id":"bd-lfak","type":"parent-child","created_at":"2025-12-30T18:06:31.447094-08:00","created_by":"mayor"},{"issue_id":"bd-lfak.3","depends_on_id":"bd-lfak.1","type":"blocks","created_at":"2025-12-30T18:06:48.602793-08:00","created_by":"mayor"}]} +{"id":"bd-lfak.4","title":"Implement nix-hash staleness detection","description":"## Summary\nDetect when go.sum has changed but vendorHash in default.nix may be stale.\n\n## Implementation Details\n\n### Location\nFile: `cmd/bd/preflight.go`\n\n### Detection Logic\n\n**Tier 1 (Simple - implement this):**\nCheck if go.sum has uncommitted changes (staged or unstaged). If so, warn that vendorHash might need updating.\n\n```go\nfunc runNixHashCheck() CheckResult {\n // Check if go.sum has changes\n cmd := exec.Command(\"git\", \"diff\", \"--name-only\", \"HEAD\", \"--\", \"go.sum\")\n output, _ := cmd.Output()\n \n // Also check staged changes\n stagedCmd := exec.Command(\"git\", \"diff\", \"--name-only\", \"--cached\", \"--\", \"go.sum\")\n stagedOutput, _ := stagedCmd.Output()\n \n hasChanges := len(output) \u003e 0 || len(stagedOutput) \u003e 0\n \n if hasChanges {\n return CheckResult{\n Name: \"nix-hash\",\n Passed: false,\n Output: \"go.sum has changes - vendorHash in default.nix may need updating\",\n Command: \"git diff HEAD -- go.sum\",\n Warning: true, // Not a hard failure, just a warning\n }\n }\n \n return CheckResult{\n Name: \"nix-hash\",\n Passed: true,\n Output: \"go.sum unchanged\",\n Command: \"git diff HEAD -- go.sum\",\n }\n}\n```\n\n**Tier 2 (Future - auto-fix):**\nIf nix is available, compute the correct vendorHash:\n```bash\nnix-prefetch-url --unpack \"https://...\"\n# or use nix build with --print-out-paths\n```\n\n### Key Files\n- `go.sum` - Go module checksums\n- `default.nix` - Contains vendorHash on line 12\n\n### Output Format\n```\n$ bd preflight --check\n✓ Nix hash current (go.sum unchanged)\n\n# When go.sum changed:\n⚠ Nix hash may be stale\n go.sum has uncommitted changes\n Hint: If you modified dependencies, run nix build to get new vendorHash\n \n# When nix available (future):\n✗ Nix hash stale\n Expected: sha256-KRR6dXzsSw8OmEHGBEVDBOoIgfoZ2p0541T9ayjGHlI=\n Current: sha256-ovG0EWQFtifHF5leEQTFvTjGvc+yiAjpAaqaV0OklgE=\n Fix: bd preflight --fix\n```\n\n### Add Warning field to CheckResult\n```go\ntype CheckResult struct {\n Name string\n Passed bool\n Output string\n Command string\n Skipped bool\n Warning bool // Yellow ⚠ instead of red ✗\n}\n```\n\n### Testing\n- Test with clean go.sum (no changes)\n- Test with modified go.sum (stage a fake change, then reset)\n- Test output format\n\n### Acceptance Criteria\n- [x] Detects when go.sum has uncommitted changes\n- [x] Shows as warning (⚠) not error (✗)\n- [x] Provides helpful hint about vendorHash\n- [x] Works with --json flag\n- [x] Does not require nix to be installed (just git)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-30T18:06:32.318167-08:00","updated_at":"2025-12-31T00:06:02.045812-08:00","closed_at":"2025-12-31T00:06:02.045812-08:00","close_reason":"Implemented nix-hash staleness detection with warning state for go.sum changes","created_by":"mayor","dependencies":[{"issue_id":"bd-lfak.4","depends_on_id":"bd-lfak","type":"parent-child","created_at":"2025-12-30T18:06:32.31998-08:00","created_by":"mayor"},{"issue_id":"bd-lfak.4","depends_on_id":"bd-lfak.1","type":"blocks","created_at":"2025-12-30T18:06:48.621655-08:00","created_by":"mayor"},{"issue_id":"bd-lfak.4","depends_on_id":"bd-lfak.2","type":"blocks","created_at":"2025-12-30T19:31:30.9704-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-lfak.5","title":"Implement version-sync check (version.go vs default.nix)","description":"## Summary\nCheck that version in `cmd/bd/version.go` matches version in `default.nix`.\n\n## Current State (as of writing)\n- version.go: Version = \"0.41.0\"\n- default.nix: version = \"0.37.0\"\n- **These are already out of sync!** This check would catch this.\n\n## Implementation Details\n\n### Location\nFile: `cmd/bd/preflight.go`\n\n### Key Files\n- `cmd/bd/version.go` line 17: `Version = \"0.41.0\"`\n- `default.nix` line 4: `version = \"0.37.0\";`\n\n### Implementation\n\n```go\nfunc runVersionSyncCheck() CheckResult {\n // Read version.go\n versionGoContent, err := os.ReadFile(\"cmd/bd/version.go\")\n if err != nil {\n return CheckResult{\n Name: \"version-sync\",\n Passed: false,\n Output: fmt.Sprintf(\"Cannot read cmd/bd/version.go: %v\", err),\n Skipped: true,\n }\n }\n \n // Extract version from version.go\n // Pattern: Version = \"X.Y.Z\"\n versionGoRe := regexp.MustCompile(`Version\\s*=\\s*\"([^\"]+)\"`)\n versionGoMatch := versionGoRe.FindSubmatch(versionGoContent)\n if versionGoMatch == nil {\n return CheckResult{\n Name: \"version-sync\",\n Passed: false,\n Output: \"Cannot parse version from version.go\",\n Skipped: true,\n }\n }\n goVersion := string(versionGoMatch[1])\n \n // Read default.nix\n nixContent, err := os.ReadFile(\"default.nix\")\n if err != nil {\n return CheckResult{\n Name: \"version-sync\",\n Passed: true, // No nix file = no sync needed\n Output: \"default.nix not found (skipping nix version check)\",\n Skipped: true,\n }\n }\n \n // Extract version from default.nix\n // Pattern: version = \"X.Y.Z\";\n nixRe := regexp.MustCompile(`version\\s*=\\s*\"([^\"]+)\"`)\n nixMatch := nixRe.FindSubmatch(nixContent)\n if nixMatch == nil {\n return CheckResult{\n Name: \"version-sync\",\n Passed: false,\n Output: \"Cannot parse version from default.nix\",\n Skipped: true,\n }\n }\n nixVersion := string(nixMatch[1])\n \n if goVersion != nixVersion {\n return CheckResult{\n Name: \"version-sync\",\n Passed: false,\n Output: fmt.Sprintf(\"Version mismatch: version.go=%s, default.nix=%s\", goVersion, nixVersion),\n Command: \"Compare cmd/bd/version.go and default.nix\",\n }\n }\n \n return CheckResult{\n Name: \"version-sync\",\n Passed: true,\n Output: fmt.Sprintf(\"Versions match: %s\", goVersion),\n Command: \"Compare cmd/bd/version.go and default.nix\",\n }\n}\n```\n\n### Output Format\n```\n$ bd preflight --check\n✓ Version sync (0.41.0)\n\n# On mismatch:\n✗ Version mismatch\n version.go: 0.41.0\n default.nix: 0.37.0\n Fix: Update default.nix to match version.go\n```\n\n### Future: Auto-fix\nFor --fix mode, update default.nix automatically:\n```go\n// Replace version line in default.nix\nnewContent := nixRe.ReplaceAll(nixContent, \n []byte(fmt.Sprintf(`version = \"%s\"`, goVersion)))\nos.WriteFile(\"default.nix\", newContent, 0644)\n```\n\n### Testing\n- Test with matching versions\n- Test with mismatched versions (current state!)\n- Test with missing files\n\n### Acceptance Criteria\n- [x] Reads version from both files\n- [x] Compares and reports mismatch\n- [x] Shows both versions clearly on mismatch\n- [x] Works when default.nix is missing (skip gracefully)\n- [x] Works with --json flag","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-30T18:06:33.380378-08:00","updated_at":"2025-12-31T00:08:48.691805-08:00","closed_at":"2025-12-31T00:08:48.691805-08:00","close_reason":"Implemented version sync check comparing version.go and default.nix; also fixed existing mismatch","created_by":"mayor","dependencies":[{"issue_id":"bd-lfak.5","depends_on_id":"bd-lfak.2","type":"blocks","created_at":"2025-12-30T19:31:30.989707-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-lfak.5","depends_on_id":"bd-lfak","type":"parent-child","created_at":"2025-12-30T18:06:33.382134-08:00","created_by":"mayor"},{"issue_id":"bd-lfak.5","depends_on_id":"bd-lfak.1","type":"blocks","created_at":"2025-12-30T18:06:48.64101-08:00","created_by":"mayor"}]} {"id":"bd-lfiu","title":"bd dep add: Auto-resolve cross-rig IDs using routes.jsonl","description":"Currently, adding a dependency to an issue in another rig requires verbose external reference syntax:\n\n```bash\n# This fails - can't resolve bd-* from gastown context\nbd dep add gt-xyz bd-abc\n\n# This works but is verbose\nbd dep add gt-xyz external:beads:bd-abc\n```\n\nThe town-level routing (~/gt/.beads/routes.jsonl) already knows how to map prefixes to rigs:\n```json\n{\"prefix\": \"gt-\", \"path\": \"gastown/mayor/rig\"}\n{\"prefix\": \"bd-\", \"path\": \"beads/mayor/rig\"}\n```\n\nEnhancement: When `bd dep add` encounters an ID with a foreign prefix, it should:\n1. Check routes.jsonl for the prefix mapping\n2. Auto-resolve to external:\u003cproject\u003e:\u003cid\u003e internally\n3. Allow the simpler `bd dep add gt-xyz bd-abc` syntax\n\nThis would make cross-rig dependencies much more ergonomic.","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-26T20:20:40.814713-08:00","updated_at":"2025-12-26T23:47:52.82107-08:00","closed_at":"2025-12-26T23:47:52.82107-08:00"} -{"id":"bd-lfna4","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:41:37.461567-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T23:41:37.511561-08:00","closed_at":"2026-01-12T23:41:37.511561-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-lg5jh","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T06:17:15.171368-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T06:17:15.232753-08:00","closed_at":"2026-01-11T06:17:15.232753-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-lg7ae","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T21:22:41.139729-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-08T21:22:41.177559-08:00","closed_at":"2026-01-08T21:22:41.177559-08:00","close_reason":"auto-closed session event"} -{"id":"bd-lhalq","title":"bd mol ready --gated: find molecules awaiting gate resume","description":"New command/flag to discover molecules ready to resume after gate closure:\n\n```bash\nbd mol ready --gated\n```\n\nLogic:\n1. Find molecules with status=in_progress\n2. For each, find the current step (first incomplete step)\n3. If current step has a gate dependency, check if gate bead is closed\n4. If closed AND no polecat has this molecule hooked → ready to resume\n\nOutput: List of molecule IDs ready for dispatch.\n\nThis enables discovery-based resume without explicit waiter tracking.\n\nParent: bd-ka761","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-08T20:53:38.64397-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T21:20:11.608776-08:00","closed_at":"2026-01-08T21:20:11.608776-08:00","close_reason":"Implemented: bd ready --gated and bd mol ready commands find molecules where gate beads have closed. 5 tests verify: no gates, closed gate, open gate, hooked molecules filtered, multiple gates.","dependencies":[{"issue_id":"bd-lhalq","depends_on_id":"bd-ka761","type":"parent-child","created_at":"2026-01-08T20:54:04.055704-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-lhalq","depends_on_id":"bd-w7wex","type":"blocks","created_at":"2026-01-08T20:54:11.654977-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-lfna4","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T23:41:37.461567-08:00","updated_at":"2026-01-12T23:41:37.511561-08:00","closed_at":"2026-01-12T23:41:37.511561-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-lg5jh","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T06:17:15.171368-08:00","updated_at":"2026-01-11T06:17:15.232753-08:00","closed_at":"2026-01-11T06:17:15.232753-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-lg7ae","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T21:22:41.139729-08:00","updated_at":"2026-01-08T21:22:41.177559-08:00","closed_at":"2026-01-08T21:22:41.177559-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/dave"} +{"id":"bd-lhalq","title":"bd mol ready --gated: find molecules awaiting gate resume","description":"New command/flag to discover molecules ready to resume after gate closure:\n\n```bash\nbd mol ready --gated\n```\n\nLogic:\n1. Find molecules with status=in_progress\n2. For each, find the current step (first incomplete step)\n3. If current step has a gate dependency, check if gate bead is closed\n4. If closed AND no polecat has this molecule hooked → ready to resume\n\nOutput: List of molecule IDs ready for dispatch.\n\nThis enables discovery-based resume without explicit waiter tracking.\n\nParent: bd-ka761","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-08T20:53:38.64397-08:00","updated_at":"2026-01-08T21:20:11.608776-08:00","closed_at":"2026-01-08T21:20:11.608776-08:00","close_reason":"Implemented: bd ready --gated and bd mol ready commands find molecules where gate beads have closed. 5 tests verify: no gates, closed gate, open gate, hooked molecules filtered, multiple gates.","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-lhalq","depends_on_id":"bd-ka761","type":"parent-child","created_at":"2026-01-08T20:54:04.055704-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-lhalq","depends_on_id":"bd-w7wex","type":"blocks","created_at":"2026-01-08T20:54:11.654977-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-likt","title":"Add daemon RPC support for gate commands","description":"Add daemon RPC support for gate commands.\n\n## Current State\nGate commands require --no-daemon flag because they use direct SQLite access:\n- Gate create needs to write await_type, await_id, timeout_ns, waiters fields\n- Gate wait needs to update waiters JSON array\n- Daemon RPC doesnt have methods for these operations\n\n## Implementation\n\n### 1. Add RPC methods to internal/rpc/protocol.go\n\n```go\n// Gate operations\ntype GateCreateArgs struct {\n Title string \\`json:\"title\"\\`\n AwaitType string \\`json:\"await_type\"\\`\n AwaitID string \\`json:\"await_id\"\\`\n Timeout time.Duration \\`json:\"timeout\"\\`\n Waiters []string \\`json:\"waiters\"\\`\n}\n\ntype GateCreateResult struct {\n Issue *types.Issue \\`json:\"issue\"\\`\n}\n\ntype GateListArgs struct {\n All bool \\`json:\"all\"\\` // Include closed gates\n}\n\ntype GateListResult struct {\n Gates []*types.Issue \\`json:\"gates\"\\`\n}\n\ntype GateWaitArgs struct {\n GateID string \\`json:\"gate_id\"\\`\n Waiters []string \\`json:\"waiters\"\\` // Additional waiters to add\n}\n\ntype GateWaitResult struct {\n Gate *types.Issue \\`json:\"gate\"\\`\n AddedCount int \\`json:\"added_count\"\\`\n}\n```\n\n### 2. Add handler methods to internal/daemon/rpc_handler.go\n\n```go\nfunc (h *RPCHandler) GateCreate(ctx context.Context, args *rpc.GateCreateArgs) (*rpc.GateCreateResult, error) {\n now := time.Now()\n gate := \u0026types.Issue{\n Title: args.Title,\n IssueType: types.TypeGate,\n Status: types.StatusOpen,\n Priority: 1,\n Assignee: \"deacon/\",\n Wisp: true,\n AwaitType: args.AwaitType,\n AwaitID: args.AwaitID,\n Timeout: args.Timeout,\n Waiters: args.Waiters,\n CreatedAt: now,\n UpdatedAt: now,\n }\n gate.ContentHash = gate.ComputeContentHash()\n \n if err := h.store.CreateIssue(ctx, gate, h.actor); err != nil {\n return nil, err\n }\n \n return \u0026rpc.GateCreateResult{Issue: gate}, nil\n}\n\nfunc (h *RPCHandler) GateList(ctx context.Context, args *rpc.GateListArgs) (*rpc.GateListResult, error) {\n gateType := types.TypeGate\n filter := types.IssueFilter{IssueType: \u0026gateType}\n if !args.All {\n openStatus := types.StatusOpen\n filter.Status = \u0026openStatus\n }\n \n gates, err := h.store.SearchIssues(ctx, \"\", filter)\n if err != nil {\n return nil, err\n }\n \n return \u0026rpc.GateListResult{Gates: gates}, nil\n}\n\nfunc (h *RPCHandler) GateWait(ctx context.Context, args *rpc.GateWaitArgs) (*rpc.GateWaitResult, error) {\n gate, err := h.store.GetIssue(ctx, args.GateID)\n if err != nil {\n return nil, err\n }\n if gate.IssueType != types.TypeGate {\n return nil, fmt.Errorf(\"%s is not a gate\", args.GateID)\n }\n \n // Merge waiters (dedupe)\n waiterSet := make(map[string]bool)\n for _, w := range gate.Waiters {\n waiterSet[w] = true\n }\n added := 0\n for _, w := range args.Waiters {\n if !waiterSet[w] {\n gate.Waiters = append(gate.Waiters, w)\n waiterSet[w] = true\n added++\n }\n }\n \n if added \u003e 0 {\n // Update via store\n updates := map[string]interface{}{\n \"waiters\": gate.Waiters,\n }\n if err := h.store.UpdateIssue(ctx, args.GateID, updates, h.actor); err != nil {\n return nil, err\n }\n }\n \n return \u0026rpc.GateWaitResult{Gate: gate, AddedCount: added}, nil\n}\n```\n\n### 3. Register methods in daemon\n\nIn internal/daemon/server.go, register the new methods:\n```go\nrpc.RegisterMethod(\"gate.create\", h.GateCreate)\nrpc.RegisterMethod(\"gate.list\", h.GateList)\nrpc.RegisterMethod(\"gate.wait\", h.GateWait)\n```\n\n### 4. Add client methods to internal/rpc/client.go\n\n```go\nfunc (c *Client) GateCreate(ctx context.Context, args *GateCreateArgs) (*GateCreateResult, error) {\n var result GateCreateResult\n err := c.Call(ctx, \"gate.create\", args, \u0026result)\n return \u0026result, err\n}\n\nfunc (c *Client) GateList(ctx context.Context, args *GateListArgs) (*GateListResult, error) {\n var result GateListResult\n err := c.Call(ctx, \"gate.list\", args, \u0026result)\n return \u0026result, err\n}\n\nfunc (c *Client) GateWait(ctx context.Context, args *GateWaitArgs) (*GateWaitResult, error) {\n var result GateWaitResult\n err := c.Call(ctx, \"gate.wait\", args, \u0026result)\n return \u0026result, err\n}\n```\n\n### 5. Update cmd/bd/gate.go to use daemon\n\n```go\n// In gateCreateCmd Run:\nif daemonClient != nil {\n result, err := daemonClient.GateCreate(ctx, \u0026rpc.GateCreateArgs{\n Title: title,\n AwaitType: awaitType,\n AwaitID: awaitID,\n Timeout: timeout,\n Waiters: notifyAddrs,\n })\n if err != nil {\n FatalError(\"gate create: %v\", err)\n }\n gate = result.Issue\n} else {\n // Existing direct store code\n}\n```\n\n## Files to Modify\n\n1. **internal/rpc/protocol.go** - Add Gate*Args/Result types\n2. **internal/daemon/rpc_handler.go** - Add handler methods\n3. **internal/daemon/server.go** - Register methods\n4. **internal/rpc/client.go** - Add client methods\n5. **cmd/bd/gate.go** - Use daemon client when available\n\n## Testing\n\n```bash\n# Start daemon\nbd daemon start\n\n# Test via daemon (should work without --no-daemon)\nbd gate create --await timer:5m --notify beads/dave\nbd gate list\nbd gate wait \u003cid\u003e --notify beads/alice\n\n# Verify daemon handled it\nbd daemons logs . | grep gate\n```\n\n## Success Criteria\n- All gate commands work without --no-daemon\n- Same behavior in daemon vs direct mode\n- Waiters array updates correctly via RPC\n- Tests pass for RPC gate operations","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-23T12:13:25.778412-08:00","updated_at":"2025-12-23T13:45:58.398604-08:00","closed_at":"2025-12-23T13:45:58.398604-08:00","dependencies":[{"issue_id":"bd-likt","depends_on_id":"bd-udsi","type":"discovered-from","created_at":"2025-12-23T12:13:36.174822-08:00","created_by":"daemon"},{"issue_id":"bd-likt","depends_on_id":"bd-iz5t","type":"parent-child","created_at":"2025-12-23T12:44:07.891992-08:00","created_by":"daemon"}]} -{"id":"bd-liyku","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:26:48.867647-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T01:26:48.933792-08:00","closed_at":"2026-01-12T01:26:48.933792-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-ljp1","title":"Merge: onyx-mjw4oxsi","description":"branch: polecat/onyx-mjw4oxsi\ntarget: main\nsource_issue: onyx-mjw4oxsi\nrig: beads\nagent_bead: gt-beads-polecat-onyx","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-01T16:25:15.980399-08:00","created_by":"beads/polecats/onyx","updated_at":"2026-01-01T16:28:05.728605-08:00","closed_at":"2026-01-01T16:28:05.728605-08:00","close_reason":"Branch dropped - changes already upstream (but didn't fix the actual test isolation issue)"} +{"id":"bd-liyku","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T01:26:48.867647-08:00","updated_at":"2026-01-12T01:26:48.933792-08:00","closed_at":"2026-01-12T01:26:48.933792-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-ljp1","title":"Merge: onyx-mjw4oxsi","description":"branch: polecat/onyx-mjw4oxsi\ntarget: main\nsource_issue: onyx-mjw4oxsi\nrig: beads\nagent_bead: gt-beads-polecat-onyx","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-01T16:25:15.980399-08:00","updated_at":"2026-01-01T16:28:05.728605-08:00","closed_at":"2026-01-01T16:28:05.728605-08:00","close_reason":"Branch dropped - changes already upstream (but didn't fix the actual test isolation issue)","created_by":"beads/polecats/onyx"} {"id":"bd-lk39","title":"Add composite index (issue_id, event_type) on events table","description":"GetCloseReason and GetCloseReasonsForIssues filter by both issue_id and event_type.\n\n**Query (queries.go:355-358):**\n```sql\nSELECT comment FROM events\nWHERE issue_id = ? AND event_type = ?\nORDER BY created_at DESC LIMIT 1\n```\n\n**Problem:** Currently uses idx_events_issue but must filter event_type in memory.\n\n**Solution:** Add migration:\n```sql\nCREATE INDEX IF NOT EXISTS idx_events_issue_type ON events(issue_id, event_type);\n```\n\n**Priority:** Low - events table is typically small relative to issues.","status":"closed","priority":4,"issue_type":"task","created_at":"2025-12-22T22:58:54.070587-08:00","updated_at":"2025-12-22T23:15:13.841988-08:00","closed_at":"2025-12-22T23:15:13.841988-08:00","dependencies":[{"issue_id":"bd-lk39","depends_on_id":"bd-h0we","type":"discovered-from","created_at":"2025-12-22T22:58:54.071286-08:00","created_by":"daemon"}]} -{"id":"bd-ll2n","title":"Move relate/unrelate under dep command","description":"Make relate and unrelate subcommands of dep (dep relate, dep unrelate). They're dependency operations and belong there.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T12:59:10.379321-08:00","created_by":"stevey","updated_at":"2025-12-28T13:04:02.520266-08:00","closed_at":"2025-12-28T13:04:02.520266-08:00"} +{"id":"bd-ll2n","title":"Move relate/unrelate under dep command","description":"Make relate and unrelate subcommands of dep (dep relate, dep unrelate). They're dependency operations and belong there.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T12:59:10.379321-08:00","updated_at":"2025-12-28T13:04:02.520266-08:00","closed_at":"2025-12-28T13:04:02.520266-08:00","created_by":"stevey"} {"id":"bd-llfl","title":"Improve test coverage for cmd/bd CLI (26.2% → 50%)","description":"The main CLI package (cmd/bd) has only 26.2% test coverage. CLI commands should have at least 50% coverage to ensure reliability.\n\nKey areas with low/no coverage:\n- daemon_autostart.go (multiple 0% functions)\n- compact.go (several 0% functions)\n- Various command handlers\n\nCurrent coverage: 26.2%\nTarget coverage: 50%","notes":"## Progress Update (2025-12-30 - Session 2)\n\n### Tests Added\nAdded 479 lines of new tests across 4 files:\n- cmd/bd/utils_unit_test.go (214 lines) - NEW\n - TestTruncateString, TestPluralize, TestFormatTimeAgo\n - TestContainsLabel, TestGetContributorsSorted, TestExtractIDSuffix \n - TestTruncate, TestTruncateDescription\n - TestShowCleanupDeprecationHint, TestClearAutoFlushState\n\n- cmd/bd/hooks_test.go (117 lines added)\n - TestFormatHookWarnings, TestIsRebaseInProgress, TestHasBeadsJSONL\n\n- cmd/bd/list_test.go (140 lines added)\n - TestFormatIssueLong, TestFormatIssueCompact\n\n- cmd/bd/version_tracking_test.go (8 lines)\n - Fixed flaky tests by setting BEADS_DIR env var\n\n### Coverage Results\n- Before: 21.6%\n- After: 22.0%\n- Delta: +0.4%\n\n### Remaining Work\nCoverage is still at 22% vs target 50%. The remaining 78% involves:\n1. Daemon/RPC operations (runDaemonLoop, tryAutoStartDaemon, etc.)\n2. Command handlers requiring database/daemon setup\n3. Git operations (runPreCommitHook, runPostMergeHook, etc.)\n\nTo reach 50%, would need:\n- Integration tests with mocked daemon (use -tags=integration)\n- scripttest tests for command handlers\n- More database-dependent tests\n\nCommit: 8c7d94d3","status":"hooked","priority":2,"issue_type":"task","created_at":"2025-12-13T20:43:03.123341-08:00","updated_at":"2025-12-30T18:12:30.981243-08:00"} {"id":"bd-lln","title":"Add tests for performFlush error handling in FlushManager","description":"Test coverage gap identified by automated analysis (vc-217).\n\n**Original Issue:** [deleted:bd-da96-baseline-lint]\n\nIn cmd/bd/flush_manager.go:269, the performFlush method is flagged by unparam as always returning nil, indicating the error return value is never used.\n\nAdd tests to determine:\n- Whether performFlush can actually return errors in failure scenarios\n- If error return is needed, add tests for error cases (disk full, permission denied, etc.)\n- If error return is not needed, refactor to remove unused return value\n- Test full export vs incremental export error handling\n\nThis ensures proper error handling in the flush mechanism and removes dead code if the return value is unnecessary.\n\n_This issue was automatically created by AI test coverage analysis._","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-21T10:25:33.533653-05:00","updated_at":"2025-11-21T21:29:36.985464294-05:00","closed_at":"2025-11-21T19:31:21.876949-05:00","dependencies":[{"issue_id":"bd-lln","depends_on_id":"bd-da96-baseline-lint","type":"discovered-from","created_at":"2025-11-21T10:25:33.534913-05:00","created_by":"ai-supervisor"}]} -{"id":"bd-lln0a","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T00:49:44.265564-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T00:49:44.329246-08:00","closed_at":"2026-01-13T00:49:44.329246-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-lln0a","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T00:49:44.265564-08:00","updated_at":"2026-01-13T00:49:44.329246-08:00","closed_at":"2026-01-13T00:49:44.329246-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-lm2q","title":"Fix `bd sync` failure due to daemon auto-export timestamp skew","description":"`bd sync` fails with false-positive \"JSONL is newer than database\" after daemon auto-export.\nRoot Cause: Daemon exports local changes to JSONL, updating its timestamp. `bd sync` sees JSONL.mtime \u003e DB.mtime and assumes external changes, blocking export.\nProposed Fixes:\n1. `bd sync` auto-imports if timestamp matches but content differs (or just auto-imports).\n2. Content-based comparison instead of timestamp only.\n","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-20T18:56:16.876685-05:00","updated_at":"2025-11-20T22:02:51.641709-05:00","closed_at":"2025-11-20T20:54:39.512574-05:00"} -{"id":"bd-lmbzt","title":"Refinery Patrol","description":"Merge queue processor patrol loop with verification gates.","status":"closed","priority":2,"issue_type":"molecule","created_at":"2026-01-07T21:42:19.764814-08:00","created_by":"gastown/crew/george","updated_at":"2026-01-09T21:15:43.004822-08:00","closed_at":"2026-01-09T21:15:43.004822-08:00","close_reason":"Orphaned patrol molecules"} -{"id":"bd-lmqhe","title":"restoreBeadsDirFromBranch fails when beads directory is redirected","description":"When a repo has a .beads/redirect file pointing to a shared beads directory (e.g., crew repos redirecting to ../../mayor/rig/.beads), the restoreBeadsDirFromBranch function in sync.go fails because it runs git checkout from the local repo but with a path outside that repo. Non-fatal (sync completes), but should skip restore when redirected since the beads dir is in a different repo anyway. Fix: check GetRedirectInfo().IsRedirected and return early.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-09T14:16:11.168549-08:00","created_by":"gastown/crew/george","updated_at":"2026-01-10T22:12:20.463489-08:00","closed_at":"2026-01-10T22:12:20.463489-08:00","close_reason":"fixed"} -{"id":"bd-ln9mm","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:31:46.699091-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T16:31:46.739719-08:00","closed_at":"2026-01-10T16:31:46.739719-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-lmbzt","title":"Refinery Patrol","description":"Merge queue processor patrol loop with verification gates.","status":"closed","priority":2,"issue_type":"molecule","created_at":"2026-01-07T21:42:19.764814-08:00","updated_at":"2026-01-09T21:15:43.004822-08:00","closed_at":"2026-01-09T21:15:43.004822-08:00","close_reason":"Orphaned patrol molecules","created_by":"gastown/crew/george"} +{"id":"bd-lmqhe","title":"restoreBeadsDirFromBranch fails when beads directory is redirected","description":"When a repo has a .beads/redirect file pointing to a shared beads directory (e.g., crew repos redirecting to ../../mayor/rig/.beads), the restoreBeadsDirFromBranch function in sync.go fails because it runs git checkout from the local repo but with a path outside that repo. Non-fatal (sync completes), but should skip restore when redirected since the beads dir is in a different repo anyway. Fix: check GetRedirectInfo().IsRedirected and return early.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-09T14:16:11.168549-08:00","updated_at":"2026-01-10T22:12:20.463489-08:00","closed_at":"2026-01-10T22:12:20.463489-08:00","close_reason":"fixed","created_by":"gastown/crew/george"} +{"id":"bd-ln9mm","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:31:46.699091-08:00","updated_at":"2026-01-10T16:31:46.739719-08:00","closed_at":"2026-01-10T16:31:46.739719-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-lo4","title":"Test pinned issue","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-18T21:44:49.031385-08:00","updated_at":"2025-12-18T21:47:25.055109-08:00","deleted_at":"2025-12-18T21:47:25.055109-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} -{"id":"bd-lrj8","title":"Technical debt: Scattered TODOs should be tracked as issues","description":"Multiple TODO comments exist in the codebase that should be tracked as proper issues:\n\n1. cmd/bd/migrate_hash_ids.go:24 - 'Consider integrating into bd doctor migration detection'\n2. cmd/bd/migrate_tombstones.go:72 - Same\n3. cmd/bd/migrate_sync.go:16 - Same\n4. cmd/bd/migrate_issues.go:15 - Same\n5. cmd/bd/create.go:164 - 'Switch to target repo for multi-repo support'\n6. cmd/bd/create.go:208 - 'Add RPC method to get config in daemon mode'\n7. cmd/bd/daemon_logger.go:131 - 'Remove this once all callers are updated'\n8. cmd/bd/mol_stale.go:67 - 'Add RPC endpoint for stale check'\n9. cmd/bd/sync_test.go:444 - 'Refactor to use direct import logic'\n10. cmd/bd/jira.go:633 - 'In a full implementation, fetch Jira issue and compare timestamps'\n11. internal/formula/types.go:170,174,179,186,210 - Multiple 'Not yet implemented' TODOs\n12. internal/importer/importer_test.go:1010 - 'Test hangs due to database deadlock'\n\nConsider:\n1. Running 'grep -r TODO' periodically to find new ones\n2. Adding a lint rule to discourage inline TODOs\n3. Converting each to a bd issue with proper tracking\n\nLocation: Various files across codebase","status":"closed","priority":4,"issue_type":"chore","created_at":"2025-12-28T15:32:57.125279-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T16:34:10.911155-08:00","closed_at":"2025-12-28T16:34:10.911155-08:00","dependencies":[{"issue_id":"bd-lrj8","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.33312-08:00","created_by":"daemon"}]} -{"id":"bd-lsiur","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T00:54:25.263953-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T00:54:25.325455-08:00","closed_at":"2026-01-11T00:54:25.325455-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-lrj8","title":"Technical debt: Scattered TODOs should be tracked as issues","description":"Multiple TODO comments exist in the codebase that should be tracked as proper issues:\n\n1. cmd/bd/migrate_hash_ids.go:24 - 'Consider integrating into bd doctor migration detection'\n2. cmd/bd/migrate_tombstones.go:72 - Same\n3. cmd/bd/migrate_sync.go:16 - Same\n4. cmd/bd/migrate_issues.go:15 - Same\n5. cmd/bd/create.go:164 - 'Switch to target repo for multi-repo support'\n6. cmd/bd/create.go:208 - 'Add RPC method to get config in daemon mode'\n7. cmd/bd/daemon_logger.go:131 - 'Remove this once all callers are updated'\n8. cmd/bd/mol_stale.go:67 - 'Add RPC endpoint for stale check'\n9. cmd/bd/sync_test.go:444 - 'Refactor to use direct import logic'\n10. cmd/bd/jira.go:633 - 'In a full implementation, fetch Jira issue and compare timestamps'\n11. internal/formula/types.go:170,174,179,186,210 - Multiple 'Not yet implemented' TODOs\n12. internal/importer/importer_test.go:1010 - 'Test hangs due to database deadlock'\n\nConsider:\n1. Running 'grep -r TODO' periodically to find new ones\n2. Adding a lint rule to discourage inline TODOs\n3. Converting each to a bd issue with proper tracking\n\nLocation: Various files across codebase","status":"closed","priority":4,"issue_type":"chore","created_at":"2025-12-28T15:32:57.125279-08:00","updated_at":"2025-12-28T16:34:10.911155-08:00","closed_at":"2025-12-28T16:34:10.911155-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-lrj8","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.33312-08:00","created_by":"daemon"}]} +{"id":"bd-lsiur","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T00:54:25.263953-08:00","updated_at":"2026-01-11T00:54:25.325455-08:00","closed_at":"2026-01-11T00:54:25.325455-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-lsv4","title":"GH#444: Fix inconsistent status naming in_progress vs in-progress","description":"Documentation uses in-progress (hyphen) but code expects in_progress (underscore). Update all docs to use canonical in_progress. See GitHub issue #444.","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-12-16T01:03:14.349425-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} -{"id":"bd-ltee","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T01:06:02.099361-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T01:06:02.131176-08:00","closed_at":"2026-01-07T01:06:02.131176-08:00","close_reason":"auto-closed session event"} -{"id":"bd-ltv9","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:23:28.527561-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:23:28.679767-08:00","closed_at":"2026-01-07T00:23:28.679767-08:00","close_reason":"auto-closed session event"} -{"id":"bd-luso","title":"Add agent identity to commit metadata for forensics","description":"## Problem\n\nWhen agents (polecats, crew workers) make commits on behalf of a human, the commit only shows:\n- **Author**: Human (e.g., Steve Yegge)\n- **Co-Authored-By**: Claude Opus 4.5 (generic)\n\nMissing from the audit trail:\n- Which agent instance performed the work\n- Whether it was a polecat (transient) or crew (persistent)\n- What rig/workspace it ran in\n\nExample from a recent release commit:\n```\nAuthor: Steve Yegge \u003csteve.yegge@gmail.com\u003e\nCo-Authored-By: Claude Opus 4.5 \u003cnoreply@anthropic.com\u003e\n```\n\nNo way to trace this back to the specific agent session that executed the release molecule.\n\n## Proposal\n\nAdd git trailers to commits made by Gas Town agents:\n\n```\nExecuted-By: beads/polecat/Nux-1766978911613\nRig: beads\nRole: polecat\n```\n\nOr for crew workers:\n```\nExecuted-By: beads/crew/emma\nRig: beads\nRole: crew\n```\n\n## Benefits\n\n1. **Forensics**: If a release goes wrong, trace back to the exact agent session\n2. **Audit**: Query commits by agent type (`git log --grep=\"Role: polecat\"`)\n3. **Debugging**: Correlate commits with handoff mail and session logs\n4. **Accountability**: Distinguish human-direct vs agent-mediated commits\n\n## Implementation\n\nCould be implemented via:\n- Claude Code hooks (UserPromptSubmit or pre-commit)\n- `gt` commit helper that injects trailers\n- CLAUDE.md instructions for agents to include trailers\n\n## Open Questions\n\n- Should molecule ID be included if work was part of a molecule?\n- Should session ID or other correlation data be included?\n- Privacy considerations for commit metadata?","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-29T13:33:53.591916-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-29T21:26:41.103041-08:00","closed_at":"2025-12-29T21:26:41.103041-08:00","close_reason":"Implemented via prepare-commit-msg git hook that auto-injects agent identity trailers"} -{"id":"bd-lv2i0","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T00:59:47.297999-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T00:59:47.350861-08:00","closed_at":"2026-01-11T00:59:47.350861-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-lvgyp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:05:01.095846-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:05:01.154809-08:00","closed_at":"2026-01-11T19:05:01.154809-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ltee","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T01:06:02.099361-08:00","updated_at":"2026-01-07T01:06:02.131176-08:00","closed_at":"2026-01-07T01:06:02.131176-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-ltv9","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:23:28.527561-08:00","updated_at":"2026-01-07T00:23:28.679767-08:00","closed_at":"2026-01-07T00:23:28.679767-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-luso","title":"Add agent identity to commit metadata for forensics","description":"## Problem\n\nWhen agents (polecats, crew workers) make commits on behalf of a human, the commit only shows:\n- **Author**: Human (e.g., Steve Yegge)\n- **Co-Authored-By**: Claude Opus 4.5 (generic)\n\nMissing from the audit trail:\n- Which agent instance performed the work\n- Whether it was a polecat (transient) or crew (persistent)\n- What rig/workspace it ran in\n\nExample from a recent release commit:\n```\nAuthor: Steve Yegge \u003csteve.yegge@gmail.com\u003e\nCo-Authored-By: Claude Opus 4.5 \u003cnoreply@anthropic.com\u003e\n```\n\nNo way to trace this back to the specific agent session that executed the release molecule.\n\n## Proposal\n\nAdd git trailers to commits made by Gas Town agents:\n\n```\nExecuted-By: beads/polecat/Nux-1766978911613\nRig: beads\nRole: polecat\n```\n\nOr for crew workers:\n```\nExecuted-By: beads/crew/emma\nRig: beads\nRole: crew\n```\n\n## Benefits\n\n1. **Forensics**: If a release goes wrong, trace back to the exact agent session\n2. **Audit**: Query commits by agent type (`git log --grep=\"Role: polecat\"`)\n3. **Debugging**: Correlate commits with handoff mail and session logs\n4. **Accountability**: Distinguish human-direct vs agent-mediated commits\n\n## Implementation\n\nCould be implemented via:\n- Claude Code hooks (UserPromptSubmit or pre-commit)\n- `gt` commit helper that injects trailers\n- CLAUDE.md instructions for agents to include trailers\n\n## Open Questions\n\n- Should molecule ID be included if work was part of a molecule?\n- Should session ID or other correlation data be included?\n- Privacy considerations for commit metadata?","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-29T13:33:53.591916-08:00","updated_at":"2025-12-29T21:26:41.103041-08:00","closed_at":"2025-12-29T21:26:41.103041-08:00","close_reason":"Implemented via prepare-commit-msg git hook that auto-injects agent identity trailers","created_by":"beads/crew/emma"} +{"id":"bd-lv2i0","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T00:59:47.297999-08:00","updated_at":"2026-01-11T00:59:47.350861-08:00","closed_at":"2026-01-11T00:59:47.350861-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-lvgyp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:05:01.095846-08:00","updated_at":"2026-01-11T19:05:01.154809-08:00","closed_at":"2026-01-11T19:05:01.154809-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-lw0x","title":"Fix bd sync race condition with daemon causing dirty working directory","description":"After bd sync completes with sync.branch mode, subsequent bd commands or daemon file watcher would see a hash mismatch and trigger auto-import, which then schedules re-export, dirtying the working directory.\n\n**Root cause:**\n1. bd sync exports JSONL with NEW content (hash H1)\n2. bd sync updates jsonl_content_hash = H1 in DB\n3. bd sync restores JSONL from HEAD (OLD content, hash H0)\n4. Now: file hash = H0, DB hash = H1 (MISMATCH)\n5. Daemon or next CLI command sees mismatch, imports from OLD JSONL\n6. Import triggers re-export → file is dirty\n\n**Fix:**\nAfter restoreBeadsDirFromBranch(), update jsonl_content_hash to match the restored file's hash. This ensures daemon and CLI see file hash = DB hash → no spurious import/export cycle.\n\nRelated: bd-c83r (multiple daemon prevention)","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-12-13T06:42:17.130839-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-lwnt","title":"Test P1 priority","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-05T12:58:38.074112-08:00","updated_at":"2025-11-05T12:58:44.711763-08:00","closed_at":"2025-11-05T12:58:44.711763-08:00"} {"id":"bd-lxzx","title":"Add close_reason to JSONL export format documentation","description":"PR #551 now persists close_reason to the database, but there's a question about whether this field should be exported to JSONL format.\n\n## Current State\n- close_reason is stored in issues.close_reason column\n- close_reason is also stored in events table (audit trail)\n- The JSONL export format may or may not include close_reason\n\n## Questions\n1. Should close_reason be exported to JSONL format?\n2. If yes, where should it go (root level or nested in events)?\n3. Should there be any special handling to avoid duplication?\n4. How should close_reason be handled during JSONL import?\n\n## Why This Matters\n- JSONL is the git-friendly sync format\n- Other beads instances import from JSONL\n- close_reason is meaningful data that should be preserved across clones\n\n## Suggested Action\n- Check if close_reason is currently exported in JSONL\n- If not, add it to the export schema\n- Document the field in JSONL format spec\n- Add tests for round-trip (export -\u003e import -\u003e verify close_reason)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-14T14:25:17.414916-08:00","updated_at":"2025-12-30T18:12:30.972954-08:00","closed_at":"2025-12-30T17:03:27.56903-08:00","close_reason":"Documented close_reason in JSONL schema and added round-trip test","dependencies":[{"issue_id":"bd-lxzx","depends_on_id":"bd-z86n","type":"discovered-from","created_at":"2025-12-14T14:25:17.416131-08:00","created_by":"stevey"}]} -{"id":"bd-lyspz","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T23:08:07.124471-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-09T23:08:07.159638-08:00","closed_at":"2026-01-09T23:08:07.159638-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-lytza","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:23:48.041263-08:00","created_by":"beads/witness","updated_at":"2026-01-10T21:23:48.110205-08:00","closed_at":"2026-01-10T21:23:48.110205-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-lyspz","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T23:08:07.124471-08:00","updated_at":"2026-01-09T23:08:07.159638-08:00","closed_at":"2026-01-09T23:08:07.159638-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/grip"} +{"id":"bd-lytza","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:23:48.041263-08:00","updated_at":"2026-01-10T21:23:48.110205-08:00","closed_at":"2026-01-10T21:23:48.110205-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} {"id":"bd-lz49","title":"Add gate fields: await_type, await_id, timeout, waiters","description":"Add gate-specific fields to the Issue type.\n\n## New Fields\n- await_type: string - Type of condition (gh:run, gh:pr, timer, human, mail)\n- await_id: string - Identifier for the condition\n- timeout: duration - Max time to wait before escalation\n- waiters: []string - Mail addresses to notify when gate clears\n\n## Implementation\n- Add fields to Issue struct in internal/types/types.go\n- Update SQLite schema for new columns\n- Add JSONL serialization/deserialization\n- Update import/export logic","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-23T11:44:32.720196-08:00","updated_at":"2025-12-23T12:00:03.837691-08:00","closed_at":"2025-12-23T12:00:03.837691-08:00","dependencies":[{"issue_id":"bd-lz49","depends_on_id":"bd-udsi","type":"parent-child","created_at":"2025-12-23T11:44:52.738823-08:00","created_by":"daemon"},{"issue_id":"bd-lz49","depends_on_id":"bd-2v0f","type":"blocks","created_at":"2025-12-23T11:44:56.269351-08:00","created_by":"daemon"}]} -{"id":"bd-m03p","title":"Merge: quartz-mjw4bkpv","description":"branch: polecat/quartz-mjw4bkpv\ntarget: main\nsource_issue: quartz-mjw4bkpv\nrig: beads\nagent_bead: gt-beads-polecat-quartz","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-01T16:16:18.601679-08:00","created_by":"beads/polecats/quartz","updated_at":"2026-01-01T19:27:21.729371-08:00","closed_at":"2026-01-01T19:27:21.729371-08:00","close_reason":"Stale MR - no branch pushed after 3+ hours"} +{"id":"bd-m03p","title":"Merge: quartz-mjw4bkpv","description":"branch: polecat/quartz-mjw4bkpv\ntarget: main\nsource_issue: quartz-mjw4bkpv\nrig: beads\nagent_bead: gt-beads-polecat-quartz","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-01T16:16:18.601679-08:00","updated_at":"2026-01-01T19:27:21.729371-08:00","closed_at":"2026-01-01T19:27:21.729371-08:00","close_reason":"Stale MR - no branch pushed after 3+ hours","created_by":"beads/polecats/quartz"} {"id":"bd-m0tl","title":"bd create -f crashes with nil pointer dereference","description":"GitHub issue #674. The markdown import feature crashes at markdown.go:338 because global variables (store, ctx, actor) aren't initialized when createIssuesFromMarkdown is called. The function uses globals set by cobra command framework but is being called before they're ready. Need to either initialize globals at start of function or pass them as parameters.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-21T14:35:14.813012-08:00","updated_at":"2025-12-21T15:41:14.600953-08:00","closed_at":"2025-12-21T15:41:14.600953-08:00"} {"id":"bd-m0w","title":"Add test coverage for internal/validation package","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-20T21:21:24.129559-05:00","updated_at":"2025-12-09T18:38:37.697625272-05:00","closed_at":"2025-11-28T21:52:34.198974-08:00","dependencies":[{"issue_id":"bd-m0w","depends_on_id":"bd-ge7","type":"blocks","created_at":"2025-11-20T21:21:31.350477-05:00","created_by":"daemon"}]} {"id":"bd-m164","title":"Add 0.33.2 to versionChanges in info.go","description":"Add new entry at the TOP of versionChanges array in cmd/bd/info.go:\n\n```go\n{\n Version: \"0.33.2\",\n Date: \"2025-12-21\",\n Changes: []string{\n // Add notable changes here\n },\n},\n```\n\nCopy changes from CHANGELOG.md [Unreleased] section.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T16:10:13.761218-08:00","updated_at":"2025-12-21T17:29:31.791368-08:00","deleted_at":"2025-12-21T17:29:31.791368-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-m1yju","title":"Digest: mol-refinery-patrol","description":"Patrol: Queue empty, 0 branches merged","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T22:32:34.529179-08:00","updated_at":"2026-01-11T22:32:34.529179-08:00","closed_at":"2026-01-11T22:32:34.529137-08:00","close_reason":"Squashed from 11 wisps"} -{"id":"bd-m3c5p","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T04:32:28.040454-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T04:32:28.102535-08:00","closed_at":"2026-01-11T04:32:28.102535-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-m3c5p","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T04:32:28.040454-08:00","updated_at":"2026-01-11T04:32:28.102535-08:00","closed_at":"2026-01-11T04:32:28.102535-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-m62x","title":"Benchmark Suite for Critical Operations","description":"Extend existing benchmark suite with comprehensive benchmarks for critical operations at 10K-20K scale.\n\nExisting benchmarks (keep these):\n- cycle_bench_test.go - Cycle detection up to 5K issues (linear, tree, dense graphs)\n- compact_bench_test.go - Compaction candidate queries (100 issues)\n- internal/rpc/bench_test.go - Daemon vs direct mode comparison\n\nNew benchmarks to add in sqlite_bench_test.go (~10-12 total):\n1. GetReadyWork - Simple, deep hierarchies, cross-linked (CRITICAL - not currently benchmarked)\n2. SearchIssues - No filters, complex filters (CRITICAL - not currently benchmarked)\n3. CreateIssue - Single issue creation\n4. UpdateIssue - Status/priority/assignee changes\n5. AddDependency - Extend to 10K/20K scale (currently only up to 5K)\n6. JSONL Export - Full export performance\n7. JSONL Import - Import performance\n\nScale levels:\n- Large: 10K issues (5K open, 5K closed)\n- XLarge: 20K issues (10K open, 10K closed)\n\nImplementation:\n- NEW FILE: internal/storage/sqlite/sqlite_bench_test.go\n- Keep existing cycle_bench_test.go and compact_bench_test.go unchanged\n- Build tag: //go:build bench\n- Standard testing.B benchmarks\n- b.ReportAllocs() for memory tracking\n- Test both SQLite and JSONL-imported databases\n\nAlways generates CPU and memory profiles for analysis.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-13T22:22:43.770787-08:00","updated_at":"2025-11-13T23:15:33.781023-08:00","closed_at":"2025-11-13T23:15:33.781023-08:00","dependencies":[{"issue_id":"bd-m62x","depends_on_id":"bd-q13h","type":"blocks","created_at":"2025-11-13T22:24:02.668091-08:00","created_by":"daemon"},{"issue_id":"bd-m62x","depends_on_id":"bd-zj8e","type":"blocks","created_at":"2025-11-13T22:24:06.30131-08:00","created_by":"daemon"}]} -{"id":"bd-m6r3","title":"Refactor: Extract shared getEpicChildren helper for swarm commands","description":"## Context\n`getSwarmStatus` and `analyzeEpicForSwarm` in cmd/bd/swarm.go have nearly identical code for:\n- Getting epic dependents via GetDependents\n- Filtering to parent-child relationships\n- Building childIDSet map\n- Building dependency maps\n\n## Implementation\n1. Extract `getEpicChildren(ctx, store, epicID)` that returns:\n - `[]*types.Issue` - child issues\n - `map[string]bool` - child ID set\n - `map[string][]string` - dependency map (within children)\n - `error`\n\n2. Refactor both `analyzeEpicForSwarm` and `getSwarmStatus` to use it\n\n3. Consider defining a named interface for the store methods:\n ```go\n type SwarmStore interface {\n GetIssue(context.Context, string) (*types.Issue, error)\n GetDependents(context.Context, string) ([]*types.Issue, error)\n GetDependencyRecords(context.Context, string) ([]*types.Dependency, error)\n }\n ```\n\n## Files\n- cmd/bd/swarm.go (lines 150-248, 616-682)\n\n## Acceptance\n- No duplicated code for fetching epic children\n- Both commands produce identical results as before","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T21:30:55.55377-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-28T21:43:50.759453-08:00","closed_at":"2025-12-28T21:43:50.759453-08:00"} +{"id":"bd-m6r3","title":"Refactor: Extract shared getEpicChildren helper for swarm commands","description":"## Context\n`getSwarmStatus` and `analyzeEpicForSwarm` in cmd/bd/swarm.go have nearly identical code for:\n- Getting epic dependents via GetDependents\n- Filtering to parent-child relationships\n- Building childIDSet map\n- Building dependency maps\n\n## Implementation\n1. Extract `getEpicChildren(ctx, store, epicID)` that returns:\n - `[]*types.Issue` - child issues\n - `map[string]bool` - child ID set\n - `map[string][]string` - dependency map (within children)\n - `error`\n\n2. Refactor both `analyzeEpicForSwarm` and `getSwarmStatus` to use it\n\n3. Consider defining a named interface for the store methods:\n ```go\n type SwarmStore interface {\n GetIssue(context.Context, string) (*types.Issue, error)\n GetDependents(context.Context, string) ([]*types.Issue, error)\n GetDependencyRecords(context.Context, string) ([]*types.Dependency, error)\n }\n ```\n\n## Files\n- cmd/bd/swarm.go (lines 150-248, 616-682)\n\n## Acceptance\n- No duplicated code for fetching epic children\n- Both commands produce identical results as before","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T21:30:55.55377-08:00","updated_at":"2025-12-28T21:43:50.759453-08:00","closed_at":"2025-12-28T21:43:50.759453-08:00","created_by":"beads/crew/emma"} {"id":"bd-m7ge","title":"Add .beads/README.md during 'bd init' for project documentation and promotion","description":"When 'bd init' is run, automatically generate a .beads/README.md file that:\n\n1. Briefly explains what Beads is (AI-native issue tracking that lives in your repo)\n2. Links to the main repository: https://github.com/steveyegge/beads\n3. Provides a quick reference of essential commands:\n - bd create: Create new issues\n - bd list: View all issues\n - bd update: Modify issue status/details\n - bd show: View issue details\n - bd sync: Sync with git remote\n4. Highlights key benefits for AI coding agents and developers\n5. Encourages developers to try it out\n\nThe README should be enthusiastic and compelling to get open source contributors excited about using Beads for their AI-assisted development workflows.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-16T22:32:50.478681-08:00","updated_at":"2025-12-09T18:38:37.699008372-05:00","closed_at":"2025-11-25T17:49:42.558381-08:00"} {"id":"bd-m7ib","title":"Add creator field to Issue struct","description":"Add Creator *EntityRef field to Issue. Tracks who created the issue. Optional, omitted if nil in JSONL. This enables CV chain tracking - every piece of work is attributed to its creator.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-22T17:53:31.599447-08:00","updated_at":"2025-12-22T20:03:24.264672-08:00","closed_at":"2025-12-22T20:03:24.264672-08:00","dependencies":[{"issue_id":"bd-m7ib","depends_on_id":"bd-7pwh","type":"parent-child","created_at":"2025-12-22T17:53:43.39957-08:00","created_by":"daemon"},{"issue_id":"bd-m7ib","depends_on_id":"bd-nmch","type":"blocks","created_at":"2025-12-22T17:53:47.826309-08:00","created_by":"daemon"}]} -{"id":"bd-m8982","title":"Session ended: gt-gastown-crew-george","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T12:27:06.466697-08:00","created_by":"beads/witness","updated_at":"2026-01-08T12:27:06.504112-08:00","closed_at":"2026-01-08T12:27:06.504112-08:00","close_reason":"auto-closed session event"} -{"id":"bd-m8ew","title":"Fix release molecule gate discovery and validation","description":"## Problem\n\nThe beads-release molecule has critical issues that cause it to report success when everything fails:\n\n### 1. Gate Discovery Mismatch (Critical)\n\nThe formula declares:\n```toml\n[steps.gate]\ntype = \"gh:run\"\nid = \"release.yml\" # workflow NAME\n```\n\nThis creates a gate with `AwaitID=\"release.yml\"`. But:\n- `bd gate discover` only finds gates where `AwaitID == \"\"` (empty)\n- `bd gate check` passes `release.yml` to `gh run view release.yml` which fails (expects numeric run ID)\n\n**Result**: Gate can never be automatically resolved. Agent either bypasses it manually or gets stuck.\n\n### 2. No Validation on Step Completion\n\nFormula steps are prose instructions. Nothing validates:\n- Commands actually ran successfully (exit codes)\n- Expected changes actually occurred\n- Verification assertions passed\n\nAgent can mark any step complete regardless of actual success.\n\n## Solution\n\n### Gate Fix Options\n- **Option A**: Store workflow name in separate field, discover populates await_id from matching run\n- **Option B**: Detect non-numeric await_id as workflow name hint, use it to filter gh run list\n\n### Validation Improvements\n- Steps with ```bash``` blocks should capture exit codes\n- Verification steps should have machine-checkable assertions\n- Consider script gates that run validation commands\n\n## Related\n- bd-mcva (Gate Evaluation epic) - infrastructure is done, usage pattern is broken\n- Continues design toward event-driven releases","status":"closed","priority":0,"issue_type":"bug","created_at":"2026-01-06T20:07:09.055747-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-06T23:33:46.422048-08:00","closed_at":"2026-01-06T23:33:46.422048-08:00","close_reason":"Fixed gate discovery to handle workflow name hints in AwaitID. Gates with non-numeric AwaitID (e.g., 'release.yml') are now discovered and matched to runs by workflow name. Gate check also handles this gracefully. Created bd-u0fn for step validation improvements.","labels":["design","release-workflow"]} +{"id":"bd-m8982","title":"Session ended: gt-gastown-crew-george","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T12:27:06.466697-08:00","updated_at":"2026-01-08T12:27:06.504112-08:00","closed_at":"2026-01-08T12:27:06.504112-08:00","close_reason":"auto-closed session event","created_by":"beads/witness"} +{"id":"bd-m8ew","title":"Fix release molecule gate discovery and validation","description":"## Problem\n\nThe beads-release molecule has critical issues that cause it to report success when everything fails:\n\n### 1. Gate Discovery Mismatch (Critical)\n\nThe formula declares:\n```toml\n[steps.gate]\ntype = \"gh:run\"\nid = \"release.yml\" # workflow NAME\n```\n\nThis creates a gate with `AwaitID=\"release.yml\"`. But:\n- `bd gate discover` only finds gates where `AwaitID == \"\"` (empty)\n- `bd gate check` passes `release.yml` to `gh run view release.yml` which fails (expects numeric run ID)\n\n**Result**: Gate can never be automatically resolved. Agent either bypasses it manually or gets stuck.\n\n### 2. No Validation on Step Completion\n\nFormula steps are prose instructions. Nothing validates:\n- Commands actually ran successfully (exit codes)\n- Expected changes actually occurred\n- Verification assertions passed\n\nAgent can mark any step complete regardless of actual success.\n\n## Solution\n\n### Gate Fix Options\n- **Option A**: Store workflow name in separate field, discover populates await_id from matching run\n- **Option B**: Detect non-numeric await_id as workflow name hint, use it to filter gh run list\n\n### Validation Improvements\n- Steps with ```bash``` blocks should capture exit codes\n- Verification steps should have machine-checkable assertions\n- Consider script gates that run validation commands\n\n## Related\n- bd-mcva (Gate Evaluation epic) - infrastructure is done, usage pattern is broken\n- Continues design toward event-driven releases","status":"closed","priority":0,"issue_type":"bug","created_at":"2026-01-06T20:07:09.055747-08:00","updated_at":"2026-01-06T23:33:46.422048-08:00","closed_at":"2026-01-06T23:33:46.422048-08:00","close_reason":"Fixed gate discovery to handle workflow name hints in AwaitID. Gates with non-numeric AwaitID (e.g., 'release.yml') are now discovered and matched to runs by workflow name. Gate check also handles this gracefully. Created bd-u0fn for step validation improvements.","created_by":"beads/crew/dave"} {"id":"bd-m8ro","title":"Improve test coverage for internal/rpc (47.5% → 60%)","description":"The RPC package has only 47.5% test coverage. RPC is the communication layer for daemon operations.\n\nCurrent coverage: 47.5%\nTarget coverage: 60%","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-13T20:43:09.515299-08:00","updated_at":"2025-12-23T22:42:11.921388-08:00","closed_at":"2025-12-23T22:42:11.921388-08:00"} {"id":"bd-m8t","title":"Extract computeJSONLHash helper to eliminate code duplication","description":"SHA256 hash computation is duplicated in 3 places:\n- cmd/bd/integrity.go:50-52\n- cmd/bd/sync.go:611-613\n- cmd/bd/import.go:318-319\n\nExtract to shared helper function computeJSONLHash(jsonlPath string) (string, error) that includes proper #nosec comment and error handling.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-20T21:31:05.836496-05:00","updated_at":"2025-11-20T21:35:36.04171-05:00","closed_at":"2025-11-20T21:35:36.04171-05:00","dependencies":[{"issue_id":"bd-m8t","depends_on_id":"bd-khnb","type":"blocks","created_at":"2025-11-20T21:31:05.837915-05:00","created_by":"daemon"}]} {"id":"bd-m964","title":"Consider FTS5 for text search at scale","description":"SearchIssues uses LIKE patterns for text search which can't use indexes.\n\n**Current query (queries.go:1475-1477):**\n```sql\n(title LIKE ? OR description LIKE ? OR id LIKE ?)\n```\n\n**Problem:** Full table scan on every text search. At 100K+ issues, this becomes slow.\n\n**SQLite FTS5 solution:**\n```sql\nCREATE VIRTUAL TABLE issues_fts USING fts5(\n id, title, description, design, notes,\n content='issues',\n content_rowid='rowid'\n);\n\n-- Triggers to keep FTS in sync\nCREATE TRIGGER issues_ai AFTER INSERT ON issues BEGIN\n INSERT INTO issues_fts(rowid, id, title, description, design, notes)\n VALUES (new.rowid, new.id, new.title, new.description, new.design, new.notes);\nEND;\n-- (similar for UPDATE, DELETE)\n```\n\n**Trade-offs:**\n- Database size increase (~30-50% for text content)\n- Additional write overhead (trigger execution)\n- Better search capabilities (ranking, phrase search)\n\n**Decision needed:** Is full-text search a priority feature? Current LIKE search may be acceptable for most use cases.\n\n**Benchmark first:** Measure SearchIssues at 100K scale before implementing.","status":"open","priority":4,"issue_type":"feature","created_at":"2025-12-22T22:58:56.466121-08:00","updated_at":"2026-01-02T00:17:14.332908-08:00","dependencies":[{"issue_id":"bd-m964","depends_on_id":"bd-h0we","type":"discovered-from","created_at":"2025-12-22T22:58:56.466764-08:00","created_by":"daemon"}]} -{"id":"bd-m9doq","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T23:03:29.936001-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T23:03:29.973094-08:00","closed_at":"2026-01-09T23:03:29.973094-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-m9fzm","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:43:22.158817-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T00:43:22.191784-08:00","closed_at":"2026-01-09T00:43:22.191784-08:00","close_reason":"auto-closed session event"} +{"id":"bd-m9doq","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T23:03:29.936001-08:00","updated_at":"2026-01-09T23:03:29.973094-08:00","closed_at":"2026-01-09T23:03:29.973094-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-m9fzm","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T00:43:22.158817-08:00","updated_at":"2026-01-09T00:43:22.191784-08:00","closed_at":"2026-01-09T00:43:22.191784-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/dave"} {"id":"bd-m9th","title":"Create Python adapter library","description":"Create beads_mail_adapter.py library that wraps Agent Mail HTTP calls with health checks and graceful degradation.\n\nAcceptance Criteria:\n- AgentMailAdapter class with health check on init\n- enabled flag auto-disables if server unreachable\n- All methods wrapped in try/catch (non-blocking failures)\n- Methods: reserve_issue(), release_issue(), notify(), check_inbox()\n- Environment-based configuration (AGENT_MAIL_URL, AGENT_MAIL_TOKEN)\n- Unit tests for enabled/disabled modes\n\nFile: lib/beads_mail_adapter.py","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-07T22:42:28.60152-08:00","updated_at":"2025-11-08T00:11:02.746747-08:00","closed_at":"2025-11-08T00:11:02.746747-08:00","dependencies":[{"issue_id":"bd-m9th","depends_on_id":"bd-4cyb","type":"blocks","created_at":"2025-11-07T22:42:28.602698-08:00","created_by":"daemon"}]} -{"id":"bd-mcn81","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:49:39.99761-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T22:49:40.035312-08:00","closed_at":"2026-01-09T22:49:40.035312-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-mcva","title":"Gate Evaluation: Phases 2-4 (Timer, GitHub, Cross-Rig)","description":"Complete gate evaluation implementation started in bd-7zka.2 (Phase 1: Human Gates).\n\n## Background\nPhase 1 implemented gate issues as beads that block dependent steps. Phases 2-4 add automatic gate resolution.\n\n## Gate Types and Watchers\n\n| Gate Type | Watcher | Trigger |\n|-----------|---------|---------|\n| timer | Witness | Patrol cycle |\n| gh:run | Refinery | Patrol poll |\n| gh:pr | Refinery | Patrol poll |\n| bead (cross-rig) | Existing dep resolution | Sync |\n\n## Commands\n```bash\nbd gate list # Show open gates\nbd gate check # Evaluate all gates\nbd gate check --type=timer # Check only timer gates\nbd gate check --type=gh # Check only GitHub gates\nbd gate resolve \u003cid\u003e [--reason] # Force-close a gate\n```\n\n## Related\n- bd-7zka.2: Phase 1 implementation (closed)\n- gt-dh65: Deacon patrol gate checking integration","status":"closed","priority":2,"issue_type":"epic","created_at":"2026-01-02T01:55:17.373041-08:00","created_by":"mayor","updated_at":"2026-01-02T17:04:10.4889-08:00","closed_at":"2026-01-02T17:04:10.4889-08:00","close_reason":"All phases complete: Timer gates (bd-kbfn), GitHub gates (bd-oos3), Cross-rig bead gates (bd-w3rh). bd gate check command fully implemented."} -{"id":"bd-mczr","title":"bd init inherits from parent hub instead of starting empty (GH#896)","description":"When running bd init in a subdirectory of a hub, the new database gets populated with parent hub's issues and repo UUID, causing DATABASE MISMATCH errors. Root cause: FindBeadsDir() walks up to parent directories and finds parent hub's .beads. Need to ensure bd init only looks at LOCAL git repo's history, not parent hub.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-04T15:22:44.025097-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-04T15:43:38.801825-08:00","closed_at":"2026-01-04T15:43:38.801825-08:00","close_reason":"Fixed in 243263dd - added guard to reject beadsDir outside gitRoot"} +{"id":"bd-mcn81","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:49:39.99761-08:00","updated_at":"2026-01-09T22:49:40.035312-08:00","closed_at":"2026-01-09T22:49:40.035312-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-mcva","title":"Gate Evaluation: Phases 2-4 (Timer, GitHub, Cross-Rig)","description":"Complete gate evaluation implementation started in bd-7zka.2 (Phase 1: Human Gates).\n\n## Background\nPhase 1 implemented gate issues as beads that block dependent steps. Phases 2-4 add automatic gate resolution.\n\n## Gate Types and Watchers\n\n| Gate Type | Watcher | Trigger |\n|-----------|---------|---------|\n| timer | Witness | Patrol cycle |\n| gh:run | Refinery | Patrol poll |\n| gh:pr | Refinery | Patrol poll |\n| bead (cross-rig) | Existing dep resolution | Sync |\n\n## Commands\n```bash\nbd gate list # Show open gates\nbd gate check # Evaluate all gates\nbd gate check --type=timer # Check only timer gates\nbd gate check --type=gh # Check only GitHub gates\nbd gate resolve \u003cid\u003e [--reason] # Force-close a gate\n```\n\n## Related\n- bd-7zka.2: Phase 1 implementation (closed)\n- gt-dh65: Deacon patrol gate checking integration","status":"closed","priority":2,"issue_type":"epic","created_at":"2026-01-02T01:55:17.373041-08:00","updated_at":"2026-01-02T17:04:10.4889-08:00","closed_at":"2026-01-02T17:04:10.4889-08:00","close_reason":"All phases complete: Timer gates (bd-kbfn), GitHub gates (bd-oos3), Cross-rig bead gates (bd-w3rh). bd gate check command fully implemented.","created_by":"mayor"} +{"id":"bd-mczr","title":"bd init inherits from parent hub instead of starting empty (GH#896)","description":"When running bd init in a subdirectory of a hub, the new database gets populated with parent hub's issues and repo UUID, causing DATABASE MISMATCH errors. Root cause: FindBeadsDir() walks up to parent directories and finds parent hub's .beads. Need to ensure bd init only looks at LOCAL git repo's history, not parent hub.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-04T15:22:44.025097-08:00","updated_at":"2026-01-04T15:43:38.801825-08:00","closed_at":"2026-01-04T15:43:38.801825-08:00","close_reason":"Fixed in 243263dd - added guard to reject beadsDir outside gitRoot","created_by":"beads/crew/grip"} {"id":"bd-mdw","title":"Add integration test for cross-clone deletion propagation","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-25T14:56:38.997009-08:00","updated_at":"2025-11-25T16:35:59.052914-08:00","closed_at":"2025-11-25T16:35:59.052914-08:00"} {"id":"bd-mf0o","title":"Add 'new' as alias for 'create' command","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-08T03:11:46.791657-08:00","updated_at":"2025-11-08T03:11:51.035418-08:00","closed_at":"2025-11-08T03:11:51.035418-08:00"} -{"id":"bd-mfrs6","title":"gt doctor priming check: AGENTS.md check misses rig-level files","description":"The AGENTS.md \u003e 20 lines check is only in checkAgentPriming(), which checks mayor, deacon, witness, refinery directories. But rig-level AGENTS.md files (e.g., gastown/AGENTS.md, beads/AGENTS.md) are not checked.\n\nThese rig-level files should also be thin bootstrap pointers.\n\nFix: Add AGENTS.md check to checkRigPriming() similar to how PRIME.md is checked.\n\nLocation: gastown/mayor/rig/internal/doctor/priming_check.go:152-164","status":"closed","priority":3,"issue_type":"task","assignee":"gastown/polecats/rictus","created_at":"2026-01-10T00:46:13.923911-08:00","created_by":"mayor","updated_at":"2026-01-10T01:03:23.774713-08:00","closed_at":"2026-01-10T01:03:23.774713-08:00","close_reason":"Added AGENTS.md size check to checkRigPriming() in priming_check.go"} -{"id":"bd-mfube","title":"Add bd doctor check for non-tombstone issues with deleted_at","description":"Add a doctor check to detect invalid issue states where:\n- status is NOT 'tombstone'\n- deleted_at IS set\n\nThis is an invariant violation that can cause sync failures with error:\n'non-tombstone issues cannot have deleted_at timestamp'\n\nThe check should:\n1. Query for issues with this invalid state\n2. Report the count and example IDs\n3. Suggest fix: either convert to tombstones or remove deleted_at\n\nImplementation location: `cmd/bd/doctor/integrity.go`","status":"open","priority":2,"issue_type":"task","assignee":"beads/crew/grip","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:26:18.019656-08:00","created_by":"mayor","updated_at":"2026-01-12T01:36:54.772474-08:00"} -{"id":"bd-mgt2","title":"Update UI styles for removed types","description":"Update or remove type-specific styling for agent/role/rig types.\n\n## Work\n- Remove ColorTypeAgent, ColorTypeRole, ColorTypeRig constants\n- Remove TypeAgentStyle, TypeRoleStyle, TypeRigStyle\n- Update RenderIssueType() switch to remove these cases\n- Consider: add label-based styling for gt:* labels\n\n## Files\n- internal/ui/styles.go","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-06T20:40:47.950601-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-06T22:11:58.42622-08:00","closed_at":"2026-01-06T22:11:58.42622-08:00","close_reason":"Removed Gas Town type colors and styles from UI","dependencies":[{"issue_id":"bd-mgt2","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.677237-08:00","created_by":"beads/crew/dave"}]} +{"id":"bd-mfrs6","title":"gt doctor priming check: AGENTS.md check misses rig-level files","description":"The AGENTS.md \u003e 20 lines check is only in checkAgentPriming(), which checks mayor, deacon, witness, refinery directories. But rig-level AGENTS.md files (e.g., gastown/AGENTS.md, beads/AGENTS.md) are not checked.\n\nThese rig-level files should also be thin bootstrap pointers.\n\nFix: Add AGENTS.md check to checkRigPriming() similar to how PRIME.md is checked.\n\nLocation: gastown/mayor/rig/internal/doctor/priming_check.go:152-164","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-10T00:46:13.923911-08:00","updated_at":"2026-01-10T01:03:23.774713-08:00","closed_at":"2026-01-10T01:03:23.774713-08:00","close_reason":"Added AGENTS.md size check to checkRigPriming() in priming_check.go","created_by":"mayor"} +{"id":"bd-mfube","title":"Add bd doctor check for non-tombstone issues with deleted_at","description":"Add a doctor check to detect invalid issue states where:\n- status is NOT 'tombstone'\n- deleted_at IS set\n\nThis is an invariant violation that can cause sync failures with error:\n'non-tombstone issues cannot have deleted_at timestamp'\n\nThe check should:\n1. Query for issues with this invalid state\n2. Report the count and example IDs\n3. Suggest fix: either convert to tombstones or remove deleted_at\n\nImplementation location: `cmd/bd/doctor/integrity.go`","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T01:26:18.019656-08:00","updated_at":"2026-01-12T01:36:54.772474-08:00","created_by":"mayor"} +{"id":"bd-mgt2","title":"Update UI styles for removed types","description":"Update or remove type-specific styling for agent/role/rig types.\n\n## Work\n- Remove ColorTypeAgent, ColorTypeRole, ColorTypeRig constants\n- Remove TypeAgentStyle, TypeRoleStyle, TypeRigStyle\n- Update RenderIssueType() switch to remove these cases\n- Consider: add label-based styling for gt:* labels\n\n## Files\n- internal/ui/styles.go","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-06T20:40:47.950601-08:00","updated_at":"2026-01-06T22:11:58.42622-08:00","closed_at":"2026-01-06T22:11:58.42622-08:00","close_reason":"Removed Gas Town type colors and styles from UI","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-mgt2","depends_on_id":"bd-i54l","type":"parent-child","created_at":"2026-01-06T20:41:11.677237-08:00","created_by":"beads/crew/dave"}]} {"id":"bd-mh4w","title":"Rename 'bond' to 'spawn' for instantiation","description":"Rename the bd mol bond command to bd mol spawn for instantiating protos.\n \n- Rename molBondCmd to molSpawnCmd\n- Update command Use/Short/Long descriptions \n- Keep 'bond' available for the new bonding feature\n- Update all documentation references\n- Add 'protomolecule' as easter egg alias for 'proto'","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-21T00:58:44.529026-08:00","updated_at":"2025-12-21T01:19:42.942819-08:00","closed_at":"2025-12-21T01:19:42.942819-08:00","dependencies":[{"issue_id":"bd-mh4w","depends_on_id":"bd-o5xe","type":"parent-child","created_at":"2025-12-21T00:59:51.167902-08:00","created_by":"daemon"}]} -{"id":"bd-mhhb","title":"Read operations should not modify database file","description":"Read-only operations (bd list, bd ready, bd show) modify the database file. Every open sets WAL pragma, runs schema/migrations, and checkpoints on close. Need sqlite.NewReadOnly() that opens with mode=ro, skips WAL/schema/migrations, and skips checkpoint. See GH#804.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-30T16:27:13.416643-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-30T16:46:49.921614-08:00","closed_at":"2025-12-30T16:46:49.921614-08:00","close_reason":"Implemented read-only mode for SQLite. Read commands now use NewReadOnly() which opens with mode=ro, skips WAL pragma/schema/migrations, and skips checkpoint on close."} -{"id":"bd-mjn78","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:13:48.459613-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T16:13:48.531509-08:00","closed_at":"2026-01-10T16:13:48.531509-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-mjzs3","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T14:37:01.471314-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T14:37:01.50657-08:00","closed_at":"2026-01-10T14:37:01.50657-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-mlbzl","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T10:40:21.862871-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T10:40:21.925733-08:00","closed_at":"2026-01-11T10:40:21.925733-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-mhhb","title":"Read operations should not modify database file","description":"Read-only operations (bd list, bd ready, bd show) modify the database file. Every open sets WAL pragma, runs schema/migrations, and checkpoints on close. Need sqlite.NewReadOnly() that opens with mode=ro, skips WAL/schema/migrations, and skips checkpoint. See GH#804.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-30T16:27:13.416643-08:00","updated_at":"2025-12-30T16:46:49.921614-08:00","closed_at":"2025-12-30T16:46:49.921614-08:00","close_reason":"Implemented read-only mode for SQLite. Read commands now use NewReadOnly() which opens with mode=ro, skips WAL pragma/schema/migrations, and skips checkpoint on close.","created_by":"beads/crew/emma"} +{"id":"bd-mjn78","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:13:48.459613-08:00","updated_at":"2026-01-10T16:13:48.531509-08:00","closed_at":"2026-01-10T16:13:48.531509-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-mjzs3","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T14:37:01.471314-08:00","updated_at":"2026-01-10T14:37:01.50657-08:00","closed_at":"2026-01-10T14:37:01.50657-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-mlbzl","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T10:40:21.862871-08:00","updated_at":"2026-01-11T10:40:21.925733-08:00","closed_at":"2026-01-11T10:40:21.925733-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-mlcz","title":"Implement bd migrate command","description":"Add bd migrate command to move issues between repos with filtering. Should support: filtering by status/priority/labels, dry-run mode, preserving dependencies, handling source_repo field updates.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-05T18:04:29.902151-08:00","updated_at":"2025-11-05T18:42:52.536951-08:00","closed_at":"2025-11-05T18:42:52.536951-08:00","dependencies":[{"issue_id":"bd-mlcz","depends_on_id":"bd-8rd","type":"parent-child","created_at":"2025-11-05T18:04:39.072312-08:00","created_by":"daemon"}]} {"id":"bd-mn9p","title":"bd-hv01: Brittle string comparison breaks with JSON field reordering","description":"## Problem\ndeletion_tracking.go:125 uses string comparison to detect unchanged issues:\n\n```go\nif leftLine, existsInLeft := leftIndex[id]; existsInLeft \u0026\u0026 leftLine == baseLine {\n deletions = append(deletions, id)\n}\n```\n\nThis breaks if:\n- JSON field order changes (legal in JSON)\n- Timestamps updated by import/export\n- Whitespace/formatting changes\n- Floating point precision varies\n\n## Example Failure\n```json\n// baseLine\n{\"id\":\"bd-1\",\"priority\":1,\"status\":\"open\"}\n// leftLine (same data, different order)\n{\"id\":\"bd-1\",\"status\":\"open\",\"priority\":1}\n```\nThese are semantically identical but string comparison fails.\n\n## Fix\nParse and compare JSON semantically:\n```go\nfunc jsonEquals(a, b string) bool {\n var objA, objB map[string]interface{}\n json.Unmarshal([]byte(a), \u0026objA)\n json.Unmarshal([]byte(b), \u0026objB)\n return reflect.DeepEqual(objA, objB)\n}\n```\n\n## Files Affected\n- cmd/bd/deletion_tracking.go:125\n- cmd/bd/deletion_tracking.go:134-170 (buildIDToLineMap)","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-06T18:15:35.090716-08:00","updated_at":"2025-11-06T18:46:55.889888-08:00","closed_at":"2025-11-06T18:46:55.889888-08:00","dependencies":[{"issue_id":"bd-mn9p","depends_on_id":"bd-rbxi","type":"parent-child","created_at":"2025-11-06T18:19:14.790898-08:00","created_by":"daemon"}]} {"id":"bd-mnap","title":"Investigate performance issues in VS Code Copilot (Windows)","description":"Beads unusable in Windows 11 VS Code Copilot chat with Sonnet 4.5.\nSummary event happens every 3-4 turns, taking 3 minutes.\nCopilot summarizes after ~125k tokens despite model supporting 1M.\nLarge context size of beads might be triggering aggressive summarization.\nNeed workaround or optimization for context size.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-20T18:56:30.124918-05:00","updated_at":"2025-12-09T18:38:37.700698972-05:00","closed_at":"2025-11-28T23:37:52.199294-08:00"} @@ -1772,8 +1769,8 @@ {"id":"bd-mol-lks","title":"Verify PyPI package","description":"Confirm PyPI package published.\n\n```bash\npip index versions beads-mcp 2\u003e/dev/null | head -3\n```\n\nOr check: https://pypi.org/project/beads-mcp/\n\nShould show 0.99.0-test.","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-29T17:09:12.467224-08:00","updated_at":"2026-01-04T23:49:29.777567-08:00","deleted_at":"2026-01-04T23:49:29.777567-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-mol-mht","title":"Verify version consistency","description":"Confirm all versions match 0.39.0.\n\n```bash\ngrep 'Version = ' cmd/bd/version.go\njq -r '.version' .claude-plugin/plugin.json\njq -r '.version' npm-package/package.json\ngrep 'version = ' integrations/beads-mcp/pyproject.toml\n```\n\nAll should show 0.39.0.","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-27T19:31:50.997714-08:00","updated_at":"2026-01-04T23:49:29.777567-08:00","dependencies":[{"issue_id":"bd-mol-mht","depends_on_id":"bd-mol-9ea","type":"parent-child","created_at":"2025-12-27T19:31:51.00493-08:00","created_by":"beads/crew/dave"}],"deleted_at":"2026-01-04T23:49:29.777567-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-mol-mwh","title":"Run bump-version.sh","description":"Update all component versions atomically.\n\n```bash\n./scripts/bump-version.sh 0.41.0\n```\n\nThis updates:\n- cmd/bd/version.go\n- .claude-plugin/*.json\n- integrations/beads-mcp/pyproject.toml\n- integrations/beads-mcp/src/beads_mcp/__init__.py\n- npm-package/package.json\n- Hook templates\n- README.md\n- CHANGELOG.md (adds date)","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-29T16:29:32.299951-08:00","updated_at":"2026-01-04T23:49:29.777567-08:00","close_reason":"Version files updated to 0.41.0","deleted_at":"2026-01-04T23:49:29.777567-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-mol-p7i","title":"beads-release","description":"Beads release workflow - from version bump to verified release.\n\nThis formula orchestrates a complete release cycle:\n1. Preflight checks (clean git, up to date)\n2. Documentation updates (CHANGELOG, info.go)\n3. Version bump (all components)\n4. Git operations (commit, tag, push)\n5. CI verification (GitHub Actions)\n6. Artifact verification (GitHub, npm, PyPI)\n7. Local installation update\n8. Daemon restart\n\n## Usage\n\n```bash\nbd wisp create beads-release --var version=0.37.0\n```\n\nOr assign to a polecat:\n```bash\ngt sling beads/polecats/p1 --formula beads-release --var version=0.37.0\n```","status":"tombstone","priority":2,"issue_type":"epic","assignee":"beads/crew/emma","created_at":"2025-12-29T16:29:32.298557-08:00","updated_at":"2026-01-04T23:49:29.777567-08:00","close_reason":"v0.41.0 released to GitHub, PyPI, and npm","deleted_at":"2026-01-04T23:49:29.777567-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"epic"} -{"id":"bd-mol-pjc","title":"Gate: gh:run release.yml","description":"Async gate for step await-ci","status":"tombstone","priority":2,"issue_type":"gate","created_at":"2026-01-04T23:05:15.393319-08:00","updated_at":"2026-01-04T23:49:29.777567-08:00","close_reason":"GitHub Actions release workflow completed","dependencies":[{"issue_id":"bd-mol-pjc","depends_on_id":"bd-mol-wba","type":"parent-child","created_at":"2026-01-04T23:05:15.401429-08:00","created_by":"beads/crew/dave"}],"deleted_at":"2026-01-04T23:49:29.777567-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"gate","await_type":"gh:run","await_id":"release.yml","timeout":1800000000000} +{"id":"bd-mol-p7i","title":"beads-release","description":"Beads release workflow - from version bump to verified release.\n\nThis formula orchestrates a complete release cycle:\n1. Preflight checks (clean git, up to date)\n2. Documentation updates (CHANGELOG, info.go)\n3. Version bump (all components)\n4. Git operations (commit, tag, push)\n5. CI verification (GitHub Actions)\n6. Artifact verification (GitHub, npm, PyPI)\n7. Local installation update\n8. Daemon restart\n\n## Usage\n\n```bash\nbd wisp create beads-release --var version=0.37.0\n```\n\nOr assign to a polecat:\n```bash\ngt sling beads/polecats/p1 --formula beads-release --var version=0.37.0\n```","status":"tombstone","priority":2,"issue_type":"epic","created_at":"2025-12-29T16:29:32.298557-08:00","updated_at":"2026-01-04T23:49:29.777567-08:00","close_reason":"v0.41.0 released to GitHub, PyPI, and npm","deleted_at":"2026-01-04T23:49:29.777567-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"epic"} +{"id":"bd-mol-pjc","title":"Gate: gh:run release.yml","description":"Async gate for step await-ci","status":"tombstone","priority":2,"issue_type":"gate","created_at":"2026-01-04T23:05:15.393319-08:00","updated_at":"2026-01-04T23:49:29.777567-08:00","close_reason":"GitHub Actions release workflow completed","dependencies":[{"issue_id":"bd-mol-pjc","depends_on_id":"bd-mol-wba","type":"parent-child","created_at":"2026-01-04T23:05:15.401429-08:00","created_by":"beads/crew/dave"}],"deleted_at":"2026-01-04T23:49:29.777567-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"gate"} {"id":"bd-mol-pze","title":"mol-beads-release","description":"Release checklist for beads version 0.99.0.\n\nThis molecule ensures all release steps are completed properly.\nVariable: 0.99.0 - target version (e.g., 0.35.0)\n\n## Step: update-release-notes\nUpdate cmd/bd/info.go with release notes for 0.99.0.\n\nAdd a new VersionChange entry at the top of versionChanges slice:\n```go\n{\n Version: \"0.99.0\",\n Date: \"YYYY-MM-DD\",\n Changes: []string{\n \"NEW: Feature description\",\n \"FIX: Bug fix description\",\n \"IMPROVED: Enhancement description\",\n },\n},\n```\n\nRun `git log --oneline v\u003cprevious\u003e..HEAD` to see what changed.\n\n## Step: update-changelog\nUpdate CHANGELOG.md with detailed release notes.\n\nAdd a new section after [Unreleased]:\n```markdown\n## [0.99.0] - YYYY-MM-DD\n\n### Added\n- **Feature name** (issue-id) - Description\n\n### Changed\n- **Change description** (issue-id)\n\n### Fixed\n- **Bug fix** (issue-id) - Description\n```\n\nSort by importance, not chronologically.\nNeeds: update-release-notes\n\n## Step: bump-version\nRun the version bump script.\n\n```bash\n./scripts/bump-version.sh 0.99.0\n```\n\nThis updates version in all files:\n- cmd/bd/version.go\n- .claude-plugin/*.json\n- integrations/beads-mcp/pyproject.toml\n- npm-package/package.json\n- Hook templates\n\nNeeds: update-changelog\n\n## Step: run-tests\nRun tests and verify lint passes.\n\n```bash\ngo test -short ./...\n```\n\nCI will run full lint, but fix any obvious issues first.\nNeeds: bump-version\n\n## Step: commit-release\nCommit the release changes.\n\n```bash\ngit add -A\ngit commit -m \"chore: bump version to v0.99.0\"\n```\n\nNeeds: run-tests\n\n## Step: push-and-tag\nPush commit and create release tag.\n\n```bash\ngit push origin main\ngit tag v0.99.0\ngit push origin v0.99.0\n```\n\nThis triggers GitHub Actions release workflow.\nNeeds: commit-release\n\n## Step: wait-for-ci\nWait for GitHub Actions to complete.\n\nMonitor: https://github.com/steveyegge/beads/actions\n\nCI will:\n- Build binaries via GoReleaser\n- Create GitHub Release with assets\n- Publish to npm (@beads/bd)\n- Publish to PyPI (beads-mcp)\n- Update Homebrew tap\n\nWait until all jobs succeed (~5-10 min).\nNeeds: push-and-tag\n\n## Step: verify-release\nVerify the release is complete.\n\n```bash\n# Check GitHub release\ngh release view v0.99.0\n\n# Check Homebrew\nbrew update \u0026\u0026 brew info steveyegge/beads/bd\n\n# Check npm\nnpm view @beads/bd version\n\n# Check PyPI\npip index versions beads-mcp\n```\n\nNeeds: wait-for-ci\n\n## Step: update-local\nUpdate local installations.\n\n```bash\n# Upgrade Homebrew\nbrew upgrade steveyegge/beads/bd\n\n# Or install from source\n./scripts/bump-version.sh 0.99.0 --install\n\n# Install MCP locally\npip install -e integrations/beads-mcp\n\n# Restart daemons\npkill -f \"bd daemon\" || true\n```\n\nVerify: `bd --version` shows 0.99.0\nNeeds: verify-release\n\n## Step: manual-publish\n(Optional) Manual publish if CI failed.\n\n```bash\n# npm (requires npm login)\n./scripts/bump-version.sh 0.99.0 --publish-npm\n\n# PyPI (requires TWINE credentials)\n./scripts/bump-version.sh 0.99.0 --publish-pypi\n\n# Or both\n./scripts/bump-version.sh 0.99.0 --publish-all\n```\n\nOnly needed if CI publishing failed.\nNeeds: wait-for-ci","status":"tombstone","priority":2,"issue_type":"molecule","created_at":"2025-12-27T00:32:46.883114-08:00","updated_at":"2026-01-04T23:49:29.777567-08:00","deleted_at":"2026-01-04T23:49:29.777567-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"molecule"} {"id":"bd-mol-rvn","title":"Review changes since last release","description":"Understand what's being released.\n\n```bash\ngit log $(git describe --tags --abbrev=0)..HEAD --oneline\n```\n\nCategorize changes:\n- Features (feat:)\n- Fixes (fix:)\n- Breaking changes\n- Documentation","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-29T16:29:32.299404-08:00","updated_at":"2026-01-04T23:49:29.777567-08:00","close_reason":"Reviewed 80+ commits since v0.40.0","deleted_at":"2026-01-04T23:49:29.777567-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-mol-v3g","title":"Verify PyPI package","description":"Confirm PyPI package published.\n\n```bash\npip index versions beads-mcp 2\u003e/dev/null | head -3\n```\n\nOr check: https://pypi.org/project/beads-mcp/\n\nShould show 0.39.0.","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-27T19:34:09.559818-08:00","updated_at":"2026-01-04T23:49:29.777567-08:00","dependencies":[{"issue_id":"bd-mol-v3g","depends_on_id":"bd-mol-68e","type":"blocks","created_at":"2025-12-27T19:34:09.611251-08:00","created_by":"beads/crew/dave"}],"deleted_at":"2026-01-04T23:49:29.777567-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} @@ -1799,238 +1796,238 @@ {"id":"bd-mol-yxv","title":"Update info.go versionChanges","description":"Add entry to versionChanges in cmd/bd/info.go.\n\nThis powers `bd info --whats-new` for agents.\n\n```go\n\"0.39.0\": {\n \"summary\": \"Brief description\",\n \"changes\": []string{\n \"Key change 1\",\n \"Key change 2\",\n },\n},\n```\n\nFocus on workflow-impacting changes agents need to know.","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-27T19:34:09.557636-08:00","updated_at":"2026-01-04T23:49:29.777567-08:00","dependencies":[{"issue_id":"bd-mol-yxv","depends_on_id":"bd-mol-937","type":"blocks","created_at":"2025-12-27T19:34:09.594033-08:00","created_by":"beads/crew/dave"}],"deleted_at":"2026-01-04T23:49:29.777567-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-mol-z5v","title":"Update info.go versionChanges","description":"Add entry to versionChanges in cmd/bd/info.go.\n\nThis powers `bd info --whats-new` for agents.\n\n```go\n\"0.41.0\": {\n \"summary\": \"Brief description\",\n \"changes\": []string{\n \"Key change 1\",\n \"Key change 2\",\n },\n},\n```\n\nFocus on workflow-impacting changes agents need to know.","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-29T16:29:32.299762-08:00","updated_at":"2026-01-04T23:49:29.777567-08:00","close_reason":"Added v0.41.0 to versionChanges","deleted_at":"2026-01-04T23:49:29.777567-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-mql4","title":"getLocalSyncBranch silently ignores YAML parse errors","description":"In autoimport.go:170-172, YAML parsing errors are silently ignored. If a user has malformed YAML in config.yaml, sync-branch will just silently be empty with no feedback.\n\nRecommendation: Add debug logging since this function is only called during auto-import, and debugging silent failures is painful.\n\nAdd: debug.Logf(\"Warning: failed to parse config.yaml: %v\", err)","status":"closed","priority":4,"issue_type":"task","created_at":"2025-12-07T02:03:44.217728-08:00","updated_at":"2025-12-30T18:12:30.967491-08:00","closed_at":"2025-12-30T16:50:13.838626-08:00","close_reason":"Added debug.Logf calls in getLocalSyncBranch and isNoDbModeConfigured to log YAML parse errors instead of silently ignoring them"} -{"id":"bd-mr0vj","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:30:19.398445-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T11:30:19.472868-08:00","closed_at":"2026-01-13T11:30:19.472868-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-mrx49","title":"Review and test PR #1063: add warrant issue type","description":"dispatched_by: beads/crew/emma","status":"closed","priority":1,"issue_type":"task","assignee":"beads/crew/giles","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:30:00.723316-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-13T11:35:38.296381-08:00","closed_at":"2026-01-13T11:35:38.296381-08:00","close_reason":"Reviewed PR #1063. Requested changes: branch needs rebase on main (missing TypeRig, missing ValidateForImport changes). Core changes work correctly - TypeWarrant is valid and closed issues can now have deleted_at."} -{"id":"bd-msp88","title":"Review and merge PR #1047: Skip macOS read-only tests","description":"dispatched_by: beads/crew/emma","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/dave","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T16:35:27.943568-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T16:43:36.202064-08:00","closed_at":"2026-01-12T16:43:36.202064-08:00","close_reason":"PR #1047 merged. Skips macOS read-only file tests since macOS allows owners to write to 0444 files."} -{"id":"bd-msx8f","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:46:41.312589-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T02:46:41.383053-08:00","closed_at":"2026-01-12T02:46:41.383053-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-muhs7","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T23:02:17.295904-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-09T23:02:17.333687-08:00","closed_at":"2026-01-09T23:02:17.333687-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-mr0vj","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T11:30:19.398445-08:00","updated_at":"2026-01-13T11:30:19.472868-08:00","closed_at":"2026-01-13T11:30:19.472868-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-mrx49","title":"Review and test PR #1063: add warrant issue type","description":"dispatched_by: beads/crew/emma","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-13T11:30:00.723316-08:00","updated_at":"2026-01-13T11:35:38.296381-08:00","closed_at":"2026-01-13T11:35:38.296381-08:00","close_reason":"Reviewed PR #1063. Requested changes: branch needs rebase on main (missing TypeRig, missing ValidateForImport changes). Core changes work correctly - TypeWarrant is valid and closed issues can now have deleted_at.","created_by":"beads/crew/emma"} +{"id":"bd-msp88","title":"Review and merge PR #1047: Skip macOS read-only tests","description":"dispatched_by: beads/crew/emma","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T16:35:27.943568-08:00","updated_at":"2026-01-12T16:43:36.202064-08:00","closed_at":"2026-01-12T16:43:36.202064-08:00","close_reason":"PR #1047 merged. Skips macOS read-only file tests since macOS allows owners to write to 0444 files.","created_by":"beads/crew/emma"} +{"id":"bd-msx8f","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T02:46:41.312589-08:00","updated_at":"2026-01-12T02:46:41.383053-08:00","closed_at":"2026-01-12T02:46:41.383053-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-muhs7","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T23:02:17.295904-08:00","updated_at":"2026-01-09T23:02:17.333687-08:00","closed_at":"2026-01-09T23:02:17.333687-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} {"id":"bd-muls","title":"Install and test MCP Agent Mail locally","description":"Install MCP Agent Mail on a single development machine and verify basic functionality.\n\nAcceptance Criteria:\n- Server installed via one-line installer\n- Server running on port 8765\n- Can register a project via HTTP\n- Can register an agent identity\n- Web UI accessible at /mail","notes":"Tested local installation. Server runs on port 8765, web UI works. MCP API tool execution has errors - needs debugging. See /tmp/bd-muls-report.md for details.","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-07T22:41:59.896735-08:00","updated_at":"2025-11-07T23:14:59.1182-08:00","closed_at":"2025-11-07T23:14:59.1182-08:00"} {"id":"bd-muw","title":"Add empty tasks validation in workflow create","description":"workflow.go:321 will panic if wf.Tasks is empty. Add validation that len(wf.Tasks) \u003e 0 before accessing wf.Tasks[0].","status":"tombstone","priority":3,"issue_type":"bug","created_at":"2025-12-17T22:23:00.75707-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-mv6h","title":"Add test coverage for external dep edge cases","description":"During code review of bd-zmmy, identified missing test coverage:\n\n1. RemoveDependency with external ref target (will fail - see bd-a3sj)\n2. GetBlockedIssues with mix of local and external blockers\n3. GetDependencyTree with external deps\n4. AddDependency cycle detection with external refs (should be skipped?)\n5. External dep resolution with WAL mode database\n6. External dep resolution when target project has no .beads directory\n7. External dep resolution with invalid external: format variations\n\nPriority 2 because bd-a3sj is a real bug that tests would catch.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T23:45:37.50093-08:00","updated_at":"2025-12-22T22:32:09.515096-08:00","closed_at":"2025-12-22T22:32:09.515096-08:00","dependencies":[{"issue_id":"bd-mv6h","depends_on_id":"bd-zmmy","type":"discovered-from","created_at":"2025-12-21T23:45:37.501495-08:00","created_by":"daemon"}]} -{"id":"bd-mvenv","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T14:45:17.414908-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T14:45:17.450388-08:00","closed_at":"2026-01-10T14:45:17.450388-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-mvenv","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T14:45:17.414908-08:00","updated_at":"2026-01-10T14:45:17.450388-08:00","closed_at":"2026-01-10T14:45:17.450388-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-mwl7","title":"Mol Mall: Formula marketplace using GitHub as backend","description":"Create a marketplace for sharing molecule formulas using GitHub repos as the hosting backend.\n\n## Why GitHub?\n\nGitHub solves multiple problems at once:\n- **Hosting**: Raw file URLs for formula.json\n- **Versioning**: Git tags (v1.0.0, v1.2.0)\n- **Auth**: GitHub tokens for private formulas\n- **Discovery**: GitHub search, topics, stars\n- **Collaboration**: PRs for contributions, issues for bugs\n- **Organizations**: Natural scoping (@anthropic/, @gastown/)\n\n## URL Scheme\n\n```bash\n# Direct GitHub URL\nbd mol install github.com/anthropics/mol-code-review\n\n# With version tag\nbd mol install github.com/anthropics/mol-code-review@v1.2.0\n\n# Shorthand (via registry lookup)\nbd mol install @anthropic/mol-code-review\n```\n\n## Architecture\n\n### Distributed Model (like Go modules)\nEach formula lives in its own repo:\n```\ngithub.com/anthropics/mol-code-review/\n├── formula.json # The formula\n├── README.md # Documentation\n└── CHANGELOG.md # Version history\n```\n\n### Optional Registry (for discovery)\n```\ngithub.com/anthropics/mol-mall/\n└── registry.json # Index pointing to formula repos\n```\n\n## Child Issues\n\n1. `bd mol export` - Proto → Formula file\n2. `bd mol promote` - Distilled proto → Catalog proto (one step)\n3. `bd mol install` - GitHub → Local proto\n4. `bd mol update` - Check for newer versions\n5. `bd mol search` - Find formulas (GitHub API)\n6. `bd mol publish` - Push formula to GitHub repo\n7. Formula versioning - Version field + git tag integration\n8. Installation tracking - .beads/installed.json\n\n## ID Namespace Design\n\n| Entity | ID Format | Example |\n|--------|-----------|---------|\n| Formula (GitHub) | `github.com/org/repo` | `github.com/anthropics/mol-code-review` |\n| Catalog proto (local) | `mol-name` | `mol-code-review` |\n| Distilled proto | `\u003cdb\u003e-proto-xxx` | `bd-proto-a7f` |\n| Poured instance | `\u003cdb\u003e-mol-xxx` | `gt-mol-b8c` |\n| Wisp instance | `\u003cdb\u003e-wisp-xxx` | `hq-wisp-d9e` |\n","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-25T12:05:05.848017-08:00","updated_at":"2025-12-25T12:09:39.767832-08:00","closed_at":"2025-12-25T12:09:39.767832-08:00"} {"id":"bd-mxmlg","title":"Digest: mol-refinery-patrol","description":"Patrol: queue empty, no merges needed","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T17:59:22.372428-08:00","updated_at":"2026-01-10T17:59:22.372428-08:00","closed_at":"2026-01-10T17:59:22.372379-08:00","close_reason":"Squashed from 11 wisps","dependencies":[{"issue_id":"bd-mxmlg","depends_on_id":"bd-wisp-uvd","type":"parent-child","created_at":"2026-01-10T17:59:22.373333-08:00","created_by":"beads/refinery"}]} {"id":"bd-my64","title":"Pre-push hook and daemon export produce different JSONL","description":"After committing and pushing, git status shows .beads/beads.jsonl as dirty. Investigation shows:\n\n1. Pre-push hook ran successfully and exported DB → JSONL\n2. Push completed\n3. Shortly after, daemon exported DB → JSONL again with different content\n4. Diff shows comments added to old issues (bd-23a8, bd-6049, bd-87a0)\n\nTimeline:\n- Commit c731c45 \"Update beads JSONL\"\n- Pre-push hook exported JSONL\n- Push succeeded\n- Daemon PID 33314 exported again with different content\n\nQuestions:\n1. Did someone run a command between commit and daemon export?\n2. Is there a timing issue where pre-push hook doesn't capture all DB changes?\n3. Should pre-commit hook flush daemon changes before committing?\n\nThe comments appear to be from Nov 5 (created_at: 2025-11-05T08:38:46Z) but are only appearing in JSONL now. This suggests the DB had these comments but they weren't exported during pre-push.\n\nPossible causes:\n- Pre-push hook uses BEADS_NO_DAEMON=1 which might skip pending writes\n- Daemon has unflushed changes in memory\n- Race condition between pre-push export and daemon's periodic export","notes":"Improved fix based on oracle code review:\n1. Pre-push now flushes pending changes first (prevents debounce race)\n2. Uses git status --porcelain to catch all change types\n3. Handles both beads.jsonl and issues.jsonl\n4. Works even if bd not installed (git-only check)","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-06T18:49:54.570993-08:00","updated_at":"2025-11-06T19:01:14.549032-08:00","closed_at":"2025-11-06T18:57:42.710282-08:00"} -{"id":"bd-mydeg","title":"Review PR #961: Fix daemon JSON output for dep","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #961 (steveyegge/beads)\n\nPR: https://github.com/steveyegge/beads/pull/961\nAuthor: peterkc\n\nFixes bd dep add/remove --json returning empty output in daemon mode.\n- gh pr view 961 --repo steveyegge/beads\n- gh pr diff 961 --repo steveyegge/beads\n- If good: gh pr merge 961 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/fang","created_at":"2026-01-08T14:30:22.804372-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:36:26.869204-08:00","closed_at":"2026-01-08T14:36:26.869204-08:00","close_reason":"PR #961 merged - fix daemon JSON output for dep add/remove"} -{"id":"bd-mypl","title":"Default bd list to non-closed issues","description":"Change bd list default from showing all issues to showing only actionable issues (open, in_progress, blocked, deferred). This addresses GH#788 where agents get context blown out by closed issues.\n\nCurrent: bd list shows everything including closed\nProposed: bd list shows non-closed by default\n\nThis is the core fix - other enhancements depend on this change.","notes":"## Implementation Plan\n\n### Code Changes (cmd/bd/list.go)\n\n1. **Add new filter logic in Run function** (~line 393-399):\n```go\n// Default to non-closed if no status filter specified\nif status == \"\" \u0026\u0026 \\!cmd.Flags().Changed(\"all\") {\n // Show actionable issues by default (GH#788)\n filter.ExcludeStatus = []types.Status{\"closed\"}\n}\n```\n\n2. **Need to add ExcludeStatus to IssueFilter** (internal/types/types.go):\n```go\ntype IssueFilter struct {\n // ... existing fields ...\n ExcludeStatus []Status // Exclude these statuses\n}\n```\n\n3. **Update SearchIssues query** (internal/storage/sqlite/issues.go):\n```go\nif len(filter.ExcludeStatus) \u003e 0 {\n placeholders := make([]string, len(filter.ExcludeStatus))\n for i, s := range filter.ExcludeStatus {\n placeholders[i] = \"?\"\n args = append(args, string(s))\n }\n conditions = append(conditions, \n fmt.Sprintf(\"status NOT IN (%s)\", strings.Join(placeholders, \",\")))\n}\n```\n\n### Testing\n- Verify `bd list` shows open, in_progress, blocked, deferred (not closed)\n- Verify `bd list --status=closed` still works\n- Verify `bd list --all` shows everything (requires bd-34q1)\n\n### Backwards Compatibility\n- Scripts using `bd list | grep` may get fewer results\n- Document in changelog: \"bd list now defaults to non-closed issues\"","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-12-29T15:25:06.38667-08:00","created_by":"stevey","updated_at":"2025-12-29T17:53:30.217188-08:00","closed_at":"2025-12-29T17:53:30.217188-08:00","close_reason":"Implemented in single commit","labels":["gh:788"]} -{"id":"bd-n0l8j","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T21:42:10.708451-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-07T21:42:15.897669-08:00","closed_at":"2026-01-07T21:42:15.897669-08:00","close_reason":"auto-closed session event"} -{"id":"bd-n0md6","title":"Review and merge PR #975: fix sync --import-only store nil","description":"dispatched_by: beads/crew/emma\n\n## Task\nReview and merge PR #975 from juanre.\n\n**PR**: https://github.com/steveyegge/beads/pull/975\n\n## What it does\n- Adds ensureStoreActive() call after daemon disconnect in sync.go\n- Fixes 'no database store available for inline import' error\n- Includes comprehensive test documenting the bug and fix\n\n## Easy-win criteria met\n- Bug fix with clear reproduction and solution\n- Has comprehensive test\n- Small diff (143 additions, 0 deletions)\n- Low risk\n\n## Instructions\n1. Clone/fetch the PR: gh pr checkout 975 --repo steveyegge/beads\n2. Run tests: go test ./cmd/bd/...\n3. Review the diff: gh pr diff 975 --repo steveyegge/beads\n4. If tests pass and code looks good, approve and merge\n5. Close this bead when done","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/fang","created_at":"2026-01-09T10:59:58.832796-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T13:44:59.1482-08:00","closed_at":"2026-01-09T13:44:59.1482-08:00","close_reason":"PR #975 reviewed, approved, and merged. Fix adds ensureStoreActive() call after daemon disconnect in sync.go to fix 'no database store available for inline import' error."} -{"id":"bd-n14te","title":"Test integration issue","description":"This is a real integration test","status":"open","priority":1,"issue_type":"bug","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:10.443519-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:10.443519-08:00"} -{"id":"bd-n1mg5","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T13:33:21.466543-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T13:33:21.54757-08:00","closed_at":"2026-01-13T13:33:21.54757-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-n1xj7","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:08:04.628998-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T02:08:04.673308-08:00","closed_at":"2026-01-12T02:08:04.673308-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-mydeg","title":"Review PR #961: Fix daemon JSON output for dep","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #961 (steveyegge/beads)\n\nPR: https://github.com/steveyegge/beads/pull/961\nAuthor: peterkc\n\nFixes bd dep add/remove --json returning empty output in daemon mode.\n- gh pr view 961 --repo steveyegge/beads\n- gh pr diff 961 --repo steveyegge/beads\n- If good: gh pr merge 961 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-08T14:30:22.804372-08:00","updated_at":"2026-01-08T14:36:26.869204-08:00","closed_at":"2026-01-08T14:36:26.869204-08:00","close_reason":"PR #961 merged - fix daemon JSON output for dep add/remove","created_by":"beads/crew/emma"} +{"id":"bd-mypl","title":"Default bd list to non-closed issues","description":"Change bd list default from showing all issues to showing only actionable issues (open, in_progress, blocked, deferred). This addresses GH#788 where agents get context blown out by closed issues.\n\nCurrent: bd list shows everything including closed\nProposed: bd list shows non-closed by default\n\nThis is the core fix - other enhancements depend on this change.","notes":"## Implementation Plan\n\n### Code Changes (cmd/bd/list.go)\n\n1. **Add new filter logic in Run function** (~line 393-399):\n```go\n// Default to non-closed if no status filter specified\nif status == \"\" \u0026\u0026 \\!cmd.Flags().Changed(\"all\") {\n // Show actionable issues by default (GH#788)\n filter.ExcludeStatus = []types.Status{\"closed\"}\n}\n```\n\n2. **Need to add ExcludeStatus to IssueFilter** (internal/types/types.go):\n```go\ntype IssueFilter struct {\n // ... existing fields ...\n ExcludeStatus []Status // Exclude these statuses\n}\n```\n\n3. **Update SearchIssues query** (internal/storage/sqlite/issues.go):\n```go\nif len(filter.ExcludeStatus) \u003e 0 {\n placeholders := make([]string, len(filter.ExcludeStatus))\n for i, s := range filter.ExcludeStatus {\n placeholders[i] = \"?\"\n args = append(args, string(s))\n }\n conditions = append(conditions, \n fmt.Sprintf(\"status NOT IN (%s)\", strings.Join(placeholders, \",\")))\n}\n```\n\n### Testing\n- Verify `bd list` shows open, in_progress, blocked, deferred (not closed)\n- Verify `bd list --status=closed` still works\n- Verify `bd list --all` shows everything (requires bd-34q1)\n\n### Backwards Compatibility\n- Scripts using `bd list | grep` may get fewer results\n- Document in changelog: \"bd list now defaults to non-closed issues\"","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-12-29T15:25:06.38667-08:00","updated_at":"2025-12-29T17:53:30.217188-08:00","closed_at":"2025-12-29T17:53:30.217188-08:00","close_reason":"Implemented in single commit","created_by":"stevey"} +{"id":"bd-n0l8j","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T21:42:10.708451-08:00","updated_at":"2026-01-07T21:42:15.897669-08:00","closed_at":"2026-01-07T21:42:15.897669-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/fang"} +{"id":"bd-n0md6","title":"Review and merge PR #975: fix sync --import-only store nil","description":"dispatched_by: beads/crew/emma\n\n## Task\nReview and merge PR #975 from juanre.\n\n**PR**: https://github.com/steveyegge/beads/pull/975\n\n## What it does\n- Adds ensureStoreActive() call after daemon disconnect in sync.go\n- Fixes 'no database store available for inline import' error\n- Includes comprehensive test documenting the bug and fix\n\n## Easy-win criteria met\n- Bug fix with clear reproduction and solution\n- Has comprehensive test\n- Small diff (143 additions, 0 deletions)\n- Low risk\n\n## Instructions\n1. Clone/fetch the PR: gh pr checkout 975 --repo steveyegge/beads\n2. Run tests: go test ./cmd/bd/...\n3. Review the diff: gh pr diff 975 --repo steveyegge/beads\n4. If tests pass and code looks good, approve and merge\n5. Close this bead when done","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-09T10:59:58.832796-08:00","updated_at":"2026-01-09T13:44:59.1482-08:00","closed_at":"2026-01-09T13:44:59.1482-08:00","close_reason":"PR #975 reviewed, approved, and merged. Fix adds ensureStoreActive() call after daemon disconnect in sync.go to fix 'no database store available for inline import' error.","created_by":"beads/crew/emma"} +{"id":"bd-n14te","title":"Test integration issue","description":"This is a real integration test","status":"open","priority":1,"issue_type":"bug","created_at":"2026-01-11T18:16:10.443519-08:00","updated_at":"2026-01-11T18:16:10.443519-08:00","created_by":"beads/crew/wolf"} +{"id":"bd-n1mg5","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T13:33:21.466543-08:00","updated_at":"2026-01-13T13:33:21.54757-08:00","closed_at":"2026-01-13T13:33:21.54757-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-n1xj7","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T02:08:04.628998-08:00","updated_at":"2026-01-12T02:08:04.673308-08:00","closed_at":"2026-01-12T02:08:04.673308-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-n25","title":"Speed up main_test.go - tests hang indefinitely due to nil rootCtx","description":"## Problem\n\nmain_test.go tests are hanging indefinitely, making them unusable and blocking development.\n\n## Root Cause\n\nTests that call flushToJSONL() or autoImportIfNewer() hang forever because:\n- rootCtx is nil in test environment (defined in cmd/bd/main.go:67)\n- flushToJSONL() uses rootCtx for DB operations (autoflush.go:503)\n- When rootCtx is nil, DB calls timeout/hang indefinitely\n\n## Affected Tests (10+)\n\n- TestAutoFlushOnExit\n- TestAutoFlushJSONLContent \n- TestAutoFlushErrorHandling\n- TestAutoImportIfNewer\n- TestAutoImportDisabled\n- TestAutoImportWithUpdate\n- TestAutoImportNoUpdate\n- TestAutoImportMergeConflict\n- TestAutoImportConflictMarkerFalsePositive\n- TestAutoImportClosedAtInvariant\n\n## Proof\n\n```bash\n# Before fix: TestAutoFlushJSONLContent HANGS (killed after 2+ min)\n# After adding rootCtx init: Completes in 0.04s\n# Speedup: ∞ → 0.04s\n```\n\n## Solution\n\nSee MAIN_TEST_OPTIMIZATION_PLAN.md for complete fix plan.\n\n**Quick Fix (5 min)**: Add to each hanging test:\n```go\nctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)\ndefer cancel()\noldRootCtx := rootCtx\nrootCtx = ctx\ndefer func() { rootCtx = oldRootCtx }()\n```\n\n**Full Optimization (40 min total)**:\n1. Fix rootCtx (5 min) - unblocks tests\n2. Reduce sleep durations 10x (2 min) - saves ~280ms\n3. Use in-memory DBs (10 min) - saves ~1s\n4. Share test fixtures (15 min) - saves ~1.2s\n5. Fix skipped debounce test (5 min)\n\n## Expected Results\n\n- Tests go from hanging → \u003c5s total runtime\n- Keep critical integration test coverage\n- Tests caught real bugs: bd-270, bd-206, bd-160\n\n## Files\n\n- Analysis: MAIN_TEST_REFACTOR_NOTES.md\n- Solution: MAIN_TEST_OPTIMIZATION_PLAN.md\n- Tests: cmd/bd/main_test.go (18 tests, 1322 LOC)\n\n## Priority\n\nP1 - Blocking development, tests unusable in current state","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-21T18:27:48.942814-05:00","updated_at":"2025-11-21T18:44:21.944901-05:00","closed_at":"2025-11-21T18:44:21.944901-05:00"} -{"id":"bd-n2xsj","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:13:41.779573-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T16:13:41.820512-08:00","closed_at":"2026-01-10T16:13:41.820512-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-n2xsj","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:13:41.779573-08:00","updated_at":"2026-01-10T16:13:41.820512-08:00","closed_at":"2026-01-10T16:13:41.820512-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-n386","title":"Improve test coverage for internal/daemon (27.3% → 60%)","description":"The daemon package has only 27.3% test coverage. The daemon is critical for background operations and reliability.\n\nKey areas needing tests:\n- Daemon autostart logic\n- Socket handling\n- PID file management\n- Health checks\n\nCurrent coverage: 27.3%\nTarget coverage: 60%","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-13T20:43:00.895238-08:00","updated_at":"2025-12-23T22:36:08.583672-08:00","closed_at":"2025-12-23T22:36:08.583672-08:00"} {"id":"bd-n3v","title":"Error committing to sync branch: failed to create worktree","description":"\u003e bd sync --no-daemon\n→ Exporting pending changes to JSONL...\n→ Committing changes to sync branch 'beads-sync'...\nError committing to sync branch: failed to create worktree: failed to create worktree parent directory: mkdir /var/home/matt/dev/beads/fix-ci/.git: not a directory","notes":"**Problem Diagnosed**: The `bd sync` command was failing with \"mkdir /var/home/matt/dev/beads/fix-ci/.git: not a directory\" because it was being executed from the wrong directory.\n\n**Root Cause**: The command was run from `/var/home/matt/dev/beads` (where the `fix-ci` worktree exists) instead of the main repository directory `/var/home/matt/dev/beads/main`. Since `fix-ci` is a git worktree with a `.git` file (not directory), the worktree creation logic failed when trying to create `\u003ccurrent_dir\u003e/.git/beads-worktrees/\u003cbranch\u003e`.\n\n**Solution Verified**: Execute `bd sync` from the main repository directory:\n```bash\ncd main \u0026\u0026 bd sync --dry-run\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-05T15:25:24.514998248-07:00","updated_at":"2025-12-24T00:25:13.040406-08:00","closed_at":"2025-12-24T00:25:13.040406-08:00"} {"id":"bd-n4td","title":"Add warning when staleness check errors","description":"## Problem\n\nWhen ensureDatabaseFresh() calls CheckStaleness() and it errors (corrupted metadata, permission issues, etc.), we silently proceed with potentially stale data.\n\n**Location:** cmd/bd/staleness.go:27-32\n\n**Scenarios:**\n- Corrupted metadata table\n- Database locked by another process \n- Permission issues reading JSONL file\n- Invalid last_import_time format in DB\n\n## Current Code\n\n```go\nisStale, err := autoimport.CheckStaleness(ctx, store, dbPath)\nif err \\!= nil {\n // If we can't determine staleness, allow operation to proceed\n // (better to show potentially stale data than block user)\n return nil\n}\n```\n\n## Fix\n\n```go\nisStale, err := autoimport.CheckStaleness(ctx, store, dbPath)\nif err \\!= nil {\n fmt.Fprintf(os.Stderr, \"Warning: Could not verify database freshness: %v\\n\", err)\n fmt.Fprintf(os.Stderr, \"Proceeding anyway. Data may be stale.\\n\\n\")\n return nil\n}\n```\n\n## Impact\nMedium - users should know when staleness check fails\n\n## Effort\nEasy - 5 minutes","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-11-20T20:16:34.889997-05:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-n4td","depends_on_id":"bd-2q6d","type":"blocks","created_at":"2025-11-20T20:18:20.154723-05:00","created_by":"stevey"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-n5ug","title":"Merge: bd-au0.7","description":"branch: polecat/dementus\ntarget: main\nsource_issue: bd-au0.7\nrig: beads","status":"closed","priority":1,"issue_type":"merge-request","created_at":"2025-12-23T20:43:36.024341-08:00","updated_at":"2025-12-23T21:21:57.692158-08:00","closed_at":"2025-12-23T21:21:57.692158-08:00"} -{"id":"bd-n663","title":"bd sync: redirect triggers 'External BEADS_DIR' mode, bypasses sync.branch","description":"## Summary\n\nWhen `.beads/redirect` points to a location in the same git repo, `bd sync` incorrectly triggers \"External BEADS_DIR detected, using direct commit\" mode, bypassing the configured `sync.branch` workflow.\n\n## Environment\n\n- beads version: 0.41.0\n- Setup: bare repo with worktrees (Gas Town pattern)\n- Redirect: `.beads/redirect` contains `../../mayor/rig/.beads`\n- Config: `git config beads.sync.branch beads-sync`\n\n## Expected Behavior\n\nWith `sync.branch = beads-sync` configured:\n1. Export changes to JSONL\n2. Commit to beads-sync branch (via worktree at `.git/beads-worktrees/beads-sync`)\n3. Push/pull beads-sync\n4. Import JSONL\n5. **No commits on main or current working branch**\n\n## Actual Behavior\n\n```\n$ bd sync\n→ Exporting pending changes to JSONL...\n→ External BEADS_DIR detected, using direct commit... ← Wrong!\n→ Commits to current branch (mayor-rig)\n→ Tries to push to origin/main\n```\n\nThe \"External BEADS_DIR\" detection takes precedence over sync.branch config.\n\n## Root Cause (suspected)\n\nIn `cmd/bd/sync.go`, the redirect resolution likely marks the BEADS_DIR as \"external\" because the path crosses directory boundaries, even though:\n1. It resolves to the same git repository\n2. `sync.branch` is explicitly configured\n\n## Suggested Fix\n\nWhen determining sync mode, check:\n```go\nif syncBranch != \"\" \u0026\u0026 isInSameGitRepo(resolvedBeadsDir, cwd) {\n // Use sync.branch mode, not direct commit\n useSyncBranch = true\n} else if isExternalBeadsDir {\n // Only use direct commit for truly external repos\n useDirectCommit = true\n}\n```\n\n## Workaround\n\nCreated a `mayor-rig` branch that tracks origin/main so git operations succeed, but commits still land on wrong branch.\n\n## Related\n\n- Affects Gas Town multi-clone setups using redirects\n- GH#810 was a related sync.branch issue (worktree → local copy direction)","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-30T19:43:40.800174-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-30T21:04:42.557555-08:00","closed_at":"2025-12-30T21:04:42.557555-08:00","close_reason":"Fixed by adding hasSyncBranchConfig check to isExternal condition. When sync.branch is configured, we now skip the external direct-commit path and use the sync.branch workflow instead."} +{"id":"bd-n663","title":"bd sync: redirect triggers 'External BEADS_DIR' mode, bypasses sync.branch","description":"## Summary\n\nWhen `.beads/redirect` points to a location in the same git repo, `bd sync` incorrectly triggers \"External BEADS_DIR detected, using direct commit\" mode, bypassing the configured `sync.branch` workflow.\n\n## Environment\n\n- beads version: 0.41.0\n- Setup: bare repo with worktrees (Gas Town pattern)\n- Redirect: `.beads/redirect` contains `../../mayor/rig/.beads`\n- Config: `git config beads.sync.branch beads-sync`\n\n## Expected Behavior\n\nWith `sync.branch = beads-sync` configured:\n1. Export changes to JSONL\n2. Commit to beads-sync branch (via worktree at `.git/beads-worktrees/beads-sync`)\n3. Push/pull beads-sync\n4. Import JSONL\n5. **No commits on main or current working branch**\n\n## Actual Behavior\n\n```\n$ bd sync\n→ Exporting pending changes to JSONL...\n→ External BEADS_DIR detected, using direct commit... ← Wrong!\n→ Commits to current branch (mayor-rig)\n→ Tries to push to origin/main\n```\n\nThe \"External BEADS_DIR\" detection takes precedence over sync.branch config.\n\n## Root Cause (suspected)\n\nIn `cmd/bd/sync.go`, the redirect resolution likely marks the BEADS_DIR as \"external\" because the path crosses directory boundaries, even though:\n1. It resolves to the same git repository\n2. `sync.branch` is explicitly configured\n\n## Suggested Fix\n\nWhen determining sync mode, check:\n```go\nif syncBranch != \"\" \u0026\u0026 isInSameGitRepo(resolvedBeadsDir, cwd) {\n // Use sync.branch mode, not direct commit\n useSyncBranch = true\n} else if isExternalBeadsDir {\n // Only use direct commit for truly external repos\n useDirectCommit = true\n}\n```\n\n## Workaround\n\nCreated a `mayor-rig` branch that tracks origin/main so git operations succeed, but commits still land on wrong branch.\n\n## Related\n\n- Affects Gas Town multi-clone setups using redirects\n- GH#810 was a related sync.branch issue (worktree → local copy direction)","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-30T19:43:40.800174-08:00","updated_at":"2025-12-30T21:04:42.557555-08:00","closed_at":"2025-12-30T21:04:42.557555-08:00","close_reason":"Fixed by adding hasSyncBranchConfig check to isExternal condition. When sync.branch is configured, we now skip the external direct-commit path and use the sync.branch workflow instead.","created_by":"beads/crew/emma"} {"id":"bd-n6fm","title":"witness Handoff","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-23T04:35:02.675024-08:00","updated_at":"2026-01-06T19:30:11.260096-08:00","closed_at":"2026-01-06T19:30:11.260096-08:00","close_reason":"Moved to Gas Town: gt-jjama (witness is a Gas Town role, not beads)"} {"id":"bd-n777","title":"Timer beads for scheduled agent callbacks","description":"## Problem\n\nAgents frequently need to wait for external events (CI completion, PR reviews, artifact builds) but have no good mechanism:\n- `sleep N` blocks and is unreliable (often times out at 8+ minutes)\n- Polling wastes context and is easy to forget\n- No way to survive session restarts\n\n## Proposal: Timer Beads\n\nA new bead type or field that represents a scheduled callback:\n\n### Creating timers\n```bash\nbd timer create --in 30s --callback \"Check CI run 12345\" --issue bd-xyz\nbd timer create --at \"2025-12-20T08:00:00\" --callback \"Morning standup\"\nbd timer create --in 5m --on-expire \"tmux send-keys -t dave 'bd show bd-xyz'\"\n```\n\n### Timer storage\n- Store in beads (survives restarts)\n- Fields: `expires_at`, `callback_description`, `on_expire_command`, `linked_issue`\n- Status: pending, fired, cancelled\n\n### Deacon integration\nThe Deacon daemon monitors timer beads:\n1. Wakes on next timer expiry\n2. Executes `on_expire` command (e.g., tmux send-keys to interrupt agent)\n3. Marks timer as fired\n4. Optionally updates linked issue\n\n### Use cases\n- CI monitoring: \"ping me when build completes\"\n- PR reviews: \"check back in 1 hour\"\n- Scheduled tasks: \"remind me at EOD to sync\"\n- Blocking waits: agent registers callback instead of sleeping\n\n## Acceptance criteria\n- [ ] Timer bead type or field design\n- [ ] `bd timer create/list/cancel` commands\n- [ ] Deacon timer monitoring loop\n- [ ] tmux integration for agent interrupts\n- [ ] Survives daemon restarts","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-19T23:05:33.051861-08:00","updated_at":"2025-12-21T17:19:48.087482-08:00","closed_at":"2025-12-21T17:19:48.087482-08:00"} -{"id":"bd-n97g","title":"bump-version.sh should detect pre-staged release notes","description":"When running the release workflow, I staged CHANGELOG.md and info.go changes before running bump-version.sh. The script:\n\n1. Warned about uncommitted changes (correct)\n2. Required stash/pop to proceed\n3. After pop, the [Unreleased] header wasn't converted to version/date\n\nThe script could be smarter:\n- Detect if staged changes are to CHANGELOG.md/info.go (expected for releases)\n- Or provide a --allow-staged flag\n- Or at minimum, re-apply the [Unreleased] → [X.Y.Z] transformation after detecting manual edits\n\nWorkaround: manually edit [Unreleased] to [0.39.1] - 2025-12-27 after stash pop.","status":"closed","priority":3,"issue_type":"bug","created_at":"2025-12-27T22:51:23.239642-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-27T23:36:47.949197-08:00","closed_at":"2025-12-27T23:36:47.949197-08:00"} +{"id":"bd-n97g","title":"bump-version.sh should detect pre-staged release notes","description":"When running the release workflow, I staged CHANGELOG.md and info.go changes before running bump-version.sh. The script:\n\n1. Warned about uncommitted changes (correct)\n2. Required stash/pop to proceed\n3. After pop, the [Unreleased] header wasn't converted to version/date\n\nThe script could be smarter:\n- Detect if staged changes are to CHANGELOG.md/info.go (expected for releases)\n- Or provide a --allow-staged flag\n- Or at minimum, re-apply the [Unreleased] → [X.Y.Z] transformation after detecting manual edits\n\nWorkaround: manually edit [Unreleased] to [0.39.1] - 2025-12-27 after stash pop.","status":"closed","priority":3,"issue_type":"bug","created_at":"2025-12-27T22:51:23.239642-08:00","updated_at":"2025-12-27T23:36:47.949197-08:00","closed_at":"2025-12-27T23:36:47.949197-08:00","created_by":"beads/crew/emma"} {"id":"bd-nbc","title":"Add security tests for file path validation in clean command","description":"Test coverage gap identified by automated analysis (vc-217).\n\n**Original Issue:** [deleted:bd-da96-baseline-lint]\n\nIn cmd/bd/clean.go:118, os.Open(gitignorePath) is flagged by gosec G304 for potential file inclusion via variable without validation.\n\nAdd tests covering:\n- Path traversal attempts (../../etc/passwd)\n- Absolute paths outside project directory\n- Symlink following behavior\n- Non-existent file handling\n- Validation that only .gitignore files in valid locations are opened\n\nThis is a security-sensitive code path that needs validation to prevent unauthorized file access.\n\n_This issue was automatically created by AI test coverage analysis._","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-21T10:25:33.526884-05:00","updated_at":"2025-11-21T21:29:36.988132396-05:00","closed_at":"2025-11-21T19:31:21.864673-05:00","dependencies":[{"issue_id":"bd-nbc","depends_on_id":"bd-da96-baseline-lint","type":"discovered-from","created_at":"2025-11-21T10:25:33.528582-05:00","created_by":"ai-supervisor"}]} {"id":"bd-ncwo","title":"Ghost resurrection: remote status:closed wins during git merge","description":"During bd sync, the 3-way git merge sometimes keeps remote's status:closed instead of local's status:tombstone. This causes ghost issues to resurrect even when tombstones exist.\n\nRoot cause: Git 3-way merge doesn't understand tombstone semantics. If base had closed, local changed to tombstone, and remote has closed, git might keep remote's version.\n\nThe early tombstone check in importer.go only prevents CREATION when tombstones exist in DB. But if applyDeletionsFromMerge hard-deletes the tombstones before import runs (because they're not in the merged result), the check doesn't help.\n\nPotential fixes:\n1. Make tombstones 'win' in the beads merge driver (internal/merge/merge.go)\n2. Don't hard-delete tombstones in applyDeletionsFromMerge if they're in the DB\n3. Export tombstones to a separate file that's not subject to merge\n\nGhost issues: bd-cb64c226.*, bd-cbed9619.*","status":"tombstone","priority":1,"issue_type":"bug","created_at":"2025-12-16T22:01:03.56423-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} -{"id":"bd-ndmvd","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T17:57:40.007306-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T17:57:40.0448-08:00","closed_at":"2026-01-08T17:57:40.0448-08:00","close_reason":"auto-closed session event"} +{"id":"bd-ndmvd","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T17:57:40.007306-08:00","updated_at":"2026-01-08T17:57:40.0448-08:00","closed_at":"2026-01-08T17:57:40.0448-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-ndye","title":"mergeDependencies uses union instead of 3-way merge","description":"## Critical Bug\n\nThe `mergeDependencies` function in internal/merge/merge.go performs a UNION of left and right dependencies instead of a proper 3-way merge. This causes removed dependencies to be resurrected.\n\n### Root Cause\n\n```go\n// Current code (lines 795-816):\nfunc mergeDependencies(left, right []Dependency) []Dependency {\n // Just unions left + right\n // NEVER REMOVES anything\n // Doesn't even look at base!\n}\n```\n\nAnd `mergeIssue` (line 579) doesn't pass `base`:\n```go\nresult.Dependencies = mergeDependencies(left.Dependencies, right.Dependencies)\n```\n\n### Impact\n\nIf:\n- Base has dependency D\n- Left removes D (intentional)\n- Right still has D (stale)\n\nCurrent: D is in result (resurrection!)\nCorrect: Left removed it, D should NOT be in result\n\nThis breaks Gas Town's workflow and data integrity. Closed means closed.\n\n### Fix\n\nChange `mergeDependencies` to take `base` and do proper 3-way merge:\n- If dep was in base and removed by left → exclude (left wins)\n- If dep was in base and removed by right → exclude (right wins)\n- If dep wasn't in base and added by either → include\n- If dep was in base and both still have it → include\n\nKey principle: **REMOVALS ARE AUTHORITATIVE**\n\n### Files to Change\n\n1. internal/merge/merge.go:\n - `mergeDependencies(left, right)` → `mergeDependencies(base, left, right)`\n - `mergeIssue` line 579: pass `base.Dependencies`\n\n### Related\n\nThis also explains why `ProtectLocalExportIDs` in importer is defined but never used - the protection was never actually implemented.","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-12-18T23:15:54.475872-08:00","updated_at":"2025-12-18T23:21:10.709571-08:00","closed_at":"2025-12-18T23:21:10.709571-08:00"} {"id":"bd-ndyz","title":"GH#243: Recurring stale daemon.lock causes 5s delays","description":"User reports daemon.lock keeps becoming stale after running Claude with beads.\n\nSymptom:\n- bd ready takes 5 seconds (exact)\n- daemon.lock exists but socket is missing\n- bd daemons killall temporarily fixes it\n- Problem recurs after using beads with AI agents\n\nUser on v0.22.0, Macbook M2, 132 issues (89 closed)\n\nHypothesis: Daemon is crashing or exiting uncleanly during agent sessions, leaving stale lock file.\n\nNeed to:\n1. Add crash logging to daemon to understand why it's exiting\n2. Improve cleanup on daemon exit (ensure lock is always removed)\n3. Add automatic stale lock detection/cleanup\n4. Consider making daemon more resilient to crashes","notes":"Oracle analysis complete. Converting to epic with 5 focused sub-issues:\n1. RPC fast-fail with socket stat + short timeouts (P0)\n2. Standardize daemon detection with lock probe (P1) \n3. Crash recovery improvements (P2)\n4. Self-heal stale artifacts (P2)\n5. Diagnostics and debugging (P3)","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-07T16:32:23.576171-08:00","updated_at":"2025-11-07T22:07:17.347419-08:00","closed_at":"2025-11-07T21:29:56.009737-08:00"} -{"id":"bd-ne0h","title":"GHI #891: close_reason field dropped during merge/sync","description":"GitHub Issue #891: close_reason field dropped during merge/sync\n\nhttps://github.com/steveyegge/beads/issues/891","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-04T11:22:12.270387-08:00","created_by":"mayor","updated_at":"2026-01-04T15:22:07.769236-08:00","closed_at":"2026-01-04T11:28:48.394697-08:00","close_reason":"Fixed: Added CloseReason and ClosedBySession fields to merge.Issue struct with proper merge logic"} -{"id":"bd-necgc","title":"Test issue 1","status":"open","priority":1,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:10.724757-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:10.724757-08:00"} -{"id":"bd-nemp","title":"Measure git operation reduction","description":"Quantify the reduction in git operations (pulls, commits, pushes) when using Agent Mail for coordination.\n\nAcceptance Criteria:\n- Baseline: count git ops for 10 issues without Agent Mail\n- With Agent Mail: count git ops for 10 issues\n- Document reduction percentage\n- Verify 70-80% reduction claim\n- Measure impact on .git directory size growth\n\nSuccess Metric: ≥70% reduction in git operations","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-07T22:42:00.157334-08:00","updated_at":"2025-11-08T00:20:30.691721-08:00","closed_at":"2025-11-08T00:20:30.691721-08:00","dependencies":[{"issue_id":"bd-nemp","depends_on_id":"bd-6hji","type":"blocks","created_at":"2025-11-07T23:03:53.131532-08:00","created_by":"daemon"},{"issue_id":"bd-nemp","depends_on_id":"bd-htfk","type":"blocks","created_at":"2025-11-07T23:03:53.200321-08:00","created_by":"daemon"}]} +{"id":"bd-ne0h","title":"GHI #891: close_reason field dropped during merge/sync","description":"GitHub Issue #891: close_reason field dropped during merge/sync\n\nhttps://github.com/steveyegge/beads/issues/891","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-04T11:22:12.270387-08:00","updated_at":"2026-01-04T15:22:07.769236-08:00","closed_at":"2026-01-04T11:28:48.394697-08:00","close_reason":"Fixed: Added CloseReason and ClosedBySession fields to merge.Issue struct with proper merge logic","created_by":"mayor"} +{"id":"bd-necgc","title":"Test issue 1","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-11T18:16:10.724757-08:00","updated_at":"2026-01-11T18:16:10.724757-08:00","created_by":"beads/crew/wolf"} +{"id":"bd-nemp","title":"Measure git operation reduction","description":"Quantify the reduction in git operations (pulls, commits, pushes) when using Agent Mail for coordination.\n\nAcceptance Criteria:\n- Baseline: count git ops for 10 issues without Agent Mail\n- With Agent Mail: count git ops for 10 issues\n- Document reduction percentage\n- Verify 70-80% reduction claim\n- Measure impact on .git directory size growth\n\nSuccess Metric: ≥70% reduction in git operations","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-07T22:42:00.157334-08:00","updated_at":"2025-11-08T00:20:30.691721-08:00","closed_at":"2025-11-08T00:20:30.691721-08:00","dependencies":[{"issue_id":"bd-nemp","depends_on_id":"bd-htfk","type":"blocks","created_at":"2025-11-07T23:03:53.200321-08:00","created_by":"daemon"},{"issue_id":"bd-nemp","depends_on_id":"bd-6hji","type":"blocks","created_at":"2025-11-07T23:03:53.131532-08:00","created_by":"daemon"}]} {"id":"bd-nevy3","title":"Digest: mol-refinery-patrol","description":"Patrol complete: MQ empty, no branches to process, no messages","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T02:33:59.887141-08:00","updated_at":"2026-01-11T02:33:59.887141-08:00","closed_at":"2026-01-11T02:33:59.88709-08:00","close_reason":"Squashed from 11 wisps"} -{"id":"bd-nfaf7","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:34:06.428378-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T21:34:06.485066-08:00","closed_at":"2026-01-11T21:34:06.485066-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-nfaf7","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:34:06.428378-08:00","updated_at":"2026-01-11T21:34:06.485066-08:00","closed_at":"2026-01-11T21:34:06.485066-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} {"id":"bd-ng56","title":"bd-hv01: Three full JSONL reads on every sync (performance)","description":"Problem: computeAcceptedDeletions reads three JSONL files completely into memory (base, left, merged). For 1000 issues at 1KB each, this is 3MB read and 3000 JSON parse operations.\n\nImpact: Acceptable now (~20-35ms overhead) but will be slow for large repos (10k+ issues).\n\nPossible optimizations: single-pass streaming, memory-mapped files, binary format, incremental snapshots.\n\nFiles: cmd/bd/deletion_tracking.go:101-208","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-06T18:16:25.653076-08:00","updated_at":"2025-11-06T20:06:49.220818-08:00","closed_at":"2025-11-06T19:41:04.67733-08:00","dependencies":[{"issue_id":"bd-ng56","depends_on_id":"bd-rbxi","type":"parent-child","created_at":"2025-11-06T18:19:15.148149-08:00","created_by":"daemon"}]} -{"id":"bd-ngas9","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T12:55:40.322685-08:00","created_by":"beads/witness","updated_at":"2026-01-13T12:55:40.399059-08:00","closed_at":"2026-01-13T12:55:40.399059-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-ngfl","title":"Merge: topaz-mk04tram","description":"branch: polecat/topaz-mk04tram\ntarget: main\nsource_issue: topaz-mk04tram\nrig: beads\nagent_bead: bd-beads-polecat-topaz\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-04T11:45:09.022511-08:00","created_by":"beads/polecats/topaz","updated_at":"2026-01-05T19:45:43.984821-08:00","closed_at":"2026-01-05T19:45:43.984821-08:00","close_reason":"Branch deleted, already merged"} +{"id":"bd-ngas9","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T12:55:40.322685-08:00","updated_at":"2026-01-13T12:55:40.399059-08:00","closed_at":"2026-01-13T12:55:40.399059-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} +{"id":"bd-ngfl","title":"Merge: topaz-mk04tram","description":"branch: polecat/topaz-mk04tram\ntarget: main\nsource_issue: topaz-mk04tram\nrig: beads\nagent_bead: bd-beads-polecat-topaz\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-04T11:45:09.022511-08:00","updated_at":"2026-01-05T19:45:43.984821-08:00","closed_at":"2026-01-05T19:45:43.984821-08:00","close_reason":"Branch deleted, already merged","created_by":"beads/polecats/topaz"} {"id":"bd-nh24y","title":"Digest: mol-refinery-patrol","description":"Patrol: MQ empty, no branches processed, inbox clear","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-13T10:41:31.996686-08:00","updated_at":"2026-01-13T10:41:31.996686-08:00","closed_at":"2026-01-13T10:41:31.996636-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-nhkh","title":"bd blocked shows empty (GH#545)","description":"bd blocked only shows dependency-blocked issues, not status=blocked issues.\n\nEither:\n- Include status=blocked issues, OR\n- Document/rename to clarify behavior\n\nFix in: cmd/bd/blocked.go","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-14T23:00:33.19049-08:00","updated_at":"2025-12-14T23:07:43.313267-08:00","closed_at":"2025-12-14T23:07:43.313267-08:00"} -{"id":"bd-nib2","title":"Add tests for bd create --dry-run flag","description":"dispatched_by: gastown/crew/max\n\nCommit 744d2a7d added --dry-run flag to bd create but lacks tests.\n\nTest cases needed:\n- Basic dry-run outputs preview without creating issue\n- Dry-run with --json outputs valid JSON (with empty ID)\n- Dry-run with --rig/--prefix shows target rig\n- Dry-run with --file returns error\n- Dry-run includes labels and deps in preview\n- Dry-run with --type=event includes event fields\n\nLocation: cmd/bd/create.go:181-254\nSuggested test file: cmd/bd/create_test.go","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/giles","created_at":"2026-01-07T01:18:08.338705-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T20:08:34.078988-08:00","closed_at":"2026-01-08T20:08:34.078988-08:00","close_reason":"Tests already added in commit 66ab0ccd. All 7 test cases pass: BasicDryRunPreview, DryRunWithJSONOutput, DryRunWithLabelsAndDeps, DryRunWithRigPrefix, DryRunWithFileReturnsError, DryRunWithEventType, DryRunWithExplicitID"} +{"id":"bd-nib2","title":"Add tests for bd create --dry-run flag","description":"dispatched_by: gastown/crew/max\n\nCommit 744d2a7d added --dry-run flag to bd create but lacks tests.\n\nTest cases needed:\n- Basic dry-run outputs preview without creating issue\n- Dry-run with --json outputs valid JSON (with empty ID)\n- Dry-run with --rig/--prefix shows target rig\n- Dry-run with --file returns error\n- Dry-run includes labels and deps in preview\n- Dry-run with --type=event includes event fields\n\nLocation: cmd/bd/create.go:181-254\nSuggested test file: cmd/bd/create_test.go","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-07T01:18:08.338705-08:00","updated_at":"2026-01-08T20:08:34.078988-08:00","closed_at":"2026-01-08T20:08:34.078988-08:00","close_reason":"Tests already added in commit 66ab0ccd. All 7 test cases pass: BasicDryRunPreview, DryRunWithJSONOutput, DryRunWithLabelsAndDeps, DryRunWithRigPrefix, DryRunWithFileReturnsError, DryRunWithEventType, DryRunWithExplicitID","created_by":"beads/crew/emma"} {"id":"bd-nim5","title":"Detect/prevent child→parent dependency anti-pattern","description":"## Problem\n\nWhen filing issues with dependencies, it's easy to fall into the \"temporal trap\":\n- Thinking \"Phase 1 comes before Phase 2\"\n- Writing `bd dep add phase1 phase2`\n- But that means \"phase1 depends on phase2\" (backwards!)\n\nA specific variant: children depending on their parent epic. This is ALWAYS wrong because:\n1. Parent-child relationship already captures the dependency (parent closes when children done)\n2. Child→parent dep creates a block: child can't start because parent is \"open\"\n3. Parent can't close because children aren't done\n4. Deadlock\n\n## Solution\n\n### 1. Prevent at creation (`bd dep add`)\n\nWhen user runs `bd dep add X Y`:\n- Check if X is a child of Y (X.id starts with Y.id + \".\")\n- If so, error: \"Cannot add dependency: X is already a child of Y. Children inherit dependency on parent completion via hierarchy.\"\n\n### 2. Detect in `bd doctor`\n\nAdd a check that finds all cases where:\n- Issue A depends on Issue B\n- A.id matches pattern B.id + \".*\" (A is child of B)\n\nReport as: \"Child→parent dependency detected (anti-pattern)\"\nOffer repair: \"Remove N backwards dependencies? [y/N]\"\n\n## Implementation\n\n- `dep_add.go`: Add parent-child check before adding dependency\n- `doctor.go`: Add backwards-dep detection to health checks\n","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-24T12:51:15.788796-08:00","updated_at":"2025-12-24T13:02:44.079093-08:00","closed_at":"2025-12-24T13:02:44.079093-08:00"} {"id":"bd-njrm","title":"Work on gt-8tmz.34: Expansion var overrides not implement...","description":"Work on gt-8tmz.34: Expansion var overrides not implemented. The ExpandRule.Vars field exists in internal/formula/types.go but is ignored during expansion in internal/formula/expand.go. Implement: 1) Pass rule.Vars to expandStep in ApplyExpansions, 2) Merge vars with formula defaults (rule.Vars wins), 3) Substitute vars in template placeholders, 4) Add test in expand_test.go. When done, commit and push to main.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T20:01:13.586558-08:00","updated_at":"2025-12-25T20:06:11.099142-08:00","closed_at":"2025-12-25T20:06:11.099142-08:00"} -{"id":"bd-njs96","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T09:09:29.792196-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T09:09:29.852959-08:00","closed_at":"2026-01-11T09:09:29.852959-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-nkqx","title":"bd swarm validate command","description":"Add bd swarm validate to check epic structure for swarming.\n\n## Context\nBefore running a swarm, we need to validate the epic structure:\n- Are dependencies correct (not inverted)?\n- Are there orphaned issues?\n- Is the DAG well-formed?\n\nThe Ready Front model (not phases!) means dependencies define execution order.\nCommon mistake: 'Phase 1 before Phase 2' → inverted deps.\nCorrect thinking: 'Phase 2 needs Phase 1' → bd dep add phase2 phase1\n\n## Implementation\n1. New command: bd swarm validate \u003cepic-id\u003e\n2. Walk the dependency DAG from epic children\n3. Detect issues:\n - Root issues with no dependents (orphans?)\n - Leaf issues depending on nothing (missing deps?)\n - Cycles (impossible)\n - Disconnected subgraphs\n4. Report:\n - Ready fronts (waves of parallel work)\n - Estimated worker-sessions\n - Max parallelism\n - Warnings for potential issues\n\n## Reference\n~/gt/docs/swarm-architecture.md - 'The Ready Front Model' section\n\n## Acceptance\n- bd swarm validate \u003cepic\u003e runs\n- Reports ready fronts accurately\n- Warns about structural issues\n- Returns success/failure exit code","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-28T19:11:08.788203-08:00","created_by":"mayor","updated_at":"2025-12-28T19:34:57.218009-08:00","closed_at":"2025-12-28T19:34:57.218009-08:00"} +{"id":"bd-njs96","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T09:09:29.792196-08:00","updated_at":"2026-01-11T09:09:29.852959-08:00","closed_at":"2026-01-11T09:09:29.852959-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-nkqx","title":"bd swarm validate command","description":"Add bd swarm validate to check epic structure for swarming.\n\n## Context\nBefore running a swarm, we need to validate the epic structure:\n- Are dependencies correct (not inverted)?\n- Are there orphaned issues?\n- Is the DAG well-formed?\n\nThe Ready Front model (not phases!) means dependencies define execution order.\nCommon mistake: 'Phase 1 before Phase 2' → inverted deps.\nCorrect thinking: 'Phase 2 needs Phase 1' → bd dep add phase2 phase1\n\n## Implementation\n1. New command: bd swarm validate \u003cepic-id\u003e\n2. Walk the dependency DAG from epic children\n3. Detect issues:\n - Root issues with no dependents (orphans?)\n - Leaf issues depending on nothing (missing deps?)\n - Cycles (impossible)\n - Disconnected subgraphs\n4. Report:\n - Ready fronts (waves of parallel work)\n - Estimated worker-sessions\n - Max parallelism\n - Warnings for potential issues\n\n## Reference\n~/gt/docs/swarm-architecture.md - 'The Ready Front Model' section\n\n## Acceptance\n- bd swarm validate \u003cepic\u003e runs\n- Reports ready fronts accurately\n- Warns about structural issues\n- Returns success/failure exit code","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-28T19:11:08.788203-08:00","updated_at":"2025-12-28T19:34:57.218009-08:00","closed_at":"2025-12-28T19:34:57.218009-08:00","created_by":"mayor"} {"id":"bd-nl2","title":"No logging/debugging for tombstone resurrection events","description":"Per the design document bd-zvg Open Question 1: Should resurrection log a warning? Recommendation was Yes. Currently, when an expired tombstone loses to a live issue (resurrection), there is no logging or debugging output. This makes it hard to understand why an issue reappeared. Recommendation: Add optional debug logging when resurrection occurs, e.g., Issue bd-abc resurrected (tombstone expired). Files: internal/merge/merge.go:359-366, 371-378, 400-405, 410-415","status":"closed","priority":4,"issue_type":"feature","created_at":"2025-12-05T16:36:52.27525-08:00","updated_at":"2025-12-30T18:12:30.964926-08:00","closed_at":"2025-12-30T15:57:06.707152-08:00","close_reason":"Implemented debug logging for tombstone resurrection events. Added debug parameter to Merge3WayWithTTL and all 4 resurrection code paths now log 'Issue \u003cid\u003e resurrected (tombstone expired)' when debug mode is enabled."} {"id":"bd-nl8z","title":"Documentation","description":"Complete documentation for Agent Mail integration to enable adoption.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-07T22:42:37.969636-08:00","updated_at":"2025-11-08T03:09:48.253476-08:00","closed_at":"2025-11-08T02:34:57.887891-08:00","dependencies":[{"issue_id":"bd-nl8z","depends_on_id":"bd-wfmw","type":"blocks","created_at":"2025-11-07T22:42:37.970621-08:00","created_by":"daemon"}]} -{"id":"bd-nlcp","title":"bd doctor: check redirect files for worktree clones","description":"When running in a worktree/clone that should have a redirect (e.g., crew/george, polecats/*), bd doctor should verify:\n\n1. The redirect file exists\n2. The redirect target is valid and accessible\n3. The target has a working beads.db\n\nThis helps catch setup issues when cloning to a new machine where `gt crew add` might not have created the redirect properly.\n\nExample checks:\n- If cwd contains /crew/ or /polecats/, expect a redirect file\n- Warn if redirect is missing: 'Missing redirect - run gt crew add or create .beads/redirect'\n- Warn if redirect target doesn't exist or has no DB","status":"closed","priority":2,"issue_type":"feature","created_at":"2026-01-07T01:10:23.242392-08:00","created_by":"gastown/crew/george","updated_at":"2026-01-07T01:11:21.829012-08:00","closed_at":"2026-01-07T01:11:21.829012-08:00","close_reason":"Refiled as gastown issue - gt doctor, not bd doctor"} -{"id":"bd-nlzv","title":"bd show --short flag for compact output","description":"## Request\nAdd a `--short` flag to `bd show` for compact, one-line output per issue.\n\n## Use Case\nWhen checking multiple issues quickly:\n```bash\nbd show bd-nkqx --short \u0026\u0026 bd show bd-oxgi --short\n```\n\nCurrently fails with \"unknown flag: --short\"\n\n## Expected Output\nSomething like:\n```\nbd-nkqx [closed] P1 task: Validate swarm schema design\nbd-oxgi [closed] P1 task: Add mol_type schema field to beads\n```\n\n## Format Suggestion\n`\u003cid\u003e [\u003cstatus\u003e] \u003cpriority\u003e \u003ctype\u003e: \u003ctitle\u003e`\n\nOptional: include blocker count if any, e.g. `(blocked by 2)`","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-28T21:26:18.955592-08:00","created_by":"mayor","updated_at":"2025-12-28T21:35:06.006865-08:00","closed_at":"2025-12-28T21:35:06.006865-08:00"} +{"id":"bd-nlcp","title":"bd doctor: check redirect files for worktree clones","description":"When running in a worktree/clone that should have a redirect (e.g., crew/george, polecats/*), bd doctor should verify:\n\n1. The redirect file exists\n2. The redirect target is valid and accessible\n3. The target has a working beads.db\n\nThis helps catch setup issues when cloning to a new machine where `gt crew add` might not have created the redirect properly.\n\nExample checks:\n- If cwd contains /crew/ or /polecats/, expect a redirect file\n- Warn if redirect is missing: 'Missing redirect - run gt crew add or create .beads/redirect'\n- Warn if redirect target doesn't exist or has no DB","status":"closed","priority":2,"issue_type":"feature","created_at":"2026-01-07T01:10:23.242392-08:00","updated_at":"2026-01-07T01:11:21.829012-08:00","closed_at":"2026-01-07T01:11:21.829012-08:00","close_reason":"Refiled as gastown issue - gt doctor, not bd doctor","created_by":"gastown/crew/george"} +{"id":"bd-nlzv","title":"bd show --short flag for compact output","description":"## Request\nAdd a `--short` flag to `bd show` for compact, one-line output per issue.\n\n## Use Case\nWhen checking multiple issues quickly:\n```bash\nbd show bd-nkqx --short \u0026\u0026 bd show bd-oxgi --short\n```\n\nCurrently fails with \"unknown flag: --short\"\n\n## Expected Output\nSomething like:\n```\nbd-nkqx [closed] P1 task: Validate swarm schema design\nbd-oxgi [closed] P1 task: Add mol_type schema field to beads\n```\n\n## Format Suggestion\n`\u003cid\u003e [\u003cstatus\u003e] \u003cpriority\u003e \u003ctype\u003e: \u003ctitle\u003e`\n\nOptional: include blocker count if any, e.g. `(blocked by 2)`","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-28T21:26:18.955592-08:00","updated_at":"2025-12-28T21:35:06.006865-08:00","closed_at":"2025-12-28T21:35:06.006865-08:00","created_by":"mayor"} {"id":"bd-nmch","title":"Add EntityRef type for structured entity references","description":"Create EntityRef struct with Name, Platform, Org, ID fields. This is the foundation for HOP entity tracking. Can render as entity://hop/\u003cplatform\u003e/\u003corg\u003e/\u003cid\u003e when needed. Add to internal/types/types.go.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-22T17:53:25.104328-08:00","updated_at":"2025-12-22T17:58:00.014103-08:00","closed_at":"2025-12-22T17:58:00.014103-08:00","dependencies":[{"issue_id":"bd-nmch","depends_on_id":"bd-7pwh","type":"parent-child","created_at":"2025-12-22T17:53:43.325405-08:00","created_by":"daemon"}]} {"id":"bd-nppb","title":"Refinery Patrol","description":"Merge queue processor patrol loop with verification gates.","status":"tombstone","priority":2,"issue_type":"molecule","created_at":"2025-12-26T13:08:21.308272-08:00","updated_at":"2025-12-27T00:10:54.177947-08:00","deleted_at":"2025-12-27T00:10:54.177947-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"molecule"} {"id":"bd-nq41","title":"Fix Homebrew warning about Ruby file location","description":"Homebrew warning: Found Ruby file outside steveyegge/beads tap formula directory.\nWarning points to: /opt/homebrew/Library/Taps/steveyegge/homebrew-beads/bd.rb\nIt should likely be inside a Formula/ directory or similar structure expected by Homebrew taps.\n","status":"closed","priority":2,"issue_type":"chore","created_at":"2025-11-20T18:56:21.226579-05:00","updated_at":"2025-12-09T18:38:37.701783372-05:00","closed_at":"2025-11-26T22:25:37.362928-08:00"} {"id":"bd-nqes","title":"bd-hv01: Non-atomic snapshot operations can cause data loss","description":"## Problem\nIn sync.go:146-155 and daemon_sync.go:502-505, snapshot capture failures are logged as warnings but sync continues:\n\n```go\nif err := exportToJSONL(ctx, jsonlPath); err != nil { ... }\nif err := captureLeftSnapshot(jsonlPath); err != nil {\n fmt.Fprintf(os.Stderr, \"Warning: failed to capture snapshot...\")\n}\n```\n\nIf export succeeds but snapshot capture fails, the merge uses stale snapshot data, potentially deleting wrong issues.\n\n## Impact\n- Critical data integrity issue\n- Could delete issues incorrectly during multi-workspace sync\n\n## Fix\nMake snapshot capture mandatory:\n```go\nif err := captureLeftSnapshot(jsonlPath); err != nil {\n return fmt.Errorf(\"failed to capture snapshot (required for deletion tracking): %w\", err)\n}\n```\n\n## Files Affected\n- cmd/bd/sync.go:146-155\n- cmd/bd/daemon_sync.go:502-505","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-06T18:15:33.574158-08:00","updated_at":"2025-11-06T18:46:55.874814-08:00","closed_at":"2025-11-06T18:46:55.874814-08:00","dependencies":[{"issue_id":"bd-nqes","depends_on_id":"bd-rbxi","type":"parent-child","created_at":"2025-11-06T18:19:14.749153-08:00","created_by":"daemon"}]} -{"id":"bd-nqr5l","title":"Review PR #16562: Portable shebang in ralph-wiggum","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #16562 (anthropics/claude-code)\n\nPR: https://github.com/anthropics/claude-code/pull/16562\nAuthor: mantrakp04\nFixes: #12880\n\nChanges #!/bin/bash to #!/usr/bin/env bash for NixOS/WSL2 compatibility.\n- gh pr view 16562 --repo anthropics/claude-code\n- gh pr diff 16562 --repo anthropics/claude-code\n- If good: gh pr merge 16562 --repo anthropics/claude-code --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/dave","created_at":"2026-01-08T14:20:25.65767-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:29:35.602117-08:00","closed_at":"2026-01-08T14:29:35.602117-08:00","close_reason":"Wrong repo - these were for anthropics/claude-code, not steveyegge/beads"} -{"id":"bd-nqyp","title":"mol-beads-release","description":"Release checklist for beads version {{version}}.\n\nThis molecule ensures all release steps are completed properly.\nVariable: {{version}} - target version (e.g., 0.35.0)\n\n## Step: update-release-notes\nUpdate cmd/bd/info.go with release notes for {{version}}.\n\nAdd a new VersionChange entry at the top of versionChanges slice:\n```go\n{\n Version: \"{{version}}\",\n Date: \"YYYY-MM-DD\",\n Changes: []string{\n \"NEW: Feature description\",\n \"FIX: Bug fix description\",\n \"IMPROVED: Enhancement description\",\n },\n},\n```\n\nRun `git log --oneline v\u003cprevious\u003e..HEAD` to see what changed.\n\n## Step: update-changelog\nUpdate CHANGELOG.md with detailed release notes.\n\nAdd a new section after [Unreleased]:\n```markdown\n## [{{version}}] - YYYY-MM-DD\n\n### Added\n- **Feature name** (issue-id) - Description\n\n### Changed\n- **Change description** (issue-id)\n\n### Fixed\n- **Bug fix** (issue-id) - Description\n```\n\nSort by importance, not chronologically.\nNeeds: update-release-notes\n\n## Step: bump-version\nRun the version bump script.\n\n```bash\n./scripts/bump-version.sh {{version}}\n```\n\nThis updates version in all files:\n- cmd/bd/version.go\n- .claude-plugin/*.json\n- integrations/beads-mcp/pyproject.toml\n- npm-package/package.json\n- Hook templates\n\nNeeds: update-changelog\n\n## Step: run-tests\nRun tests and verify lint passes.\n\n```bash\ngo test -short ./...\n```\n\nCI will run full lint, but fix any obvious issues first.\nNeeds: bump-version\n\n## Step: commit-release\nCommit the release changes.\n\n```bash\ngit add -A\ngit commit -m \"chore: bump version to v{{version}}\"\n```\n\nNeeds: run-tests\n\n## Step: push-and-tag\nPush commit and create release tag.\n\n```bash\ngit push origin main\ngit tag v{{version}}\ngit push origin v{{version}}\n```\n\nThis triggers GitHub Actions release workflow.\nNeeds: commit-release\n\n## Step: wait-for-ci\nWait for GitHub Actions to complete.\n\nMonitor: https://github.com/steveyegge/beads/actions\n\nCI will:\n- Build binaries via GoReleaser\n- Create GitHub Release with assets\n- Publish to npm (@beads/bd)\n- Publish to PyPI (beads-mcp)\n- Update Homebrew tap\n\nWait until all jobs succeed (~5-10 min).\nNeeds: push-and-tag\n\n## Step: verify-release\nVerify the release is complete.\n\n```bash\n# Check GitHub release\ngh release view v{{version}}\n\n# Check Homebrew\nbrew update \u0026\u0026 brew info steveyegge/beads/bd\n\n# Check npm\nnpm view @beads/bd version\n\n# Check PyPI\npip index versions beads-mcp\n```\n\nNeeds: wait-for-ci\n\n## Step: update-local\nUpdate local installations with proper codesigning (macOS).\n\n```bash\n# Build from source in mayor/rig (canonical build location)\ncd ~/gt/beads/mayor/rig\ngit pull\ngo build -o bd ./cmd/bd\n\n# Sign and install (macOS requires codesigning to avoid \"Killed: 9\")\n# Uses fix-gt script which handles both gt and bd binaries\nfix-gt\n\n# Or manually sign if fix-gt not available:\n# xattr -cr bd \u0026\u0026 codesign -f -s - bd\n# cp bd ~/go/bin/bd \u0026\u0026 codesign -f -s - ~/go/bin/bd\n# cp bd ~/.local/bin/bd \u0026\u0026 codesign -f -s - ~/.local/bin/bd\n\n# Install MCP locally\npip install -e integrations/beads-mcp\n\n# Restart daemons\npkill -f \"bd daemon\" || true\n```\n\nVerify: `bd --version` shows {{version}}\nNeeds: verify-release\n\n## Step: manual-publish\n(Optional) Manual publish if CI failed.\n\n```bash\n# npm (requires npm login)\n./scripts/bump-version.sh {{version}} --publish-npm\n\n# PyPI (requires TWINE credentials)\n./scripts/bump-version.sh {{version}} --publish-pypi\n\n# Or both\n./scripts/bump-version.sh {{version}} --publish-all\n```\n\nOnly needed if CI publishing failed.\nNeeds: wait-for-ci","status":"tombstone","priority":2,"issue_type":"molecule","created_at":"2025-12-23T11:29:39.087936-08:00","updated_at":"2025-12-28T01:26:51.06645-08:00","labels":["template"],"deleted_at":"2025-12-28T01:26:51.06645-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"molecule"} -{"id":"bd-nrwvr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T04:46:24.078237-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T04:46:24.136806-08:00","closed_at":"2026-01-11T04:46:24.136806-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-nryae","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T03:11:00.530685-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T03:11:00.595691-08:00","closed_at":"2026-01-12T03:11:00.595691-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-nqr5l","title":"Review PR #16562: Portable shebang in ralph-wiggum","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #16562 (anthropics/claude-code)\n\nPR: https://github.com/anthropics/claude-code/pull/16562\nAuthor: mantrakp04\nFixes: #12880\n\nChanges #!/bin/bash to #!/usr/bin/env bash for NixOS/WSL2 compatibility.\n- gh pr view 16562 --repo anthropics/claude-code\n- gh pr diff 16562 --repo anthropics/claude-code\n- If good: gh pr merge 16562 --repo anthropics/claude-code --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-08T14:20:25.65767-08:00","updated_at":"2026-01-08T14:29:35.602117-08:00","closed_at":"2026-01-08T14:29:35.602117-08:00","close_reason":"Wrong repo - these were for anthropics/claude-code, not steveyegge/beads","created_by":"beads/crew/emma"} +{"id":"bd-nqyp","title":"mol-beads-release","description":"Release checklist for beads version {{version}}.\n\nThis molecule ensures all release steps are completed properly.\nVariable: {{version}} - target version (e.g., 0.35.0)\n\n## Step: update-release-notes\nUpdate cmd/bd/info.go with release notes for {{version}}.\n\nAdd a new VersionChange entry at the top of versionChanges slice:\n```go\n{\n Version: \"{{version}}\",\n Date: \"YYYY-MM-DD\",\n Changes: []string{\n \"NEW: Feature description\",\n \"FIX: Bug fix description\",\n \"IMPROVED: Enhancement description\",\n },\n},\n```\n\nRun `git log --oneline v\u003cprevious\u003e..HEAD` to see what changed.\n\n## Step: update-changelog\nUpdate CHANGELOG.md with detailed release notes.\n\nAdd a new section after [Unreleased]:\n```markdown\n## [{{version}}] - YYYY-MM-DD\n\n### Added\n- **Feature name** (issue-id) - Description\n\n### Changed\n- **Change description** (issue-id)\n\n### Fixed\n- **Bug fix** (issue-id) - Description\n```\n\nSort by importance, not chronologically.\nNeeds: update-release-notes\n\n## Step: bump-version\nRun the version bump script.\n\n```bash\n./scripts/bump-version.sh {{version}}\n```\n\nThis updates version in all files:\n- cmd/bd/version.go\n- .claude-plugin/*.json\n- integrations/beads-mcp/pyproject.toml\n- npm-package/package.json\n- Hook templates\n\nNeeds: update-changelog\n\n## Step: run-tests\nRun tests and verify lint passes.\n\n```bash\ngo test -short ./...\n```\n\nCI will run full lint, but fix any obvious issues first.\nNeeds: bump-version\n\n## Step: commit-release\nCommit the release changes.\n\n```bash\ngit add -A\ngit commit -m \"chore: bump version to v{{version}}\"\n```\n\nNeeds: run-tests\n\n## Step: push-and-tag\nPush commit and create release tag.\n\n```bash\ngit push origin main\ngit tag v{{version}}\ngit push origin v{{version}}\n```\n\nThis triggers GitHub Actions release workflow.\nNeeds: commit-release\n\n## Step: wait-for-ci\nWait for GitHub Actions to complete.\n\nMonitor: https://github.com/steveyegge/beads/actions\n\nCI will:\n- Build binaries via GoReleaser\n- Create GitHub Release with assets\n- Publish to npm (@beads/bd)\n- Publish to PyPI (beads-mcp)\n- Update Homebrew tap\n\nWait until all jobs succeed (~5-10 min).\nNeeds: push-and-tag\n\n## Step: verify-release\nVerify the release is complete.\n\n```bash\n# Check GitHub release\ngh release view v{{version}}\n\n# Check Homebrew\nbrew update \u0026\u0026 brew info steveyegge/beads/bd\n\n# Check npm\nnpm view @beads/bd version\n\n# Check PyPI\npip index versions beads-mcp\n```\n\nNeeds: wait-for-ci\n\n## Step: update-local\nUpdate local installations with proper codesigning (macOS).\n\n```bash\n# Build from source in mayor/rig (canonical build location)\ncd ~/gt/beads/mayor/rig\ngit pull\ngo build -o bd ./cmd/bd\n\n# Sign and install (macOS requires codesigning to avoid \"Killed: 9\")\n# Uses fix-gt script which handles both gt and bd binaries\nfix-gt\n\n# Or manually sign if fix-gt not available:\n# xattr -cr bd \u0026\u0026 codesign -f -s - bd\n# cp bd ~/go/bin/bd \u0026\u0026 codesign -f -s - ~/go/bin/bd\n# cp bd ~/.local/bin/bd \u0026\u0026 codesign -f -s - ~/.local/bin/bd\n\n# Install MCP locally\npip install -e integrations/beads-mcp\n\n# Restart daemons\npkill -f \"bd daemon\" || true\n```\n\nVerify: `bd --version` shows {{version}}\nNeeds: verify-release\n\n## Step: manual-publish\n(Optional) Manual publish if CI failed.\n\n```bash\n# npm (requires npm login)\n./scripts/bump-version.sh {{version}} --publish-npm\n\n# PyPI (requires TWINE credentials)\n./scripts/bump-version.sh {{version}} --publish-pypi\n\n# Or both\n./scripts/bump-version.sh {{version}} --publish-all\n```\n\nOnly needed if CI publishing failed.\nNeeds: wait-for-ci","status":"tombstone","priority":2,"issue_type":"molecule","created_at":"2025-12-23T11:29:39.087936-08:00","updated_at":"2025-12-28T01:26:51.06645-08:00","deleted_at":"2025-12-28T01:26:51.06645-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"molecule"} +{"id":"bd-nrwvr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T04:46:24.078237-08:00","updated_at":"2026-01-11T04:46:24.136806-08:00","closed_at":"2026-01-11T04:46:24.136806-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-nryae","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T03:11:00.530685-08:00","updated_at":"2026-01-12T03:11:00.595691-08:00","closed_at":"2026-01-12T03:11:00.595691-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-nsb","title":"Doctor should exclude merge artifacts from 'multiple JSONL' warning","description":"Doctor command warns about 'multiple JSONL files' when .base.jsonl and .left.jsonl merge artifacts exist. These are expected during/after merge operations and should be excluded from the warning.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-28T17:27:36.988178-08:00","updated_at":"2025-11-28T18:36:52.087768-08:00","closed_at":"2025-11-28T17:41:50.700658-08:00"} {"id":"bd-nszi","title":"Post-merge hook silently fails on JSONL conflicts, poor UX","description":"When git pull results in merge conflicts in .beads/issues.jsonl, the post-merge hook runs 'bd sync --import-only' which fails, but stderr was redirected to /dev/null. User only saw generic warning.\n\nFixed by capturing and displaying the actual error output, so users see 'Git conflict markers detected' message immediately.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-08T02:31:04.909925-08:00","updated_at":"2025-11-08T02:31:45.237286-08:00","closed_at":"2025-11-08T02:31:45.237286-08:00"} -{"id":"bd-ntl3b","title":"Deduplicate daemon_start.go validation logic","description":"daemon_start.go (lines 57-124) duplicates validation logic from daemon.go. Should extract shared validation to a helper function and call it from both places.\n\nDuplicated logic:\n- Version mismatch check and auto-stop\n- Local mode constraint validation\n- Git repo validation\n- Upstream check for auto-push\n- Worktree warning\n\nFix: Create validateDaemonStartPrereqs() or similar helper that both daemonCmd.Run and daemonStartCmd.Run can call.","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-10T16:30:36.491775-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T16:30:36.491775-08:00"} -{"id":"bd-ntqxz","title":"Review and test PR #1069: add --children flag to bd show","description":"dispatched_by: beads/crew/emma","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/grip","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:30:01.740706-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-13T11:35:30.197072-08:00","closed_at":"2026-01-13T11:35:30.197072-08:00","close_reason":"Reviewed PR #1069. Found bug: 'No children found' message never displays. Requested changes via GitHub review."} +{"id":"bd-ntl3b","title":"Deduplicate daemon_start.go validation logic","description":"daemon_start.go (lines 57-124) duplicates validation logic from daemon.go. Should extract shared validation to a helper function and call it from both places.\n\nDuplicated logic:\n- Version mismatch check and auto-stop\n- Local mode constraint validation\n- Git repo validation\n- Upstream check for auto-push\n- Worktree warning\n\nFix: Create validateDaemonStartPrereqs() or similar helper that both daemonCmd.Run and daemonStartCmd.Run can call.","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-10T16:30:36.491775-08:00","updated_at":"2026-01-10T16:30:36.491775-08:00","created_by":"beads/crew/emma"} +{"id":"bd-ntqxz","title":"Review and test PR #1069: add --children flag to bd show","description":"dispatched_by: beads/crew/emma","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-13T11:30:01.740706-08:00","updated_at":"2026-01-13T11:35:30.197072-08:00","closed_at":"2026-01-13T11:35:30.197072-08:00","close_reason":"Reviewed PR #1069. Found bug: 'No children found' message never displays. Requested changes via GitHub review.","created_by":"beads/crew/emma"} {"id":"bd-nuh1","title":"GH#403: bd doctor --fix circular error message","description":"bd doctor --fix suggests running bd doctor --fix for deletions manifest issue. Fix to provide actual resolution. See GitHub issue #403.","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-12-16T01:03:16.290018-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-nurq","title":"Implement bd mol current command","description":"Show what molecule the agent should currently be working on. Referenced by gt-um6q, gt-lz13. Needed for molecule navigation workflow in templates.","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-12-23T00:17:54.069983-08:00","updated_at":"2025-12-23T01:23:59.523404-08:00","closed_at":"2025-12-23T01:23:59.523404-08:00"} -{"id":"bd-nv1z","title":"Fix PR→MR terminology in internal workflow docs","description":"Polecats create MRs (merge requests), not PRs. Fix these references:\n\n- docs/reference.md:326 - 'review PRs' → 'review MRs'\n- docs/INSTALLING.md:187 - 'PR review' → 'MR review'\n\nPRs are external GitHub concept. MRs are internal Gas Town workflow.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-04T22:13:03.636757-08:00","created_by":"mayor","updated_at":"2026-01-04T22:13:13.932166-08:00","closed_at":"2026-01-04T22:13:13.932166-08:00","close_reason":"Wrong rig - recreating in gastown"} -{"id":"bd-nv4g","title":"Add pre-sync validation hook","description":"Future: Hook integration to run bd lint before sync, respecting config settings.","status":"closed","priority":4,"issue_type":"task","created_at":"2026-01-01T11:19:11.00402-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-02T00:04:24.394347-08:00","closed_at":"2026-01-02T00:04:24.394347-08:00","close_reason":"Pre-sync validation hook already implemented; added comprehensive tests","dependencies":[{"issue_id":"bd-nv4g","depends_on_id":"bd-ou35","type":"parent-child","created_at":"2026-01-01T11:19:22.791249-08:00","created_by":"beads/crew/grip"},{"issue_id":"bd-nv4g","depends_on_id":"bd-t7jq","type":"blocks","created_at":"2026-01-01T11:19:24.008812-08:00","created_by":"beads/crew/grip"}]} -{"id":"bd-nyeic","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T18:17:08.48375-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T18:17:08.530051-08:00","closed_at":"2026-01-12T18:17:08.530051-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-nyfs","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:36:53.212509-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T17:36:53.246778-08:00","closed_at":"2026-01-07T17:36:53.246778-08:00","close_reason":"auto-closed session event"} -{"id":"bd-nzafo","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T17:53:00.803689-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T17:53:00.840604-08:00","closed_at":"2026-01-08T17:53:00.840604-08:00","close_reason":"auto-closed session event"} -{"id":"bd-nztia","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T11:02:37.287883-08:00","created_by":"beads/crew/giles","updated_at":"2026-01-09T11:02:37.327152-08:00","closed_at":"2026-01-09T11:02:37.327152-08:00","close_reason":"auto-closed session event"} +{"id":"bd-nv1z","title":"Fix PR→MR terminology in internal workflow docs","description":"Polecats create MRs (merge requests), not PRs. Fix these references:\n\n- docs/reference.md:326 - 'review PRs' → 'review MRs'\n- docs/INSTALLING.md:187 - 'PR review' → 'MR review'\n\nPRs are external GitHub concept. MRs are internal Gas Town workflow.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-04T22:13:03.636757-08:00","updated_at":"2026-01-04T22:13:13.932166-08:00","closed_at":"2026-01-04T22:13:13.932166-08:00","close_reason":"Wrong rig - recreating in gastown","created_by":"mayor"} +{"id":"bd-nv4g","title":"Add pre-sync validation hook","description":"Future: Hook integration to run bd lint before sync, respecting config settings.","status":"closed","priority":4,"issue_type":"task","created_at":"2026-01-01T11:19:11.00402-08:00","updated_at":"2026-01-02T00:04:24.394347-08:00","closed_at":"2026-01-02T00:04:24.394347-08:00","close_reason":"Pre-sync validation hook already implemented; added comprehensive tests","created_by":"beads/crew/grip","dependencies":[{"issue_id":"bd-nv4g","depends_on_id":"bd-ou35","type":"parent-child","created_at":"2026-01-01T11:19:22.791249-08:00","created_by":"beads/crew/grip"},{"issue_id":"bd-nv4g","depends_on_id":"bd-t7jq","type":"blocks","created_at":"2026-01-01T11:19:24.008812-08:00","created_by":"beads/crew/grip"}]} +{"id":"bd-nyeic","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T18:17:08.48375-08:00","updated_at":"2026-01-12T18:17:08.530051-08:00","closed_at":"2026-01-12T18:17:08.530051-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-nyfs","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:36:53.212509-08:00","updated_at":"2026-01-07T17:36:53.246778-08:00","closed_at":"2026-01-07T17:36:53.246778-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-nzafo","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T17:53:00.803689-08:00","updated_at":"2026-01-08T17:53:00.840604-08:00","closed_at":"2026-01-08T17:53:00.840604-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-nztia","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T11:02:37.287883-08:00","updated_at":"2026-01-09T11:02:37.327152-08:00","closed_at":"2026-01-09T11:02:37.327152-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/giles"} {"id":"bd-o18s","title":"Rename 'wisp' back to 'ephemeral' in beads API","description":"The beads API uses 'wisp' terminology (Wisp field, bd wisp command) but the underlying SQLite column is 'ephemeral'. \n\nThis creates cognitive overhead since wisp is a Gas Town concept.\n\nRename to use 'ephemeral' consistently:\n- types.Issue.Wisp → types.Issue.Ephemeral\n- JSON field: wisp → ephemeral \n- CLI: bd wisp → bd ephemeral (or just use flags on existing commands)\n\nThe SQLite column already uses 'ephemeral' so no schema migration needed.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-26T20:16:36.627876-08:00","updated_at":"2025-12-26T21:04:10.212439-08:00","closed_at":"2025-12-26T21:04:10.212439-08:00"} -{"id":"bd-o1njn","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T00:36:04.63065-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-13T00:36:04.697659-08:00","closed_at":"2026-01-13T00:36:04.697659-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-o208p","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T00:39:12.334724-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-13T00:39:12.40014-08:00","closed_at":"2026-01-13T00:39:12.40014-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-o1njn","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T00:36:04.63065-08:00","updated_at":"2026-01-13T00:36:04.697659-08:00","closed_at":"2026-01-13T00:36:04.697659-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-o208p","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T00:39:12.334724-08:00","updated_at":"2026-01-13T00:39:12.40014-08:00","closed_at":"2026-01-13T00:39:12.40014-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} {"id":"bd-o2e","title":"bd sync --squash: batch multiple syncs into single commit","description":"For solo developers who don't need real-time multi-agent coordination, add a --squash option to bd sync that accumulates changes and commits them in a single commit rather than one commit per sync.\n\nThis addresses the git history pollution concern (many 'bd sync: timestamp' commits) while preserving the default behavior needed for orchestration.\n\n**Proposed behavior:**\n- `bd sync --squash` accumulates pending exports\n- Only commits when explicitly requested or on session end\n- Default behavior unchanged (immediate commits for orchestration)\n\n**Use case:** Solo developers who want cleaner git history but don't need real-time coordination between agents.\n\n**Related:** PR #411 (docs: reduce bd sync commit pollution)\n**See also:** Multi-repo support as alternative solution (docs/MULTI_REPO_AGENTS.md)","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-11-28T17:59:37.918686-08:00","updated_at":"2025-12-02T17:11:19.745620099-05:00","closed_at":"2025-11-28T23:09:06.171564-08:00"} {"id":"bd-o34a","title":"Design auto-squash behavior for wisps","description":"Explore the design space for automatic wisp squashing.\n\n**Context:**\nWisps are ephemeral molecules that should be squashed (digest) or burned (no trace)\nwhen complete. Currently this is manual. Should it be automatic?\n\n**Questions to answer:**\n1. When should auto-squash trigger?\n - On molecule completion?\n - On session end/handoff?\n - On patrol detection?\n \n2. What's the default summary for auto-squash?\n - Generic: 'Auto-squashed on completion'\n - Step-based: List closed steps\n - AI-generated: Require agent to provide\n\n3. Should this be configurable?\n - Per-molecule setting in formula?\n - Global config: auto_squash: true/false\n - Per-wisp flag at creation time?\n\n4. Who decides - Beads or Gas Town?\n - Beads: Provides operators (squash, burn)\n - Gas Town: Makes policy decisions\n - Proposal: GT patrol molecules call bd mol squash\n\n**Constraints:**\n- Don't lose important context (summary matters)\n- Don't create noise in digest history\n- Respect agent's intent (some wisps should burn, not squash)\n\n**Recommendation:**\nGas Town patrol molecules should have explicit squash/burn steps.\nBeads provides primitives, GT makes policy decisions.\nAuto-squash at Beads level is probably wrong layer.","status":"closed","priority":4,"issue_type":"task","created_at":"2025-12-24T18:23:24.833877-08:00","updated_at":"2025-12-25T22:56:59.210809-08:00","closed_at":"2025-12-25T22:56:59.210809-08:00"} {"id":"bd-o43","title":"Add richer query capabilities to bd list","description":"Current bd list filters are limited to basic field matching (status, priority, type, assignee, label). This forces users to resort to piping through jq for common queries.\n\nMissing query capabilities:\n- Pattern matching: --title-contains, --desc-contains\n- Date ranges: --created-after, --updated-before, --closed-after\n- Empty/null checks: --empty-description, --no-assignee, --no-labels\n- Numeric ranges: --priority-min, --priority-max\n- Complex boolean logic: --and, --or operators\n- Full-text search: --search across all text fields\n- Negation: --not-status, --exclude-label\n\nExample use cases:\n- Find issues with empty descriptions\n- Find stale issues not updated in 30 days\n- Find high-priority bugs with no assignee\n- Search for keyword across title/description/notes\n\nImplementation approach:\n- Add query builder pattern to storage layer\n- Support --query DSL for complex queries\n- Keep simple flags for common cases\n- Add --json output for programmatic use","notes":"## Progress Update\n\n**Completed:**\n- ✅ Extended IssueFilter struct with new fields (pattern matching, date ranges, empty/null checks, priority ranges)\n- ✅ Updated SQLite SearchIssues implementation \n- ✅ Added CLI flags to list.go\n- ✅ Added parseTimeFlag helper\n- ✅ Comprehensive tests added - all passing\n\n**Remaining:**\n- ⚠️ RPC layer needs updating (internal/rpc/protocol.go ListArgs)\n- ⚠️ Daemon handler needs to forward new filters\n- ⚠️ End-to-end testing with daemon mode\n- 📝 Documentation updates\n\n**Files Modified:**\n- internal/types/types.go\n- internal/storage/sqlite/sqlite.go \n- cmd/bd/list.go\n- cmd/bd/list_test.go\n\n**Next Steps:**\n1. Update RPC protocol\n2. Update daemon handler \n3. Test with daemon mode\n4. Update docs","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-05T00:17:48.677493-08:00","updated_at":"2025-11-05T00:33:38.998433-08:00","closed_at":"2025-11-05T00:33:38.998433-08:00"} {"id":"bd-o4qy","title":"Improve CheckStaleness error handling","description":"## Problem\n\nCheckStaleness returns 'false' (not stale) for multiple error conditions instead of returning errors. This masks problems.\n\n**Location:** internal/autoimport/autoimport.go:253-285\n\n## Edge Cases That Return False\n\n1. **Invalid last_import_time format** (line 259-262)\n2. **No JSONL file found** (line 267-277) \n3. **JSONL stat fails** (line 279-282)\n\n## Fix\n\nReturn errors for abnormal conditions:\n\n```go\nlastImportTime, err := time.Parse(time.RFC3339, lastImportStr)\nif err != nil {\n return false, fmt.Errorf(\"corrupted last_import_time: %w\", err)\n}\n\nif jsonlPath == \"\" {\n return false, fmt.Errorf(\"no JSONL file found\")\n}\n\nstat, err := os.Stat(jsonlPath)\nif err != nil {\n return false, fmt.Errorf(\"cannot stat JSONL: %w\", err)\n}\n```\n\n## Impact\nMedium - edge cases are rare but should be handled\n\n## Effort \n30 minutes - requires updating callers in RPC server","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-11-20T20:17:27.606219-05:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-o4qy","depends_on_id":"bd-2q6d","type":"blocks","created_at":"2025-11-20T20:18:26.81065-05:00","created_by":"stevey"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-o55a","title":"GH#509: bd doesn't find .beads when running from nested worktrees","description":"When worktrees are nested under main repo (.worktrees/feature/), bd stops at worktree git root instead of continuing to find .beads in parent. See GitHub issue #509 for detailed fix suggestion.","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-12-16T01:03:20.281591-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-o5xe","title":"Molecule bonding: composable workflow templates","description":"Vision: Molecules should be composable like LEGO bricks or Mad Max war rig sections. Bonding lets you attach molecules together to create compound workflows.\n\nTHREE BONDING CONTEXTS:\n1. Template-time: bd mol bond A B → Create reusable compound proto\n2. Spawn-time: bd mol spawn A --attach B → Attach modules when instantiating \n3. Runtime: bd mol attach epic B → Add to running workflow\n\nBOND TYPES:\n- Sequential: B after A completes (feature → deploy)\n- Parallel: B runs alongside A (feature + docs)\n- Conditional: B only if A fails (feature → hotfix)\n\nBOND POINTS (Attachment Sites):\n- Default: B depends on A root epic completion\n- Explicit: --after issue-id for specific attachment\n- Future: Named bond points in proto definitions\n\nVARIABLE FLOW:\n- Shared namespace between bonded molecules\n- Warn on variable name conflicts\n- Future: explicit mapping with --map\n\nDATA MODEL: Issues track bonded_from to preserve compound lineage.\n\nSUCCESS CRITERIA:\n- Can bond two protos into a compound proto\n- Can spawn with --attach for on-the-fly composition\n- Can attach molecules to running workflows\n- Compound structure visible in bd mol show\n- Variables flow correctly between bonded molecules","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-21T00:58:35.479009-08:00","updated_at":"2025-12-21T17:19:45.871164-08:00","closed_at":"2025-12-21T17:19:45.871164-08:00"} -{"id":"bd-o64zq","title":"Merge: garnet-mk9048ue","description":"branch: polecat/garnet-mk9048ue\ntarget: main\nsource_issue: garnet-mk9048ue\nrig: beads\nagent_bead: bd-beads-polecat-garnet\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T21:03:03.713961-08:00","created_by":"beads/polecats/garnet","updated_at":"2026-01-10T22:01:41.485462-08:00","closed_at":"2026-01-10T22:01:41.485462-08:00","close_reason":"merged to main","labels":["gt:merge-request"]} -{"id":"bd-o78","title":"Enhance `bd doctor` to verify Claude Code integration","description":"Add checks to `bd doctor` that verify Claude Code integration is properly set up when .claude/ directory or Claude environment is detected.","status":"open","priority":2,"issue_type":"task","created_at":"2025-11-11T23:30:05.782406-08:00","updated_at":"2025-11-12T00:12:07.717579-08:00","dependencies":[{"issue_id":"bd-o78","depends_on_id":"bd-rpn","type":"blocks","created_at":"2025-11-11T23:30:05.783234-08:00","created_by":"daemon"},{"issue_id":"bd-o78","depends_on_id":"bd-br8","type":"blocks","created_at":"2025-11-11T23:30:05.783647-08:00","created_by":"daemon"},{"issue_id":"bd-o78","depends_on_id":"bd-90v","type":"parent-child","created_at":"2025-11-11T23:31:27.886095-08:00","created_by":"daemon"}]} +{"id":"bd-o64zq","title":"Merge: garnet-mk9048ue","description":"branch: polecat/garnet-mk9048ue\ntarget: main\nsource_issue: garnet-mk9048ue\nrig: beads\nagent_bead: bd-beads-polecat-garnet\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T21:03:03.713961-08:00","updated_at":"2026-01-10T22:01:41.485462-08:00","closed_at":"2026-01-10T22:01:41.485462-08:00","close_reason":"merged to main","created_by":"beads/polecats/garnet"} +{"id":"bd-o78","title":"Enhance `bd doctor` to verify Claude Code integration","description":"Add checks to `bd doctor` that verify Claude Code integration is properly set up when .claude/ directory or Claude environment is detected.","status":"open","priority":2,"issue_type":"task","created_at":"2025-11-11T23:30:05.782406-08:00","updated_at":"2025-11-12T00:12:07.717579-08:00","dependencies":[{"issue_id":"bd-o78","depends_on_id":"bd-90v","type":"parent-child","created_at":"2025-11-11T23:31:27.886095-08:00","created_by":"daemon"},{"issue_id":"bd-o78","depends_on_id":"bd-rpn","type":"blocks","created_at":"2025-11-11T23:30:05.783234-08:00","created_by":"daemon"},{"issue_id":"bd-o78","depends_on_id":"bd-br8","type":"blocks","created_at":"2025-11-11T23:30:05.783647-08:00","created_by":"daemon"}]} {"id":"bd-o7ik","title":"Priority: refactor mol.go then bd squash","description":"Two tasks:\n\n1. bd-cnwx - Refactor mol.go (1200+ lines, split by subcommand)\n2. bd-2vh3 - Ephemeral cleanup (bd cleanup --ephemeral)\n\nRefactor first - smaller, unblocks easier review of future mol work.\n\n- Mayor","status":"closed","priority":2,"issue_type":"message","created_at":"2025-12-21T11:31:38.287244-08:00","updated_at":"2025-12-21T12:59:32.937472-08:00","closed_at":"2025-12-21T12:59:32.937472-08:00"} {"id":"bd-o91r","title":"Polymorphic bond command: bd mol bond A B","description":"Implement proto-to-proto bonding to create compound protos.\n\nCOMMAND: bd mol bond proto-feature proto-testing [--as proto-feature-tested] [--type sequential]\n\nBEHAVIOR:\n- Load both proto subgraphs\n- Create new compound proto with combined structure\n- B's root becomes child of A's root (sequential) or sibling (parallel)\n- Wire dependencies: B depends on A's leaf nodes (sequential) or runs parallel\n- Store bonded_from metadata for lineage tracking\n\nFLAGS:\n- --as NAME: Custom ID for compound proto (default: generates hash)\n- --type: sequential (default) or parallel\n- --dry-run: Preview compound structure\n\nOUTPUT:\n- New compound proto in catalog\n- Shows combined variable requirements","notes":"UPDATE: bond is now polymorphic - handles proto+proto, proto+mol, and mol+mol based on operand types. Separate 'attach' command eliminated.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-21T00:58:55.604705-08:00","updated_at":"2025-12-21T10:10:25.385995-08:00","closed_at":"2025-12-21T10:10:25.385995-08:00","dependencies":[{"issue_id":"bd-o91r","depends_on_id":"bd-o5xe","type":"parent-child","created_at":"2025-12-21T00:59:51.30026-08:00","created_by":"daemon"},{"issue_id":"bd-o91r","depends_on_id":"bd-mh4w","type":"blocks","created_at":"2025-12-21T00:59:51.569391-08:00","created_by":"daemon"},{"issue_id":"bd-o91r","depends_on_id":"bd-rnnr","type":"blocks","created_at":"2025-12-21T00:59:51.652397-08:00","created_by":"daemon"}]} -{"id":"bd-o9cel","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T23:01:15.911439-08:00","created_by":"beads/crew/giles","updated_at":"2026-01-08T23:01:15.947274-08:00","closed_at":"2026-01-08T23:01:15.947274-08:00","close_reason":"auto-closed session event"} +{"id":"bd-o9cel","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T23:01:15.911439-08:00","updated_at":"2026-01-08T23:01:15.947274-08:00","closed_at":"2026-01-08T23:01:15.947274-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/giles"} {"id":"bd-o9o","title":"Exclude pinned issues from bd ready","description":"Update bd ready to exclude pinned issues. Pinned issues are context markers, not work items, and should never appear in the ready-to-work list.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-18T23:33:41.979073-08:00","updated_at":"2025-12-21T11:29:41.190567-08:00","closed_at":"2025-12-21T11:29:41.190567-08:00","dependencies":[{"issue_id":"bd-o9o","depends_on_id":"bd-0vg","type":"blocks","created_at":"2025-12-18T23:33:56.392931-08:00","created_by":"daemon"},{"issue_id":"bd-o9o","depends_on_id":"bd-7h5","type":"blocks","created_at":"2025-12-18T23:34:07.612655-08:00","created_by":"daemon"}]} -{"id":"bd-oajy","title":"Merge: garnet-1767142025508","description":"branch: polecat/garnet-1767142025508\ntarget: main\nsource_issue: garnet-1767142025508\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T17:03:48.369872-08:00","created_by":"beads/polecats/garnet","updated_at":"2025-12-30T18:12:30.966905-08:00","closed_at":"2025-12-30T18:11:07.825828-08:00"} -{"id":"bd-obaxv","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T22:58:01.27518-08:00","created_by":"beads/witness","updated_at":"2026-01-12T22:58:01.343362-08:00","closed_at":"2026-01-12T22:58:01.343362-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-oajy","title":"Merge: garnet-1767142025508","description":"branch: polecat/garnet-1767142025508\ntarget: main\nsource_issue: garnet-1767142025508\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T17:03:48.369872-08:00","updated_at":"2025-12-30T18:12:30.966905-08:00","closed_at":"2025-12-30T18:11:07.825828-08:00","created_by":"beads/polecats/garnet"} +{"id":"bd-obaxv","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T22:58:01.27518-08:00","updated_at":"2026-01-12T22:58:01.343362-08:00","closed_at":"2026-01-12T22:58:01.343362-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} {"id":"bd-obep","title":"Spawn-time bonding: --attach flag","description":"Add --attach flag to bd mol spawn for on-the-fly composition.\n\nCOMMAND: bd mol spawn proto-feature --attach proto-docs --attach proto-testing\n\nBEHAVIOR:\n- Spawn the primary proto as normal\n- For each --attach: spawn that proto and wire to primary\n- Attachments become children of primary's root epic\n- Dependencies wired based on bond type (default: sequential)\n\nFLAGS:\n- --attach PROTO: Attach a proto (can repeat)\n- --attach-type TYPE: sequential (default) or parallel for all attachments\n- --after ISSUE: Attachment point for attached protos\n\nVARIABLE HANDLING:\n- All attached protos share variable namespace\n- Warn on variable name conflicts\n- All --var flags apply to all protos","notes":"DESIGN NOTE: This is syntactic sugar. Equivalent to:\n bd mol spawn proto-A\n bd mol bond $new_epic_id proto-B\n \nKeeping as separate task because it's a common UX pattern worth optimizing.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T00:59:06.178092-08:00","updated_at":"2025-12-21T10:42:50.554816-08:00","closed_at":"2025-12-21T10:42:50.554816-08:00","dependencies":[{"issue_id":"bd-obep","depends_on_id":"bd-o5xe","type":"parent-child","created_at":"2025-12-21T00:59:51.368491-08:00","created_by":"daemon"},{"issue_id":"bd-obep","depends_on_id":"bd-o91r","type":"blocks","created_at":"2025-12-21T00:59:51.733369-08:00","created_by":"daemon"}]} -{"id":"bd-obtjh","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T06:36:57.476411-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T06:36:57.541047-08:00","closed_at":"2026-01-11T06:36:57.541047-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-obtjh","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T06:36:57.476411-08:00","updated_at":"2026-01-11T06:36:57.541047-08:00","closed_at":"2026-01-11T06:36:57.541047-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-obw4x","title":"Digest: mol-refinery-patrol","description":"Patrol: queue empty, no branches processed, no issues","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-13T11:04:18.531018-08:00","updated_at":"2026-01-13T11:04:18.531018-08:00","closed_at":"2026-01-13T11:04:18.530971-08:00","close_reason":"Squashed from 11 wisps","dependencies":[{"issue_id":"bd-obw4x","depends_on_id":"bd-wisp-ex5","type":"parent-child","created_at":"2026-01-13T11:04:18.532024-08:00","created_by":"beads/refinery"}]} {"id":"bd-obxt","title":"Fix bd doctor to recommend issues.jsonl as canonical (not beads.jsonl)","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-21T23:27:02.008716-08:00","updated_at":"2025-11-21T23:44:06.081448-08:00","closed_at":"2025-11-21T23:44:06.081448-08:00"} -{"id":"bd-odaaa","title":"Fix: bd show can't find issues bd list finds (GH#942)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #942. Inconsistency between bd show and bd list finding issues.","status":"closed","priority":1,"issue_type":"bug","assignee":"beads/crew/wolf","created_at":"2026-01-09T22:20:12.7531-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T22:33:23.033447-08:00","closed_at":"2026-01-09T22:33:23.033447-08:00","close_reason":"Fixed by using SearchIssues with filter.IDs instead of GetIssue in ResolvePartialID (GH#942)"} -{"id":"bd-oeeb","title":"Fix daemon path mismatch on case-insensitive filesystems (GH#869)","description":"macOS case-insensitive filesystem causes daemon to reject connections when path casing differs (Desktop vs desktop). Fix: normalize paths using filepath.EvalSymlinks + case normalization before comparison in registry lookup.","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/wolf","created_at":"2026-01-03T13:12:51.892534-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-03T13:23:08.071155-08:00","closed_at":"2026-01-03T13:23:08.071155-08:00","close_reason":"Fixed in 631b067c - normalized paths for case-insensitive filesystem comparison"} -{"id":"bd-oeh24","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T01:17:03.409314-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-13T01:17:03.475331-08:00","closed_at":"2026-01-13T01:17:03.475331-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-oehv","title":"Add 'rm' as alias for 'remove' in bd dep subcommand","description":"Cobra supports command aliases. Add 'rm' as a short alias for 'remove' in the dep subcommand for convenience.\n\nExample: bd dep rm issue1 issue2 should work the same as bd dep remove issue1 issue2\n\nImplementation: Add Aliases: []string{\"rm\"} to the depRemoveCmd definition.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-29T17:28:04.489734-08:00","created_by":"mayor","updated_at":"2025-12-29T17:50:11.910495-08:00","closed_at":"2025-12-29T17:50:11.910495-08:00","close_reason":"Added Aliases: []string{\"rm\"} to depRemoveCmd"} +{"id":"bd-odaaa","title":"Fix: bd show can't find issues bd list finds (GH#942)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #942. Inconsistency between bd show and bd list finding issues.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-09T22:20:12.7531-08:00","updated_at":"2026-01-09T22:33:23.033447-08:00","closed_at":"2026-01-09T22:33:23.033447-08:00","close_reason":"Fixed by using SearchIssues with filter.IDs instead of GetIssue in ResolvePartialID (GH#942)","created_by":"beads/crew/dave"} +{"id":"bd-oeeb","title":"Fix daemon path mismatch on case-insensitive filesystems (GH#869)","description":"macOS case-insensitive filesystem causes daemon to reject connections when path casing differs (Desktop vs desktop). Fix: normalize paths using filepath.EvalSymlinks + case normalization before comparison in registry lookup.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-03T13:12:51.892534-08:00","updated_at":"2026-01-03T13:23:08.071155-08:00","closed_at":"2026-01-03T13:23:08.071155-08:00","close_reason":"Fixed in 631b067c - normalized paths for case-insensitive filesystem comparison","created_by":"beads/crew/grip"} +{"id":"bd-oeh24","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T01:17:03.409314-08:00","updated_at":"2026-01-13T01:17:03.475331-08:00","closed_at":"2026-01-13T01:17:03.475331-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-oehv","title":"Add 'rm' as alias for 'remove' in bd dep subcommand","description":"Cobra supports command aliases. Add 'rm' as a short alias for 'remove' in the dep subcommand for convenience.\n\nExample: bd dep rm issue1 issue2 should work the same as bd dep remove issue1 issue2\n\nImplementation: Add Aliases: []string{\"rm\"} to the depRemoveCmd definition.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-29T17:28:04.489734-08:00","updated_at":"2025-12-29T17:50:11.910495-08:00","closed_at":"2025-12-29T17:50:11.910495-08:00","close_reason":"Added Aliases: []string{\"rm\"} to depRemoveCmd","created_by":"mayor"} {"id":"bd-of2p","title":"Improve version bump molecule with missing steps","description":"During v0.32.1 release, discovered missing steps in the release molecule:\n\n**Missing from molecule:**\n1. Rebuild ~/go/bin/bd (only did ~/.local/bin/bd)\n2. Install beads-mcp from local source: `uv tool install --reinstall ./integrations/beads-mcp`\n3. Restart daemons with `bd daemons killall`\n4. (Optional) Publish beads-mcp to PyPI\n\n**Current molecule steps (bd-6s61):**\n1. Update CHANGELOG.md\n2. Update info.go versionChanges \n3. Run bump-version.sh\n4. Run tests and linting\n5. Update local installation\n6. Commit and push release\n7. Wait for CI\n8. Verify release artifacts\n\n**Proposed additions:**\n- After \"Update local installation\": rebuild BOTH ~/.local/bin/bd AND ~/go/bin/bd\n- Add: \"Install beads-mcp from source\" step\n- Add: \"Restart daemons\" step\n- Add: \"Verify all versions match\" step that checks all artifacts\n\n**Also learned:**\n- Must run from mayor/rig to avoid git conflicts with bd sync (already documented in bump-version.sh)","notes":"CORRECTION: npm publishing IS automated and working!\n\n**Package naming:**\n- OLD: `beads` (npm) - deprecated, stuck at 0.2.1\n- CURRENT: `@beads/bd` (npm) - scoped package, auto-published by CI\n\n**How it works:**\n- CI uses OIDC trusted publishing (no token needed)\n- Workflow: .github/workflows/release.yml → publish-npm job\n- Permissions: `id-token: write` enables GitHub OIDC\n- To install: `npm install -g @beads/bd` (not `npm install beads`)\n\n**All publishing is automated on tag push:**\n1. GitHub Release - goreleaser ✓\n2. PyPI - publish-pypi job ✓\n3. Homebrew - update-homebrew job ✓\n4. npm (@beads/bd) - publish-npm job ✓\n\n**Remaining molecule improvements (local steps only):**\n- Rebuild BOTH ~/.local/bin/bd AND ~/go/bin/bd\n- Install beads-mcp from source: `uv tool install --reinstall ./integrations/beads-mcp`\n- Restart daemons: `bd daemons killall`\n- Run from mayor/rig to avoid git conflicts with bd sync\n- Final verification step to check all local versions match","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-20T22:09:11.845787-08:00","updated_at":"2025-12-22T16:01:18.199132-08:00","closed_at":"2025-12-22T16:01:18.199132-08:00"} -{"id":"bd-ogzcr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T14:48:19.407992-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T14:48:19.482792-08:00","closed_at":"2026-01-13T14:48:19.482792-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ogzcr","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T14:48:19.407992-08:00","updated_at":"2026-01-13T14:48:19.482792-08:00","closed_at":"2026-01-13T14:48:19.482792-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-ohil","title":"refinery Handoff","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-23T04:35:07.488226-08:00","updated_at":"2025-12-29T12:41:09.337507-08:00","deleted_at":"2025-12-29T12:41:09.337507-08:00","deleted_by":"daemon","delete_reason":"orphaned handoff stubs from crash","original_type":"task"} -{"id":"bd-oi2hj","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:51:46.141213-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:51:46.208101-08:00","closed_at":"2026-01-11T21:51:46.208101-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-oi2hj","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:51:46.141213-08:00","updated_at":"2026-01-11T21:51:46.208101-08:00","closed_at":"2026-01-11T21:51:46.208101-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-oif6","title":"Vendor beads-merge Go code into internal/merge/","description":"Copy beads-merge source code from @neongreen's repo into bd codebase.\n\n**Tasks**:\n- Create `internal/merge/` package\n- Copy merge algorithm code\n- Add attribution header to all files\n- Update imports to use bd's internal types\n- Add LICENSE/ATTRIBUTION file crediting @neongreen\n- Keep original algorithm intact\n\n**Source**: https://github.com/neongreen/mono/tree/main/beads-merge","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-05T18:42:20.405283-08:00","updated_at":"2025-11-05T18:52:53.71713-08:00","closed_at":"2025-11-05T18:52:53.71713-08:00","dependencies":[{"issue_id":"bd-oif6","depends_on_id":"bd-qqvw","type":"parent-child","created_at":"2025-11-05T18:42:28.69196-08:00","created_by":"daemon"}]} {"id":"bd-ola6","title":"Implement transaction retry logic for SQLITE_BUSY","description":"BEGIN IMMEDIATE fails immediately on SQLITE_BUSY instead of retrying with exponential backoff.\n\nLocation: internal/storage/sqlite/sqlite.go:223-225\n\nProblem:\n- Under concurrent write load, BEGIN IMMEDIATE can fail with SQLITE_BUSY\n- Current implementation fails immediately instead of retrying\n- Results in spurious failures under normal concurrent usage\n\nSolution: Implement exponential backoff retry:\n- Retry up to N times (e.g., 5)\n- Backoff: 10ms, 20ms, 40ms, 80ms, 160ms\n- Check for context cancellation between retries\n- Only retry on SQLITE_BUSY/database locked errors\n\nImpact: Spurious failures under concurrent write load\n\nEffort: 3 hours","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-16T14:51:31.247147-08:00","updated_at":"2025-12-21T21:39:23.071036-08:00","closed_at":"2025-12-21T21:39:23.071036-08:00"} {"id":"bd-om4a","title":"Support external: prefix in blocked_by field","description":"Allow blocked_by to include external project references:\n\n```bash\nbd update gt-xyz --blocked-by=\"external:beads:mol-run-assignee\"\n```\n\nSyntax: `external:\u003cproject\u003e:\u003ccapability\u003e`\n- project: name from external_projects config\n- capability: matches provides:\u003ccapability\u003e label in target project\n\nStorage: Store as-is in blocked_by array. Resolution happens at query time.\n\nPart of cross-project dependency system.\nSee: gastown/docs/cross-project-deps.md","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-21T22:37:29.725196-08:00","updated_at":"2025-12-21T23:07:48.127045-08:00","closed_at":"2025-12-21T23:07:48.127045-08:00"} -{"id":"bd-omhj8","title":"Merge: quartz-mk8zzb7a","description":"branch: polecat/quartz-mk8zzb7a\ntarget: main\nsource_issue: quartz-mk8zzb7a\nrig: beads\nagent_bead: bd-beads-polecat-quartz\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T21:02:58.104536-08:00","created_by":"beads/polecats/quartz","updated_at":"2026-01-10T21:53:09.650498-08:00","closed_at":"2026-01-10T21:53:09.650498-08:00","close_reason":"Branch no longer exists on remote","labels":["gt:merge-request"]} -{"id":"bd-omrf","title":"Merge: oast-1766978911452","description":"branch: polecat/Toast-1766978911452\ntarget: main\nsource_issue: oast-1766978911452\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-28T19:51:11.183702-08:00","created_by":"beads/polecats/Toast","updated_at":"2025-12-29T13:40:29.718392-08:00","closed_at":"2025-12-29T13:40:29.718392-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates"} -{"id":"bd-omrm7","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T00:47:58.081081-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T00:47:58.142645-08:00","closed_at":"2026-01-11T00:47:58.142645-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-omhj8","title":"Merge: quartz-mk8zzb7a","description":"branch: polecat/quartz-mk8zzb7a\ntarget: main\nsource_issue: quartz-mk8zzb7a\nrig: beads\nagent_bead: bd-beads-polecat-quartz\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T21:02:58.104536-08:00","updated_at":"2026-01-10T21:53:09.650498-08:00","closed_at":"2026-01-10T21:53:09.650498-08:00","close_reason":"Branch no longer exists on remote","created_by":"beads/polecats/quartz"} +{"id":"bd-omrf","title":"Merge: oast-1766978911452","description":"branch: polecat/Toast-1766978911452\ntarget: main\nsource_issue: oast-1766978911452\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-28T19:51:11.183702-08:00","updated_at":"2025-12-29T13:40:29.718392-08:00","closed_at":"2025-12-29T13:40:29.718392-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates","created_by":"beads/polecats/Toast"} +{"id":"bd-omrm7","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T00:47:58.081081-08:00","updated_at":"2026-01-11T00:47:58.142645-08:00","closed_at":"2026-01-11T00:47:58.142645-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-omx1","title":"Add `bd merge` command wrapping 3-way merge logic","description":"Implement CLI command to invoke beads-merge functionality.\n\n**Interface**:\n```bash\nbd merge \u003coutput\u003e \u003cbase\u003e \u003cleft\u003e \u003cright\u003e\nbd merge --debug \u003coutput\u003e \u003cbase\u003e \u003cleft\u003e \u003cright\u003e\n```\n\n**Behavior**:\n- Exit code 0 on clean merge\n- Exit code 1 if conflicts (write conflict markers)\n- Support --debug flag for verbose output\n- Match beads-merge's existing behavior\n\n**File**: `cmd/bd/merge.go`","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-05T18:42:20.427429-08:00","updated_at":"2025-11-05T19:01:29.071365-08:00","closed_at":"2025-11-05T19:01:29.071365-08:00","dependencies":[{"issue_id":"bd-omx1","depends_on_id":"bd-qqvw","type":"parent-child","created_at":"2025-11-05T18:42:28.709123-08:00","created_by":"daemon"},{"issue_id":"bd-omx1","depends_on_id":"bd-oif6","type":"blocks","created_at":"2025-11-05T18:42:35.436444-08:00","created_by":"daemon"}]} -{"id":"bd-oos3","title":"Phase 3: GitHub Gates (Refinery integration)","description":"Implement GitHub gate evaluation in Refinery patrol.\n\n## Gate Types\n- `gh:run` - GitHub Actions workflow run\n- `gh:pr` - Pull request merged/closed status\n\n## Behavior\n- Refinery patrol includes `bd gate check --type=gh`\n- Uses `gh` CLI to check status\n- Resolved gates close automatically\n\n## Implementation\n1. Add GitHub gate check to mol-refinery-patrol.formula.toml\n2. `bd gate check --type=gh:run` calls `gh run view \u003cid\u003e --json status`\n3. `bd gate check --type=gh:pr` calls `gh pr view \u003cid\u003e --json state,merged`\n4. Success states close gate, failure states escalate\n\n## Acceptance Criteria\n- [ ] `bd gate check --type=gh` works for both run and pr\n- [ ] Refinery patrol runs GitHub check each cycle\n- [ ] Successful workflow/merged PR closes gate\n- [ ] Failed workflow/closed-unmerged PR escalates","status":"closed","priority":2,"issue_type":"task","assignee":"beads/polecats/jasper","created_at":"2026-01-02T01:55:42.042362-08:00","created_by":"mayor","updated_at":"2026-01-02T12:48:58.680959-08:00","closed_at":"2026-01-02T12:48:58.680959-08:00","close_reason":"Implemented bd gate check --type=gh for GitHub gate evaluation. Added check-github-gates step to mol-refinery-patrol.formula.toml (v4) in gastown rig.","dependencies":[{"issue_id":"bd-oos3","depends_on_id":"bd-mcva","type":"parent-child","created_at":"2026-01-02T01:55:53.944055-08:00","created_by":"mayor"}]} +{"id":"bd-oos3","title":"Phase 3: GitHub Gates (Refinery integration)","description":"Implement GitHub gate evaluation in Refinery patrol.\n\n## Gate Types\n- `gh:run` - GitHub Actions workflow run\n- `gh:pr` - Pull request merged/closed status\n\n## Behavior\n- Refinery patrol includes `bd gate check --type=gh`\n- Uses `gh` CLI to check status\n- Resolved gates close automatically\n\n## Implementation\n1. Add GitHub gate check to mol-refinery-patrol.formula.toml\n2. `bd gate check --type=gh:run` calls `gh run view \u003cid\u003e --json status`\n3. `bd gate check --type=gh:pr` calls `gh pr view \u003cid\u003e --json state,merged`\n4. Success states close gate, failure states escalate\n\n## Acceptance Criteria\n- [ ] `bd gate check --type=gh` works for both run and pr\n- [ ] Refinery patrol runs GitHub check each cycle\n- [ ] Successful workflow/merged PR closes gate\n- [ ] Failed workflow/closed-unmerged PR escalates","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-02T01:55:42.042362-08:00","updated_at":"2026-01-02T12:48:58.680959-08:00","closed_at":"2026-01-02T12:48:58.680959-08:00","close_reason":"Implemented bd gate check --type=gh for GitHub gate evaluation. Added check-github-gates step to mol-refinery-patrol.formula.toml (v4) in gastown rig.","created_by":"mayor","dependencies":[{"issue_id":"bd-oos3","depends_on_id":"bd-mcva","type":"parent-child","created_at":"2026-01-02T01:55:53.944055-08:00","created_by":"mayor"}]} {"id":"bd-ork0","title":"Add comments to 30+ silently ignored errors or fix them","description":"Code health review found 30+ instances of error suppression using blank identifier without explanation:\n\nGood examples (with comments):\n- merge.go: _ = gitRmCmd.Run() // Ignore errors\n- daemon_watcher.go: _ = watcher.Add(...) // Ignore error\n\nBad examples (no context):\n- create.go:213: dbPrefix, _ = store.GetConfig(ctx, \"issue_prefix\")\n- daemon_sync_branch.go: _ = daemonClient.Close()\n- migrate_hash_ids.go, version_tracking.go: _ = store.Close()\n\nFix: Add comments explaining WHY errors are ignored, or handle them properly.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-16T18:17:25.899372-08:00","updated_at":"2025-12-22T21:28:32.898258-08:00","closed_at":"2025-12-22T21:28:32.898258-08:00"} {"id":"bd-oryk","title":"Fix update-homebrew.sh awk script corrupts formula","description":"The awk script in scripts/update-homebrew.sh incorrectly removes platform conditionals (on_macos do, on_linux do, if Hardware::CPU.arm?, etc.) when updating SHA256 hashes. This corrupts the Homebrew formula.\n\nThe issue is the awk script uses 'next' to skip lines containing platform conditionals but never reconstructs them, resulting in a syntax-invalid formula.\n\nFound during v0.34.0 release - had to manually fix the formula.\n\nFix options:\n1. Rewrite awk script to properly preserve structure while updating sha256 lines only\n2. Use sed instead with targeted sha256 replacements\n3. Template approach - store formula template and fill in version/hashes","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-22T12:17:17.748792-08:00","updated_at":"2025-12-22T13:13:31.947353-08:00","closed_at":"2025-12-22T13:13:31.947353-08:00"} {"id":"bd-ot0w","title":"Work on beads-tip: Fix broken Claude integration link in ...","description":"Work on beads-tip: Fix broken Claude integration link in bd doctor (GH#623). Update URL that doesn't exist. When done, submit MR (not PR) to integration branch for Refinery.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-19T22:56:08.429157-08:00","updated_at":"2025-12-19T23:20:39.790305-08:00","closed_at":"2025-12-19T23:20:39.790305-08:00"} -{"id":"bd-ot1qk","title":"Add 'source_system' field for multi-system federation","description":"dispatched_by: beads/crew/emma\n\nAdd string field identifying which system/adapter created this issue. Enables federation across multiple orchestrators or external systems (GitHub, Jira, etc).\n\nField name options:\n- source_system (neutral)\n- adapter_id (implies adapter pattern)\n- origin (simple)\n\nDefault: could be derived from repo config or left empty for local-only beads.\n\nThis is generic infrastructure for any multi-system scenario, not specific to any particular protocol.","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/grip","created_at":"2026-01-10T16:34:07.495285-08:00","created_by":"gastown/crew/max","updated_at":"2026-01-10T19:32:03.89636-08:00","closed_at":"2026-01-10T19:32:03.89636-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-ot1qk","depends_on_id":"bd-imi7w","type":"parent-child","created_at":"2026-01-10T16:34:21.654333-08:00","created_by":"gastown/crew/max"}]} +{"id":"bd-ot1qk","title":"Add 'source_system' field for multi-system federation","description":"dispatched_by: beads/crew/emma\n\nAdd string field identifying which system/adapter created this issue. Enables federation across multiple orchestrators or external systems (GitHub, Jira, etc).\n\nField name options:\n- source_system (neutral)\n- adapter_id (implies adapter pattern)\n- origin (simple)\n\nDefault: could be derived from repo config or left empty for local-only beads.\n\nThis is generic infrastructure for any multi-system scenario, not specific to any particular protocol.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T16:34:07.495285-08:00","updated_at":"2026-01-10T19:32:03.89636-08:00","closed_at":"2026-01-10T19:32:03.89636-08:00","close_reason":"Closed","created_by":"gastown/crew/max","dependencies":[{"issue_id":"bd-ot1qk","depends_on_id":"bd-imi7w","type":"parent-child","created_at":"2026-01-10T16:34:21.654333-08:00","created_by":"gastown/crew/max"}]} {"id":"bd-otf4","title":"Code Review: PR #481 - Context Engineering Optimizations","description":"Comprehensive code review of the merged context engineering PR (PR #481) that reduces MCP context usage by 80-90%.\n\n## Summary\nThe PR successfully implements lazy tool schema loading and minimal issue models to reduce context window usage. Overall implementation is solid and well-tested.\n\n## Positive Findings\n✅ Well-designed models (IssueMinimal, CompactedResult)\n✅ Comprehensive test coverage (28 tests, all passing)\n✅ Clear documentation and comments\n✅ Backward compatibility preserved (show() still returns full Issue)\n✅ Sensible defaults (COMPACTION_THRESHOLD=20, PREVIEW_COUNT=5)\n✅ Tool catalog complete with all 15 tools documented\n\n## Issues Identified\nSee linked issues for specific followup tasks.\n\n## Context Engineering Architecture\n- discover_tools(): List tool names only (~500 bytes vs ~15KB)\n- get_tool_info(name): Get specific tool details on-demand\n- IssueMinimal: Lightweight model for list views (~80 bytes vs ~400 bytes)\n- CompactedResult: Auto-compacts results with \u003e20 issues\n- _to_minimal(): Conversion function (efficient, no N+1 issues)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-14T14:24:13.523532-08:00","updated_at":"2025-12-29T13:40:29.726141-08:00","closed_at":"2025-12-29T13:40:29.726141-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates"} -{"id":"bd-otli","title":"Wait for CI to pass","description":"Monitor GitHub Actions - all checks must pass before release artifacts are built","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T22:56:03.022281-08:00","updated_at":"2025-12-20T00:49:51.928591-08:00","closed_at":"2025-12-20T00:25:52.635223-08:00","dependencies":[{"issue_id":"bd-otli","depends_on_id":"bd-6s61","type":"parent-child","created_at":"2025-12-19T22:56:15.097564-08:00","created_by":"daemon"},{"issue_id":"bd-otli","depends_on_id":"bd-7tuu","type":"blocks","created_at":"2025-12-19T22:56:23.360436-08:00","created_by":"daemon"}]} -{"id":"bd-otyh","title":"Agent bead prefix mismatch: gt- vs bd- for beads polecat agents","description":"When spawning polecats in beads rig, gt sling tries to create agent beads with gt-beads-polecat-* prefix, but beads requires bd- prefix. Warning: 'issue ID gt-beads-polecat-obsidian does not match configured prefix bd'. Agent beads should use the rig's configured prefix.","status":"closed","priority":3,"issue_type":"bug","created_at":"2025-12-30T00:13:42.570237-08:00","created_by":"mayor","updated_at":"2025-12-30T18:12:30.982503-08:00","closed_at":"2025-12-30T16:57:00.673794-08:00","close_reason":"Fixed in gastown commit 05b1f30. Agent beads now use the rig's configured prefix from routes.jsonl instead of hardcoding 'gt-'. Modified polecat/manager.go and prime.go to look up the correct prefix."} -{"id":"bd-ou35","title":"Opt-in template validation for issues","description":"## Summary\n\nAdd optional validation that issues include required sections based on type, without making it mandatory by default.\n\n## Background\n\nGH#821 proposed mandatory template validation, but that's too draconian for quick capture workflows. Instead, provide opt-in validation through multiple mechanisms.\n\n## Design\n\n### 1. `bd lint` command\n\nCheck issues for missing recommended sections:\n\n```bash\nbd lint # Lint all open issues\nbd lint bd-xxx # Lint specific issue\nbd lint --fix # Interactive: prompt to add missing sections\n```\n\nOutput:\n```\nbd-abc [bug]: Missing \"## Steps to Reproduce\"\nbd-def [task]: Missing \"## Acceptance Criteria\"\n\n2 issues with warnings\n```\n\n### 2. `--validate` flag on `bd create`\n\nOpt-in strict mode at creation time:\n\n```bash\nbd create -t bug --validate -d \"...\" # Fails if missing required sections\nbd create -t bug -d \"...\" # Succeeds (current behavior)\n```\n\n### 3. Section requirements by type\n\n| Type | Recommended Sections |\n|------|---------------------|\n| Bug | Steps to Reproduce, Acceptance Criteria |\n| Task/Feature | Acceptance Criteria |\n| Epic | Success Criteria |\n| Chore/Message | None |\n\nNote: \"Workaround\" dropped from GH#821 - not always applicable.\n\n### 4. Config option (future)\n\n```json\n// .beads/config.json\n{\n \"validation\": {\n \"on_create\": \"warn\" | \"error\" | \"none\",\n \"on_sync\": \"warn\" | \"error\" | \"none\"\n }\n}\n```\n\n### 5. Hook integration (future)\n\nPre-sync hook could run `bd lint` and warn/block based on config.\n\n## Implementation Order\n\n1. Add `RequiredSections()` to IssueType (internal/types)\n2. Add `ValidateTemplate()` function (internal/validation)\n3. Implement `bd lint` command\n4. Add `--validate` flag to `bd create`\n5. (Future) Config file support\n6. (Future) Hook integration\n\n## Acceptance Criteria\n\n- [ ] `bd lint` reports missing sections without blocking\n- [ ] `bd lint \u003cid\u003e` works on single issue\n- [ ] `bd create --validate` enforces sections\n- [ ] `bd create` without flag works as today\n- [ ] Clear, actionable error messages\n\n## References\n\n- GH#821: Original proposal (will close referencing this epic)","status":"closed","priority":3,"issue_type":"epic","created_at":"2026-01-01T11:18:04.828755-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-04T15:22:08.707597-08:00","closed_at":"2026-01-01T19:25:09.99215-08:00","close_reason":"All P3 acceptance criteria complete. P4 items (config, hooks) are future work."} +{"id":"bd-otli","title":"Wait for CI to pass","description":"Monitor GitHub Actions - all checks must pass before release artifacts are built","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T22:56:03.022281-08:00","updated_at":"2025-12-20T00:49:51.928591-08:00","closed_at":"2025-12-20T00:25:52.635223-08:00","dependencies":[{"issue_id":"bd-otli","depends_on_id":"bd-7tuu","type":"blocks","created_at":"2025-12-19T22:56:23.360436-08:00","created_by":"daemon"},{"issue_id":"bd-otli","depends_on_id":"bd-6s61","type":"parent-child","created_at":"2025-12-19T22:56:15.097564-08:00","created_by":"daemon"}]} +{"id":"bd-otyh","title":"Agent bead prefix mismatch: gt- vs bd- for beads polecat agents","description":"When spawning polecats in beads rig, gt sling tries to create agent beads with gt-beads-polecat-* prefix, but beads requires bd- prefix. Warning: 'issue ID gt-beads-polecat-obsidian does not match configured prefix bd'. Agent beads should use the rig's configured prefix.","status":"closed","priority":3,"issue_type":"bug","created_at":"2025-12-30T00:13:42.570237-08:00","updated_at":"2025-12-30T18:12:30.982503-08:00","closed_at":"2025-12-30T16:57:00.673794-08:00","close_reason":"Fixed in gastown commit 05b1f30. Agent beads now use the rig's configured prefix from routes.jsonl instead of hardcoding 'gt-'. Modified polecat/manager.go and prime.go to look up the correct prefix.","created_by":"mayor"} +{"id":"bd-ou35","title":"Opt-in template validation for issues","description":"## Summary\n\nAdd optional validation that issues include required sections based on type, without making it mandatory by default.\n\n## Background\n\nGH#821 proposed mandatory template validation, but that's too draconian for quick capture workflows. Instead, provide opt-in validation through multiple mechanisms.\n\n## Design\n\n### 1. `bd lint` command\n\nCheck issues for missing recommended sections:\n\n```bash\nbd lint # Lint all open issues\nbd lint bd-xxx # Lint specific issue\nbd lint --fix # Interactive: prompt to add missing sections\n```\n\nOutput:\n```\nbd-abc [bug]: Missing \"## Steps to Reproduce\"\nbd-def [task]: Missing \"## Acceptance Criteria\"\n\n2 issues with warnings\n```\n\n### 2. `--validate` flag on `bd create`\n\nOpt-in strict mode at creation time:\n\n```bash\nbd create -t bug --validate -d \"...\" # Fails if missing required sections\nbd create -t bug -d \"...\" # Succeeds (current behavior)\n```\n\n### 3. Section requirements by type\n\n| Type | Recommended Sections |\n|------|---------------------|\n| Bug | Steps to Reproduce, Acceptance Criteria |\n| Task/Feature | Acceptance Criteria |\n| Epic | Success Criteria |\n| Chore/Message | None |\n\nNote: \"Workaround\" dropped from GH#821 - not always applicable.\n\n### 4. Config option (future)\n\n```json\n// .beads/config.json\n{\n \"validation\": {\n \"on_create\": \"warn\" | \"error\" | \"none\",\n \"on_sync\": \"warn\" | \"error\" | \"none\"\n }\n}\n```\n\n### 5. Hook integration (future)\n\nPre-sync hook could run `bd lint` and warn/block based on config.\n\n## Implementation Order\n\n1. Add `RequiredSections()` to IssueType (internal/types)\n2. Add `ValidateTemplate()` function (internal/validation)\n3. Implement `bd lint` command\n4. Add `--validate` flag to `bd create`\n5. (Future) Config file support\n6. (Future) Hook integration\n\n## Acceptance Criteria\n\n- [ ] `bd lint` reports missing sections without blocking\n- [ ] `bd lint \u003cid\u003e` works on single issue\n- [ ] `bd create --validate` enforces sections\n- [ ] `bd create` without flag works as today\n- [ ] Clear, actionable error messages\n\n## References\n\n- GH#821: Original proposal (will close referencing this epic)","status":"closed","priority":3,"issue_type":"epic","created_at":"2026-01-01T11:18:04.828755-08:00","updated_at":"2026-01-04T15:22:08.707597-08:00","closed_at":"2026-01-01T19:25:09.99215-08:00","close_reason":"All P3 acceptance criteria complete. P4 items (config, hooks) are future work.","created_by":"beads/crew/grip"} {"id":"bd-ov1","title":"Doctor: exclude merge artifacts from 'multiple JSONL' warning","description":"## Problem\n`bd doctor` warns about 'Multiple JSONL files found' when merge artifact files exist:\n```\nJSONL Files: Multiple JSONL files found: beads.base.jsonl, beads.left.jsonl, issues.jsonl ⚠\n```\n\nThis is confusing because these aren't real issue JSONL files - they're temporary snapshots for deletion tracking.\n\n## Fix\nExclude known merge artifact patterns from the multiple-JSONL warning:\n\n```go\n// In doctor JSONL check\nskipPatterns := map[string]bool{\n \"beads.base.jsonl\": true,\n \"beads.left.jsonl\": true, \n \"beads.right.jsonl\": true,\n}\n```\n\n## Files\n- cmd/bd/doctor/ (JSONL check logic)","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-28T17:06:26.266097-08:00","updated_at":"2025-12-02T17:11:19.747094858-05:00","closed_at":"2025-11-28T21:52:13.632029-08:00"} -{"id":"bd-ov1u","title":"Clean repo cruft: bd_new, @AGENTS.md, state.json","description":"Remove tracked cruft:\n- git rm bd_new (31MB old binary)\n- git rm @AGENTS.md (duplicate, was 'removed' but still tracked)\n- Add state.json to .gitignore, git rm --cached state.json\n- Consider moving history/EPHEMERAL_MOLECULES_DESIGN.md to docs/ or removing","status":"closed","priority":2,"issue_type":"chore","assignee":"beads/polecats/obsidian","created_at":"2026-01-01T11:09:49.833027-08:00","created_by":"mayor","updated_at":"2026-01-01T11:12:22.320022-08:00","closed_at":"2026-01-01T11:12:22.320022-08:00","close_reason":"Removed bd_new (31MB) and @AGENTS.md. state.json already gitignored, history/EPHEMERAL_MOLECULES_DESIGN.md did not exist."} -{"id":"bd-ovfoz","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:12:32.02034-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T20:12:32.055007-08:00","closed_at":"2026-01-08T20:12:32.055007-08:00","close_reason":"auto-closed session event"} -{"id":"bd-ovypp","title":"Review \u0026 merge PR #1023: MCP custom issue types fix","description":"dispatched_by: beads/crew/emma\n\n## PR Review Task\n\n**PR:** https://github.com/steveyegge/beads/pull/1023\n**Author:** marvin-bitterlich\n\n## Summary\nFix Pydantic validation errors when MCP lists issues with custom types (agent, molecule, event, convoy).\n\n## Changes\n- Change IssueType and IssueStatus from Literal to str in models.py\n- Update parameter descriptions in server.py and tools.py\n- Bump version in uv.lock from 0.34.0 to 0.47.0\n\n## Review Checklist\n1. Pull branch locally: `gh pr checkout 1023 --repo steveyegge/beads`\n2. Run tests: `go test ./... \u0026\u0026 cd integrations/beads-mcp \u0026\u0026 uv run pytest`\n3. Verify MCP works with custom types\n4. If all good, merge: `gh pr merge 1023 --repo steveyegge/beads --squash`\n\n## Classification\nEasy-win: Clear bug fix, minimal changes, well-documented reasoning.","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/dave","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:17:30.36625-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T18:46:13.636455-08:00","closed_at":"2026-01-11T18:46:13.636455-08:00","close_reason":"PR #1023 merged to main"} -{"id":"bd-ow4wn","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:06:28.783239-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:06:28.833089-08:00","closed_at":"2026-01-11T22:06:28.833089-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-ox1o","title":"Code Review Round 2: Beads Refactoring","description":"Second pass code review of Beads codebase. Found 10 HIGH/MEDIUM priority issues.\n\n**HIGH (P2):**\n- bd-6dnt: Duplicated IssueDetails struct (4 definitions)\n- bd-vqh9: init.go is 1928 lines\n- bd-it19: show.go is 1592 lines\n\n**MEDIUM (P3):**\n- bd-qobn: 20+ global variables in main.go\n- bd-0e02: Inconsistent error handling patterns\n- bd-g6m5: Mixed daemon/direct mode logic\n- bd-qe7j: Incomplete TODOs in formula/types.go\n- bd-4sxh: Issue struct ~100 fields\n- bd-yuxq: 262 uses of interface{}\n- bd-jbqx: Repeated validation patterns","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-28T19:00:15.483532-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-29T13:40:29.721916-08:00","closed_at":"2025-12-29T13:40:29.721916-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates"} -{"id":"bd-oxgi","title":"Add mol_type schema field to beads","description":"Add mol_type field to distinguish molecule types (swarm/patrol/work).\n\n## Context\nSwarms need to be distinguishable from regular work molecules. The mol_type field enables:\n- Filtering: bd list --type=swarm \n- Queries: Find all active swarm molecules\n- Coordinator logic: Different handling for different mol types\n\n## Implementation\n1. Add mol_type column to SQLite schema (nullable, default null = work)\n2. Add mol_type to JSONL format\n3. Update create command to accept --mol-type\n4. Update list/ready commands to filter by mol_type\n5. Values: 'swarm', 'patrol', 'work', null (null = work)\n\n## Reference\n~/gt/docs/swarm-architecture.md - 'Data Model' section\n\n## Acceptance\n- bd create --mol-type=swarm works\n- bd list --mol-type=swarm filters correctly\n- Existing molecules work unchanged (backward compatible)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-28T19:11:07.616818-08:00","created_by":"mayor","updated_at":"2025-12-28T19:50:33.213538-08:00","closed_at":"2025-12-28T19:50:33.213538-08:00"} +{"id":"bd-ov1u","title":"Clean repo cruft: bd_new, @AGENTS.md, state.json","description":"Remove tracked cruft:\n- git rm bd_new (31MB old binary)\n- git rm @AGENTS.md (duplicate, was 'removed' but still tracked)\n- Add state.json to .gitignore, git rm --cached state.json\n- Consider moving history/EPHEMERAL_MOLECULES_DESIGN.md to docs/ or removing","status":"closed","priority":2,"issue_type":"chore","created_at":"2026-01-01T11:09:49.833027-08:00","updated_at":"2026-01-01T11:12:22.320022-08:00","closed_at":"2026-01-01T11:12:22.320022-08:00","close_reason":"Removed bd_new (31MB) and @AGENTS.md. state.json already gitignored, history/EPHEMERAL_MOLECULES_DESIGN.md did not exist.","created_by":"mayor"} +{"id":"bd-ovfoz","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:12:32.02034-08:00","updated_at":"2026-01-08T20:12:32.055007-08:00","closed_at":"2026-01-08T20:12:32.055007-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-ovypp","title":"Review \u0026 merge PR #1023: MCP custom issue types fix","description":"dispatched_by: beads/crew/emma\n\n## PR Review Task\n\n**PR:** https://github.com/steveyegge/beads/pull/1023\n**Author:** marvin-bitterlich\n\n## Summary\nFix Pydantic validation errors when MCP lists issues with custom types (agent, molecule, event, convoy).\n\n## Changes\n- Change IssueType and IssueStatus from Literal to str in models.py\n- Update parameter descriptions in server.py and tools.py\n- Bump version in uv.lock from 0.34.0 to 0.47.0\n\n## Review Checklist\n1. Pull branch locally: `gh pr checkout 1023 --repo steveyegge/beads`\n2. Run tests: `go test ./... \u0026\u0026 cd integrations/beads-mcp \u0026\u0026 uv run pytest`\n3. Verify MCP works with custom types\n4. If all good, merge: `gh pr merge 1023 --repo steveyegge/beads --squash`\n\n## Classification\nEasy-win: Clear bug fix, minimal changes, well-documented reasoning.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T18:17:30.36625-08:00","updated_at":"2026-01-11T18:46:13.636455-08:00","closed_at":"2026-01-11T18:46:13.636455-08:00","close_reason":"PR #1023 merged to main","created_by":"beads/crew/emma"} +{"id":"bd-ow4wn","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:06:28.783239-08:00","updated_at":"2026-01-11T22:06:28.833089-08:00","closed_at":"2026-01-11T22:06:28.833089-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-ox1o","title":"Code Review Round 2: Beads Refactoring","description":"Second pass code review of Beads codebase. Found 10 HIGH/MEDIUM priority issues.\n\n**HIGH (P2):**\n- bd-6dnt: Duplicated IssueDetails struct (4 definitions)\n- bd-vqh9: init.go is 1928 lines\n- bd-it19: show.go is 1592 lines\n\n**MEDIUM (P3):**\n- bd-qobn: 20+ global variables in main.go\n- bd-0e02: Inconsistent error handling patterns\n- bd-g6m5: Mixed daemon/direct mode logic\n- bd-qe7j: Incomplete TODOs in formula/types.go\n- bd-4sxh: Issue struct ~100 fields\n- bd-yuxq: 262 uses of interface{}\n- bd-jbqx: Repeated validation patterns","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-28T19:00:15.483532-08:00","updated_at":"2025-12-29T13:40:29.721916-08:00","closed_at":"2025-12-29T13:40:29.721916-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates","created_by":"beads/crew/dave"} +{"id":"bd-oxgi","title":"Add mol_type schema field to beads","description":"Add mol_type field to distinguish molecule types (swarm/patrol/work).\n\n## Context\nSwarms need to be distinguishable from regular work molecules. The mol_type field enables:\n- Filtering: bd list --type=swarm \n- Queries: Find all active swarm molecules\n- Coordinator logic: Different handling for different mol types\n\n## Implementation\n1. Add mol_type column to SQLite schema (nullable, default null = work)\n2. Add mol_type to JSONL format\n3. Update create command to accept --mol-type\n4. Update list/ready commands to filter by mol_type\n5. Values: 'swarm', 'patrol', 'work', null (null = work)\n\n## Reference\n~/gt/docs/swarm-architecture.md - 'Data Model' section\n\n## Acceptance\n- bd create --mol-type=swarm works\n- bd list --mol-type=swarm filters correctly\n- Existing molecules work unchanged (backward compatible)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-28T19:11:07.616818-08:00","updated_at":"2025-12-28T19:50:33.213538-08:00","closed_at":"2025-12-28T19:50:33.213538-08:00","created_by":"mayor"} {"id":"bd-oy6c","title":"Bump version in all files","description":"Run ./scripts/bump-version.sh 0.33.2 to update 10 version files. Then run with --commit after info.go is updated.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T16:10:13.759706-08:00","updated_at":"2025-12-21T17:29:31.791368-08:00","deleted_at":"2025-12-21T17:29:31.791368-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-oy7n","title":"Merge: jasper-mjw4bxkx","description":"branch: polecat/jasper-mjw4bxkx\ntarget: main\nsource_issue: jasper-mjw4bxkx\nrig: beads\nagent_bead: gt-beads-polecat-jasper","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-01T16:25:12.663026-08:00","created_by":"beads/polecats/jasper","updated_at":"2026-01-01T16:26:55.339728-08:00","closed_at":"2026-01-01T16:26:55.339728-08:00","close_reason":"Merged to main"} -{"id":"bd-ozuju","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:44:48.50737-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:44:48.57145-08:00","closed_at":"2026-01-11T22:44:48.57145-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-p05sk","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:09:20.887178-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:09:20.923559-08:00","closed_at":"2026-01-08T14:09:20.923559-08:00","close_reason":"auto-closed session event"} +{"id":"bd-oy7n","title":"Merge: jasper-mjw4bxkx","description":"branch: polecat/jasper-mjw4bxkx\ntarget: main\nsource_issue: jasper-mjw4bxkx\nrig: beads\nagent_bead: gt-beads-polecat-jasper","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-01T16:25:12.663026-08:00","updated_at":"2026-01-01T16:26:55.339728-08:00","closed_at":"2026-01-01T16:26:55.339728-08:00","close_reason":"Merged to main","created_by":"beads/polecats/jasper"} +{"id":"bd-ozuju","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:44:48.50737-08:00","updated_at":"2026-01-11T22:44:48.57145-08:00","closed_at":"2026-01-11T22:44:48.57145-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-p05sk","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:09:20.887178-08:00","updated_at":"2026-01-08T14:09:20.923559-08:00","closed_at":"2026-01-08T14:09:20.923559-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-p0zr","title":"bd message: Improve type safety with typed parameter structs","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-08T12:54:29.675678-08:00","updated_at":"2025-11-08T12:58:59.559643-08:00","closed_at":"2025-11-08T12:58:59.559643-08:00","dependencies":[{"issue_id":"bd-p0zr","depends_on_id":"bd-6uix","type":"parent-child","created_at":"2025-11-08T12:55:55.058354-08:00","created_by":"daemon"}]} -{"id":"bd-p28kt","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T06:04:03.749176-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T06:04:03.812782-08:00","closed_at":"2026-01-11T06:04:03.812782-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-p4kdz","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:53:27.128852-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T23:53:27.176278-08:00","closed_at":"2026-01-12T23:53:27.176278-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-p4vz3","title":"Merge: amber-mkc1lgi3","description":"branch: polecat/amber-mkc1lgi3\ntarget: main\nsource_issue: amber-mkc1lgi3\nrig: beads\nagent_bead: bd-beads-polecat-amber\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:45:51.851414-08:00","created_by":"beads/polecats/amber","updated_at":"2026-01-12T22:57:00.706526-08:00","closed_at":"2026-01-12T22:57:00.706526-08:00","close_reason":"Closed","labels":["gt:merge-request"],"ephemeral":true} -{"id":"bd-p5nqf","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T15:20:26.434205-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T15:20:26.508163-08:00","closed_at":"2026-01-13T15:20:26.508163-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-p28kt","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T06:04:03.749176-08:00","updated_at":"2026-01-11T06:04:03.812782-08:00","closed_at":"2026-01-11T06:04:03.812782-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-p4kdz","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T23:53:27.128852-08:00","updated_at":"2026-01-12T23:53:27.176278-08:00","closed_at":"2026-01-12T23:53:27.176278-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-p4vz3","title":"Merge: amber-mkc1lgi3","description":"branch: polecat/amber-mkc1lgi3\ntarget: main\nsource_issue: amber-mkc1lgi3\nrig: beads\nagent_bead: bd-beads-polecat-amber\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T19:45:51.851414-08:00","updated_at":"2026-01-12T22:57:00.706526-08:00","closed_at":"2026-01-12T22:57:00.706526-08:00","close_reason":"Closed","created_by":"beads/polecats/amber"} +{"id":"bd-p5nqf","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T15:20:26.434205-08:00","updated_at":"2026-01-13T15:20:26.508163-08:00","closed_at":"2026-01-13T15:20:26.508163-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-p5za","title":"mol-christmas-launch: 3-day execution plan","description":"Christmas Launch Molecule - execute phases in order, survive restarts.\n\nPIN THIS BEAD. Check progress each session start.\n\n## Step: phase0-beads-foundation\nFix blocking issues before swarming:\n1. Verify gastown beads schema works: bd list --status=open\n2. Ensure bd mol bond exists (check bd-usro)\n3. Verify bd-2vh3 (squash) is filed\n\n## Step: phase1-polecat-loop\nSerial work on polecat execution:\n1. gt-9nf: Fresh polecats only\n2. gt-975: Molecule execution support\n3. gt-8v8: Refuse uncommitted work\nThen swarm: gt-e1y, gt-f8v, gt-eu9\nNeeds: phase0-beads-foundation\n\n## Step: phase2-refinery\nSerial work on refinery autonomy:\n1. gt-5gkd: Refinery CLAUDE.md\n2. gt-bj6f: Refinery context in gt prime\n3. gt-0qki: Refinery-Witness protocol\nNeeds: phase1-polecat-loop\n\n## Step: phase3-deacon\nHealth monitoring infrastructure:\n1. gt-5af.4: Simplify daemon\n2. gt-5af.7: Crew session patterns\n3. gt-976: Crew lifecycle\nNeeds: phase2-refinery\n\n## Step: phase4-code-review\nSelf-improvement flywheel:\n1. Define mol-code-review (gt-fjvo)\n2. Test on open MRs\n3. Integrate with Refinery\nNeeds: phase3-deacon\n\n## Step: phase5-polish\nDemo readiness:\n1. gt-b2hj: Find orphaned work\n2. Doctor checks\n3. Clean up open MRs\nNeeds: phase4-code-review\n\n## Step: verify-flywheel\nSuccess criteria:\n- gt spawn works with molecules\n- Refinery processes MRs autonomously\n- mol-code-review runs on a PR\n- bd cleanup --ephemeral works\nNeeds: phase5-polish","status":"closed","priority":0,"issue_type":"epic","created_at":"2025-12-20T21:20:02.462889-08:00","updated_at":"2025-12-21T17:23:25.471749-08:00","closed_at":"2025-12-21T17:23:25.471749-08:00"} {"id":"bd-p65x","title":"Latency test 1","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-08T00:04:38.815725-08:00","updated_at":"2025-11-08T00:06:46.198388-08:00","closed_at":"2025-11-08T00:06:46.198388-08:00"} -{"id":"bd-p68qt","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T14:01:23.65416-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T14:01:23.687195-08:00","closed_at":"2026-01-10T14:01:23.687195-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-p68qt","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T14:01:23.65416-08:00","updated_at":"2026-01-10T14:01:23.687195-08:00","closed_at":"2026-01-10T14:01:23.687195-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-p68x","title":"Create examples for common workflows","description":"Add examples/ subdirectories: OSS contributor workflow, team branch workflow, multi-phase development, multiple personas (architect/implementer). Each with README and sample configs.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-05T18:04:30.128257-08:00","updated_at":"2025-11-05T19:27:33.07555-08:00","closed_at":"2025-11-05T19:08:39.035904-08:00","dependencies":[{"issue_id":"bd-p68x","depends_on_id":"bd-8rd","type":"parent-child","created_at":"2025-11-05T18:04:39.247515-08:00","created_by":"daemon"}]} {"id":"bd-p6vp","title":"Clarify .beads/.gitattributes handling in Protected Branches docs","description":"Protected Branches docs quick start leaves untracked `.beads` directory and `.gitattributes`.\nQuestion: Are these changes meant to be checked into the protected branch?\nNeed to clarify if these should be ignored or committed, or if the instructions are missing a step.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-20T18:56:25.79407-05:00","updated_at":"2025-12-09T18:38:37.703285472-05:00","closed_at":"2025-11-26T22:25:47.574326-08:00"} -{"id":"bd-p72za","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:18:09.370645-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:18:09.436566-08:00","closed_at":"2026-01-11T22:18:09.436566-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-p76kv","title":"bd list can hang indefinitely due to missing timeouts","description":"dispatched_by: gastown/crew/max\n\n## Problem\n\nWhen `bd list` hangs, it can block forever due to missing timeouts at multiple layers:\n\n### 1. No timeout in gastown's `runBdCommand` \n**File:** `internal/mail/bd.go:42-54`\n```go\ncmd := exec.Command(\"bd\", args...)\nif err := cmd.Run(); err != nil { // Waits forever!\n```\nIf `bd` hangs for any reason, gt commands hang forever.\n\n### 2. No timeout in RPC request processing (beads daemon)\n**File:** `internal/rpc/server_routing_validation_diagnostics.go:262-264`\n```go\nfunc (s *Server) reqCtx(_ *Request) context.Context {\n return context.Background() // No deadline!\n}\n```\nIf a database query hangs, the RPC handler hangs forever.\n\n### 3. Mutex starvation potential\n`SearchIssues` takes a read lock on `reconnectMu`, while `reconnect()` takes a write lock. With Go's RWMutex, if there's a steady stream of readers, the writer can starve indefinitely.\n\n## Evidence\n\nObserved stuck processes running for 13+ hours:\n```\nbd list --type message --label cc:mayor/ --status open --json\nbd list --type message --label cc:mayor --status open --json\n```\n\nThe SQLite `busy_timeout` (30s) should have caused failures, not hangs. The processes were likely stuck on the Go `reconnectMu` mutex or a blocked daemon.\n\n## Proposed Fixes\n\n1. **Add timeout to daemon request processing** - Use `context.WithTimeout` in `reqCtx()` (e.g., 60 seconds)\n2. **Consider request timeout propagation** from client to server\n3. **Review reconnectMu usage** for potential starvation scenarios\n\nNote: The gastown side (`runBdCommand`) also needs a fix, but that's a separate repo.","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/dave","created_at":"2026-01-10T11:56:34.750531-08:00","created_by":"gastown/crew/max","updated_at":"2026-01-10T23:44:36.578483-08:00","closed_at":"2026-01-10T23:44:36.578483-08:00","close_reason":"Fixed in commit 69dae103. reqCtx() now applies requestTimeout (30s default) to context, preventing indefinite hangs."} -{"id":"bd-p7i2","title":"Add unit test for gitHasUncommittedBeadsChanges()","description":"The new helper function from bd-vd8e needs unit tests in sync_git_test.go to verify:\n- Returns false when no changes\n- Returns true for M (modified)\n- Returns true for A (added)\n- Returns false for ?? (untracked)\n- Returns false for D (deleted)\n\nPart of GH#885 follow-up.","status":"closed","priority":2,"issue_type":"task","assignee":"beads/polecats/ruby","created_at":"2026-01-04T16:15:53.96425-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-04T16:20:40.004117-08:00","closed_at":"2026-01-04T16:20:40.004117-08:00","close_reason":"Added parseGitStatusForBeadsChanges helper function and 14 unit tests covering: empty status, modified (staged/unstaged/both), added, untracked, deleted, renamed, copied, and edge cases"} -{"id":"bd-p98lw","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:38:37.50559-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:38:37.571613-08:00","closed_at":"2026-01-11T22:38:37.571613-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-par1","title":"doctor: improve messaging for detection-only hook managers","description":"When bd doctor detects hook managers we can't fully check (pre-commit, overcommit, yorkie, simple-git-hooks), the current warning suggests they're broken. Change to informational: 'pre-commit detected, cannot verify bd integration' rather than implying misconfiguration.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-05T19:19:08.98544-08:00","created_by":"beads/crew/giles","updated_at":"2026-01-05T21:06:05.953116-08:00","closed_at":"2026-01-05T21:06:05.953116-08:00","close_reason":"Implemented - detection-only managers now show informational message"} -{"id":"bd-pbcie","title":"Review and merge PR #1037: Ensure daemon lock dir exists (fixes crash)","description":"dispatched_by: beads/crew/emma","status":"closed","priority":1,"issue_type":"bug","assignee":"beads/crew/dave","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T16:35:31.644672-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T16:38:47.39244-08:00","closed_at":"2026-01-12T16:38:47.39244-08:00","close_reason":"PR #1037 already merged. Fix ensures daemon lock directory exists before creating lock file, preventing stack overflow on deep workspace paths."} -{"id":"bd-pbfib","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:57:42.09645-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-09T22:57:42.133588-08:00","closed_at":"2026-01-09T22:57:42.133588-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-pbh","title":"Release v0.30.4","description":"## Version Bump Workflow\n\nCoordinating release from 0.30.3 to 0.30.4.\n\n### Components Updated\n- Go CLI (cmd/bd/version.go)\n- Claude Plugin (.claude-plugin/*.json)\n- MCP Server (integrations/beads-mcp/)\n- npm Package (npm-package/package.json)\n- Git hooks (cmd/bd/templates/hooks/)\n\n### Release Channels\n- GitHub Releases (GoReleaser)\n- PyPI (beads-mcp)\n- npm (@beads/cli)\n- Homebrew (homebrew-beads tap)\n","status":"tombstone","priority":1,"issue_type":"epic","created_at":"2025-12-17T21:19:10.926133-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["release","v0.30.4","workflow"],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"epic"} -{"id":"bd-pbh.1","title":"Update cmd/bd/version.go to 0.30.4","description":"Update the Version constant in cmd/bd/version.go:\n```go\nVersion = \"0.30.4\"\n```\n\n\n```verify\ngrep -q 'Version = \"0.30.4\"' cmd/bd/version.go\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:10.9462-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.1","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:10.946633-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.10","title":"Run check-versions.sh - all must pass","description":"Run the version consistency check:\n```bash\n./scripts/check-versions.sh\n```\n\nAll versions must match 0.30.4.\n\n\n```verify\n./scripts/check-versions.sh\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.047311-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.10","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.047888-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.10","depends_on_id":"bd-pbh.1","type":"blocks","created_at":"2025-12-17T21:19:11.159084-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.10","depends_on_id":"bd-pbh.4","type":"blocks","created_at":"2025-12-17T21:19:11.168248-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.10","depends_on_id":"bd-pbh.5","type":"blocks","created_at":"2025-12-17T21:19:11.177869-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.10","depends_on_id":"bd-pbh.6","type":"blocks","created_at":"2025-12-17T21:19:11.187629-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.10","depends_on_id":"bd-pbh.7","type":"blocks","created_at":"2025-12-17T21:19:11.199955-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.10","depends_on_id":"bd-pbh.8","type":"blocks","created_at":"2025-12-17T21:19:11.211479-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.10","depends_on_id":"bd-pbh.9","type":"blocks","created_at":"2025-12-17T21:19:11.224059-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.11","title":"Commit changes and create v0.30.4 tag","description":"```bash\ngit add -A\ngit commit -m \"chore: Bump version to 0.30.4\"\ngit tag -a v0.30.4 -m \"Release v0.30.4\"\n```\n\n\n```verify\ngit describe --tags --exact-match HEAD 2\u003e/dev/null | grep -q 'v0.30.4'\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.056575-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.11","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.056934-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.11","depends_on_id":"bd-pbh.10","type":"blocks","created_at":"2025-12-17T21:19:11.234175-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.11","depends_on_id":"bd-pbh.2","type":"blocks","created_at":"2025-12-17T21:19:11.245316-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.11","depends_on_id":"bd-pbh.3","type":"blocks","created_at":"2025-12-17T21:19:11.255362-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.12","title":"Push commit and tag to origin","description":"```bash\ngit push origin main\ngit push origin v0.30.4\n```\n\nThis triggers GitHub Actions:\n- GoReleaser build\n- PyPI publish\n- npm publish\n\n\n```verify\ngit ls-remote origin refs/tags/v0.30.4 | grep -q 'v0.30.4'\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.066074-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.12","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.066442-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.12","depends_on_id":"bd-pbh.11","type":"blocks","created_at":"2025-12-17T21:19:11.265986-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.13","title":"Monitor GoReleaser CI job","description":"Watch the GoReleaser action:\nhttps://github.com/steveyegge/beads/actions/workflows/release.yml\n\nShould complete in ~10 minutes and create:\n- GitHub Release with binaries for all platforms\n- Checksums and signatures\n\nCheck status:\n```bash\ngh run list --workflow=release.yml -L 1\ngh run watch # to monitor live\n```\n\nVerify release exists:\n```bash\ngh release view v0.30.4\n```\n\n\n```verify\ngh release view v0.30.4 --json tagName -q .tagName | grep -q 'v0.30.4'\n```","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-17T21:19:11.074476-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.13","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.074833-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.13","depends_on_id":"bd-pbh.12","type":"blocks","created_at":"2025-12-17T21:19:11.279092-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.14","title":"Monitor PyPI publish","description":"Watch the PyPI publish action:\nhttps://github.com/steveyegge/beads/actions/workflows/pypi-publish.yml\n\nVerify at: https://pypi.org/project/beads-mcp/0.30.4/\n\nCheck:\n```bash\npip index versions beads-mcp 2\u003e/dev/null | grep -q '0.30.4'\n```\n\n\n```verify\npip index versions beads-mcp 2\u003e/dev/null | grep -q '0.30.4' || curl -s https://pypi.org/pypi/beads-mcp/json | jq -e '.releases[\"0.30.4\"]'\n```","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-17T21:19:11.083809-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.14","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.084126-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.14","depends_on_id":"bd-pbh.12","type":"blocks","created_at":"2025-12-17T21:19:11.289698-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.15","title":"Monitor npm publish","description":"Watch the npm publish action:\nhttps://github.com/steveyegge/beads/actions/workflows/npm-publish.yml\n\nVerify at: https://www.npmjs.com/package/@anthropics/claude-code-beads-plugin/v/0.30.4\n\nCheck:\n```bash\nnpm view @anthropics/claude-code-beads-plugin@0.30.4 version\n```\n\n\n```verify\nnpm view @anthropics/claude-code-beads-plugin@0.30.4 version 2\u003e/dev/null | grep -q '0.30.4'\n```","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-17T21:19:11.091806-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.15","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.092205-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.15","depends_on_id":"bd-pbh.12","type":"blocks","created_at":"2025-12-17T21:19:11.301843-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.16","title":"Update Homebrew formula","description":"After GoReleaser completes, the Homebrew tap should be auto-updated.\n\nIf manual update needed:\n```bash\n./scripts/update-homebrew.sh v0.30.4\n```\n\nOr manually update steveyegge/homebrew-beads with new SHA256.\n\nVerify:\n```bash\nbrew update\nbrew info beads\n```\n","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-17T21:19:11.100213-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.16","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.100541-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.16","depends_on_id":"bd-pbh.13","type":"blocks","created_at":"2025-12-17T21:19:11.312625-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.17","title":"Install 0.30.4 Go binary locally","description":"Rebuild and install the Go binary:\n```bash\ngo install ./cmd/bd\n# OR\nmake install\n```\n\nVerify:\n```bash\nbd --version\n```\n\n\n```verify\nbd --version 2\u003e\u00261 | grep -q '0.30.4'\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.108597-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.17","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.108917-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.17","depends_on_id":"bd-pbh.13","type":"blocks","created_at":"2025-12-17T21:19:11.322091-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.18","title":"Restart beads daemon","description":"Kill any running daemons so they pick up the new version:\n```bash\nbd daemons killall\n```\n\nStart fresh daemon:\n```bash\nbd list # triggers daemon start\n```\n\nVerify daemon version:\n```bash\nbd version --daemon\n```\n\n\n```verify\nbd version --daemon 2\u003e\u00261 | grep -q '0.30.4'\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.11636-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.18","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.116706-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.18","depends_on_id":"bd-pbh.17","type":"blocks","created_at":"2025-12-17T21:19:11.330411-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.19","title":"Install 0.30.4 MCP server locally","description":"Upgrade the MCP server (after PyPI publish):\n```bash\npip install --upgrade beads-mcp\n# OR if using uv:\nuv tool upgrade beads-mcp\n```\n\nVerify:\n```bash\npip show beads-mcp | grep Version\n```\n\n\n```verify\npip show beads-mcp 2\u003e/dev/null | grep -q 'Version: 0.30.4'\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.124496-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.19","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.124829-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.19","depends_on_id":"bd-pbh.14","type":"blocks","created_at":"2025-12-17T21:19:11.343558-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.2","title":"Update CHANGELOG.md for 0.30.4","description":"1. Change `## [Unreleased]` to `## [0.30.4] - 2025-12-17`\n2. Add new empty `## [Unreleased]` section at top\n3. Ensure all changes since 0.30.3 are documented\n","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:10.956332-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.2","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:10.95683-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.20","title":"Update git hooks","description":"Install the updated hooks:\n```bash\nbd hooks install\n```\n\nVerify hook version:\n```bash\ngrep 'bd-hooks-version' .git/hooks/pre-commit\n```\n\n\n```verify\ngrep -q 'bd-hooks-version: 0.30.4' .git/hooks/pre-commit 2\u003e/dev/null || echo 'Hooks may not be installed - verify manually'\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.13198-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.20","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.132306-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.20","depends_on_id":"bd-pbh.17","type":"blocks","created_at":"2025-12-17T21:19:11.352288-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.21","title":"Final release verification","description":"Verify all release artifacts are accessible:\n\n- [ ] `bd --version` shows 0.30.4\n- [ ] `bd version --daemon` shows 0.30.4\n- [ ] GitHub release exists: https://github.com/steveyegge/beads/releases/tag/v0.30.4\n- [ ] `brew upgrade beads \u0026\u0026 bd --version` shows 0.30.4 (if using Homebrew)\n- [ ] `pip show beads-mcp` shows 0.30.4\n- [ ] npm package available at 0.30.4\n- [ ] `bd info --whats-new` shows 0.30.4 notes\n\nRun final checks:\n```bash\nbd --version\nbd version --daemon\npip show beads-mcp | grep Version\nbd info --whats-new\n```\n","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.141249-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.21","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.141549-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.21","depends_on_id":"bd-pbh.18","type":"blocks","created_at":"2025-12-17T21:19:11.364839-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.21","depends_on_id":"bd-pbh.19","type":"blocks","created_at":"2025-12-17T21:19:11.373656-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.21","depends_on_id":"bd-pbh.20","type":"blocks","created_at":"2025-12-17T21:19:11.382-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.21","depends_on_id":"bd-pbh.15","type":"blocks","created_at":"2025-12-17T21:19:11.389733-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.21","depends_on_id":"bd-pbh.16","type":"blocks","created_at":"2025-12-17T21:19:11.398347-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.3","title":"Add 0.30.4 to info.go release notes","description":"Update cmd/bd/info.go versionChanges map with release notes for 0.30.4.\nInclude any workflow-impacting changes for --whats-new output.\n","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:10.966781-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.3","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:10.967287-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.3","depends_on_id":"bd-pbh.2","type":"blocks","created_at":"2025-12-17T21:19:11.149584-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.4","title":"Update .claude-plugin/plugin.json to 0.30.4","description":"Update version field in .claude-plugin/plugin.json:\n```json\n\"version\": \"0.30.4\"\n```\n\n\n```verify\njq -e '.version == \"0.30.4\"' .claude-plugin/plugin.json\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:10.976866-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.4","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:10.97729-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.5","title":"Update .claude-plugin/marketplace.json to 0.30.4","description":"Update version field in .claude-plugin/marketplace.json:\n```json\n\"version\": \"0.30.4\"\n```\n\n\n```verify\njq -e '.plugins[0].version == \"0.30.4\"' .claude-plugin/marketplace.json\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:10.985619-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.5","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:10.985942-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.6","title":"Update integrations/beads-mcp/pyproject.toml to 0.30.4","description":"Update version in pyproject.toml:\n```toml\nversion = \"0.30.4\"\n```\n\n\n```verify\ngrep -q 'version = \"0.30.4\"' integrations/beads-mcp/pyproject.toml\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:10.994004-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.6","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:10.994376-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.7","title":"Update beads_mcp/__init__.py to 0.30.4","description":"Update __version__ in integrations/beads-mcp/src/beads_mcp/__init__.py:\n```python\n__version__ = \"0.30.4\"\n```\n\n\n```verify\ngrep -q '__version__ = \"0.30.4\"' integrations/beads-mcp/src/beads_mcp/__init__.py\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.005334-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.7","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.005699-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.8","title":"Update npm-package/package.json to 0.30.4","description":"Update version field in npm-package/package.json:\n```json\n\"version\": \"0.30.4\"\n```\n\n\n```verify\njq -e '.version == \"0.30.4\"' npm-package/package.json\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.014905-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.8","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.01529-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pbh.9","title":"Update hook templates to 0.30.4","description":"Update bd-hooks-version comment in all 4 hook templates:\n- cmd/bd/templates/hooks/pre-commit\n- cmd/bd/templates/hooks/post-merge\n- cmd/bd/templates/hooks/pre-push\n- cmd/bd/templates/hooks/post-checkout\n\nEach should have:\n```bash\n# bd-hooks-version: 0.30.4\n```\n\n\n```verify\ngrep -l 'bd-hooks-version: 0.30.4' cmd/bd/templates/hooks/* | wc -l | grep -q '4'\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.0248-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","labels":["workflow"],"dependencies":[{"issue_id":"bd-pbh.9","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.025124-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pd75r","title":"Feature P1","status":"open","priority":1,"issue_type":"feature","assignee":"bob","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:13.907182-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:13.907182-08:00"} +{"id":"bd-p72za","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:18:09.370645-08:00","updated_at":"2026-01-11T22:18:09.436566-08:00","closed_at":"2026-01-11T22:18:09.436566-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-p76kv","title":"bd list can hang indefinitely due to missing timeouts","description":"dispatched_by: gastown/crew/max\n\n## Problem\n\nWhen `bd list` hangs, it can block forever due to missing timeouts at multiple layers:\n\n### 1. No timeout in gastown's `runBdCommand` \n**File:** `internal/mail/bd.go:42-54`\n```go\ncmd := exec.Command(\"bd\", args...)\nif err := cmd.Run(); err != nil { // Waits forever!\n```\nIf `bd` hangs for any reason, gt commands hang forever.\n\n### 2. No timeout in RPC request processing (beads daemon)\n**File:** `internal/rpc/server_routing_validation_diagnostics.go:262-264`\n```go\nfunc (s *Server) reqCtx(_ *Request) context.Context {\n return context.Background() // No deadline!\n}\n```\nIf a database query hangs, the RPC handler hangs forever.\n\n### 3. Mutex starvation potential\n`SearchIssues` takes a read lock on `reconnectMu`, while `reconnect()` takes a write lock. With Go's RWMutex, if there's a steady stream of readers, the writer can starve indefinitely.\n\n## Evidence\n\nObserved stuck processes running for 13+ hours:\n```\nbd list --type message --label cc:mayor/ --status open --json\nbd list --type message --label cc:mayor --status open --json\n```\n\nThe SQLite `busy_timeout` (30s) should have caused failures, not hangs. The processes were likely stuck on the Go `reconnectMu` mutex or a blocked daemon.\n\n## Proposed Fixes\n\n1. **Add timeout to daemon request processing** - Use `context.WithTimeout` in `reqCtx()` (e.g., 60 seconds)\n2. **Consider request timeout propagation** from client to server\n3. **Review reconnectMu usage** for potential starvation scenarios\n\nNote: The gastown side (`runBdCommand`) also needs a fix, but that's a separate repo.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-10T11:56:34.750531-08:00","updated_at":"2026-01-10T23:44:36.578483-08:00","closed_at":"2026-01-10T23:44:36.578483-08:00","close_reason":"Fixed in commit 69dae103. reqCtx() now applies requestTimeout (30s default) to context, preventing indefinite hangs.","created_by":"gastown/crew/max"} +{"id":"bd-p7i2","title":"Add unit test for gitHasUncommittedBeadsChanges()","description":"The new helper function from bd-vd8e needs unit tests in sync_git_test.go to verify:\n- Returns false when no changes\n- Returns true for M (modified)\n- Returns true for A (added)\n- Returns false for ?? (untracked)\n- Returns false for D (deleted)\n\nPart of GH#885 follow-up.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-04T16:15:53.96425-08:00","updated_at":"2026-01-04T16:20:40.004117-08:00","closed_at":"2026-01-04T16:20:40.004117-08:00","close_reason":"Added parseGitStatusForBeadsChanges helper function and 14 unit tests covering: empty status, modified (staged/unstaged/both), added, untracked, deleted, renamed, copied, and edge cases","created_by":"beads/crew/fang"} +{"id":"bd-p98lw","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:38:37.50559-08:00","updated_at":"2026-01-11T22:38:37.571613-08:00","closed_at":"2026-01-11T22:38:37.571613-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-par1","title":"doctor: improve messaging for detection-only hook managers","description":"When bd doctor detects hook managers we can't fully check (pre-commit, overcommit, yorkie, simple-git-hooks), the current warning suggests they're broken. Change to informational: 'pre-commit detected, cannot verify bd integration' rather than implying misconfiguration.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-05T19:19:08.98544-08:00","updated_at":"2026-01-05T21:06:05.953116-08:00","closed_at":"2026-01-05T21:06:05.953116-08:00","close_reason":"Implemented - detection-only managers now show informational message","created_by":"beads/crew/giles"} +{"id":"bd-pbcie","title":"Review and merge PR #1037: Ensure daemon lock dir exists (fixes crash)","description":"dispatched_by: beads/crew/emma","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-12T16:35:31.644672-08:00","updated_at":"2026-01-12T16:38:47.39244-08:00","closed_at":"2026-01-12T16:38:47.39244-08:00","close_reason":"PR #1037 already merged. Fix ensures daemon lock directory exists before creating lock file, preventing stack overflow on deep workspace paths.","created_by":"beads/crew/emma"} +{"id":"bd-pbfib","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:57:42.09645-08:00","updated_at":"2026-01-09T22:57:42.133588-08:00","closed_at":"2026-01-09T22:57:42.133588-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} +{"id":"bd-pbh","title":"Release v0.30.4","description":"## Version Bump Workflow\n\nCoordinating release from 0.30.3 to 0.30.4.\n\n### Components Updated\n- Go CLI (cmd/bd/version.go)\n- Claude Plugin (.claude-plugin/*.json)\n- MCP Server (integrations/beads-mcp/)\n- npm Package (npm-package/package.json)\n- Git hooks (cmd/bd/templates/hooks/)\n\n### Release Channels\n- GitHub Releases (GoReleaser)\n- PyPI (beads-mcp)\n- npm (@beads/cli)\n- Homebrew (homebrew-beads tap)\n","status":"tombstone","priority":1,"issue_type":"epic","created_at":"2025-12-17T21:19:10.926133-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"epic"} +{"id":"bd-pbh.1","title":"Update cmd/bd/version.go to 0.30.4","description":"Update the Version constant in cmd/bd/version.go:\n```go\nVersion = \"0.30.4\"\n```\n\n\n```verify\ngrep -q 'Version = \"0.30.4\"' cmd/bd/version.go\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:10.9462-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.1","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:10.946633-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.10","title":"Run check-versions.sh - all must pass","description":"Run the version consistency check:\n```bash\n./scripts/check-versions.sh\n```\n\nAll versions must match 0.30.4.\n\n\n```verify\n./scripts/check-versions.sh\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.047311-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.10","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.047888-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.10","depends_on_id":"bd-pbh.1","type":"blocks","created_at":"2025-12-17T21:19:11.159084-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.10","depends_on_id":"bd-pbh.4","type":"blocks","created_at":"2025-12-17T21:19:11.168248-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.10","depends_on_id":"bd-pbh.5","type":"blocks","created_at":"2025-12-17T21:19:11.177869-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.10","depends_on_id":"bd-pbh.6","type":"blocks","created_at":"2025-12-17T21:19:11.187629-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.10","depends_on_id":"bd-pbh.7","type":"blocks","created_at":"2025-12-17T21:19:11.199955-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.10","depends_on_id":"bd-pbh.8","type":"blocks","created_at":"2025-12-17T21:19:11.211479-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.10","depends_on_id":"bd-pbh.9","type":"blocks","created_at":"2025-12-17T21:19:11.224059-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.11","title":"Commit changes and create v0.30.4 tag","description":"```bash\ngit add -A\ngit commit -m \"chore: Bump version to 0.30.4\"\ngit tag -a v0.30.4 -m \"Release v0.30.4\"\n```\n\n\n```verify\ngit describe --tags --exact-match HEAD 2\u003e/dev/null | grep -q 'v0.30.4'\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.056575-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.11","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.056934-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.11","depends_on_id":"bd-pbh.10","type":"blocks","created_at":"2025-12-17T21:19:11.234175-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.11","depends_on_id":"bd-pbh.2","type":"blocks","created_at":"2025-12-17T21:19:11.245316-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.11","depends_on_id":"bd-pbh.3","type":"blocks","created_at":"2025-12-17T21:19:11.255362-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.12","title":"Push commit and tag to origin","description":"```bash\ngit push origin main\ngit push origin v0.30.4\n```\n\nThis triggers GitHub Actions:\n- GoReleaser build\n- PyPI publish\n- npm publish\n\n\n```verify\ngit ls-remote origin refs/tags/v0.30.4 | grep -q 'v0.30.4'\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.066074-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.12","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.066442-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.12","depends_on_id":"bd-pbh.11","type":"blocks","created_at":"2025-12-17T21:19:11.265986-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.13","title":"Monitor GoReleaser CI job","description":"Watch the GoReleaser action:\nhttps://github.com/steveyegge/beads/actions/workflows/release.yml\n\nShould complete in ~10 minutes and create:\n- GitHub Release with binaries for all platforms\n- Checksums and signatures\n\nCheck status:\n```bash\ngh run list --workflow=release.yml -L 1\ngh run watch # to monitor live\n```\n\nVerify release exists:\n```bash\ngh release view v0.30.4\n```\n\n\n```verify\ngh release view v0.30.4 --json tagName -q .tagName | grep -q 'v0.30.4'\n```","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-17T21:19:11.074476-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.13","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.074833-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.13","depends_on_id":"bd-pbh.12","type":"blocks","created_at":"2025-12-17T21:19:11.279092-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.14","title":"Monitor PyPI publish","description":"Watch the PyPI publish action:\nhttps://github.com/steveyegge/beads/actions/workflows/pypi-publish.yml\n\nVerify at: https://pypi.org/project/beads-mcp/0.30.4/\n\nCheck:\n```bash\npip index versions beads-mcp 2\u003e/dev/null | grep -q '0.30.4'\n```\n\n\n```verify\npip index versions beads-mcp 2\u003e/dev/null | grep -q '0.30.4' || curl -s https://pypi.org/pypi/beads-mcp/json | jq -e '.releases[\"0.30.4\"]'\n```","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-17T21:19:11.083809-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.14","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.084126-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.14","depends_on_id":"bd-pbh.12","type":"blocks","created_at":"2025-12-17T21:19:11.289698-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.15","title":"Monitor npm publish","description":"Watch the npm publish action:\nhttps://github.com/steveyegge/beads/actions/workflows/npm-publish.yml\n\nVerify at: https://www.npmjs.com/package/@anthropics/claude-code-beads-plugin/v/0.30.4\n\nCheck:\n```bash\nnpm view @anthropics/claude-code-beads-plugin@0.30.4 version\n```\n\n\n```verify\nnpm view @anthropics/claude-code-beads-plugin@0.30.4 version 2\u003e/dev/null | grep -q '0.30.4'\n```","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-17T21:19:11.091806-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.15","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.092205-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.15","depends_on_id":"bd-pbh.12","type":"blocks","created_at":"2025-12-17T21:19:11.301843-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.16","title":"Update Homebrew formula","description":"After GoReleaser completes, the Homebrew tap should be auto-updated.\n\nIf manual update needed:\n```bash\n./scripts/update-homebrew.sh v0.30.4\n```\n\nOr manually update steveyegge/homebrew-beads with new SHA256.\n\nVerify:\n```bash\nbrew update\nbrew info beads\n```\n","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-17T21:19:11.100213-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.16","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.100541-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.16","depends_on_id":"bd-pbh.13","type":"blocks","created_at":"2025-12-17T21:19:11.312625-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.17","title":"Install 0.30.4 Go binary locally","description":"Rebuild and install the Go binary:\n```bash\ngo install ./cmd/bd\n# OR\nmake install\n```\n\nVerify:\n```bash\nbd --version\n```\n\n\n```verify\nbd --version 2\u003e\u00261 | grep -q '0.30.4'\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.108597-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.17","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.108917-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.17","depends_on_id":"bd-pbh.13","type":"blocks","created_at":"2025-12-17T21:19:11.322091-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.18","title":"Restart beads daemon","description":"Kill any running daemons so they pick up the new version:\n```bash\nbd daemons killall\n```\n\nStart fresh daemon:\n```bash\nbd list # triggers daemon start\n```\n\nVerify daemon version:\n```bash\nbd version --daemon\n```\n\n\n```verify\nbd version --daemon 2\u003e\u00261 | grep -q '0.30.4'\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.11636-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.18","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.116706-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.18","depends_on_id":"bd-pbh.17","type":"blocks","created_at":"2025-12-17T21:19:11.330411-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.19","title":"Install 0.30.4 MCP server locally","description":"Upgrade the MCP server (after PyPI publish):\n```bash\npip install --upgrade beads-mcp\n# OR if using uv:\nuv tool upgrade beads-mcp\n```\n\nVerify:\n```bash\npip show beads-mcp | grep Version\n```\n\n\n```verify\npip show beads-mcp 2\u003e/dev/null | grep -q 'Version: 0.30.4'\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.124496-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.19","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.124829-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.19","depends_on_id":"bd-pbh.14","type":"blocks","created_at":"2025-12-17T21:19:11.343558-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.2","title":"Update CHANGELOG.md for 0.30.4","description":"1. Change `## [Unreleased]` to `## [0.30.4] - 2025-12-17`\n2. Add new empty `## [Unreleased]` section at top\n3. Ensure all changes since 0.30.3 are documented\n","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:10.956332-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.2","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:10.95683-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.20","title":"Update git hooks","description":"Install the updated hooks:\n```bash\nbd hooks install\n```\n\nVerify hook version:\n```bash\ngrep 'bd-hooks-version' .git/hooks/pre-commit\n```\n\n\n```verify\ngrep -q 'bd-hooks-version: 0.30.4' .git/hooks/pre-commit 2\u003e/dev/null || echo 'Hooks may not be installed - verify manually'\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.13198-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.20","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.132306-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.20","depends_on_id":"bd-pbh.17","type":"blocks","created_at":"2025-12-17T21:19:11.352288-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.21","title":"Final release verification","description":"Verify all release artifacts are accessible:\n\n- [ ] `bd --version` shows 0.30.4\n- [ ] `bd version --daemon` shows 0.30.4\n- [ ] GitHub release exists: https://github.com/steveyegge/beads/releases/tag/v0.30.4\n- [ ] `brew upgrade beads \u0026\u0026 bd --version` shows 0.30.4 (if using Homebrew)\n- [ ] `pip show beads-mcp` shows 0.30.4\n- [ ] npm package available at 0.30.4\n- [ ] `bd info --whats-new` shows 0.30.4 notes\n\nRun final checks:\n```bash\nbd --version\nbd version --daemon\npip show beads-mcp | grep Version\nbd info --whats-new\n```\n","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.141249-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.21","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.141549-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.21","depends_on_id":"bd-pbh.18","type":"blocks","created_at":"2025-12-17T21:19:11.364839-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.21","depends_on_id":"bd-pbh.19","type":"blocks","created_at":"2025-12-17T21:19:11.373656-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.21","depends_on_id":"bd-pbh.20","type":"blocks","created_at":"2025-12-17T21:19:11.382-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.21","depends_on_id":"bd-pbh.15","type":"blocks","created_at":"2025-12-17T21:19:11.389733-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.21","depends_on_id":"bd-pbh.16","type":"blocks","created_at":"2025-12-17T21:19:11.398347-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.3","title":"Add 0.30.4 to info.go release notes","description":"Update cmd/bd/info.go versionChanges map with release notes for 0.30.4.\nInclude any workflow-impacting changes for --whats-new output.\n","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:10.966781-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.3","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:10.967287-08:00","created_by":"daemon"},{"issue_id":"bd-pbh.3","depends_on_id":"bd-pbh.2","type":"blocks","created_at":"2025-12-17T21:19:11.149584-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.4","title":"Update .claude-plugin/plugin.json to 0.30.4","description":"Update version field in .claude-plugin/plugin.json:\n```json\n\"version\": \"0.30.4\"\n```\n\n\n```verify\njq -e '.version == \"0.30.4\"' .claude-plugin/plugin.json\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:10.976866-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.4","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:10.97729-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.5","title":"Update .claude-plugin/marketplace.json to 0.30.4","description":"Update version field in .claude-plugin/marketplace.json:\n```json\n\"version\": \"0.30.4\"\n```\n\n\n```verify\njq -e '.plugins[0].version == \"0.30.4\"' .claude-plugin/marketplace.json\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:10.985619-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.5","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:10.985942-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.6","title":"Update integrations/beads-mcp/pyproject.toml to 0.30.4","description":"Update version in pyproject.toml:\n```toml\nversion = \"0.30.4\"\n```\n\n\n```verify\ngrep -q 'version = \"0.30.4\"' integrations/beads-mcp/pyproject.toml\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:10.994004-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.6","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:10.994376-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.7","title":"Update beads_mcp/__init__.py to 0.30.4","description":"Update __version__ in integrations/beads-mcp/src/beads_mcp/__init__.py:\n```python\n__version__ = \"0.30.4\"\n```\n\n\n```verify\ngrep -q '__version__ = \"0.30.4\"' integrations/beads-mcp/src/beads_mcp/__init__.py\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.005334-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.7","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.005699-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.8","title":"Update npm-package/package.json to 0.30.4","description":"Update version field in npm-package/package.json:\n```json\n\"version\": \"0.30.4\"\n```\n\n\n```verify\njq -e '.version == \"0.30.4\"' npm-package/package.json\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.014905-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.8","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.01529-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pbh.9","title":"Update hook templates to 0.30.4","description":"Update bd-hooks-version comment in all 4 hook templates:\n- cmd/bd/templates/hooks/pre-commit\n- cmd/bd/templates/hooks/post-merge\n- cmd/bd/templates/hooks/pre-push\n- cmd/bd/templates/hooks/post-checkout\n\nEach should have:\n```bash\n# bd-hooks-version: 0.30.4\n```\n\n\n```verify\ngrep -l 'bd-hooks-version: 0.30.4' cmd/bd/templates/hooks/* | wc -l | grep -q '4'\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T21:19:11.0248-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-pbh.9","depends_on_id":"bd-pbh","type":"parent-child","created_at":"2025-12-17T21:19:11.025124-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-pd75r","title":"Feature P1","status":"open","priority":1,"issue_type":"feature","created_at":"2026-01-11T18:16:13.907182-08:00","updated_at":"2026-01-11T18:16:13.907182-08:00","created_by":"beads/crew/wolf"} {"id":"bd-pdjb","title":"Testing \u0026 Validation","description":"Ensure reliability through comprehensive testing.","notes":"Completed comprehensive Agent Mail test coverage analysis and implementation.\n\n**Test Coverage Summary:**\n- 66 total tests across 5 files\n- 51 unit tests for HTTP adapter (0.02s)\n- 15 integration tests for multi-agent scenarios (~55s total)\n\n**New Tests Added:**\nCreated `test_multi_agent_coordination.py` (4 tests, 11s) covering:\n1. Fairness: 10 agents competing for 5 issues → exactly 1 claim per issue\n2. Notifications: End-to-end message delivery between agents\n3. Handoff: Clean reservation transfer from agent1 to agent2\n4. Idempotency: Double reserve/release by same agent\n\n**Coverage Quality:**\n✅ Collision prevention (race conditions)\n✅ Graceful degradation (7 failure modes)\n✅ TTL/expiration behavior\n✅ Multi-agent coordination\n✅ JSONL consistency\n✅ HTTP error handling\n✅ Authorization and configuration\n\n**Intentionally Skipped:**\n- Path traversal (validated elsewhere)\n- Retry policies (nice-to-have)\n- HTTPS/TLS (out of scope)\n- Slow tests (50+ agents, soak tests)\n\nSee `tests/integration/AGENT_MAIL_TEST_COVERAGE.md` for details.\n\nAll tests pass. Agent Mail integration is well-tested and reliable for multi-agent scenarios.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-07T22:43:00.457985-08:00","updated_at":"2025-11-08T03:09:48.253758-08:00","closed_at":"2025-11-08T02:47:34.153586-08:00","dependencies":[{"issue_id":"bd-pdjb","depends_on_id":"bd-wfmw","type":"blocks","created_at":"2025-11-07T22:43:00.459403-08:00","created_by":"daemon"}]} {"id":"bd-pdr2","title":"Consider backwards compatibility for ready() and list() return type change","description":"PR #481 changed the return types of `ready()` and `list()` from `list[Issue]` to `list[IssueMinimal] | CompactedResult`. This is a breaking change for MCP clients.\n\n## Impact Assessment\nBreaking change affects:\n- Any MCP client expecting `list[Issue]` from ready()\n- Any MCP client expecting `list[Issue]` from list()\n- Client code that accesses full Issue fields (description, design, acceptance_criteria, timestamps, dependencies, dependents)\n\n## Current Behavior\n- ready() returns `list[IssueMinimal] | CompactedResult`\n- list() returns `list[IssueMinimal] | CompactedResult`\n- show() still returns full `Issue` (good)\n\n## Considerations\n**Pros of current approach:**\n- Forces clients to use show() for full details (good for context efficiency)\n- Simple mental model (always use show for full data)\n- Documentation warns about this\n\n**Cons:**\n- Clients expecting list[Issue] will break\n- No graceful degradation option\n- No migration period\n\n## Potential Solutions\n1. Add optional parameter `full_details=false` to ready/list (would increase payload)\n2. Create separate tools: ready_minimal/list_minimal + ready_full/list_full\n3. Accept breaking change and document upgrade path (current approach)\n4. Version the MCP server and document migration guide\n\n## Recommendation\nCurrent approach (solution 3) is reasonable if:\n- Changelog clearly documents the breaking change\n- Migration guide provided to clients\n- Error handling is graceful for clients expecting specific fields","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-14T14:24:56.460465-08:00","updated_at":"2025-12-30T15:44:43.357467-08:00","closed_at":"2025-12-30T00:38:54.425634-08:00","close_reason":"Merged via refinery","dependencies":[{"issue_id":"bd-pdr2","depends_on_id":"bd-otf4","type":"discovered-from","created_at":"2025-12-14T14:24:56.461959-08:00","created_by":"stevey"}]} {"id":"bd-pdwz","title":"Add t.Parallel() to slow hash multiclone tests","description":"Add t.Parallel() to TestHashIDs_MultiCloneConverge and TestHashIDs_IdenticalContentDedup so they run concurrently.\n\nExpected savings: ~10 seconds (from 20s to ~11s)\n\nImplementation:\n- Add t.Parallel() call at start of each test function\n- Verify tests don't share resources that would cause conflicts\n- Run tests to confirm they work in parallel\n\nFile: beads_hash_multiclone_test.go:34, :101","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-04T01:24:15.705228-08:00","updated_at":"2025-11-04T09:52:31.945545-08:00","closed_at":"2025-11-04T09:52:31.945545-08:00","dependencies":[{"issue_id":"bd-pdwz","depends_on_id":"bd-l5gq","type":"blocks","created_at":"2025-11-04T01:24:15.706149-08:00","created_by":"daemon"}]} {"id":"bd-pe4s","title":"JSON test issue","description":"Line 1\nLine 2\nLine 3","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-16T16:14:36.969074-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-peitc","title":"Review and merge PR #1054: bump actions/setup-node v4→v6","description":"dispatched_by: beads/crew/emma\n\n## Easy-win PR Review\n\nPR: https://github.com/steveyegge/beads/pull/1054\nType: Dependabot dependency bump (GitHub Actions)\nChange: actions/setup-node v4 → v6\n\n## Task\n1. Review the PR diff: `gh pr diff 1054 --repo steveyegge/beads`\n2. Check CI status: `gh pr checks 1054 --repo steveyegge/beads`\n3. If CI passes and diff looks safe, approve and merge:\n `gh pr review 1054 --repo steveyegge/beads --approve`\n `gh pr merge 1054 --repo steveyegge/beads --squash`\n4. Close this bead when done\n\n## Notes\n- This is a major version bump but setup-node is a well-maintained GitHub action\n- Breaking changes are documented in release notes (automatic caching behavior)","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/dave","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:28:32.081248-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T19:41:26.679609-08:00","closed_at":"2026-01-12T19:41:26.679609-08:00","close_reason":"Reviewed and merged PR #1054. CI failures (Lint, Test macos-latest, Test Nix Flake) are pre-existing on main and unrelated to this docs workflow change.","external_ref":"gh-1054"} +{"id":"bd-peitc","title":"Review and merge PR #1054: bump actions/setup-node v4→v6","description":"dispatched_by: beads/crew/emma\n\n## Easy-win PR Review\n\nPR: https://github.com/steveyegge/beads/pull/1054\nType: Dependabot dependency bump (GitHub Actions)\nChange: actions/setup-node v4 → v6\n\n## Task\n1. Review the PR diff: `gh pr diff 1054 --repo steveyegge/beads`\n2. Check CI status: `gh pr checks 1054 --repo steveyegge/beads`\n3. If CI passes and diff looks safe, approve and merge:\n `gh pr review 1054 --repo steveyegge/beads --approve`\n `gh pr merge 1054 --repo steveyegge/beads --squash`\n4. Close this bead when done\n\n## Notes\n- This is a major version bump but setup-node is a well-maintained GitHub action\n- Breaking changes are documented in release notes (automatic caching behavior)","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T19:28:32.081248-08:00","updated_at":"2026-01-12T19:41:26.679609-08:00","closed_at":"2026-01-12T19:41:26.679609-08:00","close_reason":"Reviewed and merged PR #1054. CI failures (Lint, Test macos-latest, Test Nix Flake) are pre-existing on main and unrelated to this docs workflow change.","created_by":"beads/crew/emma"} {"id":"bd-pg1","title":"[CRITICAL] Sync validation false positive - legitimate deletions trigger 'data loss detected'","description":"Sync preflight validation incorrectly detects 'data loss' when legitimate deletions occur. This blocks all syncs and is the highest priority fix.","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-28T17:27:42.179281-08:00","updated_at":"2025-11-28T18:36:52.088427-08:00","closed_at":"2025-11-28T17:42:49.92251-08:00"} {"id":"bd-pgcs","title":"Clean up orphaned child issues (bd-cb64c226.*, bd-cbed9619.*)","description":"## Problem\n\nEvery bd command shows warnings about 12 orphaned child issues:\n- bd-cb64c226.1, .6, .8, .9, .10, .12, .13\n- bd-cbed9619.1, .2, .3, .4, .5\n\nThese are hierarchical IDs (parent.child format) where the parent issues no longer exist.\n\n## Impact\n\n- Clutters output of every bd command\n- Confusing for users\n- Indicates incomplete cleanup of deleted parent issues\n\n## Proposed Solution\n\n1. Delete the orphaned issues since their parents no longer exist:\n ```bash\n bd delete bd-cb64c226.1 bd-cb64c226.6 bd-cb64c226.8 ...\n ```\n\n2. Or convert them to top-level issues if they contain useful content\n\n## Investigation Needed\n\n- What were the parent issues bd-cb64c226 and bd-cbed9619?\n- Why were they deleted without their children?\n- Should bd delete cascade to children automatically?","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-16T23:06:17.240571-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pgh","title":"Deacon Patrol","description":"Mayor's daemon patrol loop for handling callbacks, health checks, and cleanup.","status":"tombstone","priority":2,"issue_type":"molecule","created_at":"2025-12-26T21:20:47.62144-08:00","created_by":"deacon","updated_at":"2025-12-27T00:10:54.177166-08:00","deleted_at":"2025-12-27T00:10:54.177166-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"molecule"} -{"id":"bd-phin","title":"bd wisp create doesn't set Wisp flag on spawned issues","description":"When running 'bd wisp create \u003cproto\u003e', the spawned issues don't have Wisp: true set. They show up in 'bd ready' and get synced to JSONL.\n\nExample: gt-lqc6m and gt-wisp-ry9 are mol-deacon-patrol issues that should be wisps but have wisp: null.\n\nThis causes patrol cycles to pollute the issue database and show up as ready work.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-27T00:34:06.684776-08:00","created_by":"mayor","updated_at":"2025-12-27T14:48:01.774826-08:00","closed_at":"2025-12-27T14:48:01.774826-08:00"} -{"id":"bd-phtv","title":"bd pin: pinned field overwritten by subsequent bd commands","description":"## Summary\n\nThe `bd pin` command correctly sets `pinned=1` in SQLite, but any subsequent `bd` command (including read-only commands like `bd show`) resets `pinned` to 0.\n\n## Reproduction Steps\n\n```bash\nbd --no-daemon pin \u003cissue-id\u003e --for=max\nsqlite3 .beads/beads.db \"SELECT id, pinned FROM issues WHERE id=\\\"\u003cissue-id\u003e\\\"\"\n# Shows pinned=1 ✓\n\nbd --no-daemon show \u003cissue-id\u003e --json\nsqlite3 .beads/beads.db \"SELECT id, pinned FROM issues WHERE id=\\\"\u003cissue-id\u003e\\\"\"\n# Shows pinned=0 ✗ WRONG\n```\n\n## Root Cause Investigation\n\n### Prime Suspects\n\n1. **JSONL import overwrites DB** - The `pinned` field has `omitempty` so false values arent in JSONL. When JSONL is imported, it overwrites the DB pinned=1 with default pinned=0.\n\n2. **Files to check:**\n - `internal/importer/importer.go` - ImportIssue() may unconditionally set all fields\n - `internal/storage/sqlite/issues.go` - UpsertIssue() may not preserve pinned\n - `cmd/bd/main.go` - ensureStoreActive() may trigger import\n\n### Debug Steps\n\n```bash\n# Add debug logging to track what is writing pinned=0\ngrep -rn \"pinned\" internal/storage/sqlite/*.go\ngrep -rn \"Pinned\" internal/importer/*.go\n```\n\n## Likely Fix\n\nIn `internal/importer/importer.go` or `internal/storage/sqlite/issues.go`:\n\n```go\n// When upserting from JSONL, preserve pinned field if already set\nfunc (s *SQLiteStorage) UpsertIssue(ctx context.Context, issue *types.Issue) error {\n // Check if issue exists and is pinned\n existing, _ := s.GetIssue(ctx, issue.ID)\n if existing != nil \u0026\u0026 existing.Pinned \u0026\u0026 !issue.Pinned {\n // Preserve existing pinned status\n issue.Pinned = existing.Pinned\n }\n // ... rest of upsert\n}\n```\n\nOR the import should skip fields that are omitempty and not present in JSONL:\n\n```go\n// In importer, only update fields that are explicitly set in JSONL\n// Pinned with omitempty means absent = dont change, not absent = false\n```\n\n## Testing\n\n```bash\n# After fix:\nbd --no-daemon pin \u003cissue-id\u003e --for=max\nbd --no-daemon show \u003cissue-id\u003e --json # Should not reset pinned\nbd list --pinned # Should show the pinned issue\nbd hook --agent max # Should show pinned work\n```\n\n## Files to Modify\n\n1. **internal/importer/importer.go** - Preserve pinned on import\n2. **internal/storage/sqlite/issues.go** - UpsertIssue preserve pinned\n3. **Add test** in internal/importer/importer_test.go\n\n## Success Criteria\n- `bd pin` survives subsequent bd commands\n- `bd list --pinned` shows pinned issues\n- `bd hook --agent X` shows pinned work\n- Existing tests still pass","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-23T12:32:20.046988-08:00","updated_at":"2025-12-23T13:47:49.936021-08:00","closed_at":"2025-12-23T13:47:49.936021-08:00","labels":["export:pinned-field-fix"],"dependencies":[{"issue_id":"bd-phtv","depends_on_id":"bd-iz5t","type":"parent-child","created_at":"2025-12-23T12:44:07.140151-08:00","created_by":"daemon"}]} +{"id":"bd-pgh","title":"Deacon Patrol","description":"Mayor's daemon patrol loop for handling callbacks, health checks, and cleanup.","status":"tombstone","priority":2,"issue_type":"molecule","created_at":"2025-12-26T21:20:47.62144-08:00","updated_at":"2025-12-27T00:10:54.177166-08:00","created_by":"deacon","deleted_at":"2025-12-27T00:10:54.177166-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"molecule"} +{"id":"bd-phin","title":"bd wisp create doesn't set Wisp flag on spawned issues","description":"When running 'bd wisp create \u003cproto\u003e', the spawned issues don't have Wisp: true set. They show up in 'bd ready' and get synced to JSONL.\n\nExample: gt-lqc6m and gt-wisp-ry9 are mol-deacon-patrol issues that should be wisps but have wisp: null.\n\nThis causes patrol cycles to pollute the issue database and show up as ready work.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-27T00:34:06.684776-08:00","updated_at":"2025-12-27T14:48:01.774826-08:00","closed_at":"2025-12-27T14:48:01.774826-08:00","created_by":"mayor"} +{"id":"bd-phtv","title":"bd pin: pinned field overwritten by subsequent bd commands","description":"## Summary\n\nThe `bd pin` command correctly sets `pinned=1` in SQLite, but any subsequent `bd` command (including read-only commands like `bd show`) resets `pinned` to 0.\n\n## Reproduction Steps\n\n```bash\nbd --no-daemon pin \u003cissue-id\u003e --for=max\nsqlite3 .beads/beads.db \"SELECT id, pinned FROM issues WHERE id=\\\"\u003cissue-id\u003e\\\"\"\n# Shows pinned=1 ✓\n\nbd --no-daemon show \u003cissue-id\u003e --json\nsqlite3 .beads/beads.db \"SELECT id, pinned FROM issues WHERE id=\\\"\u003cissue-id\u003e\\\"\"\n# Shows pinned=0 ✗ WRONG\n```\n\n## Root Cause Investigation\n\n### Prime Suspects\n\n1. **JSONL import overwrites DB** - The `pinned` field has `omitempty` so false values arent in JSONL. When JSONL is imported, it overwrites the DB pinned=1 with default pinned=0.\n\n2. **Files to check:**\n - `internal/importer/importer.go` - ImportIssue() may unconditionally set all fields\n - `internal/storage/sqlite/issues.go` - UpsertIssue() may not preserve pinned\n - `cmd/bd/main.go` - ensureStoreActive() may trigger import\n\n### Debug Steps\n\n```bash\n# Add debug logging to track what is writing pinned=0\ngrep -rn \"pinned\" internal/storage/sqlite/*.go\ngrep -rn \"Pinned\" internal/importer/*.go\n```\n\n## Likely Fix\n\nIn `internal/importer/importer.go` or `internal/storage/sqlite/issues.go`:\n\n```go\n// When upserting from JSONL, preserve pinned field if already set\nfunc (s *SQLiteStorage) UpsertIssue(ctx context.Context, issue *types.Issue) error {\n // Check if issue exists and is pinned\n existing, _ := s.GetIssue(ctx, issue.ID)\n if existing != nil \u0026\u0026 existing.Pinned \u0026\u0026 !issue.Pinned {\n // Preserve existing pinned status\n issue.Pinned = existing.Pinned\n }\n // ... rest of upsert\n}\n```\n\nOR the import should skip fields that are omitempty and not present in JSONL:\n\n```go\n// In importer, only update fields that are explicitly set in JSONL\n// Pinned with omitempty means absent = dont change, not absent = false\n```\n\n## Testing\n\n```bash\n# After fix:\nbd --no-daemon pin \u003cissue-id\u003e --for=max\nbd --no-daemon show \u003cissue-id\u003e --json # Should not reset pinned\nbd list --pinned # Should show the pinned issue\nbd hook --agent max # Should show pinned work\n```\n\n## Files to Modify\n\n1. **internal/importer/importer.go** - Preserve pinned on import\n2. **internal/storage/sqlite/issues.go** - UpsertIssue preserve pinned\n3. **Add test** in internal/importer/importer_test.go\n\n## Success Criteria\n- `bd pin` survives subsequent bd commands\n- `bd list --pinned` shows pinned issues\n- `bd hook --agent X` shows pinned work\n- Existing tests still pass","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-23T12:32:20.046988-08:00","updated_at":"2025-12-23T13:47:49.936021-08:00","closed_at":"2025-12-23T13:47:49.936021-08:00","dependencies":[{"issue_id":"bd-phtv","depends_on_id":"bd-iz5t","type":"parent-child","created_at":"2025-12-23T12:44:07.140151-08:00","created_by":"daemon"}]} {"id":"bd-phwd","title":"Add timeout message for long-running git push operations","description":"When git push hangs waiting for credential/browser auth, show a periodic message to the user instead of appearing frozen. Add timeout messaging after N seconds of inactivity during git operations.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-21T11:44:57.318984535-07:00","updated_at":"2025-12-21T11:46:05.218023559-07:00","closed_at":"2025-12-21T11:46:05.218023559-07:00"} -{"id":"bd-phxh6","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:37:21.002794-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T20:37:21.067189-08:00","closed_at":"2026-01-11T20:37:21.067189-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-pi34h","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:03:04.896388-08:00","created_by":"beads/witness","updated_at":"2026-01-10T21:03:04.94166-08:00","closed_at":"2026-01-10T21:03:04.94166-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-pi8yh","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:52:05.083333-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-09T13:52:05.119062-08:00","closed_at":"2026-01-09T13:52:05.119062-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-piywi","title":"Review PR #953: Fix --due/--defer in daemon mode","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #953 (steveyegge/beads)\n\nPR: https://github.com/steveyegge/beads/pull/953\nAuthor: peterkc\nFixes: #952, #950\n\nFixes daemon mode silently ignoring --due and --defer flags.\n- gh pr view 953 --repo steveyegge/beads\n- gh pr diff 953 --repo steveyegge/beads\n- If good: gh pr merge 953 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/wolf","created_at":"2026-01-08T14:30:25.036198-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:37:01.629172-08:00","closed_at":"2026-01-08T14:37:01.629172-08:00","close_reason":"PR #953 merged. Fixes daemon mode ignoring --due/--defer flags (GH#952, GH#950)."} -{"id":"bd-pjiwh","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:21:22.357328-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T00:21:22.421968-08:00","closed_at":"2026-01-12T00:21:22.421968-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-pjm1a","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:34:16.296526-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T20:34:16.336496-08:00","closed_at":"2026-01-08T20:34:16.336496-08:00","close_reason":"auto-closed session event"} +{"id":"bd-phxh6","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T20:37:21.002794-08:00","updated_at":"2026-01-11T20:37:21.067189-08:00","closed_at":"2026-01-11T20:37:21.067189-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-pi34h","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:03:04.896388-08:00","updated_at":"2026-01-10T21:03:04.94166-08:00","closed_at":"2026-01-10T21:03:04.94166-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} +{"id":"bd-pi8yh","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:52:05.083333-08:00","updated_at":"2026-01-09T13:52:05.119062-08:00","closed_at":"2026-01-09T13:52:05.119062-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} +{"id":"bd-piywi","title":"Review PR #953: Fix --due/--defer in daemon mode","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #953 (steveyegge/beads)\n\nPR: https://github.com/steveyegge/beads/pull/953\nAuthor: peterkc\nFixes: #952, #950\n\nFixes daemon mode silently ignoring --due and --defer flags.\n- gh pr view 953 --repo steveyegge/beads\n- gh pr diff 953 --repo steveyegge/beads\n- If good: gh pr merge 953 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-08T14:30:25.036198-08:00","updated_at":"2026-01-08T14:37:01.629172-08:00","closed_at":"2026-01-08T14:37:01.629172-08:00","close_reason":"PR #953 merged. Fixes daemon mode ignoring --due/--defer flags (GH#952, GH#950).","created_by":"beads/crew/emma"} +{"id":"bd-pjiwh","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:21:22.357328-08:00","updated_at":"2026-01-12T00:21:22.421968-08:00","closed_at":"2026-01-12T00:21:22.421968-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-pjm1a","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:34:16.296526-08:00","updated_at":"2026-01-08T20:34:16.336496-08:00","closed_at":"2026-01-08T20:34:16.336496-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-pmuu","title":"Create architecture decision record (ADR)","description":"Document why we chose Agent Mail, alternatives considered, and tradeoffs.\n\nAcceptance Criteria:\n- Problem statement (git traffic, no locks)\n- Alternatives considered (custom RPC, Redis, etc.)\n- Why Agent Mail fits Beads\n- Integration principles (optional, graceful degradation)\n- Future considerations\n\nFile: docs/adr/002-agent-mail-integration.md","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-07T22:42:51.420203-08:00","updated_at":"2025-11-08T00:06:01.816892-08:00","closed_at":"2025-11-08T00:06:01.816892-08:00","dependencies":[{"issue_id":"bd-pmuu","depends_on_id":"bd-spmx","type":"parent-child","created_at":"2025-11-08T00:02:47.93119-08:00","created_by":"daemon"}]} {"id":"bd-pn0t","title":"Add 0.33.2 to versionChanges in info.go","description":"Add new entry at TOP of versionChanges in cmd/bd/info.go with release notes from CHANGELOG.md. Must do before bump-version.sh --commit.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T16:10:13.760056-08:00","updated_at":"2025-12-21T17:29:31.791368-08:00","deleted_at":"2025-12-21T17:29:31.791368-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-pndo","title":"Technical debt: Multiple deprecated command aliases still exist","description":"attached_args: Remove deprecated command aliases\n\nSeveral deprecated command aliases are still present in the codebase:\n\n1. cmd/bd/relate.go:51 - 'bd relate' deprecated for 'bd dep relate'\n2. cmd/bd/relate.go:56 - 'bd unrelate' deprecated for 'bd dep unrelate'\n3. cmd/bd/daemons.go:618 - 'bd daemons' deprecated for 'bd daemon \u003csubcommand\u003e'\n4. cmd/bd/migrate_hash_ids.go:433 - alias for 'bd migrate hash-ids'\n5. cmd/bd/migrate_tombstones.go:352 - alias for 'bd migrate tombstones'\n6. cmd/bd/migrate_sync.go:68 - alias for 'bd migrate sync'\n7. cmd/bd/migrate_issues.go:717 - alias for 'bd migrate issues'\n8. cmd/bd/comments.go:214 - deprecated for 'bd comments add'\n9. cmd/bd/template.go:64,82,147,226 - multiple template commands deprecated for 'bd mol'\n10. cmd/bd/admin_aliases.go - multiple admin aliases deprecated\n11. cmd/bd/detect_pollution.go:24 - deprecated for 'bd doctor --check=pollution'\n\nConsider:\n1. Setting a deprecation timeline (e.g., remove in v2.0)\n2. Adding warnings when deprecated commands are used\n3. Documenting migration path in CHANGELOG\n\nLocation: Various files in cmd/bd/","status":"closed","priority":4,"issue_type":"chore","created_at":"2025-12-28T15:32:56.11458-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T16:43:56.279146-08:00","closed_at":"2025-12-28T16:43:56.279146-08:00","dependencies":[{"issue_id":"bd-pndo","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.31481-08:00","created_by":"daemon"}]} -{"id":"bd-pnx2","title":"Epic: Bulletproof sync atomicity (GH#885)","description":"Comprehensive fix for GH#885: Sync failure leaves local JSONL stale. Problem: When bd sync fails mid-operation, JSONL/SQLite/git can diverge causing bd ready to show wrong tasks. Solution: Multiple layers - 1) Core fix: Defer SQLite metadata until after git commit, 2) Pre-flight: Detect uncommitted changes, 3) Recovery: bd doctor check, 4) Defense: Rollback on failure.","status":"closed","priority":1,"issue_type":"epic","created_at":"2026-01-04T13:53:45.445798-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-04T23:07:51.178942-08:00","closed_at":"2026-01-04T23:07:51.178942-08:00","close_reason":"All children completed: deferred metadata updates, pre-flight detection, doctor check, and rollback on failure"} +{"id":"bd-pndo","title":"Technical debt: Multiple deprecated command aliases still exist","description":"attached_args: Remove deprecated command aliases\n\nSeveral deprecated command aliases are still present in the codebase:\n\n1. cmd/bd/relate.go:51 - 'bd relate' deprecated for 'bd dep relate'\n2. cmd/bd/relate.go:56 - 'bd unrelate' deprecated for 'bd dep unrelate'\n3. cmd/bd/daemons.go:618 - 'bd daemons' deprecated for 'bd daemon \u003csubcommand\u003e'\n4. cmd/bd/migrate_hash_ids.go:433 - alias for 'bd migrate hash-ids'\n5. cmd/bd/migrate_tombstones.go:352 - alias for 'bd migrate tombstones'\n6. cmd/bd/migrate_sync.go:68 - alias for 'bd migrate sync'\n7. cmd/bd/migrate_issues.go:717 - alias for 'bd migrate issues'\n8. cmd/bd/comments.go:214 - deprecated for 'bd comments add'\n9. cmd/bd/template.go:64,82,147,226 - multiple template commands deprecated for 'bd mol'\n10. cmd/bd/admin_aliases.go - multiple admin aliases deprecated\n11. cmd/bd/detect_pollution.go:24 - deprecated for 'bd doctor --check=pollution'\n\nConsider:\n1. Setting a deprecation timeline (e.g., remove in v2.0)\n2. Adding warnings when deprecated commands are used\n3. Documenting migration path in CHANGELOG\n\nLocation: Various files in cmd/bd/","status":"closed","priority":4,"issue_type":"chore","created_at":"2025-12-28T15:32:56.11458-08:00","updated_at":"2025-12-28T16:43:56.279146-08:00","closed_at":"2025-12-28T16:43:56.279146-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-pndo","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.31481-08:00","created_by":"daemon"}]} +{"id":"bd-pnx2","title":"Epic: Bulletproof sync atomicity (GH#885)","description":"Comprehensive fix for GH#885: Sync failure leaves local JSONL stale. Problem: When bd sync fails mid-operation, JSONL/SQLite/git can diverge causing bd ready to show wrong tasks. Solution: Multiple layers - 1) Core fix: Defer SQLite metadata until after git commit, 2) Pre-flight: Detect uncommitted changes, 3) Recovery: bd doctor check, 4) Defense: Rollback on failure.","status":"closed","priority":1,"issue_type":"epic","created_at":"2026-01-04T13:53:45.445798-08:00","updated_at":"2026-01-04T23:07:51.178942-08:00","closed_at":"2026-01-04T23:07:51.178942-08:00","close_reason":"All children completed: deferred metadata updates, pre-flight detection, doctor check, and rollback on failure","created_by":"beads/crew/emma"} {"id":"bd-poh9","title":"Complete and commit beads-mcp type safety improvements","description":"Uncommitted type safety work in beads-mcp needs review and completion","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-20T19:23:32.8516-05:00","updated_at":"2025-11-20T19:27:00.88849-05:00","closed_at":"2025-11-20T19:27:00.88849-05:00"} -{"id":"bd-posw","title":"hq- prefix routing fails: '.' resolves relative to cwd, not town root","description":"## Problem\nThe hq- prefix in routes.jsonl maps to '.' which is interpreted relative to the current working directory, not the town root.\n\n## Reproduction\n```bash\ncd ~/gt \u0026\u0026 bd show hq-2cchm # Works\ncd ~/gt/beads/crew/emma \u0026\u0026 bd show hq-2cchm # Fails: 'no issue found'\n```\n\n## Root Cause\nroutes.jsonl has: {\"prefix\": \"hq-\", \"path\": \".\"}\n\nThe '.' is resolved relative to cwd, so from crew/emma it looks for ~/gt/beads/crew/emma/.beads/ instead of ~/gt/.beads/\n\n## Fix\nThe routing logic should resolve '.' as the town root, or the route should use an absolute path or a sentinel like 'TOWN_ROOT'.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-29T12:31:37.258235-08:00","created_by":"stevey","updated_at":"2025-12-29T13:45:37.471123-08:00","closed_at":"2025-12-29T13:45:37.471123-08:00","close_reason":"Fixed by adding town-aware route resolution"} -{"id":"bd-pr-sheriff","title":"PR Sheriff Standing Orders","description":"## Role: PR Sheriff (Emma)\n\nReview incoming PRs on steveyegge/beads and farm out \"easy wins\" to crew workers.\n\n## Easy-Win Criteria (NO human discretion needed)\n- Bug fixes with clear reproduction and solution\n- Documentation fixes (typos, broken links, clarifications)\n- Simple feature additions that align with existing patterns\n- Shell script fixes (portability, edge cases)\n- Test additions for existing functionality\n\n## NOT Easy-Wins (leave for human to review)\n- Security-related changes\n- Architectural decisions\n- API changes\n- Anything controversial or requiring product judgment\n- PRs that touch core functionality in non-obvious ways\n\n## PR States to Skip\n\n**STOP. READ THIS CAREFULLY.**\n\nThe search queries filter out PRs we do not touch. If queries return nothing,\nWE ARE DONE. Do not go hunting for more PRs. Do not run `gh pr list` without\nthe filter. Do not \"check on\" PRs that were filtered out.\n\n- **Draft PRs** - SKIP. Not ready for review.\n\n## Workflow\n\n### Phase 1: New PRs needing review\n1. Run: gh pr list --repo steveyegge/beads --state open --search \"review:none review:approved -review:changes_requested\"\n2. **If this returns nothing, proceed to Phase 2.**\n3. For each PR returned, review with: gh pr view \u003cnum\u003e --repo steveyegge/beads\n4. Categorize: easy-win, needs-human, or skip (spam/stale)\n5. For easy-wins: create bead, sling to available crew worker\n6. Track assignments in beads\n\n### Phase 2: Re-review PRs with new activity\nCheck for PRs where changes were requested but contributor has pushed new commits.\n\n1. Run: gh pr list --repo steveyegge/beads --search \"review:changes_requested reviewed-by:@me\"\n2. **If this returns nothing, you are DONE.**\n3. For each PR, check if new commits exist since review:\n gh pr view \u003cnum\u003e --repo steveyegge/beads --json reviews,commits --jq '{last_review: .reviews[-1].submittedAt, last_commit: .commits[-1].committedDate}'\n4. If last_commit \u003e last_review, the contributor likely addressed feedback\n5. Review the current diff, verify issues were fixed\n6. If all issues fixed: approve and merge (or flag for human if not easy-win)\n7. If issues remain: add comment noting what still needs work\n\n## Available Crew\n- dave, fang, giles, grip, wolf\n\n## Commands\n- gh pr list --repo steveyegge/beads --state open --search \"review:none review:approved -review:changes_requested\"\n- gh pr list --repo steveyegge/beads --search \"review:changes_requested reviewed-by:@me\"\n- gh pr view \u003cnum\u003e --repo steveyegge/beads\n- gh pr view \u003cnum\u003e --repo steveyegge/beads --json reviews,commits --jq '{last_review: .reviews[-1].submittedAt, last_commit: .commits[-1].committedDate}'\n- gh pr diff \u003cnum\u003e --repo steveyegge/beads\n- gt sling \u003cbead-id\u003e beads/crew/\u003cname\u003e -m \"context\"\n\n","status":"hooked","priority":1,"issue_type":"task","assignee":"beads/crew/emma","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T12:58:11.343641-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-13T12:58:21.40007-08:00"} +{"id":"bd-posw","title":"hq- prefix routing fails: '.' resolves relative to cwd, not town root","description":"## Problem\nThe hq- prefix in routes.jsonl maps to '.' which is interpreted relative to the current working directory, not the town root.\n\n## Reproduction\n```bash\ncd ~/gt \u0026\u0026 bd show hq-2cchm # Works\ncd ~/gt/beads/crew/emma \u0026\u0026 bd show hq-2cchm # Fails: 'no issue found'\n```\n\n## Root Cause\nroutes.jsonl has: {\"prefix\": \"hq-\", \"path\": \".\"}\n\nThe '.' is resolved relative to cwd, so from crew/emma it looks for ~/gt/beads/crew/emma/.beads/ instead of ~/gt/.beads/\n\n## Fix\nThe routing logic should resolve '.' as the town root, or the route should use an absolute path or a sentinel like 'TOWN_ROOT'.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-29T12:31:37.258235-08:00","updated_at":"2025-12-29T13:45:37.471123-08:00","closed_at":"2025-12-29T13:45:37.471123-08:00","close_reason":"Fixed by adding town-aware route resolution","created_by":"stevey"} +{"id":"bd-pr-sheriff","title":"PR Sheriff Standing Orders","description":"## Role: PR Sheriff (Emma)\n\nReview incoming PRs on steveyegge/beads and farm out \"easy wins\" to crew workers.\n\n## Easy-Win Criteria (NO human discretion needed)\n- Bug fixes with clear reproduction and solution\n- Documentation fixes (typos, broken links, clarifications)\n- Simple feature additions that align with existing patterns\n- Shell script fixes (portability, edge cases)\n- Test additions for existing functionality\n\n## NOT Easy-Wins (leave for human to review)\n- Security-related changes\n- Architectural decisions\n- API changes\n- Anything controversial or requiring product judgment\n- PRs that touch core functionality in non-obvious ways\n\n## PR States to Skip\n\n**STOP. READ THIS CAREFULLY.**\n\nThe search queries filter out PRs we do not touch. If queries return nothing,\nWE ARE DONE. Do not go hunting for more PRs. Do not run `gh pr list` without\nthe filter. Do not \"check on\" PRs that were filtered out.\n\n- **Draft PRs** - SKIP. Not ready for review.\n\n## Workflow\n\n### Phase 1: New PRs needing review\n1. Run: gh pr list --repo steveyegge/beads --state open --search \"review:none review:approved -review:changes_requested\"\n2. **If this returns nothing, proceed to Phase 2.**\n3. For each PR returned, review with: gh pr view \u003cnum\u003e --repo steveyegge/beads\n4. Categorize: easy-win, needs-human, or skip (spam/stale)\n5. For easy-wins: create bead, sling to available crew worker\n6. Track assignments in beads\n\n### Phase 2: Re-review PRs with new activity\nCheck for PRs where changes were requested but contributor has pushed new commits.\n\n1. Run: gh pr list --repo steveyegge/beads --search \"review:changes_requested reviewed-by:@me\"\n2. **If this returns nothing, you are DONE.**\n3. For each PR, check if new commits exist since review:\n gh pr view \u003cnum\u003e --repo steveyegge/beads --json reviews,commits --jq '{last_review: .reviews[-1].submittedAt, last_commit: .commits[-1].committedDate}'\n4. If last_commit \u003e last_review, the contributor likely addressed feedback\n5. Review the current diff, verify issues were fixed\n6. If all issues fixed: approve and merge (or flag for human if not easy-win)\n7. If issues remain: add comment noting what still needs work\n\n## Available Crew\n- dave, fang, giles, grip, wolf\n\n## Commands\n- gh pr list --repo steveyegge/beads --state open --search \"review:none review:approved -review:changes_requested\"\n- gh pr list --repo steveyegge/beads --search \"review:changes_requested reviewed-by:@me\"\n- gh pr view \u003cnum\u003e --repo steveyegge/beads\n- gh pr view \u003cnum\u003e --repo steveyegge/beads --json reviews,commits --jq '{last_review: .reviews[-1].submittedAt, last_commit: .commits[-1].committedDate}'\n- gh pr diff \u003cnum\u003e --repo steveyegge/beads\n- gt sling \u003cbead-id\u003e beads/crew/\u003cname\u003e -m \"context\"\n\n","status":"hooked","priority":1,"issue_type":"task","created_at":"2026-01-13T12:58:11.343641-08:00","updated_at":"2026-01-13T12:58:21.40007-08:00","created_by":"beads/crew/emma"} {"id":"bd-psg","title":"Add tests for dependency management","description":"Key dependency functions like mergeBidirectionalTrees, GetDependencyTree, and DetectCycles have low or no coverage. These are essential for maintaining data integrity in the dependency graph.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-18T07:00:43.458548462-07:00","updated_at":"2025-12-19T09:54:57.018745301-07:00","closed_at":"2025-12-18T10:24:56.271508339-07:00","dependencies":[{"issue_id":"bd-psg","depends_on_id":"bd-6ss","type":"discovered-from","created_at":"2025-12-18T07:00:43.463910911-07:00","created_by":"matt"}]} -{"id":"bd-pspk","title":"Fix: Empty coordinator shows blank in bd swarm create output","description":"Line 992 prints 'Coordinator: ' even when coordinator is empty string.\n\nShould either:\n- Print 'Coordinator: (none)' \n- Skip the line entirely when empty\n\nMinor polish issue.","status":"closed","priority":3,"issue_type":"bug","created_at":"2025-12-28T21:38:28.651591-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T22:00:57.569797-08:00","closed_at":"2025-12-28T22:00:57.569797-08:00","dependencies":[{"issue_id":"bd-pspk","depends_on_id":"bd-2ubv","type":"parent-child","created_at":"2025-12-28T21:38:44.844669-08:00","created_by":"daemon"}]} -{"id":"bd-pu5do","title":"Issue with labels","status":"open","priority":1,"issue_type":"feature","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:13.486564-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:13.486564-08:00","labels":["backend","urgent"]} +{"id":"bd-pspk","title":"Fix: Empty coordinator shows blank in bd swarm create output","description":"Line 992 prints 'Coordinator: ' even when coordinator is empty string.\n\nShould either:\n- Print 'Coordinator: (none)' \n- Skip the line entirely when empty\n\nMinor polish issue.","status":"closed","priority":3,"issue_type":"bug","created_at":"2025-12-28T21:38:28.651591-08:00","updated_at":"2025-12-28T22:00:57.569797-08:00","closed_at":"2025-12-28T22:00:57.569797-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-pspk","depends_on_id":"bd-2ubv","type":"parent-child","created_at":"2025-12-28T21:38:44.844669-08:00","created_by":"daemon"}]} +{"id":"bd-pu5do","title":"Issue with labels","status":"open","priority":1,"issue_type":"feature","created_at":"2026-01-11T18:16:13.486564-08:00","updated_at":"2026-01-11T18:16:13.486564-08:00","created_by":"beads/crew/wolf"} {"id":"bd-pvu0","title":"Merge: bd-4opy","description":"branch: polecat/angharad\ntarget: main\nsource_issue: bd-4opy\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-23T00:24:44.057267-08:00","updated_at":"2025-12-23T01:33:25.730271-08:00","closed_at":"2025-12-23T01:33:25.730271-08:00"} -{"id":"bd-pwjkr","title":"Review \u0026 merge PR #1013: fix(validation) hyphenated prefixes","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #1013: https://github.com/steveyegge/beads/pull/1013\n\n## Summary\nFixes ValidateIDFormat to support hyphenated prefixes like 'bead-me-up-3e9'. Uses utils.ExtractIssuePrefix instead of naive first-hyphen splitting.\n\n## Changes\n- internal/validation/bead.go - Use ExtractIssuePrefix \n- internal/validation/bead_test.go - Add comprehensive test cases\n\n## Review Checklist\n- [ ] Pull the branch locally\n- [ ] Run tests: go test ./internal/validation/...\n- [ ] Verify hyphenated prefix tests pass\n- [ ] Merge with gh pr merge 1013 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/grip","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:14:25.726482-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T18:17:42.313978-08:00","closed_at":"2026-01-11T18:17:42.313978-08:00","close_reason":"PR #1013 reviewed and merged. Fix uses ExtractIssuePrefix for correct hyphenated prefix parsing."} +{"id":"bd-pwjkr","title":"Review \u0026 merge PR #1013: fix(validation) hyphenated prefixes","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #1013: https://github.com/steveyegge/beads/pull/1013\n\n## Summary\nFixes ValidateIDFormat to support hyphenated prefixes like 'bead-me-up-3e9'. Uses utils.ExtractIssuePrefix instead of naive first-hyphen splitting.\n\n## Changes\n- internal/validation/bead.go - Use ExtractIssuePrefix \n- internal/validation/bead_test.go - Add comprehensive test cases\n\n## Review Checklist\n- [ ] Pull the branch locally\n- [ ] Run tests: go test ./internal/validation/...\n- [ ] Verify hyphenated prefix tests pass\n- [ ] Merge with gh pr merge 1013 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T18:14:25.726482-08:00","updated_at":"2026-01-11T18:17:42.313978-08:00","closed_at":"2026-01-11T18:17:42.313978-08:00","close_reason":"PR #1013 reviewed and merged. Fix uses ExtractIssuePrefix for correct hyphenated prefix parsing.","created_by":"beads/crew/emma"} {"id":"bd-pzw7","title":"gt handoff deadlock at handoff.go:125","notes":"When running 'gt handoff -m \"message\"' after successful MR submit, go panics with 'fatal error: all goroutines are asleep - deadlock\\!' at handoff.go:125. The shutdown request still appears to be sent successfully but the command crashes. Stack trace shows issue is in runHandoff select statement.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-19T23:22:12.46315-08:00","updated_at":"2025-12-21T17:51:25.817355-08:00","closed_at":"2025-12-21T17:51:25.817355-08:00"} {"id":"bd-q13h","title":"Makefile Integration for Benchmarks","description":"Add a single 'bench' target to the Makefile for running performance benchmarks.\n\nTarget:\n.PHONY: bench\n\nbench:\n\tgo test -bench=. -benchtime=3s -tags=bench \\\n\t\t-cpuprofile=cpu.prof -memprofile=mem.prof \\\n\t\t./internal/storage/sqlite/\n\t@echo \"\"\n\t@echo \"Profiles generated. View flamegraph:\"\n\t@echo \" go tool pprof -http=:8080 cpu.prof\"\n\nFeatures:\n- Single simple target, no complexity\n- Always generates CPU and memory profiles\n- Clear output on how to view results\n- 3 second benchmark time for reliable results\n- Uses bench build tag for heavy benchmarks\n\nUsage:\n make bench # Run all benchmarks\n go test -bench=BenchmarkGetReadyWork... # Run specific benchmark","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-13T22:23:25.922916-08:00","updated_at":"2025-11-14T08:55:17.620824-08:00","closed_at":"2025-11-14T08:55:17.620824-08:00","dependencies":[{"issue_id":"bd-q13h","depends_on_id":"bd-zj8e","type":"blocks","created_at":"2025-11-13T22:24:06.371947-08:00","created_by":"daemon"}]} -{"id":"bd-q2b8","title":"Review PR #916: fix(doctor) metadata table query","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #916 from aaron-sangster.\n\nPR: https://github.com/anthropics/beads/pull/916\nChanges: +48/-7, 2 files (cmd/bd/doctor/sync_divergence.go, test)\n\nFix: query metadata table instead of config for last_import_time\n\nReview checklist:\n- [ ] Code quality and style\n- [ ] Tests pass\n- [ ] Logic is correct\n- [ ] Approve or request changes","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/dave","created_at":"2026-01-05T19:09:16.832569-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-05T19:11:44.812241-08:00","closed_at":"2026-01-05T19:11:44.812241-08:00","close_reason":"Reviewed and merged PR #916"} -{"id":"bd-q2k82","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:18:51.409199-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:18:51.474171-08:00","closed_at":"2026-01-11T21:18:51.474171-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-q2b8","title":"Review PR #916: fix(doctor) metadata table query","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #916 from aaron-sangster.\n\nPR: https://github.com/anthropics/beads/pull/916\nChanges: +48/-7, 2 files (cmd/bd/doctor/sync_divergence.go, test)\n\nFix: query metadata table instead of config for last_import_time\n\nReview checklist:\n- [ ] Code quality and style\n- [ ] Tests pass\n- [ ] Logic is correct\n- [ ] Approve or request changes","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-05T19:09:16.832569-08:00","updated_at":"2026-01-05T19:11:44.812241-08:00","closed_at":"2026-01-05T19:11:44.812241-08:00","close_reason":"Reviewed and merged PR #916","created_by":"beads/crew/emma"} +{"id":"bd-q2k82","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:18:51.409199-08:00","updated_at":"2026-01-11T21:18:51.474171-08:00","closed_at":"2026-01-11T21:18:51.474171-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-q2ri","title":"bd-hv01: Add comprehensive edge case tests for deletion tracking","description":"Need to add tests for: corrupted snapshot file, stale snapshot (\u003e 1 hour), concurrent sync operations (daemon + manual), partial deletion failure, empty remote JSONL, multi-repo mode with deletions, git worktree scenario.\n\nAlso refine TestDeletionWithLocalModification to check for specific conflict error instead of accepting any error.\n\nFiles: cmd/bd/deletion_tracking_test.go","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-06T18:16:26.849881-08:00","updated_at":"2025-11-06T20:06:49.221043-08:00","closed_at":"2025-11-06T19:55:39.700695-08:00","dependencies":[{"issue_id":"bd-q2ri","depends_on_id":"bd-rbxi","type":"parent-child","created_at":"2025-11-06T18:19:15.104113-08:00","created_by":"daemon"}]} -{"id":"bd-q34xp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:48:09.820674-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:48:09.890306-08:00","closed_at":"2026-01-11T22:48:09.890306-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-q34xp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:48:09.820674-08:00","updated_at":"2026-01-11T22:48:09.890306-08:00","closed_at":"2026-01-11T22:48:09.890306-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-q59i","title":"User Diagnostics (bd doctor --perf)","description":"Extend cmd/bd/doctor.go to add --perf flag for user performance diagnostics.\n\nFunctionality:\n- Add --perf flag to existing bd doctor command\n- Collect system info (OS, arch, Go version, SQLite version)\n- Collect database stats (size, issue counts, dependency counts)\n- Time key operations on user's actual database:\n * bd ready\n * bd list --status=open\n * bd show \u003crandom-issue\u003e\n * bd create (with rollback)\n * Search with filters\n- Generate CPU profile automatically (timestamped filename)\n- Output simple report with platform info, timings, profile location\n\nOutput example:\n Beads Performance Diagnostics\n Platform: darwin/arm64\n Database: 8,234 issues (4,123 open)\n \n Operation Performance:\n bd ready 42ms\n bd list --status=open 15ms\n \n Profile saved: beads-perf-2025-11-13.prof\n View: go tool pprof -http=:8080 beads-perf-2025-11-13.prof\n\nImplementation:\n- Extend cmd/bd/doctor.go (~100 lines)\n- Use runtime/pprof for CPU profiling\n- Use time.Now()/time.Since() for timing\n- Rollback test operations (don't modify user's database)","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-13T22:23:11.988562-08:00","updated_at":"2025-11-13T22:45:57.26294-08:00","closed_at":"2025-11-13T22:45:57.26294-08:00","dependencies":[{"issue_id":"bd-q59i","depends_on_id":"bd-zj8e","type":"blocks","created_at":"2025-11-13T22:24:06.336236-08:00","created_by":"daemon"}]} {"id":"bd-q652","title":"Database pollution in ~/src/dave/vc: 895 issues vs canonical 310","description":"~/src/dave/vc/.beads/beads.db has 895 total issues (675 open, 149 closed), but canonical ~/src/vc/.beads/vc.db has only 310 issues (230 open). This is 585 extra issues - likely pollution from other repositories.\n\nNeed to:\n1. Identify which issues are polluted (use detect-pollution)\n2. Compare issue IDs between dave/vc and canonical vc databases\n3. Determine pollution source (beads repo? other repos?)\n4. Clean up polluted database\n5. Root cause: why did pollution occur?","notes":"Investigation findings so far:\n- Polluted DB (~/src/dave/vc/.beads/beads.db): 241 issues (180 open, 43 closed)\n- Canonical DB (~/src/vc/.beads/vc.db): 310 issues (230 open, 62 closed)\n- Contradiction: Polluted has FEWER issues, not more (241 \u003c 310, diff of 69)\n- Only 1 unique ID in polluted: vc-55fi\n- All source_repo fields are set to \".\" in both databases\n- Issue description claims 895 issues in polluted vs 310 canonical - numbers don't match current state\n- Possible: Pollution was already partially cleaned, or issue description refers to different database?","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-07T00:07:37.999168-08:00","updated_at":"2025-11-07T00:13:32.179396-08:00","closed_at":"2025-11-07T00:13:32.179396-08:00"} -{"id":"bd-q7sd","title":"Test issue A","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-04T11:26:43.935609-08:00","created_by":"beads/polecats/onyx","updated_at":"2026-01-04T11:27:38.747869-08:00","closed_at":"2026-01-04T11:27:38.747869-08:00","close_reason":"test cleanup","dependencies":[{"issue_id":"bd-q7sd","depends_on_id":"bd-vuc2","type":"blocks","created_at":"2026-01-04T11:27:28.425196-08:00","created_by":"beads/polecats/onyx"}]} -{"id":"bd-qcgec","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T14:21:32.11211-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T14:21:32.188574-08:00","closed_at":"2026-01-13T14:21:32.188574-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-q7sd","title":"Test issue A","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-04T11:26:43.935609-08:00","updated_at":"2026-01-04T11:27:38.747869-08:00","closed_at":"2026-01-04T11:27:38.747869-08:00","close_reason":"test cleanup","created_by":"beads/polecats/onyx","dependencies":[{"issue_id":"bd-q7sd","depends_on_id":"bd-vuc2","type":"blocks","created_at":"2026-01-04T11:27:28.425196-08:00","created_by":"beads/polecats/onyx"}]} +{"id":"bd-qcgec","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T14:21:32.11211-08:00","updated_at":"2026-01-13T14:21:32.188574-08:00","closed_at":"2026-01-13T14:21:32.188574-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-qci3j","title":"Digest: mol-refinery-patrol","description":"Patrol: queue empty, 0 branches processed, no issues","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T22:06:24.386038-08:00","updated_at":"2026-01-11T22:06:24.386038-08:00","closed_at":"2026-01-11T22:06:24.385996-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-qcts0","title":"Digest: mol-refinery-patrol","description":"Patrol: queue empty, 0 branches merged","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T22:15:09.28425-08:00","updated_at":"2026-01-10T22:15:09.28425-08:00","closed_at":"2026-01-10T22:15:09.282072-08:00","close_reason":"Squashed from 11 wisps"} -{"id":"bd-qcwsy","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:16:08.290726-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T00:16:08.353902-08:00","closed_at":"2026-01-12T00:16:08.353902-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-qd5w","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:37:31.393703-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:37:31.426087-08:00","closed_at":"2026-01-07T00:37:31.426087-08:00","close_reason":"auto-closed session event"} -{"id":"bd-qdsx","title":"Support daemon.auto_commit and daemon.auto_push in config.yaml (GH#871)","description":"Allow team-wide auto-sync settings via config.yaml instead of SQLite. This enables teams to share auto-commit/auto-push settings through version control.","status":"closed","priority":2,"issue_type":"feature","created_at":"2026-01-04T10:38:09.815971-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-04T10:42:32.823135-08:00","closed_at":"2026-01-04T10:42:32.823135-08:00","close_reason":"Fixed in 9880eaf7 - daemon.auto_* settings now in config.yaml"} -{"id":"bd-qe7j","title":"Code smell: Incomplete TODOs in formula/types.go","description":"internal/formula/types.go has multiple TODO items for features that are defined in the schema but not implemented:\n\n- Line 170: Expand field not implemented in bd cook\n- Line 174: ExpandVars field not implemented\n- Line 179: Gate integration pending (bd-udsi gates)\n- Line 186: Condition evaluation not implemented\n- Line 210: Additional expansion features\n\n**Problem:**\n- Schema defines features that aren't implemented\n- Can confuse users who try to use these fields\n- Creates maintenance burden of unused code paths\n\n**Acceptance Criteria:**\n- [ ] Either implement the features OR\n- [ ] Remove unimplemented fields from schema OR\n- [ ] Document clearly which fields are future-only\n- [ ] Update related beads issues if they exist","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T18:59:59.460434-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-30T15:44:43.358286-08:00","closed_at":"2025-12-30T00:39:56.504522-08:00","close_reason":"Merged via refinery","dependencies":[{"issue_id":"bd-qe7j","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.747872-08:00","created_by":"daemon"}]} -{"id":"bd-qeoj","title":"Merge: obsidian-mjwn3dvc","description":"branch: polecat/obsidian-mjwn3dvc\ntarget: main\nsource_issue: obsidian-mjwn3dvc\nrig: beads\nagent_bead: gt-beads-polecat-obsidian","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T01:06:30.294931-08:00","created_by":"beads/polecats/obsidian","updated_at":"2026-01-02T01:08:35.791517-08:00","closed_at":"2026-01-02T01:08:35.791517-08:00","close_reason":"Merged to main"} -{"id":"bd-qhvjh","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T12:46:35.959783-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T12:46:36.030016-08:00","closed_at":"2026-01-13T12:46:36.030016-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-qcwsy","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:16:08.290726-08:00","updated_at":"2026-01-12T00:16:08.353902-08:00","closed_at":"2026-01-12T00:16:08.353902-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-qd5w","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:37:31.393703-08:00","updated_at":"2026-01-07T00:37:31.426087-08:00","closed_at":"2026-01-07T00:37:31.426087-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-qdsx","title":"Support daemon.auto_commit and daemon.auto_push in config.yaml (GH#871)","description":"Allow team-wide auto-sync settings via config.yaml instead of SQLite. This enables teams to share auto-commit/auto-push settings through version control.","status":"closed","priority":2,"issue_type":"feature","created_at":"2026-01-04T10:38:09.815971-08:00","updated_at":"2026-01-04T10:42:32.823135-08:00","closed_at":"2026-01-04T10:42:32.823135-08:00","close_reason":"Fixed in 9880eaf7 - daemon.auto_* settings now in config.yaml","created_by":"beads/crew/wolf"} +{"id":"bd-qe7j","title":"Code smell: Incomplete TODOs in formula/types.go","description":"internal/formula/types.go has multiple TODO items for features that are defined in the schema but not implemented:\n\n- Line 170: Expand field not implemented in bd cook\n- Line 174: ExpandVars field not implemented\n- Line 179: Gate integration pending (bd-udsi gates)\n- Line 186: Condition evaluation not implemented\n- Line 210: Additional expansion features\n\n**Problem:**\n- Schema defines features that aren't implemented\n- Can confuse users who try to use these fields\n- Creates maintenance burden of unused code paths\n\n**Acceptance Criteria:**\n- [ ] Either implement the features OR\n- [ ] Remove unimplemented fields from schema OR\n- [ ] Document clearly which fields are future-only\n- [ ] Update related beads issues if they exist","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T18:59:59.460434-08:00","updated_at":"2025-12-30T15:44:43.358286-08:00","closed_at":"2025-12-30T00:39:56.504522-08:00","close_reason":"Merged via refinery","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-qe7j","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.747872-08:00","created_by":"daemon"}]} +{"id":"bd-qeoj","title":"Merge: obsidian-mjwn3dvc","description":"branch: polecat/obsidian-mjwn3dvc\ntarget: main\nsource_issue: obsidian-mjwn3dvc\nrig: beads\nagent_bead: gt-beads-polecat-obsidian","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-02T01:06:30.294931-08:00","updated_at":"2026-01-02T01:08:35.791517-08:00","closed_at":"2026-01-02T01:08:35.791517-08:00","close_reason":"Merged to main","created_by":"beads/polecats/obsidian"} +{"id":"bd-qhvjh","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T12:46:35.959783-08:00","updated_at":"2026-01-13T12:46:36.030016-08:00","closed_at":"2026-01-13T12:46:36.030016-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-qhws","title":"Configure database connection pool limits for daemon mode","description":"Database connection pool not configured for file-based databases when running in daemon mode.\n\nLocation: internal/storage/sqlite/sqlite.go:108-116\n\nProblem:\n- Daemon is a long-running server handling concurrent RPC requests\n- Multiple CLI commands hit same daemon simultaneously \n- Go default: unlimited connections (MaxOpenConns=0)\n- SQLite IMMEDIATE transactions serialize on write lock\n- Can have 100+ goroutines blocked waiting, each holding connection\n- Results in connection exhaustion and 'database is locked' errors\n\nCurrent code only limits in-memory DBs:\nif isInMemory {\n db.SetMaxOpenConns(1)\n db.SetMaxIdleConns(1)\n}\n// File DBs: UNLIMITED connections!\n\nFix:\nif !isInMemory {\n maxConns := runtime.NumCPU() + 1 // 1 writer + N readers\n db.SetMaxOpenConns(maxConns)\n db.SetMaxIdleConns(2)\n db.SetConnMaxLifetime(0)\n}\n\nImpact: 'database is locked' errors under concurrent load in daemon mode\n\nNote: NOT an issue for direct CLI usage (each process isolated). Only affects daemon mode where multiple CLI commands share one database pool.\n\nEffort: 1 hour","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-16T14:51:24.579345-08:00","updated_at":"2025-11-16T15:04:00.450911-08:00","closed_at":"2025-11-16T15:04:00.450911-08:00"} -{"id":"bd-qij92","title":"Deacon Patrol","description":"Mayor's daemon patrol loop for handling callbacks, health checks, and cleanup.","status":"closed","priority":2,"issue_type":"molecule","created_at":"2026-01-07T21:42:08.757632-08:00","created_by":"gastown/crew/george","updated_at":"2026-01-09T21:15:43.008747-08:00","closed_at":"2026-01-09T21:15:43.008747-08:00","close_reason":"Orphaned patrol molecules"} +{"id":"bd-qij92","title":"Deacon Patrol","description":"Mayor's daemon patrol loop for handling callbacks, health checks, and cleanup.","status":"closed","priority":2,"issue_type":"molecule","created_at":"2026-01-07T21:42:08.757632-08:00","updated_at":"2026-01-09T21:15:43.008747-08:00","closed_at":"2026-01-09T21:15:43.008747-08:00","close_reason":"Orphaned patrol molecules","created_by":"gastown/crew/george"} {"id":"bd-qioh","title":"Standardize error handling: replace direct fmt.Fprintf+os.Exit with FatalError","description":"Standardize error handling in cmd/bd/ using FatalError pattern.\n\n## Current State\n~200+ instances of direct `fmt.Fprintf(os.Stderr, ...) + os.Exit(1)` pattern scattered across cmd/bd/*.go files.\n\n## Target Pattern\n\nUse existing FatalError helper (or create if missing):\n\n```go\n// In cmd/bd/helpers.go or similar\nfunc FatalError(format string, args ...interface{}) {\n fmt.Fprintf(os.Stderr, \"Error: \"+format+\"\\n\", args...)\n os.Exit(1)\n}\n\nfunc FatalErrorf(err error, context string) {\n fmt.Fprintf(os.Stderr, \"Error: %s: %v\\n\", context, err)\n os.Exit(1)\n}\n```\n\n## Transformation\n\n```go\n// Before\nfmt.Fprintf(os.Stderr, \"Error: %v\\n\", err)\nos.Exit(1)\n\n// After\nFatalError(\"%v\", err)\n\n// Before\nfmt.Fprintf(os.Stderr, \"Error: invalid --since duration: %v\\n\", err)\nos.Exit(1)\n\n// After\nFatalError(\"invalid --since duration: %v\", err)\n```\n\n## Files to Update (by occurrence count)\nRun: `grep -c \"os.Exit(1)\" cmd/bd/*.go | sort -t: -k2 -rn | head -20`\n\nPriority files (highest occurrence):\n- close.go\n- show.go\n- sync.go\n- init.go\n- list.go\n- create.go\n- update.go\n\n## Implementation Steps\n\n1. **Check if FatalError exists** in cmd/bd/helpers.go or create it\n2. **Create migration script** or use sed:\n ```bash\n # Find patterns to replace\n grep -rn \"fmt.Fprintf(os.Stderr.*Error.*\\n.*os.Exit(1)\" cmd/bd/\n ```\n3. **Replace systematically** file by file\n4. **Run tests** after each file to verify behavior unchanged\n5. **Run linter** to catch any missed patterns\n\n## Verification\n```bash\n# Count remaining direct exits (should be near zero)\ngrep -c \"os.Exit(1)\" cmd/bd/*.go | awk -F: \"{sum+=\\$2} END {print sum}\"\n\n# Run tests\ngo test -short ./cmd/bd/...\n```\n\n## Success Criteria\n- All error exits use FatalError/FatalErrorf\n- Consistent \"Error: \" prefix on all error messages\n- Tests pass\n- No behavior changes (exit codes remain 1)","notes":"## Progress (Dec 2025)\n\nStandardized error handling in 3 major files:\n- compact.go: All 48 os.Exit(1) calls converted to FatalError\n- sync.go: All error patterns converted (kept 1 valid summary exit)\n- migrate.go: 4 patterns converted\n\n## Remaining Work\n~326 fmt.Fprintf(os.Stderr, \"Error:\") patterns remain across ~30 files.\nHigh-count files remaining: show.go (16), dep.go (14), gate.go (28), init.go (11).\n\n## Verification\n- Build compiles successfully\n- Tests pass","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-16T18:17:19.309394-08:00","updated_at":"2025-12-23T14:14:37.939802-08:00","closed_at":"2025-12-23T14:14:37.939802-08:00","dependencies":[{"issue_id":"bd-qioh","depends_on_id":"bd-iz5t","type":"parent-child","created_at":"2025-12-23T12:44:07.43514-08:00","created_by":"daemon"}]} -{"id":"bd-qjb41","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T03:22:16.319636-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T03:22:16.359933-08:00","closed_at":"2026-01-12T03:22:16.359933-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-qket","title":"Add computed .parent field to JSON output for convenience","description":"Currently parent is only in dependencies[]. Add a top-level .parent field to JSON/JSONL output that extracts the parent-child dependency for easier querying.\n\nExample:\n```bash\n# Current (works but verbose):\nbd show \u003cid\u003e --json | jq '.[0].dependencies[] | select(.dependency_type == \"parent-child\") | .id'\n\n# Desired:\nbd show \u003cid\u003e --json | jq '.[0].parent'\n```\n\nLow priority enhancement.","status":"closed","priority":4,"issue_type":"feature","created_at":"2025-12-27T23:32:44.24217-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-28T02:24:31.453442-08:00","closed_at":"2025-12-28T02:24:31.453442-08:00"} +{"id":"bd-qjb41","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T03:22:16.319636-08:00","updated_at":"2026-01-12T03:22:16.359933-08:00","closed_at":"2026-01-12T03:22:16.359933-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-qket","title":"Add computed .parent field to JSON output for convenience","description":"Currently parent is only in dependencies[]. Add a top-level .parent field to JSON/JSONL output that extracts the parent-child dependency for easier querying.\n\nExample:\n```bash\n# Current (works but verbose):\nbd show \u003cid\u003e --json | jq '.[0].dependencies[] | select(.dependency_type == \"parent-child\") | .id'\n\n# Desired:\nbd show \u003cid\u003e --json | jq '.[0].parent'\n```\n\nLow priority enhancement.","status":"closed","priority":4,"issue_type":"feature","created_at":"2025-12-27T23:32:44.24217-08:00","updated_at":"2025-12-28T02:24:31.453442-08:00","closed_at":"2025-12-28T02:24:31.453442-08:00","created_by":"beads/crew/emma"} {"id":"bd-qkw9","title":"Run bump-version.sh {{version}}","description":"Run ./scripts/bump-version.sh {{version}} to update version in all files","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T22:55:58.841424-08:00","updated_at":"2025-12-20T17:59:26.262877-08:00","closed_at":"2025-12-20T01:18:48.99813-08:00","dependencies":[{"issue_id":"bd-qkw9","depends_on_id":"bd-6s61","type":"parent-child","created_at":"2025-12-19T22:56:14.786027-08:00","created_by":"daemon"}]} -{"id":"bd-ql330","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:35:36.995811-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-12T19:35:37.042386-08:00","closed_at":"2026-01-12T19:35:37.042386-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-qn03h","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:08:38.214164-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:08:38.280112-08:00","closed_at":"2026-01-11T22:08:38.280112-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-qn5e2","title":"Review and merge PR #1060: bump fastmcp v2.14.1→v2.14.3","description":"dispatched_by: beads/crew/emma\n\n## Easy-win PR Review\n\nPR: https://github.com/steveyegge/beads/pull/1060\nType: Dependabot dependency bump (Python pip)\nChange: fastmcp 2.14.1 → 2.14.3\n\n## Task\n1. Review the PR diff: `gh pr diff 1060 --repo steveyegge/beads`\n2. Check CI status: `gh pr checks 1060 --repo steveyegge/beads`\n3. If CI passes and diff looks safe, approve and merge:\n `gh pr review 1060 --repo steveyegge/beads --approve`\n `gh pr merge 1060 --repo steveyegge/beads --squash`\n4. Close this bead when done\n\n## Notes\n- Patch version bump with bug fixes (HTTP timeout, OAuth token storage, Redis keys)","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/fang","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:28:37.795201-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T19:38:45.874632-08:00","closed_at":"2026-01-12T19:38:45.874632-08:00","close_reason":"PR #1060 already merged (commit b9a1ef61)","external_ref":"gh-1060"} -{"id":"bd-qna0y","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:18:44.895555-08:00","created_by":"beads/witness","updated_at":"2026-01-10T21:18:44.941152-08:00","closed_at":"2026-01-10T21:18:44.941152-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-qno8m","title":"Merge: obsidian-mk99aezw","description":"branch: polecat/obsidian-mk99aezw\ntarget: main\nsource_issue: obsidian-mk99aezw\nrig: beads\nagent_bead: bd-beads-polecat-obsidian\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T20:53:49.204101-08:00","created_by":"beads/polecats/obsidian","updated_at":"2026-01-10T20:54:57.846605-08:00","closed_at":"2026-01-10T20:54:57.846605-08:00","close_reason":"Branch never pushed - false completion from obsidian","labels":["gt:merge-request"]} -{"id":"bd-qobn","title":"Code smell: 20+ global variables in main.go","description":"main.go lines 63-103 have over 20 global variables managing command-line state, daemon connection, auto-flush, auto-import, and error handling.\n\n**Globals include:**\ndbPath, actor, store, jsonOutput, daemonStatus, daemonClient, noDaemon, rootCtx, rootCancel, autoFlushEnabled, flushMutex, storeMutex, storeActive, flushFailureCount, lastFlushError, flushManager, hookRunner, skipFinalFlush, autoImportEnabled, versionUpgradeDetected, previousVersion, upgradeAcknowledged\n\n**Problem:**\n- Global state makes testing difficult\n- Race conditions possible between goroutines\n- Hard to track which functions modify which globals\n\n**Acceptance Criteria:**\n- [ ] Create CommandContext struct to hold runtime state\n- [ ] Pass context through command execution\n- [ ] Reduce global count to essential minimum\n- [ ] Tests pass","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T18:59:27.551044-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-30T18:12:30.978805-08:00","closed_at":"2025-12-30T16:17:18.258941-08:00","close_reason":"Implemented CommandContext struct to consolidate 20+ globals into 1. Added accessor functions for backward-compatible migration. Updated direct_mode.go as example.","dependencies":[{"issue_id":"bd-qobn","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.651276-08:00","created_by":"daemon"}]} -{"id":"bd-qpf3","title":"Bug: bd swarm create allows duplicate swarm molecules","description":"Running `bd swarm create \u003cepic\u003e` twice creates two swarm molecules for the same epic.\n\nShould check for existing swarm molecule linked to the epic and either:\n1. Error with 'swarm already exists: \u003cid\u003e'\n2. Warn and return existing swarm ID\n3. Add --force flag to allow creating another\n\nCheck by querying for molecules with mol_type=swarm that have a relates-to dependency to the epic.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-28T21:38:04.252522-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T21:59:59.35812-08:00","closed_at":"2025-12-28T21:59:59.35812-08:00","dependencies":[{"issue_id":"bd-qpf3","depends_on_id":"bd-2ubv","type":"parent-child","created_at":"2025-12-28T21:38:44.740671-08:00","created_by":"daemon"}]} +{"id":"bd-ql330","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:35:36.995811-08:00","updated_at":"2026-01-12T19:35:37.042386-08:00","closed_at":"2026-01-12T19:35:37.042386-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/grip"} +{"id":"bd-qn03h","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:08:38.214164-08:00","updated_at":"2026-01-11T22:08:38.280112-08:00","closed_at":"2026-01-11T22:08:38.280112-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-qn5e2","title":"Review and merge PR #1060: bump fastmcp v2.14.1→v2.14.3","description":"dispatched_by: beads/crew/emma\n\n## Easy-win PR Review\n\nPR: https://github.com/steveyegge/beads/pull/1060\nType: Dependabot dependency bump (Python pip)\nChange: fastmcp 2.14.1 → 2.14.3\n\n## Task\n1. Review the PR diff: `gh pr diff 1060 --repo steveyegge/beads`\n2. Check CI status: `gh pr checks 1060 --repo steveyegge/beads`\n3. If CI passes and diff looks safe, approve and merge:\n `gh pr review 1060 --repo steveyegge/beads --approve`\n `gh pr merge 1060 --repo steveyegge/beads --squash`\n4. Close this bead when done\n\n## Notes\n- Patch version bump with bug fixes (HTTP timeout, OAuth token storage, Redis keys)","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T19:28:37.795201-08:00","updated_at":"2026-01-12T19:38:45.874632-08:00","closed_at":"2026-01-12T19:38:45.874632-08:00","close_reason":"PR #1060 already merged (commit b9a1ef61)","created_by":"beads/crew/emma"} +{"id":"bd-qna0y","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:18:44.895555-08:00","updated_at":"2026-01-10T21:18:44.941152-08:00","closed_at":"2026-01-10T21:18:44.941152-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} +{"id":"bd-qno8m","title":"Merge: obsidian-mk99aezw","description":"branch: polecat/obsidian-mk99aezw\ntarget: main\nsource_issue: obsidian-mk99aezw\nrig: beads\nagent_bead: bd-beads-polecat-obsidian\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T20:53:49.204101-08:00","updated_at":"2026-01-10T20:54:57.846605-08:00","closed_at":"2026-01-10T20:54:57.846605-08:00","close_reason":"Branch never pushed - false completion from obsidian","created_by":"beads/polecats/obsidian"} +{"id":"bd-qobn","title":"Code smell: 20+ global variables in main.go","description":"main.go lines 63-103 have over 20 global variables managing command-line state, daemon connection, auto-flush, auto-import, and error handling.\n\n**Globals include:**\ndbPath, actor, store, jsonOutput, daemonStatus, daemonClient, noDaemon, rootCtx, rootCancel, autoFlushEnabled, flushMutex, storeMutex, storeActive, flushFailureCount, lastFlushError, flushManager, hookRunner, skipFinalFlush, autoImportEnabled, versionUpgradeDetected, previousVersion, upgradeAcknowledged\n\n**Problem:**\n- Global state makes testing difficult\n- Race conditions possible between goroutines\n- Hard to track which functions modify which globals\n\n**Acceptance Criteria:**\n- [ ] Create CommandContext struct to hold runtime state\n- [ ] Pass context through command execution\n- [ ] Reduce global count to essential minimum\n- [ ] Tests pass","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T18:59:27.551044-08:00","updated_at":"2025-12-30T18:12:30.978805-08:00","closed_at":"2025-12-30T16:17:18.258941-08:00","close_reason":"Implemented CommandContext struct to consolidate 20+ globals into 1. Added accessor functions for backward-compatible migration. Updated direct_mode.go as example.","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-qobn","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.651276-08:00","created_by":"daemon"}]} +{"id":"bd-qpf3","title":"Bug: bd swarm create allows duplicate swarm molecules","description":"Running `bd swarm create \u003cepic\u003e` twice creates two swarm molecules for the same epic.\n\nShould check for existing swarm molecule linked to the epic and either:\n1. Error with 'swarm already exists: \u003cid\u003e'\n2. Warn and return existing swarm ID\n3. Add --force flag to allow creating another\n\nCheck by querying for molecules with mol_type=swarm that have a relates-to dependency to the epic.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-28T21:38:04.252522-08:00","updated_at":"2025-12-28T21:59:59.35812-08:00","closed_at":"2025-12-28T21:59:59.35812-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-qpf3","depends_on_id":"bd-2ubv","type":"parent-child","created_at":"2025-12-28T21:38:44.740671-08:00","created_by":"daemon"}]} {"id":"bd-qph3","title":"Consolidate git context into single cached struct","description":"Code review finding from bd-7di fix.\n\nCurrently there are 3 separate caches:\n- isWorktreeOnce/isWorktreeResult\n- mainRepoRootOnce/mainRepoRootResult/mainRepoRootErr \n- repoRootOnce/repoRootResult\n\nThese have redundant git calls - e.g. both isWorktreeUncached() and getMainRepoRootUncached() call getGitDirNoError(\"--git-common-dir\").\n\nCould consolidate into a single cached struct:\n```go\ntype gitContext struct {\n gitDir string\n commonDir string\n repoRoot string\n isWorktree bool\n}\n```\n\nThis would reduce git calls further and simplify ResetCaches().\n\nFile: internal/git/gitdir.go","status":"closed","priority":4,"issue_type":"task","created_at":"2025-12-25T22:08:53.829215-08:00","updated_at":"2025-12-27T21:49:38.611332-08:00","closed_at":"2025-12-27T21:49:38.611332-08:00"} {"id":"bd-qq2i","title":"Add 'bd message send' command for Agent Mail messaging","description":"Agent Mail server supports messaging between agents, but bd CLI only uses it for file reservations. Add commands for inter-agent messaging.\n\n## Background\n- Agent Mail server running at http://127.0.0.1:8765\n- 12 workspaces configured across 3 channels (beads.dev, vc.dev, wyvern.dev)\n- Current integration: file reservations only\n- Gap: no way to send messages from bd CLI\n\n## Proposed Commands\n\n```bash\n# Send message to another agent\nbd message send \u003cto-agent\u003e \u003cmessage\u003e [options]\n --subject \u003csubject\u003e\n --thread-id \u003cthread-id\u003e # Optional - group related messages\n --project-id \u003cproject\u003e # Defaults to BEADS_PROJECT_ID\n\n# List inbox messages\nbd message inbox [options]\n --limit \u003cN\u003e\n --unread-only\n\n# Read specific message\nbd message read \u003cmessage-id\u003e\n\n# Mark message as acknowledged\nbd message ack \u003cmessage-id\u003e\n```\n\n## Example Usage\n\n```bash\n# Send message to agent in same channel\nbd message send cino-beads-stevey-macbook \"Working on bd-z0yn, need your review\" \\\n --subject \"Review request\" \\\n --thread-id bd-z0yn\n\n# Check inbox\nbd message inbox --unread-only\n\n# Read and acknowledge\nbd message read msg-abc123\nbd message ack msg-abc123\n```\n\n## Design Notes\n- Use same env vars (BEADS_AGENT_MAIL_URL, BEADS_AGENT_NAME, BEADS_PROJECT_ID)\n- Graceful degradation if Agent Mail unavailable\n- JSON output support for all commands\n- Consider integrating with bd update/close (auto-notify on status changes)\n\n## References\n- Agent Mail README: ~/src/mcp_agent_mail/README.md\n- Beads integration docs: docs/AGENT_MAIL.md","notes":"## Implementation Summary\n\nAdded four new commands to bd CLI for Agent Mail messaging:\n\n1. `bd message send \u003cto-agent\u003e \u003cmessage\u003e` - Send messages to other agents\n - Flags: --subject, --thread-id, --importance, --ack-required\n - Supports markdown content\n - Thread conversations by issue ID\n\n2. `bd message inbox` - List inbox messages\n - Flags: --limit, --unread-only, --urgent-only, --json\n - Shows subject, sender, age, importance\n - Highlights unread and ACK-required messages\n\n3. `bd message read \u003cmessage-id\u003e` - Read and mark message as read\n - Automatically marks message as read\n - Shows message content\n\n4. `bd message ack \u003cmessage-id\u003e` - Acknowledge a message\n - Marks message as acknowledged\n - Also marks as read if not already\n\n## Implementation Details\n\n- Uses JSON-RPC over HTTP to communicate with Agent Mail server\n- Configuration via environment variables (BEADS_AGENT_MAIL_URL, BEADS_AGENT_NAME, BEADS_PROJECT_ID)\n- Graceful error messages when Agent Mail not configured\n- Full JSON output support for programmatic use\n- Follows same patterns as existing bd commands\n\n## Documentation\n\nUpdated:\n- docs/AGENT_MAIL.md - Added \"Messaging Commands\" section with examples and best practices\n- README.md - Added \"Messaging (Agent Mail)\" section in Usage\n\n## Testing\n\n- Compiles successfully\n- Help output works correctly\n- Ready for integration testing with Agent Mail server","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-08T12:44:03.547806-08:00","updated_at":"2025-11-08T12:49:02.436927-08:00","closed_at":"2025-11-08T12:49:02.436927-08:00"} -{"id":"bd-qqc","title":"Release v{{version}}","description":"SUPERSEDED by bd-7bs4. Use the new proto for releases.\n\n","status":"tombstone","priority":1,"issue_type":"epic","created_at":"2025-12-18T12:59:00.610371-08:00","updated_at":"2025-12-24T16:25:31.181723-08:00","labels":["template"],"deleted_at":"2025-12-24T16:25:31.181723-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"epic"} +{"id":"bd-qqc","title":"Release v{{version}}","description":"SUPERSEDED by bd-7bs4. Use the new proto for releases.\n\n","status":"tombstone","priority":1,"issue_type":"epic","created_at":"2025-12-18T12:59:00.610371-08:00","updated_at":"2025-12-24T16:25:31.181723-08:00","deleted_at":"2025-12-24T16:25:31.181723-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"epic"} {"id":"bd-qqc.1","title":"Update version to {{version}} in version.go","description":"Edit cmd/bd/version.go line 17:\n\n```go\nVersion = \"{{version}}\"\n```\n\nVerify with: `grep 'Version =' cmd/bd/version.go`","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-18T12:59:13.887087-08:00","updated_at":"2025-12-24T16:25:31.10856-08:00","dependencies":[{"issue_id":"bd-qqc.1","depends_on_id":"bd-qqc","type":"parent-child","created_at":"2025-12-18T12:59:13.887655-08:00","created_by":"stevey"}],"deleted_at":"2025-12-24T16:25:31.10856-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} {"id":"bd-qqc.10","title":"Upgrade local Homebrew installation","description":"Upgrade bd via Homebrew:\n\n```bash\nbrew update\nbrew upgrade bd\n/opt/homebrew/bin/bd version # Verify shows {{version}}\n```\n\n**Note**: If `brew upgrade` fails with CLT (Command Line Tools) errors on bleeding-edge macOS versions (e.g., Tahoe 26.x):\n\n```bash\n# Reinstall CLT\nsudo rm -rf /Library/Developer/CommandLineTools\nxcode-select --install\n# Wait for GUI installer to complete, then retry brew upgrade\n```\n\nAlternative: Skip Homebrew and use go install:\n```bash\ngo install ./cmd/bd\n~/go/bin/bd version # Verify shows {{version}}\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-18T22:42:37.60241-08:00","updated_at":"2025-12-24T16:25:30.444675-08:00","dependencies":[{"issue_id":"bd-qqc.10","depends_on_id":"bd-qqc","type":"parent-child","created_at":"2025-12-18T22:42:37.603893-08:00","created_by":"daemon"},{"issue_id":"bd-qqc.10","depends_on_id":"bd-qqc.9","type":"blocks","created_at":"2025-12-18T22:43:21.458817-08:00","created_by":"daemon"}],"deleted_at":"2025-12-24T16:25:30.444675-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} {"id":"bd-qqc.11","title":"Update go install bd to {{version}}","description":"Rebuild and install bd to ~/go/bin:\n\n```bash\ngo install ./cmd/bd\n~/go/bin/bd version # Verify shows {{version}}\n```\n\nNote: If ~/go/bin is in PATH before /opt/homebrew/bin, this is the version that runs by default.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-18T23:07:55.838013-08:00","updated_at":"2025-12-24T16:25:29.948797-08:00","dependencies":[{"issue_id":"bd-qqc.11","depends_on_id":"bd-qqc","type":"parent-child","created_at":"2025-12-18T23:07:55.838432-08:00","created_by":"daemon"},{"issue_id":"bd-qqc.11","depends_on_id":"bd-qqc.10","type":"blocks","created_at":"2025-12-18T23:08:19.629947-08:00","created_by":"daemon"}],"deleted_at":"2025-12-24T16:25:29.948797-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} @@ -2044,197 +2041,197 @@ {"id":"bd-qqc.7","title":"Push release v{{version}} to remote","description":"Push the commit and tag:\n\n```bash\ngit push \u0026\u0026 git push --tags\n```\n\nVerify on GitHub that the tag appears in releases.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-18T13:00:26.933082-08:00","updated_at":"2025-12-24T16:25:30.689807-08:00","dependencies":[{"issue_id":"bd-qqc.7","depends_on_id":"bd-qqc","type":"parent-child","created_at":"2025-12-18T13:00:26.933687-08:00","created_by":"stevey"},{"issue_id":"bd-qqc.7","depends_on_id":"bd-qqc.6","type":"blocks","created_at":"2025-12-18T13:01:12.711161-08:00","created_by":"stevey"}],"deleted_at":"2025-12-24T16:25:30.689807-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} {"id":"bd-qqc.8","title":"Create and push git tag v{{version}}","description":"Create the release tag and push it:\n\n```bash\ngit tag v{{version}}\ngit push origin v{{version}}\n```\n\nThis triggers the GoReleaser GitHub Action to build release binaries.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-18T22:42:34.659927-08:00","updated_at":"2025-12-24T16:25:30.608841-08:00","dependencies":[{"issue_id":"bd-qqc.8","depends_on_id":"bd-qqc","type":"parent-child","created_at":"2025-12-18T22:42:34.660248-08:00","created_by":"daemon"},{"issue_id":"bd-qqc.8","depends_on_id":"bd-vgi5","type":"blocks","created_at":"2025-12-18T22:43:21.209529-08:00","created_by":"daemon"}],"deleted_at":"2025-12-24T16:25:30.608841-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} {"id":"bd-qqc.9","title":"Update Homebrew formula","description":"Update the Homebrew tap with new version:\n\n```bash\n./scripts/update-homebrew.sh {{version}}\n```\n\nThis script waits for GitHub Actions to complete (~5 min), then updates the formula with new SHA256 hashes.\n\nAfter running, verify the formula with:\n\n```bash\nbrew info steveyegge/beads/bd\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-18T22:42:35.815096-08:00","updated_at":"2025-12-24T16:25:30.525596-08:00","dependencies":[{"issue_id":"bd-qqc.9","depends_on_id":"bd-qqc","type":"parent-child","created_at":"2025-12-18T22:42:35.816752-08:00","created_by":"daemon"},{"issue_id":"bd-qqc.9","depends_on_id":"bd-qqc.8","type":"blocks","created_at":"2025-12-18T22:43:21.332955-08:00","created_by":"daemon"}],"deleted_at":"2025-12-24T16:25:30.525596-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} -{"id":"bd-qqeow","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:46:53.510838-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T19:46:53.577577-08:00","closed_at":"2026-01-12T19:46:53.577577-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-qqeow","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:46:53.510838-08:00","updated_at":"2026-01-12T19:46:53.577577-08:00","closed_at":"2026-01-12T19:46:53.577577-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} {"id":"bd-qqvw","title":"Vendor and integrate beads-merge tool","description":"Incorporate @neongreen's beads-merge 3-way merge tool into bd to solve:\n- Multi-workspace deletion sync (bd-hv01)\n- Git merge conflicts in JSONL\n- Field-level intelligent merging\n\n**Repository**: https://github.com/neongreen/mono/tree/main/beads-merge\n\n**Integration approach**: Vendor the Go code with attribution, pending @neongreen's approval (GitHub issue #240)\n\n**Benefits**:\n- Prevents deletion resurrection bug\n- Smart dependency merging (union + dedup)\n- Timestamp handling (max wins)\n- Detects deleted-vs-modified conflicts\n- Works as git merge driver\n\n**Acceptance criteria**:\n- beads-merge code vendored into bd codebase\n- Available as `bd merge` command\n- Git merge driver setup during `bd init`\n- Tests verify 3-way merge logic\n- Documentation updated\n- @neongreen credited","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-05T18:41:59.500359-08:00","updated_at":"2025-11-06T18:19:16.234208-08:00","closed_at":"2025-11-06T15:40:24.796921-08:00"} -{"id":"bd-qrgjq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T09:27:59.125774-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T09:27:59.190286-08:00","closed_at":"2026-01-11T09:27:59.190286-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-qrkma","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:52:50.287304-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-09T13:52:50.326271-08:00","closed_at":"2026-01-09T13:52:50.326271-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-qs24u","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T03:38:00.086853-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-13T03:38:00.152826-08:00","closed_at":"2026-01-13T03:38:00.152826-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-qrgjq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T09:27:59.125774-08:00","updated_at":"2026-01-11T09:27:59.190286-08:00","closed_at":"2026-01-11T09:27:59.190286-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-qrkma","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:52:50.287304-08:00","updated_at":"2026-01-09T13:52:50.326271-08:00","closed_at":"2026-01-09T13:52:50.326271-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/grip"} +{"id":"bd-qs24u","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T03:38:00.086853-08:00","updated_at":"2026-01-13T03:38:00.152826-08:00","closed_at":"2026-01-13T03:38:00.152826-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} {"id":"bd-qs4p","title":"bd import fails on duplicate external_ref with no resolution options","description":"When JSONL contains duplicate external_ref values (e.g., two issues both have external_ref='BS-170'), bd import fails entirely with no resolution options.\n\nUser must manually edit JSONL to remove duplicates, which is error-prone.\n\nExample error:\n```\nbatch import contains duplicate external_ref values:\nexternal_ref 'BS-170' appears in issues: [opal-39 opal-43]\n```\n\nShould handle this similar to duplicate issue detection - offer to merge, pick one, or clear duplicates.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-06T10:53:41.906165-08:00","updated_at":"2025-11-06T11:03:16.975041-08:00","closed_at":"2025-11-06T11:03:16.975041-08:00"} -{"id":"bd-qsbn","title":"swarm status: Handle external dependencies and error cases","description":"Three issues: (1) Silent error swallowing - GetDependencyRecords errors are silently continued, but analyzeEpicForSwarm returns errors. Inconsistent. (2) External dependencies ignored - if issue depends on something outside epic thats still open, we mark it Ready incorrectly. (3) Command usage string says [epic-id] (optional) but requires exactly 1 arg. File: cmd/bd/swarm.go","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-28T21:31:08.574846-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-30T15:44:43.363959-08:00","closed_at":"2025-12-30T00:36:28.565331-08:00","close_reason":"Fixed all three issues: (1) Made error handling consistent - analyzeEpicForSwarm now adds warnings for GetDependencyRecords failures instead of returning errors. (2) External dependencies now checked in getSwarmStatus - open external deps block issues. (3) Usage strings fixed to use \u003cepic-id\u003e instead of [epic-id] for required arguments."} +{"id":"bd-qsbn","title":"swarm status: Handle external dependencies and error cases","description":"Three issues: (1) Silent error swallowing - GetDependencyRecords errors are silently continued, but analyzeEpicForSwarm returns errors. Inconsistent. (2) External dependencies ignored - if issue depends on something outside epic thats still open, we mark it Ready incorrectly. (3) Command usage string says [epic-id] (optional) but requires exactly 1 arg. File: cmd/bd/swarm.go","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-28T21:31:08.574846-08:00","updated_at":"2025-12-30T15:44:43.363959-08:00","closed_at":"2025-12-30T00:36:28.565331-08:00","close_reason":"Fixed all three issues: (1) Made error handling consistent - analyzeEpicForSwarm now adds warnings for GetDependencyRecords failures instead of returning errors. (2) External dependencies now checked in getSwarmStatus - open external deps block issues. (3) Usage strings fixed to use \u003cepic-id\u003e instead of [epic-id] for required arguments.","created_by":"beads/crew/emma"} {"id":"bd-qsm","title":"Auto-compact deletions during bd sync","description":"Parent: bd-imj\n\n## Task\nOptionally prune deletions manifest during sync when threshold exceeded.\n\n**Note: Opt-in feature** - disabled by default to avoid sync latency.\n\n## Implementation\n\nIn `bd sync`:\n```go\nfunc (s *Syncer) Sync() error {\n // ... existing sync logic ...\n \n // Auto-compact only if enabled\n if s.config.GetBool(\"deletions.auto_compact\", false) {\n deletionCount := deletions.Count(\".beads/deletions.jsonl\")\n threshold := s.config.GetInt(\"deletions.auto_compact_threshold\", 1000)\n \n if deletionCount \u003e threshold {\n retentionDays := s.config.GetInt(\"deletions.retention_days\", 7)\n if err := s.compactor.PruneDeletions(retentionDays); err != nil {\n log.Warnf(\"Failed to auto-compact deletions: %v\", err)\n // Non-fatal, continue sync\n }\n }\n }\n \n // ... rest of sync ...\n}\n```\n\n## Configuration\n```yaml\ndeletions:\n retention_days: 7\n auto_compact: false # Opt-in, disabled by default\n auto_compact_threshold: 1000 # Trigger when \u003e N entries (if enabled)\n```\n\n## Acceptance Criteria\n- [ ] Auto-compact disabled by default\n- [ ] Enabled via config `deletions.auto_compact: true`\n- [ ] Sync checks deletion count only when enabled\n- [ ] Auto-prunes when threshold exceeded\n- [ ] Failure is non-fatal (logged warning)\n- [ ] Test: no compaction when disabled\n- [ ] Test: compaction triggers when enabled and threshold exceeded","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-25T09:57:04.522795-08:00","updated_at":"2025-11-25T15:03:01.469629-08:00","closed_at":"2025-11-25T15:03:01.469629-08:00"} -{"id":"bd-qt94l","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T02:42:55.014532-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-13T02:42:55.076022-08:00","closed_at":"2026-01-13T02:42:55.076022-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-qtcgm","title":"External ref test","status":"open","priority":1,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-10T20:36:04.333898-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-10T20:36:04.333898-08:00","external_ref":"https://example.com/spec.md"} -{"id":"bd-qtlnl","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T16:08:37.840947-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T16:08:37.91328-08:00","closed_at":"2026-01-13T16:08:37.91328-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-quw1","title":"Polecat phase handoff: gt done --phase-complete","description":"Add phase handoff protocol for polecats hitting gate steps.\n\n## Current Behavior\nPolecat runs all steps, blocks on external waits, times out.\n\n## New Behavior\n1. Polecat completes work up to gate step\n2. Polecat runs: gt done --phase-complete\n3. This signals: 'phase done, molecule awaiting gate'\n4. Witness recycles polecat (context freed)\n5. When gate closes, Witness dispatches new polecat\n6. New polecat continues from step after gate\n\n## Implementation\n- Add --phase-complete flag to gt done\n- Witness tracks molecules in 'awaiting-gate' state\n- When gate closes (via bd gate resolve), molecule unblocks\n- Dispatch logic resumes molecule with new polecat\n\n## Acceptance Criteria\n- [ ] gt done --phase-complete implemented\n- [ ] Witness tracks awaiting-gate molecules\n- [ ] Gate closure triggers molecule resume\n- [ ] New polecat picks up from correct step","notes":"Beads changes committed (9269325e):\n- bd gate add-waiter \u003cgate-id\u003e \u003cwaiter\u003e\n- bd gate show \u003cgate-id\u003e --json\n- Waiters field in RPC protocol\n\nGastown changes written but need separate commit (bd-gxb4):\n- gt done --phase-complete --gate flag\n- Witness PHASE_COMPLETE handler\n- AddGateWaiter in beads wrapper\n\nBlocked on bd-gxb4 for gastown commit.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-02T13:27:42.298423-08:00","created_by":"mayor","updated_at":"2026-01-04T15:22:07.769837-08:00","closed_at":"2026-01-02T16:46:55.671506-08:00","close_reason":"Complete: beads part (jasper) + gastown part (bd-gxb4/furiosa) both merged","dependencies":[{"issue_id":"bd-quw1","depends_on_id":"bd-d1n1","type":"parent-child","created_at":"2026-01-02T13:28:18.599801-08:00","created_by":"mayor"},{"issue_id":"bd-quw1","depends_on_id":"bd-4k3c","type":"blocks","created_at":"2026-01-02T13:28:18.665709-08:00","created_by":"mayor"},{"issue_id":"bd-quw1","depends_on_id":"bd-gxb4","type":"blocks","created_at":"2026-01-02T16:36:55.38367-08:00","created_by":"beads/polecats/jasper"}]} -{"id":"bd-qv8f9","title":"Add logging for silent failures in cost tracking","description":"dispatched_by: mayor\n\n## Problem\n\nSeveral error paths in cost tracking silently continue without logging:\n- Line 1014: bd show failure\n- Line 1019: JSON unmarshal failure \n- Line 1037: Payload unmarshal failure\n- Line 1147: bd show failure in deletion\n\nThis makes debugging difficult when costs are not being tracked correctly.\n\n## Location\n\ninternal/cmd/costs.go - multiple locations\n\n## Solution\n\nAdd debug logging (respecting --verbose flag) for these silent failures.","status":"closed","priority":3,"issue_type":"task","assignee":"gastown/polecats/furiosa","created_at":"2026-01-08T22:55:25.275755-08:00","created_by":"mayor","updated_at":"2026-01-09T00:40:59.509492-08:00","closed_at":"2026-01-09T00:40:59.509492-08:00","close_reason":"Merged via f19ddc54","comments":[{"id":12,"issue_id":"bd-qv8f9","author":"beads/polecats/jasper","text":"The file path in the description (internal/cmd/costs.go) doesn't exist in beads/polecats/jasper. The costs.go file is located in the gastown project at /Users/stevey/gt/gastown/crew/*/internal/cmd/costs.go. This task appears to be assigned to the wrong repo - should likely be assigned to gastown instead.","created_at":"2026-01-09T08:24:45Z"}]} -{"id":"bd-qvpn","title":"Merge: jasper-1767138512869","description":"branch: polecat/jasper-1767138512869\ntarget: main\nsource_issue: jasper-1767138512869\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T15:51:49.011389-08:00","created_by":"beads/polecats/jasper","updated_at":"2025-12-30T18:12:30.968698-08:00","closed_at":"2025-12-30T18:11:08.036693-08:00"} -{"id":"bd-qxf8","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:33:15.357446-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:33:15.390547-08:00","closed_at":"2026-01-07T00:33:15.390547-08:00","close_reason":"auto-closed session event"} +{"id":"bd-qt94l","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T02:42:55.014532-08:00","updated_at":"2026-01-13T02:42:55.076022-08:00","closed_at":"2026-01-13T02:42:55.076022-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} +{"id":"bd-qtcgm","title":"External ref test","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-10T20:36:04.333898-08:00","updated_at":"2026-01-10T20:36:04.333898-08:00","created_by":"beads/crew/dave"} +{"id":"bd-qtlnl","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T16:08:37.840947-08:00","updated_at":"2026-01-13T16:08:37.91328-08:00","closed_at":"2026-01-13T16:08:37.91328-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-quw1","title":"Polecat phase handoff: gt done --phase-complete","description":"Add phase handoff protocol for polecats hitting gate steps.\n\n## Current Behavior\nPolecat runs all steps, blocks on external waits, times out.\n\n## New Behavior\n1. Polecat completes work up to gate step\n2. Polecat runs: gt done --phase-complete\n3. This signals: 'phase done, molecule awaiting gate'\n4. Witness recycles polecat (context freed)\n5. When gate closes, Witness dispatches new polecat\n6. New polecat continues from step after gate\n\n## Implementation\n- Add --phase-complete flag to gt done\n- Witness tracks molecules in 'awaiting-gate' state\n- When gate closes (via bd gate resolve), molecule unblocks\n- Dispatch logic resumes molecule with new polecat\n\n## Acceptance Criteria\n- [ ] gt done --phase-complete implemented\n- [ ] Witness tracks awaiting-gate molecules\n- [ ] Gate closure triggers molecule resume\n- [ ] New polecat picks up from correct step","notes":"Beads changes committed (9269325e):\n- bd gate add-waiter \u003cgate-id\u003e \u003cwaiter\u003e\n- bd gate show \u003cgate-id\u003e --json\n- Waiters field in RPC protocol\n\nGastown changes written but need separate commit (bd-gxb4):\n- gt done --phase-complete --gate flag\n- Witness PHASE_COMPLETE handler\n- AddGateWaiter in beads wrapper\n\nBlocked on bd-gxb4 for gastown commit.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-02T13:27:42.298423-08:00","updated_at":"2026-01-04T15:22:07.769837-08:00","closed_at":"2026-01-02T16:46:55.671506-08:00","close_reason":"Complete: beads part (jasper) + gastown part (bd-gxb4/furiosa) both merged","created_by":"mayor","dependencies":[{"issue_id":"bd-quw1","depends_on_id":"bd-gxb4","type":"blocks","created_at":"2026-01-02T16:36:55.38367-08:00","created_by":"beads/polecats/jasper"},{"issue_id":"bd-quw1","depends_on_id":"bd-d1n1","type":"parent-child","created_at":"2026-01-02T13:28:18.599801-08:00","created_by":"mayor"},{"issue_id":"bd-quw1","depends_on_id":"bd-4k3c","type":"blocks","created_at":"2026-01-02T13:28:18.665709-08:00","created_by":"mayor"}]} +{"id":"bd-qv8f9","title":"Add logging for silent failures in cost tracking","description":"dispatched_by: mayor\n\n## Problem\n\nSeveral error paths in cost tracking silently continue without logging:\n- Line 1014: bd show failure\n- Line 1019: JSON unmarshal failure \n- Line 1037: Payload unmarshal failure\n- Line 1147: bd show failure in deletion\n\nThis makes debugging difficult when costs are not being tracked correctly.\n\n## Location\n\ninternal/cmd/costs.go - multiple locations\n\n## Solution\n\nAdd debug logging (respecting --verbose flag) for these silent failures.","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-08T22:55:25.275755-08:00","updated_at":"2026-01-09T00:40:59.509492-08:00","closed_at":"2026-01-09T00:40:59.509492-08:00","close_reason":"Merged via f19ddc54","created_by":"mayor"} +{"id":"bd-qvpn","title":"Merge: jasper-1767138512869","description":"branch: polecat/jasper-1767138512869\ntarget: main\nsource_issue: jasper-1767138512869\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T15:51:49.011389-08:00","updated_at":"2025-12-30T18:12:30.968698-08:00","closed_at":"2025-12-30T18:11:08.036693-08:00","created_by":"beads/polecats/jasper"} +{"id":"bd-qxf8","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:33:15.357446-08:00","updated_at":"2026-01-07T00:33:15.390547-08:00","closed_at":"2026-01-07T00:33:15.390547-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-qy37","title":"Work on gt-8tmz.36: Validate expanded step IDs are unique...","description":"Work on gt-8tmz.36: Validate expanded step IDs are unique. After ApplyExpansions in internal/formula/expand.go, new steps can be created that might have duplicate IDs. Add validation in ApplyExpansions to check for duplicate step IDs after expansion. If duplicates found, return an error with the duplicate IDs. Add test in expand_test.go. When done, commit and push to main.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T20:01:27.048018-08:00","updated_at":"2025-12-25T20:04:42.594254-08:00","closed_at":"2025-12-25T20:04:42.594254-08:00"} -{"id":"bd-qz8pv","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:36:32.264445-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-13T11:36:32.340528-08:00","closed_at":"2026-01-13T11:36:32.340528-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-qz8pv","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T11:36:32.264445-08:00","updated_at":"2026-01-13T11:36:32.340528-08:00","closed_at":"2026-01-13T11:36:32.340528-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/grip"} {"id":"bd-r06v","title":"Merge: bd-phtv","description":"branch: polecat/Pinner\ntarget: main\nsource_issue: bd-phtv\nrig: beads","status":"closed","priority":1,"issue_type":"merge-request","created_at":"2025-12-23T13:48:16.853715-08:00","updated_at":"2025-12-23T19:12:08.342414-08:00","closed_at":"2025-12-23T19:12:08.342414-08:00"} {"id":"bd-r1pf","title":"Test label","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-06T20:16:20.609492-08:00","updated_at":"2025-11-06T20:16:34.973855-08:00","closed_at":"2025-11-06T20:16:34.973855-08:00"} {"id":"bd-r22t","title":"Execute molecule bd-mol-xga: Release beads 0.37.0","description":"Execute molecule bd-mol-xga: Release beads 0.37.0","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-26T01:12:48.454295-08:00","updated_at":"2026-01-04T23:49:29.777567-08:00","dependencies":[{"issue_id":"bd-r22t","depends_on_id":"bd-mol-xga","type":"blocks","created_at":"2025-12-26T01:13:17.380653-08:00","created_by":"daemon"}],"deleted_at":"2026-01-04T23:49:29.777567-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-r24e","title":"Gate-aware beads-release.formula v2","description":"Rewrite beads-release.formula.toml with gates for async waits.\n\n## Design\nSee ultrathink analysis in bd-d1n1 epic.\n\n## Key Changes\n1. Split into phases: Prep, Gate, Verify, Install\n2. await-ci step with gate.type=gh:run\n3. Parallel verification after gate (verify-github, verify-npm, verify-pypi)\n4. Fan-in at local-install\n\n## Formula Structure\n```toml\n# Phase 1: Prep \u0026 Push\n[[steps]]\nid = \"push-tag\"\n...\n\n# Gate: CI Completion \n[[steps]]\nid = \"await-ci\"\nneeds = [\"push-tag\"]\n[steps.gate]\ntype = \"gh:run\"\nworkflow = \"release.yml\"\ntimeout = \"30m\"\n\n# Phase 2: Verify (parallel)\n[[steps]]\nid = \"verify-github\"\nneeds = [\"await-ci\"]\n...\n```\n\n## Acceptance Criteria\n- [ ] Formula uses gate syntax\n- [ ] Phases cleanly separated\n- [ ] Parallel verification works\n- [ ] Successfully releases beads","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-02T13:27:42.414518-08:00","created_by":"mayor","updated_at":"2026-01-04T15:22:07.770475-08:00","closed_at":"2026-01-02T16:52:15.309685-08:00","close_reason":"Formula v2 complete with gate syntax, phases, and parallel verification","dependencies":[{"issue_id":"bd-r24e","depends_on_id":"bd-d1n1","type":"parent-child","created_at":"2026-01-02T13:28:18.643128-08:00","created_by":"mayor"},{"issue_id":"bd-r24e","depends_on_id":"bd-quw1","type":"blocks","created_at":"2026-01-02T13:28:18.711394-08:00","created_by":"mayor"},{"issue_id":"bd-r24e","depends_on_id":"bd-z6kw","type":"blocks","created_at":"2026-01-02T13:28:18.732758-08:00","created_by":"mayor"}]} +{"id":"bd-r24e","title":"Gate-aware beads-release.formula v2","description":"Rewrite beads-release.formula.toml with gates for async waits.\n\n## Design\nSee ultrathink analysis in bd-d1n1 epic.\n\n## Key Changes\n1. Split into phases: Prep, Gate, Verify, Install\n2. await-ci step with gate.type=gh:run\n3. Parallel verification after gate (verify-github, verify-npm, verify-pypi)\n4. Fan-in at local-install\n\n## Formula Structure\n```toml\n# Phase 1: Prep \u0026 Push\n[[steps]]\nid = \"push-tag\"\n...\n\n# Gate: CI Completion \n[[steps]]\nid = \"await-ci\"\nneeds = [\"push-tag\"]\n[steps.gate]\ntype = \"gh:run\"\nworkflow = \"release.yml\"\ntimeout = \"30m\"\n\n# Phase 2: Verify (parallel)\n[[steps]]\nid = \"verify-github\"\nneeds = [\"await-ci\"]\n...\n```\n\n## Acceptance Criteria\n- [ ] Formula uses gate syntax\n- [ ] Phases cleanly separated\n- [ ] Parallel verification works\n- [ ] Successfully releases beads","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-02T13:27:42.414518-08:00","updated_at":"2026-01-04T15:22:07.770475-08:00","closed_at":"2026-01-02T16:52:15.309685-08:00","close_reason":"Formula v2 complete with gate syntax, phases, and parallel verification","created_by":"mayor","dependencies":[{"issue_id":"bd-r24e","depends_on_id":"bd-d1n1","type":"parent-child","created_at":"2026-01-02T13:28:18.643128-08:00","created_by":"mayor"},{"issue_id":"bd-r24e","depends_on_id":"bd-quw1","type":"blocks","created_at":"2026-01-02T13:28:18.711394-08:00","created_by":"mayor"},{"issue_id":"bd-r24e","depends_on_id":"bd-z6kw","type":"blocks","created_at":"2026-01-02T13:28:18.732758-08:00","created_by":"mayor"}]} {"id":"bd-r2n1","title":"Add integration tests for RPC server and event loops","description":"After adding basic unit tests for daemon utilities, the complex daemon functions still need integration tests:\n\nCore daemon lifecycle:\n- startRPCServer: Initializes and starts RPC server with proper error handling\n- runEventLoop: Polling-based sync loop with parent monitoring and signal handling\n- runDaemonLoop: Main daemon initialization and setup\n\nHealth checking:\n- isDaemonHealthy: Checks daemon responsiveness and health metrics\n- checkDaemonHealth: Periodic health verification\n\nThese require more complex test infrastructure (mock RPC, test contexts, signal handling) and should be tackled after the unit test foundation is in place.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-18T12:28:56.022996362-07:00","updated_at":"2025-12-18T12:44:32.167862713-07:00","closed_at":"2025-12-18T12:44:32.167862713-07:00","dependencies":[{"issue_id":"bd-r2n1","depends_on_id":"bd-4or","type":"discovered-from","created_at":"2025-12-18T12:28:56.045893852-07:00","created_by":"mhwilkie"}]} {"id":"bd-r36u","title":"gt mq list shows empty when MRs exist","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-20T01:13:07.561256-08:00","updated_at":"2025-12-21T17:51:25.891037-08:00","closed_at":"2025-12-21T17:51:25.891037-08:00"} -{"id":"bd-r3p1n","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T07:04:36.567008-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T07:04:36.626929-08:00","closed_at":"2026-01-11T07:04:36.626929-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-r3p1n","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T07:04:36.567008-08:00","updated_at":"2026-01-11T07:04:36.626929-08:00","closed_at":"2026-01-11T07:04:36.626929-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-r46","title":"Support --reason flag in daemon mode for reopen command","description":"The reopen.go command has a TODO at line 61 to add reason as a comment once RPC supports AddComment. Currently --reason flag is ignored in daemon mode with a warning.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-21T18:55:10.773626-05:00","updated_at":"2025-12-21T21:47:15.43375-08:00","closed_at":"2025-12-21T21:47:15.43375-08:00"} {"id":"bd-r4od","title":"Parameterize SQLite busy_timeout in store.go","description":"Modify sqlite.New() to accept configurable busy_timeout.\n\n## Current State\n`internal/storage/sqlite/store.go` hardcodes:\n```go\nconnStr = \"file:\" + path + \"?_pragma=foreign_keys(ON)\u0026_pragma=busy_timeout(30000)\u0026...\"\n```\n\n## Implementation Options\n\n### Option A: Add timeout parameter to New()\n```go\nfunc New(ctx context.Context, path string, busyTimeout time.Duration) (*SQLiteStorage, error)\n```\nPro: Simple, explicit\nCon: Changes function signature (breaking change for callers)\n\n### Option B: Options struct pattern\n```go\ntype Options struct {\n BusyTimeout time.Duration // default 30s\n}\nfunc New(ctx context.Context, path string, opts *Options) (*SQLiteStorage, error)\n```\nPro: Extensible, nil means defaults\nCon: More boilerplate\n\n### Recommendation: Option A with default\n```go\nfunc New(ctx context.Context, path string) (*SQLiteStorage, error) {\n return NewWithOptions(ctx, path, 30*time.Second)\n}\n\nfunc NewWithOptions(ctx context.Context, path string, busyTimeout time.Duration) (*SQLiteStorage, error)\n```\n\n## Acceptance Criteria\n- busy_timeout is parameterized in connection string\n- 0 timeout means no waiting (immediate SQLITE_BUSY)\n- All existing callers continue to work (via default wrapper)\n\nPart of bd-olc1","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-13T17:54:46.896222-08:00","updated_at":"2025-12-13T18:05:19.443831-08:00","closed_at":"2025-12-13T18:05:19.443831-08:00","dependencies":[{"issue_id":"bd-r4od","depends_on_id":"bd-59er","type":"blocks","created_at":"2025-12-13T17:55:26.550018-08:00","created_by":"daemon"}]} {"id":"bd-r4sn","title":"Phase 2.5: TOON-based daemon sync","description":"Implement TOON-native daemon sync (replaces JSONL sync machinery).\n\n## Overview\nDaemon sync is the final integration point. Replace export/import/merge machinery with TOON-native sync, building on deletion tracking (2.3) and merge optimization (2.4).\n\n## Required Work\n\n### 2.5.1 TOON-based Daemon Sync\n- [ ] Understand current JSONL sync machinery (export.go, import.go, merge.go)\n- [ ] Replace export step with TOON encoding (EncodeTOON)\n- [ ] Replace import step with TOON decoding (DecodeTOON)\n- [ ] Replace merge step with TOON-aware 3-way merge\n- [ ] Update daemon auto-sync to read/write TOON\n- [ ] Verify 5-second debounce still works\n\n### 2.5.2 Deletion Sync Integration\n- [ ] Load deletions.toon during import phase\n- [ ] Apply deletions after merging issues\n- [ ] Ensure deletion TTL respects daemon schedule\n\n### 2.5.3 Testing\n- [ ] Unit tests for daemon sync with TOON\n- [ ] Integration tests with actual daemon operations\n- [ ] Multi-clone sync scenarios with concurrent edits\n- [ ] Performance comparison with JSONL sync\n- [ ] Long-running daemon stability tests\n\n## Success Criteria\n- Daemon reads/writes TOON format (not JSONL)\n- Sync latency comparable to JSONL (\u003c100ms)\n- All 70+ tests passing\n- bdt commands work seamlessly with daemon\n- Multi-clone sync scenarios work correctly","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T14:43:20.33132177-07:00","updated_at":"2025-12-21T14:42:25.274362-08:00","closed_at":"2025-12-21T14:42:25.274362-08:00","dependencies":[{"issue_id":"bd-r4sn","depends_on_id":"bd-uz8r","type":"blocks","created_at":"2025-12-19T14:43:20.347724699-07:00","created_by":"daemon"},{"issue_id":"bd-r4sn","depends_on_id":"bd-uwkp","type":"blocks","created_at":"2025-12-19T14:43:20.355379309-07:00","created_by":"daemon"}]} -{"id":"bd-r53nt","title":"Issue 2","status":"open","priority":1,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:14.587222-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:14.587222-08:00"} -{"id":"bd-r5p6e","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:34:11.310835-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:34:11.374457-08:00","closed_at":"2026-01-11T19:34:11.374457-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-r53nt","title":"Issue 2","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-11T18:16:14.587222-08:00","updated_at":"2026-01-11T18:16:14.587222-08:00","created_by":"beads/crew/wolf"} +{"id":"bd-r5p6e","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:34:11.310835-08:00","updated_at":"2026-01-11T19:34:11.374457-08:00","closed_at":"2026-01-11T19:34:11.374457-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-r6a","title":"Redesign workflow system: templates as native Beads","description":"## Problem\n\nThe current workflow system (YAML templates in cmd/bd/templates/workflows/) is architecturally flawed:\n\n1. **Out-of-band data plane** - YAML files are a parallel system outside Beads itself\n2. **Heavyweight DSL** - YAML is gross; even TOML would have been better, but neither is ideal\n3. **Not graph-native** - Beads IS already a dependency graph with priorities, so why reinvent it?\n4. **Can't use bd commands on templates** - They're opaque YAML, not viewable/editable Beads\n\n## The Right Design\n\n**Templates should be Beads themselves.**\n\nA \"workflow template\" should be:\n- An epic marked as a template (via label, type, or prefix like `tpl-`)\n- Child issues with dependencies between them (using normal bd dep)\n- Titles and descriptions containing `{{variable}}` placeholders\n- Normal priorities that control serialization order\n\n\"Instantiation\" becomes:\n1. Clone the template subgraph (epic + children + dependencies)\n2. Substitute variables in titles/descriptions\n3. Generate new IDs for all cloned issues\n4. Return the new epic ID\n\n## Benefits\n\n- **No YAML** - Templates are just Beads\n- **Use existing tools** - `bd show`, `bd edit`, `bd dep` work on templates\n- **Graph-native** - Dependencies are real Beads dependencies\n- **Simpler codebase** - Remove all the YAML parsing/workflow code\n- **Composable** - Templates can reference other templates\n\n## Tasks\n\n1. Delete the YAML workflow system code (revert recent push + remove existing workflow code)\n2. Design template marking convention (label? type? id prefix?)\n3. Implement `bd template create` or `bd clone --as-template`\n4. Implement `bd template instantiate \u003ctemplate-id\u003e --var key=value`\n5. Migrate version-bump workflow to native Beads template\n6. Update documentation","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-17T22:41:57.359643-08:00","updated_at":"2025-12-18T17:42:26.000769-08:00","closed_at":"2025-12-18T13:47:04.632525-08:00"} {"id":"bd-r6a.1","title":"Revert/remove YAML workflow system","description":"Revert the recent commit and remove all YAML workflow code:\n\n1. `git revert aae8407a` (the commit we just pushed with workflow fixes)\n2. Remove `cmd/bd/templates/workflows/` directory\n3. Remove workflow.go or gut it to minimal stub\n4. Remove WorkflowTemplate types from internal/types/workflow.go\n5. Remove any workflow-related RPC handlers\n\nKeep only minimal scaffolding if needed for the new template system.","status":"tombstone","priority":0,"issue_type":"task","created_at":"2025-12-17T22:42:07.339684-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-r6a.1","depends_on_id":"bd-r6a","type":"parent-child","created_at":"2025-12-17T22:42:07.340117-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-r6a.2","title":"Implement subgraph cloning with variable substitution","description":"Core implementation of template instantiation:\n\n1. Add `bd template instantiate \u003ctemplate-id\u003e [--var key=value]...` command\n2. Implement subgraph loading:\n - Load template epic\n - Recursively load all children (and their children)\n - Load all dependencies between issues in the subgraph\n3. Implement variable substitution:\n - Scan titles and descriptions for `{{name}}` patterns\n - Replace with provided values\n - Error on missing required variables (or prompt interactively)\n4. Implement cloning:\n - Generate new IDs for all issues\n - Create cloned issues with substituted text\n - Remap and create dependencies\n5. Return the new epic ID\n\nConsider adding `--dry-run` flag to preview what would be created.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-17T22:43:25.179848-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-r6a.2","depends_on_id":"bd-r6a","type":"parent-child","created_at":"2025-12-17T22:43:25.180286-08:00","created_by":"daemon"},{"issue_id":"bd-r6a.2","depends_on_id":"bd-r6a.1","type":"blocks","created_at":"2025-12-17T22:44:03.15413-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-r6a.3","title":"Create version-bump template as native Beads","description":"Migrate the version-bump workflow from YAML to a native Beads template:\n\n1. Create epic with template label: Release {{version}}\n2. Create child tasks for each step (update version files, changelog, commit, push, publish)\n3. Set up dependencies between tasks\n4. Add verification commands in task descriptions\n\nThis serves as both migration and validation of the new system.","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-17T22:43:40.694931-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-r6a.3","depends_on_id":"bd-r6a","type":"parent-child","created_at":"2025-12-17T22:43:40.695392-08:00","created_by":"daemon"},{"issue_id":"bd-r6a.3","depends_on_id":"bd-r6a.2","type":"blocks","created_at":"2025-12-17T22:44:03.311902-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-r6a.4","title":"Add bd template list command","description":"Add a convenience command to list available templates:\n\nbd template list\n\nThis is equivalent to 'bd list --label=template' but more discoverable.\nCould also show variable placeholders found in each template.","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-17T22:43:47.525316-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-r6a.4","depends_on_id":"bd-r6a","type":"parent-child","created_at":"2025-12-17T22:43:47.525743-08:00","created_by":"daemon"},{"issue_id":"bd-r6a.4","depends_on_id":"bd-r6a.2","type":"blocks","created_at":"2025-12-17T22:44:03.474353-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-r6a.5","title":"Update documentation for template system","description":"Update AGENTS.md and help text to document the new template system:\n\n- How to create a template (epic + template label + child issues)\n- How to define variables (just use {{name}} placeholders)\n- How to instantiate (bd template instantiate)\n- Migration from YAML workflows (if any users had custom ones)","status":"tombstone","priority":3,"issue_type":"task","created_at":"2025-12-17T22:43:55.461345-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","dependencies":[{"issue_id":"bd-r6a.5","depends_on_id":"bd-r6a","type":"parent-child","created_at":"2025-12-17T22:43:55.461763-08:00","created_by":"daemon"},{"issue_id":"bd-r6a.5","depends_on_id":"bd-r6a.3","type":"blocks","created_at":"2025-12-17T22:44:03.632404-08:00","created_by":"daemon"},{"issue_id":"bd-r6a.5","depends_on_id":"bd-r6a.4","type":"blocks","created_at":"2025-12-17T22:44:03.788517-08:00","created_by":"daemon"}],"deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-r6tvq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T06:47:07.13293-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T06:47:07.179471-08:00","closed_at":"2026-01-11T06:47:07.179471-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-r6tvq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T06:47:07.13293-08:00","updated_at":"2026-01-11T06:47:07.179471-08:00","closed_at":"2026-01-11T06:47:07.179471-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-r79z","title":"GH#245: Windows MCP subprocess timeout for git rev-parse","description":"User reports git detection timing out on Windows in MCP server, but CLI works fine.\n\nPath: C:\\Users\\chris\\Documents\\DEV_R\\quarto-cli\nError: Git repository detection timed out after 5s\nWorks fine in CLI: `git rev-parse --show-toplevel` succeeds\n\nHypothesis: subprocess.run() with asyncio.to_thread() may have Windows-specific issues or the MCP runtime environment may not have proper PATH/git access.\n\nPotential fixes:\n1. Add subprocess shell=True on Windows\n2. Increase timeout further for Windows\n3. Add better error logging to capture subprocess stderr\n4. Skip git resolution entirely on timeout and just use provided path","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-07T16:31:37.531223-08:00","updated_at":"2025-11-07T19:00:44.358543-08:00","closed_at":"2025-11-07T19:00:44.358543-08:00"} -{"id":"bd-ra4co","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T12:35:53.275102-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T12:35:53.346446-08:00","closed_at":"2026-01-13T12:35:53.346446-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ra4co","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T12:35:53.275102-08:00","updated_at":"2026-01-13T12:35:53.346446-08:00","closed_at":"2026-01-13T12:35:53.346446-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-rb75","title":"Clean up merge conflict artifacts in .beads directory","description":"After resolving merge conflicts in .beads/beads.jsonl, leftover artifacts remain as untracked files:\n- .beads/beads.base.jsonl\n- .beads/beads.left.jsonl\n\nThese appear to be temporary files created during merge conflict resolution.\n\nOptions to fix:\n1. Add these patterns to .beads/.gitignore automatically\n2. Clean up these files after successful merge resolution\n3. Document that users should delete them manually\n4. Add a check in 'bd sync' or 'bd doctor' to detect and remove stale merge artifacts\n\nPreferred solution: Add *.base.jsonl and *.left.jsonl patterns to .beads/.gitignore during 'bd init', and optionally clean them up automatically after successful import.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-06T19:09:16.114274-08:00","updated_at":"2025-11-06T19:13:44.630402-08:00","closed_at":"2025-11-06T19:13:44.630402-08:00"} -{"id":"bd-rb7so","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T03:15:38.134079-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T03:15:38.196207-08:00","closed_at":"2026-01-12T03:15:38.196207-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-rbw6n","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T15:15:17.227205-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T15:15:17.298818-08:00","closed_at":"2026-01-13T15:15:17.298818-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-rb7so","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T03:15:38.134079-08:00","updated_at":"2026-01-12T03:15:38.196207-08:00","closed_at":"2026-01-12T03:15:38.196207-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-rbw6n","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T15:15:17.227205-08:00","updated_at":"2026-01-13T15:15:17.298818-08:00","closed_at":"2026-01-13T15:15:17.298818-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-rbxi","title":"bd-hv01: Deletion tracking production readiness","description":"Epic to track all improvements and fixes needed to make the deletion tracking implementation ([deleted:bd-hv01]) production-ready.\n\nThe core 3-way merge algorithm is sound, but there are critical issues around atomicity, error handling, and edge cases that need to be addressed before this can be safely used in production.\n\nCritical path (P1):\n- Non-atomic snapshot operations\n- Brittle JSON string comparison\n- Silent partial deletion failures\n- Race conditions in concurrent scenarios\n\nFollow-up work (P2-P3):\n- Test coverage for edge cases and multi-repo mode\n- Performance optimizations\n- Code refactoring and observability\n\nRelated commit: 708a81c","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-06T18:18:24.315646-08:00","updated_at":"2025-11-08T03:12:04.15385-08:00","closed_at":"2025-11-08T02:19:19.780741-08:00"} -{"id":"bd-rc1ra","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:50:29.773129-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T01:50:29.839828-08:00","closed_at":"2026-01-12T01:50:29.839828-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-rc1ra","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T01:50:29.773129-08:00","updated_at":"2026-01-12T01:50:29.839828-08:00","closed_at":"2026-01-12T01:50:29.839828-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-rciw","title":"Support ephemeral protos: cook inline for pour/wisp/bond","description":"Gas Town moving to ephemeral protos (gt-4v1eo). Protos should be in-memory, not persisted beads. Changes: (1) bd cook outputs proto JSON to stdout by default, add --persist flag for old behavior. (2) bd pour/wisp cook inline from formula name. (3) bd mol bond accepts formula names, cooks inline. The low-level cookFormula() machinery stays for --persist use cases. See gt-4v1eo for full design. Related: bd-ia3g (rename ProtoID).","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-25T14:30:40.782536-08:00","updated_at":"2025-12-25T17:03:47.18261-08:00","closed_at":"2025-12-25T17:03:47.18261-08:00"} -{"id":"bd-rdo3v","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:39:02.846327-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T19:39:02.892978-08:00","closed_at":"2026-01-12T19:39:02.892978-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-rdo3v","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:39:02.846327-08:00","updated_at":"2026-01-12T19:39:02.892978-08:00","closed_at":"2026-01-12T19:39:02.892978-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-rdzk","title":"Merge: bd-rgyd","description":"branch: polecat/Splitter\ntarget: main\nsource_issue: bd-rgyd\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-23T13:41:15.051877-08:00","updated_at":"2025-12-23T19:12:08.351145-08:00","closed_at":"2025-12-23T19:12:08.351145-08:00"} {"id":"bd-rece","title":"Phase 1.1: TOON Library Integration - Add gotoon dependency","description":"Add gotoon (github.com/alpkeskin/gotoon) to go.mod and create internal/toon wrapper package for TOON encoding/decoding. This enables bdtoon to encode Issue structs to TOON format and decode TOON back to issues.\n\n## Subtasks\n1. Add gotoon dependency: go get github.com/alpkeskin/gotoon\n2. Create internal/toon package with wrapper functions\n3. Write encode tests for Issue struct round-trip conversion\n4. Write decode tests for TOON to Issue conversion\n5. Add gotoon API options to wrapper (indent, delimiter, length markers)\n\n## Success Criteria\n- go.mod includes gotoon dependency\n- internal/toon/encode.go exports EncodeTOON(issues) ([]byte, error)\n- internal/toon/decode.go exports DecodeTOON(data []byte) ([]Issue, error)\n- Round-trip tests verify Issue → TOON → Issue produces identical data\n- Tests pass with: go test ./internal/toon -v","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T11:48:30.018161133-07:00","updated_at":"2025-12-19T12:53:56.808833405-07:00","closed_at":"2025-12-19T12:53:56.808833405-07:00"} -{"id":"bd-rejrz","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T00:35:34.773888-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T00:35:34.842129-08:00","closed_at":"2026-01-13T00:35:34.842129-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-rfhm0","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:28:04.557778-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T23:28:04.612025-08:00","closed_at":"2026-01-12T23:28:04.612025-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-rejrz","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T00:35:34.773888-08:00","updated_at":"2026-01-13T00:35:34.842129-08:00","closed_at":"2026-01-13T00:35:34.842129-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-rfhm0","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T23:28:04.557778-08:00","updated_at":"2026-01-12T23:28:04.612025-08:00","closed_at":"2026-01-12T23:28:04.612025-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-rfj","title":"Add unit tests for hasJSONLChanged() function","description":"The hasJSONLChanged() function has no unit tests. Should test:\n- Normal case: hash matches\n- Normal case: hash differs\n- Edge case: empty file\n- Edge case: missing metadata (first run)\n- Edge case: corrupted metadata\n- Edge case: file read errors\n- Edge case: invalid hash format in metadata\n\nAlso add performance benchmarks for large JSONL files.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-20T21:31:10.389481-05:00","updated_at":"2025-11-20T21:40:02.664516-05:00","closed_at":"2025-11-20T21:40:02.664516-05:00","dependencies":[{"issue_id":"bd-rfj","depends_on_id":"bd-khnb","type":"blocks","created_at":"2025-11-20T21:31:10.39058-05:00","created_by":"daemon"}]} {"id":"bd-rgd7","title":"Update CHANGELOG.md with release notes","description":"Add release notes for 0.32.1: MCP output control params (#667), pin field fix","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-20T21:53:16.031879-08:00","updated_at":"2025-12-20T21:54:07.982164-08:00","closed_at":"2025-12-20T21:54:07.982164-08:00","dependencies":[{"issue_id":"bd-rgd7","depends_on_id":"bd-an4s","type":"parent-child","created_at":"2025-12-20T21:53:16.034926-08:00","created_by":"daemon"}]} -{"id":"bd-rglz","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:26:48.816361-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:26:48.852099-08:00","closed_at":"2026-01-07T00:26:48.852099-08:00","close_reason":"auto-closed session event"} -{"id":"bd-rgo42","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:57:29.7356-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T02:57:29.80215-08:00","closed_at":"2026-01-12T02:57:29.80215-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-rglz","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:26:48.816361-08:00","updated_at":"2026-01-07T00:26:48.852099-08:00","closed_at":"2026-01-07T00:26:48.852099-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-rgo42","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T02:57:29.7356-08:00","updated_at":"2026-01-12T02:57:29.80215-08:00","closed_at":"2026-01-12T02:57:29.80215-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-rgyd","title":"Split internal/storage/sqlite/queries.go (1586 lines)","description":"Split internal/storage/sqlite/queries.go (1704 lines) into logical modules.\n\n## Current State\nqueries.go is 1704 lines with mixed responsibilities:\n- Issue CRUD operations\n- Search/filter operations\n- Delete operations (complex cascade logic)\n- Helper functions (parsing, formatting)\n\n## Proposed Split\n\n### 1. queries.go (keep ~400 lines) - Core CRUD\n```go\n// Core issue operations\nfunc (s *SQLiteStorage) CreateIssue(...)\nfunc (s *SQLiteStorage) GetIssue(...)\nfunc (s *SQLiteStorage) UpdateIssue(...)\nfunc (s *SQLiteStorage) CloseIssue(...)\n```\n\n### 2. queries_search.go (~300 lines) - Search/Filter\n```go\n// Search and filtering\nfunc (s *SQLiteStorage) SearchIssues(...)\nfunc (s *SQLiteStorage) GetIssueByExternalRef(...)\nfunc (s *SQLiteStorage) GetCloseReason(...)\nfunc (s *SQLiteStorage) GetCloseReasonsForIssues(...)\n```\n\n### 3. queries_delete.go (~400 lines) - Delete Operations\n```go\n// Delete operations with cascade logic\nfunc (s *SQLiteStorage) CreateTombstone(...)\nfunc (s *SQLiteStorage) DeleteIssue(...)\nfunc (s *SQLiteStorage) DeleteIssues(...)\nfunc (s *SQLiteStorage) resolveDeleteSet(...)\nfunc (s *SQLiteStorage) expandWithDependents(...)\nfunc (s *SQLiteStorage) validateNoDependents(...)\nfunc (s *SQLiteStorage) checkSingleIssueValidation(...)\nfunc (s *SQLiteStorage) trackOrphanedIssues(...)\nfunc (s *SQLiteStorage) collectOrphansForID(...)\nfunc (s *SQLiteStorage) populateDeleteStats(...)\nfunc (s *SQLiteStorage) executeDelete(...)\nfunc (s *SQLiteStorage) findAllDependentsRecursive(...)\n```\n\n### 4. queries_helpers.go (~100 lines) - Utilities\n```go\n// Helper functions (already at top of file)\nfunc parseNullableTimeString(...)\nfunc parseJSONStringArray(...)\nfunc formatJSONStringArray(...)\n```\n\n### 5. queries_rename.go (~100 lines) - ID/Prefix Operations\n```go\n// ID and prefix management\nfunc (s *SQLiteStorage) UpdateIssueID(...)\nfunc (s *SQLiteStorage) RenameDependencyPrefix(...)\nfunc (s *SQLiteStorage) RenameCounterPrefix(...)\nfunc (s *SQLiteStorage) ResetCounter(...)\n```\n\n## Implementation Steps\n\n1. **Create new files** with package declaration:\n ```go\n // queries_delete.go\n package sqlite\n \n import (...)\n ```\n\n2. **Move functions** - cut/paste, maintaining order within each file\n\n3. **Update imports** - each file needs its own imports\n\n4. **Run tests** after each file split:\n ```bash\n go test ./internal/storage/sqlite/...\n ```\n\n5. **Run linter** to catch any issues:\n ```bash\n golangci-lint run ./internal/storage/sqlite/...\n ```\n\n## File Organization\n```\ninternal/storage/sqlite/\n├── queries.go # Core CRUD (~400 lines)\n├── queries_search.go # Search/filter (~300 lines)\n├── queries_delete.go # Delete cascade (~400 lines)\n├── queries_helpers.go # Utilities (~100 lines)\n└── queries_rename.go # ID operations (~100 lines)\n```\n\n## Success Criteria\n- No file \u003e 500 lines\n- All tests pass\n- No functionality changes\n- Clear separation of concerns","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-16T18:17:23.85869-08:00","updated_at":"2025-12-23T13:40:51.62551-08:00","closed_at":"2025-12-23T13:40:51.62551-08:00","dependencies":[{"issue_id":"bd-rgyd","depends_on_id":"bd-iz5t","type":"parent-child","created_at":"2025-12-23T12:44:07.50733-08:00","created_by":"daemon"}]} {"id":"bd-ri6d","title":"bd message: Fix inefficient client-side filtering for --unread-only","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-08T12:54:28.614867-08:00","updated_at":"2025-11-08T12:58:59.551512-08:00","closed_at":"2025-11-08T12:58:59.551512-08:00","dependencies":[{"issue_id":"bd-ri6d","depends_on_id":"bd-6uix","type":"parent-child","created_at":"2025-11-08T12:55:55.012455-08:00","created_by":"daemon"}]} -{"id":"bd-rig-beads","title":"beads","description":"Rig identity bead for beads.\n\nrepo: https://github.com/steveyegge/beads\nprefix: bd\nstate: active","status":"open","priority":2,"issue_type":"rig","assignee":"beads/crew/wolf","created_at":"2026-01-08T12:19:32.120798-08:00","created_by":"gastown/polecats/furiosa","updated_at":"2026-01-09T23:02:02.733868-08:00"} -{"id":"bd-rinx","title":"Witness should auto-nuke idle polecats, not escalate","description":"When witness detects an idle polecat with no work, it escalates to Mayor asking what to do.\n\nExpected: Witness should nuke idle polecats automatically if:\n1. No work hooked\n2. No uncommitted/unpushed changes (cleanup_status=clean)\n3. Idle for \u003ethreshold (e.g., 5 minutes)\n\nOnly escalate if polecat has unsaved work that needs recovery.\n\nCurrent behavior creates unnecessary mail noise for the Mayor.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-30T21:21:57.918823-08:00","created_by":"mayor","updated_at":"2025-12-31T00:21:22.701781-08:00","closed_at":"2025-12-31T00:21:22.701781-08:00","close_reason":"Added Step 3a to witness patrol formula for auto-nuke of idle polecats with clean git state"} -{"id":"bd-rivt3","title":"Review PR #964: FK error regression tests","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #964 (steveyegge/beads)\n\nPR: https://github.com/steveyegge/beads/pull/964\nAuthor: peterkc\n\nAdds regression tests for dependency command FK error handling.\n- gh pr view 964 --repo steveyegge/beads\n- gh pr diff 964 --repo steveyegge/beads\n- If good: gh pr merge 964 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/dave","created_at":"2026-01-08T14:30:21.366079-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:32:39.106378-08:00","closed_at":"2026-01-08T14:32:39.106378-08:00","close_reason":"Reviewed and merged PR #964. All FK error regression tests pass locally. Well-documented with tracer bullet findings."} -{"id":"bd-rjuu6","title":"gt mail mark-read: desire path for marking messages read without archiving","description":"dispatched_by: beads/crew/emma\n\n## Context\n\nAgents naturally try `gt mail mark-read \u003cid\u003e` after reading a message. Currently this fails:\n\n```\nError: unknown command \"mark-read\" for \"gt mail\"\n```\n\n## Desire Paths Pattern\n\nWhen agents consistently try a command that doesn't exist, that's a signal the API should support it. This is the 'desire paths' approach to agent UX - let natural agent behavior inform the interface.\n\n## Use Case\n\n- Agent reads a message with `gt mail read \u003cid\u003e`\n- Message content is acknowledged but agent wants to keep it in inbox (not archive)\n- Agent tries `gt mail mark-read \u003cid\u003e` - fails\n- Currently no way to mark as read without archiving\n\n## Proposed Solution\n\nAdd `gt mail mark-read \u003cid\u003e` that:\n1. Marks message as read (removes unread indicator)\n2. Keeps message in inbox (doesn't archive)\n\nAlternative: `gt mail read \u003cid\u003e` could auto-mark as read (may already do this but the inbox display doesn't reflect it).","status":"closed","priority":2,"issue_type":"feature","assignee":"beads/crew/fang","created_at":"2026-01-10T23:56:27.146061-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T00:03:49.725388-08:00","closed_at":"2026-01-11T00:03:49.725388-08:00","close_reason":"Implemented gt mail mark-read and mark-unread commands. Uses labels to track read status without archiving."} -{"id":"bd-rk26c","title":"Issue 2","status":"open","priority":1,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:12.640358-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:12.640358-08:00"} -{"id":"bd-rk5ok","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:42:17.028324-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-07T17:42:17.066797-08:00","closed_at":"2026-01-07T17:42:17.066797-08:00","close_reason":"auto-closed session event"} -{"id":"bd-rl5t","title":"Integration test: agent waits for CI via gate","description":"End-to-end test of the gate workflow.\n\n## Test Scenario\n1. Agent creates gate: bd gate create --await gh:run:123 --timeout 5m --notify beads/dave\n2. Agent writes handoff and exits\n3. Deacon patrol checks gate condition\n4. (Mock) GitHub run completes\n5. Deacon notifies waiter and closes gate\n6. New agent session reads mail and resumes\n\n## Test Requirements\n- Mock GitHub API responses\n- Test timeout path\n- Test multiple waiters\n- Verify mail notifications sent","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-23T11:44:41.725752-08:00","updated_at":"2025-12-23T12:24:08.346347-08:00","closed_at":"2025-12-23T12:24:08.346347-08:00","dependencies":[{"issue_id":"bd-rl5t","depends_on_id":"bd-udsi","type":"parent-child","created_at":"2025-12-23T11:44:53.157037-08:00","created_by":"daemon"},{"issue_id":"bd-rl5t","depends_on_id":"bd-2l03","type":"blocks","created_at":"2025-12-23T11:44:56.674866-08:00","created_by":"daemon"},{"issue_id":"bd-rl5t","depends_on_id":"bd-ykqu","type":"blocks","created_at":"2025-12-23T11:44:56.753264-08:00","created_by":"daemon"}]} -{"id":"bd-rli1y","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T12:48:06.966469-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T12:48:07.026979-08:00","closed_at":"2026-01-10T12:48:07.026979-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-rm8m","title":"Refinery Patrol","description":"Merge queue processor patrol loop with verification gates.","status":"closed","priority":2,"issue_type":"molecule","created_at":"2025-12-30T19:23:45.503188-08:00","created_by":"deacon","updated_at":"2026-01-09T21:15:43.010385-08:00","closed_at":"2026-01-09T21:15:43.010385-08:00","close_reason":"Orphaned patrol molecules"} -{"id":"bd-rnle","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:17:08.220689-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:17:08.258596-08:00","closed_at":"2026-01-07T00:17:08.258596-08:00","close_reason":"auto-closed session event"} +{"id":"bd-rig-beads","title":"beads","description":"Rig identity bead for beads.\n\nrepo: https://github.com/steveyegge/beads\nprefix: bd\nstate: active","status":"open","priority":2,"issue_type":"rig","created_at":"2026-01-08T12:19:32.120798-08:00","updated_at":"2026-01-09T23:02:02.733868-08:00","created_by":"gastown/polecats/furiosa"} +{"id":"bd-rinx","title":"Witness should auto-nuke idle polecats, not escalate","description":"When witness detects an idle polecat with no work, it escalates to Mayor asking what to do.\n\nExpected: Witness should nuke idle polecats automatically if:\n1. No work hooked\n2. No uncommitted/unpushed changes (cleanup_status=clean)\n3. Idle for \u003ethreshold (e.g., 5 minutes)\n\nOnly escalate if polecat has unsaved work that needs recovery.\n\nCurrent behavior creates unnecessary mail noise for the Mayor.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-30T21:21:57.918823-08:00","updated_at":"2025-12-31T00:21:22.701781-08:00","closed_at":"2025-12-31T00:21:22.701781-08:00","close_reason":"Added Step 3a to witness patrol formula for auto-nuke of idle polecats with clean git state","created_by":"mayor"} +{"id":"bd-rivt3","title":"Review PR #964: FK error regression tests","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #964 (steveyegge/beads)\n\nPR: https://github.com/steveyegge/beads/pull/964\nAuthor: peterkc\n\nAdds regression tests for dependency command FK error handling.\n- gh pr view 964 --repo steveyegge/beads\n- gh pr diff 964 --repo steveyegge/beads\n- If good: gh pr merge 964 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-08T14:30:21.366079-08:00","updated_at":"2026-01-08T14:32:39.106378-08:00","closed_at":"2026-01-08T14:32:39.106378-08:00","close_reason":"Reviewed and merged PR #964. All FK error regression tests pass locally. Well-documented with tracer bullet findings.","created_by":"beads/crew/emma"} +{"id":"bd-rjuu6","title":"gt mail mark-read: desire path for marking messages read without archiving","description":"dispatched_by: beads/crew/emma\n\n## Context\n\nAgents naturally try `gt mail mark-read \u003cid\u003e` after reading a message. Currently this fails:\n\n```\nError: unknown command \"mark-read\" for \"gt mail\"\n```\n\n## Desire Paths Pattern\n\nWhen agents consistently try a command that doesn't exist, that's a signal the API should support it. This is the 'desire paths' approach to agent UX - let natural agent behavior inform the interface.\n\n## Use Case\n\n- Agent reads a message with `gt mail read \u003cid\u003e`\n- Message content is acknowledged but agent wants to keep it in inbox (not archive)\n- Agent tries `gt mail mark-read \u003cid\u003e` - fails\n- Currently no way to mark as read without archiving\n\n## Proposed Solution\n\nAdd `gt mail mark-read \u003cid\u003e` that:\n1. Marks message as read (removes unread indicator)\n2. Keeps message in inbox (doesn't archive)\n\nAlternative: `gt mail read \u003cid\u003e` could auto-mark as read (may already do this but the inbox display doesn't reflect it).","status":"closed","priority":2,"issue_type":"feature","created_at":"2026-01-10T23:56:27.146061-08:00","updated_at":"2026-01-11T00:03:49.725388-08:00","closed_at":"2026-01-11T00:03:49.725388-08:00","close_reason":"Implemented gt mail mark-read and mark-unread commands. Uses labels to track read status without archiving.","created_by":"beads/crew/emma"} +{"id":"bd-rk26c","title":"Issue 2","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-11T18:16:12.640358-08:00","updated_at":"2026-01-11T18:16:12.640358-08:00","created_by":"beads/crew/wolf"} +{"id":"bd-rk5ok","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:42:17.028324-08:00","updated_at":"2026-01-07T17:42:17.066797-08:00","closed_at":"2026-01-07T17:42:17.066797-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/fang"} +{"id":"bd-rl5t","title":"Integration test: agent waits for CI via gate","description":"End-to-end test of the gate workflow.\n\n## Test Scenario\n1. Agent creates gate: bd gate create --await gh:run:123 --timeout 5m --notify beads/dave\n2. Agent writes handoff and exits\n3. Deacon patrol checks gate condition\n4. (Mock) GitHub run completes\n5. Deacon notifies waiter and closes gate\n6. New agent session reads mail and resumes\n\n## Test Requirements\n- Mock GitHub API responses\n- Test timeout path\n- Test multiple waiters\n- Verify mail notifications sent","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-23T11:44:41.725752-08:00","updated_at":"2025-12-23T12:24:08.346347-08:00","closed_at":"2025-12-23T12:24:08.346347-08:00","dependencies":[{"issue_id":"bd-rl5t","depends_on_id":"bd-ykqu","type":"blocks","created_at":"2025-12-23T11:44:56.753264-08:00","created_by":"daemon"},{"issue_id":"bd-rl5t","depends_on_id":"bd-udsi","type":"parent-child","created_at":"2025-12-23T11:44:53.157037-08:00","created_by":"daemon"},{"issue_id":"bd-rl5t","depends_on_id":"bd-2l03","type":"blocks","created_at":"2025-12-23T11:44:56.674866-08:00","created_by":"daemon"}]} +{"id":"bd-rli1y","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T12:48:06.966469-08:00","updated_at":"2026-01-10T12:48:07.026979-08:00","closed_at":"2026-01-10T12:48:07.026979-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-rm8m","title":"Refinery Patrol","description":"Merge queue processor patrol loop with verification gates.","status":"closed","priority":2,"issue_type":"molecule","created_at":"2025-12-30T19:23:45.503188-08:00","updated_at":"2026-01-09T21:15:43.010385-08:00","closed_at":"2026-01-09T21:15:43.010385-08:00","close_reason":"Orphaned patrol molecules","created_by":"deacon"} +{"id":"bd-rnle","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:17:08.220689-08:00","updated_at":"2026-01-07T00:17:08.258596-08:00","closed_at":"2026-01-07T00:17:08.258596-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-rnnr","title":"BondRef data model for compound lineage","description":"Add data model support for tracking compound molecule lineage.\n\nNEW FIELDS on Issue:\n bonded_from: []BondRef // For compounds: constituent protos\n\nNEW TYPE:\n type BondRef struct {\n ProtoID string // Source proto ID\n BondType string // sequential, parallel, conditional\n BondPoint string // Attachment site (issue ID or empty for root)\n }\n\nJSONL SERIALIZATION:\n {\n \"id\": \"proto-feature-tested\",\n \"title\": \"Feature with tests\",\n \"bonded_from\": [\n {\"proto_id\": \"proto-feature\", \"bond_type\": \"root\"},\n {\"proto_id\": \"proto-testing\", \"bond_type\": \"sequential\"}\n ],\n ...\n }\n\nQUERIES:\n- GetCompoundConstituents(id) → []BondRef\n- IsCompound(id) → bool\n- GetCompoundsUsing(protoID) → []Issue // Reverse lookup","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-21T00:59:38.582509-08:00","updated_at":"2025-12-21T01:19:43.922416-08:00","closed_at":"2025-12-21T01:19:43.922416-08:00","dependencies":[{"issue_id":"bd-rnnr","depends_on_id":"bd-o5xe","type":"parent-child","created_at":"2025-12-21T00:59:51.234246-08:00","created_by":"daemon"}]} {"id":"bd-rp4o","title":"Deleted issues resurrect during bd sync (tombstones not propagating)","description":"## Problem\n\nWhen issues are deleted with bd delete --force, they get deleted from the local DB but resurrect during the next bd sync.\n\n## Reproduction\n\n1. Observe orphan warnings (bd-cb64c226.*, bd-cbed9619.*)\n2. Delete them: bd delete bd-cb64c226.1 ... --force\n3. Run bd sync\n4. Orphan warnings reappear - issues were resurrected!\n\n## Root Cause Hypothesis\n\nThe sync branch workflow (beads-sync) has the old state before deletions. When bd sync pulls from beads-sync and copies JSONL to main, the deleted issues are re-imported.\n\nTombstones may not be properly:\n1. Written to beads-sync during export\n2. Propagated during pull/merge\n3. Honored during import\n\n## Related\n\n- bd-7b7h: chicken-and-egg sync.branch bug (same workflow)\n- bd-ncwo: ID-based fallback matching to prevent ghost resurrection\n\n## Files to Investigate\n\n- cmd/bd/sync.go (export/import flow)\n- internal/syncbranch/worktree.go (PullFromSyncBranch, copyJSONLToMainRepo)\n- internal/importer/ (tombstone handling)","status":"tombstone","priority":1,"issue_type":"bug","created_at":"2025-12-16T23:09:43.072696-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} -{"id":"bd-rplt1","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T00:25:45.144963-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T00:25:45.185133-08:00","closed_at":"2026-01-11T00:25:45.185133-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-rplt1","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T00:25:45.144963-08:00","updated_at":"2026-01-11T00:25:45.185133-08:00","closed_at":"2026-01-11T00:25:45.185133-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-rpn","title":"Implement `bd prime` command for AI context loading","description":"Create a `bd prime` command that outputs AI-optimized markdown containing essential Beads workflow context. This provides an alternative to the MCP server for token-conscious users and enables context recovery after compaction/clearing.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-11T23:28:42.74124-08:00","updated_at":"2025-11-12T08:30:15.711595-08:00","closed_at":"2025-11-12T08:30:15.711595-08:00","dependencies":[{"issue_id":"bd-rpn","depends_on_id":"bd-90v","type":"parent-child","created_at":"2025-11-11T23:31:20.357861-08:00","created_by":"daemon"}]} -{"id":"bd-rq21y","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T21:03:14.315522-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T21:03:14.35088-08:00","closed_at":"2026-01-08T21:03:14.35088-08:00","close_reason":"auto-closed session event"} -{"id":"bd-rrjo","title":"Swarm: Test coordinator display","description":"Swarm molecule orchestrating epic bd-2rkr.\n\nEpic: bd-2rkr\nCoordinator: ","status":"closed","priority":2,"issue_type":"molecule","created_at":"2025-12-28T22:00:50.527754-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-29T13:40:29.71176-08:00","closed_at":"2025-12-29T13:40:29.71176-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates","dependencies":[{"issue_id":"bd-rrjo","depends_on_id":"bd-2rkr","type":"relates-to","created_at":"2025-12-28T22:00:50.528518-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-rrsa7","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T23:08:02.229369-08:00","created_by":"beads/crew/giles","updated_at":"2026-01-08T23:08:02.264698-08:00","closed_at":"2026-01-08T23:08:02.264698-08:00","close_reason":"auto-closed session event"} -{"id":"bd-rs5a","title":"Test agent bead","description":"Testing new agent type","status":"closed","priority":2,"issue_type":"agent","created_at":"2025-12-27T23:36:57.594945-08:00","created_by":"mayor","updated_at":"2025-12-27T23:37:15.583616-08:00","closed_at":"2025-12-27T23:37:15.583616-08:00"} +{"id":"bd-rq21y","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T21:03:14.315522-08:00","updated_at":"2026-01-08T21:03:14.35088-08:00","closed_at":"2026-01-08T21:03:14.35088-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-rrjo","title":"Swarm: Test coordinator display","description":"Swarm molecule orchestrating epic bd-2rkr.\n\nEpic: bd-2rkr\nCoordinator: ","status":"closed","priority":2,"issue_type":"molecule","created_at":"2025-12-28T22:00:50.527754-08:00","updated_at":"2025-12-29T13:40:29.71176-08:00","closed_at":"2025-12-29T13:40:29.71176-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-rrjo","depends_on_id":"bd-2rkr","type":"relates-to","created_at":"2025-12-28T22:00:50.528518-08:00","created_by":"beads/crew/dave"}]} +{"id":"bd-rrsa7","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T23:08:02.229369-08:00","updated_at":"2026-01-08T23:08:02.264698-08:00","closed_at":"2026-01-08T23:08:02.264698-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/giles"} +{"id":"bd-rs5a","title":"Test agent bead","description":"Testing new agent type","status":"closed","priority":2,"issue_type":"agent","created_at":"2025-12-27T23:36:57.594945-08:00","updated_at":"2025-12-27T23:37:15.583616-08:00","closed_at":"2025-12-27T23:37:15.583616-08:00","created_by":"mayor"} {"id":"bd-rtp","title":"Implement signal-aware context in CLI commands","description":"Replace context.Background() with signal.NotifyContext() to enable graceful cancellation.\n\n## Context\nPart of context propagation work (bd-350). Phase 1 infrastructure is complete - sqlite.New() now accepts context parameter.\n\n## Implementation\nSet up signal-aware context at the CLI entry points:\n\n```go\nctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)\ndefer cancel()\n```\n\n## Key Locations\n- cmd/bd/main.go:438 (marked with TODO(bd-350))\n- cmd/bd/daemon.go:317 (marked with TODO(bd-350))\n- Other command entry points\n\n## Benefits\n- Ctrl+C cancels ongoing database operations\n- Graceful shutdown on SIGTERM\n- Better user experience during long operations\n\n## Acceptance Criteria\n- [ ] Ctrl+C during import cancels operation cleanly\n- [ ] Ctrl+C during export cancels operation cleanly\n- [ ] No database corruption on cancellation\n- [ ] Proper cleanup on signal (defers execute)","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-20T21:26:34.621983-05:00","updated_at":"2025-11-20T21:32:26.288303-05:00","closed_at":"2025-11-20T21:32:26.288303-05:00"} -{"id":"bd-ru9z1","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T01:11:50.01453-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T01:11:50.082367-08:00","closed_at":"2026-01-13T01:11:50.082367-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-ruio","title":"Polecat sessions terminate unexpectedly during work","description":"During swarm bd-784c, polecat sessions (Toast, Nux) terminated mid-task without completing their work.\n\n**Observed:**\n- Polecats were actively working (edits in progress, tests running)\n- Sessions suddenly showed 'not running' in gt polecat status\n- tmux sessions existed but were empty/reset\n- Work was partially complete (some commits made, issue still open)\n\n**Timeline example:**\n1. Toast working on bd-1tkd, making edits\n2. Check status 30s later - session empty, state shows 'idle'\n3. Had to re-sling to restart\n\n**Impact:**\n- Lost work progress\n- Required manual intervention to restart\n- Unclear if work was saved/committed\n\n**Possible causes:**\n- Session timeout?\n- Claude Code crash?\n- Resource limit?\n\n**Suggestion:**\n- Add session health monitoring\n- Auto-restart on unexpected termination\n- Log session exit reasons","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-28T16:18:09.014372-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T22:14:20.983555-08:00","closed_at":"2025-12-28T22:14:20.983555-08:00"} +{"id":"bd-ru9z1","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T01:11:50.01453-08:00","updated_at":"2026-01-13T01:11:50.082367-08:00","closed_at":"2026-01-13T01:11:50.082367-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-ruio","title":"Polecat sessions terminate unexpectedly during work","description":"During swarm bd-784c, polecat sessions (Toast, Nux) terminated mid-task without completing their work.\n\n**Observed:**\n- Polecats were actively working (edits in progress, tests running)\n- Sessions suddenly showed 'not running' in gt polecat status\n- tmux sessions existed but were empty/reset\n- Work was partially complete (some commits made, issue still open)\n\n**Timeline example:**\n1. Toast working on bd-1tkd, making edits\n2. Check status 30s later - session empty, state shows 'idle'\n3. Had to re-sling to restart\n\n**Impact:**\n- Lost work progress\n- Required manual intervention to restart\n- Unclear if work was saved/committed\n\n**Possible causes:**\n- Session timeout?\n- Claude Code crash?\n- Resource limit?\n\n**Suggestion:**\n- Add session health monitoring\n- Auto-restart on unexpected termination\n- Log session exit reasons","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-28T16:18:09.014372-08:00","updated_at":"2025-12-28T22:14:20.983555-08:00","closed_at":"2025-12-28T22:14:20.983555-08:00","created_by":"beads/crew/dave"} {"id":"bd-rupw","title":"Run bump-version.sh 0.30.7","description":"Run ./scripts/bump-version.sh 0.30.7 to update version in all files","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T22:56:48.649647-08:00","updated_at":"2025-12-19T22:57:31.512956-08:00","closed_at":"2025-12-19T22:57:31.512956-08:00","dependencies":[{"issue_id":"bd-rupw","depends_on_id":"bd-8pyn","type":"parent-child","created_at":"2025-12-19T22:56:48.653475-08:00","created_by":"stevey"}]} -{"id":"bd-rx5fp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:27:10.387404-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T02:27:10.433058-08:00","closed_at":"2026-01-12T02:27:10.433058-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-rx6o","title":"Test Child Task","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-27T22:15:23.27506-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-27T22:16:35.925357-08:00","deleted_at":"2025-12-27T22:16:35.925357-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-rxn5l","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:42:12.894211-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:42:12.959803-08:00","closed_at":"2026-01-11T21:42:12.959803-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-rx5fp","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T02:27:10.387404-08:00","updated_at":"2026-01-12T02:27:10.433058-08:00","closed_at":"2026-01-12T02:27:10.433058-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-rx6o","title":"Test Child Task","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-27T22:15:23.27506-08:00","updated_at":"2025-12-27T22:16:35.925357-08:00","created_by":"beads/crew/dave","deleted_at":"2025-12-27T22:16:35.925357-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-rxn5l","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:42:12.894211-08:00","updated_at":"2026-01-11T21:42:12.959803-08:00","closed_at":"2026-01-11T21:42:12.959803-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-ry1u","title":"Publish official devcontainer configuration","notes":"Devcontainer configuration implemented. Manual testing required in actual devcontainer environment (Codespaces or VSCode Remote Containers). All code changes complete, tests pass, linting clean.","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-11-05T15:02:21.783666-08:00","updated_at":"2025-11-05T17:46:42.70998-08:00","closed_at":"2025-11-05T17:46:42.70998-08:00"} {"id":"bd-rze6","title":"Digest: Release v0.34.0 @ 2025-12-22 12:16","description":"Released v0.34.0: wisp commands, chemistry UX, cross-project deps","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-22T12:16:53.033119-08:00","updated_at":"2025-12-22T12:16:53.033119-08:00","closed_at":"2025-12-22T12:16:53.033025-08:00"} -{"id":"bd-rzl2c","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T16:03:31.032914-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T16:03:31.083217-08:00","closed_at":"2026-01-11T16:03:31.083217-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-rzquq","title":"Test rig bead","description":"Testing rig type","status":"tombstone","priority":2,"issue_type":"rig","created_at":"2026-01-10T23:24:56.847561-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-10T23:25:08.099965-08:00","deleted_at":"2026-01-10T23:25:08.099965-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"rig"} -{"id":"bd-s00m","title":"Add 'hooked' status for GUPP work assignment","description":"## Summary\n\nSeparate the semantics of `pinned` (identity records) from work-on-hook (GUPP assignment).\n\n**Current problem:** `pinned` is overloaded to mean both:\n1. Agent identity beads (gt-mayor, gt-crew-gastown-max) - should never block\n2. Work attached to an agent's hook - should block until closed\n\nThe blocking logic excludes `pinned` from blocking, which means work on hooks doesn't block its dependents.\n\n## Semantic Split\n\n| Status | Meaning | Blocks dependents? |\n|--------|---------|-------------------|\n| `pinned` | Domain table / identity record (agents, roles) | No |\n| `hooked` | Work on an agent's hook (GUPP invoked) | Yes |\n\n**Terminology:**\n- **Pin** (verb): Establish a permanent identity record\n- **Hook** (verb): Attach work to an agent's hook\n- **Sling** (verb): The act of hooking work to an agent\n\n## Lifecycles\n\n**Molecule** (the work):\n open -\u003e hooked -\u003e closed\n\n**Persistent agent** (Mayor, Witness, Crew):\n idle \u003c-\u003e working (cycles)\nAgent bead stays pinned. Operational state derived from hook slot occupancy.\n\n**Polecat** (ephemeral worker):\n spawned-with-work -\u003e working -\u003e despawning\nPolecats never idle - spawned for one molecule, nuked after.\n\nThe `hooked` status belongs to the **molecule**, not the agent. Agent identity beads remain `pinned` throughout their existence.\n\n## in_progress vs hooked\n\nBoth remain valid statuses with different semantics:\n- `in_progress` = Soft claim, cooperative (humans juggling multiple issues)\n- `hooked` = Hard claim, GUPP-driven (molecule on agent's hook)\n\nGas Town molecules use `hooked`. Humans/non-Gas Town workflows may use `in_progress`.\n\n## Success Criteria\n\n1. `hooked` is a valid status in beads schema\n2. Blocking logic treats `hooked` as blocking (like `in_progress`)\n3. gt sling sets status=hooked on the molecule (not pinned)\n4. Existing pinned work items migrated to hooked where appropriate\n5. Agent/role beads remain pinned and non-blocking","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-28T22:16:37.66048-08:00","created_by":"stevey","updated_at":"2025-12-28T22:36:19.769137-08:00","closed_at":"2025-12-28T22:36:19.769137-08:00"} -{"id":"bd-s00m.1","title":"Schema: Add 'hooked' as valid status","description":"Add 'hooked' to the valid status enum in the beads schema.\n\n## Files to Update\n\n1. `internal/types/types.go` - Add StatusHooked constant\n2. `internal/storage/sqlite/schema.go` - Add 'hooked' to CHECK constraint\n3. `internal/storage/sqlite/migrations/` - New migration to alter constraint\n\n## Status Values After Change\n\n- open\n- in_progress\n- blocked\n- deferred\n- hooked (NEW)\n- closed\n- pinned\n- tombstone\n\n## Validation\n\n- bd update \u003cid\u003e --status=hooked should work\n- bd list --status=hooked should filter correctly","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-28T22:16:56.596014-08:00","created_by":"stevey","updated_at":"2025-12-28T22:30:39.09597-08:00","closed_at":"2025-12-28T22:30:39.09597-08:00","dependencies":[{"issue_id":"bd-s00m.1","depends_on_id":"bd-s00m","type":"parent-child","created_at":"2025-12-28T22:16:56.596584-08:00","created_by":"daemon"}]} -{"id":"bd-s00m.2","title":"Blocking logic: Include 'hooked' in blocking statuses","description":"Update the blocked_cache.go SQL to treat 'hooked' as a blocking status.\n\n## Current Logic (line ~163)\n\n```sql\nblocker.status IN ('open', 'in_progress', 'blocked', 'deferred')\n```\n\n## Updated Logic\n\n```sql\nblocker.status IN ('open', 'in_progress', 'blocked', 'deferred', 'hooked')\n```\n\n## Files to Update\n\n- internal/storage/sqlite/blocked_cache.go\n\n## Test Cases\n\n1. Issue A (hooked) blocks Issue B → B should NOT appear in bd ready\n2. Issue A (pinned, type=agent) → B should appear in bd ready\n3. Issue A (hooked) closed → B should appear in bd ready","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-28T22:16:56.809269-08:00","created_by":"stevey","updated_at":"2025-12-28T22:32:27.742984-08:00","closed_at":"2025-12-28T22:32:27.742984-08:00","dependencies":[{"issue_id":"bd-s00m.2","depends_on_id":"bd-s00m","type":"parent-child","created_at":"2025-12-28T22:16:56.809716-08:00","created_by":"daemon"},{"issue_id":"bd-s00m.2","depends_on_id":"bd-s00m.1","type":"blocks","created_at":"2025-12-28T22:17:22.129513-08:00","created_by":"daemon"}]} -{"id":"bd-s00m.3","title":"UI: Style 'hooked' status in bd list output","description":"Add styling for 'hooked' status in bd list and bd show output.\n\n## Semantic\n\n'hooked' means actively being worked by an agent (GUPP). Should be visually prominent.\n\n## Suggested Styling\n\n- Color: Cyan or bright blue (active, in-flight)\n- Distinct from 'in_progress' (which is more passive/cooperative)\n\n## Files to Update\n\n- internal/ui/styles.go - Add case for 'hooked' status","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-28T22:16:57.019828-08:00","created_by":"stevey","updated_at":"2025-12-28T22:34:31.132171-08:00","closed_at":"2025-12-28T22:34:31.132171-08:00","dependencies":[{"issue_id":"bd-s00m.3","depends_on_id":"bd-s00m","type":"parent-child","created_at":"2025-12-28T22:16:57.020313-08:00","created_by":"daemon"},{"issue_id":"bd-s00m.3","depends_on_id":"bd-s00m.1","type":"blocks","created_at":"2025-12-28T22:17:22.148918-08:00","created_by":"daemon"}]} -{"id":"bd-s00m.4","title":"Migration: Convert pinned work items to hooked","description":"Migrate existing pinned beads that represent work-on-hook to use 'hooked' status.\n\n## Migration Logic\n\n```sql\nUPDATE issues \nSET status = 'hooked'\nWHERE status = 'pinned' \n AND issue_type NOT IN ('agent', 'role')\n```\n\n## What Stays Pinned\n\n- Agent identity beads (gt-mayor, gt-witness-gastown, etc.)\n- Role definition beads (gt-mayor-role, etc.)\n\n## What Becomes Hooked\n\n- Molecules on hooks (mol_type field set)\n- Regular issues/tasks that were pinned to hooks\n\n## Verification\n\nAfter migration:\n- bd list --status=pinned should only show agents/roles\n- bd list --status=hooked should show work on hooks","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T22:17:13.872171-08:00","created_by":"stevey","updated_at":"2025-12-28T22:36:09.039612-08:00","closed_at":"2025-12-28T22:36:09.039612-08:00","dependencies":[{"issue_id":"bd-s00m.4","depends_on_id":"bd-s00m","type":"parent-child","created_at":"2025-12-28T22:17:13.872786-08:00","created_by":"daemon"},{"issue_id":"bd-s00m.4","depends_on_id":"bd-s00m.1","type":"blocks","created_at":"2025-12-28T22:17:22.168228-08:00","created_by":"daemon"}]} +{"id":"bd-rzl2c","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T16:03:31.032914-08:00","updated_at":"2026-01-11T16:03:31.083217-08:00","closed_at":"2026-01-11T16:03:31.083217-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-rzquq","title":"Test rig bead","description":"Testing rig type","status":"tombstone","priority":2,"issue_type":"rig","created_at":"2026-01-10T23:24:56.847561-08:00","updated_at":"2026-01-10T23:25:08.099965-08:00","created_by":"beads/crew/fang","deleted_at":"2026-01-10T23:25:08.099965-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"rig"} +{"id":"bd-s00m","title":"Add 'hooked' status for GUPP work assignment","description":"## Summary\n\nSeparate the semantics of `pinned` (identity records) from work-on-hook (GUPP assignment).\n\n**Current problem:** `pinned` is overloaded to mean both:\n1. Agent identity beads (gt-mayor, gt-crew-gastown-max) - should never block\n2. Work attached to an agent's hook - should block until closed\n\nThe blocking logic excludes `pinned` from blocking, which means work on hooks doesn't block its dependents.\n\n## Semantic Split\n\n| Status | Meaning | Blocks dependents? |\n|--------|---------|-------------------|\n| `pinned` | Domain table / identity record (agents, roles) | No |\n| `hooked` | Work on an agent's hook (GUPP invoked) | Yes |\n\n**Terminology:**\n- **Pin** (verb): Establish a permanent identity record\n- **Hook** (verb): Attach work to an agent's hook\n- **Sling** (verb): The act of hooking work to an agent\n\n## Lifecycles\n\n**Molecule** (the work):\n open -\u003e hooked -\u003e closed\n\n**Persistent agent** (Mayor, Witness, Crew):\n idle \u003c-\u003e working (cycles)\nAgent bead stays pinned. Operational state derived from hook slot occupancy.\n\n**Polecat** (ephemeral worker):\n spawned-with-work -\u003e working -\u003e despawning\nPolecats never idle - spawned for one molecule, nuked after.\n\nThe `hooked` status belongs to the **molecule**, not the agent. Agent identity beads remain `pinned` throughout their existence.\n\n## in_progress vs hooked\n\nBoth remain valid statuses with different semantics:\n- `in_progress` = Soft claim, cooperative (humans juggling multiple issues)\n- `hooked` = Hard claim, GUPP-driven (molecule on agent's hook)\n\nGas Town molecules use `hooked`. Humans/non-Gas Town workflows may use `in_progress`.\n\n## Success Criteria\n\n1. `hooked` is a valid status in beads schema\n2. Blocking logic treats `hooked` as blocking (like `in_progress`)\n3. gt sling sets status=hooked on the molecule (not pinned)\n4. Existing pinned work items migrated to hooked where appropriate\n5. Agent/role beads remain pinned and non-blocking","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-28T22:16:37.66048-08:00","updated_at":"2025-12-28T22:36:19.769137-08:00","closed_at":"2025-12-28T22:36:19.769137-08:00","created_by":"stevey"} +{"id":"bd-s00m.1","title":"Schema: Add 'hooked' as valid status","description":"Add 'hooked' to the valid status enum in the beads schema.\n\n## Files to Update\n\n1. `internal/types/types.go` - Add StatusHooked constant\n2. `internal/storage/sqlite/schema.go` - Add 'hooked' to CHECK constraint\n3. `internal/storage/sqlite/migrations/` - New migration to alter constraint\n\n## Status Values After Change\n\n- open\n- in_progress\n- blocked\n- deferred\n- hooked (NEW)\n- closed\n- pinned\n- tombstone\n\n## Validation\n\n- bd update \u003cid\u003e --status=hooked should work\n- bd list --status=hooked should filter correctly","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-28T22:16:56.596014-08:00","updated_at":"2025-12-28T22:30:39.09597-08:00","closed_at":"2025-12-28T22:30:39.09597-08:00","created_by":"stevey","dependencies":[{"issue_id":"bd-s00m.1","depends_on_id":"bd-s00m","type":"parent-child","created_at":"2025-12-28T22:16:56.596584-08:00","created_by":"daemon"}]} +{"id":"bd-s00m.2","title":"Blocking logic: Include 'hooked' in blocking statuses","description":"Update the blocked_cache.go SQL to treat 'hooked' as a blocking status.\n\n## Current Logic (line ~163)\n\n```sql\nblocker.status IN ('open', 'in_progress', 'blocked', 'deferred')\n```\n\n## Updated Logic\n\n```sql\nblocker.status IN ('open', 'in_progress', 'blocked', 'deferred', 'hooked')\n```\n\n## Files to Update\n\n- internal/storage/sqlite/blocked_cache.go\n\n## Test Cases\n\n1. Issue A (hooked) blocks Issue B → B should NOT appear in bd ready\n2. Issue A (pinned, type=agent) → B should appear in bd ready\n3. Issue A (hooked) closed → B should appear in bd ready","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-28T22:16:56.809269-08:00","updated_at":"2025-12-28T22:32:27.742984-08:00","closed_at":"2025-12-28T22:32:27.742984-08:00","created_by":"stevey","dependencies":[{"issue_id":"bd-s00m.2","depends_on_id":"bd-s00m","type":"parent-child","created_at":"2025-12-28T22:16:56.809716-08:00","created_by":"daemon"},{"issue_id":"bd-s00m.2","depends_on_id":"bd-s00m.1","type":"blocks","created_at":"2025-12-28T22:17:22.129513-08:00","created_by":"daemon"}]} +{"id":"bd-s00m.3","title":"UI: Style 'hooked' status in bd list output","description":"Add styling for 'hooked' status in bd list and bd show output.\n\n## Semantic\n\n'hooked' means actively being worked by an agent (GUPP). Should be visually prominent.\n\n## Suggested Styling\n\n- Color: Cyan or bright blue (active, in-flight)\n- Distinct from 'in_progress' (which is more passive/cooperative)\n\n## Files to Update\n\n- internal/ui/styles.go - Add case for 'hooked' status","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-28T22:16:57.019828-08:00","updated_at":"2025-12-28T22:34:31.132171-08:00","closed_at":"2025-12-28T22:34:31.132171-08:00","created_by":"stevey","dependencies":[{"issue_id":"bd-s00m.3","depends_on_id":"bd-s00m","type":"parent-child","created_at":"2025-12-28T22:16:57.020313-08:00","created_by":"daemon"},{"issue_id":"bd-s00m.3","depends_on_id":"bd-s00m.1","type":"blocks","created_at":"2025-12-28T22:17:22.148918-08:00","created_by":"daemon"}]} +{"id":"bd-s00m.4","title":"Migration: Convert pinned work items to hooked","description":"Migrate existing pinned beads that represent work-on-hook to use 'hooked' status.\n\n## Migration Logic\n\n```sql\nUPDATE issues \nSET status = 'hooked'\nWHERE status = 'pinned' \n AND issue_type NOT IN ('agent', 'role')\n```\n\n## What Stays Pinned\n\n- Agent identity beads (gt-mayor, gt-witness-gastown, etc.)\n- Role definition beads (gt-mayor-role, etc.)\n\n## What Becomes Hooked\n\n- Molecules on hooks (mol_type field set)\n- Regular issues/tasks that were pinned to hooks\n\n## Verification\n\nAfter migration:\n- bd list --status=pinned should only show agents/roles\n- bd list --status=hooked should show work on hooks","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T22:17:13.872171-08:00","updated_at":"2025-12-28T22:36:09.039612-08:00","closed_at":"2025-12-28T22:36:09.039612-08:00","created_by":"stevey","dependencies":[{"issue_id":"bd-s00m.4","depends_on_id":"bd-s00m","type":"parent-child","created_at":"2025-12-28T22:17:13.872786-08:00","created_by":"daemon"},{"issue_id":"bd-s00m.4","depends_on_id":"bd-s00m.1","type":"blocks","created_at":"2025-12-28T22:17:22.168228-08:00","created_by":"daemon"}]} {"id":"bd-s02","title":"Manual task","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-03T20:15:10.022202-08:00","updated_at":"2025-12-14T00:32:11.047349-08:00","closed_at":"2025-12-13T23:29:56.877597-08:00"} {"id":"bd-s0qf","title":"GH#405: Fix prefix parsing with hyphens - multi-hyphen prefixes parsed incorrectly","description":"Fixed: ExtractIssuePrefix was falling back to first-hyphen for word-like suffixes, breaking multi-hyphen prefixes like 'hacker-news' and 'me-py-toolkit'.","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-12-16T01:13:56.951359-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-s0z","title":"Consider extracting error handling helpers","description":"Evaluate creating FatalError() and WarnError() helpers as suggested in ERROR_HANDLING.md to reduce boilerplate and enforce consistency. Prototype in a few files first to validate the approach.","status":"closed","priority":4,"issue_type":"task","created_at":"2025-11-24T00:28:57.248959-08:00","updated_at":"2025-12-02T17:11:19.748387872-05:00","closed_at":"2025-11-28T23:28:00.886536-08:00"} {"id":"bd-s1pz","title":"Merge: bd-u2sc.4","description":"branch: polecat/Logger\ntarget: main\nsource_issue: bd-u2sc.4\nrig: beads","status":"closed","priority":3,"issue_type":"merge-request","created_at":"2025-12-23T13:45:52.412757-08:00","updated_at":"2025-12-23T19:12:08.356689-08:00","closed_at":"2025-12-23T19:12:08.356689-08:00"} -{"id":"bd-s1ve9","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T14:12:55.401136-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T14:12:55.436726-08:00","closed_at":"2026-01-10T14:12:55.436726-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-s1ve9","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T14:12:55.401136-08:00","updated_at":"2026-01-10T14:12:55.436726-08:00","closed_at":"2026-01-10T14:12:55.436726-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-s1xn","title":"bd message: Refactor duplicated error messages","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-08T12:54:27.624981-08:00","updated_at":"2025-11-08T12:58:59.542795-08:00","closed_at":"2025-11-08T12:58:59.542795-08:00","dependencies":[{"issue_id":"bd-s1xn","depends_on_id":"bd-6uix","type":"parent-child","created_at":"2025-11-08T12:55:54.96063-08:00","created_by":"daemon"}]} {"id":"bd-s2t","title":"wish: a 'continue' or similar cmd/flag which means alter last issue","description":"so many time I create an issue and then have another thought: 'oh, before I did X and it crashed there was ZZZ happening' or 'actually that is P4 not P2'. It would be nice if when `bd {cmd}` is used without a {title} or {id} it just adds or updates the most recently touched issue.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-08T06:46:37.529160416-07:00","updated_at":"2025-12-30T18:12:30.971727-08:00","closed_at":"2025-12-30T16:57:07.001784-08:00","close_reason":"Implemented last-touched tracking for update/close without ID"} -{"id":"bd-s2xpf","title":"gt prime --state should support --json output","description":"dispatched_by: mayor\n\nThe SessionState struct has JSON tags but outputState() only outputs plain text key:value format. For consistency with other gt commands and machine parsing, --state should support --json.\n\nCurrent:\n state: normal\n role: mayor\n\nWith --json:\n {\"state\": \"normal\", \"role\": \"mayor\"}\n\nLocation: gastown/mayor/rig/internal/cmd/prime.go:1805-1826","status":"closed","priority":3,"issue_type":"task","assignee":"beads/polecats/ruby","created_at":"2026-01-10T00:45:49.422246-08:00","created_by":"mayor","updated_at":"2026-01-12T19:42:31.607657-08:00","closed_at":"2026-01-12T19:42:31.607657-08:00","close_reason":"Added --json flag to gt prime --state. Changes made: 1) Added primeStateJSON flag variable, 2) Added --json flag with description, 3) Updated outputState() to accept jsonOutput bool and output JSON when true, 4) Added validation that --json requires --state. Tested manually - JSON output works correctly."} -{"id":"bd-s551s","title":"Session ended: gt-gastown-crew-george","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T23:31:36.922142-08:00","created_by":"beads/witness","updated_at":"2026-01-09T21:15:40.686866-08:00","closed_at":"2026-01-09T21:15:40.686866-08:00","close_reason":"Stale session ended events"} -{"id":"bd-s5kf","title":"Merge: onyx-1767083477016","description":"branch: polecat/onyx-1767083477016\ntarget: main\nsource_issue: onyx-1767083477016\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T00:37:08.214926-08:00","created_by":"beads/polecats/onyx","updated_at":"2025-12-30T00:54:59.041942-08:00","closed_at":"2025-12-30T00:54:59.041942-08:00","close_reason":"Branch polecat/onyx-1767083477016 no longer exists on remote"} -{"id":"bd-s7zwg","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:08:01.089618-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:08:01.149353-08:00","closed_at":"2026-01-11T19:08:01.149353-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-sabmf","title":"Fix: bd doctor false positive on thin shim hook (GH#969)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #969. Doctor incorrectly reports 'pre-commit not calling bd' for valid thin shim hook.","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/giles","created_at":"2026-01-09T22:20:19.331637-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T22:58:08.977701-08:00","closed_at":"2026-01-09T22:58:08.977701-08:00","close_reason":"Duplicate of GH#946. Fix already in main (commit bf09f0c6) but not yet released. User on v0.46.0 which predates fix. Next release will include it."} +{"id":"bd-s2xpf","title":"gt prime --state should support --json output","description":"dispatched_by: mayor\n\nThe SessionState struct has JSON tags but outputState() only outputs plain text key:value format. For consistency with other gt commands and machine parsing, --state should support --json.\n\nCurrent:\n state: normal\n role: mayor\n\nWith --json:\n {\"state\": \"normal\", \"role\": \"mayor\"}\n\nLocation: gastown/mayor/rig/internal/cmd/prime.go:1805-1826","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-10T00:45:49.422246-08:00","updated_at":"2026-01-12T19:42:31.607657-08:00","closed_at":"2026-01-12T19:42:31.607657-08:00","close_reason":"Added --json flag to gt prime --state. Changes made: 1) Added primeStateJSON flag variable, 2) Added --json flag with description, 3) Updated outputState() to accept jsonOutput bool and output JSON when true, 4) Added validation that --json requires --state. Tested manually - JSON output works correctly.","created_by":"mayor"} +{"id":"bd-s551s","title":"Session ended: gt-gastown-crew-george","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T23:31:36.922142-08:00","updated_at":"2026-01-09T21:15:40.686866-08:00","closed_at":"2026-01-09T21:15:40.686866-08:00","close_reason":"Stale session ended events","created_by":"beads/witness"} +{"id":"bd-s5kf","title":"Merge: onyx-1767083477016","description":"branch: polecat/onyx-1767083477016\ntarget: main\nsource_issue: onyx-1767083477016\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T00:37:08.214926-08:00","updated_at":"2025-12-30T00:54:59.041942-08:00","closed_at":"2025-12-30T00:54:59.041942-08:00","close_reason":"Branch polecat/onyx-1767083477016 no longer exists on remote","created_by":"beads/polecats/onyx"} +{"id":"bd-s7zwg","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:08:01.089618-08:00","updated_at":"2026-01-11T19:08:01.149353-08:00","closed_at":"2026-01-11T19:08:01.149353-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-sabmf","title":"Fix: bd doctor false positive on thin shim hook (GH#969)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #969. Doctor incorrectly reports 'pre-commit not calling bd' for valid thin shim hook.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-09T22:20:19.331637-08:00","updated_at":"2026-01-09T22:58:08.977701-08:00","closed_at":"2026-01-09T22:58:08.977701-08:00","close_reason":"Duplicate of GH#946. Fix already in main (commit bf09f0c6) but not yet released. User on v0.46.0 which predates fix. Next release will include it.","created_by":"beads/crew/dave"} {"id":"bd-sal9","title":"bd mol current: soft cursor showing current/next step","description":"Add bd mol current command for molecule navigation orientation.\n\n## Usage\n\nbd mol current [mol-id]\n\nIf mol-id given, show status for that molecule.\nIf not given, infer from in_progress issues assigned to current agent.\n\n## Output\n\nYou're working on molecule gt-abc (Feature X)\n\n [done] gt-abc.1: Design\n [done] gt-abc.2: Scaffold \n [done] gt-abc.3: Implement\n [current] gt-abc.4: Write tests [in_progress] \u003c- YOU ARE HERE\n [pending] gt-abc.5: Documentation\n [pending] gt-abc.6: Exit decision\n\nProgress: 3/6 steps complete\n\n## Key behaviors\n- Shows full molecule structure with status indicators\n- Highlights current in_progress step\n- If no in_progress, highlights first ready step\n- Works without explicit cursor tracking (inferred from state)\n\n## Implementation notes\n- Query children of mol-id\n- Sort by dependency order\n- Find first in_progress or first ready\n- Format with status indicators\n\n## Gas Town integration\n- gt-lz13: Update templates with nav workflow\n- gt-um6q: Update docs with nav workflow","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-12-22T17:03:30.245964-08:00","updated_at":"2025-12-22T17:36:31.936007-08:00","closed_at":"2025-12-22T17:36:31.936007-08:00"} {"id":"bd-sc57","title":"Production Readiness (Optional)","description":"Enable multi-machine deployments with containerization and monitoring.","status":"closed","priority":3,"issue_type":"epic","created_at":"2025-11-07T22:43:31.527617-08:00","updated_at":"2025-11-08T01:06:12.904671-08:00","closed_at":"2025-11-08T01:06:12.904671-08:00","dependencies":[{"issue_id":"bd-sc57","depends_on_id":"bd-wfmw","type":"blocks","created_at":"2025-11-07T22:43:31.528743-08:00","created_by":"daemon"},{"issue_id":"bd-sc57","depends_on_id":"bd-pdjb","type":"blocks","created_at":"2025-11-07T22:43:31.529193-08:00","created_by":"daemon"}]} -{"id":"bd-sco6","title":"Emit issue title with dep/label mutation events","description":"When dependencies or labels are added, mutations are emitted without title/assignee:\n\n```go\ns.emitMutation(MutationUpdate, depArgs.FromID, \"\", \"\") // server_labels_deps_comments.go:68\ns.emitMutation(MutationUpdate, issueID, \"\", \"\") // server_labels_deps_comments.go:101\n```\n\nThis causes bd activity (and gt feed) to show less informative entries like:\n```\n[20:42:17] → gt-4ntnq updated\n```\n\nInstead of:\n```\n[20:42:17] → gt-4ntnq updated · Pipeline Reliability: Fix work loss...\n```\n\n**Fix**: Look up issue title in dep/label handlers before emitting mutation. This adds one extra DB read per dep/label operation, but these are infrequent enough that it's acceptable.\n\n**Related**: gt feed now deduplicates rapid updates in gastown commit (to be pushed).","status":"closed","priority":3,"issue_type":"bug","created_at":"2025-12-30T21:13:31.574249-08:00","created_by":"gastown/crew/joe","updated_at":"2025-12-30T21:21:45.081602-08:00","closed_at":"2025-12-30T21:21:45.081602-08:00","close_reason":"Added lookupIssueMeta helper; mutation events now include title/assignee for dep/label/comment operations"} -{"id":"bd-sfcq","title":"Tests fail due to .beads directory discovery escaping temp dirs","description":"ACTUAL FIX NEEDED: Tests in internal/beads/beads_test.go and internal/syncbranch/syncbranch_test.go find /Users/stevey/gt/beads/mayor/rig/.beads instead of temp test directories.\n\nThe fix is to set BEADS_DB env var in tests to a temp path BEFORE calling FindDatabasePath(). Example:\n\n t.Setenv(\"BEADS_DB\", filepath.Join(tmpDir, \".beads/beads.db\"))\n\nThis prevents the upward directory walk from escaping the temp directory.\n\nNOT the fix: Session parameter changes (already done, doesn't help).","status":"closed","priority":1,"issue_type":"bug","assignee":"beads/polecats/onyx","created_at":"2026-01-01T15:50:04.141197-08:00","created_by":"beads/refinery","updated_at":"2026-01-01T16:28:16.308292-08:00","closed_at":"2026-01-01T16:24:45.907692-08:00","close_reason":"Fixed: added missing session parameter to two CloseIssue calls in daemon mode"} +{"id":"bd-sco6","title":"Emit issue title with dep/label mutation events","description":"When dependencies or labels are added, mutations are emitted without title/assignee:\n\n```go\ns.emitMutation(MutationUpdate, depArgs.FromID, \"\", \"\") // server_labels_deps_comments.go:68\ns.emitMutation(MutationUpdate, issueID, \"\", \"\") // server_labels_deps_comments.go:101\n```\n\nThis causes bd activity (and gt feed) to show less informative entries like:\n```\n[20:42:17] → gt-4ntnq updated\n```\n\nInstead of:\n```\n[20:42:17] → gt-4ntnq updated · Pipeline Reliability: Fix work loss...\n```\n\n**Fix**: Look up issue title in dep/label handlers before emitting mutation. This adds one extra DB read per dep/label operation, but these are infrequent enough that it's acceptable.\n\n**Related**: gt feed now deduplicates rapid updates in gastown commit (to be pushed).","status":"closed","priority":3,"issue_type":"bug","created_at":"2025-12-30T21:13:31.574249-08:00","updated_at":"2025-12-30T21:21:45.081602-08:00","closed_at":"2025-12-30T21:21:45.081602-08:00","close_reason":"Added lookupIssueMeta helper; mutation events now include title/assignee for dep/label/comment operations","created_by":"gastown/crew/joe"} +{"id":"bd-sfcq","title":"Tests fail due to .beads directory discovery escaping temp dirs","description":"ACTUAL FIX NEEDED: Tests in internal/beads/beads_test.go and internal/syncbranch/syncbranch_test.go find /Users/stevey/gt/beads/mayor/rig/.beads instead of temp test directories.\n\nThe fix is to set BEADS_DB env var in tests to a temp path BEFORE calling FindDatabasePath(). Example:\n\n t.Setenv(\"BEADS_DB\", filepath.Join(tmpDir, \".beads/beads.db\"))\n\nThis prevents the upward directory walk from escaping the temp directory.\n\nNOT the fix: Session parameter changes (already done, doesn't help).","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-01T15:50:04.141197-08:00","updated_at":"2026-01-01T16:28:16.308292-08:00","closed_at":"2026-01-01T16:24:45.907692-08:00","close_reason":"Fixed: added missing session parameter to two CloseIssue calls in daemon mode","created_by":"beads/refinery"} {"id":"bd-sh4c","title":"Improve test coverage for cmd/bd/setup (28.4% → 50%)","description":"The setup package has only 28.4% test coverage. Setup commands are critical for first-time user experience.\n\nCurrent coverage: 28.4%\nTarget coverage: 50%","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-13T20:43:04.409346-08:00","updated_at":"2025-12-23T22:37:13.494999-08:00","closed_at":"2025-12-23T22:37:13.494999-08:00"} {"id":"bd-si4g","title":"Verify release artifacts","description":"Check GitHub releases page - binaries for darwin/linux/windows should be available","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T22:56:04.183029-08:00","updated_at":"2025-12-20T00:49:51.92894-08:00","closed_at":"2025-12-20T00:25:52.720816-08:00","dependencies":[{"issue_id":"bd-si4g","depends_on_id":"bd-6s61","type":"parent-child","created_at":"2025-12-19T22:56:15.173619-08:00","created_by":"daemon"},{"issue_id":"bd-si4g","depends_on_id":"bd-otli","type":"blocks","created_at":"2025-12-19T22:56:23.428507-08:00","created_by":"daemon"}]} -{"id":"bd-sinx1","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:32:02.185259-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:32:02.253968-08:00","closed_at":"2026-01-11T21:32:02.253968-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-sinx1","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:32:02.185259-08:00","updated_at":"2026-01-11T21:32:02.253968-08:00","closed_at":"2026-01-11T21:32:02.253968-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-siz1","title":"GH#532: bd sync circular error (suggests running bd sync)","description":"bd sync error message recommends running bd sync to fix the bd sync error. Fix error handling to provide useful guidance. See GitHub issue #532.","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-12-16T01:04:00.543573-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-sj5y","title":"Daemon should be singleton and aggressively kill stale instances","description":"Found 2 bd daemons running (PIDs 76868, 77515) during shutdown. The daemon should:\n\n1. Be a singleton - only one instance per rig allowed\n2. On startup, check for existing daemon and kill it before starting\n3. Use a PID file or lock file to enforce this\n\nCurrently stale daemons can accumulate, causing confusion and resource waste.","notes":"**Investigation 2025-12-21:**\n\nThe singleton mechanism is already implemented and working correctly:\n\n1. **daemon.lock** uses flock (exclusive non-blocking) to prevent duplicate daemons\n2. **bd.sock.startlock** coordinates concurrent auto-starts via O_CREATE|O_EXCL\n3. **Registry** tracks all daemons globally in ~/.beads/registry.json\n\nTesting shows:\n- Trying to start a second daemon gives: 'Error: daemon already running (PID X)'\n- Multiple daemons for *different* rigs is expected/correct behavior\n\nThe original report ('Found 2 bd daemons running PIDs 76868, 77515') was likely:\n1. Two daemons for different rigs (expected), OR\n2. An edge case that's since been fixed\n\nConsider closing as RESOLVED or clarifying the original scenario.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-21T01:29:14.778949-08:00","updated_at":"2025-12-21T11:27:34.302585-08:00","closed_at":"2025-12-21T11:27:34.302585-08:00"} {"id":"bd-sjmr","title":"Fix inconsistent error handling in multi-repo deletion tracking","description":"From bd-xo6b code review: Multi-repo deletion tracking has mixed failure modes that can leave system in inconsistent state.\n\n**Current behavior (daemon_sync.go):**\n- Snapshot capture (L505-514): Hard fail → aborts sync\n- Merge/prune (L575-584): Hard fail → aborts sync \n- Base snapshot update (L613-619): Soft fail → logs warning, continues\n\n**Critical problem:**\nIf merge fails on repo 3 of 5:\n- Repos 1-2 have already merged and deleted issues (irreversible)\n- Repos 3-5 are untouched\n- Database is in partially-updated state\n- No rollback mechanism\n\n**Real-world scenario:**\n```\nSync with repos [A, B, C]:\n1. Capture snapshots A ✓, B ✓, C ✗ → ABORT (good)\n2. Merge A ✓, B ✗ → ABORT but A already deleted issues (BAD - no rollback)\n3. Update base A ⚠, B ⚠ → Warnings only (inconsistent with 1 \u0026 2)\n```\n\n**Solution options:**\n1. **Two-phase commit:**\n - Phase 1: Validate all repos (check files exist, readable, parseable)\n - Phase 2: Apply changes atomically (or fail entirely before any mutations)\n\n2. **Fail-fast validation:**\n - Before any snapshot/merge operations, validate all repos upfront\n - Abort entire sync if any repo fails validation\n\n3. **Make base snapshot update consistent:**\n - Either make it hard-fail like the others, or make all soft-fail\n\n**Files:**\n- cmd/bd/daemon_sync.go:505-514 (snapshot capture)\n- cmd/bd/daemon_sync.go:575-584 (merge/prune)\n- cmd/bd/daemon_sync.go:613-619 (base snapshot update)\n\n**Recommendation:** Use option 1 (two-phase) or option 2 (fail-fast validation) + fix base snapshot inconsistency.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-06T19:31:29.538092-08:00","updated_at":"2025-11-06T19:35:41.268584-08:00","closed_at":"2025-11-06T19:35:41.268584-08:00","dependencies":[{"issue_id":"bd-sjmr","depends_on_id":"bd-xo6b","type":"discovered-from","created_at":"2025-11-06T19:32:12.310033-08:00","created_by":"daemon"}]} -{"id":"bd-sksae","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:40:13.870453-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T20:40:13.937995-08:00","closed_at":"2026-01-11T20:40:13.937995-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-slz28","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:14:50.852321-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T15:14:50.887542-08:00","closed_at":"2026-01-10T15:14:50.887542-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-soig","title":"Sling reports 'already pinned' but mol status shows empty hook","description":"During swarm operations, gt sling reported beads were 'already pinned' but gt mol status showed nothing on the hook.\n\n**Observed:**\n```\n$ gt sling bd-9btu beads/Nux\nError: bead bd-9btu is already pinned to gt-beads-nux\n\n$ gt mol status beads/Nux\nNothing on hook - no work slung\n```\n\n**Expected:**\nIf a bead is pinned, mol status should show it. If mol status shows empty, sling should work.\n\n**Workaround:**\nUsed --force flag to re-sling, which worked.\n\n**Root cause hypothesis:**\nAgent bead state may be stored in town beads but polecat's local view doesn't see it, or the pin record exists but session state is stale.","status":"closed","priority":3,"issue_type":"bug","created_at":"2025-12-28T16:17:50.561021-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T22:14:22.838484-08:00","closed_at":"2025-12-28T22:14:22.838484-08:00"} -{"id":"bd-sojqc","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T23:08:24.273721-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-09T23:08:24.308524-08:00","closed_at":"2026-01-09T23:08:24.308524-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-sksae","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T20:40:13.870453-08:00","updated_at":"2026-01-11T20:40:13.937995-08:00","closed_at":"2026-01-11T20:40:13.937995-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-slz28","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:14:50.852321-08:00","updated_at":"2026-01-10T15:14:50.887542-08:00","closed_at":"2026-01-10T15:14:50.887542-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-soig","title":"Sling reports 'already pinned' but mol status shows empty hook","description":"During swarm operations, gt sling reported beads were 'already pinned' but gt mol status showed nothing on the hook.\n\n**Observed:**\n```\n$ gt sling bd-9btu beads/Nux\nError: bead bd-9btu is already pinned to gt-beads-nux\n\n$ gt mol status beads/Nux\nNothing on hook - no work slung\n```\n\n**Expected:**\nIf a bead is pinned, mol status should show it. If mol status shows empty, sling should work.\n\n**Workaround:**\nUsed --force flag to re-sling, which worked.\n\n**Root cause hypothesis:**\nAgent bead state may be stored in town beads but polecat's local view doesn't see it, or the pin record exists but session state is stale.","status":"closed","priority":3,"issue_type":"bug","created_at":"2025-12-28T16:17:50.561021-08:00","updated_at":"2025-12-28T22:14:22.838484-08:00","closed_at":"2025-12-28T22:14:22.838484-08:00","created_by":"beads/crew/dave"} +{"id":"bd-sojqc","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T23:08:24.273721-08:00","updated_at":"2026-01-09T23:08:24.308524-08:00","closed_at":"2026-01-09T23:08:24.308524-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/grip"} {"id":"bd-spmx","title":"Investigation \u0026 Proof of Concept","description":"Validate that MCP Agent Mail works as expected and delivers promised benefits before committing to full integration.","notes":"POC completed successfully:\n✅ bd-muls: Server installed and tested\n✅ bd-27xm: MCP tool execution issues resolved\n✅ [deleted:bd-6hji]: File reservation collision prevention validated\n✅ bd-htfk: Latency benchmarking shows 20-50x improvement\n✅ bd-pmuu: ADR 002 created documenting integration decision\n\nResults validate Agent Mail benefits:\n- Collision prevention works (exclusive file reservations)\n- Latency: \u003c100ms (vs 2000-5000ms git sync)\n- Lightweight deployment (\u003c50MB memory)\n- Optional/non-intrusive integration approach validated\n\nNext: bd-wfmw (Integration Layer Implementation)","status":"closed","priority":0,"issue_type":"epic","created_at":"2025-11-07T22:41:37.13757-08:00","updated_at":"2025-11-08T03:12:04.154114-08:00","closed_at":"2025-11-08T00:06:20.731732-08:00"} -{"id":"bd-srhu","title":"Merge: jasper-mk04cv5s","description":"branch: polecat/jasper-mk04cv5s\ntarget: main\nsource_issue: jasper-mk04cv5s\nrig: beads\nagent_bead: bd-beads-polecat-jasper\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-04T11:27:04.224933-08:00","created_by":"beads/polecats/jasper","updated_at":"2026-01-05T19:45:43.989296-08:00","closed_at":"2026-01-05T19:45:43.989296-08:00","close_reason":"Branch deleted, already merged"} +{"id":"bd-srhu","title":"Merge: jasper-mk04cv5s","description":"branch: polecat/jasper-mk04cv5s\ntarget: main\nsource_issue: jasper-mk04cv5s\nrig: beads\nagent_bead: bd-beads-polecat-jasper\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-04T11:27:04.224933-08:00","updated_at":"2026-01-05T19:45:43.989296-08:00","closed_at":"2026-01-05T19:45:43.989296-08:00","close_reason":"Branch deleted, already merged","created_by":"beads/polecats/jasper"} {"id":"bd-srsk","title":"Gate eval: Add error visibility for gh CLI failures","description":"Currently evalGHRunGate and evalGHPRGate silently swallow errors when the gh CLI fails (lines 738-741, 780-783 in gate.go).\n\nThis makes debugging difficult - if gh isn't installed, auth fails, or network issues occur, gates silently stall forever with no indication of why.\n\nOptions:\n1. Add debug logging when gh fails\n2. Return error info in the skipped list for aggregate reporting\n3. Add a --verbose flag to gate eval that shows failures\n\nLow priority since the fail-safe behavior (don't close gate on error) is correct.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-25T23:13:11.718635-08:00","updated_at":"2026-01-02T18:35:49.165014-08:00","closed_at":"2026-01-02T18:35:49.165014-08:00","close_reason":"Fixed in commit 3c5b7414 (bd-oos3). Error visibility now implemented in bd gate check - errors are printed to stderr with fail icon."} {"id":"bd-srwk","title":"bd export should detect and prevent stale database exports","description":"## Problem\n\nWhen `bd export` is run with a stale database (older than issues.jsonl), it silently overwrites the JSONL file with stale data, causing data loss.\n\n## What Happened (vc project)\n\n1. Agent A created 4 new issues and exported to issues.jsonl (commit 99a9d58)\n2. Agent A closed an issue and exported again (commit 58b4613) - JSONL now has 4 epics\n3. Agent B had stale database (from before step 1)\n4. Agent B worked on unrelated issue and exported (commit 0609233)\n5. Agent B's export **overwrote issues.jsonl**, removing the 4 epics created by Agent A\n6. Required manual recovery by re-exporting from Agent A's correct database\n\n## Expected Behavior\n\n`bd export` should detect that the database is stale and either:\n- **Refuse to export** with error message explaining the issue\n- **Warn prominently** and require explicit --force flag to override\n- **Auto-import first** to sync database before exporting\n\n## How to Detect Staleness\n\nCompare modification times (similar to VC's ValidateDatabaseFreshness):\n1. Check .db, .db-wal, .db-shm timestamps (use newest for WAL mode)\n2. Check issues.jsonl timestamp\n3. If JSONL is newer by \u003e1 second: database is stale\n\n## Suggested Fix\n\nAdd staleness check in `bd export`:\n\n```go\nfunc Export(dbPath, jsonlPath string, force bool) error {\n // Check if database is stale\n if !force {\n if err := checkDatabaseFreshness(dbPath, jsonlPath); err != nil {\n return fmt.Errorf(\"database is stale: %w\\n\" +\n \"Run 'bd import %s' first to sync, or use --force to override\",\n err, jsonlPath)\n }\n }\n \n // Proceed with export...\n}\n```\n\n## Impact\n\n- **Severity**: High (silent data loss)\n- **Frequency**: Happens in multi-agent workflows when agents don't sync\n- **Workaround**: Manual recovery (re-export from correct database)\n\n## References\n\n- VC issue tracker: commits 58b4613 -\u003e 0609233 -\u003e c41c638\n- VC has similar check: `storage.ValidateDatabaseFreshness()`\n- Tolerance: 1 second (handles filesystem timestamp precision)","notes":"Fixed with ID-based comparison instead of just count. Now detects:\n1. DB has fewer issues than JSONL (count check)\n2. DB has different issues than JSONL (ID comparison)\n\nBoth scenarios now properly refuse export unless --force is used.\n\nImplementation uses getIssueIDsFromJSONL() to build a set of IDs from JSONL, then checks if any JSONL IDs are missing from DB. Shows specific missing issue IDs in error message.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-07T19:39:24.172154-08:00","updated_at":"2025-11-07T20:05:13.649736-08:00","closed_at":"2025-11-07T19:58:43.300177-08:00"} -{"id":"bd-ssrid","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:47:15.788852-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-09T22:47:15.828912-08:00","closed_at":"2026-01-09T22:47:15.828912-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ssrid","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:47:15.788852-08:00","updated_at":"2026-01-09T22:47:15.828912-08:00","closed_at":"2026-01-09T22:47:15.828912-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} {"id":"bd-su45","title":"Protect pinned issues from bd cleanup/compact","description":"Update bd cleanup and bd compact to never delete pinned issues, even if they are closed. Pinned issues should persist indefinitely as reference material.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-18T23:33:46.204783-08:00","updated_at":"2025-12-19T17:43:35.712617-08:00","closed_at":"2025-12-19T00:43:04.06406-08:00","dependencies":[{"issue_id":"bd-su45","depends_on_id":"bd-0vg","type":"blocks","created_at":"2025-12-18T23:33:56.64582-08:00","created_by":"daemon"},{"issue_id":"bd-su45","depends_on_id":"bd-7h5","type":"blocks","created_at":"2025-12-18T23:34:07.857586-08:00","created_by":"daemon"}]} {"id":"bd-sumr","title":"Merge: bd-t4sb","description":"branch: polecat/capable\ntarget: main\nsource_issue: bd-t4sb\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-19T23:22:21.343724-08:00","updated_at":"2025-12-20T23:17:26.997992-08:00","closed_at":"2025-12-20T23:17:26.997992-08:00"} {"id":"bd-svb5","title":"GH#505: Add bd reset/wipe command","description":"Add command to cleanly reset/wipe beads database. User reports painful manual process to start fresh. See GitHub issue #505.","status":"tombstone","priority":2,"issue_type":"feature","created_at":"2025-12-16T01:03:42.160966-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"feature"} -{"id":"bd-swsc","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:47:07.01162-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:47:07.045436-08:00","closed_at":"2026-01-07T00:47:07.045436-08:00","close_reason":"auto-closed session event"} -{"id":"bd-sxlt","title":"GHI #885: Sync failure leaves local JSONL stale, causing inconsistent state","description":"GitHub Issue #885: Sync failure leaves local JSONL stale, causing inconsistent state across worktrees\n\nhttps://github.com/steveyegge/beads/issues/885","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-04T11:22:16.730476-08:00","created_by":"mayor","updated_at":"2026-01-04T15:22:07.771064-08:00","closed_at":"2026-01-04T11:30:32.561965-08:00","close_reason":"Added status mismatch detection to bd doctor. When counts match but statuses differ, the check now reports detailed mismatches and suggests 'bd export' to fix."} +{"id":"bd-swsc","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:47:07.01162-08:00","updated_at":"2026-01-07T00:47:07.045436-08:00","closed_at":"2026-01-07T00:47:07.045436-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-sxlt","title":"GHI #885: Sync failure leaves local JSONL stale, causing inconsistent state","description":"GitHub Issue #885: Sync failure leaves local JSONL stale, causing inconsistent state across worktrees\n\nhttps://github.com/steveyegge/beads/issues/885","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-04T11:22:16.730476-08:00","updated_at":"2026-01-04T15:22:07.771064-08:00","closed_at":"2026-01-04T11:30:32.561965-08:00","close_reason":"Added status mismatch detection to bd doctor. When counts match but statuses differ, the check now reports detailed mismatches and suggests 'bd export' to fix.","created_by":"mayor"} {"id":"bd-syp0w","title":"Digest: mol-refinery-patrol","description":"Patrol cycle complete: MQ empty, 0 branches processed, no issues","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T23:43:02.570883-08:00","updated_at":"2026-01-10T23:43:02.570883-08:00","closed_at":"2026-01-10T23:43:02.570847-08:00","close_reason":"Squashed from 11 wisps"} -{"id":"bd-t10fs","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T01:09:18.602816-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T01:09:18.636511-08:00","closed_at":"2026-01-09T01:09:18.636511-08:00","close_reason":"auto-closed session event"} -{"id":"bd-t17wa","title":"Fix: v0.46.0 breaks Gas Town type extraction (GH#941)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #941. Type extraction removes agent/role/convoy types that Gas Town still uses.","status":"closed","priority":1,"issue_type":"bug","assignee":"beads/crew/giles","created_at":"2026-01-09T22:20:16.468385-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T22:29:18.336019-08:00","closed_at":"2026-01-09T22:29:18.336019-08:00","close_reason":"Fixed: restored Gas Town types (agent, role, rig, convoy, slot) as built-in types"} -{"id":"bd-t2720","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:44:17.146675-08:00","created_by":"beads/witness","updated_at":"2026-01-10T16:44:17.222263-08:00","closed_at":"2026-01-10T16:44:17.222263-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-t10fs","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T01:09:18.602816-08:00","updated_at":"2026-01-09T01:09:18.636511-08:00","closed_at":"2026-01-09T01:09:18.636511-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-t17wa","title":"Fix: v0.46.0 breaks Gas Town type extraction (GH#941)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #941. Type extraction removes agent/role/convoy types that Gas Town still uses.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-09T22:20:16.468385-08:00","updated_at":"2026-01-09T22:29:18.336019-08:00","closed_at":"2026-01-09T22:29:18.336019-08:00","close_reason":"Fixed: restored Gas Town types (agent, role, rig, convoy, slot) as built-in types","created_by":"beads/crew/dave"} +{"id":"bd-t2720","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:44:17.146675-08:00","updated_at":"2026-01-10T16:44:17.222263-08:00","closed_at":"2026-01-10T16:44:17.222263-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} {"id":"bd-t3b","title":"Add test coverage for internal/config package","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-20T21:21:22.91657-05:00","updated_at":"2025-12-09T18:38:37.704575272-05:00","closed_at":"2025-11-28T21:54:15.009889-08:00","dependencies":[{"issue_id":"bd-t3b","depends_on_id":"bd-ge7","type":"blocks","created_at":"2025-11-20T21:21:31.201036-05:00","created_by":"daemon"}]} {"id":"bd-t3cf","title":"Update CHANGELOG.md for 0.33.2","description":"In CHANGELOG.md:\n\n1. Change `## [Unreleased]` section header to `## [0.33.2] - 2025-12-21`\n2. Add new empty `## [Unreleased]` section above it\n3. Review and clean up the changes list\n\nFormat:\n```markdown\n## [Unreleased]\n\n## [0.33.2] - 2025-12-21\n\n### Added\n- ...\n\n### Changed\n- ...\n\n### Fixed\n- ...\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T16:10:13.7614-08:00","updated_at":"2025-12-21T17:29:31.791368-08:00","deleted_at":"2025-12-21T17:29:31.791368-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} {"id":"bd-t3en","title":"Merge: bd-d28c","description":"branch: polecat/capable\ntarget: main\nsource_issue: bd-d28c\nrig: beads","status":"closed","priority":1,"issue_type":"merge-request","created_at":"2025-12-23T20:43:16.997802-08:00","updated_at":"2025-12-23T21:21:57.694201-08:00","closed_at":"2025-12-23T21:21:57.694201-08:00"} -{"id":"bd-t3rrq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:15:14.532793-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:15:14.598608-08:00","closed_at":"2026-01-11T22:15:14.598608-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-t3rrq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:15:14.532793-08:00","updated_at":"2026-01-11T22:15:14.598608-08:00","closed_at":"2026-01-11T22:15:14.598608-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-t4sb","title":"Work on beads-d8h: Fix prefix mismatch false positive wit...","description":"Work on beads-d8h: Fix prefix mismatch false positive with multi-hyphen prefixes like 'asianops-audit-' (GH#422). When done, submit MR (not PR) to integration branch for Refinery.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-19T22:56:19.545069-08:00","updated_at":"2025-12-19T23:28:32.429127-08:00","closed_at":"2025-12-19T23:21:45.471711-08:00"} {"id":"bd-t4u1","title":"False positive detection by Kaspersky Antivirus (Trojan)","description":"Kaspersky Antivirus falsely detects beads (bd.exe v0.23.1) as a Trojan (PDM:Trojan.Win32.Generic) and removes it.\nEvent: Malicious object detected\nComponent: System Watcher\nObject name: bd.exe\n","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-20T18:56:12.498187-05:00","updated_at":"2025-12-23T23:47:23.182018-08:00","closed_at":"2025-12-23T23:47:23.182018-08:00"} -{"id":"bd-t5epk","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:46:15.758933-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-09T22:46:15.795569-08:00","closed_at":"2026-01-09T22:46:15.795569-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-t5lpi","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T20:41:33.861855-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T20:41:33.897403-08:00","closed_at":"2026-01-07T20:41:33.897403-08:00","close_reason":"auto-closed session event"} +{"id":"bd-t5epk","title":"Session ended: gt-beads-crew-grip","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:46:15.758933-08:00","updated_at":"2026-01-09T22:46:15.795569-08:00","closed_at":"2026-01-09T22:46:15.795569-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/grip"} +{"id":"bd-t5lpi","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T20:41:33.861855-08:00","updated_at":"2026-01-07T20:41:33.897403-08:00","closed_at":"2026-01-07T20:41:33.897403-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-t5m","title":"CRITICAL: git-history-backfill purges entire database when JSONL reset","description":"When a clone gets reset (git reset --hard origin/main), the git-history-backfill logic incorrectly adds ALL issues to the deletions manifest, then sync purges the entire database.\\n\\nFix adds safety guard: never delete more than 50% of issues via git-history-backfill. If threshold exceeded, abort with warning message.","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-30T21:24:47.397394-08:00","updated_at":"2025-11-30T21:24:52.710971-08:00","closed_at":"2025-11-30T21:24:52.710971-08:00"} {"id":"bd-t5o","title":"Document error handling strategy for metadata update failures","description":"Multiple places silently ignore metadata update failures (sync.go:614-617, import.go:320-322) with non-fatal warnings. This is intentional (degrades gracefully to mtime-based approach) but not well documented.\n\nAdd comments explaining:\n- Why these failures are non-fatal\n- How system degrades gracefully\n- What the fallback behavior is (mtime-based detection)","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-20T21:31:12.366861-05:00","updated_at":"2025-11-20T21:36:16.972395-05:00","closed_at":"2025-11-20T21:36:16.972395-05:00","dependencies":[{"issue_id":"bd-t5o","depends_on_id":"bd-khnb","type":"blocks","created_at":"2025-11-20T21:31:12.367744-05:00","created_by":"daemon"}]} -{"id":"bd-t6g1c","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:36:41.270202-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T11:36:41.342701-08:00","closed_at":"2026-01-13T11:36:41.342701-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-t7jq","title":"Add validation config support","description":"Future: Add .beads/config.json support for validation settings (on_create, on_sync: warn|error|none).","status":"closed","priority":4,"issue_type":"task","created_at":"2026-01-01T11:19:09.96198-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-04T15:22:08.70688-08:00","closed_at":"2026-01-01T19:33:42.078778-08:00","close_reason":"Validation config support merged","dependencies":[{"issue_id":"bd-t7jq","depends_on_id":"bd-ou35","type":"parent-child","created_at":"2026-01-01T11:19:22.7728-08:00","created_by":"beads/crew/grip"},{"issue_id":"bd-t7jq","depends_on_id":"bd-gn5r","type":"blocks","created_at":"2026-01-01T11:19:23.985574-08:00","created_by":"beads/crew/grip"}]} -{"id":"bd-t8ven","title":"gt prime: validate mutually exclusive flags","description":"The --state flag returns early, making --dry-run and --explain have no effect when combined with it. Similarly, --hook has specific behaviors that may conflict.\n\nOptions:\n1. Error on invalid combinations (--state + --explain, --state + --dry-run)\n2. Document that --state is standalone and ignores other flags \n3. Make flags compose (e.g., --state --explain shows state with explanations)\n\nCurrent behavior is silent - the extra flags are just ignored.\n\nLocation: gastown/mayor/rig/internal/cmd/prime.go:176-179","status":"closed","priority":4,"issue_type":"task","assignee":"gastown/polecats/dementus","created_at":"2026-01-10T00:46:05.489678-08:00","created_by":"mayor","updated_at":"2026-01-10T01:03:32.375432-08:00","closed_at":"2026-01-10T01:03:32.375432-08:00","close_reason":"Added --state, --dry-run, --explain flags with mutual exclusivity validation. --state errors when combined with other flags."} -{"id":"bd-ta4r","title":"Wisp operations should auto-bypass daemon","description":"During the v0.39.1 release, every wisp operation required --no-daemon flag:\n\nbd --no-daemon mol wisp create beads-release --var version=0.39.1\nbd --no-daemon close bd-eph-xxx\nbd --no-daemon mol burn bd-eph-bv2\n\nSince wisps are ephemeral (Ephemeral=true) and never exported to JSONL, they are inherently local-only. The daemon cannot help with them anyway.\n\nProposal: When operating on bd-eph-* issues or wisp subcommands, auto-detect and bypass the daemon. This would:\n- Reduce friction in wisp workflows\n- Prevent accidental daemon use that would fail anyway\n- Make the ephemeral nature more obvious","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-27T22:51:24.409066-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-28T02:10:30.123755-08:00","closed_at":"2025-12-28T02:10:30.123755-08:00"} -{"id":"bd-ta9dy","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:48:39.221633-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T18:48:39.288878-08:00","closed_at":"2026-01-11T18:48:39.288878-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-tbajb","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:33:14.031067-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T02:33:14.093851-08:00","closed_at":"2026-01-12T02:33:14.093851-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-tbun4","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T16:03:18.878289-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T16:03:18.951379-08:00","closed_at":"2026-01-13T16:03:18.951379-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-tbwt6","title":"Test defer issue 3","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-07T21:30:59.012621-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T21:15:41.73122-08:00","closed_at":"2026-01-09T21:15:41.73122-08:00","close_reason":"Test beads - cleanup"} +{"id":"bd-t6g1c","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T11:36:41.270202-08:00","updated_at":"2026-01-13T11:36:41.342701-08:00","closed_at":"2026-01-13T11:36:41.342701-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-t7jq","title":"Add validation config support","description":"Future: Add .beads/config.json support for validation settings (on_create, on_sync: warn|error|none).","status":"closed","priority":4,"issue_type":"task","created_at":"2026-01-01T11:19:09.96198-08:00","updated_at":"2026-01-04T15:22:08.70688-08:00","closed_at":"2026-01-01T19:33:42.078778-08:00","close_reason":"Validation config support merged","created_by":"beads/crew/grip","dependencies":[{"issue_id":"bd-t7jq","depends_on_id":"bd-ou35","type":"parent-child","created_at":"2026-01-01T11:19:22.7728-08:00","created_by":"beads/crew/grip"},{"issue_id":"bd-t7jq","depends_on_id":"bd-gn5r","type":"blocks","created_at":"2026-01-01T11:19:23.985574-08:00","created_by":"beads/crew/grip"}]} +{"id":"bd-t8ven","title":"gt prime: validate mutually exclusive flags","description":"The --state flag returns early, making --dry-run and --explain have no effect when combined with it. Similarly, --hook has specific behaviors that may conflict.\n\nOptions:\n1. Error on invalid combinations (--state + --explain, --state + --dry-run)\n2. Document that --state is standalone and ignores other flags \n3. Make flags compose (e.g., --state --explain shows state with explanations)\n\nCurrent behavior is silent - the extra flags are just ignored.\n\nLocation: gastown/mayor/rig/internal/cmd/prime.go:176-179","status":"closed","priority":4,"issue_type":"task","created_at":"2026-01-10T00:46:05.489678-08:00","updated_at":"2026-01-10T01:03:32.375432-08:00","closed_at":"2026-01-10T01:03:32.375432-08:00","close_reason":"Added --state, --dry-run, --explain flags with mutual exclusivity validation. --state errors when combined with other flags.","created_by":"mayor"} +{"id":"bd-ta4r","title":"Wisp operations should auto-bypass daemon","description":"During the v0.39.1 release, every wisp operation required --no-daemon flag:\n\nbd --no-daemon mol wisp create beads-release --var version=0.39.1\nbd --no-daemon close bd-eph-xxx\nbd --no-daemon mol burn bd-eph-bv2\n\nSince wisps are ephemeral (Ephemeral=true) and never exported to JSONL, they are inherently local-only. The daemon cannot help with them anyway.\n\nProposal: When operating on bd-eph-* issues or wisp subcommands, auto-detect and bypass the daemon. This would:\n- Reduce friction in wisp workflows\n- Prevent accidental daemon use that would fail anyway\n- Make the ephemeral nature more obvious","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-27T22:51:24.409066-08:00","updated_at":"2025-12-28T02:10:30.123755-08:00","closed_at":"2025-12-28T02:10:30.123755-08:00","created_by":"beads/crew/emma"} +{"id":"bd-ta9dy","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T18:48:39.221633-08:00","updated_at":"2026-01-11T18:48:39.288878-08:00","closed_at":"2026-01-11T18:48:39.288878-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-tbajb","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T02:33:14.031067-08:00","updated_at":"2026-01-12T02:33:14.093851-08:00","closed_at":"2026-01-12T02:33:14.093851-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-tbun4","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T16:03:18.878289-08:00","updated_at":"2026-01-13T16:03:18.951379-08:00","closed_at":"2026-01-13T16:03:18.951379-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-tbwt6","title":"Test defer issue 3","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-07T21:30:59.012621-08:00","updated_at":"2026-01-09T21:15:41.73122-08:00","closed_at":"2026-01-09T21:15:41.73122-08:00","close_reason":"Test beads - cleanup","created_by":"beads/crew/emma"} {"id":"bd-tbz3","title":"bd init UX Improvements","description":"bd init leaves users with incomplete setup, requiring manual bd doctor --fix. Issues found: (1) git hooks not installed if user declines prompt, (2) no auto-migration when CLI is upgraded, (3) stale merge driver configs from old versions. Fix by making bd init more robust with better defaults and auto-migration.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-21T23:16:00.333543-08:00","updated_at":"2025-12-23T04:20:51.88847-08:00","closed_at":"2025-12-23T04:20:51.88847-08:00"} -{"id":"bd-tcvh","title":"Test prefix beads","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-27T14:24:41.707092-08:00","created_by":"stevey","updated_at":"2025-12-27T14:24:50.421598-08:00","deleted_at":"2025-12-27T14:24:50.421598-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} -{"id":"bd-td72y","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:40:31.1931-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T01:40:31.256858-08:00","closed_at":"2026-01-12T01:40:31.256858-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-tf108","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T16:42:51.959951-08:00","created_by":"beads/witness","updated_at":"2026-01-12T16:42:52.030675-08:00","closed_at":"2026-01-12T16:42:52.030675-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-tfczz","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T19:48:31.557461-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T19:48:31.624887-08:00","closed_at":"2026-01-11T19:48:31.624887-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-tggf","title":"Code Health Review Dec 2025: Technical Debt Cleanup","description":"Epic grouping technical debt identified in the Dec 16, 2025 code health review.\n\n## Overall Health Grade: B (Solid foundation, needs cleanup)\n\n### P1 (High Priority):\n- bd-74w1: Consolidate duplicate path-finding utilities\n- [deleted:bd-b6xo]: Remove/fix ClearDirtyIssues() race condition\n- [deleted:bd-b3og]: Fix TestImportBugIntegration deadlock\n\n### P2 (Medium Priority):\n- bd-05a8: Split large files (doctor.go, sync.go)\n- bd-qioh: Standardize error handling patterns\n- bd-rgyd: Split queries.go (1586 lines)\n- bd-9g1z: Fix/remove TestFindJSONLPathDefault\n\n### P3 (Low Priority):\n- bd-ork0: Add comments to 30+ ignored errors\n- bd-4nqq: Remove dead test code in info_test.go\n- bd-dhza: Reduce global state in main.go\n\n## Key Areas:\n1. Code duplication in path utilities\n2. Large monolithic files (5 files \u003e1000 lines)\n3. Global state (25+ variables, 3 deprecated)\n4. Silent error suppression (30+ instances)\n5. Test gaps and dead test code\n6. Atomicity risks in batch operations","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-16T18:18:58.115507-08:00","updated_at":"2025-12-30T18:12:30.962234-08:00","closed_at":"2025-12-30T16:59:51.322347-08:00","close_reason":"All technical debt cleanup tasks completed: path utilities consolidated, large files split, error handling standardized, dead test code removed, global state reduced, ignored errors documented","dependencies":[{"issue_id":"bd-tggf","depends_on_id":"bd-74w1","type":"blocks","created_at":"2025-12-22T21:00:21.429274-08:00","created_by":"daemon"},{"issue_id":"bd-tggf","depends_on_id":"bd-05a8","type":"blocks","created_at":"2025-12-22T21:00:21.501589-08:00","created_by":"daemon"},{"issue_id":"bd-tggf","depends_on_id":"bd-9g1z","type":"blocks","created_at":"2025-12-22T21:00:21.571116-08:00","created_by":"daemon"},{"issue_id":"bd-tggf","depends_on_id":"bd-qioh","type":"blocks","created_at":"2025-12-22T21:00:21.640589-08:00","created_by":"daemon"},{"issue_id":"bd-tggf","depends_on_id":"bd-rgyd","type":"blocks","created_at":"2025-12-22T21:00:21.710912-08:00","created_by":"daemon"},{"issue_id":"bd-tggf","depends_on_id":"bd-4nqq","type":"blocks","created_at":"2025-12-22T21:00:21.781914-08:00","created_by":"daemon"},{"issue_id":"bd-tggf","depends_on_id":"bd-dhza","type":"blocks","created_at":"2025-12-22T21:00:21.852-08:00","created_by":"daemon"},{"issue_id":"bd-tggf","depends_on_id":"bd-ork0","type":"blocks","created_at":"2025-12-22T21:00:21.930168-08:00","created_by":"daemon"}]} -{"id":"bd-tglv","title":"Merge: onyx-1767142014545","description":"branch: polecat/onyx-1767142014545\ntarget: main\nsource_issue: onyx-1767142014545\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T17:05:30.189116-08:00","created_by":"beads/polecats/onyx","updated_at":"2025-12-30T18:12:30.983654-08:00","closed_at":"2025-12-30T18:11:07.809452-08:00"} +{"id":"bd-tcvh","title":"Test prefix beads","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-27T14:24:41.707092-08:00","updated_at":"2025-12-27T14:24:50.421598-08:00","created_by":"stevey","deleted_at":"2025-12-27T14:24:50.421598-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} +{"id":"bd-td72y","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T01:40:31.1931-08:00","updated_at":"2026-01-12T01:40:31.256858-08:00","closed_at":"2026-01-12T01:40:31.256858-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-tf108","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T16:42:51.959951-08:00","updated_at":"2026-01-12T16:42:52.030675-08:00","closed_at":"2026-01-12T16:42:52.030675-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} +{"id":"bd-tfczz","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T19:48:31.557461-08:00","updated_at":"2026-01-11T19:48:31.624887-08:00","closed_at":"2026-01-11T19:48:31.624887-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-tggf","title":"Code Health Review Dec 2025: Technical Debt Cleanup","description":"Epic grouping technical debt identified in the Dec 16, 2025 code health review.\n\n## Overall Health Grade: B (Solid foundation, needs cleanup)\n\n### P1 (High Priority):\n- bd-74w1: Consolidate duplicate path-finding utilities\n- [deleted:bd-b6xo]: Remove/fix ClearDirtyIssues() race condition\n- [deleted:bd-b3og]: Fix TestImportBugIntegration deadlock\n\n### P2 (Medium Priority):\n- bd-05a8: Split large files (doctor.go, sync.go)\n- bd-qioh: Standardize error handling patterns\n- bd-rgyd: Split queries.go (1586 lines)\n- bd-9g1z: Fix/remove TestFindJSONLPathDefault\n\n### P3 (Low Priority):\n- bd-ork0: Add comments to 30+ ignored errors\n- bd-4nqq: Remove dead test code in info_test.go\n- bd-dhza: Reduce global state in main.go\n\n## Key Areas:\n1. Code duplication in path utilities\n2. Large monolithic files (5 files \u003e1000 lines)\n3. Global state (25+ variables, 3 deprecated)\n4. Silent error suppression (30+ instances)\n5. Test gaps and dead test code\n6. Atomicity risks in batch operations","status":"closed","priority":2,"issue_type":"epic","created_at":"2025-12-16T18:18:58.115507-08:00","updated_at":"2025-12-30T18:12:30.962234-08:00","closed_at":"2025-12-30T16:59:51.322347-08:00","close_reason":"All technical debt cleanup tasks completed: path utilities consolidated, large files split, error handling standardized, dead test code removed, global state reduced, ignored errors documented","dependencies":[{"issue_id":"bd-tggf","depends_on_id":"bd-74w1","type":"blocks","created_at":"2025-12-22T21:00:21.429274-08:00","created_by":"daemon"},{"issue_id":"bd-tggf","depends_on_id":"bd-05a8","type":"blocks","created_at":"2025-12-22T21:00:21.501589-08:00","created_by":"daemon"},{"issue_id":"bd-tggf","depends_on_id":"bd-9g1z","type":"blocks","created_at":"2025-12-22T21:00:21.571116-08:00","created_by":"daemon"},{"issue_id":"bd-tggf","depends_on_id":"bd-rgyd","type":"blocks","created_at":"2025-12-22T21:00:21.710912-08:00","created_by":"daemon"},{"issue_id":"bd-tggf","depends_on_id":"bd-dhza","type":"blocks","created_at":"2025-12-22T21:00:21.852-08:00","created_by":"daemon"},{"issue_id":"bd-tggf","depends_on_id":"bd-ork0","type":"blocks","created_at":"2025-12-22T21:00:21.930168-08:00","created_by":"daemon"},{"issue_id":"bd-tggf","depends_on_id":"bd-qioh","type":"blocks","created_at":"2025-12-22T21:00:21.640589-08:00","created_by":"daemon"},{"issue_id":"bd-tggf","depends_on_id":"bd-4nqq","type":"blocks","created_at":"2025-12-22T21:00:21.781914-08:00","created_by":"daemon"}]} +{"id":"bd-tglv","title":"Merge: onyx-1767142014545","description":"branch: polecat/onyx-1767142014545\ntarget: main\nsource_issue: onyx-1767142014545\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T17:05:30.189116-08:00","updated_at":"2025-12-30T18:12:30.983654-08:00","closed_at":"2025-12-30T18:11:07.809452-08:00","created_by":"beads/polecats/onyx"} {"id":"bd-thgk","title":"Improve test coverage for internal/compact (18.2% → 70%)","description":"Improve test coverage for internal/compact package from 17% to 70%.\n\n## Current State\n- Coverage: 17.3%\n- Files: compactor.go, git.go, haiku.go\n- Tests: compactor_test.go (minimal tests)\n\n## Functions Needing Tests\n\n### compactor.go (core compaction)\n- [ ] New - needs config validation tests\n- [ ] CompactTier1 - needs single issue compaction tests\n- [ ] CompactTier1Batch - needs batch processing tests\n- [ ] compactSingleWithResult - internal, test via public API\n\n### git.go\n- [ ] GetCurrentCommitHash - needs git repo fixture tests\n\n### haiku.go (AI summarization) - MOCK REQUIRED\n- [ ] NewHaikuClient - needs API key validation tests\n- [ ] SummarizeTier1 - needs mock API response tests\n- [ ] callWithRetry - needs retry logic tests\n- [ ] isRetryable - needs error classification tests\n- [ ] renderTier1Prompt - needs template rendering tests\n\n## Implementation Guide\n\n1. **Mock the Anthropic API:**\n ```go\n // Create mock HTTP server\n server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n json.NewEncoder(w).Encode(map[string]interface{}{\n \"content\": []map[string]string{{\"text\": \"Summarized content\"}},\n })\n }))\n defer server.Close()\n \n // Point client at mock\n client.baseURL = server.URL\n ```\n\n2. **Test scenarios:**\n - Successful compaction with AI summary\n - API failure with retry\n - Rate limit handling\n - Empty issue handling\n - Large issue truncation\n\n3. **Use test database:**\n ```go\n store, cleanup := testutil.NewTestStore(t)\n defer cleanup()\n ```\n\n## Success Criteria\n- Coverage ≥ 70%\n- AI calls properly mocked (no real API calls in tests)\n- Retry logic verified\n- Error paths covered\n\n## Run Tests\n```bash\ngo test -v -cover ./internal/compact\ngo test -race ./internal/compact\n```","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-13T20:42:58.455767-08:00","updated_at":"2025-12-23T13:41:10.80832-08:00","closed_at":"2025-12-23T13:41:10.80832-08:00","dependencies":[{"issue_id":"bd-thgk","depends_on_id":"bd-iz5t","type":"parent-child","created_at":"2025-12-23T12:44:07.287377-08:00","created_by":"daemon"}]} -{"id":"bd-ti1m","title":"Test hooked styling","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T22:33:47.135871-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-28T22:34:26.00871-08:00","closed_at":"2025-12-28T22:34:26.00871-08:00"} -{"id":"bd-tiock","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:07:54.26982-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:07:54.305127-08:00","closed_at":"2026-01-08T14:07:54.305127-08:00","close_reason":"auto-closed session event"} +{"id":"bd-ti1m","title":"Test hooked styling","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T22:33:47.135871-08:00","updated_at":"2025-12-28T22:34:26.00871-08:00","closed_at":"2025-12-28T22:34:26.00871-08:00","created_by":"beads/crew/emma"} +{"id":"bd-tiock","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:07:54.26982-08:00","updated_at":"2026-01-08T14:07:54.305127-08:00","closed_at":"2026-01-08T14:07:54.305127-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-tj00","title":"Update local installation","description":"go build -o ~/.local/bin/bd ./cmd/bd \u0026\u0026 codesign -s - ~/.local/bin/bd","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-20T21:53:20.616907-08:00","updated_at":"2025-12-20T21:55:42.756171-08:00","closed_at":"2025-12-20T21:55:42.756171-08:00","dependencies":[{"issue_id":"bd-tj00","depends_on_id":"bd-an4s","type":"parent-child","created_at":"2025-12-20T21:53:20.619834-08:00","created_by":"daemon"},{"issue_id":"bd-tj00","depends_on_id":"bd-9l0h","type":"blocks","created_at":"2025-12-20T21:53:29.817989-08:00","created_by":"daemon"}]} -{"id":"bd-tksk","title":"Support session_id field on issue close/update mutations","description":"## Context\n\nPer Gas Town decision 009-session-events-architecture.md, work attribution for\nentity CV building requires capturing which Claude Code session performed work.\n\n## Implementation\n\nAdd session_id support to issue mutations:\n\n### Schema\nAdd optional field to issue close:\n- closed_by_session: string (Claude Code session UUID)\n\n### CLI\n```bash\nbd close gt-abc --session \"abc123-session-id\"\n# Or via env var:\nCLAUDE_SESSION_ID=abc123 bd close gt-abc\n```\n\n### Storage\nStore in issues.jsonl:\n```json\n{\"id\": \"gt-abc\", \"status\": \"closed\", \"closed_by_session\": \"abc123\", ...}\n```\n\n## Acceptance Criteria\n\n- [ ] bd close accepts --session flag or reads CLAUDE_SESSION_ID env\n- [ ] session_id stored in issue close record\n- [ ] bd show displays closed_by_session if present\n- [ ] Works for bd update --status=closed as well\n\n## Future\n\n- Query by session: bd list --closed-by-session=X\n- Entity chain: aggregate session activity for CV\n\n## Related\n\n- Gas Town docs/hop/decisions/009-session-events-architecture.md\n- gt-nvz8b: gt done captures session_id","status":"closed","priority":2,"issue_type":"feature","assignee":"beads/crew/dave","created_at":"2025-12-31T12:49:58.379182-08:00","created_by":"gastown/crew/joe","updated_at":"2025-12-31T13:13:17.590098-08:00","closed_at":"2025-12-31T13:13:17.590098-08:00","close_reason":"Implemented session_id tracking for issue close/update mutations"} -{"id":"bd-tktq1","title":"Fix bd doctor false positive for sync_base.jsonl (GH#1021)","description":"dispatched_by: beads/crew/dave\n\nbd doctor warns about 'multiple JSONL files' when sync_base.jsonl exists, but this is an internal sync file that should be excluded from the check.","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/emma","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:42:17.950283-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-11T20:44:37.046126-08:00","closed_at":"2026-01-11T20:44:37.046126-08:00","close_reason":"Closed","external_ref":"gh-1021"} +{"id":"bd-tksk","title":"Support session_id field on issue close/update mutations","description":"## Context\n\nPer Gas Town decision 009-session-events-architecture.md, work attribution for\nentity CV building requires capturing which Claude Code session performed work.\n\n## Implementation\n\nAdd session_id support to issue mutations:\n\n### Schema\nAdd optional field to issue close:\n- closed_by_session: string (Claude Code session UUID)\n\n### CLI\n```bash\nbd close gt-abc --session \"abc123-session-id\"\n# Or via env var:\nCLAUDE_SESSION_ID=abc123 bd close gt-abc\n```\n\n### Storage\nStore in issues.jsonl:\n```json\n{\"id\": \"gt-abc\", \"status\": \"closed\", \"closed_by_session\": \"abc123\", ...}\n```\n\n## Acceptance Criteria\n\n- [ ] bd close accepts --session flag or reads CLAUDE_SESSION_ID env\n- [ ] session_id stored in issue close record\n- [ ] bd show displays closed_by_session if present\n- [ ] Works for bd update --status=closed as well\n\n## Future\n\n- Query by session: bd list --closed-by-session=X\n- Entity chain: aggregate session activity for CV\n\n## Related\n\n- Gas Town docs/hop/decisions/009-session-events-architecture.md\n- gt-nvz8b: gt done captures session_id","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-31T12:49:58.379182-08:00","updated_at":"2025-12-31T13:13:17.590098-08:00","closed_at":"2025-12-31T13:13:17.590098-08:00","close_reason":"Implemented session_id tracking for issue close/update mutations","created_by":"gastown/crew/joe"} +{"id":"bd-tktq1","title":"Fix bd doctor false positive for sync_base.jsonl (GH#1021)","description":"dispatched_by: beads/crew/dave\n\nbd doctor warns about 'multiple JSONL files' when sync_base.jsonl exists, but this is an internal sync file that should be excluded from the check.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-11T20:42:17.950283-08:00","updated_at":"2026-01-11T20:44:37.046126-08:00","closed_at":"2026-01-11T20:44:37.046126-08:00","close_reason":"Closed","created_by":"beads/crew/dave"} {"id":"bd-tm2p","title":"Polecats get stuck on interactive shell prompts (cp/mv/rm -i)","description":"During swarm operations, polecats frequently get stuck waiting for interactive prompts from shell commands like:\n- cp prompting 'overwrite file? (y/n)'\n- mv prompting 'overwrite file? (y/n)' \n- rm prompting 'remove file?'\n\nThis happens because macOS aliases or shell configs may have -i flags set by default.\n\nRoot cause: Claude Code runs commands that trigger interactive confirmation prompts, but cannot respond to them, causing the agent to hang indefinitely.\n\nObserved in: Multiple polecats during GH issues swarm (Dec 2024)\n- Derrick, Roustabout, Prospector, Warboy all got stuck on y/n prompts\n\nSuggested fixes:\n1. AGENTS.md should instruct agents to always use -f flag with cp/mv/rm\n2. Polecat startup could set shell aliases to use non-interactive versions\n3. bd prime hook could include guidance about non-interactive commands\n4. Consider detecting stuck prompts and auto-recovering","status":"tombstone","priority":1,"issue_type":"bug","created_at":"2025-12-14T16:51:24.572271-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-tmdx","title":"Investigate database pollution - unexpected issue count increases","description":"Two repositories showing unexpected issue counts:\n- ~/src/beads: 280 issues (expected ~209-220)\n- ~/src/dave/beads: 895 issues (675 open, 149 closed)\n\nThis suggests database pollution - issues from one repository leaking into another. Need to investigate:\n1. Run bd detect-pollution on both repos\n2. Check for cross-repo contamination\n3. Identify source of pollution (daemon? multi-repo config? import issues?)\n4. Clean up polluted databases\n5. Prevent future pollution","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-06T22:50:16.957689-08:00","updated_at":"2025-11-07T00:05:38.994405-08:00","closed_at":"2025-11-07T00:05:38.994405-08:00"} -{"id":"bd-tna8v","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T17:57:00.22806-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T17:57:00.276996-08:00","closed_at":"2026-01-13T17:57:00.276996-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-tne","title":"Add Claude setup tip with dynamic priority","description":"Add a predefined tip that suggests running `bd setup claude` when Claude Code is detected but not configured. This tip should have higher priority (shown more frequently) until the setup is complete.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-11T23:29:29.871324-08:00","updated_at":"2025-12-09T18:38:37.705574372-05:00","closed_at":"2025-11-25T17:52:35.044989-08:00","dependencies":[{"issue_id":"bd-tne","depends_on_id":"bd-d4i","type":"blocks","created_at":"2025-11-11T23:29:29.872081-08:00","created_by":"daemon"},{"issue_id":"bd-tne","depends_on_id":"bd-br8","type":"blocks","created_at":"2025-11-11T23:29:29.87252-08:00","created_by":"daemon"}]} +{"id":"bd-tna8v","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T17:57:00.22806-08:00","updated_at":"2026-01-13T17:57:00.276996-08:00","closed_at":"2026-01-13T17:57:00.276996-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-tne","title":"Add Claude setup tip with dynamic priority","description":"Add a predefined tip that suggests running `bd setup claude` when Claude Code is detected but not configured. This tip should have higher priority (shown more frequently) until the setup is complete.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-11T23:29:29.871324-08:00","updated_at":"2025-12-09T18:38:37.705574372-05:00","closed_at":"2025-11-25T17:52:35.044989-08:00","dependencies":[{"issue_id":"bd-tne","depends_on_id":"bd-br8","type":"blocks","created_at":"2025-11-11T23:29:29.87252-08:00","created_by":"daemon"},{"issue_id":"bd-tne","depends_on_id":"bd-d4i","type":"blocks","created_at":"2025-11-11T23:29:29.872081-08:00","created_by":"daemon"}]} {"id":"bd-tnsq","title":"bd cleanup fails with CHECK constraint on status/closed_at mismatch","description":"## Problem\n\nRunning bd cleanup --force fails with:\n\nError: failed to create tombstone for bd-okh: sqlite3: constraint failed: CHECK constraint failed: (status = 'closed') = (closed_at IS NOT NULL)\n\n## Root Cause\n\nThe database has a CHECK constraint ensuring closed issues have closed_at set and non-closed issues do not. When bd cleanup tries to convert a closed issue to a tombstone, this constraint fails.\n\n## Impact\n\n- bd cleanup --force cannot complete\n- 722 closed issues cannot be cleaned up\n- Blocks routine maintenance\n\n## Investigation Needed\n\n1. Check the bd-okh record in the database\n2. Determine if this is data corruption or a bug in tombstone creation\n\n## Proposed Solutions\n\n1. If data corruption: Add a bd doctor --fix check that repairs status/closed_at mismatches\n2. If code bug: Fix the tombstone creation to properly handle the constraint\n\n## Files to Investigate\n\n- internal/storage/sqlite/sqlite.go - DeleteIssue / tombstone creation\n- Schema CHECK constraint definition\n\n## Acceptance Criteria\n\n- Identify root cause (data vs code bug)\n- bd cleanup --force completes successfully\n- bd doctor detects status/closed_at mismatches","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-14T00:27:46.359724-08:00","updated_at":"2025-12-14T00:41:54.584366-08:00","closed_at":"2025-12-14T00:34:59.658781-08:00"} {"id":"bd-tnxc1","title":"Digest: mol-refinery-patrol","description":"Patrol: empty queue, 0 branches merged","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T05:39:35.549441-08:00","updated_at":"2026-01-11T05:39:35.549441-08:00","closed_at":"2026-01-11T05:39:35.549392-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-to1u","title":"Run bump-version.sh test-squash","description":"Run ./scripts/bump-version.sh test-squash to update version in all files","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T13:52:33.06696-08:00","updated_at":"2025-12-21T13:53:41.841677-08:00","deleted_at":"2025-12-21T13:53:41.841677-08:00","deleted_by":"stevey","delete_reason":"manual delete","original_type":"task"} {"id":"bd-toy3","title":"Test hook","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-16T18:33:39.717036-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-tq3gx","title":"Review PR #16459: Fix broken doc link","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #16459 (anthropics/claude-code)\n\nPR: https://github.com/anthropics/claude-code/pull/16459\nAuthor: nelsonauner\nStatus: APPROVED by sarahdeaton\n\nTask: Verify the doc link fix is correct and merge if appropriate.\n- gh pr view 16459 --repo anthropics/claude-code\n- gh pr diff 16459 --repo anthropics/claude-code\n- If good: gh pr merge 16459 --repo anthropics/claude-code --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/dave","created_at":"2026-01-08T14:20:03.669242-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:29:35.595569-08:00","closed_at":"2026-01-08T14:29:35.595569-08:00","close_reason":"Wrong repo - these were for anthropics/claude-code, not steveyegge/beads"} +{"id":"bd-tq3gx","title":"Review PR #16459: Fix broken doc link","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #16459 (anthropics/claude-code)\n\nPR: https://github.com/anthropics/claude-code/pull/16459\nAuthor: nelsonauner\nStatus: APPROVED by sarahdeaton\n\nTask: Verify the doc link fix is correct and merge if appropriate.\n- gh pr view 16459 --repo anthropics/claude-code\n- gh pr diff 16459 --repo anthropics/claude-code\n- If good: gh pr merge 16459 --repo anthropics/claude-code --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-08T14:20:03.669242-08:00","updated_at":"2026-01-08T14:29:35.595569-08:00","closed_at":"2026-01-08T14:29:35.595569-08:00","close_reason":"Wrong repo - these were for anthropics/claude-code, not steveyegge/beads","created_by":"beads/crew/emma"} {"id":"bd-tqo","title":"deletions.jsonl gets corrupted with full issue objects instead of deletion records","description":"## Bug Description\n\nThe deletions.jsonl file was found to contain full issue objects (like issues.jsonl) instead of deletion records.\n\n### Expected Format (DeletionRecord)\n```json\n{\"id\":\"bd-xxx\",\"timestamp\":\"2025-...\",\"actor\":\"user\",\"reason\":\"deleted\"}\n```\n\n### Actual Content Found\n```json\n{\"id\":\"bd-03r\",\"title\":\"Document deletions manifest...\",\"description\":\"...\",\"status\":\"closed\",...}\n```\n\n## Impact\n- bd sync sanitization step reads deletions.jsonl and removes any matching IDs from issues.jsonl\n- With 60 full issue objects in deletions.jsonl, ALL 60 issues were incorrectly removed during sync\n- This caused complete data loss of the issue database\n\n## Root Cause (suspected)\nSomething wrote issues.jsonl content to deletions.jsonl. Possible causes:\n- Export writing to wrong file\n- File path confusion during sync\n- Race condition between export and deletion tracking\n\n## Related Issues\n- bd-0b2: --no-git-history flag (just fixed)\n- bd-4pv: export outputs only 1 issue after corruption \n- bd-4t7: auto-import runs during --no-auto-import\n\n## Reproduction\nUnknown - discovered during bd sync session on 2025-11-26\n\n## Fix\nNeed to investigate what code path could write issue objects to deletions.jsonl","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-26T23:17:01.938931-08:00","updated_at":"2025-11-26T23:25:21.445143-08:00","closed_at":"2025-11-26T23:25:02.209911-08:00"} {"id":"bd-trgb","title":"bd sync deleted non-.beads files (skills/beads/*)","description":"On 2025-12-23, commit 7b671662 (bd sync) inadvertently deleted 5 files from skills/beads/ that were added by PR #722 (commit e432fcc8). These files are outside .beads/ and should never be touched by bd sync.\n\nFiles deleted:\n- skills/beads/README.md\n- skills/beads/references/INTEGRATION_PATTERNS.md\n- skills/beads/references/MOLECULES.md\n- skills/beads/references/PATTERNS.md\n- skills/beads/references/TROUBLESHOOTING.md\n\nInvestigation needed:\n1. How did bd sync stage/commit files outside .beads/?\n2. Was this a one-time accident or is there a systematic bug?\n3. Add safeguards to prevent bd sync from touching non-.beads paths\n\nReported via GH#738.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-25T11:56:04.544656-08:00","updated_at":"2025-12-25T12:05:31.785355-08:00","closed_at":"2025-12-25T12:05:31.785355-08:00"} {"id":"bd-tru","title":"Update documentation for bd prime and Claude integration","description":"Update AGENTS.md, README.md, and QUICKSTART.md to document the new `bd prime` command, `bd setup claude` command, and tip system.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-11T23:30:22.77349-08:00","updated_at":"2025-12-09T18:38:37.706700072-05:00","closed_at":"2025-11-25T17:47:30.807069-08:00","dependencies":[{"issue_id":"bd-tru","depends_on_id":"bd-rpn","type":"blocks","created_at":"2025-11-11T23:30:22.774216-08:00","created_by":"daemon"},{"issue_id":"bd-tru","depends_on_id":"bd-br8","type":"blocks","created_at":"2025-11-11T23:30:22.774622-08:00","created_by":"daemon"},{"issue_id":"bd-tru","depends_on_id":"bd-90v","type":"parent-child","created_at":"2025-11-11T23:31:35.277819-08:00","created_by":"daemon"}]} {"id":"bd-ts0c","title":"Merge PR #300: gitignore upgrade feature","description":"PR #300 is ready to merge but has rebase conflicts with main.\n\n**Context:**\n- PR implements 3 mechanisms for .beads/.gitignore upgrade (bd doctor --fix, daemon auto-upgrade, bd init idempotent)\n- Conflicts resolved locally but diverged branches make push difficult\n- All fixes applied: removed merge artifact, applied new gitignore template\n- Clean scope: only 6 files changed (+194/-42)\n\n**Next steps:**\n1. Option A: Merge via GitHub UI (resolve conflicts in web interface)\n2. Option B: Fresh rebase on main and force push\n3. Verify CI passes\n4. Squash and merge\n\nPR URL: https://github.com/steveyegge/beads/pull/300\nFixes: #274","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-12T11:56:22.778982-08:00","updated_at":"2025-11-12T12:46:36.550488-08:00","closed_at":"2025-11-12T12:46:36.550488-08:00"} {"id":"bd-tt0","title":"Sync validation false positive: legitimate deletions trigger 'data loss detected'","description":"## Problem\n`bd sync` fails with false positive data loss detection when legitimate deletions occur:\n```\nPost-import validation failed: import reduced issue count: 26 → 25 (data loss detected!)\n```\n\n## Root Cause\nThe validation in `sync.go:329-340` counts DB issues BEFORE import, but `purgeDeletedIssues()` in `importer.go:159` legitimately removes issues DURING import. The validation doesn't account for expected deletions.\n\n**The Flow:**\n```\nsync.go:293 → beforeCount = countDBIssues() = 26\nsync.go:310-319 → sanitizeJSONL removes deleted issues from JSONL (RemovedCount=N)\nsync.go:323 → importFromJSONL() runs subprocess\n └→ importer.go:159 purgeDeletedIssues() removes issues from DB\nsync.go:331 → afterCount = countDBIssues() = 25\nsync.go:335 → validatePostImport(26, 25) → ERROR\n```\n\n## Fix\nPass `sanitizeResult.RemovedCount` to validation and account for expected deletions:\n\n```go\n// sync.go around line 335\nexpectedDecrease := 0\nif sanitizeResult != nil {\n expectedDecrease = sanitizeResult.RemovedCount\n}\nif err := validatePostImportWithDeletions(beforeCount, afterCount, expectedDecrease); err != nil {\n // ...\n}\n```\n\n```go\n// integrity.go - new or modified function\nfunc validatePostImportWithDeletions(before, after, expectedDeletions int) error {\n if after \u003c before - expectedDeletions {\n return fmt.Errorf(\"unexpected data loss: %d → %d (expected max decrease: %d)\", \n before, after, expectedDeletions)\n }\n // ...\n}\n```\n\n## Files\n- cmd/bd/sync.go:329-340\n- cmd/bd/integrity.go:289-301","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-28T17:06:15.515768-08:00","updated_at":"2025-11-28T19:50:01.116426-08:00","closed_at":"2025-11-28T18:46:19.722924-08:00"} -{"id":"bd-tt56n","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:41:03.521347-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T00:41:03.599005-08:00","closed_at":"2026-01-12T00:41:03.599005-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-tt56n","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:41:03.521347-08:00","updated_at":"2026-01-12T00:41:03.599005-08:00","closed_at":"2026-01-12T00:41:03.599005-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-tt9d5","title":"Digest: mol-refinery-patrol","description":"Patrol cycle: queue empty, 0 branches merged. Main synced with origin (3 commits ahead). No issues.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:58:50.912776-08:00","updated_at":"2026-01-12T01:58:50.912776-08:00","closed_at":"2026-01-12T01:58:50.91272-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-ttbf","title":"bd mol reset: Reset molecule to initial state for looping","description":"Implement bd mol reset for patrol loop behavior.\n\n## Command\n\n```bash\nbd mol reset \u003cmol-id\u003e\n```\n\n## Behavior\n\n1. Load molecule state from .beads/molecules/\u003cmol-id\u003e.state.yaml\n2. Reset all step states to pending\n3. Clear current_step (or set to first step)\n4. Preserve: bonded_at, bonded_by, variables\n5. Update: reset_count++, last_reset_at\n\n## Use Case: Deacon Patrol Loop\n\n```\ninbox-check → spawn-work → self-inspect → mol-reset → (loop)\n```\n\nThe Deacon runs its patrol, then resets the molecule to start fresh.\nNo gt handoff needed unless context is high.\n\n## State After Reset\n\n```yaml\nid: mol-deacon-patrol\nstatus: running\ncurrent_step: inbox-check # Back to first\nreset_count: 5\nlast_reset_at: 2025-12-24T...\nsteps:\n inbox-check: pending # All reset\n spawn-work: pending\n self-inspect: pending\n```\n\n## Files\n\n- cmd/bd/mol_reset.go\n- internal/mol/state.go (add Reset method)","status":"closed","priority":0,"issue_type":"task","created_at":"2025-12-24T15:53:20.154106-08:00","updated_at":"2025-12-24T16:53:14.837362-08:00","closed_at":"2025-12-24T16:53:14.837362-08:00","dependencies":[{"issue_id":"bd-ttbf","depends_on_id":"bd-hulf","type":"blocks","created_at":"2025-12-24T15:53:49.159903-08:00","created_by":"daemon"}]} -{"id":"bd-ttmvj","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:29:17.193771-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T19:29:17.241523-08:00","closed_at":"2026-01-12T19:29:17.241523-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ttmvj","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:29:17.193771-08:00","updated_at":"2026-01-12T19:29:17.241523-08:00","closed_at":"2026-01-12T19:29:17.241523-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-tuqd","title":"bd init overwrites existing git hooks without detection or chaining","description":"GH #254: bd init silently overwrites existing git hooks (like pre-commit framework) without detecting them, backing them up, or offering to chain. This breaks workflows and can result in committed code with failing tests.\n\nFix: Detect existing hooks, prompt user with options to chain/overwrite/skip.","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-07T15:51:17.582882-08:00","updated_at":"2025-11-07T15:55:01.330531-08:00","closed_at":"2025-11-07T15:55:01.330531-08:00"} -{"id":"bd-tux28","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:46:32.912572-08:00","created_by":"beads/witness","updated_at":"2026-01-12T19:46:32.96319-08:00","closed_at":"2026-01-12T19:46:32.96319-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-tux28","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:46:32.912572-08:00","updated_at":"2026-01-12T19:46:32.96319-08:00","closed_at":"2026-01-12T19:46:32.96319-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} {"id":"bd-tvu3","title":"Improve test coverage for internal/beads (48.1% → 70%)","description":"Improve test coverage for internal/beads package from 48% to 70%.\n\n## Current State\n- Coverage: 48.4%\n- Files: beads.go, fingerprint.go\n- Tests: beads_test.go (moderate coverage)\n\n## Functions Needing Tests\n\n### beads.go (database discovery)\n- [ ] followRedirect - needs redirect file tests\n- [ ] findDatabaseInBeadsDir - needs various dir structures\n- [x] NewSQLiteStorage - likely covered\n- [ ] FindDatabasePath - needs BEADS_DB env var tests\n- [ ] hasBeadsProjectFiles - needs file existence tests\n- [ ] FindBeadsDir - needs directory traversal tests\n- [ ] FindJSONLPath - needs path derivation tests\n- [ ] findGitRoot - needs git repo tests\n- [ ] findDatabaseInTree - needs nested directory tests\n- [ ] FindAllDatabases - needs multi-database tests\n- [ ] FindWispDir - needs wisp directory tests\n- [ ] FindWispDatabasePath - needs wisp path tests\n- [ ] NewWispStorage - needs wisp storage tests\n- [ ] EnsureWispGitignore - needs gitignore creation tests\n- [ ] IsWispDatabase - needs path classification tests\n\n### fingerprint.go (repo identification)\n- [ ] ComputeRepoID - needs various remote URL tests\n- [ ] canonicalizeGitURL - needs URL normalization tests\n- [ ] GetCloneID - needs clone identification tests\n\n## Implementation Guide\n\n1. **Use temp directories:**\n ```go\n func TestFindBeadsDir(t *testing.T) {\n tmpDir := t.TempDir()\n beadsDir := filepath.Join(tmpDir, \".beads\")\n os.MkdirAll(beadsDir, 0755)\n \n // Create test files\n os.WriteFile(filepath.Join(beadsDir, \"beads.db\"), []byte{}, 0644)\n \n // Change to tmpDir and test\n oldWd, _ := os.Getwd()\n os.Chdir(tmpDir)\n defer os.Chdir(oldWd)\n \n result := FindBeadsDir()\n assert.Equal(t, beadsDir, result)\n }\n ```\n\n2. **Test scenarios:**\n - BEADS_DB environment variable set\n - .beads/ in current directory\n - .beads/ in parent directory\n - Redirect file pointing elsewhere\n - No beads directory found\n - Wisp directory alongside main beads\n\n3. **Git remote URL tests:**\n ```go\n tests := []struct{\n input string\n expected string\n }{\n {\"git@github.com:user/repo.git\", \"github.com/user/repo\"},\n {\"https://github.com/user/repo\", \"github.com/user/repo\"},\n {\"ssh://git@github.com/user/repo.git\", \"github.com/user/repo\"},\n }\n ```\n\n## Success Criteria\n- Coverage ≥ 70%\n- All FindXxx functions have tests\n- Environment variable handling tested\n- Edge cases (missing dirs, redirects) covered\n\n## Run Tests\n```bash\ngo test -v -cover ./internal/beads\ngo test -race ./internal/beads\n```","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-13T20:42:59.739142-08:00","updated_at":"2025-12-23T13:36:17.885237-08:00","closed_at":"2025-12-23T13:36:17.885237-08:00","dependencies":[{"issue_id":"bd-tvu3","depends_on_id":"bd-iz5t","type":"parent-child","created_at":"2025-12-23T12:44:07.362967-08:00","created_by":"daemon"}]} -{"id":"bd-tvus","title":"bd import reports success but writes nothing to empty database","description":"## Problem\n\nIn a fresh crew clone with no database, `bd import` and `bd sync --import-only` report:\n```\nImport complete: 0 created, 0 updated, 416 unchanged, 203 skipped\n```\n\nBut the database remains empty:\n```\nsqlite3 .beads/beads.db 'SELECT COUNT(*) FROM issues'\n0\n```\n\n## Reproduction Steps\n\n1. Fresh clone (crew/dave) with .beads/issues.jsonl containing 619 issues\n2. `bd init --skip-hooks` creates empty database\n3. `bd import -i .beads/issues.jsonl` reports 416 unchanged\n4. Database still has 0 issues\n\n## Expected\n\nImport should create 416 issues in the database.\n\n## Root Cause Hypothesis\n\nThe 'unchanged' count suggests it's comparing against something (maybe in-memory state?) rather than the actual database. The daemon running from a different clone (mayor/rig) may be confusing the import logic.\n\n## Context\n\nDiscovered during v0.39.0 release. Worked around by doing the release manually instead of using the beads-release molecule.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-27T19:56:15.42338-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-27T20:56:24.023684-08:00","closed_at":"2025-12-27T20:56:24.023684-08:00"} -{"id":"bd-twbi","title":"Relocate quickstart to bd help quickstart or docs","description":"## Task\nMove `bd quickstart` → `bd help quickstart` or convert to documentation.\n\n## Options\n\n### Option A: Move to bd help quickstart\n- Create a custom help topic\n- Cobra supports additional help topics\n\n### Option B: Convert to docs only\n- Keep content in docs/QUICKSTART.md\n- Remove the command entirely\n- Update references to point to docs\n\n## Recommendation\nOption B - quickstart is essentially documentation, not a functional command.\nThe command just prints formatted text that could live in docs.\n\n## Implementation (Option B)\n1. Ensure docs/QUICKSTART.md has equivalent content\n2. Add hidden alias that prints \"See docs/QUICKSTART.md or bd help\"\n3. Update all references:\n - README.md\n - docs/INSTALLING.md\n - docs/EXTENDING.md\n - npm-package/INTEGRATION_GUIDE.md\n - .beads/README.md\n\n## Files to modify\n- cmd/bd/quickstart.go (hide or remove)\n- Multiple docs (update references)\n","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-27T15:11:10.238898-08:00","created_by":"mayor","updated_at":"2025-12-27T16:09:23.140978-08:00","closed_at":"2025-12-27T16:09:23.140978-08:00"} +{"id":"bd-tvus","title":"bd import reports success but writes nothing to empty database","description":"## Problem\n\nIn a fresh crew clone with no database, `bd import` and `bd sync --import-only` report:\n```\nImport complete: 0 created, 0 updated, 416 unchanged, 203 skipped\n```\n\nBut the database remains empty:\n```\nsqlite3 .beads/beads.db 'SELECT COUNT(*) FROM issues'\n0\n```\n\n## Reproduction Steps\n\n1. Fresh clone (crew/dave) with .beads/issues.jsonl containing 619 issues\n2. `bd init --skip-hooks` creates empty database\n3. `bd import -i .beads/issues.jsonl` reports 416 unchanged\n4. Database still has 0 issues\n\n## Expected\n\nImport should create 416 issues in the database.\n\n## Root Cause Hypothesis\n\nThe 'unchanged' count suggests it's comparing against something (maybe in-memory state?) rather than the actual database. The daemon running from a different clone (mayor/rig) may be confusing the import logic.\n\n## Context\n\nDiscovered during v0.39.0 release. Worked around by doing the release manually instead of using the beads-release molecule.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-27T19:56:15.42338-08:00","updated_at":"2025-12-27T20:56:24.023684-08:00","closed_at":"2025-12-27T20:56:24.023684-08:00","created_by":"beads/crew/dave"} +{"id":"bd-twbi","title":"Relocate quickstart to bd help quickstart or docs","description":"## Task\nMove `bd quickstart` → `bd help quickstart` or convert to documentation.\n\n## Options\n\n### Option A: Move to bd help quickstart\n- Create a custom help topic\n- Cobra supports additional help topics\n\n### Option B: Convert to docs only\n- Keep content in docs/QUICKSTART.md\n- Remove the command entirely\n- Update references to point to docs\n\n## Recommendation\nOption B - quickstart is essentially documentation, not a functional command.\nThe command just prints formatted text that could live in docs.\n\n## Implementation (Option B)\n1. Ensure docs/QUICKSTART.md has equivalent content\n2. Add hidden alias that prints \"See docs/QUICKSTART.md or bd help\"\n3. Update all references:\n - README.md\n - docs/INSTALLING.md\n - docs/EXTENDING.md\n - npm-package/INTEGRATION_GUIDE.md\n - .beads/README.md\n\n## Files to modify\n- cmd/bd/quickstart.go (hide or remove)\n- Multiple docs (update references)\n","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-27T15:11:10.238898-08:00","updated_at":"2025-12-27T16:09:23.140978-08:00","closed_at":"2025-12-27T16:09:23.140978-08:00","created_by":"mayor"} {"id":"bd-twlr","title":"Add bd init --team wizard","description":"Interactive wizard for team workflow setup. Guides user through: branch workflow configuration, shared repo setup, team member onboarding, examples of team collaboration patterns.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-05T18:04:30.013645-08:00","updated_at":"2025-11-05T19:27:33.075826-08:00","closed_at":"2025-11-05T18:56:03.004161-08:00","dependencies":[{"issue_id":"bd-twlr","depends_on_id":"bd-8rd","type":"parent-child","created_at":"2025-11-05T18:04:39.164445-08:00","created_by":"daemon"}]} -{"id":"bd-txds","title":"Merge: obsidian-1767142004753","description":"branch: polecat/obsidian-1767142004753\ntarget: main\nsource_issue: obsidian-1767142004753\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T16:57:13.543979-08:00","created_by":"beads/polecats/obsidian","updated_at":"2025-12-30T18:12:30.976992-08:00","closed_at":"2025-12-30T18:11:07.875365-08:00"} -{"id":"bd-txrv4","title":"Fix hierarchy.max-depth config ignored (GH#995)","description":"dispatched_by: mayor\n\nConfig setting hierarchy.max-depth is ignored - hardcoded to 3. See https://github.com/steveyegge/beads/issues/995","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/fang","created_at":"2026-01-10T12:18:18.63261-08:00","created_by":"mayor","updated_at":"2026-01-10T12:23:50.338951-08:00","closed_at":"2026-01-10T12:23:50.338951-08:00","close_reason":"Fixed hierarchy.max-depth config being ignored (GH#995). Changes:\n- Added config default in internal/config/config.go\n- Updated SQLite storage to read max depth from config\n- Updated Memory storage to read max depth from config \n- Added test to verify config is respected\n- Fixed pre-existing bug in validators_test.go (parseCommaSeparated -\u003e parseCommaSeparatedList)","labels":["bug"]} +{"id":"bd-txds","title":"Merge: obsidian-1767142004753","description":"branch: polecat/obsidian-1767142004753\ntarget: main\nsource_issue: obsidian-1767142004753\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T16:57:13.543979-08:00","updated_at":"2025-12-30T18:12:30.976992-08:00","closed_at":"2025-12-30T18:11:07.875365-08:00","created_by":"beads/polecats/obsidian"} +{"id":"bd-txrv4","title":"Fix hierarchy.max-depth config ignored (GH#995)","description":"dispatched_by: mayor\n\nConfig setting hierarchy.max-depth is ignored - hardcoded to 3. See https://github.com/steveyegge/beads/issues/995","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T12:18:18.63261-08:00","updated_at":"2026-01-10T12:23:50.338951-08:00","closed_at":"2026-01-10T12:23:50.338951-08:00","close_reason":"Fixed hierarchy.max-depth config being ignored (GH#995). Changes:\n- Added config default in internal/config/config.go\n- Updated SQLite storage to read max depth from config\n- Updated Memory storage to read max depth from config \n- Added test to verify config is respected\n- Fixed pre-existing bug in validators_test.go (parseCommaSeparated -\u003e parseCommaSeparatedList)","created_by":"mayor"} {"id":"bd-tys","title":"Git history fallback has incorrect logic for detecting deletions","description":"## Problem\n\nThe `wasInGitHistory` function in `internal/importer/importer.go:891` returns true if the ID is found **anywhere** in git history. But finding an ID in history doesn't necessarily mean it was deleted - it could mean:\n\n1. The issue was added (appears in a commit adding it)\n2. The issue was modified (appears in commits updating it)\n3. The issue was deleted (appears in a commit removing it)\n\nThe current logic incorrectly treats all three cases as 'deleted'.\n\n## Correct Logic\n\n`git log -S` with `--oneline` shows commits where the string was added OR removed. To detect deletion specifically:\n\n1. ID appears in git history (was once in JSONL)\n2. ID is NOT currently in JSONL\n\nThe second condition is already checked by the caller (`purgeDeletedIssues`), so technically the logic is correct in context. But the function name and doc comment are misleading.\n\n## Fix Options\n\n1. **Rename function** to `wasEverInJSONL` and update doc comment to clarify\n2. **Add explicit check** for current JSONL state in the function itself\n\nOption 1 is simpler and correct since caller already filters.","status":"closed","priority":3,"issue_type":"bug","created_at":"2025-11-25T12:46:16.073661-08:00","updated_at":"2025-11-25T15:11:54.426093-08:00","closed_at":"2025-11-25T15:11:54.426093-08:00"} -{"id":"bd-u0fn","title":"Add validation for formula step completion","description":"Formula steps are prose instructions with no automatic validation. Consider:\n- Steps with ```bash``` blocks should capture exit codes\n- Verification steps should have machine-checkable assertions\n- Consider script gates that run validation commands\n\nRelated to bd-m8ew (gate discovery fix).","status":"open","priority":3,"issue_type":"feature","created_at":"2026-01-06T23:33:34.325057-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-06T23:33:34.325057-08:00","dependencies":[{"issue_id":"bd-u0fn","depends_on_id":"bd-m8ew","type":"related","created_at":"2026-01-06T23:33:40.041371-08:00","created_by":"beads/crew/dave"}]} +{"id":"bd-u0fn","title":"Add validation for formula step completion","description":"Formula steps are prose instructions with no automatic validation. Consider:\n- Steps with ```bash``` blocks should capture exit codes\n- Verification steps should have machine-checkable assertions\n- Consider script gates that run validation commands\n\nRelated to bd-m8ew (gate discovery fix).","status":"open","priority":3,"issue_type":"feature","created_at":"2026-01-06T23:33:34.325057-08:00","updated_at":"2026-01-06T23:33:34.325057-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-u0fn","depends_on_id":"bd-m8ew","type":"related","created_at":"2026-01-06T23:33:40.041371-08:00","created_by":"beads/crew/dave"}]} {"id":"bd-u0g9","title":"GH#405: Prefix parsing with hyphens treats first segment as prefix","description":"Prefix me-py-toolkit gets parsed as just me- when detecting mismatches. Fix prefix parsing to handle multi-hyphen prefixes. See GitHub issue #405.","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-12-16T01:03:18.354066-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-u0sb","title":"Merge: bd-uqfn","description":"branch: polecat/cheedo\ntarget: main\nsource_issue: bd-uqfn\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-20T01:11:52.033964-08:00","updated_at":"2025-12-20T23:17:26.994875-08:00","closed_at":"2025-12-20T23:17:26.994875-08:00"} -{"id":"bd-u1mcn","title":"Review and merge PR #1045: Isolate git config in tests","description":"dispatched_by: beads/crew/emma","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/wolf","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T16:35:28.753379-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T16:42:52.444464-08:00","closed_at":"2026-01-12T16:42:52.444464-08:00","close_reason":"PR #1045 reviewed and merged. Test isolation fix using GIT_CONFIG_GLOBAL env var."} +{"id":"bd-u1mcn","title":"Review and merge PR #1045: Isolate git config in tests","description":"dispatched_by: beads/crew/emma","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T16:35:28.753379-08:00","updated_at":"2026-01-12T16:42:52.444464-08:00","closed_at":"2026-01-12T16:42:52.444464-08:00","close_reason":"PR #1045 reviewed and merged. Test isolation fix using GIT_CONFIG_GLOBAL env var.","created_by":"beads/crew/emma"} {"id":"bd-u2sc","title":"GH#692: Code quality and refactoring improvements","description":"Epic for implementing refactoring suggestions from GitHub issue #692 (rsnodgrass). These are code quality improvements that don't change functionality but improve maintainability, type safety, and performance.\n\nOriginal issue: https://github.com/steveyegge/beads/issues/692\n\nHigh priority items:\n1. Replace map[string]interface{} with typed structs for JSON output\n2. Adopt slices.SortFunc instead of sort.Slice (Go 1.21+)\n3. Split large files (sync.go, init.go, show.go)\n4. Introduce slog for structured logging in daemon\n\nLower priority:\n5. Further CLI helper extraction\n6. Preallocate slices in hot paths\n7. Polish items (error wrapping, table-driven parsing)","status":"closed","priority":3,"issue_type":"epic","created_at":"2025-12-22T14:26:31.630004-08:00","updated_at":"2025-12-23T22:07:32.477628-08:00","closed_at":"2025-12-23T22:07:32.477628-08:00"} {"id":"bd-u2sc.1","title":"Replace map[string]interface{} with typed JSON response structs","description":"Many CLI commands use map[string]interface{} for JSON output which loses type safety and compile-time error detection.\n\nFiles with map[string]interface{}:\n- cmd/bd/compact.go (10+ instances)\n- cmd/bd/cleanup.go\n- cmd/bd/daemons.go\n- cmd/bd/daemon_lifecycle.go\n\nExample fix:\n```go\n// Before\nresult := map[string]interface{}{\n \"status\": \"ok\",\n \"count\": 42,\n}\n\n// After\ntype CompactResponse struct {\n Status string `json:\"status\"`\n Count int `json:\"count\"`\n}\nresult := CompactResponse{Status: \"ok\", Count: 42}\n```\n\nBenefits:\n- Compile-time type checking\n- IDE autocompletion\n- Easier refactoring\n- Self-documenting API","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-22T14:26:44.088548-08:00","updated_at":"2025-12-22T15:48:22.88824-08:00","closed_at":"2025-12-22T15:48:22.88824-08:00","dependencies":[{"issue_id":"bd-u2sc.1","depends_on_id":"bd-u2sc","type":"parent-child","created_at":"2025-12-22T14:26:44.088931-08:00","created_by":"daemon"}]} {"id":"bd-u2sc.2","title":"Migrate sort.Slice to slices.SortFunc","description":"Go 1.21+ provides slices.SortFunc which is cleaner and slightly faster than sort.Slice.\n\nFound 15+ instances of sort.Slice in:\n- cmd/bd/autoflush.go\n- cmd/bd/count.go\n- cmd/bd/daemon_sync.go\n- cmd/bd/doctor.go\n- cmd/bd/export.go\n- cmd/bd/import.go\n- cmd/bd/integrity.go\n- cmd/bd/jira.go\n- cmd/bd/list.go\n- cmd/bd/migrate_hash_ids.go\n- cmd/bd/rename_prefix.go\n- cmd/bd/show.go\n\nExample migration:\n```go\n// Before\nsort.Slice(issues, func(i, j int) bool {\n return issues[i].Priority \u003c issues[j].Priority\n})\n\n// After\nslices.SortFunc(issues, func(a, b *types.Issue) int {\n return cmp.Compare(a.Priority, b.Priority)\n})\n```\n\nBenefits:\n- Cleaner 3-way comparison\n- Slightly better performance\n- Modern idiomatic Go","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-22T14:26:55.573524-08:00","updated_at":"2025-12-22T15:10:12.639807-08:00","closed_at":"2025-12-22T15:10:12.639807-08:00","dependencies":[{"issue_id":"bd-u2sc.2","depends_on_id":"bd-u2sc","type":"parent-child","created_at":"2025-12-22T14:26:55.573978-08:00","created_by":"daemon"}]} @@ -2242,313 +2239,311 @@ {"id":"bd-u2sc.4","title":"Introduce slog for structured daemon logging","description":"Introduce slog for structured daemon logging.\n\n## Current State\nDaemon uses fmt.Fprintf for logging:\n```go\nfmt.Fprintf(os.Stderr, \"Warning: failed to detect user role: %v\\n\", err)\nfmt.Fprintf(logFile, \"[%s] %s\\n\", time.Now().Format(time.RFC3339), msg)\n```\n\nThis produces unstructured, hard-to-parse logs.\n\n## Target State\nUse Go 1.21+ slog for structured logging:\n```go\nslog.Warn(\"failed to detect user role\", \"error\", err)\nslog.Info(\"sync completed\", \"created\", 5, \"updated\", 3, \"duration_ms\", 150)\n```\n\n## Implementation\n\n### 1. Create logger setup (internal/daemon/logger.go)\n\n```go\npackage daemon\n\nimport (\n \"io\"\n \"log/slog\"\n \"os\"\n)\n\n// SetupLogger configures the daemon logger.\n// Returns a cleanup function to close the log file.\nfunc SetupLogger(logPath string, jsonFormat bool, level slog.Level) (func(), error) {\n var w io.Writer = os.Stderr\n var cleanup func()\n \n if logPath \\!= \"\" {\n f, err := os.OpenFile(logPath, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0600)\n if err \\!= nil {\n return nil, err\n }\n w = io.MultiWriter(os.Stderr, f)\n cleanup = func() { f.Close() }\n }\n \n var handler slog.Handler\n opts := \u0026slog.HandlerOptions{Level: level}\n \n if jsonFormat {\n handler = slog.NewJSONHandler(w, opts)\n } else {\n handler = slog.NewTextHandler(w, opts)\n }\n \n slog.SetDefault(slog.New(handler))\n \n return cleanup, nil\n}\n```\n\n### 2. Add log level flag\n\nIn cmd/bd/daemon.go:\n```go\ndaemonCmd.Flags().String(\"log-level\", \"info\", \"Log level (debug, info, warn, error)\")\ndaemonCmd.Flags().Bool(\"log-json\", false, \"Output logs in JSON format\")\n```\n\n### 3. Replace fmt.Fprintf with slog calls\n\n**Pattern 1: Simple messages**\n```go\n// Before\nfmt.Fprintf(os.Stderr, \"Starting daemon on %s\\n\", socketPath)\n\n// After\nslog.Info(\"starting daemon\", \"socket\", socketPath)\n```\n\n**Pattern 2: Errors**\n```go\n// Before\nfmt.Fprintf(os.Stderr, \"Error: failed to connect: %v\\n\", err)\n\n// After\nslog.Error(\"failed to connect\", \"error\", err)\n```\n\n**Pattern 3: Debug info**\n```go\n// Before\nif debug {\n fmt.Fprintf(os.Stderr, \"Received request: %s\\n\", method)\n}\n\n// After\nslog.Debug(\"received request\", \"method\", method)\n```\n\n**Pattern 4: Structured data**\n```go\n// Before\nfmt.Fprintf(logFile, \"Import: %d created, %d updated\\n\", created, updated)\n\n// After\nslog.Info(\"import completed\", \n \"created\", created,\n \"updated\", updated,\n \"unchanged\", unchanged,\n \"duration_ms\", duration.Milliseconds())\n```\n\n### 4. Files to Update\n\n| File | Changes |\n|------|---------|\n| cmd/bd/daemon.go | Add log flags, call SetupLogger |\n| internal/daemon/server.go | Replace fmt with slog |\n| internal/daemon/rpc_handler.go | Replace fmt with slog |\n| internal/daemon/sync.go | Replace fmt with slog |\n| internal/daemon/autoflush.go | Replace fmt with slog |\n| internal/daemon/logger.go | New file |\n\n### 5. Log output examples\n\n**Text format (default):**\n```\ntime=2025-12-23T12:30:00Z level=INFO msg=\"daemon started\" socket=/tmp/bd.sock pid=12345\ntime=2025-12-23T12:30:01Z level=INFO msg=\"import completed\" created=5 updated=3 duration_ms=150\ntime=2025-12-23T12:30:05Z level=WARN msg=\"sync branch diverged\" local_ahead=2 remote_ahead=1\n```\n\n**JSON format (--log-json):**\n```json\n{\"time\":\"2025-12-23T12:30:00Z\",\"level\":\"INFO\",\"msg\":\"daemon started\",\"socket\":\"/tmp/bd.sock\",\"pid\":12345}\n{\"time\":\"2025-12-23T12:30:01Z\",\"level\":\"INFO\",\"msg\":\"import completed\",\"created\":5,\"updated\":3,\"duration_ms\":150}\n```\n\n## Migration Strategy\n\n1. **Add logger.go** with SetupLogger\n2. **Update daemon startup** to initialize slog\n3. **Convert one file at a time** (start with server.go)\n4. **Test after each file**\n5. **Remove old logging code** once all converted\n\n## Testing\n\n```bash\n# Start daemon with debug logging\nbd daemon start --log-level debug\n\n# Check logs\nbd daemons logs . | head -20\n\n# Test JSON output\nbd daemon start --log-json --log-level debug\nbd daemons logs . | jq .\n```\n\n## Success Criteria\n- All daemon logging uses slog\n- --log-level controls verbosity\n- --log-json produces machine-parseable output\n- Log entries have consistent structure\n- No fmt.Fprintf to stderr in daemon code","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-22T14:27:16.47144-08:00","updated_at":"2025-12-23T13:44:23.374935-08:00","closed_at":"2025-12-23T13:44:23.374935-08:00","dependencies":[{"issue_id":"bd-u2sc.4","depends_on_id":"bd-u2sc","type":"parent-child","created_at":"2025-12-22T14:27:16.471878-08:00","created_by":"daemon"},{"issue_id":"bd-u2sc.4","depends_on_id":"bd-iz5t","type":"parent-child","created_at":"2025-12-23T12:44:08.048156-08:00","created_by":"daemon"}]} {"id":"bd-u3t","title":"Phase 2: Implement sandbox auto-detection for GH #353","description":"Implement automatic sandbox detection to improve UX for users in sandboxed environments (e.g., Codex).\n\n**Tasks:**\n1. Implement sandbox detection heuristic using syscall.Kill permission checks\n2. Auto-enable --sandbox mode when sandbox is detected\n3. Display informative message when sandbox is detected\n\n**Implementation:**\n- Add isSandboxed() function in cmd/bd/main.go\n- Auto-set sandboxMode = true in PersistentPreRun when detected\n- Show: 'ℹ️ Sandbox detected, using direct mode'\n\n**References:**\n- docs/GH353_INVESTIGATION.md (Solution 3, lines 120-160)\n- Depends on: Phase 1 (bd-???)\n\n**Acceptance Criteria:**\n- Codex users don't need to manually specify --sandbox\n- No false positives in normal environments\n- Clear messaging when auto-detection triggers","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-21T18:51:57.254358-05:00","updated_at":"2025-11-22T14:57:44.561831578-05:00","closed_at":"2025-11-21T19:28:24.467713-05:00"} {"id":"bd-u4f5","title":"bd import silently succeeds when database matches working tree but not git HEAD","description":"**Critical**: bd import reports '0 created, 0 updated' when database matches working tree JSONL, even when working tree is ahead of git HEAD. This gives false confidence that everything is synced with the source of truth.\n\n## Reproduction\n\n1. Start with database synced to working tree .beads/issues.jsonl (376 issues)\n2. Git HEAD has older version of .beads/issues.jsonl (354 issues)\n3. Run: bd import .beads/issues.jsonl\n4. Output: 'Import complete: 0 created, 0 updated'\n\n## Problem\n\nUser expects 'bd import' after 'git pull' to sync database with committed state, but:\n- Command silently succeeds because DB already matches working tree\n- No warning that working tree has uncommitted changes\n- User falsely believes everything is synced with git\n- Violates 'JSONL in git is source of truth' principle\n\n## Expected Behavior\n\nWhen .beads/issues.jsonl differs from git HEAD, bd import should:\n1. Detect uncommitted changes: git diff --quiet HEAD .beads/issues.jsonl\n2. Warn user: 'Warning: .beads/issues.jsonl has uncommitted changes (376 lines vs 354 in HEAD)'\n3. Clarify status: 'Import complete: 0 created, 0 updated (already synced with working tree)'\n4. Recommend: 'Run git diff .beads/issues.jsonl to review uncommitted work'\n\n## Impact\n\n- Users can't trust 'bd import' status messages\n- Silent data loss risk if user assumes synced and runs git checkout\n- Breaks mental model of 'JSONL in git = source of truth'\n- Critical for VC's landing-the-plane workflow","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-07T23:51:28.536822-08:00","updated_at":"2025-11-07T23:58:34.482313-08:00","closed_at":"2025-11-07T23:58:34.482313-08:00"} -{"id":"bd-u56p0","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T14:16:10.2727-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T14:16:10.352094-08:00","closed_at":"2026-01-13T14:16:10.352094-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-u56p0","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T14:16:10.2727-08:00","updated_at":"2026-01-13T14:16:10.352094-08:00","closed_at":"2026-01-13T14:16:10.352094-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-u66e","title":"Implement bd gate create/show/list/close/wait commands","description":"Implement the gate CLI commands.\n\n## Commands\n```bash\n# Create gate (returns gate ID)\nbd gate create --await \u003ctype\u003e:\u003cid\u003e --timeout \u003cduration\u003e --notify \u003caddr\u003e\n\n# Check gate status\nbd gate show \u003cid\u003e\n\n# List open gates\nbd gate list\n\n# Close gate (usually done by Deacon)\nbd gate close \u003cid\u003e --reason \"completed\"\n\n# Add waiter to existing gate\nbd gate wait \u003cid\u003e --notify \u003caddr\u003e\n```\n\n## Implementation\n- Add cmd/bd/gate.go with subcommands\n- Gate create creates wisp issue of type gate\n- Gate list filters for open gates\n- Gate wait adds to waiters[] array\n- All support --json output","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-23T11:44:34.022464-08:00","updated_at":"2025-12-23T12:06:18.550673-08:00","closed_at":"2025-12-23T12:06:18.550673-08:00","dependencies":[{"issue_id":"bd-u66e","depends_on_id":"bd-udsi","type":"parent-child","created_at":"2025-12-23T11:44:52.823353-08:00","created_by":"daemon"},{"issue_id":"bd-u66e","depends_on_id":"bd-lz49","type":"blocks","created_at":"2025-12-23T11:44:56.349662-08:00","created_by":"daemon"}]} -{"id":"bd-u6d1a","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T00:37:42.68082-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T00:37:42.721216-08:00","closed_at":"2026-01-10T00:37:42.721216-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-u6d1a","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T00:37:42.68082-08:00","updated_at":"2026-01-10T00:37:42.721216-08:00","closed_at":"2026-01-10T00:37:42.721216-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-u8g4","title":"Merge: bd-dxtc","description":"branch: polecat/cheedo\ntarget: main\nsource_issue: bd-dxtc\nrig: beads","status":"closed","priority":1,"issue_type":"merge-request","created_at":"2025-12-23T20:42:17.222567-08:00","updated_at":"2025-12-23T21:21:57.696047-08:00","closed_at":"2025-12-23T21:21:57.696047-08:00"} {"id":"bd-u8j","title":"Clarify exclusive lock protocol compatibility with multi-repo","description":"The contributor-workflow-analysis.md proposes per-repo file locking (Decision #7) using flock on JSONL files. However, VC (a downstream library consumer) uses an exclusive lock protocol (vc-195, requires Beads v0.17.3+) that allows bd daemon and VC executor to coexist.\n\nNeed to clarify:\n- Does the proposed per-repo file locking work with VC's existing exclusive lock protocol?\n- Do library consumers like VC need to adapt their locking logic?\n- Can multiple repos be locked atomically for cross-repo operations?\n\nContext: contributor-workflow-analysis.md lines 662-681","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-03T20:24:08.257493-08:00","updated_at":"2025-11-05T14:15:01.506885-08:00","closed_at":"2025-11-05T14:15:01.506885-08:00"} -{"id":"bd-u8kym","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T09:01:46.529072-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T09:01:46.596179-08:00","closed_at":"2026-01-11T09:01:46.596179-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-u8z7","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T01:33:17.984735-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T01:33:18.018079-08:00","closed_at":"2026-01-07T01:33:18.018079-08:00","close_reason":"auto-closed session event"} -{"id":"bd-u9a3n","title":"Witness Patrol","description":"Per-rig worker monitor patrol loop with progressive nudging.","status":"closed","priority":2,"issue_type":"molecule","created_at":"2026-01-07T21:42:14.261027-08:00","created_by":"gastown/crew/george","updated_at":"2026-01-09T21:15:43.007118-08:00","closed_at":"2026-01-09T21:15:43.007118-08:00","close_reason":"Orphaned patrol molecules"} -{"id":"bd-ua1jv","title":"Witness Patrol","description":"Per-rig worker monitor patrol loop with progressive nudging.","status":"open","priority":2,"issue_type":"molecule","created_at":"2026-01-07T23:28:41.036097-08:00","created_by":"deacon","updated_at":"2026-01-07T23:28:41.036097-08:00"} -{"id":"bd-uadj2","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:47:42.706519-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T15:47:42.742489-08:00","closed_at":"2026-01-10T15:47:42.742489-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-uao3f","title":"Updated title","status":"closed","priority":0,"issue_type":"feature","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:11.046615-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-12T16:41:37.732694-08:00","closed_at":"2026-01-12T16:41:37.732694-08:00","close_reason":"Stale orphaned wisp"} +{"id":"bd-u8kym","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T09:01:46.529072-08:00","updated_at":"2026-01-11T09:01:46.596179-08:00","closed_at":"2026-01-11T09:01:46.596179-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-u8z7","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T01:33:17.984735-08:00","updated_at":"2026-01-07T01:33:18.018079-08:00","closed_at":"2026-01-07T01:33:18.018079-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-u9a3n","title":"Witness Patrol","description":"Per-rig worker monitor patrol loop with progressive nudging.","status":"closed","priority":2,"issue_type":"molecule","created_at":"2026-01-07T21:42:14.261027-08:00","updated_at":"2026-01-09T21:15:43.007118-08:00","closed_at":"2026-01-09T21:15:43.007118-08:00","close_reason":"Orphaned patrol molecules","created_by":"gastown/crew/george"} +{"id":"bd-ua1jv","title":"Witness Patrol","description":"Per-rig worker monitor patrol loop with progressive nudging.","status":"open","priority":2,"issue_type":"molecule","created_at":"2026-01-07T23:28:41.036097-08:00","updated_at":"2026-01-07T23:28:41.036097-08:00","created_by":"deacon"} +{"id":"bd-uadj2","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:47:42.706519-08:00","updated_at":"2026-01-10T15:47:42.742489-08:00","closed_at":"2026-01-10T15:47:42.742489-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-uao3f","title":"Updated title","status":"closed","priority":0,"issue_type":"feature","created_at":"2026-01-11T18:16:11.046615-08:00","updated_at":"2026-01-12T16:41:37.732694-08:00","closed_at":"2026-01-12T16:41:37.732694-08:00","close_reason":"Stale orphaned wisp","created_by":"beads/crew/wolf"} {"id":"bd-ucgz","title":"Migration invariants should exclude external dependencies from orphan check","description":"## Summary\n\nThe `checkForeignKeys` function in `migration_invariants.go` flags external dependencies as orphaned because they dont exist in the local issues table.\n\n## Location\n\n`internal/storage/sqlite/migration_invariants.go` around line 150-162\n\n## Current Code (buggy)\n\n```go\n// Check for orphaned dependencies\nvar orphanCount int\nerr = db.QueryRowContext(ctx, \\`\n SELECT COUNT(*)\n FROM dependencies d\n WHERE NOT EXISTS (SELECT 1 FROM issues WHERE id = d.depends_on_id)\n\\`).Scan(\u0026orphanCount)\n```\n\n## Fix\n\nExclude external references (format: `external:\u003cproject\u003e:\u003ccapability\u003e`):\n\n```go\n// Check for orphaned dependencies (excluding external refs)\nvar orphanCount int\nerr = db.QueryRowContext(ctx, \\`\n SELECT COUNT(*)\n FROM dependencies d\n WHERE NOT EXISTS (SELECT 1 FROM issues WHERE id = d.depends_on_id)\n AND d.depends_on_id NOT LIKE 'external:%'\n\\`).Scan(\u0026orphanCount)\n```\n\n## Reproduction\n\n```bash\n# Add external dependency\nbd dep add bd-xxx external:other-project:some-capability\n\n# Try to sync - fails\nbd sync\n# Error: found 1 orphaned dependencies\n```\n\n## Files to Modify\n\n1. **internal/storage/sqlite/migration_invariants.go** - Add WHERE clause\n\n## Testing\n\n```bash\n# Create issue with external dep\nbd create \"Test external deps\" -t task\nbd dep add bd-xxx external:beads:release-workflow\n\n# Sync should succeed\nbd sync\n\n# Verify dep exists\nbd show bd-xxx --json | jq .dependencies\n```\n\n## Success Criteria\n- External dependencies dont trigger orphan check\n- `bd sync` succeeds with external deps\n- Regular orphan detection still works for internal deps","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-23T12:37:08.99387-08:00","updated_at":"2025-12-23T12:42:03.722691-08:00","closed_at":"2025-12-23T12:42:03.722691-08:00"} -{"id":"bd-ucj8","title":"Rename wisp prefix from 'eph' to 'wisp'","description":"The wisp system uses 'eph' as the ID prefix segment (e.g., gt-eph-xxx) but should use 'wisp' (e.g., gt-wisp-xxx) for consistency with terminology.\n\n**Location:** cmd/bd/wisp.go:260-261\n```go\n// Use \"eph\" prefix for distinct visual recognition\nresult, err := spawnMolecule(ctx, store, subgraph, vars, \"\", actor, true, \"eph\")\n```\n\n**Fix:** Change \"eph\" to \"wisp\"\n\n**Also update:**\n- main_errors.go:100,107 - detection patterns for ephemeral IDs\n- Any tests expecting '-eph-' pattern\n- Documentation if it references the prefix\n\n**Migration:** Existing gt-eph-* wisps in databases will continue to work (they have ephemeral=true flag). New wisps will use gt-wisp-* prefix.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-01T20:10:54.323196-08:00","created_by":"gastown/crew/gus","updated_at":"2026-01-01T23:55:44.286924-08:00","closed_at":"2026-01-01T23:55:44.286924-08:00","close_reason":"Renamed wisp prefix from 'eph' to 'wisp'. Legacy eph-* pattern still supported for backwards compatibility."} -{"id":"bd-uctql","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:51:05.590102-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:51:05.654139-08:00","closed_at":"2026-01-11T22:51:05.654139-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ucj8","title":"Rename wisp prefix from 'eph' to 'wisp'","description":"The wisp system uses 'eph' as the ID prefix segment (e.g., gt-eph-xxx) but should use 'wisp' (e.g., gt-wisp-xxx) for consistency with terminology.\n\n**Location:** cmd/bd/wisp.go:260-261\n```go\n// Use \"eph\" prefix for distinct visual recognition\nresult, err := spawnMolecule(ctx, store, subgraph, vars, \"\", actor, true, \"eph\")\n```\n\n**Fix:** Change \"eph\" to \"wisp\"\n\n**Also update:**\n- main_errors.go:100,107 - detection patterns for ephemeral IDs\n- Any tests expecting '-eph-' pattern\n- Documentation if it references the prefix\n\n**Migration:** Existing gt-eph-* wisps in databases will continue to work (they have ephemeral=true flag). New wisps will use gt-wisp-* prefix.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-01T20:10:54.323196-08:00","updated_at":"2026-01-01T23:55:44.286924-08:00","closed_at":"2026-01-01T23:55:44.286924-08:00","close_reason":"Renamed wisp prefix from 'eph' to 'wisp'. Legacy eph-* pattern still supported for backwards compatibility.","created_by":"gastown/crew/gus"} +{"id":"bd-uctql","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:51:05.590102-08:00","updated_at":"2026-01-11T22:51:05.654139-08:00","closed_at":"2026-01-11T22:51:05.654139-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-udsi","title":"Async Gates for Agent Coordination","description":"Agents need an async primitive for waiting on external events (CI completion, API responses, human approval). Gates are wisp issues that block until external conditions are met, managed by the Deacon.\n\n## Core Concepts\n\n**Gate** = wisp issue that blocks until external condition is met\n- Type: gate\n- Phase: wisp (never synced, ephemeral)\n- Assignee: deacon/ (Deacon monitors it)\n- Fields: await_type, await_id, timeout, waiters[]\n\n**Await Types:**\n- gh:run:\u003cid\u003e - GitHub Actions run completion\n- gh:pr:\u003cid\u003e - PR merged/closed\n- timer:\u003cduration\u003e - Simple delay\n- human:\u003cprompt\u003e - Human approval required\n- mail:\u003cpattern\u003e - Wait for mail matching pattern\n\n## Open Questions\n- Should gates live in wisp storage or main storage with wisp flag?\n- Do we need a gate catalog (like molecule catalog)?\n- Should waits-for dep type work with gates?","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-23T11:44:02.711062-08:00","updated_at":"2025-12-23T12:24:43.537615-08:00","closed_at":"2025-12-23T12:24:43.537615-08:00"} -{"id":"bd-ueagi","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:54:47.974119-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T20:54:48.008318-08:00","closed_at":"2026-01-08T20:54:48.008318-08:00","close_reason":"auto-closed session event"} -{"id":"bd-uf75j","title":"Issue to close","status":"closed","priority":1,"issue_type":"bug","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:15:59.879241-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:15:59.946989-08:00","closed_at":"2026-01-11T18:15:59.946989-08:00","close_reason":"Testing complete"} -{"id":"bd-uhg5q","title":"Ready issue","status":"open","priority":1,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:12.939192-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:12.939192-08:00"} +{"id":"bd-ueagi","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:54:47.974119-08:00","updated_at":"2026-01-08T20:54:48.008318-08:00","closed_at":"2026-01-08T20:54:48.008318-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-uf75j","title":"Issue to close","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-11T18:15:59.879241-08:00","updated_at":"2026-01-11T18:15:59.946989-08:00","closed_at":"2026-01-11T18:15:59.946989-08:00","close_reason":"Testing complete","created_by":"beads/crew/wolf"} +{"id":"bd-uhg5q","title":"Ready issue","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-11T18:16:12.939192-08:00","updated_at":"2026-01-11T18:16:12.939192-08:00","created_by":"beads/crew/wolf"} {"id":"bd-uiae","title":"Update documentation for beads-merge integration","description":"Document the integrated merge functionality.\n\n**Updates needed**:\n- AGENTS.md: Replace \"use external beads-merge\" with \"bd merge\"\n- README.md: Add git merge driver section\n- TROUBLESHOOTING.md: Update merge conflict resolution\n- ADVANCED.md: Document 3-way merge algorithm\n- Create CREDITS.md or ATTRIBUTION.md for @neongreen\n\n**Highlight**: Deletion sync fix (bd-hv01)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-05T18:42:20.488998-08:00","updated_at":"2025-11-06T18:19:16.234758-08:00","closed_at":"2025-11-06T15:40:27.830475-08:00","dependencies":[{"issue_id":"bd-uiae","depends_on_id":"bd-qqvw","type":"parent-child","created_at":"2025-11-05T18:42:28.752447-08:00","created_by":"daemon"}]} -{"id":"bd-uidv9","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T15:58:01.594496-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T15:58:01.668196-08:00","closed_at":"2026-01-13T15:58:01.668196-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-uidv9","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T15:58:01.594496-08:00","updated_at":"2026-01-13T15:58:01.668196-08:00","closed_at":"2026-01-13T15:58:01.668196-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-ujz5","title":"Explore wiki-style documentation structure","description":"Our docs are growing into a book. Evaluate options for wiki-like structure:\n\n**Options to evaluate:**\n- GitHub Wiki (built-in, limited features)\n- mdBook (Rust, CLI-friendly, produces HTML/PDF/ePub)\n- MkDocs / Material for MkDocs (Python, beautiful themes)\n- Docusaurus (React, powerful but complex)\n- Plain markdown with good structure (current approach)\n\n**Requirements:**\n- Git-backed (version control)\n- Markdown-native (agents can edit)\n- Table of contents / navigation\n- Cross-linking between pages\n- Searchable\n- Can be hosted on GitHub Pages\n\n**Deliverables:**\n- Recommendation with pros/cons\n- If switching: migration plan\n- If staying with markdown: structure guidelines for wiki-like organization\n\nReferences:\n- https://squidfunk.github.io/mkdocs-material/alternatives/\n- https://www.archbee.com/blog/gitbook-alternatives","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-24T18:23:23.665509-08:00","updated_at":"2025-12-25T22:55:41.578876-08:00","closed_at":"2025-12-25T22:55:41.578876-08:00"} {"id":"bd-ul59","title":"Update molecular chemistry docs with discoveries","description":"Document recent discoveries about molecule/epic relationship and lifecycle:\n\n**Layer Cake (corrected order):**\n```\nFormulas (YAML compile-time macros)\n ↓\nProtos (template label, read-only)\n ↓\nMolecules (pour, bond, squash, burn)\n ↓\nEpics (parent-child, dependencies) ← DATA PLANE\n ↓\nIssues (JSONL, git-backed) ← STORAGE\n```\n\n**Key insight:** Molecules work without protos - you can create ad-hoc molecules.\nProtos are templates FOR molecules, not the other way around.\n\n**New concepts to document:**\n1. Orphan vs Stale matrix (blocking × assigned dimensions)\n2. Graph pressure as staleness indicator (not time)\n3. Parallelism via absence of depends_on (default parallel, opt-in sequential)\n4. progress.Completed/Total are computed, not stored\n5. WaitsFor: all-children for dynamic fanout gates\n\n**Common pitfalls for agents:**\n- Thinking phases/steps imply sequence (NO - deps do)\n- Confusing protos with molecules\n- Temporal language inverting dependencies\n- Forgetting to squash/burn wisps\n\n**Consider splitting docs:**\n- molecules.md → conceptual overview\n- formulas.md → YAML syntax reference\n- lifecycle.md → pour/squash/burn/bond operations\n- patterns.md → Christmas Ornament, factory assembly, etc.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-24T18:23:23.968937-08:00","updated_at":"2025-12-24T19:30:49.011831-08:00","closed_at":"2025-12-24T19:30:49.011831-08:00"} {"id":"bd-umbf","title":"Design contributor namespace isolation for beads pollution prevention","description":"## Problem\n\nWhen contributors work on beads-the-project using beads-the-tool, their personal work-tracking issues leak into PRs. The .beads/issues.jsonl is intentionally tracked (it's the project's issue database), but contributors' local issues pollute the diff.\n\nThis is a recursion problem unique to self-hosting projects.\n\n## Possible Solutions to Explore\n\n1. **Contributor namespaces** - Each contributor gets a private prefix (e.g., `bd-steve-xxxx`) that's gitignored or filtered\n2. **Separate database** - Contributors use BEADS_DIR pointing elsewhere for personal tracking\n3. **Issue ownership/visibility flags** - Mark issues as \"local-only\" vs \"project\"\n4. **Prefix-based filtering** - Configure which prefixes are committed vs ignored\n\n## Design Considerations\n\n- Should be zero-friction for contributors (no manual setup)\n- Must not break existing workflows\n- Needs to work with sync/collaboration features\n- Consider: what if a \"personal\" issue graduates to \"project\" issue?\n\n## Expansion Needed\n\nThis is a placeholder. Needs detailed design exploration before implementation.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-13T18:00:29.638743-08:00","updated_at":"2025-12-30T18:12:30.976419-08:00","closed_at":"2025-12-30T17:05:13.732967-08:00","close_reason":"Design complete. See docs/CONTRIBUTOR_NAMESPACE_ISOLATION.md. Recommends auto-routing approach with role detection. Key gap identified: bd-6x6g needs implementation to actually route issues to target repo."} -{"id":"bd-uncd","title":"Review PR #910: fix(sync) persist sync branch","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #910 from peterkc.\n\nPR: https://github.com/anthropics/beads/pull/910\nChanges: +89/-1, 2 files (internal/syncbranch/syncbranch.go, test)\n\nFix: persist sync branch to yaml and database\n\nReview checklist:\n- [ ] Code quality and style\n- [ ] Tests pass\n- [ ] Logic is correct\n- [ ] Approve or request changes","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/wolf","created_at":"2026-01-05T19:09:20.349333-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-05T19:12:10.078193-08:00","closed_at":"2026-01-05T19:12:10.078193-08:00","close_reason":"PR #910 reviewed and merged"} +{"id":"bd-uncd","title":"Review PR #910: fix(sync) persist sync branch","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #910 from peterkc.\n\nPR: https://github.com/anthropics/beads/pull/910\nChanges: +89/-1, 2 files (internal/syncbranch/syncbranch.go, test)\n\nFix: persist sync branch to yaml and database\n\nReview checklist:\n- [ ] Code quality and style\n- [ ] Tests pass\n- [ ] Logic is correct\n- [ ] Approve or request changes","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-05T19:09:20.349333-08:00","updated_at":"2026-01-05T19:12:10.078193-08:00","closed_at":"2026-01-05T19:12:10.078193-08:00","close_reason":"PR #910 reviewed and merged","created_by":"beads/crew/emma"} {"id":"bd-upd","title":"Sync should cleanup snapshot files after completion","description":"After sync completion, orphan .base.jsonl and .left.jsonl snapshot files remain in .beads/ directory. These should be cleaned up on successful sync.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-28T17:27:36.727246-08:00","updated_at":"2025-11-28T18:36:52.088915-08:00","closed_at":"2025-11-28T17:42:14.57165-08:00"} {"id":"bd-uqfn","title":"Work on beads-wkt: Output control parameters for MCP tool...","description":"Work on beads-wkt: Output control parameters for MCP tools (GH#622). Add brief, fields, max_description_length params to ready/list/show. When done, submit MR (not PR) to integration branch for Refinery.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-19T22:57:10.675535-08:00","updated_at":"2025-12-20T00:49:51.929271-08:00","closed_at":"2025-12-19T23:28:25.362931-08:00"} {"id":"bd-urob","title":"bd-hv01: Refactor snapshot management into dedicated module","description":"Problem: Snapshot logic is scattered across deletion_tracking.go. Would benefit from abstraction with SnapshotManager type.\n\nBenefits: cleaner separation of concerns, easier to test in isolation, better encapsulation, could add observability/metrics.\n\nSuggested improvements: add magic constants, track merge statistics, better error messages.\n\nFiles: cmd/bd/deletion_tracking.go (refactor into new snapshot_manager.go)","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-11-06T18:16:27.943666-08:00","updated_at":"2025-11-08T02:24:24.686744-08:00","closed_at":"2025-11-08T02:19:14.152412-08:00","dependencies":[{"issue_id":"bd-urob","depends_on_id":"bd-rbxi","type":"parent-child","created_at":"2025-11-06T18:19:15.192447-08:00","created_by":"daemon"}]} -{"id":"bd-urz80","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T21:33:37.069626-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T21:33:37.10267-08:00","closed_at":"2026-01-08T21:33:37.10267-08:00","close_reason":"auto-closed session event"} +{"id":"bd-urz80","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T21:33:37.069626-08:00","updated_at":"2026-01-08T21:33:37.10267-08:00","closed_at":"2026-01-08T21:33:37.10267-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-usro","title":"Rename 'template instantiate' to 'mol bond'","description":"Rename the template instantiation command to match molecule metaphor.\n\nCurrent: bd template instantiate \u003cid\u003e --var key=value\nTarget: bd mol bond \u003cid\u003e --var key=value\n\nChanges needed:\n- Add 'mol' command group (or extend existing)\n- Add 'bond' subcommand that wraps template instantiate logic\n- Keep 'template instantiate' as deprecated alias for backward compat\n- Update help text and docs to use molecule terminology\n\nThe 'bond' verb captures:\n1. Chemistry metaphor (molecules bond to form structures)\n2. Dependency linking (child issues bonded in a DAG)\n3. Short and active\n\nSee also: molecule execution model in Gas Town","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-12-20T16:56:37.582795-08:00","updated_at":"2025-12-20T23:22:43.567337-08:00","closed_at":"2025-12-20T23:22:43.567337-08:00"} -{"id":"bd-ustlq","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:15:37.425415-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T22:15:37.465321-08:00","closed_at":"2026-01-09T22:15:37.465321-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-usvv","title":"Defer SQLite metadata updates until after git commit succeeds","description":"Part of GH#885 fix: bulletproof sync atomicity.\n\nCurrently exportToJSONL() immediately:\n- Clears dirty flags in SQLite\n- Updates last_import_time metadata\n\nThis happens BEFORE git commit, so if commit fails, SQLite \"lies\" about sync state.\n\nFix: Move metadata updates to AFTER git commit succeeds:\n1. Export JSONL to disk (atomic file write)\n2. Stage and commit to git\n3. ONLY THEN clear dirty flags and update last_import_time\n\nKey files:\n- cmd/bd/sync_export.go:147-170 (premature updates)\n- cmd/bd/sync.go:555 (commit point)\n\nThis is the core fix for the atomicity gap.","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-04T13:53:23.619319-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-04T15:22:08.704907-08:00","closed_at":"2026-01-04T15:16:21.245756-08:00","close_reason":"Implemented deferred metadata updates - finalizeExport() now runs after git commit succeeds","dependencies":[{"issue_id":"bd-usvv","depends_on_id":"bd-pnx2","type":"parent-child","created_at":"2026-01-04T13:53:55.798447-08:00","created_by":"beads/crew/emma"}]} -{"id":"bd-uswaw","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T07:36:08.453538-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T07:36:08.517511-08:00","closed_at":"2026-01-11T07:36:08.517511-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-ustlq","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T22:15:37.425415-08:00","updated_at":"2026-01-09T22:15:37.465321-08:00","closed_at":"2026-01-09T22:15:37.465321-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-usvv","title":"Defer SQLite metadata updates until after git commit succeeds","description":"Part of GH#885 fix: bulletproof sync atomicity.\n\nCurrently exportToJSONL() immediately:\n- Clears dirty flags in SQLite\n- Updates last_import_time metadata\n\nThis happens BEFORE git commit, so if commit fails, SQLite \"lies\" about sync state.\n\nFix: Move metadata updates to AFTER git commit succeeds:\n1. Export JSONL to disk (atomic file write)\n2. Stage and commit to git\n3. ONLY THEN clear dirty flags and update last_import_time\n\nKey files:\n- cmd/bd/sync_export.go:147-170 (premature updates)\n- cmd/bd/sync.go:555 (commit point)\n\nThis is the core fix for the atomicity gap.","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-04T13:53:23.619319-08:00","updated_at":"2026-01-04T15:22:08.704907-08:00","closed_at":"2026-01-04T15:16:21.245756-08:00","close_reason":"Implemented deferred metadata updates - finalizeExport() now runs after git commit succeeds","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-usvv","depends_on_id":"bd-pnx2","type":"parent-child","created_at":"2026-01-04T13:53:55.798447-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-uswaw","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T07:36:08.453538-08:00","updated_at":"2026-01-11T07:36:08.517511-08:00","closed_at":"2026-01-11T07:36:08.517511-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-ut5","title":"Test label update feature","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-21T22:07:25.488849-05:00","updated_at":"2025-12-14T00:32:11.0488-08:00","closed_at":"2025-12-13T23:29:56.878215-08:00"} -{"id":"bd-uti26","title":"Test defer issue","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-07T21:30:33.858115-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T21:15:41.7331-08:00","closed_at":"2026-01-09T21:15:41.7331-08:00","close_reason":"Test beads - cleanup"} -{"id":"bd-utqso","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:28:49.3643-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:28:49.416832-08:00","closed_at":"2026-01-11T22:28:49.416832-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-utzo2","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T14:00:08.632728-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T14:00:08.701971-08:00","closed_at":"2026-01-13T14:00:08.701971-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-uti26","title":"Test defer issue","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-07T21:30:33.858115-08:00","updated_at":"2026-01-09T21:15:41.7331-08:00","closed_at":"2026-01-09T21:15:41.7331-08:00","close_reason":"Test beads - cleanup","created_by":"beads/crew/emma"} +{"id":"bd-utqso","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:28:49.3643-08:00","updated_at":"2026-01-11T22:28:49.416832-08:00","closed_at":"2026-01-11T22:28:49.416832-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-utzo2","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T14:00:08.632728-08:00","updated_at":"2026-01-13T14:00:08.701971-08:00","closed_at":"2026-01-13T14:00:08.701971-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-uu8p","title":"Routing bypassed in daemon mode","description":"## Bug\n\nPrefix-based routing (routes.jsonl) only works in direct mode. When the daemon is running, it bypasses routing logic because:\n\n1. Daemon mode resolves IDs via RPC (`daemonClient.ResolveID`)\n2. Daemon uses its own store, which only knows about local beads\n3. The routing logic in `resolveAndGetIssueWithRouting` is only called in direct mode\n\n## Reproduction\n\n```bash\n# With daemon running:\ncd ~/gt\nbd show gt-1py3y # Fails - daemon can't find it\n\n# With daemon bypassed:\nbd --no-daemon show gt-1py3y # Works - uses routing\n```\n\n## Fix Options\n\n### Option A: Client-side routing detection (Recommended)\nBefore calling daemon RPC, check if the ID prefix matches a route to a different beads dir. If so, use direct mode with routing for that ID.\n\n```go\n// In show.go, before daemon mode:\nif daemonClient != nil \u0026\u0026 needsRouting(id) {\n // Fall back to direct mode for this ID\n result, err := resolveAndGetIssueWithRouting(ctx, store, id)\n ...\n}\n```\n\n### Option B: Daemon-side routing\nAdd routing support to the daemon RPC server. More complex - daemon would need to:\n- Load routes.jsonl on startup\n- Open connections to multiple databases\n- Route requests based on ID prefix\n\n### Option C: Hybrid\nDaemon returns \"not found + prefix hint\", client retries with routing.\n\n## Recommendation\n\nOption A is simplest. The client already has routing logic; just use it when we detect a routed prefix.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-26T14:52:00.452285-08:00","updated_at":"2025-12-26T14:54:51.572289-08:00","closed_at":"2025-12-26T14:54:51.572289-08:00"} -{"id":"bd-uufyv","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T02:33:44.395415-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T02:33:44.459565-08:00","closed_at":"2026-01-12T02:33:44.459565-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-uunhh","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T23:02:11.859121-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-09T23:02:11.898113-08:00","closed_at":"2026-01-09T23:02:11.898113-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-uuo9","title":"Avoid double export when uncommitted JSONL detected","description":"In sync.go, when gitHasUncommittedBeadsChanges() detects uncommitted changes, we export at line 175. But the normal flow exports again at line 296.\n\nAdd a skip flag to avoid redundant work:\n- Set alreadyExported=true after pre-flight export\n- Skip later export if flag is set\n\nMinor optimization, not urgent.\n\nPart of GH#885 follow-up (bd-vd8e).","status":"closed","priority":3,"issue_type":"task","assignee":"beads/polecats/amber","created_at":"2026-01-04T16:15:55.491155-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-04T16:20:46.91292-08:00","closed_at":"2026-01-04T16:20:46.91292-08:00","close_reason":"Added alreadyExported flag to skip redundant export when pre-flight check already exported"} +{"id":"bd-uufyv","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T02:33:44.395415-08:00","updated_at":"2026-01-12T02:33:44.459565-08:00","closed_at":"2026-01-12T02:33:44.459565-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-uunhh","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T23:02:11.859121-08:00","updated_at":"2026-01-09T23:02:11.898113-08:00","closed_at":"2026-01-09T23:02:11.898113-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} +{"id":"bd-uuo9","title":"Avoid double export when uncommitted JSONL detected","description":"In sync.go, when gitHasUncommittedBeadsChanges() detects uncommitted changes, we export at line 175. But the normal flow exports again at line 296.\n\nAdd a skip flag to avoid redundant work:\n- Set alreadyExported=true after pre-flight export\n- Skip later export if flag is set\n\nMinor optimization, not urgent.\n\nPart of GH#885 follow-up (bd-vd8e).","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-04T16:15:55.491155-08:00","updated_at":"2026-01-04T16:20:46.91292-08:00","closed_at":"2026-01-04T16:20:46.91292-08:00","close_reason":"Added alreadyExported flag to skip redundant export when pre-flight check already exported","created_by":"beads/crew/fang"} {"id":"bd-uutv","title":"Work on beads-rs0: Namepool configuration for themed pole...","description":"Work on beads-rs0: Namepool configuration for themed polecat names. See bd show beads-rs0 for full details.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-19T21:49:48.129778-08:00","updated_at":"2025-12-19T21:59:25.565894-08:00","closed_at":"2025-12-19T21:59:25.565894-08:00"} {"id":"bd-uwkp","title":"Phase 2.4: Git merge driver optimization for TOON format","description":"Optimize git 3-way merge for TOON line-oriented format.\n\n## Overview\nTOON is line-oriented (unlike binary formats), enabling smarter git merge strategies. Implement custom merge driver to handle TOON-specific merge patterns.\n\n## Required Work\n\n### 2.4.1 TOON Merge Driver\n- [ ] Create .git/info/attributes entry for *.toon files\n- [ ] Implement custom merge driver script/command\n- [ ] Handle tabular format row merges (line-based 3-way)\n- [ ] Handle YAML-style format merges\n- [ ] Conflict markers for unsolvable conflicts\n\n### 2.4.2 Merge Patterns\n- [ ] Row addition: both branches add different rows → union\n- [ ] Row deletion: one branch deletes, other modifies → conflict (manual review)\n- [ ] Row modification: concurrent field changes → intelligent merge or conflict\n- [ ] Field ordering changes: ignore (TOON format resilient to order)\n\n### 2.4.3 Testing \u0026 Documentation\n- [ ] Unit tests for merge scenarios (3-way merge logic)\n- [ ] Integration tests with actual git merges\n- [ ] Conflict scenario testing\n- [ ] Documentation of merge strategy\n\n## Success Criteria\n- Git merge handles TOON conflicts intelligently\n- Fewer manual merge conflicts than JSONL\n- Round-trip preserved through merges\n- All 70+ tests still passing\n- Git history stays clean (minimal conflict markers)","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T14:43:14.339238776-07:00","updated_at":"2025-12-21T14:42:26.434306-08:00","closed_at":"2025-12-21T14:42:26.434306-08:00","dependencies":[{"issue_id":"bd-uwkp","depends_on_id":"bd-iic1","type":"discovered-from","created_at":"2025-12-19T14:43:14.34427988-07:00","created_by":"daemon"}]} -{"id":"bd-uxlb","title":"Add bd agent state command for ZFC-compliant state reporting","description":"Add command for agents to write their own state to agent beads.\n\n```bash\nbd agent state \u003cagent-id\u003e \u003cstate\u003e\n# Example: bd agent state gt-mayor running\n# States: idle | running | stuck | stopped | dead\n```\n\nImplementation:\n1. Lookup agent bead by ID (type=agent)\n2. Update agent_state field in description\n3. Update last_activity timestamp\n4. Trigger bd sync if configured\n\nAlso add:\n- bd agent heartbeat \u003cagent-id\u003e - just updates last_activity\n- bd agent show \u003cagent-id\u003e - show agent bead details\n\nThis is the ZFC-compliant way for agents to self-report state.\n\nCross-ref: gt-p2vyo in gastown","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-28T01:49:46.325964-08:00","created_by":"mayor","updated_at":"2025-12-28T01:57:05.839623-08:00","closed_at":"2025-12-28T01:57:05.839623-08:00"} -{"id":"bd-uyf3","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-06T23:52:08.520371-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-06T23:52:08.556361-08:00","closed_at":"2026-01-06T23:52:08.556361-08:00","close_reason":"auto-closed session event"} +{"id":"bd-uxlb","title":"Add bd agent state command for ZFC-compliant state reporting","description":"Add command for agents to write their own state to agent beads.\n\n```bash\nbd agent state \u003cagent-id\u003e \u003cstate\u003e\n# Example: bd agent state gt-mayor running\n# States: idle | running | stuck | stopped | dead\n```\n\nImplementation:\n1. Lookup agent bead by ID (type=agent)\n2. Update agent_state field in description\n3. Update last_activity timestamp\n4. Trigger bd sync if configured\n\nAlso add:\n- bd agent heartbeat \u003cagent-id\u003e - just updates last_activity\n- bd agent show \u003cagent-id\u003e - show agent bead details\n\nThis is the ZFC-compliant way for agents to self-report state.\n\nCross-ref: gt-p2vyo in gastown","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-28T01:49:46.325964-08:00","updated_at":"2025-12-28T01:57:05.839623-08:00","closed_at":"2025-12-28T01:57:05.839623-08:00","created_by":"mayor"} +{"id":"bd-uyf3","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-06T23:52:08.520371-08:00","updated_at":"2026-01-06T23:52:08.556361-08:00","closed_at":"2026-01-06T23:52:08.556361-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-uyq10","title":"Digest: mol-refinery-patrol","description":"Patrol: queue empty, main synced to 355ce734","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T18:45:37.150101-08:00","updated_at":"2026-01-11T18:45:37.150101-08:00","closed_at":"2026-01-11T18:45:37.149985-08:00","close_reason":"Squashed from 11 wisps"} -{"id":"bd-uyrt4","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T12:38:29.302861-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T12:38:29.336056-08:00","closed_at":"2026-01-09T12:38:29.336056-08:00","close_reason":"auto-closed session event"} -{"id":"bd-uz6oq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:08:16.910485-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T00:08:16.978274-08:00","closed_at":"2026-01-12T00:08:16.978274-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-uyrt4","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T12:38:29.302861-08:00","updated_at":"2026-01-09T12:38:29.336056-08:00","closed_at":"2026-01-09T12:38:29.336056-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-uz6oq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:08:16.910485-08:00","updated_at":"2026-01-12T00:08:16.978274-08:00","closed_at":"2026-01-12T00:08:16.978274-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-uz8r","title":"Phase 2.3: TOON deletion tracking","description":"Implement deletion tracking in TOON format.\n\n## Overview\nPhase 2.2 switched storage to TOON format. Phase 2.3 adds deletion tracking in TOON format for propagating deletions across clones.\n\n## Required Work\n\n### 2.3.1 Deletion Tracking (TOON Format)\n- [ ] Implement deletions.toon file (tracking deleted issue records)\n- [ ] Add DeleteTracker struct to record deleted issue IDs and metadata\n- [ ] Update bdt delete command to record in deletions.toon\n- [ ] Design deletion record format (ID, timestamp, reason, hash)\n- [ ] Implement auto-prune of old deletion records (configurable TTL)\n\n### 2.3.2 Sync Propagation\n- [ ] Load deletions.toon during import\n- [ ] Remove deleted issues from local database when imported from remote\n- [ ] Handle edge cases (delete same issue in multiple clones)\n- [ ] Deletion ordering and conflict resolution\n\n### 2.3.3 Testing\n- [ ] Unit tests for deletion tracking\n- [ ] Integration tests for deletion propagation\n- [ ] Multi-clone deletion scenarios\n- [ ] TTL expiration tests\n\n## Success Criteria\n- deletions.toon stores deletion records in TOON format\n- Deletions propagate across clones via git sync\n- Old records auto-prune after TTL\n- All 70+ tests still passing\n- bdt delete command works seamlessly","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-19T14:37:23.722066816-07:00","updated_at":"2025-12-21T14:42:27.491932-08:00","closed_at":"2025-12-21T14:42:27.491932-08:00","dependencies":[{"issue_id":"bd-uz8r","depends_on_id":"bd-iic1","type":"discovered-from","created_at":"2025-12-19T14:37:23.726825771-07:00","created_by":"daemon"}]} -{"id":"bd-uzog4","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T12:25:08.522815-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T12:25:08.593671-08:00","closed_at":"2026-01-13T12:25:08.593671-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-v0lkx","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:05:39.667104-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:05:39.7386-08:00","closed_at":"2026-01-11T21:05:39.7386-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-uzog4","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T12:25:08.522815-08:00","updated_at":"2026-01-13T12:25:08.593671-08:00","closed_at":"2026-01-13T12:25:08.593671-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-v0lkx","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:05:39.667104-08:00","updated_at":"2026-01-11T21:05:39.7386-08:00","closed_at":"2026-01-11T21:05:39.7386-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-v0x","title":"Auto-detect issue prefix from existing JSONL in 'bd init'","description":"When running `bd init` in a fresh clone with existing JSONL, it should auto-detect the issue prefix from the JSONL file instead of requiring `--prefix`.\n\nCurrently you must specify `--prefix ef` manually. But the JSONL file already contains issues like `ef-1it`, `ef-1jp` etc., so the prefix is known.\n\n**Ideal UX**:\n```\n$ bd init\nDetected issue prefix 'ef' from existing JSONL (38 issues).\n✓ Database initialized...\n```\n\nThis would make fresh clone hydration a single command: `bd init` with no flags.","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-27T20:21:21.049215-08:00","updated_at":"2025-12-02T17:11:19.751009583-05:00","closed_at":"2025-11-28T21:57:11.164293-08:00"} {"id":"bd-v29","title":"Deletions pruning doesn't include results in JSON output","description":"## Problem\n\nWhen `bd compact --json` runs with deletions pruning, the prune results are silently discarded:\n\n```go\n// Only report if there were deletions to prune\nif result.PrunedCount \u003e 0 {\n if jsonOutput {\n // JSON output will be included in the main response\n return // \u003c-- BUG: results are NOT included anywhere\n }\n ...\n}\n```\n\n## Location\n`cmd/bd/compact.go:925-929`\n\n## Impact\n- JSON consumers don't know deletions were pruned\n- No way to audit pruning via automation\n\n## Fix\nReturn prune results and include in JSON output structure:\n\n```json\n{\n \"success\": true,\n \"compacted\": {...},\n \"deletions_pruned\": {\n \"count\": 5,\n \"retention_days\": 7\n }\n}\n```","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-25T12:48:59.730979-08:00","updated_at":"2025-11-25T15:11:54.363653-08:00","closed_at":"2025-11-25T15:11:54.363653-08:00"} -{"id":"bd-v2mr","title":"Add RequiredSections() method to IssueType","description":"Add method to internal/types that returns recommended sections per issue type (bug, task, feature, epic). This is the foundation for validation.","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-01T11:19:06.129337-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-01T11:28:00.829607-08:00","closed_at":"2026-01-01T11:28:00.829607-08:00","close_reason":"Implemented RequiredSections() method on IssueType with tests","dependencies":[{"issue_id":"bd-v2mr","depends_on_id":"bd-ou35","type":"parent-child","created_at":"2026-01-01T11:19:22.697598-08:00","created_by":"beads/crew/grip"}]} -{"id":"bd-v3c4f","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T00:17:32.130554-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T00:17:32.181364-08:00","closed_at":"2026-01-13T00:17:32.181364-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-v3nbo","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:20:08.437559-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T20:20:08.504812-08:00","closed_at":"2026-01-11T20:20:08.504812-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-v43g","title":"bd move: Cross-rig bead relocation","description":"## Problem\n\nBeads sometimes get filed in the wrong rig (e.g., hq-* instead of gt-* or bd-*). There's no way to move them without manual recreation.\n\n## Current Misfiled Examples\n\n| ID | Title | Should Be |\n|----|-------|-----------|\n| hq-c21fj | bd init --from-jsonl | bd-* |\n| hq-q3tki | gt convoy list --tree | gt-* |\n| hq-1h2to | Stranded convoy detection | gt-* |\n| hq-2wy2i | Circuit breaker for stuck agents | gt-* |\n| hq-zs2t8 | Handoff mail bug | gt-* |\n| hq-ufiy | Formula semantics | gt-* |\n\n## Proposed Solution\n\nAdd `bd move \u003cid\u003e --to \u003cprefix|rig\u003e` command:\n\n```bash\nbd move hq-c21fj --to bd- # Move to beads rig\nbd move hq-q3tki --to gt- # Move to gastown rig\nbd move hq-1h2to --to gastown # Rig name also works\n```\n\n## Implementation\n\n1. Resolve target rig from prefix or name via routes.jsonl\n2. Generate new ID with target prefix\n3. Create bead in target rig's .beads/\n4. Tombstone original with redirect note: \"Moved to \u003cnew-id\u003e\"\n5. Update dependencies:\n - Rewrite deps pointing TO moved bead\n - Rewrite deps pointing FROM moved bead\n6. Print mapping: hq-c21fj -\u003e bd-xxxxx\n\n## Edge Cases\n\n- **Cross-repo moves**: May need bd sync on both sides\n- **Blocked-by chains**: All references need remapping\n- **Assignees**: Preserve or clear? (probably preserve)\n- **Ephemeral beads**: Block move? (ephemeral shouldn't be relocated)\n\n## Alternative: bd clone\n\nCould also support `bd clone \u003cid\u003e --to \u003cprefix\u003e` for copying without tombstoning, useful for templates.","status":"closed","priority":2,"issue_type":"feature","created_at":"2026-01-02T01:15:54.43056-08:00","created_by":"gastown/crew/joe","updated_at":"2026-01-02T01:37:42.736136-08:00","closed_at":"2026-01-02T01:37:42.736136-08:00","close_reason":"Implemented by Dave, used to relocate 6 misfiled beads"} -{"id":"bd-v4hq","title":"Test refile command","description":"Testing bd refile","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-31T12:31:39.783077-08:00","created_by":"beads/crew/grip","updated_at":"2025-12-31T12:31:44.911284-08:00","closed_at":"2025-12-31T12:31:44.911284-08:00","close_reason":"Refiled to gt-lyc2b"} -{"id":"bd-v55y","title":"bd repair: Limit verbose output for large orphan counts","description":"When there are thousands of orphaned references, bd repair prints them all, flooding the terminal.\n\nFix: Add --verbose flag; default to summary only (e.g., 'Found 1,234 orphaned dependencies'). Only print individual items with --verbose or when count is small (\u003c20).","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-29T12:48:10.496115-08:00","created_by":"stevey","updated_at":"2025-12-29T12:59:05.123618-08:00","closed_at":"2025-12-29T12:59:05.123618-08:00","close_reason":"Fixed in commit d7a67ad6"} -{"id":"bd-v5fn","title":"Add default limit to bd list (50 issues)","description":"Add a sensible default limit of 50 issues to bd list output, matching patterns from gh cli (30) and jira-cli (50).\n\n- Default to 50 when no --limit specified\n- --limit 0 means unlimited (explicit override)\n- Protects both agents and humans from overwhelming output\n\nThis is independent of the filter change but complementary.","notes":"## Implementation Plan\n\n### Code Changes (cmd/bd/list.go)\n\n1. **Change default limit** (init function, ~line 887):\n```go\n// Currently: listCmd.Flags().IntP(\"limit\", \"n\", 0, \"Limit results\")\n// Change to:\nlistCmd.Flags().IntP(\"limit\", \"n\", 50, \"Limit results (0 for unlimited)\")\n```\n\n2. **Update help text**:\n```go\n\"Limit results (default: 50, use 0 for unlimited)\"\n```\n\n3. **Handle explicit 0** in Run function:\n```go\n// --limit 0 means unlimited\nif cmd.Flags().Changed(\"limit\") \u0026\u0026 limit == 0 {\n filter.Limit = 0 // No limit applied\n} else if limit \u003e 0 {\n filter.Limit = limit\n} else {\n filter.Limit = 50 // Default\n}\n```\n\n### Testing\n- `bd list` shows max 50 issues\n- `bd list --limit 10` shows max 10\n- `bd list --limit 0` shows unlimited\n- Verify output indicates truncation: \"Showing 50 of 499 issues (use --limit 0 for all)\"\n\n### Documentation\n- Note in help: default changed from unlimited to 50","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-29T15:25:08.299726-08:00","created_by":"stevey","updated_at":"2025-12-29T17:53:30.23005-08:00","closed_at":"2025-12-29T17:53:30.23005-08:00","close_reason":"Implemented in single commit","labels":["gh:788"]} -{"id":"bd-v711j","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:35:04.602967-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-08T14:35:04.639119-08:00","closed_at":"2026-01-08T14:35:04.639119-08:00","close_reason":"auto-closed session event"} -{"id":"bd-v7s5y","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:08:36.210345-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T16:08:36.247128-08:00","closed_at":"2026-01-10T16:08:36.247128-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-v2mr","title":"Add RequiredSections() method to IssueType","description":"Add method to internal/types that returns recommended sections per issue type (bug, task, feature, epic). This is the foundation for validation.","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-01T11:19:06.129337-08:00","updated_at":"2026-01-01T11:28:00.829607-08:00","closed_at":"2026-01-01T11:28:00.829607-08:00","close_reason":"Implemented RequiredSections() method on IssueType with tests","created_by":"beads/crew/grip","dependencies":[{"issue_id":"bd-v2mr","depends_on_id":"bd-ou35","type":"parent-child","created_at":"2026-01-01T11:19:22.697598-08:00","created_by":"beads/crew/grip"}]} +{"id":"bd-v3nbo","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T20:20:08.437559-08:00","updated_at":"2026-01-11T20:20:08.504812-08:00","closed_at":"2026-01-11T20:20:08.504812-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-v43g","title":"bd move: Cross-rig bead relocation","description":"## Problem\n\nBeads sometimes get filed in the wrong rig (e.g., hq-* instead of gt-* or bd-*). There's no way to move them without manual recreation.\n\n## Current Misfiled Examples\n\n| ID | Title | Should Be |\n|----|-------|-----------|\n| hq-c21fj | bd init --from-jsonl | bd-* |\n| hq-q3tki | gt convoy list --tree | gt-* |\n| hq-1h2to | Stranded convoy detection | gt-* |\n| hq-2wy2i | Circuit breaker for stuck agents | gt-* |\n| hq-zs2t8 | Handoff mail bug | gt-* |\n| hq-ufiy | Formula semantics | gt-* |\n\n## Proposed Solution\n\nAdd `bd move \u003cid\u003e --to \u003cprefix|rig\u003e` command:\n\n```bash\nbd move hq-c21fj --to bd- # Move to beads rig\nbd move hq-q3tki --to gt- # Move to gastown rig\nbd move hq-1h2to --to gastown # Rig name also works\n```\n\n## Implementation\n\n1. Resolve target rig from prefix or name via routes.jsonl\n2. Generate new ID with target prefix\n3. Create bead in target rig's .beads/\n4. Tombstone original with redirect note: \"Moved to \u003cnew-id\u003e\"\n5. Update dependencies:\n - Rewrite deps pointing TO moved bead\n - Rewrite deps pointing FROM moved bead\n6. Print mapping: hq-c21fj -\u003e bd-xxxxx\n\n## Edge Cases\n\n- **Cross-repo moves**: May need bd sync on both sides\n- **Blocked-by chains**: All references need remapping\n- **Assignees**: Preserve or clear? (probably preserve)\n- **Ephemeral beads**: Block move? (ephemeral shouldn't be relocated)\n\n## Alternative: bd clone\n\nCould also support `bd clone \u003cid\u003e --to \u003cprefix\u003e` for copying without tombstoning, useful for templates.","status":"closed","priority":2,"issue_type":"feature","created_at":"2026-01-02T01:15:54.43056-08:00","updated_at":"2026-01-02T01:37:42.736136-08:00","closed_at":"2026-01-02T01:37:42.736136-08:00","close_reason":"Implemented by Dave, used to relocate 6 misfiled beads","created_by":"gastown/crew/joe"} +{"id":"bd-v4hq","title":"Test refile command","description":"Testing bd refile","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-31T12:31:39.783077-08:00","updated_at":"2025-12-31T12:31:44.911284-08:00","closed_at":"2025-12-31T12:31:44.911284-08:00","close_reason":"Refiled to gt-lyc2b","created_by":"beads/crew/grip"} +{"id":"bd-v55y","title":"bd repair: Limit verbose output for large orphan counts","description":"When there are thousands of orphaned references, bd repair prints them all, flooding the terminal.\n\nFix: Add --verbose flag; default to summary only (e.g., 'Found 1,234 orphaned dependencies'). Only print individual items with --verbose or when count is small (\u003c20).","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-29T12:48:10.496115-08:00","updated_at":"2025-12-29T12:59:05.123618-08:00","closed_at":"2025-12-29T12:59:05.123618-08:00","close_reason":"Fixed in commit d7a67ad6","created_by":"stevey"} +{"id":"bd-v5fn","title":"Add default limit to bd list (50 issues)","description":"Add a sensible default limit of 50 issues to bd list output, matching patterns from gh cli (30) and jira-cli (50).\n\n- Default to 50 when no --limit specified\n- --limit 0 means unlimited (explicit override)\n- Protects both agents and humans from overwhelming output\n\nThis is independent of the filter change but complementary.","notes":"## Implementation Plan\n\n### Code Changes (cmd/bd/list.go)\n\n1. **Change default limit** (init function, ~line 887):\n```go\n// Currently: listCmd.Flags().IntP(\"limit\", \"n\", 0, \"Limit results\")\n// Change to:\nlistCmd.Flags().IntP(\"limit\", \"n\", 50, \"Limit results (0 for unlimited)\")\n```\n\n2. **Update help text**:\n```go\n\"Limit results (default: 50, use 0 for unlimited)\"\n```\n\n3. **Handle explicit 0** in Run function:\n```go\n// --limit 0 means unlimited\nif cmd.Flags().Changed(\"limit\") \u0026\u0026 limit == 0 {\n filter.Limit = 0 // No limit applied\n} else if limit \u003e 0 {\n filter.Limit = limit\n} else {\n filter.Limit = 50 // Default\n}\n```\n\n### Testing\n- `bd list` shows max 50 issues\n- `bd list --limit 10` shows max 10\n- `bd list --limit 0` shows unlimited\n- Verify output indicates truncation: \"Showing 50 of 499 issues (use --limit 0 for all)\"\n\n### Documentation\n- Note in help: default changed from unlimited to 50","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-29T15:25:08.299726-08:00","updated_at":"2025-12-29T17:53:30.23005-08:00","closed_at":"2025-12-29T17:53:30.23005-08:00","close_reason":"Implemented in single commit","created_by":"stevey"} +{"id":"bd-v711j","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:35:04.602967-08:00","updated_at":"2026-01-08T14:35:04.639119-08:00","closed_at":"2026-01-08T14:35:04.639119-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/dave"} +{"id":"bd-v7s5y","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:08:36.210345-08:00","updated_at":"2026-01-10T16:08:36.247128-08:00","closed_at":"2026-01-10T16:08:36.247128-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-v8ku","title":"bd: Add town-level activity signal in PersistentPreRun","description":"Add activity signaling to beads so Gas Town daemon can detect bd usage.\n\nIn cmd/bd/main.go PersistentPreRun, add a call to write activity to\nthe Gas Town daemon directory if running inside a Gas Town workspace.\n\nThe signal file is ~/gt/daemon/activity.json (or detected town root).\n\nFormat:\n{\n \"last_command\": \"bd create ...\",\n \"actor\": \"gastown/crew/max\",\n \"timestamp\": \"2025-12-26T19:30:00Z\"\n}\n\nShould be best-effort (silent failure) to avoid breaking bd outside Gas Town.\n\nCross-rig ref: gastown gt-ws8ol (Deacon exponential backoff epic)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-26T19:25:13.537055-08:00","updated_at":"2025-12-26T19:28:44.919491-08:00","closed_at":"2025-12-26T19:28:44.919491-08:00"} -{"id":"bd-v9kd2","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T18:22:02.116594-08:00","created_by":"beads/witness","updated_at":"2026-01-08T18:22:02.153947-08:00","closed_at":"2026-01-08T18:22:02.153947-08:00","close_reason":"auto-closed session event"} +{"id":"bd-v9kd2","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T18:22:02.116594-08:00","updated_at":"2026-01-08T18:22:02.153947-08:00","closed_at":"2026-01-08T18:22:02.153947-08:00","close_reason":"auto-closed session event","created_by":"beads/witness"} {"id":"bd-vavh","title":"Fix row iterator resource leak in recursive dependency queries","description":"Critical resource leak in findAllDependentsRecursive() where rows.Close() is called AFTER early return on error, never executing.\n\nLocation: internal/storage/sqlite/sqlite.go:1131-1136\n\nProblem: \n- rows.Close() placed after return statement\n- On scan error, iterator never closed\n- Can exhaust SQLite connections under moderate load\n\nFix: Move defer rows.Close() to execute on all code paths\n\nImpact: Connection exhaustion during dependency traversal","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-16T14:50:55.881698-08:00","updated_at":"2025-11-16T15:03:55.009607-08:00","closed_at":"2025-11-16T15:03:55.009607-08:00"} -{"id":"bd-vcec","title":"postinstall fails on Windows: zip locked by Defender (GH#889)","description":"npm install fails on Windows because the zip file is locked when Expand-Archive runs. Fixed by adding retry loop with exponential backoff.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-04T12:26:43.264589-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-04T12:27:15.417741-08:00","closed_at":"2026-01-04T12:27:15.417741-08:00","close_reason":"Fixed in 1a87d96d - added retry loop with exponential backoff"} -{"id":"bd-vcfy3","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:58:29.862877-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:58:29.928397-08:00","closed_at":"2026-01-11T21:58:29.928397-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-vcec","title":"postinstall fails on Windows: zip locked by Defender (GH#889)","description":"npm install fails on Windows because the zip file is locked when Expand-Archive runs. Fixed by adding retry loop with exponential backoff.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-04T12:26:43.264589-08:00","updated_at":"2026-01-04T12:27:15.417741-08:00","closed_at":"2026-01-04T12:27:15.417741-08:00","close_reason":"Fixed in 1a87d96d - added retry loop with exponential backoff","created_by":"beads/crew/grip"} +{"id":"bd-vcfy3","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:58:29.862877-08:00","updated_at":"2026-01-11T21:58:29.928397-08:00","closed_at":"2026-01-11T21:58:29.928397-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-vcg5","title":"Daemon crash recovery: panic handler + socket cleanup","description":"Improve daemon cleanup on unexpected exit:\n1. Add top-level recover() in runDaemonLoop to capture panics\n2. Write daemon-error file with stack trace on panic\n3. Prefer return over os.Exit where possible (so defers run)\n4. In stopDaemon forced-kill path, also remove stale socket if present\n\nThis ensures better diagnostics and cleaner state after crashes.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-07T16:42:12.733219-08:00","updated_at":"2025-11-07T22:07:17.347728-08:00","closed_at":"2025-11-07T21:17:15.94117-08:00","dependencies":[{"issue_id":"bd-vcg5","depends_on_id":"bd-ndyz","type":"discovered-from","created_at":"2025-11-07T16:42:12.733889-08:00","created_by":"daemon"}]} {"id":"bd-vckm","title":"Improve sync branch divergence recovery UX","description":"When the sync branch diverges significantly from remote (e.g., 89 local vs 36 remote commits), bd sync fails with a confusing rebase conflict error.\n\n**Current behavior:**\n```\nError committing to sync branch: failed to push from worktree: push failed and recovery rebase also failed\nerror: could not apply 8712f35... bd sync: 2025-12-13 07:30:04\nCONFLICT (content): Merge conflict in .beads/issues.jsonl\n```\n\nUser is left in a broken state with no clear recovery path.\n\n**Expected behavior:**\n1. Detect significant divergence before attempting sync\n2. Offer options: 'Sync branch diverged. Choose: (1) Reset to remote (2) Force push local (3) Manual merge'\n3. Provide clear recovery commands if automatic recovery fails\n\n**Context:** This happened after multiple clones synced different states. The workaround was manually resetting the sync branch worktree to remote.","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-15T17:29:01.803478-08:00","updated_at":"2025-12-16T01:06:31.174908-08:00","closed_at":"2025-12-16T01:04:45.251662-08:00"} -{"id":"bd-vd8e","title":"Detect uncommitted JSONL changes before sync operations","description":"Part of GH#885 fix: pre-flight safety check.\n\nAdd detection at sync start:\n1. Check if .beads/issues.jsonl has uncommitted changes in git\n2. If so, this indicates a previous sync failed after export but before commit\n3. Force a fresh export cycle to reconcile state\n\nImplementation:\n- Add gitHasUnstagedBeadsChanges() helper\n- Call in sync pre-flight checks (sync.go ~line 159)\n- If detected, warn user and force re-export\n\nThis catches the failure mode early before it compounds.","status":"closed","priority":1,"issue_type":"task","assignee":"beads/crew/fang","created_at":"2026-01-04T13:53:24.808788-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-04T15:10:56.883507-08:00","closed_at":"2026-01-04T15:10:56.883507-08:00","close_reason":"Implemented: gitHasUncommittedBeadsChanges() helper + pre-flight check in sync.go","dependencies":[{"issue_id":"bd-vd8e","depends_on_id":"bd-pnx2","type":"parent-child","created_at":"2026-01-04T13:53:55.823237-08:00","created_by":"beads/crew/emma"}]} -{"id":"bd-vdw4","title":"Enhancement: bd swarm status accepts swarm molecule ID","description":"Currently `bd swarm status` only accepts an epic ID.\n\nWould be more intuitive to also accept the swarm molecule ID and follow the relates-to link to find the epic:\n\n```bash\nbd swarm status bd-swarm-xyz # Follow link to epic, show status\nbd swarm status bd-epic-123 # Direct epic lookup (current behavior)\n```\n\nDetect by checking if the issue has mol_type=swarm.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-28T21:38:20.692476-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T22:05:10.112717-08:00","closed_at":"2025-12-28T22:05:10.112717-08:00","dependencies":[{"issue_id":"bd-vdw4","depends_on_id":"bd-2ubv","type":"parent-child","created_at":"2025-12-28T21:38:44.809594-08:00","created_by":"daemon"}]} -{"id":"bd-vf63g","title":"Fix: post-checkout hook inline import fails (GH#984)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #984. post-checkout hook fails with 'no database store available for inline import'.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-09T22:20:10.356282-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-10T20:57:09.382572-08:00","closed_at":"2026-01-10T16:52:59.64351-08:00","close_reason":"Fixed by using setter functions in PersistentPreRun to sync cmdCtx with globals"} -{"id":"bd-vfidp","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T17:30:48.304872-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-12T17:30:48.370399-08:00","closed_at":"2026-01-12T17:30:48.370399-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-vd8e","title":"Detect uncommitted JSONL changes before sync operations","description":"Part of GH#885 fix: pre-flight safety check.\n\nAdd detection at sync start:\n1. Check if .beads/issues.jsonl has uncommitted changes in git\n2. If so, this indicates a previous sync failed after export but before commit\n3. Force a fresh export cycle to reconcile state\n\nImplementation:\n- Add gitHasUnstagedBeadsChanges() helper\n- Call in sync pre-flight checks (sync.go ~line 159)\n- If detected, warn user and force re-export\n\nThis catches the failure mode early before it compounds.","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-04T13:53:24.808788-08:00","updated_at":"2026-01-04T15:10:56.883507-08:00","closed_at":"2026-01-04T15:10:56.883507-08:00","close_reason":"Implemented: gitHasUncommittedBeadsChanges() helper + pre-flight check in sync.go","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-vd8e","depends_on_id":"bd-pnx2","type":"parent-child","created_at":"2026-01-04T13:53:55.823237-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-vdw4","title":"Enhancement: bd swarm status accepts swarm molecule ID","description":"Currently `bd swarm status` only accepts an epic ID.\n\nWould be more intuitive to also accept the swarm molecule ID and follow the relates-to link to find the epic:\n\n```bash\nbd swarm status bd-swarm-xyz # Follow link to epic, show status\nbd swarm status bd-epic-123 # Direct epic lookup (current behavior)\n```\n\nDetect by checking if the issue has mol_type=swarm.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-28T21:38:20.692476-08:00","updated_at":"2025-12-28T22:05:10.112717-08:00","closed_at":"2025-12-28T22:05:10.112717-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-vdw4","depends_on_id":"bd-2ubv","type":"parent-child","created_at":"2025-12-28T21:38:44.809594-08:00","created_by":"daemon"}]} +{"id":"bd-vf63g","title":"Fix: post-checkout hook inline import fails (GH#984)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #984. post-checkout hook fails with 'no database store available for inline import'.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-09T22:20:10.356282-08:00","updated_at":"2026-01-10T20:57:09.382572-08:00","closed_at":"2026-01-10T16:52:59.64351-08:00","close_reason":"Fixed by using setter functions in PersistentPreRun to sync cmdCtx with globals","created_by":"beads/crew/dave"} +{"id":"bd-vfidp","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T17:30:48.304872-08:00","updated_at":"2026-01-12T17:30:48.370399-08:00","closed_at":"2026-01-12T17:30:48.370399-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} {"id":"bd-vgi5","title":"Push version bump to GitHub","description":"git push origin main - triggers CI but no release yet.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-18T22:43:05.363604-08:00","updated_at":"2025-12-24T16:25:30.019895-08:00","dependencies":[{"issue_id":"bd-vgi5","depends_on_id":"bd-qqc","type":"parent-child","created_at":"2025-12-18T22:43:16.87736-08:00","created_by":"daemon"},{"issue_id":"bd-vgi5","depends_on_id":"bd-3ggb","type":"blocks","created_at":"2025-12-18T22:43:21.078208-08:00","created_by":"daemon"}],"deleted_at":"2025-12-24T16:25:30.019895-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} -{"id":"bd-vh2q0","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:42:00.417039-08:00","created_by":"beads/witness","updated_at":"2026-01-07T17:42:00.464622-08:00","closed_at":"2026-01-07T17:42:00.464622-08:00","close_reason":"auto-closed session event"} -{"id":"bd-vhzfp","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T21:07:16.429229-08:00","created_by":"beads/crew/giles","updated_at":"2026-01-08T21:07:16.462811-08:00","closed_at":"2026-01-08T21:07:16.462811-08:00","close_reason":"auto-closed session event"} -{"id":"bd-vii9","title":"bd agent state fails when agent bead doesn't exist","description":"## Bug\n\n`bd agent state \u003cagent\u003e \u003cstate\u003e` fails if the agent doesn't already exist as a bead.\n\n## Reproduction\n\n```\ngt sling gt-nrpiq gastown\n...\nWarning: couldn't update agent gt-gastown-polecat-toast hook to gt-nrpiq: \n updating agent state: bd agent state gt-gastown-polecat-toast running: \n Error: failed to resolve agent gt-gastown-polecat-toast: \n no issue found matching \"gt-gastown-polecat-toast\"\n```\n\n## Context from HOP Design\n\nFrom **docs/hop/CONTEXT.md**:\n\u003e \"Each polecat should have a chain: What work have they done? What's their success rate? What skills have they demonstrated?\"\n\nFrom **docs/PRIMING.md**:\n\u003e \"Polecats are ephemeral executors. Like K8s pods. They have names (for debugging, logs) but no persistent identity.\"\n\n**Resolution**: Polecat *sessions* are ephemeral, but polecat *names* (toast, nux, furiosa, etc.) are recycled and SHOULD have persistent identity beads. The name is the identity - sessions come and go.\n\nThink of it like K8s:\n- **Pod** = polecat session (ephemeral, killed after task)\n- **ServiceAccount** = polecat identity bead (persistent, accumulates history)\n\n## Solution\n\n`bd agent state` should **auto-create** the agent bead on first use:\n\n```go\n// If agent bead doesn't exist, create it\nif errors.Is(err, ErrNotFound) {\n // Create identity bead for this agent\n _, err = CreateIssue(Issue{\n Title: fmt.Sprintf(\"Agent: %s\", agentName),\n Type: \"agent\",\n Status: state,\n Metadata: map[string]string{\n \"role\": parseRole(agentName), // polecat, witness, etc.\n \"rig\": parseRig(agentName), // gastown, beads, etc.\n },\n })\n}\n```\n\nThis enables:\n1. Work history accumulation per polecat name\n2. Skill/success tracking over time\n3. CV chain for the polecat identity\n4. `bd list --type=agent` to see all agents\n\n## Non-goals\n\n- Session tracking (ephemeral, don't persist)\n- Work attribution to polecat (credits human owner)\n- Agent scheduling (Gas Town handles that)","status":"closed","priority":3,"issue_type":"bug","assignee":"beads/polecats/obsidian","created_at":"2026-01-02T12:16:39.116652-08:00","created_by":"mayor","updated_at":"2026-01-02T12:27:05.679183-08:00","closed_at":"2026-01-02T12:27:05.679183-08:00","close_reason":"Implemented auto-create logic in runAgentState to create agent beads on first use"} -{"id":"bd-vivkq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T15:31:10.803986-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T15:31:10.877668-08:00","closed_at":"2026-01-13T15:31:10.877668-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-vizy","title":"Deprecate bump-version.sh script","description":"The bump-version.sh script is now legacy. The formula is the authority for release mechanics.\n\n## Options\n\n1. **Add deprecation notice** (minimal change)\n - Add warning at top of script pointing to formula\n - Keep script working for quick manual releases\n\n2. **Convert to formula wrapper** (medium change)\n - Script becomes: `bd mol execute beads-release --var version=$1`\n - Maintains CLI convenience while using formula\n\n3. **Remove entirely** (breaking change)\n - Delete scripts/bump-version.sh\n - Update any docs referencing it\n - Formula is the only way to release\n\n## Recommendation\nOption 2 - keeps convenience of `./scripts/bump-version.sh 0.47.0` but executes via formula, getting all the durability/visibility benefits.\n\n## Acceptance Criteria\n- [ ] Script has deprecation notice or is removed\n- [ ] CLAUDE.md and other docs updated if needed\n- [ ] No duplicate release logic (script vs formula)\n","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-07T00:45:32.586506-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:45:32.586506-08:00","dependencies":[{"issue_id":"bd-vizy","depends_on_id":"bd-z8xz","type":"parent-child","created_at":"2026-01-07T00:45:40.527149-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-vizy","depends_on_id":"bd-a854","type":"blocks","created_at":"2026-01-07T00:45:48.380809-08:00","created_by":"beads/crew/emma"}]} -{"id":"bd-vjas","title":"Add --pretty flag to bd ready","description":"bd list has --pretty but bd ready doesn't. Should support same tree format with status/priority symbols for consistency.","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-31T11:54:59.911409-08:00","created_by":"mayor","updated_at":"2026-01-01T11:16:53.096168-08:00","closed_at":"2026-01-01T11:16:53.096168-08:00","close_reason":"Implemented --pretty flag for bd ready"} -{"id":"bd-vjdt","title":"Add bd doctor check for JSONL/SQLite/git divergence","description":"Part of GH#885 fix: recovery mechanism. Add new doctor check that detects: 1) JSONL on disk differs from git HEAD version, 2) SQLite last_import_time does not match JSONL mtime, 3) Uncommitted .beads/ changes exist. Auto-fix options: re-export from SQLite, re-import from JSONL, or commit pending changes. Key file: cmd/bd/doctor/fix/sync.go","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-04T13:53:43.848369-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-04T15:22:08.704257-08:00","closed_at":"2026-01-04T15:14:01.129418-08:00","close_reason":"Implemented CheckSyncDivergence doctor check","dependencies":[{"issue_id":"bd-vjdt","depends_on_id":"bd-pnx2","type":"parent-child","created_at":"2026-01-04T13:53:55.84741-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-vh2q0","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:42:00.417039-08:00","updated_at":"2026-01-07T17:42:00.464622-08:00","closed_at":"2026-01-07T17:42:00.464622-08:00","close_reason":"auto-closed session event","created_by":"beads/witness"} +{"id":"bd-vhzfp","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T21:07:16.429229-08:00","updated_at":"2026-01-08T21:07:16.462811-08:00","closed_at":"2026-01-08T21:07:16.462811-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/giles"} +{"id":"bd-vii9","title":"bd agent state fails when agent bead doesn't exist","description":"## Bug\n\n`bd agent state \u003cagent\u003e \u003cstate\u003e` fails if the agent doesn't already exist as a bead.\n\n## Reproduction\n\n```\ngt sling gt-nrpiq gastown\n...\nWarning: couldn't update agent gt-gastown-polecat-toast hook to gt-nrpiq: \n updating agent state: bd agent state gt-gastown-polecat-toast running: \n Error: failed to resolve agent gt-gastown-polecat-toast: \n no issue found matching \"gt-gastown-polecat-toast\"\n```\n\n## Context from HOP Design\n\nFrom **docs/hop/CONTEXT.md**:\n\u003e \"Each polecat should have a chain: What work have they done? What's their success rate? What skills have they demonstrated?\"\n\nFrom **docs/PRIMING.md**:\n\u003e \"Polecats are ephemeral executors. Like K8s pods. They have names (for debugging, logs) but no persistent identity.\"\n\n**Resolution**: Polecat *sessions* are ephemeral, but polecat *names* (toast, nux, furiosa, etc.) are recycled and SHOULD have persistent identity beads. The name is the identity - sessions come and go.\n\nThink of it like K8s:\n- **Pod** = polecat session (ephemeral, killed after task)\n- **ServiceAccount** = polecat identity bead (persistent, accumulates history)\n\n## Solution\n\n`bd agent state` should **auto-create** the agent bead on first use:\n\n```go\n// If agent bead doesn't exist, create it\nif errors.Is(err, ErrNotFound) {\n // Create identity bead for this agent\n _, err = CreateIssue(Issue{\n Title: fmt.Sprintf(\"Agent: %s\", agentName),\n Type: \"agent\",\n Status: state,\n Metadata: map[string]string{\n \"role\": parseRole(agentName), // polecat, witness, etc.\n \"rig\": parseRig(agentName), // gastown, beads, etc.\n },\n })\n}\n```\n\nThis enables:\n1. Work history accumulation per polecat name\n2. Skill/success tracking over time\n3. CV chain for the polecat identity\n4. `bd list --type=agent` to see all agents\n\n## Non-goals\n\n- Session tracking (ephemeral, don't persist)\n- Work attribution to polecat (credits human owner)\n- Agent scheduling (Gas Town handles that)","status":"closed","priority":3,"issue_type":"bug","created_at":"2026-01-02T12:16:39.116652-08:00","updated_at":"2026-01-02T12:27:05.679183-08:00","closed_at":"2026-01-02T12:27:05.679183-08:00","close_reason":"Implemented auto-create logic in runAgentState to create agent beads on first use","created_by":"mayor"} +{"id":"bd-vivkq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T15:31:10.803986-08:00","updated_at":"2026-01-13T15:31:10.877668-08:00","closed_at":"2026-01-13T15:31:10.877668-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-vizy","title":"Deprecate bump-version.sh script","description":"The bump-version.sh script is now legacy. The formula is the authority for release mechanics.\n\n## Options\n\n1. **Add deprecation notice** (minimal change)\n - Add warning at top of script pointing to formula\n - Keep script working for quick manual releases\n\n2. **Convert to formula wrapper** (medium change)\n - Script becomes: `bd mol execute beads-release --var version=$1`\n - Maintains CLI convenience while using formula\n\n3. **Remove entirely** (breaking change)\n - Delete scripts/bump-version.sh\n - Update any docs referencing it\n - Formula is the only way to release\n\n## Recommendation\nOption 2 - keeps convenience of `./scripts/bump-version.sh 0.47.0` but executes via formula, getting all the durability/visibility benefits.\n\n## Acceptance Criteria\n- [ ] Script has deprecation notice or is removed\n- [ ] CLAUDE.md and other docs updated if needed\n- [ ] No duplicate release logic (script vs formula)\n","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-07T00:45:32.586506-08:00","updated_at":"2026-01-07T00:45:32.586506-08:00","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-vizy","depends_on_id":"bd-a854","type":"blocks","created_at":"2026-01-07T00:45:48.380809-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-vizy","depends_on_id":"bd-z8xz","type":"parent-child","created_at":"2026-01-07T00:45:40.527149-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-vjas","title":"Add --pretty flag to bd ready","description":"bd list has --pretty but bd ready doesn't. Should support same tree format with status/priority symbols for consistency.","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-31T11:54:59.911409-08:00","updated_at":"2026-01-01T11:16:53.096168-08:00","closed_at":"2026-01-01T11:16:53.096168-08:00","close_reason":"Implemented --pretty flag for bd ready","created_by":"mayor"} +{"id":"bd-vjdt","title":"Add bd doctor check for JSONL/SQLite/git divergence","description":"Part of GH#885 fix: recovery mechanism. Add new doctor check that detects: 1) JSONL on disk differs from git HEAD version, 2) SQLite last_import_time does not match JSONL mtime, 3) Uncommitted .beads/ changes exist. Auto-fix options: re-export from SQLite, re-import from JSONL, or commit pending changes. Key file: cmd/bd/doctor/fix/sync.go","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-04T13:53:43.848369-08:00","updated_at":"2026-01-04T15:22:08.704257-08:00","closed_at":"2026-01-04T15:14:01.129418-08:00","close_reason":"Implemented CheckSyncDivergence doctor check","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-vjdt","depends_on_id":"bd-pnx2","type":"parent-child","created_at":"2026-01-04T13:53:55.84741-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-vks2","title":"bd dep tree doesn't display external dependencies","description":"GetDependencyTree (dependencies.go:464-624) uses a recursive CTE that JOINs with the issues table, which means external refs (external:project:capability) are invisible in the tree output.\n\nWhen an issue has an external blocking dependency, running 'bd dep tree \u003cid\u003e' won't show it.\n\nOptions:\n1. Query dependencies table separately for external refs and display them as leaf nodes\n2. Add a synthetic 'external' node type that shows the ref and resolution status\n3. Document that external deps aren't shown in tree view (use bd show for full deps)\n\nLower priority since bd show \u003cid\u003e displays all dependencies including external refs.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-21T23:45:27.121934-08:00","updated_at":"2025-12-22T22:30:19.083652-08:00","closed_at":"2025-12-22T22:30:19.083652-08:00","dependencies":[{"issue_id":"bd-vks2","depends_on_id":"bd-zmmy","type":"discovered-from","created_at":"2025-12-21T23:45:27.122511-08:00","created_by":"daemon"}]} -{"id":"bd-vln0","title":"Add display guards for large molecules in bd mol current","description":"When molecule has \u003e100 steps, show summary instead of list.\n\nChanges:\n1. Count children first\n2. If count \u003e 100: show summary + pointer to bd mol progress\n3. Add --range flag for viewing specific step ranges\n4. Add --limit flag for capping output","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-31T00:52:52.823925-08:00","created_by":"gastown/crew/max","updated_at":"2025-12-31T13:08:19.539445-08:00","closed_at":"2025-12-31T13:08:19.539445-08:00","close_reason":"Added display guards: threshold check, --limit and --range flags","dependencies":[{"issue_id":"bd-vln0","depends_on_id":"bd-5nu1","type":"parent-child","created_at":"2025-12-31T00:54:00.833563-08:00","created_by":"gastown/crew/max"}]} -{"id":"bd-vnwnz","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:48:33.025101-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-09T13:48:33.060533-08:00","closed_at":"2026-01-09T13:48:33.060533-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-vln0","title":"Add display guards for large molecules in bd mol current","description":"When molecule has \u003e100 steps, show summary instead of list.\n\nChanges:\n1. Count children first\n2. If count \u003e 100: show summary + pointer to bd mol progress\n3. Add --range flag for viewing specific step ranges\n4. Add --limit flag for capping output","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-31T00:52:52.823925-08:00","updated_at":"2025-12-31T13:08:19.539445-08:00","closed_at":"2025-12-31T13:08:19.539445-08:00","close_reason":"Added display guards: threshold check, --limit and --range flags","created_by":"gastown/crew/max","dependencies":[{"issue_id":"bd-vln0","depends_on_id":"bd-5nu1","type":"parent-child","created_at":"2025-12-31T00:54:00.833563-08:00","created_by":"gastown/crew/max"}]} +{"id":"bd-vnwnz","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:48:33.025101-08:00","updated_at":"2026-01-09T13:48:33.060533-08:00","closed_at":"2026-01-09T13:48:33.060533-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} {"id":"bd-vpan","title":"Re: Thread Test 2","description":"Got your message. Testing reply feature.","status":"tombstone","priority":2,"issue_type":"message","created_at":"2025-12-16T18:21:29.144352-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","dependencies":[{"issue_id":"bd-vpan","depends_on_id":"bd-x36g","type":"replies-to","created_at":"2025-12-18T13:45:31.137191-08:00","created_by":"migration"}],"deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"message"} -{"id":"bd-vpx7","title":"Add tests for bd update prefix routing","description":"Commit e2126831 added prefix routing to bd update but there are no update tests at all.\n\nbd update now uses resolveAndGetIssueWithRouting in direct mode, enabling\ncross-rig issue updates via prefix-based routing (like bd show).\n\nTest cases needed:\n- Update issue in current rig works\n- Update issue in different rig via prefix routing\n- Multiple ID updates with mixed routing\n- Error handling for non-existent IDs\n- Status update propagates correctly\n- Multiple field updates in single call\n\nLocation: cmd/bd/update.go\nSuggested test file: cmd/bd/update_test.go (new file needed)","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-07T01:18:13.499616-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T01:18:13.499616-08:00"} -{"id":"bd-vqh9","title":"Code smell: init.go is 1928 lines - needs splitting","description":"cmd/bd/init.go is 1928 lines covering multiple init modes, contributor/team setup, hooks setup, and stealth mode.\n\n**Problem:**\n- File is too large to understand and maintain\n- Multiple responsibilities within single file\n- Harder to test individual components\n\n**Acceptance Criteria:**\n- [ ] Split into logical files (init_setup.go, init_hooks.go, init_stealth.go, etc.)\n- [ ] Each file under 500 lines\n- [ ] No functionality changes\n- [ ] Tests pass","status":"closed","priority":2,"issue_type":"chore","created_at":"2025-12-28T18:58:59.37092-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T19:01:18.403417-08:00","closed_at":"2025-12-28T19:01:18.403417-08:00","dependencies":[{"issue_id":"bd-vqh9","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.586968-08:00","created_by":"daemon"}]} -{"id":"bd-vqm0","title":"Swarm: Code Review: Swarm commands consolidation","description":"Swarm molecule orchestrating epic bd-2ubv.\n\nEpic: bd-2ubv\nCoordinator: ","status":"closed","priority":2,"issue_type":"molecule","created_at":"2025-12-28T22:06:58.82489-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-29T13:40:29.709541-08:00","closed_at":"2025-12-29T13:40:29.709541-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates","dependencies":[{"issue_id":"bd-vqm0","depends_on_id":"bd-2ubv","type":"relates-to","created_at":"2025-12-28T22:06:58.825608-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-vrctp","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:33:53.652228-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T23:33:53.718996-08:00","closed_at":"2026-01-12T23:33:53.718996-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-vpx7","title":"Add tests for bd update prefix routing","description":"Commit e2126831 added prefix routing to bd update but there are no update tests at all.\n\nbd update now uses resolveAndGetIssueWithRouting in direct mode, enabling\ncross-rig issue updates via prefix-based routing (like bd show).\n\nTest cases needed:\n- Update issue in current rig works\n- Update issue in different rig via prefix routing\n- Multiple ID updates with mixed routing\n- Error handling for non-existent IDs\n- Status update propagates correctly\n- Multiple field updates in single call\n\nLocation: cmd/bd/update.go\nSuggested test file: cmd/bd/update_test.go (new file needed)","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-07T01:18:13.499616-08:00","updated_at":"2026-01-07T01:18:13.499616-08:00","created_by":"beads/crew/emma"} +{"id":"bd-vqh9","title":"Code smell: init.go is 1928 lines - needs splitting","description":"cmd/bd/init.go is 1928 lines covering multiple init modes, contributor/team setup, hooks setup, and stealth mode.\n\n**Problem:**\n- File is too large to understand and maintain\n- Multiple responsibilities within single file\n- Harder to test individual components\n\n**Acceptance Criteria:**\n- [ ] Split into logical files (init_setup.go, init_hooks.go, init_stealth.go, etc.)\n- [ ] Each file under 500 lines\n- [ ] No functionality changes\n- [ ] Tests pass","status":"closed","priority":2,"issue_type":"chore","created_at":"2025-12-28T18:58:59.37092-08:00","updated_at":"2025-12-28T19:01:18.403417-08:00","closed_at":"2025-12-28T19:01:18.403417-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-vqh9","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.586968-08:00","created_by":"daemon"}]} +{"id":"bd-vqm0","title":"Swarm: Code Review: Swarm commands consolidation","description":"Swarm molecule orchestrating epic bd-2ubv.\n\nEpic: bd-2ubv\nCoordinator: ","status":"closed","priority":2,"issue_type":"molecule","created_at":"2025-12-28T22:06:58.82489-08:00","updated_at":"2025-12-29T13:40:29.709541-08:00","closed_at":"2025-12-29T13:40:29.709541-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-vqm0","depends_on_id":"bd-2ubv","type":"relates-to","created_at":"2025-12-28T22:06:58.825608-08:00","created_by":"beads/crew/dave"}]} +{"id":"bd-vrctp","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T23:33:53.652228-08:00","updated_at":"2026-01-12T23:33:53.718996-08:00","closed_at":"2026-01-12T23:33:53.718996-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-vs9","title":"Fix unparam unused parameter in cmd/bd/doctor.go:541","description":"Linting issue: checkHooksQuick - path is unused (unparam) at cmd/bd/doctor.go:541:22. Error: func checkHooksQuick(path string) string {","status":"tombstone","priority":0,"issue_type":"bug","created_at":"2025-12-07T15:35:17.02177046-07:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} -{"id":"bd-vtl0q","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:17:00.785396-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T11:17:00.851225-08:00","closed_at":"2026-01-13T11:17:00.851225-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-vtpd4","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:28:01.836025-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T00:28:01.905304-08:00","closed_at":"2026-01-12T00:28:01.905304-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-vtzp8","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T18:46:21.955493-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T18:46:22.01815-08:00","closed_at":"2026-01-12T18:46:22.01815-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-vuc2","title":"Test issue B","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-04T11:26:51.502286-08:00","created_by":"beads/polecats/onyx","updated_at":"2026-01-04T11:27:38.789774-08:00","closed_at":"2026-01-04T11:27:38.789774-08:00","close_reason":"test cleanup"} -{"id":"bd-vut6r","title":"Review and merge PR #1056: bump golang.org/x/sys v0.39→v0.40","description":"dispatched_by: beads/crew/emma\n\n## Easy-win PR Review\n\nPR: https://github.com/steveyegge/beads/pull/1056\nType: Dependabot dependency bump (Go modules)\nChange: golang.org/x/sys 0.39.0 → 0.40.0\n\n## Task\n1. Review the PR diff: `gh pr diff 1056 --repo steveyegge/beads`\n2. Check CI status: `gh pr checks 1056 --repo steveyegge/beads`\n3. If CI passes and diff looks safe, approve and merge:\n `gh pr review 1056 --repo steveyegge/beads --approve`\n `gh pr merge 1056 --repo steveyegge/beads --squash`\n4. Close this bead when done\n\n## Notes\n- Minor version bump, safe standard library extension\n- Adds symbolic constants for cpuid bits","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/giles","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:28:33.889962-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T19:38:45.682508-08:00","closed_at":"2026-01-12T19:38:45.682508-08:00","close_reason":"PR #1056 already merged (commit f827086b)","external_ref":"gh-1056"} -{"id":"bd-vwjl","title":"Witness Patrol","description":"Per-rig worker monitor patrol loop with progressive nudging.","status":"closed","priority":2,"issue_type":"molecule","created_at":"2025-12-27T19:24:01.894777-08:00","created_by":"deacon","updated_at":"2026-01-09T21:15:43.012063-08:00","closed_at":"2026-01-09T21:15:43.012063-08:00","close_reason":"Orphaned patrol molecules"} -{"id":"bd-vx7fp","title":"Race condition: GetLabels missing reconnectMu RLock protection","description":"## Summary\nThe `GetLabels` and `GetLabelsForIssues` functions in `internal/storage/sqlite/labels.go` are missing the `reconnectMu.RLock()` protection that was added to `GetIssue` for GH#607.\n\n## Symptoms\nDaemon logs show repeated errors:\n```\nExport failed: \"failed to get labels for hq-5gr9k: failed to get labels: sql: database is closed\"\n```\n\nThis causes:\n- High CPU (46%+) due to export retry loops\n- File watcher thrash as exports fail and trigger reimports\n\n## Root Cause\nWhen `FreshnessChecker` detects a file modification and calls `reconnect()`:\n1. Export goroutine calls `store.GetLabelsForIssues()`\n2. `reconnect()` acquires write lock and calls `s.db.Close()`\n3. Export goroutine tries to query the now-closed `s.db`\n4. Error: \"database is closed\"\n\n## Fix\nAdd the same RLock pattern used in `GetIssue` (queries.go:257-258):\n```go\ns.reconnectMu.RLock()\ndefer s.reconnectMu.RUnlock()\n```\n\n## Affected Methods (need audit)\n- `GetLabels` - labels.go:84\n- `GetLabelsForIssues` - labels.go:107\n- Likely other methods in labels.go, dependencies.go, transaction.go\n\n## See Also\n- GH#607 (original race condition fix for GetIssue)\n- PR #1034 (incorrectly diagnosed this as polling interval issue)","status":"closed","priority":2,"issue_type":"bug","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T18:02:54.047585-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T18:29:54.827061-08:00","closed_at":"2026-01-12T18:29:54.827061-08:00","close_reason":"Fixed in commit ec1a32b9 - added reconnectMu RLock protection to storage methods","comments":[{"id":16,"issue_id":"bd-vx7fp","author":"beads/crew/dave","text":"## Audit Results\n\nThe race condition affects **many more methods** than initially identified. Here's the full audit of files with unprotected `s.db` access:\n\n| File | Affected Methods |\n|------|-----------------|\n| labels.go | GetLabels, GetLabelsForIssues, GetAllLabels |\n| comments.go | AddComment, DeleteComment, GetIssueComments, GetCommentsForIssues |\n| dependencies.go | GetBlockers, GetDependents, GetAllDependencyRecords, GetAllBlockersCounts, GetAllDependentsCounts, GetBlockingChain |\n| config.go | SetConfig, GetConfig, GetAllConfigs, DeleteConfig, SetMetadata, GetMetadata |\n| dirty.go | MarkDirty, GetDirtyIssueIDs, IsDirty, ClearDirtyIssuesByID |\n| events.go | GetEventsForEntity, GetMoleculeStatusSummary |\n| hash.go | GetExportHash, SetExportHash, ClearExportHashes, GetImportHash, SetImportHash |\n| hash_ids.go | ResolveIDFromHash, EnsureChildPrefixMatches |\n| compact.go | GetCompactableIssues, GetCompactableComments, GetCompactedIssue |\n| batch_ops.go | batch operations |\n| blocked_cache.go | blocked cache operations |\n| epics.go | epic queries |\n| multirepo.go | multi-repo operations |\n\n**Recommended Fix Strategy:**\n1. Create a helper method `withRLock(fn func() error) error` that wraps all db operations\n2. Apply to all public methods that use `s.db`\n3. Or: Add RLock/RUnlock to each method individually (more boilerplate but simpler)\n\nThe high CPU (46%+) in the daemon is caused by export failing → file change → import triggers → export retries in a tight loop.","created_at":"2026-01-13T02:03:16Z"}]} +{"id":"bd-vtl0q","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T11:17:00.785396-08:00","updated_at":"2026-01-13T11:17:00.851225-08:00","closed_at":"2026-01-13T11:17:00.851225-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-vtpd4","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:28:01.836025-08:00","updated_at":"2026-01-12T00:28:01.905304-08:00","closed_at":"2026-01-12T00:28:01.905304-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-vtzp8","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T18:46:21.955493-08:00","updated_at":"2026-01-12T18:46:22.01815-08:00","closed_at":"2026-01-12T18:46:22.01815-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-vuc2","title":"Test issue B","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-04T11:26:51.502286-08:00","updated_at":"2026-01-04T11:27:38.789774-08:00","closed_at":"2026-01-04T11:27:38.789774-08:00","close_reason":"test cleanup","created_by":"beads/polecats/onyx"} +{"id":"bd-vut6r","title":"Review and merge PR #1056: bump golang.org/x/sys v0.39→v0.40","description":"dispatched_by: beads/crew/emma\n\n## Easy-win PR Review\n\nPR: https://github.com/steveyegge/beads/pull/1056\nType: Dependabot dependency bump (Go modules)\nChange: golang.org/x/sys 0.39.0 → 0.40.0\n\n## Task\n1. Review the PR diff: `gh pr diff 1056 --repo steveyegge/beads`\n2. Check CI status: `gh pr checks 1056 --repo steveyegge/beads`\n3. If CI passes and diff looks safe, approve and merge:\n `gh pr review 1056 --repo steveyegge/beads --approve`\n `gh pr merge 1056 --repo steveyegge/beads --squash`\n4. Close this bead when done\n\n## Notes\n- Minor version bump, safe standard library extension\n- Adds symbolic constants for cpuid bits","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T19:28:33.889962-08:00","updated_at":"2026-01-12T19:38:45.682508-08:00","closed_at":"2026-01-12T19:38:45.682508-08:00","close_reason":"PR #1056 already merged (commit f827086b)","created_by":"beads/crew/emma"} +{"id":"bd-vwjl","title":"Witness Patrol","description":"Per-rig worker monitor patrol loop with progressive nudging.","status":"closed","priority":2,"issue_type":"molecule","created_at":"2025-12-27T19:24:01.894777-08:00","updated_at":"2026-01-09T21:15:43.012063-08:00","closed_at":"2026-01-09T21:15:43.012063-08:00","close_reason":"Orphaned patrol molecules","created_by":"deacon"} +{"id":"bd-vx7fp","title":"Race condition: GetLabels missing reconnectMu RLock protection","description":"## Summary\nThe `GetLabels` and `GetLabelsForIssues` functions in `internal/storage/sqlite/labels.go` are missing the `reconnectMu.RLock()` protection that was added to `GetIssue` for GH#607.\n\n## Symptoms\nDaemon logs show repeated errors:\n```\nExport failed: \"failed to get labels for hq-5gr9k: failed to get labels: sql: database is closed\"\n```\n\nThis causes:\n- High CPU (46%+) due to export retry loops\n- File watcher thrash as exports fail and trigger reimports\n\n## Root Cause\nWhen `FreshnessChecker` detects a file modification and calls `reconnect()`:\n1. Export goroutine calls `store.GetLabelsForIssues()`\n2. `reconnect()` acquires write lock and calls `s.db.Close()`\n3. Export goroutine tries to query the now-closed `s.db`\n4. Error: \"database is closed\"\n\n## Fix\nAdd the same RLock pattern used in `GetIssue` (queries.go:257-258):\n```go\ns.reconnectMu.RLock()\ndefer s.reconnectMu.RUnlock()\n```\n\n## Affected Methods (need audit)\n- `GetLabels` - labels.go:84\n- `GetLabelsForIssues` - labels.go:107\n- Likely other methods in labels.go, dependencies.go, transaction.go\n\n## See Also\n- GH#607 (original race condition fix for GetIssue)\n- PR #1034 (incorrectly diagnosed this as polling interval issue)","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-12T18:02:54.047585-08:00","updated_at":"2026-01-12T18:29:54.827061-08:00","closed_at":"2026-01-12T18:29:54.827061-08:00","close_reason":"Fixed in commit ec1a32b9 - added reconnectMu RLock protection to storage methods","created_by":"beads/crew/dave"} {"id":"bd-vxdr","title":"Investigate database pollution - issue count anomalies","description":"Multiple repos showing inflated issue counts suggesting cross-repo pollution:\n- ~/src/dave/beads: 895 issues (675 open) - clearly polluted\n- ~/src/stevey/src/beads: 280 issues (expected ~209-220) - possibly polluted\n\nNeed to investigate:\n1. Source of pollution (multi-repo sync issues?)\n2. How many duplicate/foreign issues exist\n3. Whether recent sync operations caused cross-contamination\n4. How to clean up and prevent future pollution","notes":"Investigation findings:\n\n**Root cause identified:**\n- NOT cross-repo contamination\n- NOT automated test leakage (tests properly use t.TempDir())\n- Manual testing during template feature development (Nov 2-4)\n- Commit ba325a2: \"test issues were accidentally committed during template feature development\"\n\n**Database growth timeline:**\n- Nov 3: 19 issues (baseline)\n- Nov 2-5: +244 issues (massive development spike)\n- Nov 6-7: +40 issues (continued growth)\n- Current: 291 issues → 270 after cleanup\n\n**Test pollution breakdown:**\n- 21 issues matching \"Test \" prefix pattern\n- Most created Nov 2-5 during feature development\n- Pollution from manual `./bd create \"Test issue\"` commands in production workspace\n- All automated tests properly isolated with t.TempDir()\n\n**Cleanup completed:**\n- Ran scripts/cleanup-test-pollution.sh successfully\n- Removed 21 test issues\n- Database reduced from 291 → 270 issues (7.2% cleanup)\n- JSONL synced to git\n\n**Prevention strategy:**\n- Filed follow-up issue for prevention mechanisms\n- Script can be deleted once prevention is in place\n- Tests are already properly isolated - no code changes needed there","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-06T22:34:40.137483-08:00","updated_at":"2025-11-07T16:07:28.274136-08:00","closed_at":"2025-11-07T16:04:02.199807-08:00"} -{"id":"bd-vxp1","title":"Test Parent Epic","status":"tombstone","priority":2,"issue_type":"epic","created_at":"2025-12-27T22:15:17.894209-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-27T22:16:35.925357-08:00","deleted_at":"2025-12-27T22:16:35.925357-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"epic"} -{"id":"bd-vzd6b","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T12:41:16.944832-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T12:41:17.014494-08:00","closed_at":"2026-01-13T12:41:17.014494-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-vxp1","title":"Test Parent Epic","status":"tombstone","priority":2,"issue_type":"epic","created_at":"2025-12-27T22:15:17.894209-08:00","updated_at":"2025-12-27T22:16:35.925357-08:00","created_by":"beads/crew/dave","deleted_at":"2025-12-27T22:16:35.925357-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"epic"} +{"id":"bd-vzd6b","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T12:41:16.944832-08:00","updated_at":"2026-01-13T12:41:17.014494-08:00","closed_at":"2026-01-13T12:41:17.014494-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-vzds","title":"Create git tag v0.33.2","description":"Create the release tag:\n\n```bash\ngit tag v0.33.2\n```\n\nVerify: `git tag | grep 0.33.2`","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T16:10:13.761888-08:00","updated_at":"2025-12-21T17:29:31.791368-08:00","deleted_at":"2025-12-21T17:29:31.791368-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-vzymd","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T05:31:22.192466-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T05:31:22.247752-08:00","closed_at":"2026-01-11T05:31:22.247752-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-vzzeq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:55:56.402827-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T11:55:56.481098-08:00","closed_at":"2026-01-13T11:55:56.481098-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-w03ka","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:42:03.142759-08:00","created_by":"beads/crew/giles","updated_at":"2026-01-07T17:42:03.183031-08:00","closed_at":"2026-01-07T17:42:03.183031-08:00","close_reason":"auto-closed session event"} -{"id":"bd-w05sg","title":"Review PR #16755: Fix PROMPT_PARTS with set -u","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #16755 (anthropics/claude-code)\n\nPR: https://github.com/anthropics/claude-code/pull/16755\nAuthor: KCW89\n\nFixes bash strict mode compatibility in ralph-wiggum.\n- gh pr view 16755 --repo anthropics/claude-code\n- gh pr diff 16755 --repo anthropics/claude-code\n- If good: gh pr merge 16755 --repo anthropics/claude-code --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/wolf","created_at":"2026-01-08T14:20:07.7025-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:29:35.600655-08:00","closed_at":"2026-01-08T14:29:35.600655-08:00","close_reason":"Wrong repo - these were for anthropics/claude-code, not steveyegge/beads"} +{"id":"bd-vzymd","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T05:31:22.192466-08:00","updated_at":"2026-01-11T05:31:22.247752-08:00","closed_at":"2026-01-11T05:31:22.247752-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-vzzeq","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T11:55:56.402827-08:00","updated_at":"2026-01-13T11:55:56.481098-08:00","closed_at":"2026-01-13T11:55:56.481098-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-w03ka","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:42:03.142759-08:00","updated_at":"2026-01-07T17:42:03.183031-08:00","closed_at":"2026-01-07T17:42:03.183031-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/giles"} +{"id":"bd-w05sg","title":"Review PR #16755: Fix PROMPT_PARTS with set -u","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #16755 (anthropics/claude-code)\n\nPR: https://github.com/anthropics/claude-code/pull/16755\nAuthor: KCW89\n\nFixes bash strict mode compatibility in ralph-wiggum.\n- gh pr view 16755 --repo anthropics/claude-code\n- gh pr diff 16755 --repo anthropics/claude-code\n- If good: gh pr merge 16755 --repo anthropics/claude-code --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-08T14:20:07.7025-08:00","updated_at":"2026-01-08T14:29:35.600655-08:00","closed_at":"2026-01-08T14:29:35.600655-08:00","close_reason":"Wrong repo - these were for anthropics/claude-code, not steveyegge/beads","created_by":"beads/crew/emma"} {"id":"bd-w193","title":"Work on beads-399: Add omitempty to JSONL fields for smal...","description":"Work on beads-399: Add omitempty to JSONL fields for smaller notifications. When done, submit MR (not PR) to integration branch for Refinery.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-19T22:55:37.440894-08:00","updated_at":"2025-12-19T23:28:32.42751-08:00","closed_at":"2025-12-19T23:23:09.542288-08:00"} -{"id":"bd-w34vx","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:43:19.039329-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T11:43:19.092415-08:00","closed_at":"2026-01-13T11:43:19.092415-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-w3dyl","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:35:50.518682-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T00:35:50.56488-08:00","closed_at":"2026-01-12T00:35:50.56488-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-w3p92","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T03:25:16.819324-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-13T03:25:16.889913-08:00","closed_at":"2026-01-13T03:25:16.889913-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-w3rh","title":"Phase 4: Cross-Rig Bead Gates","description":"Implement cross-rig bead dependency gates.\n\n## Behavior\n- Gate waits on a bead in another rig\n- Leverage existing external dep resolution via bd sync\n- `bd ready` / `bd sync` resolves naturally\n\n## Implementation\n1. `bd cook` creates gate with external dep on target bead\n2. Gate has `await_type=bead` and `await_id=\u003crig\u003e:\u003cbead-id\u003e`\n3. During bd sync, cross-rig deps are resolved\n4. When target bead closes, gate can close\n\n## Design Question\nShould this piggyback on existing dependency resolution, or have explicit gate check?\n\nOption A: Use existing blocking deps (simpler)\nOption B: Explicit `bd gate check --type=bead` (more control)\n\n## Acceptance Criteria\n- [ ] Gates can reference beads in other rigs\n- [ ] Gate resolves when target bead closes\n- [ ] Works with bd sync for cross-rig resolution","status":"closed","priority":3,"issue_type":"task","assignee":"beads/polecats/onyx","created_at":"2026-01-02T01:55:43.840566-08:00","created_by":"mayor","updated_at":"2026-01-02T13:05:51.785747-08:00","closed_at":"2026-01-02T13:05:51.785747-08:00","close_reason":"Implemented cross-rig bead gates: added await_type=bead with await_id=\u003crig\u003e:\u003cbead-id\u003e format, added bd gate check command with --type=bead support","dependencies":[{"issue_id":"bd-w3rh","depends_on_id":"bd-mcva","type":"parent-child","created_at":"2026-01-02T01:55:53.966328-08:00","created_by":"mayor"}]} -{"id":"bd-w3z7","title":"Move cook to formula subcommand","description":"## Task\nMove `bd cook` → `bd formula cook`\n\n## Implementation\n\n### 1. Update formula.go\n- Add `cookCmd` as subcommand of `formulaCmd`\n- Import necessary packages from cook.go if not already present\n\n### 2. Update cook.go\n- Remove `rootCmd.AddCommand(cookCmd)` from init()\n- Keep the command implementation as-is\n\n### 3. Create hidden alias for backwards compatibility\n- In main.go or aliases file, add:\n ```go\n aliasCmd := \u0026cobra.Command{\n Use: \"cook\",\n Hidden: true,\n Run: func(cmd *cobra.Command, args []string) {\n // Forward to formula cook\n },\n }\n ```\n\n### 4. Update docs\n- docs/MOLECULES.md - if `bd cook` mentioned\n- CHANGELOG.md - add deprecation notice\n\n## Files to modify\n- cmd/bd/formula.go (add subcommand)\n- cmd/bd/cook.go (change registration)\n- cmd/bd/main.go (add hidden alias)\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T15:10:21.169344-08:00","created_by":"mayor","updated_at":"2025-12-27T16:00:56.582141-08:00","closed_at":"2025-12-27T16:00:56.582141-08:00"} -{"id":"bd-w43xt","title":"Review PR #16228: Node 20 to 24 in devcontainer","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #16228 (anthropics/claude-code)\n\nPR: https://github.com/anthropics/claude-code/pull/16228\nAuthor: tomoki10\n\nUpdates Node.js from v20 (maintenance phase) to v24.\n- gh pr view 16228 --repo anthropics/claude-code\n- gh pr diff 16228 --repo anthropics/claude-code\n- If good: gh pr merge 16228 --repo anthropics/claude-code --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/giles","created_at":"2026-01-08T14:20:28.195989-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:29:35.604879-08:00","closed_at":"2026-01-08T14:29:35.604879-08:00","close_reason":"Wrong repo - these were for anthropics/claude-code, not steveyegge/beads"} -{"id":"bd-w479n","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:59:01.778977-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T20:59:01.846915-08:00","closed_at":"2026-01-11T20:59:01.846915-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-w5ke7","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T21:37:16.866979-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T21:15:40.692804-08:00","closed_at":"2026-01-09T21:15:40.692804-08:00","close_reason":"Stale session ended events"} -{"id":"bd-w654","title":"Merge: quartz-1767082908528","description":"branch: polecat/quartz-1767082908528\ntarget: main\nsource_issue: quartz-1767082908528\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T00:24:52.846909-08:00","created_by":"beads/polecats/quartz","updated_at":"2025-12-30T00:54:59.720022-08:00","closed_at":"2025-12-30T00:54:59.720022-08:00","close_reason":"Branch polecat/quartz-1767082908528 no longer exists on remote"} -{"id":"bd-w662z","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:21:00.574006-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T16:21:00.642384-08:00","closed_at":"2026-01-10T16:21:00.642384-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-w68o3","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:42:00.78869-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T19:42:00.856587-08:00","closed_at":"2026-01-12T19:42:00.856587-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-w6g4w","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T05:00:27.420661-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T05:00:27.46446-08:00","closed_at":"2026-01-11T05:00:27.46446-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-w7wex","title":"bd mol cook: create gate beads for gate steps","description":"When cooking a molecule, if a step has a gate field:\n\n1. Create a gate bead with ID: \u003cmol-id\u003e.gate-\u003cstep-id\u003e\n2. Set await_type from step gate field\n3. Set await_id from step gate_hint (or empty for auto-discovery)\n4. Set timeout from step timeout field\n5. Gate bead starts with status=open\n\nThe gate bead implicitly blocks the step. Step cannot proceed until gate closes.\n\nParent: bd-ka761","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-08T20:53:57.201927-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T21:09:25.120036-08:00","closed_at":"2026-01-08T21:09:25.120036-08:00","close_reason":"Already implemented: createGateIssue() in cook.go creates gate beads with ID format \u003cmol-id\u003e.gate-\u003cstep-id\u003e, sets await_type/await_id/timeout. collectSteps() adds gate as blocking dependency. Tests in cook_test.go verify all functionality.","dependencies":[{"issue_id":"bd-w7wex","depends_on_id":"bd-ka761","type":"parent-child","created_at":"2026-01-08T20:54:04.024526-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-w7wex","depends_on_id":"bd-7m0d2","type":"blocks","created_at":"2026-01-08T20:54:11.62344-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-w34vx","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T11:43:19.039329-08:00","updated_at":"2026-01-13T11:43:19.092415-08:00","closed_at":"2026-01-13T11:43:19.092415-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-w3dyl","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:35:50.518682-08:00","updated_at":"2026-01-12T00:35:50.56488-08:00","closed_at":"2026-01-12T00:35:50.56488-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-w3p92","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T03:25:16.819324-08:00","updated_at":"2026-01-13T03:25:16.889913-08:00","closed_at":"2026-01-13T03:25:16.889913-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} +{"id":"bd-w3rh","title":"Phase 4: Cross-Rig Bead Gates","description":"Implement cross-rig bead dependency gates.\n\n## Behavior\n- Gate waits on a bead in another rig\n- Leverage existing external dep resolution via bd sync\n- `bd ready` / `bd sync` resolves naturally\n\n## Implementation\n1. `bd cook` creates gate with external dep on target bead\n2. Gate has `await_type=bead` and `await_id=\u003crig\u003e:\u003cbead-id\u003e`\n3. During bd sync, cross-rig deps are resolved\n4. When target bead closes, gate can close\n\n## Design Question\nShould this piggyback on existing dependency resolution, or have explicit gate check?\n\nOption A: Use existing blocking deps (simpler)\nOption B: Explicit `bd gate check --type=bead` (more control)\n\n## Acceptance Criteria\n- [ ] Gates can reference beads in other rigs\n- [ ] Gate resolves when target bead closes\n- [ ] Works with bd sync for cross-rig resolution","status":"closed","priority":3,"issue_type":"task","created_at":"2026-01-02T01:55:43.840566-08:00","updated_at":"2026-01-02T13:05:51.785747-08:00","closed_at":"2026-01-02T13:05:51.785747-08:00","close_reason":"Implemented cross-rig bead gates: added await_type=bead with await_id=\u003crig\u003e:\u003cbead-id\u003e format, added bd gate check command with --type=bead support","created_by":"mayor","dependencies":[{"issue_id":"bd-w3rh","depends_on_id":"bd-mcva","type":"parent-child","created_at":"2026-01-02T01:55:53.966328-08:00","created_by":"mayor"}]} +{"id":"bd-w3z7","title":"Move cook to formula subcommand","description":"## Task\nMove `bd cook` → `bd formula cook`\n\n## Implementation\n\n### 1. Update formula.go\n- Add `cookCmd` as subcommand of `formulaCmd`\n- Import necessary packages from cook.go if not already present\n\n### 2. Update cook.go\n- Remove `rootCmd.AddCommand(cookCmd)` from init()\n- Keep the command implementation as-is\n\n### 3. Create hidden alias for backwards compatibility\n- In main.go or aliases file, add:\n ```go\n aliasCmd := \u0026cobra.Command{\n Use: \"cook\",\n Hidden: true,\n Run: func(cmd *cobra.Command, args []string) {\n // Forward to formula cook\n },\n }\n ```\n\n### 4. Update docs\n- docs/MOLECULES.md - if `bd cook` mentioned\n- CHANGELOG.md - add deprecation notice\n\n## Files to modify\n- cmd/bd/formula.go (add subcommand)\n- cmd/bd/cook.go (change registration)\n- cmd/bd/main.go (add hidden alias)\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T15:10:21.169344-08:00","updated_at":"2025-12-27T16:00:56.582141-08:00","closed_at":"2025-12-27T16:00:56.582141-08:00","created_by":"mayor"} +{"id":"bd-w43xt","title":"Review PR #16228: Node 20 to 24 in devcontainer","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #16228 (anthropics/claude-code)\n\nPR: https://github.com/anthropics/claude-code/pull/16228\nAuthor: tomoki10\n\nUpdates Node.js from v20 (maintenance phase) to v24.\n- gh pr view 16228 --repo anthropics/claude-code\n- gh pr diff 16228 --repo anthropics/claude-code\n- If good: gh pr merge 16228 --repo anthropics/claude-code --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-08T14:20:28.195989-08:00","updated_at":"2026-01-08T14:29:35.604879-08:00","closed_at":"2026-01-08T14:29:35.604879-08:00","close_reason":"Wrong repo - these were for anthropics/claude-code, not steveyegge/beads","created_by":"beads/crew/emma"} +{"id":"bd-w479n","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T20:59:01.778977-08:00","updated_at":"2026-01-11T20:59:01.846915-08:00","closed_at":"2026-01-11T20:59:01.846915-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-w5ke7","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T21:37:16.866979-08:00","updated_at":"2026-01-09T21:15:40.692804-08:00","closed_at":"2026-01-09T21:15:40.692804-08:00","close_reason":"Stale session ended events","created_by":"beads/crew/emma"} +{"id":"bd-w654","title":"Merge: quartz-1767082908528","description":"branch: polecat/quartz-1767082908528\ntarget: main\nsource_issue: quartz-1767082908528\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T00:24:52.846909-08:00","updated_at":"2025-12-30T00:54:59.720022-08:00","closed_at":"2025-12-30T00:54:59.720022-08:00","close_reason":"Branch polecat/quartz-1767082908528 no longer exists on remote","created_by":"beads/polecats/quartz"} +{"id":"bd-w662z","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:21:00.574006-08:00","updated_at":"2026-01-10T16:21:00.642384-08:00","closed_at":"2026-01-10T16:21:00.642384-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-w68o3","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:42:00.78869-08:00","updated_at":"2026-01-12T19:42:00.856587-08:00","closed_at":"2026-01-12T19:42:00.856587-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-w6g4w","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T05:00:27.420661-08:00","updated_at":"2026-01-11T05:00:27.46446-08:00","closed_at":"2026-01-11T05:00:27.46446-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-w7wex","title":"bd mol cook: create gate beads for gate steps","description":"When cooking a molecule, if a step has a gate field:\n\n1. Create a gate bead with ID: \u003cmol-id\u003e.gate-\u003cstep-id\u003e\n2. Set await_type from step gate field\n3. Set await_id from step gate_hint (or empty for auto-discovery)\n4. Set timeout from step timeout field\n5. Gate bead starts with status=open\n\nThe gate bead implicitly blocks the step. Step cannot proceed until gate closes.\n\nParent: bd-ka761","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-08T20:53:57.201927-08:00","updated_at":"2026-01-08T21:09:25.120036-08:00","closed_at":"2026-01-08T21:09:25.120036-08:00","close_reason":"Already implemented: createGateIssue() in cook.go creates gate beads with ID format \u003cmol-id\u003e.gate-\u003cstep-id\u003e, sets await_type/await_id/timeout. collectSteps() adds gate as blocking dependency. Tests in cook_test.go verify all functionality.","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-w7wex","depends_on_id":"bd-ka761","type":"parent-child","created_at":"2026-01-08T20:54:04.024526-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-w7wex","depends_on_id":"bd-7m0d2","type":"blocks","created_at":"2026-01-08T20:54:11.62344-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-w8g0","title":"test pin issue","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-20T22:44:27.963361-08:00","updated_at":"2025-12-20T22:44:57.977229-08:00","deleted_at":"2025-12-20T22:44:57.977229-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"task"} -{"id":"bd-w8v5","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T01:08:44.900466-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T01:08:44.93215-08:00","closed_at":"2026-01-07T01:08:44.93215-08:00","close_reason":"auto-closed session event"} +{"id":"bd-w8v5","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T01:08:44.900466-08:00","updated_at":"2026-01-07T01:08:44.93215-08:00","closed_at":"2026-01-07T01:08:44.93215-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-wa2l","title":"bd cook: Compile formula to proto","description":"Implement the 'bd cook' command that transforms formulas into protos:\n\nUsage: bd cook \u003cformula-file\u003e [options]\n bd cook .beads/formulas/*.formula.yaml\n\nProcess:\n1. Parse formula YAML (uses formula parser)\n2. Resolve extends (formula inheritance)\n3. Expand macros (expansion rules)\n4. Apply aspects (cross-cutting concerns)\n5. Generate flat proto bead\n\nOutput:\n- Creates proto bead in .beads/ with mol-prefix\n- Proto has all steps pre-expanded\n- Proto is ready for pour/wisp instantiation\n\nExample:\n bd cook .beads/formulas/mol-deacon-patrol.formula.yaml\n → Creates mol-deacon-patrol proto bead\n\nGas Town tracking: gt-8tmz.13","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-24T13:19:53.66483-08:00","updated_at":"2025-12-24T13:44:20.020124-08:00","closed_at":"2025-12-24T13:44:20.020124-08:00","dependencies":[{"issue_id":"bd-wa2l","depends_on_id":"bd-weu8","type":"blocks","created_at":"2025-12-24T13:20:00.070003-08:00","created_by":"daemon"}]} -{"id":"bd-wayc3","title":"Fix redirect + sync-branch incompatibility for crew workers","description":"## Problem\n\nRedirect and sync-branch are fundamentally incompatible when used together:\n\n1. **Redirect** points `.beads/` to another repo (e.g., `crew/dave/.beads/redirect` -\u003e `mayor/rig/.beads`)\n2. **Sync-branch** creates a worktree in the LOCAL repo to commit `.beads/` changes\n3. Git rejects commits because the redirected path is \"outside repository\"\n\nError observed:\n```\ngit status failed in worktree: exit status 128\nfatal: ../../mayor/rig/.beads is outside repository\n```\n\nAdditionally, config drift: mayor uses `beads-metadata`, dave uses `beads-sync`. Multiple sync branches for shared data = chaos.\n\n## Root Cause\n\nRedirect says: \"My database is over there (I am a client)\"\nSync-branch says: \"I own my database and sync it myself\"\n\nThese are mutually exclusive ownership models.\n\n## Design Decision (Option B)\n\nRedirect and sync-branch are mutually exclusive by design.\n\nFor crew workers:\n- Mayor owns the canonical rig database\n- Crew workers share via redirect\n- Mayor daemon handles sync-branch operations\n- Crew workers should NOT have sync-branch configured\n\n## Changes Required\n\n1. bd sync: Detect redirect and skip sync-branch (log message, still do import/export)\n2. bd doctor: Warn on redirect + sync-branch conflict\n3. Standardize on beads-sync branch name (delete beads-metadata)\n4. Fix crew worker configs (clear sync-branch from redirected clones)\n\n## Acceptance Criteria\n\n- [ ] bd sync gracefully skips sync-branch when redirect is active\n- [ ] bd doctor warns on redirect + sync-branch conflict\n- [ ] beads-metadata branch is DELETED from origin\n- [ ] All sync-branch configs standardized to beads-sync\n- [ ] Crew workers with redirect have no sync-branch config\n- [ ] Documentation updated\n\n## Files Likely Affected\n\n- cmd/bd/sync_branch.go\n- cmd/bd/doctor/\n- internal/beads/beads.go\n- docs/","status":"closed","priority":1,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T00:37:59.757633-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-13T01:27:19.909301-08:00","closed_at":"2026-01-13T01:27:19.909301-08:00","close_reason":"Closed"} -{"id":"bd-wb9g","title":"Relocate thanks command to bd info --thanks","description":"## Task\nMove `bd thanks` → `bd info --thanks`\n\n## Implementation\n\n### 1. Update info.go\n- Add `--thanks` flag\n- Import thanks.go display logic\n- When --thanks flag set, call thanks display function\n\n### 2. Update thanks.go\n- Export the display function (rename to public)\n- Remove rootCmd.AddCommand()\n- Optionally keep as hidden alias\n\n### 3. Update docs\n- README.md if mentioned\n- CHANGELOG.md - deprecation notice\n\n## Files to modify\n- cmd/bd/info.go\n- cmd/bd/thanks.go\n","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-27T15:11:10.019562-08:00","created_by":"mayor","updated_at":"2025-12-27T16:08:21.488428-08:00","closed_at":"2025-12-27T16:08:21.488428-08:00"} -{"id":"bd-wbpiw","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:35:23.71105-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:35:23.745619-08:00","closed_at":"2026-01-08T14:35:23.745619-08:00","close_reason":"auto-closed session event"} +{"id":"bd-wayc3","title":"Fix redirect + sync-branch incompatibility for crew workers","description":"## Problem\n\nRedirect and sync-branch are fundamentally incompatible when used together:\n\n1. **Redirect** points `.beads/` to another repo (e.g., `crew/dave/.beads/redirect` -\u003e `mayor/rig/.beads`)\n2. **Sync-branch** creates a worktree in the LOCAL repo to commit `.beads/` changes\n3. Git rejects commits because the redirected path is \"outside repository\"\n\nError observed:\n```\ngit status failed in worktree: exit status 128\nfatal: ../../mayor/rig/.beads is outside repository\n```\n\nAdditionally, config drift: mayor uses `beads-metadata`, dave uses `beads-sync`. Multiple sync branches for shared data = chaos.\n\n## Root Cause\n\nRedirect says: \"My database is over there (I am a client)\"\nSync-branch says: \"I own my database and sync it myself\"\n\nThese are mutually exclusive ownership models.\n\n## Design Decision (Option B)\n\nRedirect and sync-branch are mutually exclusive by design.\n\nFor crew workers:\n- Mayor owns the canonical rig database\n- Crew workers share via redirect\n- Mayor daemon handles sync-branch operations\n- Crew workers should NOT have sync-branch configured\n\n## Changes Required\n\n1. bd sync: Detect redirect and skip sync-branch (log message, still do import/export)\n2. bd doctor: Warn on redirect + sync-branch conflict\n3. Standardize on beads-sync branch name (delete beads-metadata)\n4. Fix crew worker configs (clear sync-branch from redirected clones)\n\n## Acceptance Criteria\n\n- [ ] bd sync gracefully skips sync-branch when redirect is active\n- [ ] bd doctor warns on redirect + sync-branch conflict\n- [ ] beads-metadata branch is DELETED from origin\n- [ ] All sync-branch configs standardized to beads-sync\n- [ ] Crew workers with redirect have no sync-branch config\n- [ ] Documentation updated\n\n## Files Likely Affected\n\n- cmd/bd/sync_branch.go\n- cmd/bd/doctor/\n- internal/beads/beads.go\n- docs/","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-13T00:37:59.757633-08:00","updated_at":"2026-01-13T01:27:19.909301-08:00","closed_at":"2026-01-13T01:27:19.909301-08:00","close_reason":"Closed","created_by":"beads/crew/dave"} +{"id":"bd-wb9g","title":"Relocate thanks command to bd info --thanks","description":"## Task\nMove `bd thanks` → `bd info --thanks`\n\n## Implementation\n\n### 1. Update info.go\n- Add `--thanks` flag\n- Import thanks.go display logic\n- When --thanks flag set, call thanks display function\n\n### 2. Update thanks.go\n- Export the display function (rename to public)\n- Remove rootCmd.AddCommand()\n- Optionally keep as hidden alias\n\n### 3. Update docs\n- README.md if mentioned\n- CHANGELOG.md - deprecation notice\n\n## Files to modify\n- cmd/bd/info.go\n- cmd/bd/thanks.go\n","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-27T15:11:10.019562-08:00","updated_at":"2025-12-27T16:08:21.488428-08:00","closed_at":"2025-12-27T16:08:21.488428-08:00","created_by":"mayor"} +{"id":"bd-wbpiw","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:35:23.71105-08:00","updated_at":"2026-01-08T14:35:23.745619-08:00","closed_at":"2026-01-08T14:35:23.745619-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-wc2","title":"Test body-file","description":"This is a test description from a file.\n\nIt has multiple lines.\n","status":"tombstone","priority":4,"issue_type":"task","created_at":"2025-12-17T17:27:20.508724-08:00","updated_at":"2025-12-25T01:21:01.952723-08:00","deleted_at":"2025-12-25T01:21:01.952723-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-wcfeu","title":"Review and test PR #975: sync --import-only fix","description":"dispatched_by: beads/crew/emma\n\nReview PR #975 from juanre that fixes sync --import-only failing with 'no database store available' when daemon was connected.\n\n## PR Details\n- URL: https://github.com/steveyegge/beads/pull/975\n- Author: juanre\n- Additions: 143 (mostly test code), Deletions: 0\n\n## Fix Summary\nWhen running bd sync --import-only while daemon is connected:\n1. PersistentPreRun connects to daemon, returns early without initializing store\n2. sync command closes daemon connection\n3. sync --import-only calls importFromJSONLInline which requires store != nil\n4. Fix: call ensureStoreActive() after closing daemon in sync.go\n\n## Your Task\n1. Fetch and checkout the PR branch locally\n2. Run tests: go test ./...\n3. Verify the specific test passes: go test -run TestImportFromJSONLInlineAfterDaemonDisconnect ./cmd/bd/\n4. Review the code change in cmd/bd/sync.go (6 lines)\n5. If everything looks good, approve and merge the PR\n\n## Commands\ngit fetch origin pull/975/head:pr-975\ngit checkout pr-975\ngo test ./...\ngh pr review 975 --repo steveyegge/beads --approve\ngh pr merge 975 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/dave","created_at":"2026-01-09T13:44:11.403407-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T13:45:43.994469-08:00","closed_at":"2026-01-09T13:45:43.994469-08:00","close_reason":"PR #975 already merged by steveyegge. Verified fix adds ensureStoreActive() after daemon disconnect in sync.go, with comprehensive test."} +{"id":"bd-wcfeu","title":"Review and test PR #975: sync --import-only fix","description":"dispatched_by: beads/crew/emma\n\nReview PR #975 from juanre that fixes sync --import-only failing with 'no database store available' when daemon was connected.\n\n## PR Details\n- URL: https://github.com/steveyegge/beads/pull/975\n- Author: juanre\n- Additions: 143 (mostly test code), Deletions: 0\n\n## Fix Summary\nWhen running bd sync --import-only while daemon is connected:\n1. PersistentPreRun connects to daemon, returns early without initializing store\n2. sync command closes daemon connection\n3. sync --import-only calls importFromJSONLInline which requires store != nil\n4. Fix: call ensureStoreActive() after closing daemon in sync.go\n\n## Your Task\n1. Fetch and checkout the PR branch locally\n2. Run tests: go test ./...\n3. Verify the specific test passes: go test -run TestImportFromJSONLInlineAfterDaemonDisconnect ./cmd/bd/\n4. Review the code change in cmd/bd/sync.go (6 lines)\n5. If everything looks good, approve and merge the PR\n\n## Commands\ngit fetch origin pull/975/head:pr-975\ngit checkout pr-975\ngo test ./...\ngh pr review 975 --repo steveyegge/beads --approve\ngh pr merge 975 --repo steveyegge/beads --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-09T13:44:11.403407-08:00","updated_at":"2026-01-09T13:45:43.994469-08:00","closed_at":"2026-01-09T13:45:43.994469-08:00","close_reason":"PR #975 already merged by steveyegge. Verified fix adds ensureStoreActive() after daemon disconnect in sync.go, with comprehensive test.","created_by":"beads/crew/emma"} {"id":"bd-wcl","title":"Document CLI + hooks as recommended approach over MCP","description":"Update documentation to position CLI + bd prime hooks as the primary recommended approach over MCP server, explaining why minimizing context matters even with large context windows (compute cost, energy, environment, latency).","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-12T00:15:25.923025-08:00","updated_at":"2025-12-09T18:38:37.707666172-05:00","closed_at":"2025-11-26T18:06:51.020351-08:00"} {"id":"bd-wd0g3","title":"Digest: mol-refinery-patrol","description":"Patrol: queue empty, inbox clear, no branches to merge","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T16:44:00.484253-08:00","updated_at":"2026-01-12T16:44:00.484253-08:00","closed_at":"2026-01-12T16:44:00.4842-08:00","close_reason":"Squashed from 5 wisps","dependencies":[{"issue_id":"bd-wd0g3","depends_on_id":"bd-wisp-ec4","type":"parent-child","created_at":"2026-01-12T16:44:00.485214-08:00","created_by":"beads/refinery"}]} -{"id":"bd-wdn03","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:32:30.54266-08:00","created_by":"beads/witness","updated_at":"2026-01-10T21:32:30.585178-08:00","closed_at":"2026-01-10T21:32:30.585178-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-wdp83","title":"Add 'quality_score' field for aggregate quality metric","description":"dispatched_by: beads/crew/emma\n\nAdd float32 field (0.0-1.0) for aggregate quality score on issues. Validators (Refineries) can populate on merge. Foundation for proof-of-stake reputation. Distinct from per-Validation.Score.","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/wolf","created_at":"2026-01-10T16:34:07.238429-08:00","created_by":"gastown/crew/max","updated_at":"2026-01-10T19:34:18.170174-08:00","closed_at":"2026-01-10T19:34:18.170174-08:00","close_reason":"Implementation complete","dependencies":[{"issue_id":"bd-wdp83","depends_on_id":"bd-imi7w","type":"parent-child","created_at":"2026-01-10T16:34:21.616554-08:00","created_by":"gastown/crew/max"}]} +{"id":"bd-wdn03","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:32:30.54266-08:00","updated_at":"2026-01-10T21:32:30.585178-08:00","closed_at":"2026-01-10T21:32:30.585178-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} +{"id":"bd-wdp83","title":"Add 'quality_score' field for aggregate quality metric","description":"dispatched_by: beads/crew/emma\n\nAdd float32 field (0.0-1.0) for aggregate quality score on issues. Validators (Refineries) can populate on merge. Foundation for proof-of-stake reputation. Distinct from per-Validation.Score.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T16:34:07.238429-08:00","updated_at":"2026-01-10T19:34:18.170174-08:00","closed_at":"2026-01-10T19:34:18.170174-08:00","close_reason":"Implementation complete","created_by":"gastown/crew/max","dependencies":[{"issue_id":"bd-wdp83","depends_on_id":"bd-imi7w","type":"parent-child","created_at":"2026-01-10T16:34:21.616554-08:00","created_by":"gastown/crew/max"}]} {"id":"bd-we4p","title":"Cache getMultiRepoJSONLPaths() result during sync to avoid redundant calls","description":"From bd-xo6b code review: getMultiRepoJSONLPaths() is called 3x per sync cycle.\n\n**Current behavior:**\ndaemon_sync.go calls getMultiRepoJSONLPaths() three times per sync:\n- Line 505: Snapshot capture before pull\n- Line 575: Merge/prune after pull\n- Line 613: Base snapshot update after import\n\n**Cost per call:**\n- Config lookup (likely cached, but still overhead)\n- Path construction: O(N) where N = number of repos\n- String allocations: (N + 1) × filepath.Join() calls\n\n**Total per sync:** 3N path constructions + 3 config lookups + 3 slice allocations\n\n**Impact:**\n- For N=3 repos: Negligible (\u003c 1ms)\n- For N=10 repos: Still minimal\n- For N=100+ repos: Wasteful\n\n**Solution:**\nCall once at sync start, reuse result:\n\n```go\nfunc createSyncFunc(...) func() {\n return func() {\n // ... existing setup ...\n \n // Call once at start\n multiRepoPaths := getMultiRepoJSONLPaths()\n \n // Snapshot capture\n if multiRepoPaths != nil {\n for _, path := range multiRepoPaths {\n if err := captureLeftSnapshot(path); err != nil { ... }\n }\n }\n \n // ... later ...\n \n // Merge/prune - reuse same paths\n if multiRepoPaths != nil {\n for _, path := range multiRepoPaths { ... }\n }\n \n // ... later ...\n \n // Base snapshot update - reuse same paths\n if multiRepoPaths != nil {\n for _, path := range multiRepoPaths { ... }\n }\n }\n}\n```\n\n**Files:**\n- cmd/bd/daemon_sync.go:449-636 (createSyncFunc)\n\n**Note:** This is a performance optimization, not a correctness fix. Low priority unless multi-repo usage scales significantly.","status":"closed","priority":2,"issue_type":"chore","created_at":"2025-11-06T19:31:32.128674-08:00","updated_at":"2025-11-06T19:40:50.871176-08:00","closed_at":"2025-11-06T19:40:50.871176-08:00","dependencies":[{"issue_id":"bd-we4p","depends_on_id":"bd-xo6b","type":"discovered-from","created_at":"2025-11-06T19:32:12.39754-08:00","created_by":"daemon"}]} -{"id":"bd-wel9s","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T13:49:23.66075-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T13:49:23.736045-08:00","closed_at":"2026-01-13T13:49:23.736045-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-wel9s","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T13:49:23.66075-08:00","updated_at":"2026-01-13T13:49:23.736045-08:00","closed_at":"2026-01-13T13:49:23.736045-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-weu8","title":"Formula parser: YAML schema for .formula.yaml files","description":"Implement formula parsing from YAML:\n- Define YAML schema for .formula.yaml files\n- Parse steps, compose rules, vars\n- Support extends for formula inheritance\n- Validate formula structure\n\nSchema should support:\n- formula: name\n- description: text\n- version: number\n- type: workflow|expansion|aspect\n- vars: variable definitions\n- steps: step definitions\n- compose: composition rules\n\nGas Town tracking: gt-8tmz.12","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-24T13:19:41.30319-08:00","updated_at":"2025-12-24T13:44:20.018577-08:00","closed_at":"2025-12-24T13:44:20.018577-08:00"} -{"id":"bd-wf36v","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T15:49:30.296106-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T15:49:30.368594-08:00","closed_at":"2026-01-13T15:49:30.368594-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-wf36v","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T15:49:30.296106-08:00","updated_at":"2026-01-13T15:49:30.368594-08:00","closed_at":"2026-01-13T15:49:30.368594-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-wfmw","title":"Integration Layer Implementation","description":"Build the adapter layer that makes Agent Mail optional and non-intrusive.","notes":"Progress: bd-m9th (Python adapter library) completed with full test coverage. Next: bd-fzbg (update python-agent example with Agent Mail integration).","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-11-07T22:42:09.356429-08:00","updated_at":"2025-11-08T00:20:30.888756-08:00","closed_at":"2025-11-08T00:20:30.888756-08:00","dependencies":[{"issue_id":"bd-wfmw","depends_on_id":"bd-spmx","type":"blocks","created_at":"2025-11-07T22:42:09.357488-08:00","created_by":"daemon"}]} {"id":"bd-wgu4","title":"Standardize daemon detection: use tryDaemonLock probe before RPC","description":"Before attempting RPC connection, call tryDaemonLock() to check if lock is held:\n- If lock NOT held: skip RPC attempt (no daemon running)\n- If lock IS held: proceed with RPC + short timeout\n\nThis is extremely cheap and eliminates unnecessary connection attempts.\n\nApply across all client entry points that probe for daemon.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-07T16:42:12.709802-08:00","updated_at":"2025-11-07T20:15:23.282181-08:00","closed_at":"2025-11-07T20:15:23.282181-08:00","dependencies":[{"issue_id":"bd-wgu4","depends_on_id":"bd-ndyz","type":"discovered-from","created_at":"2025-11-07T16:42:12.710564-08:00","created_by":"daemon"}]} {"id":"bd-whgv","title":"Merge: bd-401h","description":"branch: polecat/rictus\ntarget: main\nsource_issue: bd-401h\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-19T23:20:37.854953-08:00","updated_at":"2025-12-20T23:17:26.999477-08:00","closed_at":"2025-12-20T23:17:26.999477-08:00"} -{"id":"bd-whlsz","title":"Implement hop:// URI scheme for federation","description":"dispatched_by: beads/crew/emma\n\nImplement the Highway Operations Protocol (HOP) URI scheme for cross-repo and cross-town entity references.\n\nCurrent EntityRef.URI() returns entity://hop/platform/org/id - this is a draft format.\n\nRecommended scheme:\n hop://\u003centity\u003e/\u003cchain\u003e/\u003crig\u003e/\u003cid\u003e\n\nExamples:\n hop://steve@example.com/main-town/gastown/gt-xyz (full work unit)\n hop://steve@example.com/main-town (chain/workspace)\n hop://acme.com/engineering/backend/ac-123 (org work unit)\n\nImplementation:\n1. Update EntityRef to include Entity (email/domain) and Chain (workspace) fields\n2. Update EntityRef.URI() to return hop:// format\n3. Add ParseHopURI() for parsing\n4. Deprecate entity:// format\n\nThe hop:// scheme is the Highway Operations Protocol standard for Gas Town federation.","status":"closed","priority":1,"issue_type":"task","assignee":"beads/crew/grip","created_at":"2026-01-10T16:34:06.986905-08:00","created_by":"gastown/crew/max","updated_at":"2026-01-10T19:26:53.671408-08:00","closed_at":"2026-01-10T19:26:53.671408-08:00","close_reason":"Implemented hop:// URI scheme for federation:\n\n1. Updated EntityRef struct with new fields:\n - Entity (email/domain owner identifier)\n - Chain (workspace/town identifier)\n - Rig (rig name within chain)\n - Kept Platform/Org as deprecated for backwards compatibility\n\n2. Updated EntityRef.URI() to return hop:// format:\n - Full ref: hop://\u003centity\u003e/\u003cchain\u003e/\u003crig\u003e/\u003cid\u003e\n - Chain-level ref: hop://\u003centity\u003e/\u003cchain\u003e\n - Fallback to legacy entity://hop/\u003cplatform\u003e/\u003corg\u003e/\u003cid\u003e\n\n3. Added new functions:\n - ParseHopURI() for parsing hop:// URIs\n - ParseURI() for parsing both hop:// and entity:// formats\n - LegacyURI() for generating legacy entity:// URIs\n\n4. Updated hash writer to include new EntityRef fields\n\n5. Added comprehensive tests for all new functionality\n\nAll types package tests pass.","dependencies":[{"issue_id":"bd-whlsz","depends_on_id":"bd-imi7w","type":"parent-child","created_at":"2026-01-10T16:34:21.577742-08:00","created_by":"gastown/crew/max"}]} -{"id":"bd-wip1j","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T09:21:27.428249-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T09:21:27.492208-08:00","closed_at":"2026-01-11T09:21:27.492208-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-wisp-03g","title":"Push release tag","description":"Push the version tag to trigger CI release.\n\n```bash\ngit push origin v0.47.1\n```\n\nThis triggers GitHub Actions to build artifacts and publish.\n\n**Phase 1 Complete**: After this step, signal phase-complete:\n```bash\ngt done --phase-complete\n```\n\nThe gate will block until CI finishes. A new session will resume at Phase 2.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.711701-08:00","updated_at":"2026-01-12T03:21:47.152378-08:00","closed_at":"2026-01-12T03:21:47.152378-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-03g","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.734162-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-03g","depends_on_id":"bd-wisp-efo","type":"blocks","created_at":"2026-01-12T03:17:16.783926-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} +{"id":"bd-whlsz","title":"Implement hop:// URI scheme for federation","description":"dispatched_by: beads/crew/emma\n\nImplement the Highway Operations Protocol (HOP) URI scheme for cross-repo and cross-town entity references.\n\nCurrent EntityRef.URI() returns entity://hop/platform/org/id - this is a draft format.\n\nRecommended scheme:\n hop://\u003centity\u003e/\u003cchain\u003e/\u003crig\u003e/\u003cid\u003e\n\nExamples:\n hop://steve@example.com/main-town/gastown/gt-xyz (full work unit)\n hop://steve@example.com/main-town (chain/workspace)\n hop://acme.com/engineering/backend/ac-123 (org work unit)\n\nImplementation:\n1. Update EntityRef to include Entity (email/domain) and Chain (workspace) fields\n2. Update EntityRef.URI() to return hop:// format\n3. Add ParseHopURI() for parsing\n4. Deprecate entity:// format\n\nThe hop:// scheme is the Highway Operations Protocol standard for Gas Town federation.","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-10T16:34:06.986905-08:00","updated_at":"2026-01-10T19:26:53.671408-08:00","closed_at":"2026-01-10T19:26:53.671408-08:00","close_reason":"Implemented hop:// URI scheme for federation:\n\n1. Updated EntityRef struct with new fields:\n - Entity (email/domain owner identifier)\n - Chain (workspace/town identifier)\n - Rig (rig name within chain)\n - Kept Platform/Org as deprecated for backwards compatibility\n\n2. Updated EntityRef.URI() to return hop:// format:\n - Full ref: hop://\u003centity\u003e/\u003cchain\u003e/\u003crig\u003e/\u003cid\u003e\n - Chain-level ref: hop://\u003centity\u003e/\u003cchain\u003e\n - Fallback to legacy entity://hop/\u003cplatform\u003e/\u003corg\u003e/\u003cid\u003e\n\n3. Added new functions:\n - ParseHopURI() for parsing hop:// URIs\n - ParseURI() for parsing both hop:// and entity:// formats\n - LegacyURI() for generating legacy entity:// URIs\n\n4. Updated hash writer to include new EntityRef fields\n\n5. Added comprehensive tests for all new functionality\n\nAll types package tests pass.","created_by":"gastown/crew/max","dependencies":[{"issue_id":"bd-whlsz","depends_on_id":"bd-imi7w","type":"parent-child","created_at":"2026-01-10T16:34:21.577742-08:00","created_by":"gastown/crew/max"}]} +{"id":"bd-wip1j","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T09:21:27.428249-08:00","updated_at":"2026-01-11T09:21:27.492208-08:00","closed_at":"2026-01-11T09:21:27.492208-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-wisp-03g","title":"Push release tag","description":"Push the version tag to trigger CI release.\n\n```bash\ngit push origin v0.47.1\n```\n\nThis triggers GitHub Actions to build artifacts and publish.\n\n**Phase 1 Complete**: After this step, signal phase-complete:\n```bash\ngt done --phase-complete\n```\n\nThe gate will block until CI finishes. A new session will resume at Phase 2.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.711701-08:00","updated_at":"2026-01-12T03:21:47.152378-08:00","closed_at":"2026-01-12T03:21:47.152378-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-03g","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.734162-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-03g","depends_on_id":"bd-wisp-efo","type":"blocks","created_at":"2026-01-12T03:17:16.783926-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-wisp-04d","title":"Verify PyPI package","description":"Confirm PyPI package published.\n\n```bash\npip index versions beads-mcp 2\u003e/dev/null | head -3\n```\n\nOr check: https://pypi.org/project/beads-mcp/\n\nShould show 0.45.0.\n\nNote: PyPI may have a small propagation delay (1-2 min).\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.259077-08:00","updated_at":"2026-01-06T20:17:52.239968-08:00","closed_at":"2026-01-06T20:17:52.239968-08:00","close_reason":"All release artifacts verified: GitHub (9 assets), npm 0.45.0, PyPI 0.45.0","dependencies":[{"issue_id":"bd-wisp-04d","depends_on_id":"bd-wisp-u9o","type":"blocks","created_at":"2026-01-06T20:07:32.285231-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-wisp-07c","title":"Detect half-done release","description":"Check if a previous release was started but not completed (version mismatch).\n\n**Compare versions across all sources:**\n```bash\n# Last git tag\nLAST_TAG=$(git describe --tags --abbrev=0 2\u003e/dev/null || echo \"none\")\necho \"Last tag: $LAST_TAG\"\n\n# Version in code\nCODE_VERSION=$(grep 'Version = ' cmd/bd/version.go | cut -d'\"' -f2)\necho \"Code version: $CODE_VERSION\"\n\n# Version in CHANGELOG (most recent versioned section)\nCHANGELOG_VERSION=$(grep -E '## \\[[0-9]+\\.[0-9]+\\.[0-9]+\\]' CHANGELOG.md | head -1 | grep -oE '[0-9]+\\.[0-9]+\\.[0-9]+')\necho \"CHANGELOG version: $CHANGELOG_VERSION\"\n\n# Version in npm package\nNPM_VERSION=$(jq -r '.version' npm-package/package.json)\necho \"npm version: $NPM_VERSION\"\n```\n\n**Healthy state (ready for new release):**\n- All versions match (e.g., all show 0.46.0)\n- Last tag matches code version\n\n**Half-done release detected if:**\n- CHANGELOG shows 0.47.1 but code shows previous version\n- Code version doesn't match last tag\n- npm/PyPI versions are out of sync\n\n**Recovery from half-done release:**\n```bash\n# If CHANGELOG was updated but code wasn't bumped:\n# Either complete the release or revert CHANGELOG changes\n\n# Check what state we're in\ngit diff $LAST_TAG -- CHANGELOG.md | head -50\n```\n\nIf mismatch detected, either:\n1. Complete the partial release (bump remaining files)\n2. Revert partial changes and start fresh\n3. Carefully verify what's already pushed vs local-only\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.706709-08:00","updated_at":"2026-01-12T03:18:49.06794-08:00","closed_at":"2026-01-12T03:18:49.06794-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-07c","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.718119-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-07c","depends_on_id":"bd-wisp-2ln","type":"blocks","created_at":"2026-01-12T03:17:16.748456-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-08w","title":"Restart daemons","description":"Restart bd daemons to pick up new version.\n\n```bash\nbd daemons killall\n```\n\nDaemons will auto-restart with new version on next bd command.\n\nVerify:\n```bash\nbd daemons list\n```\n","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.713826-08:00","updated_at":"2026-01-12T03:17:16.713826-08:00","dependencies":[{"issue_id":"bd-wisp-08w","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.743379-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-08w","depends_on_id":"bd-wisp-msq","type":"blocks","created_at":"2026-01-12T03:17:16.809425-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-1um","title":"Commit release","description":"Stage and commit all version changes.\n\n```bash\ngit add -A\ngit commit -m \"chore: Bump version to 0.47.1\"\n```\n\nReview the commit to ensure all expected files are included.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.710788-08:00","updated_at":"2026-01-12T03:21:26.478039-08:00","closed_at":"2026-01-12T03:21:26.478039-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-1um","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.73118-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-1um","depends_on_id":"bd-wisp-3bt","type":"blocks","created_at":"2026-01-12T03:17:16.775506-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-2f0","title":"Generate handoff summary","description":"Summarize this patrol cycle.\n\n**VERIFICATION**: Before generating summary, confirm for each merged branch:\n- [ ] MERGED mail was sent to witness\n- [ ] MR bead was closed\n- [ ] MERGE_READY mail archived\n\nIf any notifications or archiving were missed, do them now!\n\nInclude in summary:\n- Branches merged (count, names)\n- MERGED mails sent (count - should match branches merged)\n- MR beads closed (count - should match branches merged)\n- MERGE_READY mails archived (count - should match branches merged)\n- Test results (pass/fail)\n- Branches with conflicts (count, names)\n- Conflict-resolution tasks created (IDs)\n- Issues filed (if any)\n- Any escalations sent\n\n**Conflict tracking is important** for monitoring MQ health. If many branches\nconflict, it may indicate main is moving too fast or branches are too stale.\n\nThis becomes the digest when the patrol is squashed.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T02:44:24.392291-08:00","updated_at":"2026-01-12T02:45:37.257872-08:00","closed_at":"2026-01-12T02:45:37.257872-08:00","close_reason":"Summary: Empty queue patrol, no branches processed","dependencies":[{"issue_id":"bd-wisp-2f0","depends_on_id":"bd-wisp-ec4","type":"parent-child","created_at":"2026-01-12T02:44:24.400382-08:00","created_by":"beads/refinery"}],"ephemeral":true} -{"id":"bd-wisp-2g2","title":"Verify GitHub release","description":"Check the GitHub releases page.\n\nhttps://github.com/steveyegge/beads/releases/tag/v0.47.1\n\nVerify:\n- Release created\n- Binaries attached (linux, darwin, windows)\n- Checksums present\n\n```bash\ngh release view v0.47.1 --json assets --jq '.assets[].name'\n```\n","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.712622-08:00","updated_at":"2026-01-12T03:17:16.712623-08:00","dependencies":[{"issue_id":"bd-wisp-2g2","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.73836-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-2g2","depends_on_id":"bd-wisp-4i8","type":"blocks","created_at":"2026-01-12T03:17:16.789825-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-2ln","title":"Preflight: Pull latest \u0026 verify sync","description":"Ensure we're up to date with origin and branch is properly synced.\n\n```bash\n# Fetch latest from origin\ngit fetch origin\n\n# Check branch status BEFORE pulling\ngit status -sb\n```\n\n**Branch sync verification:**\n- \"Your branch is behind\" → Pull needed, proceed with `git pull --rebase`\n- \"Your branch is ahead\" → You have unpushed commits - review before release!\n- \"Your branch has diverged\" → **STOP** - resolve divergence first\n\n```bash\n# If branch is behind or even, pull latest\ngit pull --rebase\n```\n\n**Recovering from divergence:**\nIf your branch has diverged from origin (e.g., after a botched commit):\n```bash\n# Option 1: Reset to origin (loses local commits)\ngit reset --hard origin/main\n\n# Option 2: Rebase local commits on top of origin\ngit rebase origin/main\n\n# Option 3: Create a backup branch first\ngit branch backup-before-release\ngit reset --hard origin/main\n```\n\n**After pulling, verify sync:**\n```bash\ngit status -sb\n# Should show: \"## main...origin/main\" (no ahead/behind)\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.706384-08:00","updated_at":"2026-01-12T03:18:19.288655-08:00","closed_at":"2026-01-12T03:18:19.288655-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-2ln","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.717101-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-2ln","depends_on_id":"bd-wisp-60x","type":"blocks","created_at":"2026-01-12T03:17:16.747074-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-31v","title":"Burn and respawn or loop","description":"End of patrol cycle decision.\n\n**Step 1: Estimate remaining context**\n\nAsk yourself:\n- Have I processed many branches this cycle?\n- Is the conversation getting long?\n- Am I starting to lose track of earlier context?\n\nRule of thumb: If you've done 3+ merges or processed significant cleanup work,\nit's time for a fresh session.\n\n**Step 2: Decision tree**\n\nIf queue non-empty AND context LOW:\n- Squash this wisp to digest\n- Spawn fresh patrol wisp\n- Return to inbox-check\n\nIf queue empty OR context HIGH OR good stopping point:\n- Squash wisp with summary digest\n- Use `gt handoff` for clean session transition:\n\n```bash\ngt handoff -s \"Patrol complete\" -m \"Merged X branches, Y tests passed.\nQueue: empty/N remaining\nNext: [any notes for successor]\"\n```\n\n**Why gt handoff?**\n- Sends handoff mail to yourself with context\n- Respawns with fresh Claude instance\n- SessionStart hook runs gt prime\n- Successor picks up from your hook\n\n**DO NOT just exit.** Always use `gt handoff` for proper lifecycle.","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T02:44:24.393209-08:00","updated_at":"2026-01-12T02:44:24.393209-08:00","dependencies":[{"issue_id":"bd-wisp-31v","depends_on_id":"bd-wisp-ec4","type":"parent-child","created_at":"2026-01-12T02:44:24.403062-08:00","created_by":"beads/refinery"},{"issue_id":"bd-wisp-31v","depends_on_id":"bd-wisp-66z","type":"blocks","created_at":"2026-01-12T02:44:24.416548-08:00","created_by":"beads/refinery"}],"ephemeral":true} -{"id":"bd-wisp-3bt","title":"Verify version consistency","description":"Confirm all versions match 0.47.1.\n\n```bash\ngrep 'Version = ' cmd/bd/version.go\njq -r '.version' .claude-plugin/plugin.json\njq -r '.version' npm-package/package.json\ngrep 'version = ' integrations/beads-mcp/pyproject.toml\n```\n\nAll should show 0.47.1.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.710475-08:00","updated_at":"2026-01-12T03:20:47.646144-08:00","closed_at":"2026-01-12T03:20:47.646144-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-3bt","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.730172-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-3bt","depends_on_id":"bd-wisp-7v8","type":"blocks","created_at":"2026-01-12T03:17:16.772943-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-3ii","title":"Preflight: Verify git context","description":"Ensure we're in the correct git directory, especially for worktree setups.\n\n```bash\n# Check current repo root and remote\ngit rev-parse --show-toplevel\ngit remote get-url origin\n\n# Verify this is the main worktree (not a linked worktree)\ngit worktree list\n```\n\nFor worktree setups, releases should be done from the **main worktree** to ensure:\n- Correct file paths in commits\n- Proper tag association\n- Clean branch history\n\nIf you're in a linked worktree:\n1. Note the path to the main worktree (first line of `git worktree list`)\n2. Switch to that directory before proceeding\n3. Or use: `cd $(git worktree list | head -1 | cut -d' ' -f1)`\n\n**Red flags:**\n- Remote URL doesn't match expected repository\n- You're in a linked worktree (not the main one)\n- `git status` shows different files than expected\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.705707-08:00","updated_at":"2026-01-12T03:18:19.280966-08:00","closed_at":"2026-01-12T03:18:19.280966-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-3ii","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.714563-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-3q2","title":"Bump version in README badge","description":"Update the Alpha version badge in README.md.\n\n```bash\n# macOS\nsed -i '' 's/Alpha (v[^)]*)/Alpha (v0.47.1)/' README.md\n\n# Linux\nsed -i 's/Alpha (v[^)]*)/Alpha (v0.47.1)/' README.md\n```\n\nVerify:\n```bash\ngrep 'Alpha (v' README.md\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.709865-08:00","updated_at":"2026-01-12T03:20:47.641709-08:00","closed_at":"2026-01-12T03:20:47.641709-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-3q2","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.728148-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-3q2","depends_on_id":"bd-wisp-iii","type":"blocks","created_at":"2026-01-12T03:17:16.768053-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-3th","title":"Mechanical rebase","description":"Pick next branch from queue. Attempt mechanical rebase on current main.\n\n**Step 1: Checkout and attempt rebase**\n```bash\ngit checkout -b temp origin/\u003cpolecat-branch\u003e\ngit rebase origin/main\n```\n\n**Step 2: Check rebase result**\n\nThe rebase exits with:\n- Exit code 0: Success - proceed to run-tests\n- Exit code 1 (conflicts): Conflict detected - proceed to Step 3\n\nTo detect conflict state after rebase fails:\n```bash\n# Check if we're in a conflicted rebase state\nls .git/rebase-merge 2\u003e/dev/null \u0026\u0026 echo \"CONFLICT_STATE\"\n```\n\n**Step 3: Handle conflicts (if any)**\n\nIf rebase SUCCEEDED (exit code 0):\n- Skip to run-tests step (continue normal merge flow)\n\nIf rebase FAILED with conflicts:\n\n1. **Abort the rebase** (DO NOT leave repo in conflicted state):\n```bash\ngit rebase --abort\n```\n\n2. **Record conflict metadata**:\n```bash\n# Capture main SHA for reference\nMAIN_SHA=$(git rev-parse origin/main)\nBRANCH_SHA=$(git rev-parse origin/\u003cpolecat-branch\u003e)\n```\n\n3. **Create conflict-resolution task**:\n```bash\nbd create --type=task --priority=1 --title=\"Resolve merge conflicts: \u003coriginal-issue-title\u003e\" --description=\"## Conflict Resolution Required\n\nOriginal MR: \u003cmr-bead-id\u003e\nBranch: \u003cpolecat-branch\u003e\nOriginal Issue: \u003cissue-id\u003e\nConflict with main at: ${MAIN_SHA}\nBranch SHA: ${BRANCH_SHA}\n\n## Instructions\n1. Clone/checkout the branch\n2. Rebase on current main: git rebase origin/main\n3. Resolve conflicts\n4. Force push: git push -f origin \u003cbranch\u003e\n5. Close this task when done\n\nThe MR will be re-queued for processing after conflicts are resolved.\"\n```\n\n4. **Skip this MR** (do NOT delete branch or close MR bead):\n- Leave branch intact for conflict resolution\n- Leave MR bead open (will be re-processed after resolution)\n- Continue to loop-check for next branch\n\n**CRITICAL**: Never delete a branch that has conflicts. The branch contains\nthe original work and must be preserved for conflict resolution.\n\nTrack: rebase result (success/conflict), conflict task ID if created.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.195849-08:00","updated_at":"2026-01-12T01:27:49.20498-08:00","closed_at":"2026-01-12T01:27:49.20498-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-3th","depends_on_id":"bd-wisp-9jv","type":"blocks","created_at":"2026-01-12T01:27:11.220471-08:00","created_by":"beads/refinery"}],"ephemeral":true} -{"id":"bd-wisp-4i8","title":"Await CI: release.yml completion","description":"Gate step: Wait for GitHub Actions release workflow to complete.\n\nThis gate blocks until the release.yml workflow run succeeds.\nThe Refinery auto-discovers the workflow run triggered by v0.47.1\nand closes this gate when it completes.\n\nExpected time: 5-10 minutes\n\nThe gate monitors:\n- Build artifacts (all platforms)\n- Test suite pass\n- npm publish\n- PyPI publish\n\nIf the workflow fails, this gate remains open and requires manual intervention.\n","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.712017-08:00","updated_at":"2026-01-12T03:17:16.712017-08:00","dependencies":[{"issue_id":"bd-wisp-4i8","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.735155-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-4i8","depends_on_id":"bd-wisp-82n","type":"blocks","created_at":"2026-01-12T03:17:16.737183-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-4i8","depends_on_id":"bd-wisp-03g","type":"blocks","created_at":"2026-01-12T03:17:16.786856-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-4qx","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"closed","priority":2,"issue_type":"epic","assignee":"beads/refinery","created_at":"2026-01-10T23:19:39.804733-08:00","updated_at":"2026-01-10T23:26:02.8044-08:00","closed_at":"2026-01-10T23:26:02.8044-08:00","close_reason":"Patrol complete: queue empty, no branches to merge","ephemeral":true} -{"id":"bd-wisp-4td","title":"Handle test failures","description":"**VERIFICATION GATE**: This step enforces the Beads Promise.\n\nIf tests PASSED: This step auto-completes. Proceed to merge.\n\nIf tests FAILED:\n1. Diagnose: Is this a branch regression or pre-existing on main?\n2. If branch caused it:\n - Abort merge\n - Notify polecat: \"Tests failing. Please fix and resubmit.\"\n - Skip to loop-check\n3. If pre-existing on main:\n - Option A: Fix it yourself (you're the Engineer!)\n - Option B: File a bead: bd create --type=bug --priority=1 --title=\"...\"\n\n**GATE REQUIREMENT**: You CANNOT proceed to merge-push without:\n- Tests passing, OR\n- Fix committed, OR\n- Bead filed for the failure\n\nThis is non-negotiable. Never disavow. Never \"note and proceed.\" ","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T02:44:24.391348-08:00","updated_at":"2026-01-12T02:45:28.199134-08:00","closed_at":"2026-01-12T02:45:28.199134-08:00","close_reason":"Queue empty - no failures to handle","dependencies":[{"issue_id":"bd-wisp-4td","depends_on_id":"bd-wisp-ec4","type":"parent-child","created_at":"2026-01-12T02:44:24.397706-08:00","created_by":"beads/refinery"}],"ephemeral":true} +{"id":"bd-wisp-07c","title":"Detect half-done release","description":"Check if a previous release was started but not completed (version mismatch).\n\n**Compare versions across all sources:**\n```bash\n# Last git tag\nLAST_TAG=$(git describe --tags --abbrev=0 2\u003e/dev/null || echo \"none\")\necho \"Last tag: $LAST_TAG\"\n\n# Version in code\nCODE_VERSION=$(grep 'Version = ' cmd/bd/version.go | cut -d'\"' -f2)\necho \"Code version: $CODE_VERSION\"\n\n# Version in CHANGELOG (most recent versioned section)\nCHANGELOG_VERSION=$(grep -E '## \\[[0-9]+\\.[0-9]+\\.[0-9]+\\]' CHANGELOG.md | head -1 | grep -oE '[0-9]+\\.[0-9]+\\.[0-9]+')\necho \"CHANGELOG version: $CHANGELOG_VERSION\"\n\n# Version in npm package\nNPM_VERSION=$(jq -r '.version' npm-package/package.json)\necho \"npm version: $NPM_VERSION\"\n```\n\n**Healthy state (ready for new release):**\n- All versions match (e.g., all show 0.46.0)\n- Last tag matches code version\n\n**Half-done release detected if:**\n- CHANGELOG shows 0.47.1 but code shows previous version\n- Code version doesn't match last tag\n- npm/PyPI versions are out of sync\n\n**Recovery from half-done release:**\n```bash\n# If CHANGELOG was updated but code wasn't bumped:\n# Either complete the release or revert CHANGELOG changes\n\n# Check what state we're in\ngit diff $LAST_TAG -- CHANGELOG.md | head -50\n```\n\nIf mismatch detected, either:\n1. Complete the partial release (bump remaining files)\n2. Revert partial changes and start fresh\n3. Carefully verify what's already pushed vs local-only\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.706709-08:00","updated_at":"2026-01-12T03:18:49.06794-08:00","closed_at":"2026-01-12T03:18:49.06794-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-07c","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.718119-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-07c","depends_on_id":"bd-wisp-2ln","type":"blocks","created_at":"2026-01-12T03:17:16.748456-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-08w","title":"Restart daemons","description":"Restart bd daemons to pick up new version.\n\n```bash\nbd daemons killall\n```\n\nDaemons will auto-restart with new version on next bd command.\n\nVerify:\n```bash\nbd daemons list\n```\n","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.713826-08:00","updated_at":"2026-01-12T03:17:16.713826-08:00","dependencies":[{"issue_id":"bd-wisp-08w","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.743379-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-08w","depends_on_id":"bd-wisp-msq","type":"blocks","created_at":"2026-01-12T03:17:16.809425-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-1um","title":"Commit release","description":"Stage and commit all version changes.\n\n```bash\ngit add -A\ngit commit -m \"chore: Bump version to 0.47.1\"\n```\n\nReview the commit to ensure all expected files are included.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.710788-08:00","updated_at":"2026-01-12T03:21:26.478039-08:00","closed_at":"2026-01-12T03:21:26.478039-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-1um","depends_on_id":"bd-wisp-3bt","type":"blocks","created_at":"2026-01-12T03:17:16.775506-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-1um","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.73118-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-2f0","title":"Generate handoff summary","description":"Summarize this patrol cycle.\n\n**VERIFICATION**: Before generating summary, confirm for each merged branch:\n- [ ] MERGED mail was sent to witness\n- [ ] MR bead was closed\n- [ ] MERGE_READY mail archived\n\nIf any notifications or archiving were missed, do them now!\n\nInclude in summary:\n- Branches merged (count, names)\n- MERGED mails sent (count - should match branches merged)\n- MR beads closed (count - should match branches merged)\n- MERGE_READY mails archived (count - should match branches merged)\n- Test results (pass/fail)\n- Branches with conflicts (count, names)\n- Conflict-resolution tasks created (IDs)\n- Issues filed (if any)\n- Any escalations sent\n\n**Conflict tracking is important** for monitoring MQ health. If many branches\nconflict, it may indicate main is moving too fast or branches are too stale.\n\nThis becomes the digest when the patrol is squashed.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T02:44:24.392291-08:00","updated_at":"2026-01-12T02:45:37.257872-08:00","closed_at":"2026-01-12T02:45:37.257872-08:00","close_reason":"Summary: Empty queue patrol, no branches processed","dependencies":[{"issue_id":"bd-wisp-2f0","depends_on_id":"bd-wisp-ec4","type":"parent-child","created_at":"2026-01-12T02:44:24.400382-08:00","created_by":"beads/refinery"}]} +{"id":"bd-wisp-2g2","title":"Verify GitHub release","description":"Check the GitHub releases page.\n\nhttps://github.com/steveyegge/beads/releases/tag/v0.47.1\n\nVerify:\n- Release created\n- Binaries attached (linux, darwin, windows)\n- Checksums present\n\n```bash\ngh release view v0.47.1 --json assets --jq '.assets[].name'\n```\n","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.712622-08:00","updated_at":"2026-01-12T03:17:16.712623-08:00","dependencies":[{"issue_id":"bd-wisp-2g2","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.73836-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-2g2","depends_on_id":"bd-wisp-4i8","type":"blocks","created_at":"2026-01-12T03:17:16.789825-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-2ln","title":"Preflight: Pull latest \u0026 verify sync","description":"Ensure we're up to date with origin and branch is properly synced.\n\n```bash\n# Fetch latest from origin\ngit fetch origin\n\n# Check branch status BEFORE pulling\ngit status -sb\n```\n\n**Branch sync verification:**\n- \"Your branch is behind\" → Pull needed, proceed with `git pull --rebase`\n- \"Your branch is ahead\" → You have unpushed commits - review before release!\n- \"Your branch has diverged\" → **STOP** - resolve divergence first\n\n```bash\n# If branch is behind or even, pull latest\ngit pull --rebase\n```\n\n**Recovering from divergence:**\nIf your branch has diverged from origin (e.g., after a botched commit):\n```bash\n# Option 1: Reset to origin (loses local commits)\ngit reset --hard origin/main\n\n# Option 2: Rebase local commits on top of origin\ngit rebase origin/main\n\n# Option 3: Create a backup branch first\ngit branch backup-before-release\ngit reset --hard origin/main\n```\n\n**After pulling, verify sync:**\n```bash\ngit status -sb\n# Should show: \"## main...origin/main\" (no ahead/behind)\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.706384-08:00","updated_at":"2026-01-12T03:18:19.288655-08:00","closed_at":"2026-01-12T03:18:19.288655-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-2ln","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.717101-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-2ln","depends_on_id":"bd-wisp-60x","type":"blocks","created_at":"2026-01-12T03:17:16.747074-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-31v","title":"Burn and respawn or loop","description":"End of patrol cycle decision.\n\n**Step 1: Estimate remaining context**\n\nAsk yourself:\n- Have I processed many branches this cycle?\n- Is the conversation getting long?\n- Am I starting to lose track of earlier context?\n\nRule of thumb: If you've done 3+ merges or processed significant cleanup work,\nit's time for a fresh session.\n\n**Step 2: Decision tree**\n\nIf queue non-empty AND context LOW:\n- Squash this wisp to digest\n- Spawn fresh patrol wisp\n- Return to inbox-check\n\nIf queue empty OR context HIGH OR good stopping point:\n- Squash wisp with summary digest\n- Use `gt handoff` for clean session transition:\n\n```bash\ngt handoff -s \"Patrol complete\" -m \"Merged X branches, Y tests passed.\nQueue: empty/N remaining\nNext: [any notes for successor]\"\n```\n\n**Why gt handoff?**\n- Sends handoff mail to yourself with context\n- Respawns with fresh Claude instance\n- SessionStart hook runs gt prime\n- Successor picks up from your hook\n\n**DO NOT just exit.** Always use `gt handoff` for proper lifecycle.","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T02:44:24.393209-08:00","updated_at":"2026-01-12T02:44:24.393209-08:00","dependencies":[{"issue_id":"bd-wisp-31v","depends_on_id":"bd-wisp-ec4","type":"parent-child","created_at":"2026-01-12T02:44:24.403062-08:00","created_by":"beads/refinery"},{"issue_id":"bd-wisp-31v","depends_on_id":"bd-wisp-66z","type":"blocks","created_at":"2026-01-12T02:44:24.416548-08:00","created_by":"beads/refinery"}]} +{"id":"bd-wisp-3bt","title":"Verify version consistency","description":"Confirm all versions match 0.47.1.\n\n```bash\ngrep 'Version = ' cmd/bd/version.go\njq -r '.version' .claude-plugin/plugin.json\njq -r '.version' npm-package/package.json\ngrep 'version = ' integrations/beads-mcp/pyproject.toml\n```\n\nAll should show 0.47.1.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.710475-08:00","updated_at":"2026-01-12T03:20:47.646144-08:00","closed_at":"2026-01-12T03:20:47.646144-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-3bt","depends_on_id":"bd-wisp-7v8","type":"blocks","created_at":"2026-01-12T03:17:16.772943-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-3bt","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.730172-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-3ii","title":"Preflight: Verify git context","description":"Ensure we're in the correct git directory, especially for worktree setups.\n\n```bash\n# Check current repo root and remote\ngit rev-parse --show-toplevel\ngit remote get-url origin\n\n# Verify this is the main worktree (not a linked worktree)\ngit worktree list\n```\n\nFor worktree setups, releases should be done from the **main worktree** to ensure:\n- Correct file paths in commits\n- Proper tag association\n- Clean branch history\n\nIf you're in a linked worktree:\n1. Note the path to the main worktree (first line of `git worktree list`)\n2. Switch to that directory before proceeding\n3. Or use: `cd $(git worktree list | head -1 | cut -d' ' -f1)`\n\n**Red flags:**\n- Remote URL doesn't match expected repository\n- You're in a linked worktree (not the main one)\n- `git status` shows different files than expected\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.705707-08:00","updated_at":"2026-01-12T03:18:19.280966-08:00","closed_at":"2026-01-12T03:18:19.280966-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-3ii","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.714563-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-3q2","title":"Bump version in README badge","description":"Update the Alpha version badge in README.md.\n\n```bash\n# macOS\nsed -i '' 's/Alpha (v[^)]*)/Alpha (v0.47.1)/' README.md\n\n# Linux\nsed -i 's/Alpha (v[^)]*)/Alpha (v0.47.1)/' README.md\n```\n\nVerify:\n```bash\ngrep 'Alpha (v' README.md\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.709865-08:00","updated_at":"2026-01-12T03:20:47.641709-08:00","closed_at":"2026-01-12T03:20:47.641709-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-3q2","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.728148-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-3q2","depends_on_id":"bd-wisp-iii","type":"blocks","created_at":"2026-01-12T03:17:16.768053-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-3th","title":"Mechanical rebase","description":"Pick next branch from queue. Attempt mechanical rebase on current main.\n\n**Step 1: Checkout and attempt rebase**\n```bash\ngit checkout -b temp origin/\u003cpolecat-branch\u003e\ngit rebase origin/main\n```\n\n**Step 2: Check rebase result**\n\nThe rebase exits with:\n- Exit code 0: Success - proceed to run-tests\n- Exit code 1 (conflicts): Conflict detected - proceed to Step 3\n\nTo detect conflict state after rebase fails:\n```bash\n# Check if we're in a conflicted rebase state\nls .git/rebase-merge 2\u003e/dev/null \u0026\u0026 echo \"CONFLICT_STATE\"\n```\n\n**Step 3: Handle conflicts (if any)**\n\nIf rebase SUCCEEDED (exit code 0):\n- Skip to run-tests step (continue normal merge flow)\n\nIf rebase FAILED with conflicts:\n\n1. **Abort the rebase** (DO NOT leave repo in conflicted state):\n```bash\ngit rebase --abort\n```\n\n2. **Record conflict metadata**:\n```bash\n# Capture main SHA for reference\nMAIN_SHA=$(git rev-parse origin/main)\nBRANCH_SHA=$(git rev-parse origin/\u003cpolecat-branch\u003e)\n```\n\n3. **Create conflict-resolution task**:\n```bash\nbd create --type=task --priority=1 --title=\"Resolve merge conflicts: \u003coriginal-issue-title\u003e\" --description=\"## Conflict Resolution Required\n\nOriginal MR: \u003cmr-bead-id\u003e\nBranch: \u003cpolecat-branch\u003e\nOriginal Issue: \u003cissue-id\u003e\nConflict with main at: ${MAIN_SHA}\nBranch SHA: ${BRANCH_SHA}\n\n## Instructions\n1. Clone/checkout the branch\n2. Rebase on current main: git rebase origin/main\n3. Resolve conflicts\n4. Force push: git push -f origin \u003cbranch\u003e\n5. Close this task when done\n\nThe MR will be re-queued for processing after conflicts are resolved.\"\n```\n\n4. **Skip this MR** (do NOT delete branch or close MR bead):\n- Leave branch intact for conflict resolution\n- Leave MR bead open (will be re-processed after resolution)\n- Continue to loop-check for next branch\n\n**CRITICAL**: Never delete a branch that has conflicts. The branch contains\nthe original work and must be preserved for conflict resolution.\n\nTrack: rebase result (success/conflict), conflict task ID if created.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.195849-08:00","updated_at":"2026-01-12T01:27:49.20498-08:00","closed_at":"2026-01-12T01:27:49.20498-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-3th","depends_on_id":"bd-wisp-9jv","type":"blocks","created_at":"2026-01-12T01:27:11.220471-08:00","created_by":"beads/refinery"}]} +{"id":"bd-wisp-4i8","title":"Await CI: release.yml completion","description":"Gate step: Wait for GitHub Actions release workflow to complete.\n\nThis gate blocks until the release.yml workflow run succeeds.\nThe Refinery auto-discovers the workflow run triggered by v0.47.1\nand closes this gate when it completes.\n\nExpected time: 5-10 minutes\n\nThe gate monitors:\n- Build artifacts (all platforms)\n- Test suite pass\n- npm publish\n- PyPI publish\n\nIf the workflow fails, this gate remains open and requires manual intervention.\n","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.712017-08:00","updated_at":"2026-01-12T03:17:16.712017-08:00","dependencies":[{"issue_id":"bd-wisp-4i8","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.735155-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-4i8","depends_on_id":"bd-wisp-82n","type":"blocks","created_at":"2026-01-12T03:17:16.737183-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-4i8","depends_on_id":"bd-wisp-03g","type":"blocks","created_at":"2026-01-12T03:17:16.786856-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-4qx","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"closed","priority":2,"issue_type":"epic","created_at":"2026-01-10T23:19:39.804733-08:00","updated_at":"2026-01-10T23:26:02.8044-08:00","closed_at":"2026-01-10T23:26:02.8044-08:00","close_reason":"Patrol complete: queue empty, no branches to merge"} +{"id":"bd-wisp-4td","title":"Handle test failures","description":"**VERIFICATION GATE**: This step enforces the Beads Promise.\n\nIf tests PASSED: This step auto-completes. Proceed to merge.\n\nIf tests FAILED:\n1. Diagnose: Is this a branch regression or pre-existing on main?\n2. If branch caused it:\n - Abort merge\n - Notify polecat: \"Tests failing. Please fix and resubmit.\"\n - Skip to loop-check\n3. If pre-existing on main:\n - Option A: Fix it yourself (you're the Engineer!)\n - Option B: File a bead: bd create --type=bug --priority=1 --title=\"...\"\n\n**GATE REQUIREMENT**: You CANNOT proceed to merge-push without:\n- Tests passing, OR\n- Fix committed, OR\n- Bead filed for the failure\n\nThis is non-negotiable. Never disavow. Never \"note and proceed.\" ","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T02:44:24.391348-08:00","updated_at":"2026-01-12T02:45:28.199134-08:00","closed_at":"2026-01-12T02:45:28.199134-08:00","close_reason":"Queue empty - no failures to handle","dependencies":[{"issue_id":"bd-wisp-4td","depends_on_id":"bd-wisp-ec4","type":"parent-child","created_at":"2026-01-12T02:44:24.397706-08:00","created_by":"beads/refinery"}]} {"id":"bd-wisp-540","title":"Update CHANGELOG.md","description":"Write the [Unreleased] section with all changes for 0.45.0.\n\nFormat: Keep a Changelog (https://keepachangelog.com)\n\nSections:\n- ### Added\n- ### Changed\n- ### Fixed\n- ### Documentation\n\nThe bump script will stamp the date automatically.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.256772-08:00","updated_at":"2026-01-06T20:09:49.901996-08:00","closed_at":"2026-01-06T20:09:49.901996-08:00","close_reason":"CHANGELOG.md updated with 0.45.0 changes","dependencies":[{"issue_id":"bd-wisp-540","depends_on_id":"bd-wisp-9jo","type":"blocks","created_at":"2026-01-06T20:07:32.273791-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-wisp-5j5","title":"beads-release","description":"Beads release workflow v2 - gate-aware async release.\n\nThis formula orchestrates a complete release cycle with async gates:\n\nPhase 1 (Polecat Work):\n 1. Preflight checks (clean git, up to date)\n 2. Documentation updates (CHANGELOG, info.go)\n 3. Version bump (all components)\n 4. Git operations (commit, tag, push)\n\nGate (Async Wait):\n 5. await-ci: Gate on GitHub Actions release.yml completion\n\nPhase 2 (Parallel Verification):\n 6. Verify GitHub release, npm package, PyPI package (concurrent)\n\nPhase 3 (Installation):\n 7. Local installation update\n 8. Daemon restart\n\n## Usage\n\n```bash\nbd mol wisp create beads-release --var version=0.44.0\n```\n\nOr assign to a polecat:\n```bash\ngt sling beads/polecats/p1 --formula beads-release --var version=0.44.0\n```\n\nThe polecat will complete Phase 1, then signal phase-complete. The gate blocks\nuntil release.yml finishes. A new polecat (or the same one) resumes for Phases 2-3.\n","status":"open","priority":2,"issue_type":"epic","created_at":"2026-01-12T03:17:16.705057-08:00","updated_at":"2026-01-12T03:17:16.705057-08:00","ephemeral":true} -{"id":"bd-wisp-60x","title":"Preflight: Check git status \u0026 auto-stash","description":"Ensure working tree is clean before starting release.\n\n```bash\ngit status --short\n```\n\n**Handling uncommitted changes:**\n\nIf changes are in release-related files (CHANGELOG, version files), you may want to:\n- Include them in the release commit\n- Or stash and apply after version bump\n\nIf changes are in **non-release files** (e.g., .beads/config.yaml, .claude/settings.json, local configs):\n```bash\n# Auto-stash non-release files\ngit stash push -m \"pre-release: non-release changes\" -- .beads/ .claude/ *.local* .env*\n\n# Verify working tree is now clean (or only has release files)\ngit status --short\n```\n\n**Important:** The bump script may fail if non-release files are modified. Always stash:\n- `.beads/` directory (local config)\n- `.claude/` directory (agent settings)\n- Any `.local`, `.env`, or personal config files\n\nAfter release completes, restore with:\n```bash\ngit stash pop\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.706064-08:00","updated_at":"2026-01-12T03:18:19.285076-08:00","closed_at":"2026-01-12T03:18:19.285076-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-60x","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.716027-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-60x","depends_on_id":"bd-wisp-3ii","type":"blocks","created_at":"2026-01-12T03:17:16.745775-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-61d","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"open","priority":2,"issue_type":"epic","created_at":"2026-01-13T17:50:19.718739-08:00","updated_at":"2026-01-13T17:50:19.718739-08:00","ephemeral":true} -{"id":"bd-wisp-66z","title":"End-of-cycle inbox hygiene","description":"Verify inbox hygiene before ending patrol cycle.\n\n**Step 1: Check inbox state**\n```bash\ngt mail inbox\n```\n\nInbox should contain ONLY:\n- Unprocessed MERGE_READY messages (will process next cycle)\n- Active work items\n\n**Step 2: Archive any stale messages**\n\nLook for messages that were processed but not archived:\n- PATROL: Wake up that was acknowledged → archive\n- HELP/Blocked that was handled → archive\n- MERGE_READY where merge completed but archive was missed → archive\n\n```bash\n# For each stale message found:\ngt mail archive \u003cmessage-id\u003e\n```\n\n**Step 3: Check for orphaned MR beads**\n\nLook for open MR beads with no corresponding branch:\n```bash\nbd list --type=merge-request --status=open\n```\n\nFor each open MR bead:\n1. Check if branch exists: `git ls-remote origin refs/heads/\u003cbranch\u003e`\n2. If branch gone, verify work is on main: `git log origin/main --oneline | grep \"\u003csource_issue\u003e\"`\n3. If work on main → close MR with reason \"Merged (verified on main)\"\n4. If work NOT on main → investigate before closing:\n - Check source_issue validity (should be gt-xxxxx, not branch name)\n - Search reflog/dangling commits if possible\n - If unverifiable, close with reason \"Unverifiable - no audit trail\"\n - File bead if this indicates lost work\n\n**NEVER close an MR bead without verifying the work landed or is unrecoverable.**\n\n**Goal**: Inbox should have ≤3 active messages at end of cycle.\nKeep only: pending MRs in queue.","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T02:44:24.392901-08:00","updated_at":"2026-01-12T02:44:24.392901-08:00","dependencies":[{"issue_id":"bd-wisp-66z","depends_on_id":"bd-wisp-ec4","type":"parent-child","created_at":"2026-01-12T02:44:24.402169-08:00","created_by":"beads/refinery"}],"ephemeral":true} -{"id":"bd-wisp-6fb","title":"Check refinery mail","description":"Check mail for MERGE_READY submissions, escalations, and messages.\n\n```bash\ngt mail inbox\n```\n\nFor each message:\n\n**MERGE_READY**:\nA polecat's work is ready for merge. Extract details and track for processing.\n\n```bash\n# Parse MERGE_READY message body:\n# Branch: \u003cbranch\u003e\n# Issue: \u003cissue-id\u003e\n# Polecat: \u003cpolecat-name\u003e\n# MR: \u003cmr-bead-id\u003e\n# Verified: clean git state, issue closed\n\n# Track in your merge queue for this patrol cycle:\n# - Branch name\n# - Issue ID\n# - Polecat name (REQUIRED for MERGED notification)\n# - MR bead ID (REQUIRED for closing after merge)\n```\n\n**IMPORTANT**: You MUST track the polecat name, MR bead ID, AND message ID - you will need them\nin merge-push step to send MERGED notification, close the MR bead, and archive the mail.\n\nMark as read. The work will be processed in queue-scan/process-branch.\n**Do NOT archive yet** - archive after merge/reject decision in merge-push step.\n\n**PATROL: Wake up**:\nWitness detected MRs waiting but refinery idle. Acknowledge and archive:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**HELP / Blocked**:\nAssess and respond. If you can't help, escalate to Mayor.\nArchive after handling:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**HANDOFF**:\nRead predecessor context. Check for in-flight merges.\nArchive after absorbing context:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**Hygiene principle**: Archive messages after they're fully processed.\nKeep only: pending MRs in queue. Inbox should be near-empty.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T00:34:44.778123-08:00","updated_at":"2026-01-12T00:34:59.807466-08:00","closed_at":"2026-01-12T00:34:59.807466-08:00","close_reason":"No messages in inbox","ephemeral":true} +{"id":"bd-wisp-5j5","title":"beads-release","description":"Beads release workflow v2 - gate-aware async release.\n\nThis formula orchestrates a complete release cycle with async gates:\n\nPhase 1 (Polecat Work):\n 1. Preflight checks (clean git, up to date)\n 2. Documentation updates (CHANGELOG, info.go)\n 3. Version bump (all components)\n 4. Git operations (commit, tag, push)\n\nGate (Async Wait):\n 5. await-ci: Gate on GitHub Actions release.yml completion\n\nPhase 2 (Parallel Verification):\n 6. Verify GitHub release, npm package, PyPI package (concurrent)\n\nPhase 3 (Installation):\n 7. Local installation update\n 8. Daemon restart\n\n## Usage\n\n```bash\nbd mol wisp create beads-release --var version=0.44.0\n```\n\nOr assign to a polecat:\n```bash\ngt sling beads/polecats/p1 --formula beads-release --var version=0.44.0\n```\n\nThe polecat will complete Phase 1, then signal phase-complete. The gate blocks\nuntil release.yml finishes. A new polecat (or the same one) resumes for Phases 2-3.\n","status":"open","priority":2,"issue_type":"epic","created_at":"2026-01-12T03:17:16.705057-08:00","updated_at":"2026-01-12T03:17:16.705057-08:00"} +{"id":"bd-wisp-60x","title":"Preflight: Check git status \u0026 auto-stash","description":"Ensure working tree is clean before starting release.\n\n```bash\ngit status --short\n```\n\n**Handling uncommitted changes:**\n\nIf changes are in release-related files (CHANGELOG, version files), you may want to:\n- Include them in the release commit\n- Or stash and apply after version bump\n\nIf changes are in **non-release files** (e.g., .beads/config.yaml, .claude/settings.json, local configs):\n```bash\n# Auto-stash non-release files\ngit stash push -m \"pre-release: non-release changes\" -- .beads/ .claude/ *.local* .env*\n\n# Verify working tree is now clean (or only has release files)\ngit status --short\n```\n\n**Important:** The bump script may fail if non-release files are modified. Always stash:\n- `.beads/` directory (local config)\n- `.claude/` directory (agent settings)\n- Any `.local`, `.env`, or personal config files\n\nAfter release completes, restore with:\n```bash\ngit stash pop\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.706064-08:00","updated_at":"2026-01-12T03:18:19.285076-08:00","closed_at":"2026-01-12T03:18:19.285076-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-60x","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.716027-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-60x","depends_on_id":"bd-wisp-3ii","type":"blocks","created_at":"2026-01-12T03:17:16.745775-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-61d","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"open","priority":2,"issue_type":"epic","created_at":"2026-01-13T17:50:19.718739-08:00","updated_at":"2026-01-13T17:50:19.718739-08:00"} +{"id":"bd-wisp-66z","title":"End-of-cycle inbox hygiene","description":"Verify inbox hygiene before ending patrol cycle.\n\n**Step 1: Check inbox state**\n```bash\ngt mail inbox\n```\n\nInbox should contain ONLY:\n- Unprocessed MERGE_READY messages (will process next cycle)\n- Active work items\n\n**Step 2: Archive any stale messages**\n\nLook for messages that were processed but not archived:\n- PATROL: Wake up that was acknowledged → archive\n- HELP/Blocked that was handled → archive\n- MERGE_READY where merge completed but archive was missed → archive\n\n```bash\n# For each stale message found:\ngt mail archive \u003cmessage-id\u003e\n```\n\n**Step 3: Check for orphaned MR beads**\n\nLook for open MR beads with no corresponding branch:\n```bash\nbd list --type=merge-request --status=open\n```\n\nFor each open MR bead:\n1. Check if branch exists: `git ls-remote origin refs/heads/\u003cbranch\u003e`\n2. If branch gone, verify work is on main: `git log origin/main --oneline | grep \"\u003csource_issue\u003e\"`\n3. If work on main → close MR with reason \"Merged (verified on main)\"\n4. If work NOT on main → investigate before closing:\n - Check source_issue validity (should be gt-xxxxx, not branch name)\n - Search reflog/dangling commits if possible\n - If unverifiable, close with reason \"Unverifiable - no audit trail\"\n - File bead if this indicates lost work\n\n**NEVER close an MR bead without verifying the work landed or is unrecoverable.**\n\n**Goal**: Inbox should have ≤3 active messages at end of cycle.\nKeep only: pending MRs in queue.","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T02:44:24.392901-08:00","updated_at":"2026-01-12T02:44:24.392901-08:00","dependencies":[{"issue_id":"bd-wisp-66z","depends_on_id":"bd-wisp-ec4","type":"parent-child","created_at":"2026-01-12T02:44:24.402169-08:00","created_by":"beads/refinery"}]} +{"id":"bd-wisp-6fb","title":"Check refinery mail","description":"Check mail for MERGE_READY submissions, escalations, and messages.\n\n```bash\ngt mail inbox\n```\n\nFor each message:\n\n**MERGE_READY**:\nA polecat's work is ready for merge. Extract details and track for processing.\n\n```bash\n# Parse MERGE_READY message body:\n# Branch: \u003cbranch\u003e\n# Issue: \u003cissue-id\u003e\n# Polecat: \u003cpolecat-name\u003e\n# MR: \u003cmr-bead-id\u003e\n# Verified: clean git state, issue closed\n\n# Track in your merge queue for this patrol cycle:\n# - Branch name\n# - Issue ID\n# - Polecat name (REQUIRED for MERGED notification)\n# - MR bead ID (REQUIRED for closing after merge)\n```\n\n**IMPORTANT**: You MUST track the polecat name, MR bead ID, AND message ID - you will need them\nin merge-push step to send MERGED notification, close the MR bead, and archive the mail.\n\nMark as read. The work will be processed in queue-scan/process-branch.\n**Do NOT archive yet** - archive after merge/reject decision in merge-push step.\n\n**PATROL: Wake up**:\nWitness detected MRs waiting but refinery idle. Acknowledge and archive:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**HELP / Blocked**:\nAssess and respond. If you can't help, escalate to Mayor.\nArchive after handling:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**HANDOFF**:\nRead predecessor context. Check for in-flight merges.\nArchive after absorbing context:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**Hygiene principle**: Archive messages after they're fully processed.\nKeep only: pending MRs in queue. Inbox should be near-empty.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T00:34:44.778123-08:00","updated_at":"2026-01-12T00:34:59.807466-08:00","closed_at":"2026-01-12T00:34:59.807466-08:00","close_reason":"No messages in inbox"} {"id":"bd-wisp-7qw","title":"Push to main","description":"Push the release commit to origin.\n\n```bash\ngit push origin main\n```\n\nIf rejected, someone else pushed. Pull, rebase, try again.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.257955-08:00","updated_at":"2026-01-06T20:12:28.230572-08:00","closed_at":"2026-01-06T20:12:28.230572-08:00","close_reason":"Pushed to main","dependencies":[{"issue_id":"bd-wisp-7qw","depends_on_id":"bd-wisp-cf3","type":"blocks","created_at":"2026-01-06T20:07:32.279279-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-wisp-7v8","title":"Stamp changelog with release date","description":"Add the release date to the [Unreleased] section header.\n\n```bash\nDATE=$(date +%Y-%m-%d)\n\n# macOS\nsed -i '' \"s/## \\[Unreleased\\]/## [Unreleased]\\\n\\\n## [0.47.1] - $DATE/\" CHANGELOG.md\n\n# Linux\nsed -i \"s/## \\[Unreleased\\]/## [Unreleased]\\n\\n## [0.47.1] - $DATE/\" CHANGELOG.md\n```\n\nNote: The update-changelog step handles the content; this step just adds the date stamp.\n\nVerify:\n```bash\ngrep -A2 '\\[Unreleased\\]' CHANGELOG.md\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.710177-08:00","updated_at":"2026-01-12T03:20:47.643952-08:00","closed_at":"2026-01-12T03:20:47.643952-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-7v8","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.729153-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-7v8","depends_on_id":"bd-wisp-3q2","type":"blocks","created_at":"2026-01-12T03:17:16.770447-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-82n","title":"Gate: gh:run release.yml","description":"Async gate for step await-ci","status":"open","priority":2,"issue_type":"gate","created_at":"2026-01-12T03:17:16.712314-08:00","updated_at":"2026-01-12T03:17:16.712314-08:00","dependencies":[{"issue_id":"bd-wisp-82n","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.736166-08:00","created_by":"beads/crew/emma"}],"ephemeral":true,"await_type":"gh:run","await_id":"release.yml","timeout":1800000000000} +{"id":"bd-wisp-7v8","title":"Stamp changelog with release date","description":"Add the release date to the [Unreleased] section header.\n\n```bash\nDATE=$(date +%Y-%m-%d)\n\n# macOS\nsed -i '' \"s/## \\[Unreleased\\]/## [Unreleased]\\\n\\\n## [0.47.1] - $DATE/\" CHANGELOG.md\n\n# Linux\nsed -i \"s/## \\[Unreleased\\]/## [Unreleased]\\n\\n## [0.47.1] - $DATE/\" CHANGELOG.md\n```\n\nNote: The update-changelog step handles the content; this step just adds the date stamp.\n\nVerify:\n```bash\ngrep -A2 '\\[Unreleased\\]' CHANGELOG.md\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.710177-08:00","updated_at":"2026-01-12T03:20:47.643952-08:00","closed_at":"2026-01-12T03:20:47.643952-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-7v8","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.729153-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-7v8","depends_on_id":"bd-wisp-3q2","type":"blocks","created_at":"2026-01-12T03:17:16.770447-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-82n","title":"Gate: gh:run release.yml","description":"Async gate for step await-ci","status":"open","priority":2,"issue_type":"gate","created_at":"2026-01-12T03:17:16.712314-08:00","updated_at":"2026-01-12T03:17:16.712314-08:00","dependencies":[{"issue_id":"bd-wisp-82n","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.736166-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-wisp-84x","title":"Push release tag","description":"Push the version tag to trigger CI release.\n\n```bash\ngit push origin v0.45.0\n```\n\nThis triggers GitHub Actions to build artifacts and publish.\n\n**Phase 1 Complete**: After this step, signal phase-complete:\n```bash\ngt done --phase-complete\n```\n\nThe gate will block until CI finishes. A new session will resume at Phase 2.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.258143-08:00","updated_at":"2026-01-06T20:12:35.736045-08:00","closed_at":"2026-01-06T20:12:35.736045-08:00","close_reason":"Tag v0.45.0 pushed - CI triggered","dependencies":[{"issue_id":"bd-wisp-84x","depends_on_id":"bd-wisp-7qw","type":"blocks","created_at":"2026-01-06T20:07:32.280347-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-wisp-84y","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"open","priority":2,"issue_type":"epic","created_at":"2026-01-13T17:55:20.281496-08:00","updated_at":"2026-01-13T17:55:20.281496-08:00","ephemeral":true} -{"id":"bd-wisp-8ke","title":"Run test suite","description":"Run the test suite.\n\n```bash\ngo test ./...\n```\n\nTrack results: pass count, fail count, specific failures.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T00:34:44.77926-08:00","updated_at":"2026-01-12T00:35:15.898241-08:00","closed_at":"2026-01-12T00:35:15.898241-08:00","close_reason":"Skipped - no branches in queue","dependencies":[{"issue_id":"bd-wisp-8ke","depends_on_id":"bd-wisp-s9j","type":"blocks","created_at":"2026-01-12T00:34:44.806934-08:00","created_by":"beads/refinery"}],"ephemeral":true} -{"id":"bd-wisp-8m1","title":"Verify PyPI package","description":"Confirm PyPI package published.\n\n```bash\npip index versions beads-mcp 2\u003e/dev/null | head -3\n```\n\nOr check: https://pypi.org/project/beads-mcp/\n\nShould show 0.47.1.\n\nNote: PyPI may have a small propagation delay (1-2 min).\n","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.713223-08:00","updated_at":"2026-01-12T03:17:16.713223-08:00","dependencies":[{"issue_id":"bd-wisp-8m1","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.740912-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-8m1","depends_on_id":"bd-wisp-4i8","type":"blocks","created_at":"2026-01-12T03:17:16.796067-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} +{"id":"bd-wisp-84y","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"open","priority":2,"issue_type":"epic","created_at":"2026-01-13T17:55:20.281496-08:00","updated_at":"2026-01-13T17:55:20.281496-08:00"} +{"id":"bd-wisp-8ke","title":"Run test suite","description":"Run the test suite.\n\n```bash\ngo test ./...\n```\n\nTrack results: pass count, fail count, specific failures.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T00:34:44.77926-08:00","updated_at":"2026-01-12T00:35:15.898241-08:00","closed_at":"2026-01-12T00:35:15.898241-08:00","close_reason":"Skipped - no branches in queue","dependencies":[{"issue_id":"bd-wisp-8ke","depends_on_id":"bd-wisp-s9j","type":"blocks","created_at":"2026-01-12T00:34:44.806934-08:00","created_by":"beads/refinery"}]} +{"id":"bd-wisp-8m1","title":"Verify PyPI package","description":"Confirm PyPI package published.\n\n```bash\npip index versions beads-mcp 2\u003e/dev/null | head -3\n```\n\nOr check: https://pypi.org/project/beads-mcp/\n\nShould show 0.47.1.\n\nNote: PyPI may have a small propagation delay (1-2 min).\n","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.713223-08:00","updated_at":"2026-01-12T03:17:16.713223-08:00","dependencies":[{"issue_id":"bd-wisp-8m1","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.740912-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-8m1","depends_on_id":"bd-wisp-4i8","type":"blocks","created_at":"2026-01-12T03:17:16.796067-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-wisp-99t","title":"Gate: gh:run release.yml","description":"Async gate for step await-ci","status":"closed","priority":2,"issue_type":"gate","created_at":"2026-01-06T20:07:32.258514-08:00","updated_at":"2026-01-06T20:17:28.461889-08:00","closed_at":"2026-01-06T20:17:28.461889-08:00","close_reason":"Release workflow completed successfully"} -{"id":"bd-wisp-9b0","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"closed","priority":2,"issue_type":"epic","assignee":"beads/refinery","created_at":"2026-01-10T18:35:46.606209-08:00","updated_at":"2026-01-10T18:41:19.369613-08:00","closed_at":"2026-01-10T18:41:19.369613-08:00","close_reason":"Closed","ephemeral":true} -{"id":"bd-wisp-9ej","title":"Merge and push to main","description":"Merge to main and push. CRITICAL: Notifications come IMMEDIATELY after push.\n\n**Step 1: Merge and Push**\n```bash\ngit checkout main\ngit merge --ff-only temp\ngit push origin main\n```\n\n⚠️ **STOP HERE - DO NOT PROCEED UNTIL STEPS 2-3 COMPLETE**\n\n**Step 2: Send MERGED Notification (REQUIRED - DO THIS IMMEDIATELY)**\n\nRIGHT NOW, before any cleanup, send MERGED mail to Witness:\n\n```bash\ngt mail send \u003crig\u003e/witness -s \"MERGED \u003cpolecat-name\u003e\" -m \"Branch: \u003cbranch\u003e\nIssue: \u003cissue-id\u003e\nMerged-At: $(date -u +%Y-%m-%dT%H:%M:%SZ)\"\n```\n\nThis signals the Witness to nuke the polecat worktree. WITHOUT THIS NOTIFICATION,\nPOLECAT WORKTREES ACCUMULATE INDEFINITELY AND THE LIFECYCLE BREAKS.\n\n**Step 3: Close MR Bead (REQUIRED - DO THIS IMMEDIATELY)**\n\n⚠️ **VERIFICATION BEFORE CLOSING**: Confirm the work is actually on main:\n```bash\n# Get the commit message/issue from the branch\ngit log origin/main --oneline | grep \"\u003cissue-id\u003e\"\n# OR verify the commit SHA is on main:\ngit branch --contains \u003ccommit-sha\u003e | grep main\n```\n\nIf work is NOT on main, DO NOT close the MR bead. Investigate first.\n\n```bash\nbd close \u003cmr-bead-id\u003e --reason \"Merged to main at $(git rev-parse --short HEAD)\"\n```\n\nThe MR bead ID was in the MERGE_READY message or find via:\n```bash\nbd list --type=merge-request --status=open | grep \u003cpolecat-name\u003e\n```\n\n**VALIDATION**: The MR bead's source_issue should be a valid bead ID (gt-xxxxx),\nnot a branch name. If source_issue contains a branch name, flag for investigation.\n\n**Step 4: Archive the MERGE_READY mail (REQUIRED)**\n```bash\ngt mail archive \u003cmerge-ready-message-id\u003e\n```\nThe message ID was tracked when you processed inbox-check.\n\n**Step 5: Cleanup (only after Steps 2-4 confirmed)**\n```bash\ngit branch -d temp\ngit push origin --delete \u003cpolecat-branch\u003e\n```\n\n**VERIFICATION GATE**: You CANNOT proceed to loop-check without:\n- [x] MERGED mail sent to witness\n- [x] MR bead closed\n- [x] MERGE_READY mail archived\n\nIf you skipped notifications or archiving, GO BACK AND DO THEM NOW.\n\nMain has moved. Any remaining branches need rebasing on new baseline.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T00:34:44.779884-08:00","updated_at":"2026-01-12T00:35:17.476883-08:00","closed_at":"2026-01-12T00:35:17.476883-08:00","close_reason":"Skipped - no branches in queue","dependencies":[{"issue_id":"bd-wisp-9ej","depends_on_id":"bd-wisp-tkf","type":"blocks","created_at":"2026-01-12T00:34:44.811787-08:00","created_by":"beads/refinery"}],"ephemeral":true} +{"id":"bd-wisp-9b0","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"closed","priority":2,"issue_type":"epic","created_at":"2026-01-10T18:35:46.606209-08:00","updated_at":"2026-01-10T18:41:19.369613-08:00","closed_at":"2026-01-10T18:41:19.369613-08:00","close_reason":"Closed"} +{"id":"bd-wisp-9ej","title":"Merge and push to main","description":"Merge to main and push. CRITICAL: Notifications come IMMEDIATELY after push.\n\n**Step 1: Merge and Push**\n```bash\ngit checkout main\ngit merge --ff-only temp\ngit push origin main\n```\n\n⚠️ **STOP HERE - DO NOT PROCEED UNTIL STEPS 2-3 COMPLETE**\n\n**Step 2: Send MERGED Notification (REQUIRED - DO THIS IMMEDIATELY)**\n\nRIGHT NOW, before any cleanup, send MERGED mail to Witness:\n\n```bash\ngt mail send \u003crig\u003e/witness -s \"MERGED \u003cpolecat-name\u003e\" -m \"Branch: \u003cbranch\u003e\nIssue: \u003cissue-id\u003e\nMerged-At: $(date -u +%Y-%m-%dT%H:%M:%SZ)\"\n```\n\nThis signals the Witness to nuke the polecat worktree. WITHOUT THIS NOTIFICATION,\nPOLECAT WORKTREES ACCUMULATE INDEFINITELY AND THE LIFECYCLE BREAKS.\n\n**Step 3: Close MR Bead (REQUIRED - DO THIS IMMEDIATELY)**\n\n⚠️ **VERIFICATION BEFORE CLOSING**: Confirm the work is actually on main:\n```bash\n# Get the commit message/issue from the branch\ngit log origin/main --oneline | grep \"\u003cissue-id\u003e\"\n# OR verify the commit SHA is on main:\ngit branch --contains \u003ccommit-sha\u003e | grep main\n```\n\nIf work is NOT on main, DO NOT close the MR bead. Investigate first.\n\n```bash\nbd close \u003cmr-bead-id\u003e --reason \"Merged to main at $(git rev-parse --short HEAD)\"\n```\n\nThe MR bead ID was in the MERGE_READY message or find via:\n```bash\nbd list --type=merge-request --status=open | grep \u003cpolecat-name\u003e\n```\n\n**VALIDATION**: The MR bead's source_issue should be a valid bead ID (gt-xxxxx),\nnot a branch name. If source_issue contains a branch name, flag for investigation.\n\n**Step 4: Archive the MERGE_READY mail (REQUIRED)**\n```bash\ngt mail archive \u003cmerge-ready-message-id\u003e\n```\nThe message ID was tracked when you processed inbox-check.\n\n**Step 5: Cleanup (only after Steps 2-4 confirmed)**\n```bash\ngit branch -d temp\ngit push origin --delete \u003cpolecat-branch\u003e\n```\n\n**VERIFICATION GATE**: You CANNOT proceed to loop-check without:\n- [x] MERGED mail sent to witness\n- [x] MR bead closed\n- [x] MERGE_READY mail archived\n\nIf you skipped notifications or archiving, GO BACK AND DO THEM NOW.\n\nMain has moved. Any remaining branches need rebasing on new baseline.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T00:34:44.779884-08:00","updated_at":"2026-01-12T00:35:17.476883-08:00","closed_at":"2026-01-12T00:35:17.476883-08:00","close_reason":"Skipped - no branches in queue","dependencies":[{"issue_id":"bd-wisp-9ej","depends_on_id":"bd-wisp-tkf","type":"blocks","created_at":"2026-01-12T00:34:44.811787-08:00","created_by":"beads/refinery"}]} {"id":"bd-wisp-9jo","title":"Review changes since last release","description":"Understand what's being released.\n\n```bash\ngit log $(git describe --tags --abbrev=0)..HEAD --oneline\n```\n\nCategorize changes:\n- Features (feat:)\n- Fixes (fix:)\n- Breaking changes\n- Documentation\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.256572-08:00","updated_at":"2026-01-06T20:08:55.146264-08:00","closed_at":"2026-01-06T20:08:55.146264-08:00","close_reason":"Reviewed 34 commits since v0.44.0","dependencies":[{"issue_id":"bd-wisp-9jo","depends_on_id":"bd-wisp-z85","type":"blocks","created_at":"2026-01-06T20:07:32.273034-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-wisp-9jv","title":"Scan merge queue","description":"Check the beads merge queue - this is the SOURCE OF TRUTH for pending merges.\n\n```bash\ngit fetch --prune origin\ngt mq list \u003crig\u003e\n```\n\nThe beads MQ tracks all pending merge requests. Do NOT rely on `git branch -r | grep polecat`\nas branches may exist without MR beads, or MR beads may exist for already-merged work.\n\nIf queue empty, skip to context-check step.\n\nFor each MR in the queue, verify the branch still exists:\n```bash\ngit branch -r | grep \u003cbranch\u003e\n```\n\nIf branch doesn't exist for a queued MR:\n- Close the MR bead: `bd close \u003cmr-id\u003e --reason \"Branch no longer exists\"`\n- Remove from processing queue\n\nTrack verified MR list for this cycle.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.195527-08:00","updated_at":"2026-01-12T01:27:42.447313-08:00","closed_at":"2026-01-12T01:27:42.447313-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-9jv","depends_on_id":"bd-wisp-q7n","type":"blocks","created_at":"2026-01-12T01:27:11.218511-08:00","created_by":"beads/refinery"}],"ephemeral":true} +{"id":"bd-wisp-9jv","title":"Scan merge queue","description":"Check the beads merge queue - this is the SOURCE OF TRUTH for pending merges.\n\n```bash\ngit fetch --prune origin\ngt mq list \u003crig\u003e\n```\n\nThe beads MQ tracks all pending merge requests. Do NOT rely on `git branch -r | grep polecat`\nas branches may exist without MR beads, or MR beads may exist for already-merged work.\n\nIf queue empty, skip to context-check step.\n\nFor each MR in the queue, verify the branch still exists:\n```bash\ngit branch -r | grep \u003cbranch\u003e\n```\n\nIf branch doesn't exist for a queued MR:\n- Close the MR bead: `bd close \u003cmr-id\u003e --reason \"Branch no longer exists\"`\n- Remove from processing queue\n\nTrack verified MR list for this cycle.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.195527-08:00","updated_at":"2026-01-12T01:27:42.447313-08:00","closed_at":"2026-01-12T01:27:42.447313-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-9jv","depends_on_id":"bd-wisp-q7n","type":"blocks","created_at":"2026-01-12T01:27:11.218511-08:00","created_by":"beads/refinery"}]} {"id":"bd-wisp-9ka","title":"Commit release","description":"Stage and commit all version changes.\n\n```bash\ngit add -A\ngit commit -m \"chore: Bump version to 0.45.0\"\n```\n\nReview the commit to ensure all expected files are included.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.257545-08:00","updated_at":"2026-01-06T20:11:53.72207-08:00","closed_at":"2026-01-06T20:11:53.72207-08:00","close_reason":"Release committed","dependencies":[{"issue_id":"bd-wisp-9ka","depends_on_id":"bd-wisp-v0n","type":"blocks","created_at":"2026-01-06T20:07:32.277252-08:00","created_by":"beads/crew/dave"}]} {"id":"bd-wisp-9kb","title":"Update info.go versionChanges","description":"Add entry to versionChanges in cmd/bd/info.go.\n\nThis powers `bd info --whats-new` for agents.\n\n```go\n\"0.45.0\": {\n \"summary\": \"Brief description\",\n \"changes\": []string{\n \"Key change 1\",\n \"Key change 2\",\n },\n},\n```\n\nFocus on workflow-impacting changes agents need to know.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.256963-08:00","updated_at":"2026-01-06T20:10:31.456687-08:00","closed_at":"2026-01-06T20:10:31.456687-08:00","close_reason":"info.go versionChanges updated for 0.45.0","dependencies":[{"issue_id":"bd-wisp-9kb","depends_on_id":"bd-wisp-540","type":"blocks","created_at":"2026-01-06T20:07:32.27459-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-wisp-9lg","title":"Update info.go versionChanges","description":"Add entry to versionChanges in cmd/bd/info.go.\n\nThis powers `bd info --whats-new` for agents.\n\n```go\n\"0.47.1\": {\n \"summary\": \"Brief description\",\n \"changes\": []string{\n \"Key change 1\",\n \"Key change 2\",\n },\n},\n```\n\nFocus on workflow-impacting changes agents need to know.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.707988-08:00","updated_at":"2026-01-12T03:19:48.160044-08:00","closed_at":"2026-01-12T03:19:48.160044-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-9lg","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.722132-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-9lg","depends_on_id":"bd-wisp-je0","type":"blocks","created_at":"2026-01-12T03:17:16.754969-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} +{"id":"bd-wisp-9lg","title":"Update info.go versionChanges","description":"Add entry to versionChanges in cmd/bd/info.go.\n\nThis powers `bd info --whats-new` for agents.\n\n```go\n\"0.47.1\": {\n \"summary\": \"Brief description\",\n \"changes\": []string{\n \"Key change 1\",\n \"Key change 2\",\n },\n},\n```\n\nFocus on workflow-impacting changes agents need to know.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.707988-08:00","updated_at":"2026-01-12T03:19:48.160044-08:00","closed_at":"2026-01-12T03:19:48.160044-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-9lg","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.722132-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-9lg","depends_on_id":"bd-wisp-je0","type":"blocks","created_at":"2026-01-12T03:17:16.754969-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-wisp-9sq","title":"Release complete","description":"Release v0.45.0 is complete!\n\nSummary:\n- All version files updated\n- Git tag pushed\n- CI artifacts built (via gate)\n- npm and PyPI packages verified\n- Local installation updated\n- Daemons restarted\n\nOptional next steps:\n- Announce on social media\n- Update documentation site\n- Close related milestone\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.259643-08:00","updated_at":"2026-01-06T20:18:20.109063-08:00","closed_at":"2026-01-06T20:18:20.109063-08:00","close_reason":"Release v0.45.0 complete","dependencies":[{"issue_id":"bd-wisp-9sq","depends_on_id":"bd-wisp-bkf","type":"blocks","created_at":"2026-01-06T20:07:32.292316-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-wisp-a2y","title":"Bump version in plugin JSON files","description":"Update Claude plugin manifest versions.\n\n```bash\n# macOS/Linux with jq\njq '.version = \"0.47.1\"' .claude-plugin/plugin.json \u003e tmp \u0026\u0026 mv tmp .claude-plugin/plugin.json\njq '.plugins[0].version = \"0.47.1\"' .claude-plugin/marketplace.json \u003e tmp \u0026\u0026 mv tmp .claude-plugin/marketplace.json\n```\n\nVerify:\n```bash\njq -r '.version' .claude-plugin/plugin.json\njq -r '.plugins[0].version' .claude-plugin/marketplace.json\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.708625-08:00","updated_at":"2026-01-12T03:20:47.631755-08:00","closed_at":"2026-01-12T03:20:47.631755-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-a2y","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.724124-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-a2y","depends_on_id":"bd-wisp-xwy","type":"blocks","created_at":"2026-01-12T03:17:16.758897-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-apf","title":"Check refinery mail","description":"Check mail for MERGE_READY submissions, escalations, and messages.\n\n```bash\ngt mail inbox\n```\n\nFor each message:\n\n**MERGE_READY**:\nA polecat's work is ready for merge. Extract details and track for processing.\n\n```bash\n# Parse MERGE_READY message body:\n# Branch: \u003cbranch\u003e\n# Issue: \u003cissue-id\u003e\n# Polecat: \u003cpolecat-name\u003e\n# MR: \u003cmr-bead-id\u003e\n# Verified: clean git state, issue closed\n\n# Track in your merge queue for this patrol cycle:\n# - Branch name\n# - Issue ID\n# - Polecat name (REQUIRED for MERGED notification)\n# - MR bead ID (REQUIRED for closing after merge)\n```\n\n**IMPORTANT**: You MUST track the polecat name, MR bead ID, AND message ID - you will need them\nin merge-push step to send MERGED notification, close the MR bead, and archive the mail.\n\nMark as read. The work will be processed in queue-scan/process-branch.\n**Do NOT archive yet** - archive after merge/reject decision in merge-push step.\n\n**PATROL: Wake up**:\nWitness detected MRs waiting but refinery idle. Acknowledge and archive:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**HELP / Blocked**:\nAssess and respond. If you can't help, escalate to Mayor.\nArchive after handling:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**HANDOFF**:\nRead predecessor context. Check for in-flight merges.\nArchive after absorbing context:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**Hygiene principle**: Archive messages after they're fully processed.\nKeep only: pending MRs in queue. Inbox should be near-empty.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T14:50:43.332033-08:00","updated_at":"2026-01-11T15:06:13.099965-08:00","closed_at":"2026-01-11T15:06:13.099965-08:00","close_reason":"Inbox empty, no messages","ephemeral":true} -{"id":"bd-wisp-az0","title":"Verify CHANGELOG completeness","description":"Ensure CHANGELOG captures ALL commits since the last release.\n\n**Step 1: Count commits since last tag**\n```bash\nLAST_TAG=$(git describe --tags --abbrev=0)\nCOMMIT_COUNT=$(git rev-list $LAST_TAG..HEAD --count)\necho \"Commits since $LAST_TAG: $COMMIT_COUNT\"\n```\n\n**Step 2: List all commits with their messages**\n```bash\ngit log $LAST_TAG..HEAD --oneline --no-merges\n```\n\n**Step 3: Cross-reference with CHANGELOG**\nOpen CHANGELOG.md and verify every significant commit is documented in [Unreleased].\n\n**Red flags for stale CHANGELOG:**\n- If CHANGELOG was last modified days ago but there are recent commits\n- If commit count seems high but [Unreleased] section is sparse\n- If PR titles in commits don't match CHANGELOG entries\n\n```bash\n# Check when CHANGELOG was last modified\ngit log -1 --format=\"%ar\" -- CHANGELOG.md\n\n# Compare to latest commit date\ngit log -1 --format=\"%ar\"\n```\n\n**If CHANGELOG is stale:**\n1. Review all commits since last tag\n2. Add missing entries to appropriate sections (Added/Changed/Fixed)\n3. Group related changes\n4. Focus on user-facing changes and breaking changes\n\nDon't proceed until CHANGELOG is complete - it's the release notes!\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.707361-08:00","updated_at":"2026-01-12T03:19:17.323602-08:00","closed_at":"2026-01-12T03:19:17.323602-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-az0","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.720147-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-az0","depends_on_id":"bd-wisp-nys","type":"blocks","created_at":"2026-01-12T03:17:16.751444-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-be1","title":"Release complete","description":"Release v0.47.1 is complete!\n\nSummary:\n- All version files updated\n- Git tag pushed\n- CI artifacts built (via gate)\n- npm and PyPI packages verified\n- Local installation updated\n- Daemons restarted\n\nOptional next steps:\n- Announce on social media\n- Update documentation site\n- Close related milestone\n","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.714128-08:00","updated_at":"2026-01-12T03:17:16.714128-08:00","dependencies":[{"issue_id":"bd-wisp-be1","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.744595-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-be1","depends_on_id":"bd-wisp-08w","type":"blocks","created_at":"2026-01-12T03:17:16.812973-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} +{"id":"bd-wisp-a2y","title":"Bump version in plugin JSON files","description":"Update Claude plugin manifest versions.\n\n```bash\n# macOS/Linux with jq\njq '.version = \"0.47.1\"' .claude-plugin/plugin.json \u003e tmp \u0026\u0026 mv tmp .claude-plugin/plugin.json\njq '.plugins[0].version = \"0.47.1\"' .claude-plugin/marketplace.json \u003e tmp \u0026\u0026 mv tmp .claude-plugin/marketplace.json\n```\n\nVerify:\n```bash\njq -r '.version' .claude-plugin/plugin.json\njq -r '.plugins[0].version' .claude-plugin/marketplace.json\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.708625-08:00","updated_at":"2026-01-12T03:20:47.631755-08:00","closed_at":"2026-01-12T03:20:47.631755-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-a2y","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.724124-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-a2y","depends_on_id":"bd-wisp-xwy","type":"blocks","created_at":"2026-01-12T03:17:16.758897-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-apf","title":"Check refinery mail","description":"Check mail for MERGE_READY submissions, escalations, and messages.\n\n```bash\ngt mail inbox\n```\n\nFor each message:\n\n**MERGE_READY**:\nA polecat's work is ready for merge. Extract details and track for processing.\n\n```bash\n# Parse MERGE_READY message body:\n# Branch: \u003cbranch\u003e\n# Issue: \u003cissue-id\u003e\n# Polecat: \u003cpolecat-name\u003e\n# MR: \u003cmr-bead-id\u003e\n# Verified: clean git state, issue closed\n\n# Track in your merge queue for this patrol cycle:\n# - Branch name\n# - Issue ID\n# - Polecat name (REQUIRED for MERGED notification)\n# - MR bead ID (REQUIRED for closing after merge)\n```\n\n**IMPORTANT**: You MUST track the polecat name, MR bead ID, AND message ID - you will need them\nin merge-push step to send MERGED notification, close the MR bead, and archive the mail.\n\nMark as read. The work will be processed in queue-scan/process-branch.\n**Do NOT archive yet** - archive after merge/reject decision in merge-push step.\n\n**PATROL: Wake up**:\nWitness detected MRs waiting but refinery idle. Acknowledge and archive:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**HELP / Blocked**:\nAssess and respond. If you can't help, escalate to Mayor.\nArchive after handling:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**HANDOFF**:\nRead predecessor context. Check for in-flight merges.\nArchive after absorbing context:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**Hygiene principle**: Archive messages after they're fully processed.\nKeep only: pending MRs in queue. Inbox should be near-empty.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T14:50:43.332033-08:00","updated_at":"2026-01-11T15:06:13.099965-08:00","closed_at":"2026-01-11T15:06:13.099965-08:00","close_reason":"Inbox empty, no messages"} +{"id":"bd-wisp-az0","title":"Verify CHANGELOG completeness","description":"Ensure CHANGELOG captures ALL commits since the last release.\n\n**Step 1: Count commits since last tag**\n```bash\nLAST_TAG=$(git describe --tags --abbrev=0)\nCOMMIT_COUNT=$(git rev-list $LAST_TAG..HEAD --count)\necho \"Commits since $LAST_TAG: $COMMIT_COUNT\"\n```\n\n**Step 2: List all commits with their messages**\n```bash\ngit log $LAST_TAG..HEAD --oneline --no-merges\n```\n\n**Step 3: Cross-reference with CHANGELOG**\nOpen CHANGELOG.md and verify every significant commit is documented in [Unreleased].\n\n**Red flags for stale CHANGELOG:**\n- If CHANGELOG was last modified days ago but there are recent commits\n- If commit count seems high but [Unreleased] section is sparse\n- If PR titles in commits don't match CHANGELOG entries\n\n```bash\n# Check when CHANGELOG was last modified\ngit log -1 --format=\"%ar\" -- CHANGELOG.md\n\n# Compare to latest commit date\ngit log -1 --format=\"%ar\"\n```\n\n**If CHANGELOG is stale:**\n1. Review all commits since last tag\n2. Add missing entries to appropriate sections (Added/Changed/Fixed)\n3. Group related changes\n4. Focus on user-facing changes and breaking changes\n\nDon't proceed until CHANGELOG is complete - it's the release notes!\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.707361-08:00","updated_at":"2026-01-12T03:19:17.323602-08:00","closed_at":"2026-01-12T03:19:17.323602-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-az0","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.720147-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-az0","depends_on_id":"bd-wisp-nys","type":"blocks","created_at":"2026-01-12T03:17:16.751444-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-be1","title":"Release complete","description":"Release v0.47.1 is complete!\n\nSummary:\n- All version files updated\n- Git tag pushed\n- CI artifacts built (via gate)\n- npm and PyPI packages verified\n- Local installation updated\n- Daemons restarted\n\nOptional next steps:\n- Announce on social media\n- Update documentation site\n- Close related milestone\n","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.714128-08:00","updated_at":"2026-01-12T03:17:16.714128-08:00","dependencies":[{"issue_id":"bd-wisp-be1","depends_on_id":"bd-wisp-08w","type":"blocks","created_at":"2026-01-12T03:17:16.812973-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-be1","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.744595-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-wisp-bkf","title":"Restart daemons","description":"Restart bd daemons to pick up new version.\n\n```bash\nbd daemons killall\n```\n\nDaemons will auto-restart with new version on next bd command.\n\nVerify:\n```bash\nbd daemons list\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.259461-08:00","updated_at":"2026-01-06T20:18:20.108169-08:00","closed_at":"2026-01-06T20:18:20.108169-08:00","close_reason":"Release v0.45.0 complete","dependencies":[{"issue_id":"bd-wisp-bkf","depends_on_id":"bd-wisp-fm4","type":"blocks","created_at":"2026-01-06T20:07:32.290802-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-wisp-bmc","title":"Check for more work","description":"More branches to process?\n\n**Entry paths:**\n- Normal: After successful merge-push\n- Conflict-skip: After process-branch created conflict-resolution task\n\nIf yes: Return to process-branch with next branch.\nIf no: Continue to generate-summary.\n\n**Track for this cycle:**\n- branches_merged: count and names of successfully merged branches\n- branches_conflict: count and names of branches skipped due to conflicts\n- conflict_tasks: IDs of conflict-resolution tasks created\n\nThis tracking feeds into generate-summary for the patrol digest.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T00:34:44.780188-08:00","updated_at":"2026-01-12T00:35:19.408028-08:00","closed_at":"2026-01-12T00:35:19.408028-08:00","close_reason":"Queue was empty - no loop needed","dependencies":[{"issue_id":"bd-wisp-bmc","depends_on_id":"bd-wisp-9ej","type":"blocks","created_at":"2026-01-12T00:34:44.814328-08:00","created_by":"beads/refinery"}],"ephemeral":true} +{"id":"bd-wisp-bmc","title":"Check for more work","description":"More branches to process?\n\n**Entry paths:**\n- Normal: After successful merge-push\n- Conflict-skip: After process-branch created conflict-resolution task\n\nIf yes: Return to process-branch with next branch.\nIf no: Continue to generate-summary.\n\n**Track for this cycle:**\n- branches_merged: count and names of successfully merged branches\n- branches_conflict: count and names of branches skipped due to conflicts\n- conflict_tasks: IDs of conflict-resolution tasks created\n\nThis tracking feeds into generate-summary for the patrol digest.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T00:34:44.780188-08:00","updated_at":"2026-01-12T00:35:19.408028-08:00","closed_at":"2026-01-12T00:35:19.408028-08:00","close_reason":"Queue was empty - no loop needed","dependencies":[{"issue_id":"bd-wisp-bmc","depends_on_id":"bd-wisp-9ej","type":"blocks","created_at":"2026-01-12T00:34:44.814328-08:00","created_by":"beads/refinery"}]} {"id":"bd-wisp-bye","title":"Run bump-version.sh","description":"Update all component versions atomically.\n\n```bash\n./scripts/bump-version.sh 0.45.0\n```\n\nThis updates:\n- cmd/bd/version.go\n- .claude-plugin/*.json\n- integrations/beads-mcp/pyproject.toml\n- integrations/beads-mcp/src/beads_mcp/__init__.py\n- npm-package/package.json\n- Hook templates\n- README.md\n- CHANGELOG.md (adds date)\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.257161-08:00","updated_at":"2026-01-06T20:11:24.896526-08:00","closed_at":"2026-01-06T20:11:24.896526-08:00","close_reason":"Version bumped and verified: 0.45.0","dependencies":[{"issue_id":"bd-wisp-bye","depends_on_id":"bd-wisp-9kb","type":"blocks","created_at":"2026-01-06T20:07:32.275432-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-wisp-ce6","title":"Run test suite","description":"Run the test suite.\n\n```bash\ngo test ./...\n```\n\nTrack results: pass count, fail count, specific failures.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.196163-08:00","updated_at":"2026-01-12T01:27:49.323086-08:00","closed_at":"2026-01-12T01:27:49.323086-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-ce6","depends_on_id":"bd-wisp-3th","type":"blocks","created_at":"2026-01-12T01:27:11.222525-08:00","created_by":"beads/refinery"}],"ephemeral":true} +{"id":"bd-wisp-ce6","title":"Run test suite","description":"Run the test suite.\n\n```bash\ngo test ./...\n```\n\nTrack results: pass count, fail count, specific failures.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.196163-08:00","updated_at":"2026-01-12T01:27:49.323086-08:00","closed_at":"2026-01-12T01:27:49.323086-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-ce6","depends_on_id":"bd-wisp-3th","type":"blocks","created_at":"2026-01-12T01:27:11.222525-08:00","created_by":"beads/refinery"}]} {"id":"bd-wisp-cf3","title":"Create release tag","description":"Create annotated git tag.\n\n```bash\ngit tag -a v0.45.0 -m \"Release v0.45.0\"\n```\n\nVerify: `git tag -l | tail -5`\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.257743-08:00","updated_at":"2026-01-06T20:12:04.079541-08:00","closed_at":"2026-01-06T20:12:04.079541-08:00","close_reason":"Tag v0.45.0 created","dependencies":[{"issue_id":"bd-wisp-cf3","depends_on_id":"bd-wisp-9ka","type":"blocks","created_at":"2026-01-06T20:07:32.278265-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-wisp-cfr","title":"Bump version in MCP Python package","description":"Update the beads-mcp Python package version.\n\n```bash\n# macOS\nsed -i '' 's/version = \"[^\"]*\"/version = \"0.47.1\"/' integrations/beads-mcp/pyproject.toml\nsed -i '' 's/__version__ = \"[^\"]*\"/__version__ = \"0.47.1\"/' integrations/beads-mcp/src/beads_mcp/__init__.py\n\n# Linux\nsed -i 's/version = \"[^\"]*\"/version = \"0.47.1\"/' integrations/beads-mcp/pyproject.toml\nsed -i 's/__version__ = \"[^\"]*\"/__version__ = \"0.47.1\"/' integrations/beads-mcp/src/beads_mcp/__init__.py\n```\n\nVerify:\n```bash\ngrep 'version = ' integrations/beads-mcp/pyproject.toml | head -1\ngrep '__version__ = ' integrations/beads-mcp/src/beads_mcp/__init__.py\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.70893-08:00","updated_at":"2026-01-12T03:20:47.634391-08:00","closed_at":"2026-01-12T03:20:47.634391-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-cfr","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.725128-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-cfr","depends_on_id":"bd-wisp-a2y","type":"blocks","created_at":"2026-01-12T03:17:16.761173-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-d7b","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"closed","priority":2,"issue_type":"epic","assignee":"beads/refinery","created_at":"2026-01-10T20:13:17.442141-08:00","updated_at":"2026-01-10T20:24:29.145383-08:00","closed_at":"2026-01-10T20:24:29.145383-08:00","close_reason":"Patrol: queue empty, no branches to merge","ephemeral":true} +{"id":"bd-wisp-cfr","title":"Bump version in MCP Python package","description":"Update the beads-mcp Python package version.\n\n```bash\n# macOS\nsed -i '' 's/version = \"[^\"]*\"/version = \"0.47.1\"/' integrations/beads-mcp/pyproject.toml\nsed -i '' 's/__version__ = \"[^\"]*\"/__version__ = \"0.47.1\"/' integrations/beads-mcp/src/beads_mcp/__init__.py\n\n# Linux\nsed -i 's/version = \"[^\"]*\"/version = \"0.47.1\"/' integrations/beads-mcp/pyproject.toml\nsed -i 's/__version__ = \"[^\"]*\"/__version__ = \"0.47.1\"/' integrations/beads-mcp/src/beads_mcp/__init__.py\n```\n\nVerify:\n```bash\ngrep 'version = ' integrations/beads-mcp/pyproject.toml | head -1\ngrep '__version__ = ' integrations/beads-mcp/src/beads_mcp/__init__.py\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.70893-08:00","updated_at":"2026-01-12T03:20:47.634391-08:00","closed_at":"2026-01-12T03:20:47.634391-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-cfr","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.725128-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-cfr","depends_on_id":"bd-wisp-a2y","type":"blocks","created_at":"2026-01-12T03:17:16.761173-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-d7b","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"closed","priority":2,"issue_type":"epic","created_at":"2026-01-10T20:13:17.442141-08:00","updated_at":"2026-01-10T20:24:29.145383-08:00","closed_at":"2026-01-10T20:24:29.145383-08:00","close_reason":"Patrol: queue empty, no branches to merge"} {"id":"bd-wisp-dj0","title":"beads-release","description":"Beads release workflow v2 - gate-aware async release.\n\nThis formula orchestrates a complete release cycle with async gates:\n\nPhase 1 (Polecat Work):\n 1. Preflight checks (clean git, up to date)\n 2. Documentation updates (CHANGELOG, info.go)\n 3. Version bump (all components)\n 4. Git operations (commit, tag, push)\n\nGate (Async Wait):\n 5. await-ci: Gate on GitHub Actions release.yml completion\n\nPhase 2 (Parallel Verification):\n 6. Verify GitHub release, npm package, PyPI package (concurrent)\n\nPhase 3 (Installation):\n 7. Local installation update\n 8. Daemon restart\n\n## Usage\n\n```bash\nbd mol wisp create beads-release --var version=0.44.0\n```\n\nOr assign to a polecat:\n```bash\ngt sling beads/polecats/p1 --formula beads-release --var version=0.44.0\n```\n\nThe polecat will complete Phase 1, then signal phase-complete. The gate blocks\nuntil release.yml finishes. A new polecat (or the same one) resumes for Phases 2-3.\n","status":"closed","priority":2,"issue_type":"epic","created_at":"2026-01-07T00:02:11.335159-08:00","updated_at":"2026-01-07T00:11:26.667806-08:00","closed_at":"2026-01-07T00:11:26.667806-08:00","close_reason":"Release v0.46.0 published: GitHub, npm, PyPI all verified"} -{"id":"bd-wisp-dz5","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"closed","priority":2,"issue_type":"epic","assignee":"beads/refinery","created_at":"2026-01-10T19:40:21.849288-08:00","updated_at":"2026-01-10T19:45:58.671508-08:00","closed_at":"2026-01-10T19:45:58.671508-08:00","close_reason":"Patrol complete: queue empty","ephemeral":true} -{"id":"bd-wisp-ec4","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"open","priority":2,"issue_type":"epic","assignee":"beads/refinery","created_at":"2026-01-12T02:44:24.389343-08:00","updated_at":"2026-01-12T17:22:24.034782-08:00","ephemeral":true} -{"id":"bd-wisp-efo","title":"Push to main","description":"Push the release commit to origin.\n\n```bash\ngit push origin main\n```\n\nIf rejected, someone else pushed. Pull, rebase, try again.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.711396-08:00","updated_at":"2026-01-12T03:21:47.150051-08:00","closed_at":"2026-01-12T03:21:47.150051-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-efo","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.733165-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-efo","depends_on_id":"bd-wisp-yi6","type":"blocks","created_at":"2026-01-12T03:17:16.781037-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} +{"id":"bd-wisp-dz5","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"closed","priority":2,"issue_type":"epic","created_at":"2026-01-10T19:40:21.849288-08:00","updated_at":"2026-01-10T19:45:58.671508-08:00","closed_at":"2026-01-10T19:45:58.671508-08:00","close_reason":"Patrol complete: queue empty"} +{"id":"bd-wisp-ec4","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"open","priority":2,"issue_type":"epic","created_at":"2026-01-12T02:44:24.389343-08:00","updated_at":"2026-01-12T17:22:24.034782-08:00"} +{"id":"bd-wisp-efo","title":"Push to main","description":"Push the release commit to origin.\n\n```bash\ngit push origin main\n```\n\nIf rejected, someone else pushed. Pull, rebase, try again.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.711396-08:00","updated_at":"2026-01-12T03:21:47.150051-08:00","closed_at":"2026-01-12T03:21:47.150051-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-efo","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.733165-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-efo","depends_on_id":"bd-wisp-yi6","type":"blocks","created_at":"2026-01-12T03:17:16.781037-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-wisp-eh4","title":"Verify npm package","description":"Confirm npm package published.\n\n```bash\nnpm show @beads/bd version\n```\n\nShould show 0.45.0.\n\nAlso check: https://www.npmjs.com/package/@beads/bd\n\nNote: npm registry may have a small propagation delay (1-2 min).\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.258891-08:00","updated_at":"2026-01-06T20:17:52.238932-08:00","closed_at":"2026-01-06T20:17:52.238932-08:00","close_reason":"All release artifacts verified: GitHub (9 assets), npm 0.45.0, PyPI 0.45.0","dependencies":[{"issue_id":"bd-wisp-eh4","depends_on_id":"bd-wisp-u9o","type":"blocks","created_at":"2026-01-06T20:07:32.283957-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-wisp-ex5","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"hooked","priority":2,"issue_type":"epic","assignee":"beads/refinery","created_at":"2026-01-13T11:02:35.229332-08:00","updated_at":"2026-01-13T11:02:48.386016-08:00","ephemeral":true} +{"id":"bd-wisp-ex5","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"hooked","priority":2,"issue_type":"epic","created_at":"2026-01-13T11:02:35.229332-08:00","updated_at":"2026-01-13T11:02:48.386016-08:00"} {"id":"bd-wisp-fm4","title":"Update local installation","description":"Update local bd to the new version.\n\nOption 1 - Homebrew:\n```bash\nbrew upgrade bd\n```\n\nOption 2 - Install script:\n```bash\ncurl -fsSL https://raw.githubusercontent.com/steveyegge/beads/main/scripts/install.sh | bash\n```\n\nVerify:\n```bash\nbd --version\n```\n\nShould show 0.45.0.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.259261-08:00","updated_at":"2026-01-06T20:18:20.106709-08:00","closed_at":"2026-01-06T20:18:20.106709-08:00","close_reason":"Release v0.45.0 complete","dependencies":[{"issue_id":"bd-wisp-fm4","depends_on_id":"bd-wisp-gnr","type":"blocks","created_at":"2026-01-06T20:07:32.286541-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-wisp-fm4","depends_on_id":"bd-wisp-eh4","type":"blocks","created_at":"2026-01-06T20:07:32.287962-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-wisp-fm4","depends_on_id":"bd-wisp-04d","type":"blocks","created_at":"2026-01-06T20:07:32.289399-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-wisp-gb3","title":"Bump version in npm package","description":"Update the npm package version.\n\n```bash\n# macOS/Linux with jq\njq '.version = \"0.47.1\"' npm-package/package.json \u003e tmp \u0026\u0026 mv tmp npm-package/package.json\n```\n\nVerify:\n```bash\njq -r '.version' npm-package/package.json\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.709238-08:00","updated_at":"2026-01-12T03:20:47.636942-08:00","closed_at":"2026-01-12T03:20:47.636942-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-gb3","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.726136-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-gb3","depends_on_id":"bd-wisp-cfr","type":"blocks","created_at":"2026-01-12T03:17:16.763406-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-gby","title":"Check for more work","description":"More branches to process?\n\n**Entry paths:**\n- Normal: After successful merge-push\n- Conflict-skip: After process-branch created conflict-resolution task\n\nIf yes: Return to process-branch with next branch.\nIf no: Continue to generate-summary.\n\n**Track for this cycle:**\n- branches_merged: count and names of successfully merged branches\n- branches_conflict: count and names of branches skipped due to conflicts\n- conflict_tasks: IDs of conflict-resolution tasks created\n\nThis tracking feeds into generate-summary for the patrol digest.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.197065-08:00","updated_at":"2026-01-12T01:27:49.671718-08:00","closed_at":"2026-01-12T01:27:49.671718-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-gby","depends_on_id":"bd-wisp-mld","type":"blocks","created_at":"2026-01-12T01:27:11.229663-08:00","created_by":"beads/refinery"}],"ephemeral":true} +{"id":"bd-wisp-gb3","title":"Bump version in npm package","description":"Update the npm package version.\n\n```bash\n# macOS/Linux with jq\njq '.version = \"0.47.1\"' npm-package/package.json \u003e tmp \u0026\u0026 mv tmp npm-package/package.json\n```\n\nVerify:\n```bash\njq -r '.version' npm-package/package.json\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.709238-08:00","updated_at":"2026-01-12T03:20:47.636942-08:00","closed_at":"2026-01-12T03:20:47.636942-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-gb3","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.726136-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-gb3","depends_on_id":"bd-wisp-cfr","type":"blocks","created_at":"2026-01-12T03:17:16.763406-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-gby","title":"Check for more work","description":"More branches to process?\n\n**Entry paths:**\n- Normal: After successful merge-push\n- Conflict-skip: After process-branch created conflict-resolution task\n\nIf yes: Return to process-branch with next branch.\nIf no: Continue to generate-summary.\n\n**Track for this cycle:**\n- branches_merged: count and names of successfully merged branches\n- branches_conflict: count and names of branches skipped due to conflicts\n- conflict_tasks: IDs of conflict-resolution tasks created\n\nThis tracking feeds into generate-summary for the patrol digest.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.197065-08:00","updated_at":"2026-01-12T01:27:49.671718-08:00","closed_at":"2026-01-12T01:27:49.671718-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-gby","depends_on_id":"bd-wisp-mld","type":"blocks","created_at":"2026-01-12T01:27:11.229663-08:00","created_by":"beads/refinery"}]} {"id":"bd-wisp-gnr","title":"Verify GitHub release","description":"Check the GitHub releases page.\n\nhttps://github.com/steveyegge/beads/releases/tag/v0.45.0\n\nVerify:\n- Release created\n- Binaries attached (linux, darwin, windows)\n- Checksums present\n\n```bash\ngh release view v0.45.0 --json assets --jq '.assets[].name'\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.258704-08:00","updated_at":"2026-01-06T20:17:52.237306-08:00","closed_at":"2026-01-06T20:17:52.237306-08:00","close_reason":"All release artifacts verified: GitHub (9 assets), npm 0.45.0, PyPI 0.45.0","dependencies":[{"issue_id":"bd-wisp-gnr","depends_on_id":"bd-wisp-u9o","type":"blocks","created_at":"2026-01-06T20:07:32.282733-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-wisp-i7d","title":"Check own context limit","description":"Check own context usage.\n\nIf context is HIGH (\u003e80%):\n- Write handoff summary\n- Prepare for burn/respawn\n\nIf context is LOW:\n- Can continue processing","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.197674-08:00","updated_at":"2026-01-12T01:28:22.969704-08:00","closed_at":"2026-01-12T01:28:22.969704-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-i7d","depends_on_id":"bd-wisp-pyf","type":"blocks","created_at":"2026-01-12T01:27:11.2348-08:00","created_by":"beads/refinery"}],"ephemeral":true} -{"id":"bd-wisp-iii","title":"Bump version in hook templates","description":"Update version comment in git hook templates.\n\n```bash\n# macOS\nfor f in cmd/bd/templates/hooks/pre-commit cmd/bd/templates/hooks/post-merge cmd/bd/templates/hooks/pre-push cmd/bd/templates/hooks/post-checkout; do\n sed -i '' 's/# bd-hooks-version: .*/# bd-hooks-version: 0.47.1/' \"$f\"\ndone\n\n# Linux\nfor f in cmd/bd/templates/hooks/pre-commit cmd/bd/templates/hooks/post-merge cmd/bd/templates/hooks/pre-push cmd/bd/templates/hooks/post-checkout; do\n sed -i 's/# bd-hooks-version: .*/# bd-hooks-version: 0.47.1/' \"$f\"\ndone\n```\n\nVerify:\n```bash\ngrep '# bd-hooks-version:' cmd/bd/templates/hooks/pre-commit\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.709539-08:00","updated_at":"2026-01-12T03:20:47.639368-08:00","closed_at":"2026-01-12T03:20:47.639368-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-iii","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.727134-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-iii","depends_on_id":"bd-wisp-gb3","type":"blocks","created_at":"2026-01-12T03:17:16.765697-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-je0","title":"Update CHANGELOG.md","description":"Write the [Unreleased] section with all changes for 0.47.1.\n\nFormat: Keep a Changelog (https://keepachangelog.com)\n\nSections:\n- ### Added\n- ### Changed\n- ### Fixed\n- ### Documentation\n\nThe bump script will stamp the date automatically.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.707676-08:00","updated_at":"2026-01-12T03:19:17.32748-08:00","closed_at":"2026-01-12T03:19:17.32748-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-je0","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.721148-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-je0","depends_on_id":"bd-wisp-az0","type":"blocks","created_at":"2026-01-12T03:17:16.753125-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-mjq","title":"Handle test failures","description":"**VERIFICATION GATE**: This step enforces the Beads Promise.\n\nIf tests PASSED: This step auto-completes. Proceed to merge.\n\nIf tests FAILED:\n1. Diagnose: Is this a branch regression or pre-existing on main?\n2. If branch caused it:\n - Abort merge\n - Notify polecat: \"Tests failing. Please fix and resubmit.\"\n - Skip to loop-check\n3. If pre-existing on main:\n - Option A: Fix it yourself (you're the Engineer!)\n - Option B: File a bead: bd create --type=bug --priority=1 --title=\"...\"\n\n**GATE REQUIREMENT**: You CANNOT proceed to merge-push without:\n- Tests passing, OR\n- Fix committed, OR\n- Bead filed for the failure\n\nThis is non-negotiable. Never disavow. Never \"note and proceed.\" ","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.196466-08:00","updated_at":"2026-01-12T01:27:49.440026-08:00","closed_at":"2026-01-12T01:27:49.440026-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-mjq","depends_on_id":"bd-wisp-ce6","type":"blocks","created_at":"2026-01-12T01:27:11.224814-08:00","created_by":"beads/refinery"}],"ephemeral":true} -{"id":"bd-wisp-mld","title":"Merge and push to main","description":"Merge to main and push. CRITICAL: Notifications come IMMEDIATELY after push.\n\n**Step 1: Merge and Push**\n```bash\ngit checkout main\ngit merge --ff-only temp\ngit push origin main\n```\n\n⚠️ **STOP HERE - DO NOT PROCEED UNTIL STEPS 2-3 COMPLETE**\n\n**Step 2: Send MERGED Notification (REQUIRED - DO THIS IMMEDIATELY)**\n\nRIGHT NOW, before any cleanup, send MERGED mail to Witness:\n\n```bash\ngt mail send \u003crig\u003e/witness -s \"MERGED \u003cpolecat-name\u003e\" -m \"Branch: \u003cbranch\u003e\nIssue: \u003cissue-id\u003e\nMerged-At: $(date -u +%Y-%m-%dT%H:%M:%SZ)\"\n```\n\nThis signals the Witness to nuke the polecat worktree. WITHOUT THIS NOTIFICATION,\nPOLECAT WORKTREES ACCUMULATE INDEFINITELY AND THE LIFECYCLE BREAKS.\n\n**Step 3: Close MR Bead (REQUIRED - DO THIS IMMEDIATELY)**\n\n⚠️ **VERIFICATION BEFORE CLOSING**: Confirm the work is actually on main:\n```bash\n# Get the commit message/issue from the branch\ngit log origin/main --oneline | grep \"\u003cissue-id\u003e\"\n# OR verify the commit SHA is on main:\ngit branch --contains \u003ccommit-sha\u003e | grep main\n```\n\nIf work is NOT on main, DO NOT close the MR bead. Investigate first.\n\n```bash\nbd close \u003cmr-bead-id\u003e --reason \"Merged to main at $(git rev-parse --short HEAD)\"\n```\n\nThe MR bead ID was in the MERGE_READY message or find via:\n```bash\nbd list --type=merge-request --status=open | grep \u003cpolecat-name\u003e\n```\n\n**VALIDATION**: The MR bead's source_issue should be a valid bead ID (gt-xxxxx),\nnot a branch name. If source_issue contains a branch name, flag for investigation.\n\n**Step 4: Archive the MERGE_READY mail (REQUIRED)**\n```bash\ngt mail archive \u003cmerge-ready-message-id\u003e\n```\nThe message ID was tracked when you processed inbox-check.\n\n**Step 5: Cleanup (only after Steps 2-4 confirmed)**\n```bash\ngit branch -d temp\ngit push origin --delete \u003cpolecat-branch\u003e\n```\n\n**VERIFICATION GATE**: You CANNOT proceed to loop-check without:\n- [x] MERGED mail sent to witness\n- [x] MR bead closed\n- [x] MERGE_READY mail archived\n\nIf you skipped notifications or archiving, GO BACK AND DO THEM NOW.\n\nMain has moved. Any remaining branches need rebasing on new baseline.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.196764-08:00","updated_at":"2026-01-12T01:27:49.55647-08:00","closed_at":"2026-01-12T01:27:49.55647-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-mld","depends_on_id":"bd-wisp-mjq","type":"blocks","created_at":"2026-01-12T01:27:11.227232-08:00","created_by":"beads/refinery"}],"ephemeral":true} -{"id":"bd-wisp-msq","title":"Update local installation","description":"Update local bd to the new version.\n\nOption 1 - Homebrew:\n```bash\nbrew upgrade bd\n```\n\nOption 2 - Install script:\n```bash\ncurl -fsSL https://raw.githubusercontent.com/steveyegge/beads/main/scripts/install.sh | bash\n```\n\nVerify:\n```bash\nbd --version\n```\n\nShould show 0.47.1.\n","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.713524-08:00","updated_at":"2026-01-12T03:17:16.713525-08:00","dependencies":[{"issue_id":"bd-wisp-msq","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.742098-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-msq","depends_on_id":"bd-wisp-2g2","type":"blocks","created_at":"2026-01-12T03:17:16.799353-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-msq","depends_on_id":"bd-wisp-mtc","type":"blocks","created_at":"2026-01-12T03:17:16.802756-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-msq","depends_on_id":"bd-wisp-8m1","type":"blocks","created_at":"2026-01-12T03:17:16.806081-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-mtc","title":"Verify npm package","description":"Confirm npm package published.\n\n```bash\nnpm show @beads/bd version\n```\n\nShould show 0.47.1.\n\nAlso check: https://www.npmjs.com/package/@beads/bd\n\nNote: npm registry may have a small propagation delay (1-2 min).\n","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.712922-08:00","updated_at":"2026-01-12T03:17:16.712923-08:00","dependencies":[{"issue_id":"bd-wisp-mtc","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.739725-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-mtc","depends_on_id":"bd-wisp-4i8","type":"blocks","created_at":"2026-01-12T03:17:16.792889-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-n25","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"open","priority":2,"issue_type":"epic","created_at":"2026-01-13T17:59:05.82394-08:00","updated_at":"2026-01-13T17:59:05.82394-08:00","ephemeral":true} -{"id":"bd-wisp-nys","title":"Review changes since last release","description":"Understand what's being released.\n\n```bash\ngit log $(git describe --tags --abbrev=0)..HEAD --oneline\n```\n\nCategorize changes:\n- Features (feat:)\n- Fixes (fix:)\n- Breaking changes\n- Documentation\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.707033-08:00","updated_at":"2026-01-12T03:18:49.071964-08:00","closed_at":"2026-01-12T03:18:49.071964-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-nys","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.719145-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-nys","depends_on_id":"bd-wisp-07c","type":"blocks","created_at":"2026-01-12T03:17:16.749907-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-pyf","title":"Generate handoff summary","description":"Summarize this patrol cycle.\n\n**VERIFICATION**: Before generating summary, confirm for each merged branch:\n- [ ] MERGED mail was sent to witness\n- [ ] MR bead was closed\n- [ ] MERGE_READY mail archived\n\nIf any notifications or archiving were missed, do them now!\n\nInclude in summary:\n- Branches merged (count, names)\n- MERGED mails sent (count - should match branches merged)\n- MR beads closed (count - should match branches merged)\n- MERGE_READY mails archived (count - should match branches merged)\n- Test results (pass/fail)\n- Branches with conflicts (count, names)\n- Conflict-resolution tasks created (IDs)\n- Issues filed (if any)\n- Any escalations sent\n\n**Conflict tracking is important** for monitoring MQ health. If many branches\nconflict, it may indicate main is moving too fast or branches are too stale.\n\nThis becomes the digest when the patrol is squashed.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.197367-08:00","updated_at":"2026-01-12T01:28:17.663658-08:00","closed_at":"2026-01-12T01:28:17.663658-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-pyf","depends_on_id":"bd-wisp-gby","type":"blocks","created_at":"2026-01-12T01:27:11.232206-08:00","created_by":"beads/refinery"}],"ephemeral":true} -{"id":"bd-wisp-q7n","title":"Check refinery mail","description":"Check mail for MERGE_READY submissions, escalations, and messages.\n\n```bash\ngt mail inbox\n```\n\nFor each message:\n\n**MERGE_READY**:\nA polecat's work is ready for merge. Extract details and track for processing.\n\n```bash\n# Parse MERGE_READY message body:\n# Branch: \u003cbranch\u003e\n# Issue: \u003cissue-id\u003e\n# Polecat: \u003cpolecat-name\u003e\n# MR: \u003cmr-bead-id\u003e\n# Verified: clean git state, issue closed\n\n# Track in your merge queue for this patrol cycle:\n# - Branch name\n# - Issue ID\n# - Polecat name (REQUIRED for MERGED notification)\n# - MR bead ID (REQUIRED for closing after merge)\n```\n\n**IMPORTANT**: You MUST track the polecat name, MR bead ID, AND message ID - you will need them\nin merge-push step to send MERGED notification, close the MR bead, and archive the mail.\n\nMark as read. The work will be processed in queue-scan/process-branch.\n**Do NOT archive yet** - archive after merge/reject decision in merge-push step.\n\n**PATROL: Wake up**:\nWitness detected MRs waiting but refinery idle. Acknowledge and archive:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**HELP / Blocked**:\nAssess and respond. If you can't help, escalate to Mayor.\nArchive after handling:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**HANDOFF**:\nRead predecessor context. Check for in-flight merges.\nArchive after absorbing context:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**Hygiene principle**: Archive messages after they're fully processed.\nKeep only: pending MRs in queue. Inbox should be near-empty.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.195173-08:00","updated_at":"2026-01-12T01:27:25.54453-08:00","closed_at":"2026-01-12T01:27:25.54453-08:00","close_reason":"Closed","ephemeral":true} -{"id":"bd-wisp-s9j","title":"Mechanical rebase","description":"Pick next branch from queue. Attempt mechanical rebase on current main.\n\n**Step 1: Checkout and attempt rebase**\n```bash\ngit checkout -b temp origin/\u003cpolecat-branch\u003e\ngit rebase origin/main\n```\n\n**Step 2: Check rebase result**\n\nThe rebase exits with:\n- Exit code 0: Success - proceed to run-tests\n- Exit code 1 (conflicts): Conflict detected - proceed to Step 3\n\nTo detect conflict state after rebase fails:\n```bash\n# Check if we're in a conflicted rebase state\nls .git/rebase-merge 2\u003e/dev/null \u0026\u0026 echo \"CONFLICT_STATE\"\n```\n\n**Step 3: Handle conflicts (if any)**\n\nIf rebase SUCCEEDED (exit code 0):\n- Skip to run-tests step (continue normal merge flow)\n\nIf rebase FAILED with conflicts:\n\n1. **Abort the rebase** (DO NOT leave repo in conflicted state):\n```bash\ngit rebase --abort\n```\n\n2. **Record conflict metadata**:\n```bash\n# Capture main SHA for reference\nMAIN_SHA=$(git rev-parse origin/main)\nBRANCH_SHA=$(git rev-parse origin/\u003cpolecat-branch\u003e)\n```\n\n3. **Create conflict-resolution task**:\n```bash\nbd create --type=task --priority=1 --title=\"Resolve merge conflicts: \u003coriginal-issue-title\u003e\" --description=\"## Conflict Resolution Required\n\nOriginal MR: \u003cmr-bead-id\u003e\nBranch: \u003cpolecat-branch\u003e\nOriginal Issue: \u003cissue-id\u003e\nConflict with main at: ${MAIN_SHA}\nBranch SHA: ${BRANCH_SHA}\n\n## Instructions\n1. Clone/checkout the branch\n2. Rebase on current main: git rebase origin/main\n3. Resolve conflicts\n4. Force push: git push -f origin \u003cbranch\u003e\n5. Close this task when done\n\nThe MR will be re-queued for processing after conflicts are resolved.\"\n```\n\n4. **Skip this MR** (do NOT delete branch or close MR bead):\n- Leave branch intact for conflict resolution\n- Leave MR bead open (will be re-processed after resolution)\n- Continue to loop-check for next branch\n\n**CRITICAL**: Never delete a branch that has conflicts. The branch contains\nthe original work and must be preserved for conflict resolution.\n\nTrack: rebase result (success/conflict), conflict task ID if created.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T00:34:44.7789-08:00","updated_at":"2026-01-12T00:35:15.077005-08:00","closed_at":"2026-01-12T00:35:15.077005-08:00","close_reason":"Skipped - no branches in queue","dependencies":[{"issue_id":"bd-wisp-s9j","depends_on_id":"bd-wisp-vqe","type":"blocks","created_at":"2026-01-12T00:34:44.804577-08:00","created_by":"beads/refinery"}],"ephemeral":true} -{"id":"bd-wisp-tkf","title":"Handle test failures","description":"**VERIFICATION GATE**: This step enforces the Beads Promise.\n\nIf tests PASSED: This step auto-completes. Proceed to merge.\n\nIf tests FAILED:\n1. Diagnose: Is this a branch regression or pre-existing on main?\n2. If branch caused it:\n - Abort merge\n - Notify polecat: \"Tests failing. Please fix and resubmit.\"\n - Skip to loop-check\n3. If pre-existing on main:\n - Option A: Fix it yourself (you're the Engineer!)\n - Option B: File a bead: bd create --type=bug --priority=1 --title=\"...\"\n\n**GATE REQUIREMENT**: You CANNOT proceed to merge-push without:\n- Tests passing, OR\n- Fix committed, OR\n- Bead filed for the failure\n\nThis is non-negotiable. Never disavow. Never \"note and proceed.\" ","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T00:34:44.779587-08:00","updated_at":"2026-01-12T00:35:16.670629-08:00","closed_at":"2026-01-12T00:35:16.670629-08:00","close_reason":"Skipped - no branches in queue","dependencies":[{"issue_id":"bd-wisp-tkf","depends_on_id":"bd-wisp-8ke","type":"blocks","created_at":"2026-01-12T00:34:44.809281-08:00","created_by":"beads/refinery"}],"ephemeral":true} -{"id":"bd-wisp-tno","title":"Burn and respawn or loop","description":"End of patrol cycle decision.\n\n**Step 1: Estimate remaining context**\n\nAsk yourself:\n- Have I processed many branches this cycle?\n- Is the conversation getting long?\n- Am I starting to lose track of earlier context?\n\nRule of thumb: If you've done 3+ merges or processed significant cleanup work,\nit's time for a fresh session.\n\n**Step 2: Decision tree**\n\nIf queue non-empty AND context LOW:\n- Squash this wisp to digest\n- Spawn fresh patrol wisp\n- Return to inbox-check\n\nIf queue empty OR context HIGH OR good stopping point:\n- Squash wisp with summary digest\n- Use `gt handoff` for clean session transition:\n\n```bash\ngt handoff -s \"Patrol complete\" -m \"Merged X branches, Y tests passed.\nQueue: empty/N remaining\nNext: [any notes for successor]\"\n```\n\n**Why gt handoff?**\n- Sends handoff mail to yourself with context\n- Respawns with fresh Claude instance\n- SessionStart hook runs gt prime\n- Successor picks up from your hook\n\n**DO NOT just exit.** Always use `gt handoff` for proper lifecycle.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.198268-08:00","updated_at":"2026-01-12T01:28:31.935242-08:00","closed_at":"2026-01-12T01:28:31.935242-08:00","close_reason":"Closed","ephemeral":true} -{"id":"bd-wisp-u9o","title":"Await CI: release.yml completion","description":"Gate step: Wait for GitHub Actions release workflow to complete.\n\nThis gate blocks until the release.yml workflow run succeeds.\nThe Refinery auto-discovers the workflow run triggered by v0.45.0\nand closes this gate when it completes.\n\nExpected time: 5-10 minutes\n\nThe gate monitors:\n- Build artifacts (all platforms)\n- Test suite pass\n- npm publish\n- PyPI publish\n\nIf the workflow fails, this gate remains open and requires manual intervention.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.258324-08:00","updated_at":"2026-01-06T20:17:28.463543-08:00","closed_at":"2026-01-06T20:17:28.463543-08:00","close_reason":"Release workflow completed successfully","dependencies":[{"issue_id":"bd-wisp-u9o","depends_on_id":"bd-wisp-99t","type":"blocks","created_at":"2026-01-06T20:07:32.268008-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-wisp-u9o","depends_on_id":"bd-wisp-84x","type":"blocks","created_at":"2026-01-06T20:07:32.281571-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-wisp-uvd","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"closed","priority":2,"issue_type":"epic","assignee":"beads/refinery","created_at":"2026-01-10T17:57:56.356923-08:00","updated_at":"2026-01-10T18:01:38.662587-08:00","closed_at":"2026-01-10T18:01:38.662587-08:00","close_reason":"Patrol: queue empty, no branches to merge","ephemeral":true} +{"id":"bd-wisp-i7d","title":"Check own context limit","description":"Check own context usage.\n\nIf context is HIGH (\u003e80%):\n- Write handoff summary\n- Prepare for burn/respawn\n\nIf context is LOW:\n- Can continue processing","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.197674-08:00","updated_at":"2026-01-12T01:28:22.969704-08:00","closed_at":"2026-01-12T01:28:22.969704-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-i7d","depends_on_id":"bd-wisp-pyf","type":"blocks","created_at":"2026-01-12T01:27:11.2348-08:00","created_by":"beads/refinery"}]} +{"id":"bd-wisp-iii","title":"Bump version in hook templates","description":"Update version comment in git hook templates.\n\n```bash\n# macOS\nfor f in cmd/bd/templates/hooks/pre-commit cmd/bd/templates/hooks/post-merge cmd/bd/templates/hooks/pre-push cmd/bd/templates/hooks/post-checkout; do\n sed -i '' 's/# bd-hooks-version: .*/# bd-hooks-version: 0.47.1/' \"$f\"\ndone\n\n# Linux\nfor f in cmd/bd/templates/hooks/pre-commit cmd/bd/templates/hooks/post-merge cmd/bd/templates/hooks/pre-push cmd/bd/templates/hooks/post-checkout; do\n sed -i 's/# bd-hooks-version: .*/# bd-hooks-version: 0.47.1/' \"$f\"\ndone\n```\n\nVerify:\n```bash\ngrep '# bd-hooks-version:' cmd/bd/templates/hooks/pre-commit\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.709539-08:00","updated_at":"2026-01-12T03:20:47.639368-08:00","closed_at":"2026-01-12T03:20:47.639368-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-iii","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.727134-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-iii","depends_on_id":"bd-wisp-gb3","type":"blocks","created_at":"2026-01-12T03:17:16.765697-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-je0","title":"Update CHANGELOG.md","description":"Write the [Unreleased] section with all changes for 0.47.1.\n\nFormat: Keep a Changelog (https://keepachangelog.com)\n\nSections:\n- ### Added\n- ### Changed\n- ### Fixed\n- ### Documentation\n\nThe bump script will stamp the date automatically.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.707676-08:00","updated_at":"2026-01-12T03:19:17.32748-08:00","closed_at":"2026-01-12T03:19:17.32748-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-je0","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.721148-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-je0","depends_on_id":"bd-wisp-az0","type":"blocks","created_at":"2026-01-12T03:17:16.753125-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-mjq","title":"Handle test failures","description":"**VERIFICATION GATE**: This step enforces the Beads Promise.\n\nIf tests PASSED: This step auto-completes. Proceed to merge.\n\nIf tests FAILED:\n1. Diagnose: Is this a branch regression or pre-existing on main?\n2. If branch caused it:\n - Abort merge\n - Notify polecat: \"Tests failing. Please fix and resubmit.\"\n - Skip to loop-check\n3. If pre-existing on main:\n - Option A: Fix it yourself (you're the Engineer!)\n - Option B: File a bead: bd create --type=bug --priority=1 --title=\"...\"\n\n**GATE REQUIREMENT**: You CANNOT proceed to merge-push without:\n- Tests passing, OR\n- Fix committed, OR\n- Bead filed for the failure\n\nThis is non-negotiable. Never disavow. Never \"note and proceed.\" ","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.196466-08:00","updated_at":"2026-01-12T01:27:49.440026-08:00","closed_at":"2026-01-12T01:27:49.440026-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-mjq","depends_on_id":"bd-wisp-ce6","type":"blocks","created_at":"2026-01-12T01:27:11.224814-08:00","created_by":"beads/refinery"}]} +{"id":"bd-wisp-mld","title":"Merge and push to main","description":"Merge to main and push. CRITICAL: Notifications come IMMEDIATELY after push.\n\n**Step 1: Merge and Push**\n```bash\ngit checkout main\ngit merge --ff-only temp\ngit push origin main\n```\n\n⚠️ **STOP HERE - DO NOT PROCEED UNTIL STEPS 2-3 COMPLETE**\n\n**Step 2: Send MERGED Notification (REQUIRED - DO THIS IMMEDIATELY)**\n\nRIGHT NOW, before any cleanup, send MERGED mail to Witness:\n\n```bash\ngt mail send \u003crig\u003e/witness -s \"MERGED \u003cpolecat-name\u003e\" -m \"Branch: \u003cbranch\u003e\nIssue: \u003cissue-id\u003e\nMerged-At: $(date -u +%Y-%m-%dT%H:%M:%SZ)\"\n```\n\nThis signals the Witness to nuke the polecat worktree. WITHOUT THIS NOTIFICATION,\nPOLECAT WORKTREES ACCUMULATE INDEFINITELY AND THE LIFECYCLE BREAKS.\n\n**Step 3: Close MR Bead (REQUIRED - DO THIS IMMEDIATELY)**\n\n⚠️ **VERIFICATION BEFORE CLOSING**: Confirm the work is actually on main:\n```bash\n# Get the commit message/issue from the branch\ngit log origin/main --oneline | grep \"\u003cissue-id\u003e\"\n# OR verify the commit SHA is on main:\ngit branch --contains \u003ccommit-sha\u003e | grep main\n```\n\nIf work is NOT on main, DO NOT close the MR bead. Investigate first.\n\n```bash\nbd close \u003cmr-bead-id\u003e --reason \"Merged to main at $(git rev-parse --short HEAD)\"\n```\n\nThe MR bead ID was in the MERGE_READY message or find via:\n```bash\nbd list --type=merge-request --status=open | grep \u003cpolecat-name\u003e\n```\n\n**VALIDATION**: The MR bead's source_issue should be a valid bead ID (gt-xxxxx),\nnot a branch name. If source_issue contains a branch name, flag for investigation.\n\n**Step 4: Archive the MERGE_READY mail (REQUIRED)**\n```bash\ngt mail archive \u003cmerge-ready-message-id\u003e\n```\nThe message ID was tracked when you processed inbox-check.\n\n**Step 5: Cleanup (only after Steps 2-4 confirmed)**\n```bash\ngit branch -d temp\ngit push origin --delete \u003cpolecat-branch\u003e\n```\n\n**VERIFICATION GATE**: You CANNOT proceed to loop-check without:\n- [x] MERGED mail sent to witness\n- [x] MR bead closed\n- [x] MERGE_READY mail archived\n\nIf you skipped notifications or archiving, GO BACK AND DO THEM NOW.\n\nMain has moved. Any remaining branches need rebasing on new baseline.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.196764-08:00","updated_at":"2026-01-12T01:27:49.55647-08:00","closed_at":"2026-01-12T01:27:49.55647-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-mld","depends_on_id":"bd-wisp-mjq","type":"blocks","created_at":"2026-01-12T01:27:11.227232-08:00","created_by":"beads/refinery"}]} +{"id":"bd-wisp-msq","title":"Update local installation","description":"Update local bd to the new version.\n\nOption 1 - Homebrew:\n```bash\nbrew upgrade bd\n```\n\nOption 2 - Install script:\n```bash\ncurl -fsSL https://raw.githubusercontent.com/steveyegge/beads/main/scripts/install.sh | bash\n```\n\nVerify:\n```bash\nbd --version\n```\n\nShould show 0.47.1.\n","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.713524-08:00","updated_at":"2026-01-12T03:17:16.713525-08:00","dependencies":[{"issue_id":"bd-wisp-msq","depends_on_id":"bd-wisp-8m1","type":"blocks","created_at":"2026-01-12T03:17:16.806081-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-msq","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.742098-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-msq","depends_on_id":"bd-wisp-2g2","type":"blocks","created_at":"2026-01-12T03:17:16.799353-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-msq","depends_on_id":"bd-wisp-mtc","type":"blocks","created_at":"2026-01-12T03:17:16.802756-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-mtc","title":"Verify npm package","description":"Confirm npm package published.\n\n```bash\nnpm show @beads/bd version\n```\n\nShould show 0.47.1.\n\nAlso check: https://www.npmjs.com/package/@beads/bd\n\nNote: npm registry may have a small propagation delay (1-2 min).\n","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.712922-08:00","updated_at":"2026-01-12T03:17:16.712923-08:00","dependencies":[{"issue_id":"bd-wisp-mtc","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.739725-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-mtc","depends_on_id":"bd-wisp-4i8","type":"blocks","created_at":"2026-01-12T03:17:16.792889-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-n25","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"open","priority":2,"issue_type":"epic","created_at":"2026-01-13T17:59:05.82394-08:00","updated_at":"2026-01-13T17:59:05.82394-08:00"} +{"id":"bd-wisp-nys","title":"Review changes since last release","description":"Understand what's being released.\n\n```bash\ngit log $(git describe --tags --abbrev=0)..HEAD --oneline\n```\n\nCategorize changes:\n- Features (feat:)\n- Fixes (fix:)\n- Breaking changes\n- Documentation\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.707033-08:00","updated_at":"2026-01-12T03:18:49.071964-08:00","closed_at":"2026-01-12T03:18:49.071964-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-nys","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.719145-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-nys","depends_on_id":"bd-wisp-07c","type":"blocks","created_at":"2026-01-12T03:17:16.749907-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-pyf","title":"Generate handoff summary","description":"Summarize this patrol cycle.\n\n**VERIFICATION**: Before generating summary, confirm for each merged branch:\n- [ ] MERGED mail was sent to witness\n- [ ] MR bead was closed\n- [ ] MERGE_READY mail archived\n\nIf any notifications or archiving were missed, do them now!\n\nInclude in summary:\n- Branches merged (count, names)\n- MERGED mails sent (count - should match branches merged)\n- MR beads closed (count - should match branches merged)\n- MERGE_READY mails archived (count - should match branches merged)\n- Test results (pass/fail)\n- Branches with conflicts (count, names)\n- Conflict-resolution tasks created (IDs)\n- Issues filed (if any)\n- Any escalations sent\n\n**Conflict tracking is important** for monitoring MQ health. If many branches\nconflict, it may indicate main is moving too fast or branches are too stale.\n\nThis becomes the digest when the patrol is squashed.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.197367-08:00","updated_at":"2026-01-12T01:28:17.663658-08:00","closed_at":"2026-01-12T01:28:17.663658-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-pyf","depends_on_id":"bd-wisp-gby","type":"blocks","created_at":"2026-01-12T01:27:11.232206-08:00","created_by":"beads/refinery"}]} +{"id":"bd-wisp-q7n","title":"Check refinery mail","description":"Check mail for MERGE_READY submissions, escalations, and messages.\n\n```bash\ngt mail inbox\n```\n\nFor each message:\n\n**MERGE_READY**:\nA polecat's work is ready for merge. Extract details and track for processing.\n\n```bash\n# Parse MERGE_READY message body:\n# Branch: \u003cbranch\u003e\n# Issue: \u003cissue-id\u003e\n# Polecat: \u003cpolecat-name\u003e\n# MR: \u003cmr-bead-id\u003e\n# Verified: clean git state, issue closed\n\n# Track in your merge queue for this patrol cycle:\n# - Branch name\n# - Issue ID\n# - Polecat name (REQUIRED for MERGED notification)\n# - MR bead ID (REQUIRED for closing after merge)\n```\n\n**IMPORTANT**: You MUST track the polecat name, MR bead ID, AND message ID - you will need them\nin merge-push step to send MERGED notification, close the MR bead, and archive the mail.\n\nMark as read. The work will be processed in queue-scan/process-branch.\n**Do NOT archive yet** - archive after merge/reject decision in merge-push step.\n\n**PATROL: Wake up**:\nWitness detected MRs waiting but refinery idle. Acknowledge and archive:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**HELP / Blocked**:\nAssess and respond. If you can't help, escalate to Mayor.\nArchive after handling:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**HANDOFF**:\nRead predecessor context. Check for in-flight merges.\nArchive after absorbing context:\n```bash\ngt mail archive \u003cmessage-id\u003e\n```\n\n**Hygiene principle**: Archive messages after they're fully processed.\nKeep only: pending MRs in queue. Inbox should be near-empty.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.195173-08:00","updated_at":"2026-01-12T01:27:25.54453-08:00","closed_at":"2026-01-12T01:27:25.54453-08:00","close_reason":"Closed"} +{"id":"bd-wisp-s9j","title":"Mechanical rebase","description":"Pick next branch from queue. Attempt mechanical rebase on current main.\n\n**Step 1: Checkout and attempt rebase**\n```bash\ngit checkout -b temp origin/\u003cpolecat-branch\u003e\ngit rebase origin/main\n```\n\n**Step 2: Check rebase result**\n\nThe rebase exits with:\n- Exit code 0: Success - proceed to run-tests\n- Exit code 1 (conflicts): Conflict detected - proceed to Step 3\n\nTo detect conflict state after rebase fails:\n```bash\n# Check if we're in a conflicted rebase state\nls .git/rebase-merge 2\u003e/dev/null \u0026\u0026 echo \"CONFLICT_STATE\"\n```\n\n**Step 3: Handle conflicts (if any)**\n\nIf rebase SUCCEEDED (exit code 0):\n- Skip to run-tests step (continue normal merge flow)\n\nIf rebase FAILED with conflicts:\n\n1. **Abort the rebase** (DO NOT leave repo in conflicted state):\n```bash\ngit rebase --abort\n```\n\n2. **Record conflict metadata**:\n```bash\n# Capture main SHA for reference\nMAIN_SHA=$(git rev-parse origin/main)\nBRANCH_SHA=$(git rev-parse origin/\u003cpolecat-branch\u003e)\n```\n\n3. **Create conflict-resolution task**:\n```bash\nbd create --type=task --priority=1 --title=\"Resolve merge conflicts: \u003coriginal-issue-title\u003e\" --description=\"## Conflict Resolution Required\n\nOriginal MR: \u003cmr-bead-id\u003e\nBranch: \u003cpolecat-branch\u003e\nOriginal Issue: \u003cissue-id\u003e\nConflict with main at: ${MAIN_SHA}\nBranch SHA: ${BRANCH_SHA}\n\n## Instructions\n1. Clone/checkout the branch\n2. Rebase on current main: git rebase origin/main\n3. Resolve conflicts\n4. Force push: git push -f origin \u003cbranch\u003e\n5. Close this task when done\n\nThe MR will be re-queued for processing after conflicts are resolved.\"\n```\n\n4. **Skip this MR** (do NOT delete branch or close MR bead):\n- Leave branch intact for conflict resolution\n- Leave MR bead open (will be re-processed after resolution)\n- Continue to loop-check for next branch\n\n**CRITICAL**: Never delete a branch that has conflicts. The branch contains\nthe original work and must be preserved for conflict resolution.\n\nTrack: rebase result (success/conflict), conflict task ID if created.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T00:34:44.7789-08:00","updated_at":"2026-01-12T00:35:15.077005-08:00","closed_at":"2026-01-12T00:35:15.077005-08:00","close_reason":"Skipped - no branches in queue","dependencies":[{"issue_id":"bd-wisp-s9j","depends_on_id":"bd-wisp-vqe","type":"blocks","created_at":"2026-01-12T00:34:44.804577-08:00","created_by":"beads/refinery"}]} +{"id":"bd-wisp-tkf","title":"Handle test failures","description":"**VERIFICATION GATE**: This step enforces the Beads Promise.\n\nIf tests PASSED: This step auto-completes. Proceed to merge.\n\nIf tests FAILED:\n1. Diagnose: Is this a branch regression or pre-existing on main?\n2. If branch caused it:\n - Abort merge\n - Notify polecat: \"Tests failing. Please fix and resubmit.\"\n - Skip to loop-check\n3. If pre-existing on main:\n - Option A: Fix it yourself (you're the Engineer!)\n - Option B: File a bead: bd create --type=bug --priority=1 --title=\"...\"\n\n**GATE REQUIREMENT**: You CANNOT proceed to merge-push without:\n- Tests passing, OR\n- Fix committed, OR\n- Bead filed for the failure\n\nThis is non-negotiable. Never disavow. Never \"note and proceed.\" ","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T00:34:44.779587-08:00","updated_at":"2026-01-12T00:35:16.670629-08:00","closed_at":"2026-01-12T00:35:16.670629-08:00","close_reason":"Skipped - no branches in queue","dependencies":[{"issue_id":"bd-wisp-tkf","depends_on_id":"bd-wisp-8ke","type":"blocks","created_at":"2026-01-12T00:34:44.809281-08:00","created_by":"beads/refinery"}]} +{"id":"bd-wisp-tno","title":"Burn and respawn or loop","description":"End of patrol cycle decision.\n\n**Step 1: Estimate remaining context**\n\nAsk yourself:\n- Have I processed many branches this cycle?\n- Is the conversation getting long?\n- Am I starting to lose track of earlier context?\n\nRule of thumb: If you've done 3+ merges or processed significant cleanup work,\nit's time for a fresh session.\n\n**Step 2: Decision tree**\n\nIf queue non-empty AND context LOW:\n- Squash this wisp to digest\n- Spawn fresh patrol wisp\n- Return to inbox-check\n\nIf queue empty OR context HIGH OR good stopping point:\n- Squash wisp with summary digest\n- Use `gt handoff` for clean session transition:\n\n```bash\ngt handoff -s \"Patrol complete\" -m \"Merged X branches, Y tests passed.\nQueue: empty/N remaining\nNext: [any notes for successor]\"\n```\n\n**Why gt handoff?**\n- Sends handoff mail to yourself with context\n- Respawns with fresh Claude instance\n- SessionStart hook runs gt prime\n- Successor picks up from your hook\n\n**DO NOT just exit.** Always use `gt handoff` for proper lifecycle.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T01:27:11.198268-08:00","updated_at":"2026-01-12T01:28:31.935242-08:00","closed_at":"2026-01-12T01:28:31.935242-08:00","close_reason":"Closed"} +{"id":"bd-wisp-u9o","title":"Await CI: release.yml completion","description":"Gate step: Wait for GitHub Actions release workflow to complete.\n\nThis gate blocks until the release.yml workflow run succeeds.\nThe Refinery auto-discovers the workflow run triggered by v0.45.0\nand closes this gate when it completes.\n\nExpected time: 5-10 minutes\n\nThe gate monitors:\n- Build artifacts (all platforms)\n- Test suite pass\n- npm publish\n- PyPI publish\n\nIf the workflow fails, this gate remains open and requires manual intervention.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.258324-08:00","updated_at":"2026-01-06T20:17:28.463543-08:00","closed_at":"2026-01-06T20:17:28.463543-08:00","close_reason":"Release workflow completed successfully","dependencies":[{"issue_id":"bd-wisp-u9o","depends_on_id":"bd-wisp-84x","type":"blocks","created_at":"2026-01-06T20:07:32.281571-08:00","created_by":"beads/crew/dave"},{"issue_id":"bd-wisp-u9o","depends_on_id":"bd-wisp-99t","type":"blocks","created_at":"2026-01-06T20:07:32.268008-08:00","created_by":"beads/crew/dave"}]} +{"id":"bd-wisp-uvd","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"closed","priority":2,"issue_type":"epic","created_at":"2026-01-10T17:57:56.356923-08:00","updated_at":"2026-01-10T18:01:38.662587-08:00","closed_at":"2026-01-10T18:01:38.662587-08:00","close_reason":"Patrol: queue empty, no branches to merge"} {"id":"bd-wisp-v0n","title":"Verify version consistency","description":"Confirm all versions match 0.45.0.\n\n```bash\ngrep 'Version = ' cmd/bd/version.go\njq -r '.version' .claude-plugin/plugin.json\njq -r '.version' npm-package/package.json\ngrep 'version = ' integrations/beads-mcp/pyproject.toml\n```\n\nAll should show 0.45.0.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.257354-08:00","updated_at":"2026-01-06T20:11:24.898472-08:00","closed_at":"2026-01-06T20:11:24.898472-08:00","close_reason":"Version bumped and verified: 0.45.0","dependencies":[{"issue_id":"bd-wisp-v0n","depends_on_id":"bd-wisp-bye","type":"blocks","created_at":"2026-01-06T20:07:32.276314-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-wisp-vqe","title":"Scan merge queue","description":"Check the beads merge queue - this is the SOURCE OF TRUTH for pending merges.\n\n```bash\ngit fetch --prune origin\ngt mq list \u003crig\u003e\n```\n\nThe beads MQ tracks all pending merge requests. Do NOT rely on `git branch -r | grep polecat`\nas branches may exist without MR beads, or MR beads may exist for already-merged work.\n\nIf queue empty, skip to context-check step.\n\nFor each MR in the queue, verify the branch still exists:\n```bash\ngit branch -r | grep \u003cbranch\u003e\n```\n\nIf branch doesn't exist for a queued MR:\n- Close the MR bead: `bd close \u003cmr-id\u003e --reason \"Branch no longer exists\"`\n- Remove from processing queue\n\nTrack verified MR list for this cycle.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T00:34:44.778524-08:00","updated_at":"2026-01-12T00:35:06.623602-08:00","closed_at":"2026-01-12T00:35:06.623602-08:00","close_reason":"Merge queue empty - no branches waiting","dependencies":[{"issue_id":"bd-wisp-vqe","depends_on_id":"bd-wisp-6fb","type":"blocks","created_at":"2026-01-12T00:34:44.802492-08:00","created_by":"beads/refinery"}],"ephemeral":true} +{"id":"bd-wisp-vqe","title":"Scan merge queue","description":"Check the beads merge queue - this is the SOURCE OF TRUTH for pending merges.\n\n```bash\ngit fetch --prune origin\ngt mq list \u003crig\u003e\n```\n\nThe beads MQ tracks all pending merge requests. Do NOT rely on `git branch -r | grep polecat`\nas branches may exist without MR beads, or MR beads may exist for already-merged work.\n\nIf queue empty, skip to context-check step.\n\nFor each MR in the queue, verify the branch still exists:\n```bash\ngit branch -r | grep \u003cbranch\u003e\n```\n\nIf branch doesn't exist for a queued MR:\n- Close the MR bead: `bd close \u003cmr-id\u003e --reason \"Branch no longer exists\"`\n- Remove from processing queue\n\nTrack verified MR list for this cycle.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T00:34:44.778524-08:00","updated_at":"2026-01-12T00:35:06.623602-08:00","closed_at":"2026-01-12T00:35:06.623602-08:00","close_reason":"Merge queue empty - no branches waiting","dependencies":[{"issue_id":"bd-wisp-vqe","depends_on_id":"bd-wisp-6fb","type":"blocks","created_at":"2026-01-12T00:34:44.802492-08:00","created_by":"beads/refinery"}]} {"id":"bd-wisp-w75","title":"Preflight: Check git status","description":"Ensure working tree is clean before starting release.\n\n```bash\ngit status\n```\n\nIf there are uncommitted changes, either:\n- Commit them first\n- Stash them: `git stash`\n- Abort and resolve\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.256152-08:00","updated_at":"2026-01-06T20:08:35.66615-08:00","closed_at":"2026-01-06T20:08:35.66615-08:00","close_reason":"Preflight checks passed"} -{"id":"bd-wisp-xwx","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"closed","priority":2,"issue_type":"epic","assignee":"beads/refinery","created_at":"2026-01-10T18:23:27.131593-08:00","updated_at":"2026-01-10T18:29:19.904299-08:00","closed_at":"2026-01-10T18:29:19.904299-08:00","close_reason":"Patrol complete: queue empty, no branches to merge","ephemeral":true} -{"id":"bd-wisp-xwy","title":"Bump version in version.go","description":"Update the Go version constant.\n\n```bash\n# macOS\nsed -i '' 's/Version = \"[^\"]*\"/Version = \"0.47.1\"/' cmd/bd/version.go\n\n# Linux\nsed -i 's/Version = \"[^\"]*\"/Version = \"0.47.1\"/' cmd/bd/version.go\n```\n\nVerify:\n```bash\ngrep 'Version = ' cmd/bd/version.go\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.708309-08:00","updated_at":"2026-01-12T03:20:47.628495-08:00","closed_at":"2026-01-12T03:20:47.628495-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-xwy","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.723132-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-xwy","depends_on_id":"bd-wisp-9lg","type":"blocks","created_at":"2026-01-12T03:17:16.756833-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} -{"id":"bd-wisp-yi6","title":"Create release tag","description":"Create annotated git tag.\n\n```bash\ngit tag -a v0.47.1 -m \"Release v0.47.1\"\n```\n\nVerify: `git tag -l | tail -5`\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.711087-08:00","updated_at":"2026-01-12T03:21:26.4805-08:00","closed_at":"2026-01-12T03:21:26.4805-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-yi6","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.732169-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-yi6","depends_on_id":"bd-wisp-1um","type":"blocks","created_at":"2026-01-12T03:17:16.778215-08:00","created_by":"beads/crew/emma"}],"ephemeral":true} +{"id":"bd-wisp-xwx","title":"mol-refinery-patrol","description":"Merge queue processor patrol loop.\n\nThe Refinery is the Engineer in the engine room. You process polecat branches, merging them to main one at a time with sequential rebasing.\n\n**The Scotty Test**: Before proceeding past any failure, ask yourself: \"Would Scotty walk past a warp core leak because it existed before his shift?\"\n\n## Merge Flow\n\nThe Refinery receives MERGE_READY mail from Witnesses when polecats complete work:\n\n```\nWitness Refinery Git\n │ │ │\n │ MERGE_READY │ │\n │─────────────────────────\u003e│ │\n │ │ │\n │ (verify branch) │\n │ │ fetch \u0026 rebase │\n │ │──────────────────────────\u003e│\n │ │ │\n │ (run tests) │\n │ │ │\n │ (if pass) │\n │ │ merge \u0026 push │\n │ │──────────────────────────\u003e│\n │ │ │\n │ MERGED │ │\n │\u003c─────────────────────────│ │\n │ │ │\n```\n\nAfter successful merge, Refinery sends MERGED mail back to Witness so it can\ncomplete cleanup (nuke the polecat worktree).","status":"closed","priority":2,"issue_type":"epic","created_at":"2026-01-10T18:23:27.131593-08:00","updated_at":"2026-01-10T18:29:19.904299-08:00","closed_at":"2026-01-10T18:29:19.904299-08:00","close_reason":"Patrol complete: queue empty, no branches to merge"} +{"id":"bd-wisp-xwy","title":"Bump version in version.go","description":"Update the Go version constant.\n\n```bash\n# macOS\nsed -i '' 's/Version = \"[^\"]*\"/Version = \"0.47.1\"/' cmd/bd/version.go\n\n# Linux\nsed -i 's/Version = \"[^\"]*\"/Version = \"0.47.1\"/' cmd/bd/version.go\n```\n\nVerify:\n```bash\ngrep 'Version = ' cmd/bd/version.go\n```\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.708309-08:00","updated_at":"2026-01-12T03:20:47.628495-08:00","closed_at":"2026-01-12T03:20:47.628495-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-xwy","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.723132-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-xwy","depends_on_id":"bd-wisp-9lg","type":"blocks","created_at":"2026-01-12T03:17:16.756833-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-wisp-yi6","title":"Create release tag","description":"Create annotated git tag.\n\n```bash\ngit tag -a v0.47.1 -m \"Release v0.47.1\"\n```\n\nVerify: `git tag -l | tail -5`\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T03:17:16.711087-08:00","updated_at":"2026-01-12T03:21:26.4805-08:00","closed_at":"2026-01-12T03:21:26.4805-08:00","close_reason":"Closed","dependencies":[{"issue_id":"bd-wisp-yi6","depends_on_id":"bd-wisp-1um","type":"blocks","created_at":"2026-01-12T03:17:16.778215-08:00","created_by":"beads/crew/emma"},{"issue_id":"bd-wisp-yi6","depends_on_id":"bd-wisp-5j5","type":"parent-child","created_at":"2026-01-12T03:17:16.732169-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-wisp-z85","title":"Preflight: Pull latest","description":"Ensure we're up to date with origin.\n\n```bash\ngit pull --rebase\n```\n\nResolve any conflicts before proceeding.\n","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-06T20:07:32.25637-08:00","updated_at":"2026-01-06T20:08:35.668191-08:00","closed_at":"2026-01-06T20:08:35.668191-08:00","close_reason":"Preflight checks passed","dependencies":[{"issue_id":"bd-wisp-z85","depends_on_id":"bd-wisp-w75","type":"blocks","created_at":"2026-01-06T20:07:32.272193-08:00","created_by":"beads/crew/dave"}]} -{"id":"bd-wisp-ztj","title":"Generate handoff summary","description":"Summarize this patrol cycle.\n\n**VERIFICATION**: Before generating summary, confirm for each merged branch:\n- [ ] MERGED mail was sent to witness\n- [ ] MR bead was closed\n- [ ] MERGE_READY mail archived\n\nIf any notifications or archiving were missed, do them now!\n\nInclude in summary:\n- Branches merged (count, names)\n- MERGED mails sent (count - should match branches merged)\n- MR beads closed (count - should match branches merged)\n- MERGE_READY mails archived (count - should match branches merged)\n- Test results (pass/fail)\n- Branches with conflicts (count, names)\n- Conflict-resolution tasks created (IDs)\n- Issues filed (if any)\n- Any escalations sent\n\n**Conflict tracking is important** for monitoring MQ health. If many branches\nconflict, it may indicate main is moving too fast or branches are too stale.\n\nThis becomes the digest when the patrol is squashed.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T00:34:44.780484-08:00","updated_at":"2026-01-12T00:35:24.735684-08:00","closed_at":"2026-01-12T00:35:24.735684-08:00","close_reason":"Summary: Queue empty, no branches processed this cycle","dependencies":[{"issue_id":"bd-wisp-ztj","depends_on_id":"bd-wisp-bmc","type":"blocks","created_at":"2026-01-12T00:34:44.816888-08:00","created_by":"beads/refinery"}],"ephemeral":true} -{"id":"bd-wjvua","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:34:21.805868-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-13T11:34:21.854142-08:00","closed_at":"2026-01-13T11:34:21.854142-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-wlzsd","title":"Merge: obsidian-mk99kht7","description":"branch: polecat/obsidian-mk99kht7\ntarget: main\nsource_issue: obsidian-mk99kht7\nrig: beads\nagent_bead: bd-beads-polecat-obsidian\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T21:03:34.490385-08:00","created_by":"beads/polecats/obsidian","updated_at":"2026-01-10T21:53:11.57128-08:00","closed_at":"2026-01-10T21:53:11.57128-08:00","close_reason":"Branch no longer exists on remote","labels":["gt:merge-request"]} +{"id":"bd-wisp-ztj","title":"Generate handoff summary","description":"Summarize this patrol cycle.\n\n**VERIFICATION**: Before generating summary, confirm for each merged branch:\n- [ ] MERGED mail was sent to witness\n- [ ] MR bead was closed\n- [ ] MERGE_READY mail archived\n\nIf any notifications or archiving were missed, do them now!\n\nInclude in summary:\n- Branches merged (count, names)\n- MERGED mails sent (count - should match branches merged)\n- MR beads closed (count - should match branches merged)\n- MERGE_READY mails archived (count - should match branches merged)\n- Test results (pass/fail)\n- Branches with conflicts (count, names)\n- Conflict-resolution tasks created (IDs)\n- Issues filed (if any)\n- Any escalations sent\n\n**Conflict tracking is important** for monitoring MQ health. If many branches\nconflict, it may indicate main is moving too fast or branches are too stale.\n\nThis becomes the digest when the patrol is squashed.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T00:34:44.780484-08:00","updated_at":"2026-01-12T00:35:24.735684-08:00","closed_at":"2026-01-12T00:35:24.735684-08:00","close_reason":"Summary: Queue empty, no branches processed this cycle","dependencies":[{"issue_id":"bd-wisp-ztj","depends_on_id":"bd-wisp-bmc","type":"blocks","created_at":"2026-01-12T00:34:44.816888-08:00","created_by":"beads/refinery"}]} +{"id":"bd-wjvua","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T11:34:21.805868-08:00","updated_at":"2026-01-13T11:34:21.854142-08:00","closed_at":"2026-01-13T11:34:21.854142-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-wlzsd","title":"Merge: obsidian-mk99kht7","description":"branch: polecat/obsidian-mk99kht7\ntarget: main\nsource_issue: obsidian-mk99kht7\nrig: beads\nagent_bead: bd-beads-polecat-obsidian\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T21:03:34.490385-08:00","updated_at":"2026-01-10T21:53:11.57128-08:00","closed_at":"2026-01-10T21:53:11.57128-08:00","close_reason":"Branch no longer exists on remote","created_by":"beads/polecats/obsidian"} {"id":"bd-wmo","title":"PruneDeletions iterates map non-deterministically","description":"## Problem\n\n`PruneDeletions` iterates over `loadResult.Records` which is a map. Go maps iterate in random order, so:\n\n1. `result.PrunedIDs` order is non-deterministic\n2. `kept` slice order is non-deterministic → `WriteDeletions` output order varies\n\n## Location\n`internal/deletions/deletions.go:213`\n\n## Impact\n- Git diffs are noisy (file changes order on each prune)\n- Tests could be flaky if they depend on order\n- Harder to debug/audit\n\n## Fix\nSort by ID or timestamp before iterating:\n\n```go\n// Convert map to slice and sort\nvar records []DeletionRecord\nfor _, r := range loadResult.Records {\n records = append(records, r)\n}\nsort.Slice(records, func(i, j int) bool {\n return records[i].ID \u003c records[j].ID\n})\n```","status":"closed","priority":3,"issue_type":"bug","created_at":"2025-11-25T12:49:11.290916-08:00","updated_at":"2025-11-25T15:15:21.903649-08:00","closed_at":"2025-11-25T15:15:21.903649-08:00"} -{"id":"bd-wn34g","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:33:37.9308-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T16:33:37.997565-08:00","closed_at":"2026-01-10T16:33:37.997565-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-wnayg","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T14:10:49.678534-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T14:10:49.751401-08:00","closed_at":"2026-01-13T14:10:49.751401-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-wnzt8","title":"Clarify bd reset --hard documentation (GH#922)","description":"dispatched_by: beads/crew/dave\n\nDocument or restore bd reset --hard and --skip-init flags. User reports old data returns after reset.","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/wolf","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:42:21.595726-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-11T20:46:10.353843-08:00","closed_at":"2026-01-11T20:46:10.353843-08:00","close_reason":"Added documentation for bd reset to CLI_REFERENCE.md and TROUBLESHOOTING.md. Clarified that --hard/--skip-init flags were never implemented. Documented workarounds for complete clean slate.","external_ref":"gh-922"} -{"id":"bd-wp2q5","title":"Review PR #1010: Add FreeBSD documentation","description":"dispatched_by: beads/crew/emma\n\nReview and approve PR #1010 from jordanhubbard that adds FreeBSD support documentation.\n\nPR URL: https://github.com/steveyegge/beads/pull/1010\n\n## Summary\nThis PR clarifies installation docs to include FreeBSD alongside Linux, adding FreeBSD-specific install notes.\n\n## Changes (57 additions, 5 deletions)\n- .goreleaser.yml: Add FreeBSD to quick install text\n- README.md: Add FreeBSD to requirements\n- docs/INSTALLING.md: Add FreeBSD section\n- website/docs/getting-started/installation.md: Add FreeBSD section\n- website/docs/intro.md: Add FreeBSD to quick install\n- website/static/llms-full.txt: Corresponding updates\n\n## Review Tasks\n1. Verify the install.sh script actually works on FreeBSD (or at least doesn't break)\n2. Check that documentation is consistent across all files\n3. Validate with: make test\n4. If all good, approve the PR with: gh pr review 1010 --repo steveyegge/beads --approve\n5. After approval, merge with: gh pr merge 1010 --repo steveyegge/beads --squash\n\n## Why Easy-Win\n- Documentation-only change\n- No code changes\n- Author is jordanhubbard (BSD expert)\n- Follows existing patterns for Linux docs","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/dave","created_at":"2026-01-11T00:01:28.525277-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-11T00:03:26.309302-08:00","closed_at":"2026-01-11T00:03:26.309302-08:00","close_reason":"PR #1010 reviewed, approved, and merged. FreeBSD documentation added consistently across all install docs."} +{"id":"bd-wn34g","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T16:33:37.9308-08:00","updated_at":"2026-01-10T16:33:37.997565-08:00","closed_at":"2026-01-10T16:33:37.997565-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-wnayg","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T14:10:49.678534-08:00","updated_at":"2026-01-13T14:10:49.751401-08:00","closed_at":"2026-01-13T14:10:49.751401-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-wnzt8","title":"Clarify bd reset --hard documentation (GH#922)","description":"dispatched_by: beads/crew/dave\n\nDocument or restore bd reset --hard and --skip-init flags. User reports old data returns after reset.","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T20:42:21.595726-08:00","updated_at":"2026-01-11T20:46:10.353843-08:00","closed_at":"2026-01-11T20:46:10.353843-08:00","close_reason":"Added documentation for bd reset to CLI_REFERENCE.md and TROUBLESHOOTING.md. Clarified that --hard/--skip-init flags were never implemented. Documented workarounds for complete clean slate.","created_by":"beads/crew/dave"} +{"id":"bd-wp2q5","title":"Review PR #1010: Add FreeBSD documentation","description":"dispatched_by: beads/crew/emma\n\nReview and approve PR #1010 from jordanhubbard that adds FreeBSD support documentation.\n\nPR URL: https://github.com/steveyegge/beads/pull/1010\n\n## Summary\nThis PR clarifies installation docs to include FreeBSD alongside Linux, adding FreeBSD-specific install notes.\n\n## Changes (57 additions, 5 deletions)\n- .goreleaser.yml: Add FreeBSD to quick install text\n- README.md: Add FreeBSD to requirements\n- docs/INSTALLING.md: Add FreeBSD section\n- website/docs/getting-started/installation.md: Add FreeBSD section\n- website/docs/intro.md: Add FreeBSD to quick install\n- website/static/llms-full.txt: Corresponding updates\n\n## Review Tasks\n1. Verify the install.sh script actually works on FreeBSD (or at least doesn't break)\n2. Check that documentation is consistent across all files\n3. Validate with: make test\n4. If all good, approve the PR with: gh pr review 1010 --repo steveyegge/beads --approve\n5. After approval, merge with: gh pr merge 1010 --repo steveyegge/beads --squash\n\n## Why Easy-Win\n- Documentation-only change\n- No code changes\n- Author is jordanhubbard (BSD expert)\n- Follows existing patterns for Linux docs","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T00:01:28.525277-08:00","updated_at":"2026-01-11T00:03:26.309302-08:00","closed_at":"2026-01-11T00:03:26.309302-08:00","close_reason":"PR #1010 reviewed, approved, and merged. FreeBSD documentation added consistently across all install docs.","created_by":"beads/crew/emma"} {"id":"bd-wp5j","title":"Merge: bd-indn","description":"branch: polecat/rictus\ntarget: main\nsource_issue: bd-indn\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-23T20:45:51.286598-08:00","updated_at":"2025-12-23T21:21:57.697826-08:00","closed_at":"2025-12-23T21:21:57.697826-08:00"} -{"id":"bd-wpjl1","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T11:50:26.875009-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T11:50:26.948235-08:00","closed_at":"2026-01-13T11:50:26.948235-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-wqom","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:31:48.966642-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-07T17:31:48.999529-08:00","closed_at":"2026-01-07T17:31:48.999529-08:00","close_reason":"auto-closed session event"} -{"id":"bd-wr1sh","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T13:38:35.967504-08:00","created_by":"beads/crew/giles","updated_at":"2026-01-10T13:38:36.008725-08:00","closed_at":"2026-01-10T13:38:36.008725-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-wpjl1","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T11:50:26.875009-08:00","updated_at":"2026-01-13T11:50:26.948235-08:00","closed_at":"2026-01-13T11:50:26.948235-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-wqom","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T17:31:48.966642-08:00","updated_at":"2026-01-07T17:31:48.999529-08:00","closed_at":"2026-01-07T17:31:48.999529-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/dave"} +{"id":"bd-wr1sh","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T13:38:35.967504-08:00","updated_at":"2026-01-10T13:38:36.008725-08:00","closed_at":"2026-01-10T13:38:36.008725-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/giles"} {"id":"bd-wsqt","title":"bd sync outputs excessive 'Skipping' messages for tombstoned issues","description":"During sync, every tombstoned issue outputs a 'Skipping bd-xxx (in deletions manifest)' message. With 96+ tombstones, this creates ~200 lines of noise that obscures the actual sync status.\n\n**Current behavior:**\n```\nSkipping bd-0ih (in deletions manifest: deleted 0001-01-01 by )\nSkipping bd-0is (in deletions manifest: deleted 0001-01-01 by )\n... (96 more lines)\n✓ Sync complete\n```\n\n**Expected behavior:**\n- Suppress individual skip messages by default\n- Show summary: 'Skipped 96 tombstoned issues'\n- Or add --verbose flag to show individual skips\n\n**Impact:** Makes sync output unreadable, hard to spot actual errors or warnings.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-15T17:28:34.592319-08:00","updated_at":"2025-12-16T00:41:33.166393-08:00","closed_at":"2025-12-16T00:41:33.166393-08:00"} {"id":"bd-wta","title":"Add performance benchmarks for multi-repo hydration","description":"The contributor-workflow-analysis.md asserts sub-second queries (line 702) and describes smart caching via file mtime tracking (Decision #4, lines 584-618), but doesn't provide concrete performance benchmarks.\n\nVC's requirement (from VC feedback section):\n- Executor polls GetReadyWork() every 5-10 seconds\n- Queries must be sub-second (ideally \u003c100ms)\n- Smart caching must avoid re-parsing JSONLs on every query\n\nSuggested performance targets to validate:\n- File stat overhead: \u003c1ms per repo\n- Hydration (when needed): \u003c500ms for typical JSONL (\u003c25k)\n- Query (from cache): \u003c10ms\n- Total GetReadyWork(): \u003c100ms (VC's requirement)\n\nAlso test at scale:\n- N=1 repo (baseline)\n- N=3 repos (typical)\n- N=10 repos (edge case)\n\nThese benchmarks are critical for library consumers like VC that run automated polling loops.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-03T20:24:39.331528-08:00","updated_at":"2025-11-05T14:17:15.079226-08:00","closed_at":"2025-11-05T14:17:15.079226-08:00"} -{"id":"bd-wv0le","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:33:03.528736-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T00:33:03.599857-08:00","closed_at":"2026-01-12T00:33:03.599857-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-wv0le","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:33:03.528736-08:00","updated_at":"2026-01-12T00:33:03.599857-08:00","closed_at":"2026-01-12T00:33:03.599857-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-wv9l","title":"Code Review Sweep: thorough","description":"Perform thorough code review sweep based on accumulated activity.\n\n**AI Reasoning:**\nSignificant code activity with 7608 lines added and 120 files changed indicates substantial modifications. Multiple high-churn areas (cmd/bd, internal/rpc) suggest potential for subtle issues and emerging patterns that warrant review.\n\n**Scope:** thorough\n**Target Areas:** cmd/bd, internal/rpc, .beads\n**Estimated Files:** 12\n**Estimated Cost:** $5\n\n**Task:**\nReview files for non-obvious issues that agents miss during focused work:\n- Inefficiencies (algorithmic, resource usage)\n- Subtle bugs (race conditions, off-by-one, copy-paste)\n- Poor patterns (coupling, complexity, duplication)\n- Missing best practices (error handling, docs, tests)\n- Unnamed anti-patterns\n\nFile discovered issues with detailed reasoning and suggestions.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-21T23:23:16.056392-08:00","updated_at":"2025-12-14T00:32:11.049104-08:00","closed_at":"2025-12-13T23:33:16.519977-08:00"} -{"id":"bd-wvoka","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T21:55:26.926721-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T21:55:26.995528-08:00","closed_at":"2026-01-11T21:55:26.995528-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-wvoka","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T21:55:26.926721-08:00","updated_at":"2026-01-11T21:55:26.995528-08:00","closed_at":"2026-01-11T21:55:26.995528-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-ww0g","title":"MCP server: \"No workspace set\" and \"chunk longer than limit\" errors","description":"Two related errors reported in beads-mcp v0.21:\n\n**Error 1: \"No workspace set\" after successful set_context**\n```\n✓ Set beads context\n✗ list\n Error calling tool 'list': No workspace set. Either provide workspace_root\n parameter or call set_context() first.\n```\n\nHypothesis: Environment variable persistence issue between MCP tool calls, or ContextVar not being set correctly by @with_workspace decorator.\n\n**Error 2: \"Separator is found, but chunk is longer than limit\"**\n```\n✗ list\n Error calling tool 'list': Separator is found, but chunk is longer than limit\n```\n\nHypothesis: MCP protocol output size limit exceeded. Large issue databases may produce JSON output that exceeds MCP stdio buffer limits.\n\nPlatform: Fedora 43, using copilot-cli with Sonnet 4.5\n\nWorkaround: CLI works fine (`bd list --status open --json`)","notes":"## Fixes Implemented\n\n**Issue 1: \"No workspace set\" after successful set_context** ✅ FIXED\n\nRoot cause: os.environ doesn't persist across MCP tool calls. When set_context() set BEADS_WORKING_DIR in os.environ, that change was lost on the next tool call.\n\nSolution:\n- Added module-level _workspace_context dict for persistent storage (server.py:51)\n- Modified set_context() to store in both persistent dict and os.environ (server.py:265-287)\n- Modified with_workspace() decorator to check persistent context first (server.py:129-133)\n- Updated where_am_i() to check persistent context (server.py:302-330)\n\n**Issue 2: \"chunk longer than limit\"** ✅ FIXED\n\nRoot cause: MCP stdio protocol has buffer limits. Large issue lists with full dependencies/dependents exceed this.\n\nSolution:\n- Reduced default list limit from 50 to 20 (server.py:356, models.py:122)\n- Reduced max list limit from 1000 to 100 (models.py:122)\n- Strip dependencies/dependents from list() and ready() responses (server.py:343-350, 368-373)\n- Full dependency details still available via show() command\n\n## Testing\n\n✅ Python syntax validated with py_compile\n✅ Changes are backward compatible\n✅ Persistent context falls back to os.environ for compatibility\n\nUsers should now be able to call set_context() once and have it persist across all subsequent tool calls. Large databases will no longer cause buffer overflow errors.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-07T14:32:18.315155-08:00","updated_at":"2025-11-07T21:02:55.470937-08:00","closed_at":"2025-11-07T16:53:46.929942-08:00"} -{"id":"bd-wwx00","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T11:01:55.868188-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T11:01:55.906737-08:00","closed_at":"2026-01-09T11:01:55.906737-08:00","close_reason":"auto-closed session event"} -{"id":"bd-wx2wk","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T00:01:14.010372-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T00:01:14.061922-08:00","closed_at":"2026-01-13T00:01:14.061922-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-wx8t","title":"Merge: topaz-1767138533986","description":"branch: polecat/topaz-1767138533986\ntarget: main\nsource_issue: topaz-1767138533986\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T16:00:41.075953-08:00","created_by":"beads/polecats/topaz","updated_at":"2025-12-30T18:12:30.97821-08:00","closed_at":"2025-12-30T18:11:07.939374-08:00"} -{"id":"bd-wz799","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T20:46:56.710424-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T20:46:56.743116-08:00","closed_at":"2026-01-07T20:46:56.743116-08:00","close_reason":"auto-closed session event"} -{"id":"bd-wza7","title":"Code cleanup: Search for leftover debugging code","description":"Scan the beads codebase for debugging artifacts that should be removed before release:\n\n## Patterns to search for:\n- `fmt.Printf` debugging statements (vs proper logging)\n- `// DEBUG`, `// TODO: remove`, `// TEMP` comments\n- `log.Printf` that should use structured logging\n- Hardcoded test values or paths\n- `panic()` calls that should be proper error handling\n- Commented-out code blocks\n- `time.Sleep` debugging delays\n\n## Files to check:\n- cmd/bd/*.go\n- internal/**/*.go\n\n## Acceptance:\n- Remove or convert all debugging artifacts\n- Ensure no test pollution in production code","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-29T13:17:26.681839-08:00","created_by":"mayor","updated_at":"2025-12-29T13:20:49.422542-08:00","closed_at":"2025-12-29T13:20:49.422542-08:00","close_reason":"Code audit complete: no debugging artifacts found requiring cleanup"} -{"id":"bd-wzve","title":"Review PR #905: fix(update) prefix routing","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #905 from greghughespdx.\n\nPR: https://github.com/anthropics/beads/pull/905\nChanges: +40/-23, 1 file (cmd/bd/update.go)\n\nFix: add prefix routing like bd show (bd-618f)\n\nReview checklist:\n- [ ] Code quality and style\n- [ ] Tests pass\n- [ ] Logic is correct\n- [ ] Approve or request changes","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/fang","created_at":"2026-01-05T19:09:18.038808-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-05T19:12:10.490066-08:00","closed_at":"2026-01-05T19:12:10.490066-08:00","close_reason":"PR #905 reviewed, approved, and merged"} -{"id":"bd-x0zl","title":"Remove/relocate pin command (covered by mol commands)","description":"## Task\nReview and potentially remove `bd pin` as it overlaps with mol commands.\n\n## Analysis needed\n- `bd pin` sets the pinned flag on issues for agent work assignment\n- `bd hook` shows what's pinned to an agent\n- `bd unpin` removes the pinned flag\n- `bd mol` commands deal with molecules/templates\n\n## Options\n1. **Keep as-is**: pin/unpin are about work assignment, mol is about templates\n2. **Move under mol**: `bd mol pin`, `bd mol unpin` \n3. **Deprecate**: If mol commands fully cover the use case\n\n## Decision criteria\n- Are pin/unpin used independently of mol workflows?\n- Does Gas Town (gt) use these commands?\n\n## Recommendation\nCheck gt codebase for usage patterns before deciding. If pin/unpin are primarily used with mol workflows, consolidate under mol. If used independently, keep as-is.\n\n## Files potentially affected\n- cmd/bd/pin.go\n- cmd/bd/unpin.go\n- cmd/bd/hook.go\n- cmd/bd/mol.go (if moving)\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T15:11:09.799471-08:00","created_by":"mayor","updated_at":"2025-12-27T16:01:53.437698-08:00","closed_at":"2025-12-27T16:01:53.437698-08:00","comments":[{"id":6,"issue_id":"bd-x0zl","author":"stevey","text":"## Analysis Complete\n\n**Findings:**\n- bd pin, bd unpin, bd hook are **never used** by gt\n- gt uses bd update --status=pinned --assignee=agent instead (10 usages)\n- Code comment says 'pinned field is cosmetic for bd hook visibility'\n- gt mol status provides equivalent hook inspection\n\n**Recommendation:** Remove all three commands as dead code.","created_at":"2025-12-28T00:00:14Z"}]} -{"id":"bd-x15qx","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:47:47.213557-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T00:47:47.278778-08:00","closed_at":"2026-01-12T00:47:47.278778-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-wwx00","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T11:01:55.868188-08:00","updated_at":"2026-01-09T11:01:55.906737-08:00","closed_at":"2026-01-09T11:01:55.906737-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-wx8t","title":"Merge: topaz-1767138533986","description":"branch: polecat/topaz-1767138533986\ntarget: main\nsource_issue: topaz-1767138533986\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T16:00:41.075953-08:00","updated_at":"2025-12-30T18:12:30.97821-08:00","closed_at":"2025-12-30T18:11:07.939374-08:00","created_by":"beads/polecats/topaz"} +{"id":"bd-wz799","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T20:46:56.710424-08:00","updated_at":"2026-01-07T20:46:56.743116-08:00","closed_at":"2026-01-07T20:46:56.743116-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-wza7","title":"Code cleanup: Search for leftover debugging code","description":"Scan the beads codebase for debugging artifacts that should be removed before release:\n\n## Patterns to search for:\n- `fmt.Printf` debugging statements (vs proper logging)\n- `// DEBUG`, `// TODO: remove`, `// TEMP` comments\n- `log.Printf` that should use structured logging\n- Hardcoded test values or paths\n- `panic()` calls that should be proper error handling\n- Commented-out code blocks\n- `time.Sleep` debugging delays\n\n## Files to check:\n- cmd/bd/*.go\n- internal/**/*.go\n\n## Acceptance:\n- Remove or convert all debugging artifacts\n- Ensure no test pollution in production code","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-29T13:17:26.681839-08:00","updated_at":"2025-12-29T13:20:49.422542-08:00","closed_at":"2025-12-29T13:20:49.422542-08:00","close_reason":"Code audit complete: no debugging artifacts found requiring cleanup","created_by":"mayor"} +{"id":"bd-wzve","title":"Review PR #905: fix(update) prefix routing","description":"dispatched_by: beads/crew/emma\n\nReview and merge PR #905 from greghughespdx.\n\nPR: https://github.com/anthropics/beads/pull/905\nChanges: +40/-23, 1 file (cmd/bd/update.go)\n\nFix: add prefix routing like bd show (bd-618f)\n\nReview checklist:\n- [ ] Code quality and style\n- [ ] Tests pass\n- [ ] Logic is correct\n- [ ] Approve or request changes","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-05T19:09:18.038808-08:00","updated_at":"2026-01-05T19:12:10.490066-08:00","closed_at":"2026-01-05T19:12:10.490066-08:00","close_reason":"PR #905 reviewed, approved, and merged","created_by":"beads/crew/emma"} +{"id":"bd-x0zl","title":"Remove/relocate pin command (covered by mol commands)","description":"## Task\nReview and potentially remove `bd pin` as it overlaps with mol commands.\n\n## Analysis needed\n- `bd pin` sets the pinned flag on issues for agent work assignment\n- `bd hook` shows what's pinned to an agent\n- `bd unpin` removes the pinned flag\n- `bd mol` commands deal with molecules/templates\n\n## Options\n1. **Keep as-is**: pin/unpin are about work assignment, mol is about templates\n2. **Move under mol**: `bd mol pin`, `bd mol unpin` \n3. **Deprecate**: If mol commands fully cover the use case\n\n## Decision criteria\n- Are pin/unpin used independently of mol workflows?\n- Does Gas Town (gt) use these commands?\n\n## Recommendation\nCheck gt codebase for usage patterns before deciding. If pin/unpin are primarily used with mol workflows, consolidate under mol. If used independently, keep as-is.\n\n## Files potentially affected\n- cmd/bd/pin.go\n- cmd/bd/unpin.go\n- cmd/bd/hook.go\n- cmd/bd/mol.go (if moving)\n","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T15:11:09.799471-08:00","updated_at":"2025-12-27T16:01:53.437698-08:00","closed_at":"2025-12-27T16:01:53.437698-08:00","created_by":"mayor"} +{"id":"bd-x15qx","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:47:47.213557-08:00","updated_at":"2026-01-12T00:47:47.278778-08:00","closed_at":"2026-01-12T00:47:47.278778-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-x1xs","title":"Work on beads-1ra: Add molecules.jsonl as separate catalo...","description":"Work on beads-1ra: Add molecules.jsonl as separate catalog file for template molecules","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-19T20:17:44.840032-08:00","updated_at":"2025-12-21T15:28:17.633716-08:00","closed_at":"2025-12-21T15:28:17.633716-08:00"} {"id":"bd-x2bd","title":"Merge: bd-likt","description":"branch: polecat/Gater\ntarget: main\nsource_issue: bd-likt\nrig: beads","status":"closed","priority":3,"issue_type":"merge-request","created_at":"2025-12-23T13:46:27.091846-08:00","updated_at":"2025-12-23T19:12:08.355637-08:00","closed_at":"2025-12-23T19:12:08.355637-08:00"} -{"id":"bd-x2ht","title":"Add BD_AGENT_MODE for ultra-compact output","description":"Optional agent-optimized output mode triggered by BD_AGENT_MODE=1 env var:\n\n- Compact format: just ID and title per line\n- Default to open/in_progress only\n- No colors, no emojis\n- Lower default limit (~20)\n- One-line summaries\n\nThis is independent but benefits from TTY detection infrastructure.\n\nConsider auto-detecting agent context via CLAUDE_CODE or similar env vars.","notes":"## Implementation Plan\n\n### Trigger\n```bash\nBD_AGENT_MODE=1 bd list\n```\n\nOr auto-detect common agent environments:\n```go\nfunc IsAgentMode() bool {\n if os.Getenv(\"BD_AGENT_MODE\") != \"\" {\n return true\n }\n // Auto-detect known agent contexts\n if os.Getenv(\"CLAUDE_CODE\") != \"\" {\n return true\n }\n // Add other agent env vars as discovered\n return false\n}\n```\n\n### Code Changes\n\n1. **Add agent output format** (cmd/bd/list.go):\n```go\nif ui.IsAgentMode() {\n // Ultra-compact: just ID and title\n for _, issue := range issues {\n fmt.Printf(\"%s: %s\\n\", issue.ID, issue.Title)\n }\n return\n}\n```\n\n2. **Agent mode defaults**:\n```go\nif ui.IsAgentMode() {\n if limit == 0 {\n limit = 20 // Lower default for agents\n }\n if status == \"\" {\n // Only actionable work\n filter.Status = []types.Status{\"open\", \"in_progress\"}\n }\n}\n```\n\n### Output Format (Agent Mode)\n```\nbd-mypl: Default bd list to non-closed issues\nbd-v5fn: Add default limit to bd list (50 issues)\nbd-jdz3: Add pager support to bd list\n```\n\nNo colors, no emojis, no brackets, no priority display.\nJust ID + title for maximum context efficiency.\n\n### Testing\n- `BD_AGENT_MODE=1 bd list` outputs compact format\n- Verify no ANSI codes in output\n- Verify default limit is 20\n- Verify only open/in_progress shown by default","status":"closed","priority":4,"issue_type":"feature","created_at":"2025-12-29T15:25:11.057467-08:00","created_by":"stevey","updated_at":"2025-12-30T18:12:30.979385-08:00","closed_at":"2025-12-30T15:59:24.474412-08:00","close_reason":"Implemented: BD_AGENT_MODE=1 triggers ultra-compact output format"} +{"id":"bd-x2ht","title":"Add BD_AGENT_MODE for ultra-compact output","description":"Optional agent-optimized output mode triggered by BD_AGENT_MODE=1 env var:\n\n- Compact format: just ID and title per line\n- Default to open/in_progress only\n- No colors, no emojis\n- Lower default limit (~20)\n- One-line summaries\n\nThis is independent but benefits from TTY detection infrastructure.\n\nConsider auto-detecting agent context via CLAUDE_CODE or similar env vars.","notes":"## Implementation Plan\n\n### Trigger\n```bash\nBD_AGENT_MODE=1 bd list\n```\n\nOr auto-detect common agent environments:\n```go\nfunc IsAgentMode() bool {\n if os.Getenv(\"BD_AGENT_MODE\") != \"\" {\n return true\n }\n // Auto-detect known agent contexts\n if os.Getenv(\"CLAUDE_CODE\") != \"\" {\n return true\n }\n // Add other agent env vars as discovered\n return false\n}\n```\n\n### Code Changes\n\n1. **Add agent output format** (cmd/bd/list.go):\n```go\nif ui.IsAgentMode() {\n // Ultra-compact: just ID and title\n for _, issue := range issues {\n fmt.Printf(\"%s: %s\\n\", issue.ID, issue.Title)\n }\n return\n}\n```\n\n2. **Agent mode defaults**:\n```go\nif ui.IsAgentMode() {\n if limit == 0 {\n limit = 20 // Lower default for agents\n }\n if status == \"\" {\n // Only actionable work\n filter.Status = []types.Status{\"open\", \"in_progress\"}\n }\n}\n```\n\n### Output Format (Agent Mode)\n```\nbd-mypl: Default bd list to non-closed issues\nbd-v5fn: Add default limit to bd list (50 issues)\nbd-jdz3: Add pager support to bd list\n```\n\nNo colors, no emojis, no brackets, no priority display.\nJust ID + title for maximum context efficiency.\n\n### Testing\n- `BD_AGENT_MODE=1 bd list` outputs compact format\n- Verify no ANSI codes in output\n- Verify default limit is 20\n- Verify only open/in_progress shown by default","status":"closed","priority":4,"issue_type":"feature","created_at":"2025-12-29T15:25:11.057467-08:00","updated_at":"2025-12-30T18:12:30.979385-08:00","closed_at":"2025-12-30T15:59:24.474412-08:00","close_reason":"Implemented: BD_AGENT_MODE=1 triggers ultra-compact output format","created_by":"stevey"} {"id":"bd-x2i","title":"Add bd deleted command for audit trail","description":"Parent: bd-imj\n\nAdd command to view deletion history.\n\nUsage:\n bd deleted # Show recent deletions (last 7 days)\n bd deleted --since=30d # Show deletions in last 30 days\n bd deleted --all # Show all tracked deletions\n bd deleted bd-xxx # Show deletion details for specific issue\n\nOutput format:\n bd-xxx 2025-11-25 10:00 stevey duplicate of bd-yyy\n bd-yyy 2025-11-25 10:05 claude cleanup\n\nAcceptance criteria:\n- List deletions with timestamp, actor, reason\n- Filter by time range\n- Lookup specific issue ID\n- JSON output option for scripting","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-25T09:57:21.113861-08:00","updated_at":"2025-11-25T15:13:53.781519-08:00","closed_at":"2025-11-25T15:13:53.781519-08:00"} {"id":"bd-x36g","title":"Thread Test 2","description":"Testing direct mode","status":"tombstone","priority":2,"issue_type":"message","created_at":"2025-12-16T18:21:16.470631-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"message"} {"id":"bd-x3hi","title":"Support redirect files in .beads/ directory","description":"Gas Town creates polecat worktrees with .beads/redirect files that point to a shared beads database. The bd CLI should:\n\n1. When finding a .beads/ directory, check if it contains a 'redirect' file\n2. If redirect exists, read the relative path and use that as the beads directory\n3. This allows multiple git worktrees to share a single beads database\n\nExample:\n- polecats/alpha/.beads/redirect contains '../../mayor/rig/.beads'\n- bd commands from alpha should use mayor/rig/.beads\n\nCurrently bd ignores redirect files and either uses the local .beads/ or walks up to find a parent .beads/.\n\nRelated: gt-nriy (test message that can't be retrieved due to missing redirect support)","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-12-20T21:46:23.415172-08:00","updated_at":"2025-12-20T21:59:25.759664-08:00","closed_at":"2025-12-20T21:59:25.759664-08:00"} {"id":"bd-x3j8","title":"Update info.go versionChanges","description":"Add 0.32.1 entry to versionChanges map in cmd/bd/info.go","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-20T21:53:17.344841-08:00","updated_at":"2025-12-20T21:54:31.906761-08:00","closed_at":"2025-12-20T21:54:31.906761-08:00","dependencies":[{"issue_id":"bd-x3j8","depends_on_id":"bd-an4s","type":"parent-child","created_at":"2025-12-20T21:53:17.346736-08:00","created_by":"daemon"},{"issue_id":"bd-x3j8","depends_on_id":"bd-rgd7","type":"blocks","created_at":"2025-12-20T21:53:29.62309-08:00","created_by":"daemon"}]} {"id":"bd-x47","title":"Add guidance for self-hosting projects","description":"The contributor-workflow-analysis.md is optimized for OSS contributors making PRs to upstream projects. However, it doesn't address projects like VC that use beads for their own development (self-hosting).\n\nSelf-hosting projects differ from OSS contributors:\n- No upstream/downstream distinction (they ARE the project)\n- May run automated executors (not just humans)\n- In bootstrap/early phase (stability matters)\n- Single team/owner (not multiple contributors with permissions)\n\nGuidance needed on:\n- When self-hosting projects should stay single-repo (default, recommended)\n- When they should adopt multi-repo (team planning, multi-phase dev)\n- How automated executors should handle multi-repo (if at all)\n- Special considerations for projects in bootstrap phase\n\nExamples of self-hosting projects: VC (building itself with beads), internal tools, pet projects","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-03T20:24:27.805341-08:00","updated_at":"2025-11-05T14:16:34.69662-08:00","closed_at":"2025-11-05T14:16:34.69662-08:00"} -{"id":"bd-x4zsn","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T14:28:30.461929-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T14:28:30.499363-08:00","closed_at":"2026-01-09T14:28:30.499363-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-x4zsn","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T14:28:30.461929-08:00","updated_at":"2026-01-09T14:28:30.499363-08:00","closed_at":"2026-01-09T14:28:30.499363-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-x5j9l","title":"Digest: mol-refinery-patrol","description":"Patrol complete: queue empty, 0 branches merged, 0 messages, main green","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T16:51:44.445264-08:00","updated_at":"2026-01-10T16:51:44.445264-08:00","closed_at":"2026-01-10T16:51:44.445228-08:00","close_reason":"Squashed from 11 wisps"} {"id":"bd-x5wg","title":"Create and push git tag v0.33.2","description":"Create the release tag and push it:\n\n```bash\ngit tag v0.33.2\ngit push origin v0.33.2\n```\n\nThis triggers the GoReleaser GitHub Action to build release binaries.","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T16:10:13.76223-08:00","updated_at":"2025-12-21T17:29:31.791368-08:00","deleted_at":"2025-12-21T17:29:31.791368-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-x6kv","title":"Merge: jade-mjtlsejo","description":"branch: polecat/jade-mjtlsejo\ntarget: main\nsource_issue: jade-mjtlsejo\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T22:06:59.327455-08:00","created_by":"beads/polecats/jade","updated_at":"2026-01-01T10:43:18.62673-08:00","closed_at":"2026-01-01T10:43:18.62673-08:00","close_reason":"Stale MR - branch no longer exists on remote"} -{"id":"bd-x7i7c","title":"Pre-existing: SQLite scan column count mismatch (31 vs 32)","description":"Multiple tests failing on main with: 'sql: expected 31 destination arguments in Scan, not 32'\n\nAffected tests:\n- TestGetIssuesByLabel (internal/storage/sqlite)\n- TestMigrateContentHashColumn (internal/storage/sqlite)\n- TestResolveProtoIDOrTitle (cmd/bd)\n\nRoot cause appears to be a column added to the issues table without updating all Scan calls.\n\nDiscovered during refinery patrol while processing polecat/quartz-lmqhe.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-10T22:11:22.005398-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T01:37:09.410786-08:00","closed_at":"2026-01-12T01:37:09.410786-08:00","close_reason":"Duplicate of bd-1hu59"} -{"id":"bd-x7mkn","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:39:34.001082-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T23:39:34.065842-08:00","closed_at":"2026-01-12T23:39:34.065842-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-x9zf9","title":"Blocked issue","status":"open","priority":1,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T18:16:13.074821-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-11T18:16:13.074821-08:00","dependencies":[{"issue_id":"bd-x9zf9","depends_on_id":"bd-1hc40","type":"blocks","created_at":"2026-01-11T18:16:13.144613-08:00","created_by":"beads/crew/wolf"}]} -{"id":"bd-xabtq","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:23:46.099872-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-08T14:23:46.132871-08:00","closed_at":"2026-01-08T14:23:46.132871-08:00","close_reason":"auto-closed session event"} -{"id":"bd-xai7h","title":"Review and merge PR #999: bsv terminal viewer","description":"Review and merge PR #999 from bglenden that adds bsv (Rust TUI viewer) to COMMUNITY_TOOLS.md.\n\nEasy-win criteria:\n- Documentation-only change (2 lines added)\n- Adds link to external community tool\n- No code changes, just adding to community tools list\n\nSteps:\n1. gh pr checkout 999 --repo steveyegge/beads\n2. Verify the addition follows existing format in COMMUNITY_TOOLS.md\n3. Check the linked repo exists and is legitimate\n4. gh pr merge 999 --repo steveyegge/beads --squash\n\nPR: https://github.com/steveyegge/beads/pull/999","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/fang","created_at":"2026-01-10T11:58:12.421204-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T12:06:20.483258-08:00","closed_at":"2026-01-10T12:06:20.483258-08:00","close_reason":"Reviewed and merged PR #999: bsv terminal viewer added to COMMUNITY_TOOLS.md"} -{"id":"bd-xbe2e","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T12:59:16.12296-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T12:59:16.180965-08:00","closed_at":"2026-01-10T12:59:16.180965-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-xbi58","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:19:05.640943-08:00","created_by":"beads/witness","updated_at":"2026-01-12T01:19:05.715486-08:00","closed_at":"2026-01-12T01:19:05.715486-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-x6kv","title":"Merge: jade-mjtlsejo","description":"branch: polecat/jade-mjtlsejo\ntarget: main\nsource_issue: jade-mjtlsejo\nrig: beads","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2025-12-30T22:06:59.327455-08:00","updated_at":"2026-01-01T10:43:18.62673-08:00","closed_at":"2026-01-01T10:43:18.62673-08:00","close_reason":"Stale MR - branch no longer exists on remote","created_by":"beads/polecats/jade"} +{"id":"bd-x7i7c","title":"Pre-existing: SQLite scan column count mismatch (31 vs 32)","description":"Multiple tests failing on main with: 'sql: expected 31 destination arguments in Scan, not 32'\n\nAffected tests:\n- TestGetIssuesByLabel (internal/storage/sqlite)\n- TestMigrateContentHashColumn (internal/storage/sqlite)\n- TestResolveProtoIDOrTitle (cmd/bd)\n\nRoot cause appears to be a column added to the issues table without updating all Scan calls.\n\nDiscovered during refinery patrol while processing polecat/quartz-lmqhe.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-10T22:11:22.005398-08:00","updated_at":"2026-01-12T01:37:09.410786-08:00","closed_at":"2026-01-12T01:37:09.410786-08:00","close_reason":"Duplicate of bd-1hu59","created_by":"beads/refinery"} +{"id":"bd-x7mkn","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T23:39:34.001082-08:00","updated_at":"2026-01-12T23:39:34.065842-08:00","closed_at":"2026-01-12T23:39:34.065842-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-x9zf9","title":"Blocked issue","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-11T18:16:13.074821-08:00","updated_at":"2026-01-11T18:16:13.074821-08:00","created_by":"beads/crew/wolf","dependencies":[{"issue_id":"bd-x9zf9","depends_on_id":"bd-1hc40","type":"blocks","created_at":"2026-01-11T18:16:13.144613-08:00","created_by":"beads/crew/wolf"}]} +{"id":"bd-xabtq","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:23:46.099872-08:00","updated_at":"2026-01-08T14:23:46.132871-08:00","closed_at":"2026-01-08T14:23:46.132871-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/dave"} +{"id":"bd-xai7h","title":"Review and merge PR #999: bsv terminal viewer","description":"Review and merge PR #999 from bglenden that adds bsv (Rust TUI viewer) to COMMUNITY_TOOLS.md.\n\nEasy-win criteria:\n- Documentation-only change (2 lines added)\n- Adds link to external community tool\n- No code changes, just adding to community tools list\n\nSteps:\n1. gh pr checkout 999 --repo steveyegge/beads\n2. Verify the addition follows existing format in COMMUNITY_TOOLS.md\n3. Check the linked repo exists and is legitimate\n4. gh pr merge 999 --repo steveyegge/beads --squash\n\nPR: https://github.com/steveyegge/beads/pull/999","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T11:58:12.421204-08:00","updated_at":"2026-01-10T12:06:20.483258-08:00","closed_at":"2026-01-10T12:06:20.483258-08:00","close_reason":"Reviewed and merged PR #999: bsv terminal viewer added to COMMUNITY_TOOLS.md","created_by":"beads/crew/emma"} +{"id":"bd-xbe2e","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T12:59:16.12296-08:00","updated_at":"2026-01-10T12:59:16.180965-08:00","closed_at":"2026-01-10T12:59:16.180965-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} +{"id":"bd-xbi58","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T01:19:05.640943-08:00","updated_at":"2026-01-12T01:19:05.715486-08:00","closed_at":"2026-01-12T01:19:05.715486-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} {"id":"bd-xbl46","title":"Digest: mol-refinery-patrol","description":"Patrol: queue empty, no branches to merge","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T23:20:56.191693-08:00","updated_at":"2026-01-10T23:20:56.191693-08:00","closed_at":"2026-01-10T23:20:56.191652-08:00","close_reason":"Squashed from 11 wisps","dependencies":[{"issue_id":"bd-xbl46","depends_on_id":"bd-wisp-4qx","type":"parent-child","created_at":"2026-01-10T23:20:56.19258-08:00","created_by":"beads/refinery"}]} {"id":"bd-xctp","title":"GH#519: bd sync fails when sync.branch is currently checked-out branch","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-12-16T01:06:05.319281-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} -{"id":"bd-xde17","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T08:15:35.933457-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T08:15:35.994611-08:00","closed_at":"2026-01-11T08:15:35.994611-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-xfi2b","title":"Broken beads redirect: mayor/rig/.beads doesn't exist","description":"The beads redirect in polecats worktrees and rig-level .beads points to mayor/rig/.beads, but this directory doesn't exist.\n\nPath: /Users/stevey/gt/mayor/rig/.beads\nRedirect source: .beads/redirect contains 'mayor/rig/.beads'\n\nThis blocks gt done and gt handoff operations for polecats.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-10T21:12:30.823055-08:00","created_by":"beads/polecats/obsidian","updated_at":"2026-01-10T21:25:56.132031-08:00","closed_at":"2026-01-10T21:25:56.132031-08:00","close_reason":"Fixed: Redirect path was ../../../../mayor/rig/.beads (resolving to nonexistent /Users/stevey/gt/mayor/rig/.beads). Changed to ../../../mayor/rig/.beads (resolving correctly to /Users/stevey/gt/beads/mayor/rig/.beads). Fixed all 6 polecat worktrees."} -{"id":"bd-xgq3o","title":"Review and merge PR 1028: fix route prefix for cross-rig issue creation","description":"dispatched_by: beads/crew/emma\n\n## PR Review Task\n\n**PR**: https://github.com/steveyegge/beads/pull/1028\n**Author**: nicsuzor\n\n## Summary\nBug fix: When using `bd create --rig \u003cname\u003e`, the prefix from routes.jsonl was being discarded. Issues were created with the database's default prefix instead of the route-specified prefix.\n\n## Changes\n- Adds `PrefixOverride` field to `types.Issue`\n- In `CreateIssue`, check `PrefixOverride` first (overrides config prefix)\n- In `createInRig`, set `issue.PrefixOverride` from the route prefix\n\n## Verification Steps\n1. `gh pr checkout 1028 --repo steveyegge/beads`\n2. `go build ./...` - verify it compiles\n3. `go test ./...` - verify tests pass\n4. Review the diff for correctness\n5. If all good: `gh pr merge 1028 --repo steveyegge/beads --squash`\n\n## Classification\nEasy-win bug fix with clear reproduction and solution.","status":"closed","priority":1,"issue_type":"task","assignee":"beads/crew/dave","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:19:59.690611-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T01:21:26.612649-08:00","closed_at":"2026-01-12T01:21:26.612649-08:00","close_reason":"PR #1028 reviewed and merged. Tests pass, clean implementation for cross-rig prefix routing."} -{"id":"bd-xgsso","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:36:45.74668-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-08T14:36:45.780975-08:00","closed_at":"2026-01-08T14:36:45.780975-08:00","close_reason":"auto-closed session event"} -{"id":"bd-xhaa","title":"Test work item","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-28T00:04:42.739569-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-28T00:11:48.074239-08:00","deleted_at":"2025-12-28T00:11:48.074239-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-xi0m2","title":"Session ended: gt-gastown-crew-george","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T21:49:43.419781-08:00","created_by":"beads/refinery","updated_at":"2026-01-09T21:15:40.689778-08:00","closed_at":"2026-01-09T21:15:40.689778-08:00","close_reason":"Stale session ended events"} +{"id":"bd-xde17","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T08:15:35.933457-08:00","updated_at":"2026-01-11T08:15:35.994611-08:00","closed_at":"2026-01-11T08:15:35.994611-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-xfi2b","title":"Broken beads redirect: mayor/rig/.beads doesn't exist","description":"The beads redirect in polecats worktrees and rig-level .beads points to mayor/rig/.beads, but this directory doesn't exist.\n\nPath: /Users/stevey/gt/mayor/rig/.beads\nRedirect source: .beads/redirect contains 'mayor/rig/.beads'\n\nThis blocks gt done and gt handoff operations for polecats.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-10T21:12:30.823055-08:00","updated_at":"2026-01-10T21:25:56.132031-08:00","closed_at":"2026-01-10T21:25:56.132031-08:00","close_reason":"Fixed: Redirect path was ../../../../mayor/rig/.beads (resolving to nonexistent /Users/stevey/gt/mayor/rig/.beads). Changed to ../../../mayor/rig/.beads (resolving correctly to /Users/stevey/gt/beads/mayor/rig/.beads). Fixed all 6 polecat worktrees.","created_by":"beads/polecats/obsidian"} +{"id":"bd-xgq3o","title":"Review and merge PR 1028: fix route prefix for cross-rig issue creation","description":"dispatched_by: beads/crew/emma\n\n## PR Review Task\n\n**PR**: https://github.com/steveyegge/beads/pull/1028\n**Author**: nicsuzor\n\n## Summary\nBug fix: When using `bd create --rig \u003cname\u003e`, the prefix from routes.jsonl was being discarded. Issues were created with the database's default prefix instead of the route-specified prefix.\n\n## Changes\n- Adds `PrefixOverride` field to `types.Issue`\n- In `CreateIssue`, check `PrefixOverride` first (overrides config prefix)\n- In `createInRig`, set `issue.PrefixOverride` from the route prefix\n\n## Verification Steps\n1. `gh pr checkout 1028 --repo steveyegge/beads`\n2. `go build ./...` - verify it compiles\n3. `go test ./...` - verify tests pass\n4. Review the diff for correctness\n5. If all good: `gh pr merge 1028 --repo steveyegge/beads --squash`\n\n## Classification\nEasy-win bug fix with clear reproduction and solution.","status":"closed","priority":1,"issue_type":"task","created_at":"2026-01-12T01:19:59.690611-08:00","updated_at":"2026-01-12T01:21:26.612649-08:00","closed_at":"2026-01-12T01:21:26.612649-08:00","close_reason":"PR #1028 reviewed and merged. Tests pass, clean implementation for cross-rig prefix routing.","created_by":"beads/crew/emma"} +{"id":"bd-xgsso","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T14:36:45.74668-08:00","updated_at":"2026-01-08T14:36:45.780975-08:00","closed_at":"2026-01-08T14:36:45.780975-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/fang"} +{"id":"bd-xhaa","title":"Test work item","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-28T00:04:42.739569-08:00","updated_at":"2025-12-28T00:11:48.074239-08:00","created_by":"beads/crew/emma","deleted_at":"2025-12-28T00:11:48.074239-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} +{"id":"bd-xi0m2","title":"Session ended: gt-gastown-crew-george","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T21:49:43.419781-08:00","updated_at":"2026-01-09T21:15:40.689778-08:00","closed_at":"2026-01-09T21:15:40.689778-08:00","close_reason":"Stale session ended events","created_by":"beads/refinery"} {"id":"bd-xj2e","title":"GH#522: Add --type flag to bd update command","description":"Add --type flag to bd update for changing issue type (task/epic/bug/feature). Storage layer already supports it. See GitHub issue #522.","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-16T01:03:12.506583-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-xntk","title":"Merge: obsidian-mk04ca9j","description":"branch: polecat/obsidian-mk04ca9j\ntarget: main\nsource_issue: obsidian-mk04ca9j\nrig: beads\nagent_bead: bd-beads-polecat-obsidian\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-04T11:30:56.553046-08:00","created_by":"beads/polecats/obsidian","updated_at":"2026-01-05T19:45:43.985895-08:00","closed_at":"2026-01-05T19:45:43.985895-08:00","close_reason":"Branch deleted, already merged"} +{"id":"bd-xntk","title":"Merge: obsidian-mk04ca9j","description":"branch: polecat/obsidian-mk04ca9j\ntarget: main\nsource_issue: obsidian-mk04ca9j\nrig: beads\nagent_bead: bd-beads-polecat-obsidian\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-04T11:30:56.553046-08:00","updated_at":"2026-01-05T19:45:43.985895-08:00","closed_at":"2026-01-05T19:45:43.985895-08:00","close_reason":"Branch deleted, already merged","created_by":"beads/polecats/obsidian"} {"id":"bd-xo1o","title":"Dynamic Molecule Bonding: Fanout patterns for patrol molecules","description":"## Vision\n\nEnable molecules to dynamically spawn child molecules at runtime based on discovered\nwork. This is the foundation for the \"Christmas Ornament\" pattern where a patrol\nmolecule grows arms per-polecat.\n\n## The Activity Feed Vision\n\nInstead of parsing agent logs, users see structured work state:\n\n```\n[14:32:08] + patrol-x7k.arm-ace bonded (5 steps)\n[14:32:08] + patrol-x7k.arm-nux bonded (5 steps)\n[14:32:09] → patrol-x7k.arm-ace.capture in_progress\n[14:32:10] ✓ patrol-x7k.arm-ace.capture completed\n[14:32:14] ✓ patrol-x7k.arm-ace.decide completed (action: nudge-1)\n```\n\nThis requires beads to track molecule step state transitions in real-time.\n\n## Key Primitives Needed\n\n### 1. Dynamic Bond with Variables\n```bash\nbd mol bond mol-polecat-arm \u003cparent-wisp-id\u003e \\\n --var polecat_name=ace \\\n --var rig=gastown\n```\n\nCreates wisp children under the parent:\n- parent-id.arm-ace\n- parent-id.arm-ace.capture\n- parent-id.arm-ace.assess\n- etc.\n\n### 2. WaitsFor Directive\n```markdown\n## Step: aggregate\nCollect outcomes from all dynamically-bonded children.\nWaitsFor: all-children\nNeeds: survey-workers\n```\n\nThe `WaitsFor: all-children` directive makes this a fanout gate - it can't\nproceed until ALL dynamically-bonded children complete.\n\n### 3. Activity Feed Query\n```bash\nbd activity --follow # Real-time state stream\nbd activity --mol \u003cid\u003e # Activity for specific molecule\nbd activity --since 5m # Last 5 minutes\n```\n\n### 4. Parallel Step Detection\nSteps with no inter-dependencies should be flagged as parallelizable.\nWhen arms are bonded, their steps can run in parallel across arms.\n\n## Use Case: mol-witness-patrol\n\nThe Witness monitors N polecats where N varies at runtime:\n\n```\nsurvey-workers discovers: [ace, nux, toast]\nFor each polecat:\n bd mol bond mol-polecat-arm \u003cpatrol-id\u003e --var polecat_name=\u003cname\u003e\naggregate step waits for all arms to complete\n```\n\nThis creates the Christmas Ornament shape:\n- Trunk: preflight steps\n- Arms: per-polecat inspection molecules\n- Base: cleanup after all arms complete\n\n## Design Docs\n\nSee Gas Town docs:\n- docs/molecular-chemistry.md (updated with Christmas Ornament pattern)\n- docs/architecture.md (activity feed section)\n\n## Dependencies\n\nThis epic may depend on:\n- Wisp storage (.beads-wisp/) - already implemented\n- Variable substitution in molecules - may need enhancement","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-23T02:32:43.173305-08:00","updated_at":"2025-12-23T04:01:02.729388-08:00","closed_at":"2025-12-23T04:01:02.729388-08:00"} {"id":"bd-xo1o.1","title":"bd mol bond: Dynamic bond with variable substitution","description":"Implement dynamic molecule bonding with runtime variable substitution.\n\n## Command\n```bash\nbd mol bond \u003cproto-id\u003e \u003cparent-wisp-id\u003e --var key=value --var key2=value2\n```\n\n## Behavior\n1. Parse proto molecule template\n2. Substitute {{key}} placeholders with provided values\n3. Create wisp children under the parent molecule\n4. Child IDs follow pattern: parent-id.child-ref (e.g., patrol-x7k.arm-ace)\n5. Nested children: parent-id.child-ref.step-ref (e.g., patrol-x7k.arm-ace.capture)\n\n## Variable Substitution\n- In step titles: \"Inspect {{polecat_name}}\" -\u003e \"Inspect ace\"\n- In descriptions: Full template substitution\n- In Needs directives: Allow referencing parent steps\n\n## Output\n```\n✓ Bonded mol-polecat-arm to patrol-x7k\n Created: patrol-x7k.arm-ace (5 steps)\n```","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-23T02:33:13.878996-08:00","updated_at":"2025-12-23T03:38:03.54745-08:00","closed_at":"2025-12-23T03:38:03.54745-08:00","dependencies":[{"issue_id":"bd-xo1o.1","depends_on_id":"bd-xo1o","type":"parent-child","created_at":"2025-12-23T02:33:13.879419-08:00","created_by":"daemon"}]} {"id":"bd-xo1o.2","title":"WaitsFor directive: Fanout gate for dynamic children","description":"Implement WaitsFor directive for molecules that spawn dynamic children.\n\n## Syntax\n```markdown\n## Step: aggregate\nCollect outcomes from all dynamically-bonded children.\nWaitsFor: all-children\nNeeds: survey-workers\n```\n\n## Behavior\n1. Parse WaitsFor directive during molecule step parsing\n2. Track which steps spawn dynamic children (the spawner)\n3. Gate step waits until ALL children of the spawner complete\n4. Works with bd ready - gate step not ready until children done\n\n## Gate Types\n- `WaitsFor: all-children` - Wait for all dynamic children\n- `WaitsFor: any-children` - Proceed when first child completes (future)\n- `WaitsFor: \u003cstep-ref\u003e.children` - Wait for specific spawner's children\n\n## Integration\n- bd ready should skip gate steps until children complete\n- bd show \u003cmol\u003e should display gate status and child count","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-23T02:33:14.946475-08:00","updated_at":"2025-12-23T04:00:09.443106-08:00","closed_at":"2025-12-23T04:00:09.443106-08:00","dependencies":[{"issue_id":"bd-xo1o.2","depends_on_id":"bd-xo1o","type":"parent-child","created_at":"2025-12-23T02:33:14.950008-08:00","created_by":"daemon"}]} {"id":"bd-xo1o.3","title":"bd activity: Real-time molecule state feed","description":"Implement activity feed command for watching molecule state transitions.\n\n## Commands\n```bash\nbd activity --follow # Real-time streaming\nbd activity --mol \u003cid\u003e # Activity for specific molecule\nbd activity --since 5m # Last 5 minutes\nbd activity --type step # Only step transitions\n```\n\n## Output Format\n```\n[14:32:01] ✓ patrol-x7k.inbox-check completed\n[14:32:03] ✓ patrol-x7k.check-refinery completed\n[14:32:08] + patrol-x7k.arm-ace bonded (5 steps)\n[14:32:09] → patrol-x7k.arm-ace.capture in_progress\n[14:32:10] ✓ patrol-x7k.arm-ace.capture completed\n[14:32:14] ✓ patrol-x7k.arm-ace.decide completed (action: nudge-1)\n[14:32:17] ✓ patrol-x7k.arm-ace COMPLETE\n[14:32:23] ✓ patrol-x7k SQUASHED → digest-x7k\n```\n\n## Event Types\n- `+` bonded - New molecule/step created\n- `→` in_progress - Step started\n- `✓` completed - Step/molecule finished\n- `✗` failed - Step failed\n- `⊘` burned - Wisp discarded\n- `◉` squashed - Wisp condensed to digest\n\n## Implementation\n- Could use SQLite triggers or polling\n- --follow uses OS file watching or polling\n- Filter by mol ID, type, time range","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-23T02:33:16.298764-08:00","updated_at":"2025-12-23T03:18:33.434079-08:00","closed_at":"2025-12-23T03:18:33.434079-08:00","dependencies":[{"issue_id":"bd-xo1o.3","depends_on_id":"bd-xo1o","type":"parent-child","created_at":"2025-12-23T02:33:16.301522-08:00","created_by":"daemon"}]} {"id":"bd-xo1o.4","title":"Parallel step detection in molecules","description":"Detect and flag parallelizable steps in molecules.\n\n## Detection Rules\nSteps can run in parallel when:\n1. No Needs dependencies between them\n2. Not in same sequential chain\n3. Across dynamic arms (arm-ace and arm-nux can parallelize)\n\n## Output in bd mol show\n```\npatrol-x7k (mol-witness-patrol)\n├── inbox-check [completed]\n├── survey-workers [completed]\n│ ├── arm-ace [parallel group A]\n│ │ ├── capture [can parallelize]\n│ │ ├── assess [needs: capture]\n│ │ └── execute [needs: assess]\n│ └── arm-nux [parallel group A]\n│ ├── capture [can parallelize]\n│ └── ...\n├── aggregate [gate: waits for all-children]\n```\n\n## Flags\n- `bd mol show \u003cid\u003e --parallel` - Highlight parallel opportunities\n- `bd ready --mol \u003cid\u003e` - List all steps that can run now\n\n## Future: Parallel Execution Hints\nFor agents using Task tool subagents:\n- Identify independent arms that can run simultaneously\n- Suggest parallelization strategy","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-23T02:33:17.660368-08:00","updated_at":"2025-12-23T03:56:39.653982-08:00","closed_at":"2025-12-23T03:56:39.653982-08:00","dependencies":[{"issue_id":"bd-xo1o.4","depends_on_id":"bd-xo1o","type":"parent-child","created_at":"2025-12-23T02:33:17.662232-08:00","created_by":"daemon"}]} {"id":"bd-xo6b","title":"Review multi-repo deletion tracking implementation","description":"Thoroughly review the multi-repo deletion tracking fix (bd-4oob):\n\nFiles changed:\n- cmd/bd/deletion_tracking.go: Added getMultiRepoJSONLPaths() helper\n- cmd/bd/daemon_sync.go: Updated snapshot capture/update logic for multi-repo\n- cmd/bd/deletion_tracking_test.go: Added 2 new tests (287 lines)\n\nReview focus areas:\n1. Correctness: Does getMultiRepoJSONLPaths() handle all edge cases?\n2. Performance: Calling getMultiRepoJSONLPaths() 3x per sync (snapshot capture, merge, base update) - should we cache?\n3. Error handling: What if some repos fail snapshot operations but others succeed?\n4. Race conditions: Multiple daemons in different repos?\n5. Test coverage: Are TestMultiRepoDeletionTracking and TestMultiRepoSnapshotIsolation sufficient?\n6. Path handling: Absolute vs relative paths, tilde expansion\n\nThis is fresh code - needs careful review before considering deletion tracking production-ready.","notes":"Code review completed. Overall assessment: Core deletion tracking logic is sound, but error handling and path handling issues make this not yet production-ready for multi-repo scenarios.\n\nKey findings:\n\nCRITICAL ISSUES (Priority 1):\n1. Inconsistent error handling in daemon_sync.go - snapshot/merge fail hard but base update warns. Can leave DB in inconsistent state with no rollback. See bd-sjmr.\n2. No path normalization in getMultiRepoJSONLPaths() - tilde expansion, relative paths, duplicates not handled. See bd-iye7.\n\nSHOULD FIX (Priority 2):\n3. Missing test coverage for edge cases - empty paths, duplicates, partial failures. See bd-kdoh.\n4. Performance - getMultiRepoJSONLPaths() called 3x per sync (minor issue). See bd-we4p.\n\nWHAT WORKS WELL:\n- Atomic file operations with PID-based temp files\n- Good snapshot isolation between repos\n- Race condition protection via exclusive locks\n- Solid test coverage for happy path scenarios\n\nVERDICT: Address bd-iye7 and bd-sjmr before considering deletion tracking production-ready for multi-repo mode.\n\nDetailed review notes available in conversation history.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-06T19:23:52.402949-08:00","updated_at":"2025-11-06T19:32:34.160341-08:00","closed_at":"2025-11-06T19:32:34.160341-08:00","dependencies":[{"issue_id":"bd-xo6b","depends_on_id":"bd-rbxi","type":"parent-child","created_at":"2025-11-06T19:23:52.403723-08:00","created_by":"daemon"}]} -{"id":"bd-xotxp","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T18:49:54.861354-08:00","created_by":"beads/witness","updated_at":"2026-01-08T18:49:54.901047-08:00","closed_at":"2026-01-08T18:49:54.901047-08:00","close_reason":"auto-closed session event"} +{"id":"bd-xotxp","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T18:49:54.861354-08:00","updated_at":"2026-01-08T18:49:54.901047-08:00","closed_at":"2026-01-08T18:49:54.901047-08:00","close_reason":"auto-closed session event","created_by":"beads/witness"} {"id":"bd-xoyh","title":"GH#519: bd sync fails when sync.branch equals current branch","description":"bd sync tries to create worktree when sync.branch matches current checkout, fails with 'already used by worktree'. Should detect and commit directly. See: https://github.com/steveyegge/beads/issues/519","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-14T16:31:34.574414-08:00","updated_at":"2025-12-16T14:39:19.052995-08:00","closed_at":"2025-12-14T17:29:15.960487-08:00"} {"id":"bd-xq010","title":"Digest: mol-refinery-patrol","description":"Patrol: MQ empty, no branches to merge","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T14:12:28.384127-08:00","updated_at":"2026-01-10T14:12:28.384127-08:00","closed_at":"2026-01-10T14:12:28.384087-08:00","close_reason":"Squashed from 11 wisps"} -{"id":"bd-xqb0j","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T21:22:51.03011-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-08T21:22:51.063339-08:00","closed_at":"2026-01-08T21:22:51.063339-08:00","close_reason":"auto-closed session event"} -{"id":"bd-xrwy","title":"Auto-detect non-TTY and adjust output","description":"Detect when stdout is not a TTY (piped, redirected, or agent context) and adjust output:\n\n- Disable ANSI colors\n- Disable pager\n- Disable emoji decorations\n- Use plain text format\n\nUses golang.org/x/term or similar for TTY detection.\n\nNeeds pager support to be meaningful (otherwise nothing to disable).","notes":"## Implementation Plan\n\n### Dependencies\n```go\nimport \"golang.org/x/term\"\n// or: github.com/mattn/go-isatty\n```\n\n### Code Changes\n\n1. **Add TTY detection helper** (internal/ui/terminal.go):\n```go\nfunc IsTerminal() bool {\n return term.IsTerminal(int(os.Stdout.Fd()))\n}\n\nfunc ShouldUseColor() bool {\n // Respect NO_COLOR standard\n if os.Getenv(\"NO_COLOR\") \\!= \"\" {\n return false\n }\n // Respect CLICOLOR=0\n if os.Getenv(\"CLICOLOR\") == \"0\" {\n return false\n }\n // Force color with CLICOLOR_FORCE\n if os.Getenv(\"CLICOLOR_FORCE\") \\!= \"\" {\n return true\n }\n return IsTerminal()\n}\n```\n\n2. **Apply in lipgloss setup** (internal/ui/styles.go):\n```go\nfunc init() {\n if \\!ShouldUseColor() {\n lipgloss.SetColorProfile(termenv.Ascii)\n }\n}\n```\n\n3. **Disable pager for non-TTY** (uses bd-jdz3 infrastructure):\n```go\n// In pager.go ToPager():\nif \\!IsTerminal() {\n fmt.Print(content)\n return nil\n}\n```\n\n### Standards Followed\n- NO_COLOR: https://no-color.org/\n- CLICOLOR/CLICOLOR_FORCE: de facto BSD standard\n- gh cli uses same conventions\n\n### Testing\n- `bd list | cat` outputs no ANSI codes\n- `NO_COLOR=1 bd list` outputs no colors\n- `CLICOLOR_FORCE=1 bd list | cat` keeps colors\n- Verify emoji handling in non-TTY mode","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-29T15:25:10.112313-08:00","created_by":"stevey","updated_at":"2025-12-30T15:44:43.345108-08:00","closed_at":"2025-12-30T06:59:10.805958-08:00","close_reason":"Implemented TTY detection with NO_COLOR/CLICOLOR support","dependencies":[{"issue_id":"bd-xrwy","depends_on_id":"bd-jdz3","type":"blocks","created_at":"2025-12-29T15:25:22.084746-08:00","created_by":"daemon"}]} +{"id":"bd-xqb0j","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T21:22:51.03011-08:00","updated_at":"2026-01-08T21:22:51.063339-08:00","closed_at":"2026-01-08T21:22:51.063339-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/dave"} +{"id":"bd-xrwy","title":"Auto-detect non-TTY and adjust output","description":"Detect when stdout is not a TTY (piped, redirected, or agent context) and adjust output:\n\n- Disable ANSI colors\n- Disable pager\n- Disable emoji decorations\n- Use plain text format\n\nUses golang.org/x/term or similar for TTY detection.\n\nNeeds pager support to be meaningful (otherwise nothing to disable).","notes":"## Implementation Plan\n\n### Dependencies\n```go\nimport \"golang.org/x/term\"\n// or: github.com/mattn/go-isatty\n```\n\n### Code Changes\n\n1. **Add TTY detection helper** (internal/ui/terminal.go):\n```go\nfunc IsTerminal() bool {\n return term.IsTerminal(int(os.Stdout.Fd()))\n}\n\nfunc ShouldUseColor() bool {\n // Respect NO_COLOR standard\n if os.Getenv(\"NO_COLOR\") \\!= \"\" {\n return false\n }\n // Respect CLICOLOR=0\n if os.Getenv(\"CLICOLOR\") == \"0\" {\n return false\n }\n // Force color with CLICOLOR_FORCE\n if os.Getenv(\"CLICOLOR_FORCE\") \\!= \"\" {\n return true\n }\n return IsTerminal()\n}\n```\n\n2. **Apply in lipgloss setup** (internal/ui/styles.go):\n```go\nfunc init() {\n if \\!ShouldUseColor() {\n lipgloss.SetColorProfile(termenv.Ascii)\n }\n}\n```\n\n3. **Disable pager for non-TTY** (uses bd-jdz3 infrastructure):\n```go\n// In pager.go ToPager():\nif \\!IsTerminal() {\n fmt.Print(content)\n return nil\n}\n```\n\n### Standards Followed\n- NO_COLOR: https://no-color.org/\n- CLICOLOR/CLICOLOR_FORCE: de facto BSD standard\n- gh cli uses same conventions\n\n### Testing\n- `bd list | cat` outputs no ANSI codes\n- `NO_COLOR=1 bd list` outputs no colors\n- `CLICOLOR_FORCE=1 bd list | cat` keeps colors\n- Verify emoji handling in non-TTY mode","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-29T15:25:10.112313-08:00","updated_at":"2025-12-30T15:44:43.345108-08:00","closed_at":"2025-12-30T06:59:10.805958-08:00","close_reason":"Implemented TTY detection with NO_COLOR/CLICOLOR support","created_by":"stevey","dependencies":[{"issue_id":"bd-xrwy","depends_on_id":"bd-jdz3","type":"blocks","created_at":"2025-12-29T15:25:22.084746-08:00","created_by":"daemon"}]} {"id":"bd-xsl9","title":"Remove legacy autoflush code paths","description":"## Problem\n\nThe autoflush system has dual code paths - an old timer-based approach and a new FlushManager. Both are actively used based on whether flushManager is nil.\n\n## Locations\n\n- main.go:78-81: isDirty, needsFullExport, flushTimer marked 'used by legacy code'\n- autoflush.go:291-369: Functions with 'Legacy path for backward compatibility with tests'\n\n## Current Behavior\n\n```go\n// In markDirtyAndScheduleFlush():\nif flushManager != nil {\n flushManager.MarkDirty(false)\n return\n}\n// Legacy path for backward compatibility with tests\n```\n\n## Proposed Fix\n\n1. Ensure flushManager is always initialized (even in tests)\n2. Remove the legacy timer-based code paths\n3. Remove isDirty, needsFullExport, flushTimer globals\n4. Update tests to use FlushManager\n\n## Risk\n\nLow - the FlushManager is the production path. Legacy code only runs when flushManager is nil (test scenarios).","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-21T15:49:30.83769-08:00","updated_at":"2025-12-23T01:54:59.09333-08:00","closed_at":"2025-12-23T01:54:59.09333-08:00"} -{"id":"bd-xsv2b","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T06:23:43.208885-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T06:23:43.271189-08:00","closed_at":"2026-01-11T06:23:43.271189-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-xtf5","title":"Code smell: Multiple CLI command files exceed 1000 lines","description":"Several CLI command files are very large and could benefit from splitting:\n\n| File | Lines | Notes |\n|------|-------|-------|\n| init.go | 1928 | Multiple init modes, contributor/team setup |\n| show.go | 1592 | Display formatting, tree views, output modes |\n| doctor.go | 1295 | Many health checks |\n| sync.go | 1201 | Sync branch operations |\n| compact.go | 1199 | Compaction logic |\n| linear.go | 1190 | Linear integration |\n| main.go | 1148 | Entry point and globals |\n\nConsider:\n1. Splitting init.go into init_core.go, init_contributor.go (already exists), init_team.go (already exists)\n2. Moving show.go formatters to internal/ui package\n3. Doctor checks could be individual files under doctor/ subpackage (already started)\n\nLocation: cmd/bd/*.go","status":"closed","priority":4,"issue_type":"chore","created_at":"2025-12-28T15:32:23.233091-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T18:05:09.921186-08:00","closed_at":"2025-12-28T18:05:09.921186-08:00","dependencies":[{"issue_id":"bd-xtf5","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.278433-08:00","created_by":"daemon"}],"comments":[{"id":7,"issue_id":"bd-xtf5","author":"stevey","text":"Completed init.go refactoring:\n\n- Split from 1928 → 705 lines (under 800 target)\n- Extracted 4 new files:\n - init_git_hooks.go (~480 lines): Git hooks and merge driver\n - init_stealth.go (~310 lines): Stealth mode, fork detection\n - init_agent.go (~170 lines): AGENTS.md and Claude settings\n - init_templates.go (~180 lines): config.yaml and README templates\n\nRemaining files still over 800 lines:\n- show.go (1592)\n- doctor.go (1295)\n- sync.go (1201)\n- compact.go (1199)\n- linear.go (1190)\n- main.go (1148)\n- list.go (1052)\n- template.go (1051)\n- gate.go (1048)\n\nCommit: c5f03b7b","created_at":"2025-12-29T01:27:43Z"}]} -{"id":"bd-xtl9","title":"Test Second Parent","status":"tombstone","priority":2,"issue_type":"epic","created_at":"2025-12-27T22:16:14.971605-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-27T22:16:35.925357-08:00","deleted_at":"2025-12-27T22:16:35.925357-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"epic"} -{"id":"bd-xtv48","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:04:05.563053-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T20:04:05.63218-08:00","closed_at":"2026-01-11T20:04:05.63218-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-xsv2b","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T06:23:43.208885-08:00","updated_at":"2026-01-11T06:23:43.271189-08:00","closed_at":"2026-01-11T06:23:43.271189-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-xtf5","title":"Code smell: Multiple CLI command files exceed 1000 lines","description":"Several CLI command files are very large and could benefit from splitting:\n\n| File | Lines | Notes |\n|------|-------|-------|\n| init.go | 1928 | Multiple init modes, contributor/team setup |\n| show.go | 1592 | Display formatting, tree views, output modes |\n| doctor.go | 1295 | Many health checks |\n| sync.go | 1201 | Sync branch operations |\n| compact.go | 1199 | Compaction logic |\n| linear.go | 1190 | Linear integration |\n| main.go | 1148 | Entry point and globals |\n\nConsider:\n1. Splitting init.go into init_core.go, init_contributor.go (already exists), init_team.go (already exists)\n2. Moving show.go formatters to internal/ui package\n3. Doctor checks could be individual files under doctor/ subpackage (already started)\n\nLocation: cmd/bd/*.go","status":"closed","priority":4,"issue_type":"chore","created_at":"2025-12-28T15:32:23.233091-08:00","updated_at":"2025-12-28T18:05:09.921186-08:00","closed_at":"2025-12-28T18:05:09.921186-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-xtf5","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.278433-08:00","created_by":"daemon"}]} +{"id":"bd-xtl9","title":"Test Second Parent","status":"tombstone","priority":2,"issue_type":"epic","created_at":"2025-12-27T22:16:14.971605-08:00","updated_at":"2025-12-27T22:16:35.925357-08:00","created_by":"beads/crew/dave","deleted_at":"2025-12-27T22:16:35.925357-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"epic"} +{"id":"bd-xtv48","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T20:04:05.563053-08:00","updated_at":"2026-01-11T20:04:05.63218-08:00","closed_at":"2026-01-11T20:04:05.63218-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-xurv","title":"Restart daemon with 0.33.2","description":"Restart the bd daemon to pick up new version:\n\n```bash\nbd daemon --stop\nbd daemon --start\nbd daemon --health # Verify Version: 0.33.2\n```","status":"tombstone","priority":1,"issue_type":"task","created_at":"2025-12-21T16:10:13.760884-08:00","updated_at":"2025-12-21T17:29:31.791368-08:00","deleted_at":"2025-12-21T17:29:31.791368-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"task"} -{"id":"bd-xv0k","title":"Merge: onyx-mk04d5pr","description":"branch: polecat/onyx-mk04d5pr\ntarget: main\nsource_issue: onyx-mk04d5pr\nrig: beads\nagent_bead: bd-beads-polecat-onyx\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-04T11:30:16.072116-08:00","created_by":"beads/polecats/onyx","updated_at":"2026-01-05T19:45:43.986962-08:00","closed_at":"2026-01-05T19:45:43.986962-08:00","close_reason":"Branch deleted, already merged"} -{"id":"bd-xvkc9","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:52:40.387275-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T20:52:40.438416-08:00","closed_at":"2026-01-11T20:52:40.438416-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-xv0k","title":"Merge: onyx-mk04d5pr","description":"branch: polecat/onyx-mk04d5pr\ntarget: main\nsource_issue: onyx-mk04d5pr\nrig: beads\nagent_bead: bd-beads-polecat-onyx\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"merge-request","created_at":"2026-01-04T11:30:16.072116-08:00","updated_at":"2026-01-05T19:45:43.986962-08:00","closed_at":"2026-01-05T19:45:43.986962-08:00","close_reason":"Branch deleted, already merged","created_by":"beads/polecats/onyx"} +{"id":"bd-xvkc9","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T20:52:40.387275-08:00","updated_at":"2026-01-11T20:52:40.438416-08:00","closed_at":"2026-01-11T20:52:40.438416-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-xwo","title":"Fix validatePreExport to use content hash instead of mtime","description":"validatePreExport() in integrity.go:70 still uses isJSONLNewer() (mtime-based), creating inconsistent behavior. Auto-import correctly uses hasJSONLChanged() (hash-based) but export validation still uses the old mtime approach. This can cause false positive blocks after git operations.\n\nFix: Replace isJSONLNewer() call with hasJSONLChanged() in validatePreExport().\n\nImpact: Without this fix, the bd-khnb solution is incomplete - we prevent resurrection but still have export blocking issues.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-20T21:31:03.183164-05:00","updated_at":"2025-11-20T21:34:00.200803-05:00","closed_at":"2025-11-20T21:34:00.200803-05:00","dependencies":[{"issue_id":"bd-xwo","depends_on_id":"bd-khnb","type":"blocks","created_at":"2025-11-20T21:31:03.184049-05:00","created_by":"daemon"}]} -{"id":"bd-xwvo","title":"bd create --rig flag loses event fields (event_kind, actor, payload)","description":"## Bug\n\nWhen creating events with `--rig` flag, the event-specific fields are not stored:\n- event_kind\n- actor\n- target\n- payload\n\n## Reproduction\n\n```bash\n# Without --rig (works)\nbd create --type=event --title='Test' --event-category=session.ended --event-actor=test --event-payload='{\"x\":1}' --silent\n# Fields are stored correctly\n\n# With --rig (broken)\nbd create --type=event --title='Test' --event-category=session.ended --event-actor=test --event-payload='{\"x\":1}' --rig=gastown --silent\n# event_kind, actor, payload are NOT stored\n```\n\n## Impact\n\nThe `gt costs record` command needs to create session events in rig-specific beads, but cannot use `--rig` flag due to this bug.\n\n## Workaround\n\nRun `bd create` from within the rig directory so it auto-detects the correct beads location.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-02T13:23:21.936098-08:00","created_by":"gastown/polecats/capable","updated_at":"2026-01-02T17:06:09.247746-08:00","closed_at":"2026-01-02T17:06:09.247746-08:00","close_reason":"Fixed: createInRig now extracts all missing fields from cmd.Flags() instead of relying on parameters"} +{"id":"bd-xwvo","title":"bd create --rig flag loses event fields (event_kind, actor, payload)","description":"## Bug\n\nWhen creating events with `--rig` flag, the event-specific fields are not stored:\n- event_kind\n- actor\n- target\n- payload\n\n## Reproduction\n\n```bash\n# Without --rig (works)\nbd create --type=event --title='Test' --event-category=session.ended --event-actor=test --event-payload='{\"x\":1}' --silent\n# Fields are stored correctly\n\n# With --rig (broken)\nbd create --type=event --title='Test' --event-category=session.ended --event-actor=test --event-payload='{\"x\":1}' --rig=gastown --silent\n# event_kind, actor, payload are NOT stored\n```\n\n## Impact\n\nThe `gt costs record` command needs to create session events in rig-specific beads, but cannot use `--rig` flag due to this bug.\n\n## Workaround\n\nRun `bd create` from within the rig directory so it auto-detects the correct beads location.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-02T13:23:21.936098-08:00","updated_at":"2026-01-02T17:06:09.247746-08:00","closed_at":"2026-01-02T17:06:09.247746-08:00","close_reason":"Fixed: createInRig now extracts all missing fields from cmd.Flags() instead of relying on parameters","created_by":"gastown/polecats/capable"} {"id":"bd-xxal","title":"bd ready includes blocked issues (GH#544)","description":"Issues with 'blocks' dependencies still appear in bd ready. The ready query should exclude issues that have unresolved blockers.\n\nFix in: cmd/bd/ready.go or internal query logic.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-14T23:00:26.048532-08:00","updated_at":"2025-12-14T23:07:43.312979-08:00","closed_at":"2025-12-14T23:07:43.312979-08:00"} -{"id":"bd-xxl82","title":"Fix: Windows postinstall file lock race (GH#925)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #925. File lock race condition during zip extraction on Windows.","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/giles","created_at":"2026-01-09T22:20:20.725206-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-09T23:03:22.007727-08:00","closed_at":"2026-01-09T23:03:22.007727-08:00","close_reason":"Fixed in commit 233e5031. Added 500ms delay after download on Windows and improved error detection for PowerShell error formats."} +{"id":"bd-xxl82","title":"Fix: Windows postinstall file lock race (GH#925)","description":"dispatched_by: beads/crew/dave\n\nGitHub issue #925. File lock race condition during zip extraction on Windows.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-09T22:20:20.725206-08:00","updated_at":"2026-01-09T23:03:22.007727-08:00","closed_at":"2026-01-09T23:03:22.007727-08:00","close_reason":"Fixed in commit 233e5031. Added 500ms delay after download on Windows and improved error detection for PowerShell error formats.","created_by":"beads/crew/dave"} {"id":"bd-xyc","title":"Consolidate check-health DB opens into single connection","description":"The --check-health flag opens the database 3 separate times (once per quick check). Consolidate into a single DB open for better performance, especially on slower filesystems.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-25T19:27:42.034178-08:00","updated_at":"2025-11-25T19:50:21.32375-08:00","closed_at":"2025-11-25T19:50:21.32375-08:00"} {"id":"bd-xzrv","title":"Write Agent Mail integration guide","description":"Comprehensive guide for setting up and using Agent Mail with Beads.\n\nAcceptance Criteria:\n- Installation instructions\n- Configuration (environment variables)\n- Architecture diagram\n- Benefits and tradeoffs\n- When to use vs not use\n- Troubleshooting section\n- Migration from git-only mode\n\nFile: docs/AGENT_MAIL.md\n\nSections:\n- Quick start\n- How it works\n- Integration points\n- Graceful degradation\n- Multi-machine deployment\n- FAQ","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-07T22:42:51.231066-08:00","updated_at":"2025-11-08T00:40:38.798162-08:00","closed_at":"2025-11-08T00:40:38.798162-08:00","dependencies":[{"issue_id":"bd-xzrv","depends_on_id":"bd-fzbg","type":"blocks","created_at":"2025-11-07T22:42:51.232246-08:00","created_by":"daemon"}]} -{"id":"bd-xzz64","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T23:07:55.40176-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-12T23:07:55.463225-08:00","closed_at":"2026-01-12T23:07:55.463225-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-y0e4","title":"Code smell: Storage interface has 50+ methods - consider interface segregation","description":"The Storage interface in internal/storage/storage.go has 50+ methods covering:\n\n- Issue CRUD (CreateIssue, GetIssue, UpdateIssue, DeleteIssue, SearchIssues)\n- Dependencies (AddDependency, RemoveDependency, GetDependencies, GetDependents, etc.)\n- Labels (AddLabel, RemoveLabel, GetLabels, etc.)\n- Ready work (GetReadyWork, GetBlockedIssues, etc.)\n- Events/Comments\n- Statistics\n- Dirty tracking\n- Export hash tracking\n- ID generation\n- Config/Metadata\n- Transactions\n- Lifecycle\n\nWhile this is a valid design for a storage abstraction, consider the Interface Segregation Principle:\n\n1. Split into smaller interfaces: IssueStorage, DependencyStorage, LabelStorage, etc.\n2. Compose them: `type Storage interface { IssueStorage; DependencyStorage; ... }`\n3. This allows more focused testing and clearer API contracts\n\nLocation: internal/storage/storage.go:79-197","status":"closed","priority":4,"issue_type":"chore","created_at":"2025-12-28T15:32:54.005169-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-28T17:21:44.466226-08:00","closed_at":"2025-12-28T17:21:44.466226-08:00","dependencies":[{"issue_id":"bd-y0e4","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.296641-08:00","created_by":"daemon"}]} +{"id":"bd-xzz64","title":"Session ended: gt-beads-crew-dave","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T23:07:55.40176-08:00","updated_at":"2026-01-12T23:07:55.463225-08:00","closed_at":"2026-01-12T23:07:55.463225-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/dave"} +{"id":"bd-y0e4","title":"Code smell: Storage interface has 50+ methods - consider interface segregation","description":"The Storage interface in internal/storage/storage.go has 50+ methods covering:\n\n- Issue CRUD (CreateIssue, GetIssue, UpdateIssue, DeleteIssue, SearchIssues)\n- Dependencies (AddDependency, RemoveDependency, GetDependencies, GetDependents, etc.)\n- Labels (AddLabel, RemoveLabel, GetLabels, etc.)\n- Ready work (GetReadyWork, GetBlockedIssues, etc.)\n- Events/Comments\n- Statistics\n- Dirty tracking\n- Export hash tracking\n- ID generation\n- Config/Metadata\n- Transactions\n- Lifecycle\n\nWhile this is a valid design for a storage abstraction, consider the Interface Segregation Principle:\n\n1. Split into smaller interfaces: IssueStorage, DependencyStorage, LabelStorage, etc.\n2. Compose them: `type Storage interface { IssueStorage; DependencyStorage; ... }`\n3. This allows more focused testing and clearer API contracts\n\nLocation: internal/storage/storage.go:79-197","status":"closed","priority":4,"issue_type":"chore","created_at":"2025-12-28T15:32:54.005169-08:00","updated_at":"2025-12-28T17:21:44.466226-08:00","closed_at":"2025-12-28T17:21:44.466226-08:00","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-y0e4","depends_on_id":"bd-784c","type":"parent-child","created_at":"2025-12-28T15:38:04.296641-08:00","created_by":"daemon"}]} {"id":"bd-y0fj","title":"Issue lifecycle hooks (on-close, on-complete)","description":"Add hooks that fire on issue state transitions, enabling automation like closing linked GitHub issues.\n\n## Problem\n\nWe have `external_ref` to link beads issues to external systems (GitHub, Linear, Jira), but no mechanism to trigger actions when issues close. Currently:\n\n```\nbd-u2sc (external_ref: gh-692) closes → nothing happens\n```\n\n## Proposed Solution\n\n### Phase 1: Shell Hooks\n\nAdd `.beads-hooks/on-close.sh` (and similar lifecycle hooks):\n\n```bash\n# .beads-hooks/on-close.sh\n# Called by bd close with issue JSON on stdin\n#\\!/bin/bash\nissue=$(cat)\nexternal_ref=$(echo \"$issue\" | jq -r '.external_ref // empty')\nif [[ \"$external_ref\" == gh-* ]]; then\n number=\"${external_ref#gh-}\"\n gh issue close \"$number\" --repo steveyegge/beads \\\n --comment \"Completed via beads epic $(echo $issue | jq -r .id)\"\nfi\n```\n\n### Lifecycle Events\n\n| Event | Trigger | Use Cases |\n|-------|---------|-----------|\n| `on-close` | Issue closed | Close external refs, notify, archive |\n| `on-complete` | Epic children all done | Roll-up completion, close parent refs |\n| `on-status-change` | Any status transition | Sync to external systems |\n\n### Phase 2: Molecule Completion Handlers\n\nMolecules could define completion actions:\n\n```yaml\nname: github-issue-tracker\non_complete:\n - action: shell\n command: gh issue close {{external_ref}} --repo {{repo}}\n - action: mail\n to: mayor/\n subject: \"Epic {{id}} completed\"\n```\n\n### Phase 3: Gas Town Integration\n\nFor full Gas Town deployments:\n- Witness observes closures via beads events\n- Routes to integration agents via mail\n- Agents handle external system interactions\n\n## Implementation Notes\n\n- Hooks should be async (don't block bd close)\n- Pass full issue JSON to hook via stdin\n- Support hook timeout and failure handling\n- Consider `--no-hooks` flag for bulk operations\n\n## Related\n\n- `external_ref` field already exists (GH#142)\n- Cross-project deps: bd-h807, bd-d9mu\n- Git hooks: .beads-hooks/ pattern established\n\n## Use Cases\n\n1. **GitHub integration**: Close GH issues when beads epic completes\n2. **Linear sync**: Update Linear status when beads status changes \n3. **Notifications**: Send mail/Slack when high-priority issues close\n4. **Audit**: Log all closures to external system","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-22T14:46:04.846657-08:00","updated_at":"2025-12-22T14:50:40.35447-08:00","closed_at":"2025-12-22T14:50:40.35447-08:00"} -{"id":"bd-y1a3y","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T05:52:10.952063-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T05:52:11.014817-08:00","closed_at":"2026-01-11T05:52:11.014817-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-y1a3y","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T05:52:10.952063-08:00","updated_at":"2026-01-11T05:52:11.014817-08:00","closed_at":"2026-01-11T05:52:11.014817-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-y2v","title":"Refactor duplicate JSONL-from-git parsing code","description":"Both readFirstIssueFromGit() in init.go and importFromGit() in autoimport.go have similar code patterns for:\n1. Running git show \u003cref\u003e:\u003cpath\u003e\n2. Scanning the output with bufio.Scanner\n3. Parsing JSON lines\n\nCould be refactored to share a helper like:\n- readJSONLFromGit(gitRef, path string) ([]byte, error)\n- Or a streaming version: streamJSONLFromGit(gitRef, path string) (io.Reader, error)\n\nFiles:\n- cmd/bd/autoimport.go:225-256 (importFromGit)\n- cmd/bd/init.go:1212-1243 (readFirstIssueFromGit)\n\nPriority is low since code duplication is minimal and both functions work correctly.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-05T14:51:18.41124-08:00","updated_at":"2025-12-23T22:37:15.770825-08:00","closed_at":"2025-12-23T22:37:15.770825-08:00"} -{"id":"bd-y4804","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T21:27:08.729768-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T21:27:08.76478-08:00","closed_at":"2026-01-09T21:27:08.76478-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-y4804","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T21:27:08.729768-08:00","updated_at":"2026-01-09T21:27:08.76478-08:00","closed_at":"2026-01-09T21:27:08.76478-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-y4vz","title":"Work on beads-eub: Consolidated context tool for MCP serv...","description":"Work on beads-eub: Consolidated context tool for MCP server (GH#636). Merge set_context, where_am_i, init into single 'context' tool. When done, submit MR (not PR) to integration branch for Refinery.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-19T22:56:58.527144-08:00","updated_at":"2025-12-20T00:49:51.929597-08:00","closed_at":"2025-12-19T23:31:11.906952-08:00"} {"id":"bd-y6d","title":"Refactor create_test.go to use shared DB setup","description":"Convert TestCreate_* functions to use test suites with shared database setup.\n\nExample transformation:\n- Before: 10 separate tests, each with newTestStore() \n- After: 1 TestCreate() with 10 t.Run() subtests sharing one DB\n\nEstimated speedup: 10x faster (1 DB setup instead of 10)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-21T11:48:56.858213-05:00","updated_at":"2025-11-21T16:07:50.846505-05:00","closed_at":"2025-11-21T15:15:31.315407-05:00","dependencies":[{"issue_id":"bd-y6d","depends_on_id":"bd-1rh","type":"blocks","created_at":"2025-11-21T11:49:09.660182-05:00","created_by":"daemon"},{"issue_id":"bd-y6d","depends_on_id":"bd-c49","type":"blocks","created_at":"2025-11-21T11:49:26.410452-05:00","created_by":"daemon"}]} {"id":"bd-y6t6","title":"GH#524: Package for Windows (winget)","description":"Request to publish beads on winget for easy Windows installation. See: https://github.com/steveyegge/beads/issues/524","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-14T16:31:28.596258-08:00","updated_at":"2025-12-16T01:27:29.065187-08:00","closed_at":"2025-12-16T01:27:29.065187-08:00"} @@ -2557,78 +2552,77 @@ {"id":"bd-y8tn","title":"Test Molecule","description":"A test molecule","status":"closed","priority":2,"issue_type":"molecule","created_at":"2025-12-19T18:30:24.491279-08:00","updated_at":"2025-12-19T18:31:12.49898-08:00","closed_at":"2025-12-19T18:31:12.49898-08:00"} {"id":"bd-yb8","title":"Propagate context through command handlers","description":"Thread context from signal-aware parent through all command handlers.\n\n## Context\nPart of context propagation work. Builds on bd-rtp (signal-aware contexts).\n\n## Current State\nMany command handlers create their own context.Background() locally instead of receiving context from parent.\n\n## Implementation\n1. Add context parameter to command handler functions\n2. Pass context from cobra command Run/RunE closures\n3. Update all storage operations to use propagated context\n\n## Example Pattern\n```go\n// Before\nRun: func(cmd *cobra.Command, args []string) {\n ctx := context.Background()\n store.GetIssues(ctx, ...)\n}\n\n// After \nRun: func(cmd *cobra.Command, args []string) {\n // ctx comes from parent signal-aware context\n store.GetIssues(ctx, ...)\n}\n```\n\n## Files to Update\n- All cmd/bd/*.go command handlers\n- Ensure context flows from main -\u003e cobra -\u003e handlers -\u003e storage\n\n## Benefits\n- Commands respect cancellation signals\n- Consistent context handling\n- Enables timeouts and deadlines\n\n## Acceptance Criteria\n- [ ] All command handlers use propagated context\n- [ ] No new context.Background() calls in command handlers\n- [ ] Context flows from signal handler to storage layer","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-20T21:27:02.854242-05:00","updated_at":"2025-11-20T21:37:32.44525-05:00","closed_at":"2025-11-20T21:37:32.44525-05:00","dependencies":[{"issue_id":"bd-yb8","depends_on_id":"bd-rtp","type":"blocks","created_at":"2025-11-20T21:27:02.854904-05:00","created_by":"daemon"}]} {"id":"bd-ybv5","title":"Refactor AGENTS.md to use external references","description":"Suggestion to use external references (e.g., \"ALWAYS REFER TO ./beads/prompt.md\") instead of including all instructions directly within AGENTS.md.\nReasons:\n1. Agents can follow external references.\n2. Prevents context pollution/stuffing in AGENTS.md as more tools append instructions.\n","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-20T18:55:53.259144-05:00","updated_at":"2025-12-09T18:38:37.708896372-05:00","closed_at":"2025-11-26T22:25:57.772875-08:00"} -{"id":"bd-yc8b8","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T00:08:48.91614-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T00:08:48.982817-08:00","closed_at":"2026-01-13T00:08:48.982817-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} {"id":"bd-yck","title":"Fix checkExistingBeadsData to be worktree-aware","description":"The checkExistingBeadsData function in cmd/bd/init.go checks for .beads in the current working directory, but for worktrees it should check the main repository root instead. This prevents proper worktree compatibility.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-07T16:48:32.082776345-07:00","updated_at":"2025-12-23T22:33:32.412338-08:00","closed_at":"2025-12-23T22:33:32.412338-08:00"} -{"id":"bd-ycrq","title":"Consolidate daemon/daemons commands","description":"Merge daemons functionality into daemon command with subcommands. Currently have both 'daemon' and 'daemons' at top level.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T12:59:11.393637-08:00","created_by":"stevey","updated_at":"2025-12-28T13:05:28.776344-08:00","closed_at":"2025-12-28T13:05:28.776344-08:00"} -{"id":"bd-ydrjd","title":"Review and merge PR #1057: bump actions/checkout v4→v6","description":"dispatched_by: beads/crew/emma\n\n## Easy-win PR Review\n\nPR: https://github.com/steveyegge/beads/pull/1057\nType: Dependabot dependency bump (GitHub Actions)\nChange: actions/checkout v4 → v6\n\n## Task\n1. Review the PR diff: `gh pr diff 1057 --repo steveyegge/beads`\n2. Check CI status: `gh pr checks 1057 --repo steveyegge/beads`\n3. If CI passes and diff looks safe, approve and merge:\n `gh pr review 1057 --repo steveyegge/beads --approve`\n `gh pr merge 1057 --repo steveyegge/beads --squash`\n4. Close this bead when done\n\n## Notes\n- Major version bump but checkout is heavily used and well-maintained\n- Changes credential persistence location (now under RUNNER_TEMP)\n- Requires runner v2.329.0+ for Docker container action scenarios","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/grip","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:28:34.806238-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T19:38:45.747264-08:00","closed_at":"2026-01-12T19:38:45.747264-08:00","close_reason":"PR #1057 already merged (commit 8ea1f970)","external_ref":"gh-1057"} +{"id":"bd-ycrq","title":"Consolidate daemon/daemons commands","description":"Merge daemons functionality into daemon command with subcommands. Currently have both 'daemon' and 'daemons' at top level.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-28T12:59:11.393637-08:00","updated_at":"2025-12-28T13:05:28.776344-08:00","closed_at":"2025-12-28T13:05:28.776344-08:00","created_by":"stevey"} +{"id":"bd-ydrjd","title":"Review and merge PR #1057: bump actions/checkout v4→v6","description":"dispatched_by: beads/crew/emma\n\n## Easy-win PR Review\n\nPR: https://github.com/steveyegge/beads/pull/1057\nType: Dependabot dependency bump (GitHub Actions)\nChange: actions/checkout v4 → v6\n\n## Task\n1. Review the PR diff: `gh pr diff 1057 --repo steveyegge/beads`\n2. Check CI status: `gh pr checks 1057 --repo steveyegge/beads`\n3. If CI passes and diff looks safe, approve and merge:\n `gh pr review 1057 --repo steveyegge/beads --approve`\n `gh pr merge 1057 --repo steveyegge/beads --squash`\n4. Close this bead when done\n\n## Notes\n- Major version bump but checkout is heavily used and well-maintained\n- Changes credential persistence location (now under RUNNER_TEMP)\n- Requires runner v2.329.0+ for Docker container action scenarios","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-12T19:28:34.806238-08:00","updated_at":"2026-01-12T19:38:45.747264-08:00","closed_at":"2026-01-12T19:38:45.747264-08:00","close_reason":"PR #1057 already merged (commit 8ea1f970)","created_by":"beads/crew/emma"} {"id":"bd-ye0d","title":"troubleshoot GH#278 daemon exits every few secs","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-13T06:27:23.39509215-07:00","updated_at":"2025-11-25T17:48:43.62418-08:00","closed_at":"2025-11-25T17:48:43.62418-08:00"} {"id":"bd-yek6","title":"CLI tests (cli_fast_test.go) are slow and should be integration tests","description":"The TestCLI_* tests in cmd/bd/cli_fast_test.go are taking 4-5 seconds each (40+ seconds total), making them the slowest part of the fast test suite.\n\nCurrent timings:\n- TestCLI_Import: 4.73s\n- TestCLI_Blocked: 4.33s \n- TestCLI_DepTree: 4.15s\n- TestCLI_Close: 3.59s\n- TestCLI_DepAdd: 3.50s\n- etc.\n\nThese tests compile the bd binary once in init(), but then execute it multiple times per test with filesystem operations. Despite being named \"fast\", they're actually end-to-end CLI integration tests.\n\nOptions:\n1. Tag with //go:build integration (move to integration suite)\n2. Optimize: Use in-memory databases, reduce exec calls, better parallelization\n3. Keep as-is but understand they're the baseline for \"fast\" tests\n\nTotal test suite currently: 13.8s (cmd/bd alone is 12.8s, and most of that is these CLI tests)","notes":"Fixed by reusing existing bd binary from repo root instead of rebuilding.\n\nBefore: 15+ minutes (rebuilding binary for every test package)\nAfter: ~12 seconds (reuses pre-built binary)\n\nThe init() function now checks for ../../bd first before falling back to building. This means `go build \u0026\u0026 go test` is now fast.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-05T20:19:12.822543-08:00","updated_at":"2025-11-05T20:31:19.321787-08:00","closed_at":"2025-11-05T20:31:19.321787-08:00"} -{"id":"bd-yfv08","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T00:25:47.519379-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T00:25:47.568548-08:00","closed_at":"2026-01-13T00:25:47.568548-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-yhs4x","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:52:49.868877-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-09T13:52:49.906983-08:00","closed_at":"2026-01-09T13:52:49.906983-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-yfv08","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T00:25:47.519379-08:00","updated_at":"2026-01-13T00:25:47.568548-08:00","closed_at":"2026-01-13T00:25:47.568548-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-yhs4x","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:52:49.868877-08:00","updated_at":"2026-01-09T13:52:49.906983-08:00","closed_at":"2026-01-09T13:52:49.906983-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/wolf"} {"id":"bd-yi824","title":"Digest: mol-refinery-patrol","description":"Patrol: Queue empty, no branches merged, inbox clear","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T22:21:14.477633-08:00","updated_at":"2026-01-10T22:21:14.477633-08:00","closed_at":"2026-01-10T22:21:14.477598-08:00","close_reason":"Squashed from 11 wisps"} -{"id":"bd-yiigv","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:34:22.921317-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T15:34:22.959566-08:00","closed_at":"2026-01-10T15:34:22.959566-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-yj7jv","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T19:31:59.087749-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T19:31:59.136339-08:00","closed_at":"2026-01-12T19:31:59.136339-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-yiigv","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:34:22.921317-08:00","updated_at":"2026-01-10T15:34:22.959566-08:00","closed_at":"2026-01-10T15:34:22.959566-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-yj7jv","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T19:31:59.087749-08:00","updated_at":"2026-01-12T19:31:59.136339-08:00","closed_at":"2026-01-12T19:31:59.136339-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-yjer4","title":"Digest: mol-refinery-patrol","description":"Patrol: queue empty, updated main (3 commits), no work processed","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-11T00:00:07.77986-08:00","updated_at":"2026-01-11T00:00:07.77986-08:00","closed_at":"2026-01-11T00:00:07.779825-08:00","close_reason":"Squashed from 11 wisps"} -{"id":"bd-yk9iz","title":"Fix rename-prefix to update blocked_issues_cache (GH#1016)","description":"dispatched_by: beads/crew/dave\n\nbd rename-prefix doesn't update blocked_issues_cache table. Add rebuildBlockedCache() call after rename.","status":"closed","priority":2,"issue_type":"bug","assignee":"beads/crew/giles","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T20:42:20.668502-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-11T20:45:16.647304-08:00","closed_at":"2026-01-11T20:45:16.647304-08:00","close_reason":"Fixed by adding invalidateBlockedCache() call to RenameDependencyPrefix. Committed 02488952.","external_ref":"gh-1016"} -{"id":"bd-ykavk","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:11:56.241135-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T00:11:56.305719-08:00","closed_at":"2026-01-12T00:11:56.305719-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-yk9iz","title":"Fix rename-prefix to update blocked_issues_cache (GH#1016)","description":"dispatched_by: beads/crew/dave\n\nbd rename-prefix doesn't update blocked_issues_cache table. Add rebuildBlockedCache() call after rename.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-11T20:42:20.668502-08:00","updated_at":"2026-01-11T20:45:16.647304-08:00","closed_at":"2026-01-11T20:45:16.647304-08:00","close_reason":"Fixed by adding invalidateBlockedCache() call to RenameDependencyPrefix. Committed 02488952.","created_by":"beads/crew/dave"} +{"id":"bd-ykavk","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:11:56.241135-08:00","updated_at":"2026-01-12T00:11:56.305719-08:00","closed_at":"2026-01-12T00:11:56.305719-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} {"id":"bd-ykd9","title":"Add bd doctor --fix flag to automatically repair issues","description":"Add bd doctor --fix flag to automatically repair detected issues.\n\n## Current State\n- Doctor checks return issues with \"Fix\" field containing fix instructions\n- No automatic fix execution\n- User must manually follow fix instructions\n\n## Implementation\n\n### 1. Add --fix flag to doctor.go\n```go\n// In cmd/bd/doctor.go init()\ndoctorCmd.Flags().Bool(\"fix\", false, \"Automatically fix detected issues\")\ndoctorCmd.Flags().Bool(\"yes\", false, \"Skip confirmation prompts (use with --fix)\")\n```\n\n### 2. Create fix registry (cmd/bd/doctor/fix/registry.go)\n```go\npackage fix\n\n// Fixer can automatically repair an issue\ntype Fixer interface {\n // CanFix returns true if this fixer handles the given check name\n CanFix(checkName string) bool\n // Fix attempts to repair the issue, returns error if failed\n Fix(ctx context.Context, issue *CheckResult) error\n // Description returns human-readable description of what will be fixed\n Description() string\n}\n\nvar registry []Fixer\n\nfunc Register(f Fixer) {\n registry = append(registry, f)\n}\n\nfunc GetFixer(checkName string) Fixer {\n for _, f := range registry {\n if f.CanFix(checkName) {\n return f\n }\n }\n return nil\n}\n```\n\n### 3. Implement fixers (one per file)\n\n**cmd/bd/doctor/fix/hooks.go**\n```go\ntype HooksFixer struct{}\n\nfunc (f *HooksFixer) CanFix(name string) bool {\n return name == \"git-hooks\" || name == \"hooks-outdated\"\n}\n\nfunc (f *HooksFixer) Fix(ctx context.Context, issue *CheckResult) error {\n return hooks.Install(\".\", true) // force reinstall\n}\n\nfunc (f *HooksFixer) Description() string {\n return \"Reinstall git hooks\"\n}\n\nfunc init() {\n Register(\u0026HooksFixer{})\n}\n```\n\n**cmd/bd/doctor/fix/sync_branch.go**\n```go\ntype SyncBranchFixer struct{}\n\nfunc (f *SyncBranchFixer) CanFix(name string) bool {\n return name == \"sync-branch-missing\" || name == \"sync-branch-diverged\"\n}\n\nfunc (f *SyncBranchFixer) Fix(ctx context.Context, issue *CheckResult) error {\n // Reset to remote or create branch\n return syncbranch.ResetToRemote(ctx, repoRoot, branch, jsonlPath)\n}\n```\n\n**cmd/bd/doctor/fix/merge_driver.go**\n```go\ntype MergeDriverFixer struct{}\n\nfunc (f *MergeDriverFixer) CanFix(name string) bool {\n return name == \"merge-driver-missing\" || name == \"merge-driver-outdated\"\n}\n\nfunc (f *MergeDriverFixer) Fix(ctx context.Context, issue *CheckResult) error {\n return setupMergeDriver()\n}\n```\n\n### 4. Update doctor run logic\n\n```go\nfunc runDoctor(cmd *cobra.Command, args []string) {\n issues := runAllChecks()\n \n if \\!fixFlag {\n // Existing behavior - just display issues\n displayIssues(issues)\n return\n }\n \n // Collect fixable issues\n var fixable []FixableIssue\n for _, issue := range issues {\n if fixer := fix.GetFixer(issue.CheckName); fixer \\!= nil {\n fixable = append(fixable, FixableIssue{issue, fixer})\n }\n }\n \n if len(fixable) == 0 {\n fmt.Println(\"No automatically fixable issues found\")\n return\n }\n \n // Show what will be fixed\n fmt.Printf(\"Found %d fixable issues:\\n\", len(fixable))\n for i, f := range fixable {\n fmt.Printf(\" %d. [%s] %s\\n\", i+1, f.Issue.CheckName, f.Fixer.Description())\n }\n \n // Confirm unless --yes\n if \\!yesFlag {\n fmt.Print(\"\\nProceed with fixes? [Y/n] \")\n // ... read confirmation\n }\n \n // Apply fixes\n for _, f := range fixable {\n fmt.Printf(\"Fixing %s... \", f.Issue.CheckName)\n if err := f.Fixer.Fix(ctx, f.Issue); err \\!= nil {\n fmt.Printf(\"FAILED: %v\\n\", err)\n } else {\n fmt.Println(\"OK\")\n }\n }\n}\n```\n\n## Fixable Checks (Initial Set)\n\n| Check | Fixer | Action |\n|-------|-------|--------|\n| git-hooks | HooksFixer | Reinstall hooks |\n| hooks-outdated | HooksFixer | Update hooks |\n| merge-driver-missing | MergeDriverFixer | Configure merge driver |\n| sync-branch-diverged | SyncBranchFixer | Reset to remote |\n| daemon-version-mismatch | DaemonFixer | Restart daemon |\n\n## Testing\n```bash\n# Test with broken hooks\nrm .git/hooks/pre-commit\nbd doctor --fix --yes\n\n# Verify fix applied\nbd doctor # Should pass now\n```\n\n## Success Criteria\n- --fix flag triggers automatic repair\n- User prompted for confirmation (unless --yes)\n- Clear output showing what was fixed\n- Graceful handling of fix failures\n- At least 5 common issues auto-fixable","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-14T18:17:48.411264-08:00","updated_at":"2025-12-23T13:34:05.646445-08:00","closed_at":"2025-12-23T13:34:05.646445-08:00","dependencies":[{"issue_id":"bd-ykd9","depends_on_id":"bd-iz5t","type":"parent-child","created_at":"2025-12-23T12:44:07.732505-08:00","created_by":"daemon"}]} -{"id":"bd-ykqu","title":"Add gate timeout tracking and notification","description":"Implement timeout and notification logic for gates.\n\n## Timeout Behavior\n1. Gate created with timeout (e.g., 30m)\n2. Deacon tracks elapsed time during patrol\n3. If timeout reached:\n - Notify all waiters: \"Gate timed out\"\n - Close gate with timeout reason\n - Waiter can retry, escalate, or fail gracefully\n\n## Notification\n- Use gt mail send to notify waiters\n- Include gate ID, await type, and reason in message\n- Support multiple waiters notification\n\n## Escalation Path\n- Witness sees stuck worker, nudges them\n- Worker can escalate to human if needed","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-23T11:44:40.1825-08:00","updated_at":"2025-12-23T12:19:44.362527-08:00","closed_at":"2025-12-23T12:19:44.362527-08:00","dependencies":[{"issue_id":"bd-ykqu","depends_on_id":"bd-udsi","type":"parent-child","created_at":"2025-12-23T11:44:53.072862-08:00","created_by":"daemon"},{"issue_id":"bd-ykqu","depends_on_id":"bd-is6m","type":"blocks","created_at":"2025-12-23T11:44:56.595085-08:00","created_by":"daemon"}]} -{"id":"bd-yl6gd","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T08:22:07.455133-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T08:22:07.520023-08:00","closed_at":"2026-01-11T08:22:07.520023-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-ylpkg","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T07:29:34.966635-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T07:29:35.029278-08:00","closed_at":"2026-01-11T07:29:35.029278-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-ym05l","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T20:42:58.763079-08:00","created_by":"beads/crew/wolf","updated_at":"2026-01-07T20:42:58.7968-08:00","closed_at":"2026-01-07T20:42:58.7968-08:00","close_reason":"auto-closed session event"} +{"id":"bd-ykqu","title":"Add gate timeout tracking and notification","description":"Implement timeout and notification logic for gates.\n\n## Timeout Behavior\n1. Gate created with timeout (e.g., 30m)\n2. Deacon tracks elapsed time during patrol\n3. If timeout reached:\n - Notify all waiters: \"Gate timed out\"\n - Close gate with timeout reason\n - Waiter can retry, escalate, or fail gracefully\n\n## Notification\n- Use gt mail send to notify waiters\n- Include gate ID, await type, and reason in message\n- Support multiple waiters notification\n\n## Escalation Path\n- Witness sees stuck worker, nudges them\n- Worker can escalate to human if needed","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-23T11:44:40.1825-08:00","updated_at":"2025-12-23T12:19:44.362527-08:00","closed_at":"2025-12-23T12:19:44.362527-08:00","dependencies":[{"issue_id":"bd-ykqu","depends_on_id":"bd-is6m","type":"blocks","created_at":"2025-12-23T11:44:56.595085-08:00","created_by":"daemon"},{"issue_id":"bd-ykqu","depends_on_id":"bd-udsi","type":"parent-child","created_at":"2025-12-23T11:44:53.072862-08:00","created_by":"daemon"}]} +{"id":"bd-yl6gd","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T08:22:07.455133-08:00","updated_at":"2026-01-11T08:22:07.520023-08:00","closed_at":"2026-01-11T08:22:07.520023-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-ylpkg","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T07:29:34.966635-08:00","updated_at":"2026-01-11T07:29:35.029278-08:00","closed_at":"2026-01-11T07:29:35.029278-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-ym05l","title":"Session ended: gt-beads-crew-wolf","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T20:42:58.763079-08:00","updated_at":"2026-01-07T20:42:58.7968-08:00","closed_at":"2026-01-07T20:42:58.7968-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/wolf"} {"id":"bd-ymj","title":"Export doesn't update last_import_hash metadata causing perpetual 'JSONL content has changed' errors","description":"After a successful export, the daemon doesn't update last_import_hash or last_import_mtime metadata. This causes hasJSONLChanged to return true on the next export attempt, blocking with 'refusing to export: JSONL content has changed since last import'.\n\nRelated to GH #334.\n\nScenario:\n1. Daemon exports successfully → JSONL updated, hash changes\n2. Metadata NOT updated (last_import_hash still points to old hash)\n3. Next mutation triggers export\n4. validatePreExport calls hasJSONLChanged\n5. hasJSONLChanged sees current JSONL hash != last_import_hash\n6. Export blocked with 'JSONL content has changed since last import'\n7. Issue stuck: can't export, can't make progress\n\nThis creates a catch-22 where the system thinks JSONL changed externally when it was the daemon itself that changed it.\n\nCurrent behavior:\n- Import updates metadata (import.go:310-336)\n- Export does NOT update metadata (daemon_sync.go:307)\n- Result: metadata becomes stale after every export","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-21T10:05:34.871333-05:00","updated_at":"2025-11-22T14:57:44.56458844-05:00","closed_at":"2025-11-21T15:09:04.016651-05:00","dependencies":[{"issue_id":"bd-ymj","depends_on_id":"bd-dvd","type":"related","created_at":"2025-11-21T10:06:11.462508-05:00","created_by":"daemon"}]} {"id":"bd-ymqn","title":"Code review: bd mol bond --ref and bd activity (bd-xo1o work)","description":"Review dave's recent commits for bd-xo1o (Dynamic Molecule Bonding):\n\n## Commits to Review\n- ee04b1ea: feat: add dynamic molecule bonding with --ref flag (bd-xo1o.1)\n- be520d90: feat: add bd activity command for real-time state feed (bd-xo1o.3)\n\n## Review Focus\n1. Code quality and correctness\n2. Error handling\n3. Edge cases\n4. Test coverage\n5. Documentation\n\n## Deliverables\n- File beads for any issues found\n- Note any concerns or suggestions\n- Verify the implementation matches the bd-xo1o epic requirements","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-23T03:47:55.217363-08:00","updated_at":"2025-12-23T04:11:00.226326-08:00","closed_at":"2025-12-23T04:11:00.226326-08:00"} -{"id":"bd-ypbad","title":"Merge: opal-mk900yed","description":"branch: polecat/opal-mk900yed\ntarget: main\nsource_issue: opal-mk900yed\nrig: beads\nagent_bead: bd-beads-polecat-opal\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T21:03:00.30685-08:00","created_by":"beads/polecats/opal","updated_at":"2026-01-10T21:53:10.597848-08:00","closed_at":"2026-01-10T21:53:10.597848-08:00","close_reason":"Branch no longer exists on remote","labels":["gt:merge-request"]} -{"id":"bd-ypvj","title":"Fix sync.remote config not being respected (GH#872)","description":"bd config set sync.remote \u003cname\u003e sets the value but bd sync still tries to use 'origin'. Need to check where the sync code reads the remote name and ensure it uses the configured value.","status":"closed","priority":1,"issue_type":"bug","assignee":"beads/crew/dave","created_at":"2026-01-03T13:12:50.777534-08:00","created_by":"beads/crew/grip","updated_at":"2026-01-03T13:24:46.723563-08:00","closed_at":"2026-01-03T13:24:46.723563-08:00","close_reason":"Fixed: gitPull/gitPush now respect sync.remote config (GH#872)"} +{"id":"bd-ypbad","title":"Merge: opal-mk900yed","description":"branch: polecat/opal-mk900yed\ntarget: main\nsource_issue: opal-mk900yed\nrig: beads\nagent_bead: bd-beads-polecat-opal\nretry_count: 0\nlast_conflict_sha: null\nconflict_task_id: null","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T21:03:00.30685-08:00","updated_at":"2026-01-10T21:53:10.597848-08:00","closed_at":"2026-01-10T21:53:10.597848-08:00","close_reason":"Branch no longer exists on remote","created_by":"beads/polecats/opal"} +{"id":"bd-ypvj","title":"Fix sync.remote config not being respected (GH#872)","description":"bd config set sync.remote \u003cname\u003e sets the value but bd sync still tries to use 'origin'. Need to check where the sync code reads the remote name and ensure it uses the configured value.","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-01-03T13:12:50.777534-08:00","updated_at":"2026-01-03T13:24:46.723563-08:00","closed_at":"2026-01-03T13:24:46.723563-08:00","close_reason":"Fixed: gitPull/gitPush now respect sync.remote config (GH#872)","created_by":"beads/crew/grip"} {"id":"bd-yqhh","title":"bd list --parent: filter by parent issue","description":"Add --parent flag to bd list to filter issues by parent.\n\nExample:\n```bash\nbd list --parent=gt-h5n --status=open\n```\n\nWould show all open children of gt-h5n.\n\nUseful for:\n- Checking epic progress\n- Finding swarmable work within an epic\n- Molecule step listing","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-23T01:51:26.830952-08:00","updated_at":"2025-12-23T02:10:12.909803-08:00","closed_at":"2025-12-23T02:10:12.909803-08:00"} -{"id":"bd-yr0fq","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T21:12:13.764395-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T21:12:13.80363-08:00","closed_at":"2026-01-08T21:12:13.80363-08:00","close_reason":"auto-closed session event"} -{"id":"bd-ysal","title":"bd sync --import-only silently fails when run from redirected .beads directory","description":"## Problem\n\nWhen running `bd sync --import-only` from a directory that has a `.beads/redirect` file pointing elsewhere, the command reports success but doesn't actually fix the staleness check.\n\n## Reproduction\n\n1. Have a clone with `.beads/redirect` pointing to another location (e.g., `../../mayor/rig/.beads`)\n2. Run `bd sync --import-only` from the clone directory\n3. Command reports: `Import complete: 0 created, 0 updated, N unchanged, M skipped`\n4. But subsequent `bd list` still fails with: `Error: Database out of sync with JSONL`\n\n## Expected Behavior\n\nEither:\n- The sync should follow the redirect and actually sync the target database\n- Or the command should error/warn that it can't sync a redirected beads location\n\n## Workaround\n\nRun `bd sync --import-only` from the actual beads directory (the redirect target), not the redirected clone.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-06T18:38:46.308049-08:00","created_by":"gastown/crew/george","updated_at":"2026-01-06T18:50:40.939761-08:00","closed_at":"2026-01-06T18:50:40.939761-08:00","close_reason":"Fixed by using inline import instead of subprocess for --import-only mode. This ensures path resolution is consistent when running from directories with .beads/redirect."} +{"id":"bd-yr0fq","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T21:12:13.764395-08:00","updated_at":"2026-01-08T21:12:13.80363-08:00","closed_at":"2026-01-08T21:12:13.80363-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} +{"id":"bd-ysal","title":"bd sync --import-only silently fails when run from redirected .beads directory","description":"## Problem\n\nWhen running `bd sync --import-only` from a directory that has a `.beads/redirect` file pointing elsewhere, the command reports success but doesn't actually fix the staleness check.\n\n## Reproduction\n\n1. Have a clone with `.beads/redirect` pointing to another location (e.g., `../../mayor/rig/.beads`)\n2. Run `bd sync --import-only` from the clone directory\n3. Command reports: `Import complete: 0 created, 0 updated, N unchanged, M skipped`\n4. But subsequent `bd list` still fails with: `Error: Database out of sync with JSONL`\n\n## Expected Behavior\n\nEither:\n- The sync should follow the redirect and actually sync the target database\n- Or the command should error/warn that it can't sync a redirected beads location\n\n## Workaround\n\nRun `bd sync --import-only` from the actual beads directory (the redirect target), not the redirected clone.","status":"closed","priority":2,"issue_type":"bug","created_at":"2026-01-06T18:38:46.308049-08:00","updated_at":"2026-01-06T18:50:40.939761-08:00","closed_at":"2026-01-06T18:50:40.939761-08:00","close_reason":"Fixed by using inline import instead of subprocess for --import-only mode. This ensures path resolution is consistent when running from directories with .beads/redirect.","created_by":"gastown/crew/george"} {"id":"bd-yuf7","title":"bd config set succeeds but doesn't persist to config.toml","description":"Commands like `bd config set daemon.auto_push true` return \"Set daemon.auto_push = true\" but the config file is never created and `bd info --json | jq '.config'` returns null.\n\n**Steps to reproduce:**\n1. Run `bd config set daemon.auto_push true`\n2. See success message: \"Set daemon.auto_push = true\"\n3. Check `cat .beads/config.toml` → file doesn't exist\n4. Check `bd info --json | jq '.config'` → returns null\n\n**Expected:**\n- .beads/config.toml should be created with the setting\n- bd info should show the config value\n\n**Impact:**\nUsers can't enable auto-push/auto-commit via CLI as documented in AGENTS.md","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-08T01:14:58.726198-08:00","updated_at":"2025-11-08T01:17:41.377912-08:00","closed_at":"2025-11-08T01:17:41.377912-08:00"} -{"id":"bd-yuxq","title":"Code smell: 262 uses of interface{} reduce type safety","description":"Heavy use of interface{} across 92 files (262 occurrences) in:\n- RPC update arguments: updatesFromArgs() returns map[string]interface{}\n- JSON unmarshaling and formatting\n- Storage query helpers\n\n**Example in internal/rpc/server_issues_epics.go:45:**\n```go\nfunc updatesFromArgs(a UpdateArgs) map[string]interface{} {\n // Returns map with interface{} values - types must be asserted at use sites\n}\n```\n\n**Problem:**\n- Loss of type safety\n- Runtime type assertions required\n- Harder to catch errors at compile time\n\n**Acceptance Criteria:**\n- [ ] Define typed update structs for specific field groups\n- [ ] Use generics where possible (Go 1.18+)\n- [ ] Reduce interface{} count by at least 50%\n- [ ] Document expected types where interface{} remains necessary\n- [ ] Tests pass","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T19:00:01.896147-08:00","created_by":"beads/crew/dave","updated_at":"2025-12-30T15:44:43.347739-08:00","closed_at":"2025-12-30T07:04:41.376731-08:00","close_reason":"Implemented type safety improvements:\n\n1. Created IssueUpdate struct with typed fields and ToMap() for backward compatibility\n2. Created 15+ typed response structs (StatusMessage, DeleteResult, CompactResult, etc.)\n3. Refactored updatesFromArgs to use typed IssueUpdate internally\n4. Updated RPC delete handler to use typed DeleteResult\n5. Updated migrate.go to use StatusMessage for errors\n\nThe typed structs provide compile-time checking and reduce runtime type assertions. This foundation enables further cleanup of interface{} usage over time.\n\nNote: Many remaining interface{} usages are inherent to Go's JSON handling and external APIs (GraphQL, SQL). The acceptance criteria of 50% reduction applies to the refactorable patterns, not the total count.","dependencies":[{"issue_id":"bd-yuxq","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.812412-08:00","created_by":"daemon"}]} -{"id":"bd-yvbly","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T03:04:16.868492-08:00","created_by":"beads/refinery","updated_at":"2026-01-12T03:04:16.915612-08:00","closed_at":"2026-01-12T03:04:16.915612-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-yvhxr","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T00:36:57.748089-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-10T00:36:57.786518-08:00","closed_at":"2026-01-10T00:36:57.786518-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-yuxq","title":"Code smell: 262 uses of interface{} reduce type safety","description":"Heavy use of interface{} across 92 files (262 occurrences) in:\n- RPC update arguments: updatesFromArgs() returns map[string]interface{}\n- JSON unmarshaling and formatting\n- Storage query helpers\n\n**Example in internal/rpc/server_issues_epics.go:45:**\n```go\nfunc updatesFromArgs(a UpdateArgs) map[string]interface{} {\n // Returns map with interface{} values - types must be asserted at use sites\n}\n```\n\n**Problem:**\n- Loss of type safety\n- Runtime type assertions required\n- Harder to catch errors at compile time\n\n**Acceptance Criteria:**\n- [ ] Define typed update structs for specific field groups\n- [ ] Use generics where possible (Go 1.18+)\n- [ ] Reduce interface{} count by at least 50%\n- [ ] Document expected types where interface{} remains necessary\n- [ ] Tests pass","status":"closed","priority":3,"issue_type":"chore","created_at":"2025-12-28T19:00:01.896147-08:00","updated_at":"2025-12-30T15:44:43.347739-08:00","closed_at":"2025-12-30T07:04:41.376731-08:00","close_reason":"Implemented type safety improvements:\n\n1. Created IssueUpdate struct with typed fields and ToMap() for backward compatibility\n2. Created 15+ typed response structs (StatusMessage, DeleteResult, CompactResult, etc.)\n3. Refactored updatesFromArgs to use typed IssueUpdate internally\n4. Updated RPC delete handler to use typed DeleteResult\n5. Updated migrate.go to use StatusMessage for errors\n\nThe typed structs provide compile-time checking and reduce runtime type assertions. This foundation enables further cleanup of interface{} usage over time.\n\nNote: Many remaining interface{} usages are inherent to Go's JSON handling and external APIs (GraphQL, SQL). The acceptance criteria of 50% reduction applies to the refactorable patterns, not the total count.","created_by":"beads/crew/dave","dependencies":[{"issue_id":"bd-yuxq","depends_on_id":"bd-ox1o","type":"blocks","created_at":"2025-12-28T19:00:23.812412-08:00","created_by":"daemon"}]} +{"id":"bd-yvbly","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T03:04:16.868492-08:00","updated_at":"2026-01-12T03:04:16.915612-08:00","closed_at":"2026-01-12T03:04:16.915612-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-yvhxr","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T00:36:57.748089-08:00","updated_at":"2026-01-10T00:36:57.786518-08:00","closed_at":"2026-01-10T00:36:57.786518-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-yvlc","title":"URGENT: main branch has failing tests (syncbranch migration error)","description":"The main branch has failing tests that are blocking CI for all PRs.\n\n## Problem\nAll syncbranch_test.go tests failing with:\n\"migration external_ref_column failed: failed to create index on external_ref: sqlite3: SQL logic error: no such table: main.issues\"\n\n## Evidence\n- Last 5 CI runs on main: ALL FAILED\n- Tests fail locally on current main (bd6dca5)\n- Affects: TestGet, TestSet, TestUnset in internal/syncbranch\n\n## Impact\n- Blocking all PR merges\n- CI shows red for all branches\n- Can't trust test results\n\n## Root Cause\nMigration order issue - trying to create index on external_ref column before the issues table exists, or before the external_ref column is added to the issues table.\n\n## Quick Fix Needed\nNeed to investigate migration order in internal/storage/sqlite/migrations.go and ensure:\n1. issues table is created first\n2. external_ref column is added to issues table\n3. THEN index on external_ref is created\n\nThis is CRITICAL - main should never have breaking tests.","status":"closed","priority":0,"issue_type":"bug","created_at":"2025-11-15T12:25:31.51688-08:00","updated_at":"2025-11-15T12:43:11.489612-08:00","closed_at":"2025-11-15T12:43:11.489612-08:00"} -{"id":"bd-yvmni","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:16:09.821155-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T20:16:09.856754-08:00","closed_at":"2026-01-08T20:16:09.856754-08:00","close_reason":"auto-closed session event"} +{"id":"bd-yvmni","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T20:16:09.821155-08:00","updated_at":"2026-01-08T20:16:09.856754-08:00","closed_at":"2026-01-08T20:16:09.856754-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-yx22","title":"Merge: bd-d28c","description":"branch: polecat/testcat\ntarget: main\nsource_issue: bd-d28c\nrig: beads","status":"closed","priority":1,"issue_type":"merge-request","created_at":"2025-12-23T21:33:15.490412-08:00","updated_at":"2025-12-23T21:36:38.584933-08:00","closed_at":"2025-12-23T21:36:38.584933-08:00"} {"id":"bd-yxy","title":"Add command injection prevention tests for git rm in merge command","description":"Test coverage gap identified by automated analysis (vc-217).\n\n**Original Issue:** [deleted:bd-da96-baseline-lint]\n\nIn cmd/bd/merge.go:121, exec.Command is called with variable fullPath, flagged by gosec G204 for potential command injection.\n\nAdd tests covering:\n- File paths with shell metacharacters (;, |, \u0026, $, etc.)\n- Paths with spaces and special characters\n- Paths attempting command injection (e.g., 'file; rm -rf /')\n- Validation that fullPath is properly sanitized\n- Only valid git-tracked files can be removed\n\nThis is a critical security path preventing arbitrary command execution.\n\n_This issue was automatically created by AI test coverage analysis._","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-21T10:25:33.531631-05:00","updated_at":"2025-11-21T21:29:36.991055218-05:00","closed_at":"2025-11-21T19:31:21.853136-05:00","dependencies":[{"issue_id":"bd-yxy","depends_on_id":"bd-da96-baseline-lint","type":"discovered-from","created_at":"2025-11-21T10:25:33.533126-05:00","created_by":"ai-supervisor"}]} {"id":"bd-yy1h","title":"Witness Patrol","description":"Per-rig worker monitor patrol loop with progressive nudging.","status":"tombstone","priority":2,"issue_type":"molecule","created_at":"2025-12-26T13:08:21.271692-08:00","updated_at":"2025-12-27T00:10:54.178645-08:00","deleted_at":"2025-12-27T00:10:54.178645-08:00","deleted_by":"daemon","delete_reason":"delete","original_type":"molecule"} {"id":"bd-yyxi","title":"Digest: beads-release","description":"Successfully released beads v0.42.0 - GitHub, npm, PyPI all verified","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-30T21:28:02.188707-08:00","updated_at":"2025-12-30T21:28:02.188707-08:00","closed_at":"2025-12-30T21:28:02.18865-08:00","close_reason":"Squashed from 18 wisps","dependencies":[{"issue_id":"bd-yyxi","depends_on_id":"bd-eph-5h2","type":"parent-child","created_at":"2025-12-30T21:28:02.189419-08:00","created_by":"beads/crew/emma"}]} -{"id":"bd-z0v6f","title":"Review and merge PR #991: fix bd init Windows hang","description":"dispatched_by: beads/crew/emma\n\nReview PR #991 from vector76 which fixes bd init hanging on Windows when not in a git repository.\n\n## PR Details\n- URL: https://github.com/steveyegge/beads/pull/991\n- Issue: #990\n- Adds: 11 lines, Deletes: 1 line\n\n## The Bug\nFindBeadsDir() uses a loop that checks `dir != \"/\"` to stop at filesystem root. On Windows, the root is `C:\\` not `/`, causing an infinite loop.\n\n## The Fix\nChanges the loop to explicitly check if `filepath.Dir(dir) == dir` which correctly detects filesystem root on both Unix and Windows.\n\n## Review Tasks\n1. Verify the fix logic is correct\n2. Run tests: `go test ./internal/beads/...`\n3. If tests pass, approve and merge the PR\n\n## Commands\n```bash\ngh pr checkout 991 --repo steveyegge/beads\ngo test ./internal/beads/...\ngh pr review 991 --repo steveyegge/beads --approve\ngh pr merge 991 --repo steveyegge/beads --squash\n```","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/dave","created_at":"2026-01-09T21:16:08.283484-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T21:17:36.622921-08:00","closed_at":"2026-01-09T21:17:36.622921-08:00","close_reason":"PR #991 merged. Fixes Windows infinite loop by using filepath.Dir(dir)==dir to detect filesystem root."} +{"id":"bd-z0v6f","title":"Review and merge PR #991: fix bd init Windows hang","description":"dispatched_by: beads/crew/emma\n\nReview PR #991 from vector76 which fixes bd init hanging on Windows when not in a git repository.\n\n## PR Details\n- URL: https://github.com/steveyegge/beads/pull/991\n- Issue: #990\n- Adds: 11 lines, Deletes: 1 line\n\n## The Bug\nFindBeadsDir() uses a loop that checks `dir != \"/\"` to stop at filesystem root. On Windows, the root is `C:\\` not `/`, causing an infinite loop.\n\n## The Fix\nChanges the loop to explicitly check if `filepath.Dir(dir) == dir` which correctly detects filesystem root on both Unix and Windows.\n\n## Review Tasks\n1. Verify the fix logic is correct\n2. Run tests: `go test ./internal/beads/...`\n3. If tests pass, approve and merge the PR\n\n## Commands\n```bash\ngh pr checkout 991 --repo steveyegge/beads\ngo test ./internal/beads/...\ngh pr review 991 --repo steveyegge/beads --approve\ngh pr merge 991 --repo steveyegge/beads --squash\n```","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-09T21:16:08.283484-08:00","updated_at":"2026-01-09T21:17:36.622921-08:00","closed_at":"2026-01-09T21:17:36.622921-08:00","close_reason":"PR #991 merged. Fixes Windows infinite loop by using filepath.Dir(dir)==dir to detect filesystem root.","created_by":"beads/crew/emma"} {"id":"bd-z0yn","title":"Channel isolation test - beads","notes":"Resetting stale in_progress status from old executor run (13 days old)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-08T04:21:17.327983-08:00","updated_at":"2025-12-14T00:32:11.046547-08:00","closed_at":"2025-12-13T23:29:56.876192-08:00"} -{"id":"bd-z2q8","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:21:36.377311-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:21:36.41507-08:00","closed_at":"2026-01-07T00:21:36.41507-08:00","close_reason":"auto-closed session event"} +{"id":"bd-z2q8","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-07T00:21:36.377311-08:00","updated_at":"2026-01-07T00:21:36.41507-08:00","closed_at":"2026-01-07T00:21:36.41507-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/emma"} {"id":"bd-z3rf","title":"dave Handoff","status":"tombstone","priority":2,"issue_type":"task","created_at":"2025-12-23T04:33:42.874554-08:00","updated_at":"2025-12-29T12:41:09.335754-08:00","deleted_at":"2025-12-29T12:41:09.335754-08:00","deleted_by":"daemon","delete_reason":"orphaned handoff stubs from crash","original_type":"task"} {"id":"bd-z3s3","title":"Create deployment scripts for GCP","description":"Automated provisioning scripts for GCP Compute Engine deployment.\n\nAcceptance Criteria:\n- Terraform/gcloud scripts\n- Static IP allocation\n- Firewall rules\n- NGINX reverse proxy config\n- TLS setup (Let's Encrypt)\n- Systemd service file\n\nFile: deployment/agent-mail/gcp/","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-07T22:43:43.294839-08:00","updated_at":"2025-12-14T00:32:11.049764-08:00","closed_at":"2025-12-13T23:30:58.727475-08:00","dependencies":[{"issue_id":"bd-z3s3","depends_on_id":"bd-9li4","type":"blocks","created_at":"2025-11-07T23:04:27.982336-08:00","created_by":"daemon"}]} -{"id":"bd-z4f5","title":"--parent flag reports success but doesn't persist to JSONL","description":"The --parent flag for bd update reports success but the change doesn't persist.\n\nReported by: Mayor\nLocation: show.go:810-814 handles the logic\n\nSymptoms:\n- bd update \u003cid\u003e --parent=\u003cnew-parent\u003e returns success\n- But the parent change is not written to JSONL\n- Subsequent bd show reveals parent unchanged\n\nThis shipped in v0.39.1 as part of bd-cj2e (--parent flag for reparenting).\n\nInvestigation: Check the update path from show.go through to JSONL export. The RPC/daemon layer may be dropping the parent field, or the storage layer isn't persisting it.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-27T23:10:22.428136-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-27T23:27:45.716572-08:00","closed_at":"2025-12-27T23:27:45.716572-08:00"} +{"id":"bd-z4f5","title":"--parent flag reports success but doesn't persist to JSONL","description":"The --parent flag for bd update reports success but the change doesn't persist.\n\nReported by: Mayor\nLocation: show.go:810-814 handles the logic\n\nSymptoms:\n- bd update \u003cid\u003e --parent=\u003cnew-parent\u003e returns success\n- But the parent change is not written to JSONL\n- Subsequent bd show reveals parent unchanged\n\nThis shipped in v0.39.1 as part of bd-cj2e (--parent flag for reparenting).\n\nInvestigation: Check the update path from show.go through to JSONL export. The RPC/daemon layer may be dropping the parent field, or the storage layer isn't persisting it.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-12-27T23:10:22.428136-08:00","updated_at":"2025-12-27T23:27:45.716572-08:00","closed_at":"2025-12-27T23:27:45.716572-08:00","created_by":"beads/crew/emma"} {"id":"bd-z528","title":"Prevent test pollution in production database","description":"The bd-vxdr cleanup revealed test issues were created during manual testing in the production workspace (Nov 2-4, template feature development).\n\n**Root cause:** Manual testing with `./bd create \"Test issue\"` pollutes the production .beads database.\n\n**Prevention strategies:**\n1. Use TEST_DB environment variable for manual testing\n2. Add warning when creating issues with \"Test\" prefix\n3. Improve developer docs about testing workflow\n4. Consider adding `bd test-mode` command for isolated testing","notes":"**Implementation completed:**\n\n1. ✅ Added warning when creating issues with \"Test\" prefix in production database\n - Shows yellow warning with ⚠ symbol\n - Suggests using BEADS_DB for isolated testing\n - Warning appears in create.go after title validation\n\n2. ✅ Documented BEADS_DB testing workflow in AGENTS.md\n - Added \"Testing Workflow\" section in Development Guidelines\n - Includes manual testing examples with BEADS_DB\n - Includes automated testing examples with t.TempDir()\n - Clear warning about not polluting production database\n\n3. ⚠️ Decided against bd test-mode command\n - BEADS_DB already provides simple, flexible isolation\n - Additional command would add complexity without much benefit\n - Current approach follows Unix philosophy (env vars for config)\n\n**Files modified:**\n- cmd/bd/create.go - Added Test prefix warning\n- AGENTS.md - Added Testing Workflow section\n\n**Testing:**\n- Verified warning appears when creating \"Test\" prefix issues\n- Verified BEADS_DB isolation works correctly\n- Built successfully with `go build`","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-07T16:07:28.255289-08:00","updated_at":"2025-11-07T23:18:08.386514-08:00","closed_at":"2025-11-07T22:43:28.669908-08:00"} -{"id":"bd-z5khl","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T22:54:46.917581-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T22:54:46.984736-08:00","closed_at":"2026-01-11T22:54:46.984736-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-z6kw","title":"Refinery gh:run gate auto-discovery","description":"Refinery auto-populates await_id for gh:run gates from recent workflow runs.\n\n## Problem\nGate created by cook has await_type=gh:run but no await_id.\nNeed to discover the run ID from the push that triggered CI.\n\n## Solution\nDuring Refinery patrol:\n1. Find open gh:run gates without await_id\n2. Query: gh run list --workflow=\u003cgate.workflow\u003e --limit=5\n3. Match run to gate (by branch, commit, or time proximity)\n4. Update gate: bd update \u003cgate-id\u003e --await-id=\u003crun-id\u003e\n5. Now bd gate check --type=gh can poll that specific run\n\n## Implementation\n- Add discover-await-ids step to mol-refinery-patrol\n- Use gh CLI to query recent runs\n- Match heuristics: same branch, recent commit, within 5 mins\n- Update gate with discovered run ID\n\n## Acceptance Criteria\n- [ ] Refinery discovers run IDs for gh:run gates\n- [ ] Gates updated with correct await_id\n- [ ] Subsequent polls use run ID\n- [ ] Handles multiple pending gates","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-02T13:27:42.35667-08:00","created_by":"mayor","updated_at":"2026-01-04T15:22:07.771701-08:00","closed_at":"2026-01-02T16:12:24.656236-08:00","close_reason":"Implemented bd gate discover command for auto-discovery of gh:run gate await_ids","dependencies":[{"issue_id":"bd-z6kw","depends_on_id":"bd-d1n1","type":"parent-child","created_at":"2026-01-02T13:28:18.621422-08:00","created_by":"mayor"},{"issue_id":"bd-z6kw","depends_on_id":"bd-4k3c","type":"blocks","created_at":"2026-01-02T13:28:18.688305-08:00","created_by":"mayor"}]} -{"id":"bd-z7w5p","title":"Review PR #16215: Fix broken links in plugin docs","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #16215 (anthropics/claude-code)\n\nPR: https://github.com/anthropics/claude-code/pull/16215\nAuthor: jeremylongshore\n\nFixes broken CONTRIBUTING and LICENSE links.\n- gh pr view 16215 --repo anthropics/claude-code\n- gh pr diff 16215 --repo anthropics/claude-code\n- If good: gh pr merge 16215 --repo anthropics/claude-code --squash","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/fang","created_at":"2026-01-08T14:20:05.178308-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-08T14:29:35.597578-08:00","closed_at":"2026-01-08T14:29:35.597578-08:00","close_reason":"Wrong repo - these were for anthropics/claude-code, not steveyegge/beads"} -{"id":"bd-z830","title":"Test child task","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T23:26:58.246573-08:00","created_by":"beads/crew/emma","updated_at":"2025-12-27T23:27:40.451603-08:00","closed_at":"2025-12-27T23:27:40.451603-08:00","dependencies":[{"issue_id":"bd-z830","depends_on_id":"bd-fbl9","type":"parent-child","created_at":"2025-12-27T23:27:02.984294-08:00","created_by":"daemon"}]} +{"id":"bd-z5khl","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T22:54:46.917581-08:00","updated_at":"2026-01-11T22:54:46.984736-08:00","closed_at":"2026-01-11T22:54:46.984736-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-z6kw","title":"Refinery gh:run gate auto-discovery","description":"Refinery auto-populates await_id for gh:run gates from recent workflow runs.\n\n## Problem\nGate created by cook has await_type=gh:run but no await_id.\nNeed to discover the run ID from the push that triggered CI.\n\n## Solution\nDuring Refinery patrol:\n1. Find open gh:run gates without await_id\n2. Query: gh run list --workflow=\u003cgate.workflow\u003e --limit=5\n3. Match run to gate (by branch, commit, or time proximity)\n4. Update gate: bd update \u003cgate-id\u003e --await-id=\u003crun-id\u003e\n5. Now bd gate check --type=gh can poll that specific run\n\n## Implementation\n- Add discover-await-ids step to mol-refinery-patrol\n- Use gh CLI to query recent runs\n- Match heuristics: same branch, recent commit, within 5 mins\n- Update gate with discovered run ID\n\n## Acceptance Criteria\n- [ ] Refinery discovers run IDs for gh:run gates\n- [ ] Gates updated with correct await_id\n- [ ] Subsequent polls use run ID\n- [ ] Handles multiple pending gates","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-02T13:27:42.35667-08:00","updated_at":"2026-01-04T15:22:07.771701-08:00","closed_at":"2026-01-02T16:12:24.656236-08:00","close_reason":"Implemented bd gate discover command for auto-discovery of gh:run gate await_ids","created_by":"mayor","dependencies":[{"issue_id":"bd-z6kw","depends_on_id":"bd-d1n1","type":"parent-child","created_at":"2026-01-02T13:28:18.621422-08:00","created_by":"mayor"},{"issue_id":"bd-z6kw","depends_on_id":"bd-4k3c","type":"blocks","created_at":"2026-01-02T13:28:18.688305-08:00","created_by":"mayor"}]} +{"id":"bd-z7w5p","title":"Review PR #16215: Fix broken links in plugin docs","description":"dispatched_by: beads/crew/emma\n\nReview and verify PR #16215 (anthropics/claude-code)\n\nPR: https://github.com/anthropics/claude-code/pull/16215\nAuthor: jeremylongshore\n\nFixes broken CONTRIBUTING and LICENSE links.\n- gh pr view 16215 --repo anthropics/claude-code\n- gh pr diff 16215 --repo anthropics/claude-code\n- If good: gh pr merge 16215 --repo anthropics/claude-code --squash","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-08T14:20:05.178308-08:00","updated_at":"2026-01-08T14:29:35.597578-08:00","closed_at":"2026-01-08T14:29:35.597578-08:00","close_reason":"Wrong repo - these were for anthropics/claude-code, not steveyegge/beads","created_by":"beads/crew/emma"} +{"id":"bd-z830","title":"Test child task","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-27T23:26:58.246573-08:00","updated_at":"2025-12-27T23:27:40.451603-08:00","closed_at":"2025-12-27T23:27:40.451603-08:00","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-z830","depends_on_id":"bd-fbl9","type":"parent-child","created_at":"2025-12-27T23:27:02.984294-08:00","created_by":"daemon"}]} {"id":"bd-z86n","title":"Code Review: PR #551 - Persist close_reason to issues table","description":"Code review of PR #551 which fixes close_reason persistence bug.\n\n## Summary\nThe PR correctly fixes a bug where close_reason was only stored in the events table, not in the issues.close_reason column. This caused `bd show --json` to return empty close_reason.\n\n## What Was Fixed\n- ✅ CloseIssue now updates both close_reason and closed_at\n- ✅ ReOpenIssue clears both close_reason and closed_at\n- ✅ Comprehensive tests added for both storage and CLI layers\n- ✅ Clear documentation in queries.go about dual storage strategy\n\n## Quality Assessment\n✅ Tests cover both storage layer and CLI JSON output\n✅ Handles reopen case (clearing close_reason)\n✅ Good comments explaining dual-storage design\n✅ No known issues\n\n## Potential Followups\nSee linked issues for suggestions.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-14T14:25:06.887069-08:00","updated_at":"2025-12-29T13:40:29.724656-08:00","closed_at":"2025-12-29T13:40:29.724656-08:00","close_reason":"Stale/spurious - test artifacts, merged PRs, or auto-close candidates"} {"id":"bd-z8a6","title":"bd delete --from-file should add deleted issues to deletions manifest","description":"When using bd delete --from-file to bulk delete issues, the deleted issue IDs are not being added to the deletions.jsonl manifest.\n\nThis causes those issues to be resurrected during bd sync when git history scanning finds them in old commits.\n\nExpected: All deleted issues should be added to deletions.jsonl so they wont be reimported from git history.\n\nWorkaround: Manually add deletion records to deletions.jsonl.","status":"tombstone","priority":1,"issue_type":"bug","created_at":"2025-12-16T01:48:14.099855-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} -{"id":"bd-z8xq2","title":"No ref test","status":"open","priority":1,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-10T20:38:11.113534-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-10T20:38:11.113534-08:00"} -{"id":"bd-z8xz","title":"beads-release formula: fix local-install dev path and clarify bump-version.sh","description":"## Overview\n\nThe beads-release formula delegates to a monolithic `bump-version.sh` script, which defeats the purpose of having fine-grained molecule steps:\n\n- **Durability**: If interrupted mid-script, you lose progress and must restart\n- **Visibility**: Activity feed only shows one step, not progress through sub-operations \n- **Atomicity**: Cant resume from a specific sub-operation\n\nThe formula's fine-grained steps ARE the feature. The script is legacy.\n\n## Current State\n\nThe `run-bump-script` step calls `./scripts/bump-version.sh {{version}}` which does:\n\n### Version Updates (should be individual steps)\n1. `cmd/bd/version.go` - Go version constant\n2. `.claude-plugin/plugin.json` - Plugin manifest\n3. `.claude-plugin/marketplace.json` - Marketplace entry\n4. `integrations/beads-mcp/pyproject.toml` - Python package version\n5. `integrations/beads-mcp/src/beads_mcp/__init__.py` - Python __version__\n6. `npm-package/package.json` - npm package version\n7. `cmd/bd/templates/hooks/*` - Hook template versions (4 files)\n8. `README.md` - Alpha version badge\n9. `CHANGELOG.md` - Stamp [Unreleased] with date\n\n### Local Install (needs dev path added)\n- Build binary: `go build -o bd ./cmd/bd`\n- Copy to `~/.local/bin/bd`\n- **macOS codesigning** (critical - without this binary gets SIGKILL)\n- MCP local install via uv/pip\n- Daemon restart\n\n## Target State\n\n### Phase 1: Break version updates into individual steps\n\nReplace `run-bump-script` with explicit steps:\n- `bump-version-go` - sed on cmd/bd/version.go\n- `bump-plugin-json` - jq on .claude-plugin/*.json\n- `bump-mcp-python` - sed on pyproject.toml and __init__.py\n- `bump-npm-package` - jq on npm-package/package.json \n- `bump-hook-templates` - sed on cmd/bd/templates/hooks/*\n- `bump-readme` - sed on README.md\n- `stamp-changelog` - sed to add date to [Unreleased]\n\nEach step has explicit commands that can be copy-pasted.\n\n### Phase 2: Fix local-install step\n\nAdd Option 3 for devs building from source:\n```bash\ngo build -o bd ./cmd/bd\ncp bd ~/.local/bin/bd\n# macOS ONLY - prevents SIGKILL (Killed: 9)\n[[ $(uname) == \"Darwin\" ]] \u0026\u0026 codesign --force --sign - ~/.local/bin/bd\n```\n\n### Phase 3: Deprecate bump-version.sh\n\nEither:\n- Add deprecation notice pointing to formula\n- Remove entirely (formula is the authority)\n- Keep as convenience wrapper that just runs `bd mol execute beads-release`\n\n## Acceptance Criteria\n\n- [ ] Formula has explicit steps for each version file update\n- [ ] Each step shows clear commands (no script delegation)\n- [ ] local-install includes build-from-source with codesigning\n- [ ] bump-version.sh is deprecated or removed\n- [ ] Release can complete even if interrupted mid-execution (resume from step)\n","status":"closed","priority":1,"issue_type":"epic","assignee":"beads/crew/emma","created_at":"2026-01-07T00:20:38.312564-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-07T00:49:36.216406-08:00","closed_at":"2026-01-07T00:49:36.216406-08:00","close_reason":"Installed bd 0.46.0 locally. Epic scope (formula refactor) deferred - filed child issues bd-a854, bd-5cnq, bd-vizy for future work.","dependencies":[{"issue_id":"bd-z8xz","depends_on_id":"bd-fbkd","type":"related","created_at":"2026-01-07T00:20:49.331713-08:00","created_by":"beads/crew/emma"}]} +{"id":"bd-z8xq2","title":"No ref test","status":"open","priority":1,"issue_type":"task","created_at":"2026-01-10T20:38:11.113534-08:00","updated_at":"2026-01-10T20:38:11.113534-08:00","created_by":"beads/crew/dave"} +{"id":"bd-z8xz","title":"beads-release formula: fix local-install dev path and clarify bump-version.sh","description":"## Overview\n\nThe beads-release formula delegates to a monolithic `bump-version.sh` script, which defeats the purpose of having fine-grained molecule steps:\n\n- **Durability**: If interrupted mid-script, you lose progress and must restart\n- **Visibility**: Activity feed only shows one step, not progress through sub-operations \n- **Atomicity**: Cant resume from a specific sub-operation\n\nThe formula's fine-grained steps ARE the feature. The script is legacy.\n\n## Current State\n\nThe `run-bump-script` step calls `./scripts/bump-version.sh {{version}}` which does:\n\n### Version Updates (should be individual steps)\n1. `cmd/bd/version.go` - Go version constant\n2. `.claude-plugin/plugin.json` - Plugin manifest\n3. `.claude-plugin/marketplace.json` - Marketplace entry\n4. `integrations/beads-mcp/pyproject.toml` - Python package version\n5. `integrations/beads-mcp/src/beads_mcp/__init__.py` - Python __version__\n6. `npm-package/package.json` - npm package version\n7. `cmd/bd/templates/hooks/*` - Hook template versions (4 files)\n8. `README.md` - Alpha version badge\n9. `CHANGELOG.md` - Stamp [Unreleased] with date\n\n### Local Install (needs dev path added)\n- Build binary: `go build -o bd ./cmd/bd`\n- Copy to `~/.local/bin/bd`\n- **macOS codesigning** (critical - without this binary gets SIGKILL)\n- MCP local install via uv/pip\n- Daemon restart\n\n## Target State\n\n### Phase 1: Break version updates into individual steps\n\nReplace `run-bump-script` with explicit steps:\n- `bump-version-go` - sed on cmd/bd/version.go\n- `bump-plugin-json` - jq on .claude-plugin/*.json\n- `bump-mcp-python` - sed on pyproject.toml and __init__.py\n- `bump-npm-package` - jq on npm-package/package.json \n- `bump-hook-templates` - sed on cmd/bd/templates/hooks/*\n- `bump-readme` - sed on README.md\n- `stamp-changelog` - sed to add date to [Unreleased]\n\nEach step has explicit commands that can be copy-pasted.\n\n### Phase 2: Fix local-install step\n\nAdd Option 3 for devs building from source:\n```bash\ngo build -o bd ./cmd/bd\ncp bd ~/.local/bin/bd\n# macOS ONLY - prevents SIGKILL (Killed: 9)\n[[ $(uname) == \"Darwin\" ]] \u0026\u0026 codesign --force --sign - ~/.local/bin/bd\n```\n\n### Phase 3: Deprecate bump-version.sh\n\nEither:\n- Add deprecation notice pointing to formula\n- Remove entirely (formula is the authority)\n- Keep as convenience wrapper that just runs `bd mol execute beads-release`\n\n## Acceptance Criteria\n\n- [ ] Formula has explicit steps for each version file update\n- [ ] Each step shows clear commands (no script delegation)\n- [ ] local-install includes build-from-source with codesigning\n- [ ] bump-version.sh is deprecated or removed\n- [ ] Release can complete even if interrupted mid-execution (resume from step)\n","status":"closed","priority":1,"issue_type":"epic","created_at":"2026-01-07T00:20:38.312564-08:00","updated_at":"2026-01-07T00:49:36.216406-08:00","closed_at":"2026-01-07T00:49:36.216406-08:00","close_reason":"Installed bd 0.46.0 locally. Epic scope (formula refactor) deferred - filed child issues bd-a854, bd-5cnq, bd-vizy for future work.","created_by":"beads/crew/emma","dependencies":[{"issue_id":"bd-z8xz","depends_on_id":"bd-fbkd","type":"related","created_at":"2026-01-07T00:20:49.331713-08:00","created_by":"beads/crew/emma"}]} {"id":"bd-zai","title":"bd init resets metadata.json jsonl_export to beads.jsonl, ignoring existing issues.jsonl","description":"When running 'bd init --prefix bd' in a repo that already has .beads/issues.jsonl, the init command overwrites metadata.json and sets jsonl_export back to 'beads.jsonl' instead of detecting and respecting the existing issues.jsonl file.\n\nSteps to reproduce:\n1. Have a repo with .beads/issues.jsonl (canonical) and metadata.json pointing to issues.jsonl\n2. Delete beads.db and run 'bd init --prefix bd'\n3. Check metadata.json - it now says jsonl_export: beads.jsonl\n\nExpected: Init should detect existing issues.jsonl and use it.\n\nWorkaround: Manually edit metadata.json after init.","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-11-26T22:27:41.653287-08:00","updated_at":"2025-12-02T17:11:19.752292588-05:00","closed_at":"2025-11-28T21:54:32.52461-08:00"} -{"id":"bd-zajuh","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:28:46.234212-08:00","created_by":"beads/witness","updated_at":"2026-01-10T21:28:46.276675-08:00","closed_at":"2026-01-10T21:28:46.276675-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-zajuh","title":"Session ended: gt-beads-witness","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T21:28:46.234212-08:00","updated_at":"2026-01-10T21:28:46.276675-08:00","closed_at":"2026-01-10T21:28:46.276675-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/witness"} {"id":"bd-zbq2","title":"bd export should verify JSONL line count matches database count","description":"After export completes, bd should verify that the JSONL file line count matches the number of issues exported. This would catch silent failures where the export appears to succeed but doesn't actually write all issues.\n\nReal-world scenario from VC project:\n- Ran direct SQL DELETE to remove 240 issues \n- Ran 'bd export -o .beads/issues.jsonl'\n- No error shown, appeared to succeed\n- But JSONL file was not updated (still had old line count)\n- Later session found all 240 issues still in JSONL\n- Had to repeat the cleanup\n\nIf export had verified line count, it would have immediately shown:\n Error: Export verification failed\n Expected: 276 issues\n JSONL file: 516 lines\n Mismatch indicates export failed to write all issues\n\nThis is especially important because:\n1. JSONL is source of truth in git\n2. Silent export failures cause data inconsistency\n3. Users assume export succeeded if no error shown\n4. The verification is cheap (just count lines)\n\nImplementation:\n- After writing JSONL, count lines in file\n- Compare to len(exportedIDs)\n- If mismatch, remove temp file and return error\n- Show clear error message with both counts","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-11-05T14:24:56.278249-08:00","updated_at":"2025-11-05T15:09:41.636141-08:00","closed_at":"2025-11-05T14:31:24.494885-08:00"} {"id":"bd-zbyb","title":"GH#522: Add --type flag to bd update command","description":"Allow changing issue type (task/epic/bug/feature) via bd update --type. Storage layer already supports it. Needed for TUI tools like Abacus. See: https://github.com/steveyegge/beads/issues/522","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-14T16:31:31.71456-08:00","updated_at":"2025-12-16T01:27:29.050397-08:00","closed_at":"2025-12-16T01:27:29.050397-08:00"} {"id":"bd-zc3","title":"Add --pinned and --no-pinned flags to bd list","description":"Add filtering flags to bd list: --pinned shows only pinned issues, --no-pinned excludes pinned issues. Default behavior shows all issues with a pin indicator.","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-18T23:33:29.518028-08:00","updated_at":"2025-12-21T11:30:01.484978-08:00","closed_at":"2025-12-21T11:30:01.484978-08:00","dependencies":[{"issue_id":"bd-zc3","depends_on_id":"bd-0vg","type":"blocks","created_at":"2025-12-18T23:33:56.256764-08:00","created_by":"daemon"},{"issue_id":"bd-zc3","depends_on_id":"bd-7h5","type":"blocks","created_at":"2025-12-18T23:34:07.486361-08:00","created_by":"daemon"}]} -{"id":"bd-zcnnu","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T10:14:03.460027-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T10:14:03.5226-08:00","closed_at":"2026-01-11T10:14:03.5226-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-zdoku","title":"test","status":"closed","priority":2,"issue_type":"task","owner":"steve.yegge@gmail.com","created_at":"2026-01-10T19:26:58.520985-08:00","created_by":"beads/crew/dave","updated_at":"2026-01-10T19:27:06.618056-08:00","closed_at":"2026-01-10T19:27:06.618056-08:00","close_reason":"Closed"} -{"id":"bd-ze249","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T16:24:45.792361-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T16:24:45.870017-08:00","closed_at":"2026-01-13T16:24:45.870017-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-ze2ch","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T00:45:37.598854-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-12T00:45:37.659088-08:00","closed_at":"2026-01-12T00:45:37.659088-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-zcnnu","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-11T10:14:03.460027-08:00","updated_at":"2026-01-11T10:14:03.5226-08:00","closed_at":"2026-01-11T10:14:03.5226-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-zdoku","title":"test","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T19:26:58.520985-08:00","updated_at":"2026-01-10T19:27:06.618056-08:00","closed_at":"2026-01-10T19:27:06.618056-08:00","close_reason":"Closed","created_by":"beads/crew/dave"} +{"id":"bd-ze249","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T16:24:45.792361-08:00","updated_at":"2026-01-13T16:24:45.870017-08:00","closed_at":"2026-01-13T16:24:45.870017-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-ze2ch","title":"Session ended: gt-beads-crew-emma","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-12T00:45:37.598854-08:00","updated_at":"2026-01-12T00:45:37.659088-08:00","closed_at":"2026-01-12T00:45:37.659088-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/emma"} {"id":"bd-zf5w","title":"bd mail uses git user.name for sender instead of BEADS_AGENT_NAME","description":"When sending mail via `bd mail send`, the sender field in the stored issue uses git config user.name instead of the BEADS_AGENT_NAME environment variable.\n\nReproduction:\n1. Set BEADS_AGENT_NAME=gastown-alpha\n2. Run: bd mail send mayor/ -s 'Test' -m 'Body'\n3. Check the issue.jsonl: sender is 'Steve Yegge' (git user.name) not 'gastown-alpha'\n\nExpected: The sender field should use BEADS_AGENT_NAME when set.\n\nThis breaks the mail system for multi-agent workflows where agents need to identify themselves by their role (polecat, refinery, etc.) rather than the human user's git identity.\n\nRelated: gt mail routing integration with Gas Town","status":"closed","priority":2,"issue_type":"bug","created_at":"2025-12-20T21:46:33.646746-08:00","updated_at":"2025-12-20T21:59:25.771325-08:00","closed_at":"2025-12-20T21:59:25.771325-08:00"} {"id":"bd-zgb9","title":"gt polecat done should auto-stop running session","description":"Currently 'gt polecat done' fails if session is running, requiring a separate 'gt session stop' first. This is unnecessary friction - done should just stop the session automatically since that's always what you want.","status":"closed","priority":3,"issue_type":"task","created_at":"2025-12-23T04:11:23.899653-08:00","updated_at":"2025-12-23T04:12:13.029479-08:00","closed_at":"2025-12-23T04:12:13.029479-08:00"} -{"id":"bd-zh83v","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:54:11.925087-08:00","created_by":"beads/refinery","updated_at":"2026-01-10T15:54:11.959293-08:00","closed_at":"2026-01-10T15:54:11.959293-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-zheqz","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:53:20.620943-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-09T13:53:20.657121-08:00","closed_at":"2026-01-09T13:53:20.657121-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-zhs3b","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T21:11:39.539597-08:00","created_by":"beads/crew/giles","updated_at":"2026-01-08T21:11:39.578548-08:00","closed_at":"2026-01-08T21:11:39.578548-08:00","close_reason":"auto-closed session event"} +{"id":"bd-zh83v","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-10T15:54:11.925087-08:00","updated_at":"2026-01-10T15:54:11.959293-08:00","closed_at":"2026-01-10T15:54:11.959293-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-zheqz","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T13:53:20.620943-08:00","updated_at":"2026-01-09T13:53:20.657121-08:00","closed_at":"2026-01-09T13:53:20.657121-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} +{"id":"bd-zhs3b","title":"Session ended: gt-beads-crew-giles","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-08T21:11:39.539597-08:00","updated_at":"2026-01-08T21:11:39.578548-08:00","closed_at":"2026-01-08T21:11:39.578548-08:00","close_reason":"auto-closed session event","created_by":"beads/crew/giles"} {"id":"bd-zi1v","title":"Test Agent Mail server failure scenarios","description":"Verify graceful degradation across various failure modes.\n\nTest Cases:\n- Server never started\n- Server crashes during operation\n- Network partition (timeout)\n- Server returns 500 error\n- Invalid bearer token\n- SQLite corruption\n\nAcceptance Criteria:\n- Agents continue working in all scenarios\n- Clear log messages about degradation\n- No crashes or data loss\n- Beads JSONL remains consistent\n\nFile: tests/integration/test_mail_failures.py","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-07T22:43:21.41983-08:00","updated_at":"2025-11-08T01:49:13.742653-08:00","closed_at":"2025-11-08T01:49:13.742653-08:00","dependencies":[{"issue_id":"bd-zi1v","depends_on_id":"bd-fzbg","type":"blocks","created_at":"2025-11-07T22:43:21.420725-08:00","created_by":"daemon"}]} {"id":"bd-ziy5","title":"GH#409: bd init uses issues.jsonl but docs say beads.jsonl","description":"bd init creates config referencing issues.jsonl but README/docs reference beads.jsonl as canonical. Standardize naming. See GitHub issue #409.","status":"tombstone","priority":2,"issue_type":"bug","created_at":"2025-12-16T01:03:58.109954-08:00","updated_at":"2025-12-17T16:11:17.070763-08:00","deleted_at":"2025-12-17T16:11:17.070763-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"bug"} {"id":"bd-zj8e","title":"Performance Testing Documentation","description":"Create docs/performance-testing.md documenting the performance testing framework.\n\nSections:\n1. Overview - What the framework does, goals\n2. Running Benchmarks\n - make bench command\n - Running specific benchmarks\n - Interpreting output (ns/op, allocs/op)\n3. Profiling and Analysis\n - Viewing CPU profiles with pprof\n - Reading flamegraphs\n - Memory profiling\n - Finding hotspots\n4. User Diagnostics\n - bd doctor --perf usage\n - Sharing profiles with bug reports\n - Understanding the report output\n5. Comparing Performance\n - Using benchstat for before/after comparisons\n - Detecting regressions\n6. Tips for Optimization\n - Common patterns\n - When to profile vs benchmark\n\nStyle:\n- Concise, practical examples\n- Screenshots/examples of pprof output\n- Clear command-line examples\n- Focus on workflow, not theory","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-13T22:23:38.99897-08:00","updated_at":"2025-12-09T18:38:37.709875872-05:00","closed_at":"2025-11-28T23:37:52.227831-08:00"} {"id":"bd-zkl","title":"Add tests for daemon vs non-daemon parity in list filters","description":"After bd-o43 RPC integration, we need tests to verify daemon mode behaves identically to direct mode for all new filter flags.\n\nTest coverage needed:\n- Pattern matching: --title-contains, --desc-contains, --notes-contains\n- Date ranges: all 6 date filter flags (created/updated/closed after/before)\n- Empty/null checks: --empty-description, --no-assignee, --no-labels\n- Priority ranges: --priority-min, --priority-max\n- Status normalization: --status all vs no status flag\n- Date parsing: YYYY-MM-DD, RFC3339, and error cases\n- Backward compat: deprecated --label flag still works\n\nOracle review findings (bd-o43):\n- Date parsing should support multiple formats\n- Status 'all' should be treated as unset\n- NoLabels field was missing from RPC protocol\n- Error messages should be clear and actionable\n\nTest approach:\n- Create RPC integration tests in internal/rpc/server_issues_epics_test.go\n- Compare daemon client.List() vs direct store.SearchIssues() for same filters\n- Verify error messages match between modes\n- Test with real daemon instance, not just unit tests","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-05T00:43:53.369457-08:00","updated_at":"2025-11-05T00:55:31.318526-08:00","closed_at":"2025-11-05T00:55:31.318526-08:00","dependencies":[{"issue_id":"bd-zkl","depends_on_id":"bd-o43","type":"discovered-from","created_at":"2025-11-05T00:43:53.371274-08:00","created_by":"daemon"}]} {"id":"bd-zl8zr","title":"Digest: mol-refinery-patrol","description":"Patrol: MQ empty, synced main to a731f5a4 (5 commits), no merges","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T22:54:02.689607-08:00","updated_at":"2026-01-10T22:54:02.689607-08:00","closed_at":"2026-01-10T22:54:02.689567-08:00","close_reason":"Squashed from 11 wisps"} -{"id":"bd-zlef","title":"bd repair command: fix orphaned foreign key refs","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-12-29T12:31:11.881702-08:00","created_by":"stevey","updated_at":"2025-12-29T12:33:47.159658-08:00","closed_at":"2025-12-29T12:33:47.159658-08:00"} -{"id":"bd-zmmy","title":"bd ready resolves external dependencies","description":"Extend bd ready to check external blocked_by references:\n\n1. Parse external:\u003cproject\u003e:\u003ccapability\u003e from blocked_by\n2. Look up project path from external_projects config\n3. Check if target project has provides:\u003ccapability\u003e label on a closed issue\n4. If not satisfied, issue is blocked\n\nExample output:\n```bash\nbd ready\n# gt-xyz: blocked by external:beads:mol-run-assignee (not provided)\n# gt-abc: ready\n```\n\nDepends on: bd-om4a (external: prefix), bd-66w1 (config)\n\nPart of cross-project dependency system.\nSee: gastown/docs/cross-project-deps.md","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-21T22:37:50.03794-08:00","updated_at":"2025-12-21T23:42:25.042402-08:00","closed_at":"2025-12-21T23:42:25.042402-08:00","dependencies":[{"issue_id":"bd-zmmy","depends_on_id":"bd-om4a","type":"blocks","created_at":"2025-12-21T22:38:38.106657-08:00","created_by":"daemon"},{"issue_id":"bd-zmmy","depends_on_id":"bd-66w1","type":"blocks","created_at":"2025-12-21T22:38:38.175633-08:00","created_by":"daemon"}]} +{"id":"bd-zlef","title":"bd repair command: fix orphaned foreign key refs","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-12-29T12:31:11.881702-08:00","updated_at":"2025-12-29T12:33:47.159658-08:00","closed_at":"2025-12-29T12:33:47.159658-08:00","created_by":"stevey"} +{"id":"bd-zmmy","title":"bd ready resolves external dependencies","description":"Extend bd ready to check external blocked_by references:\n\n1. Parse external:\u003cproject\u003e:\u003ccapability\u003e from blocked_by\n2. Look up project path from external_projects config\n3. Check if target project has provides:\u003ccapability\u003e label on a closed issue\n4. If not satisfied, issue is blocked\n\nExample output:\n```bash\nbd ready\n# gt-xyz: blocked by external:beads:mol-run-assignee (not provided)\n# gt-abc: ready\n```\n\nDepends on: bd-om4a (external: prefix), bd-66w1 (config)\n\nPart of cross-project dependency system.\nSee: gastown/docs/cross-project-deps.md","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-21T22:37:50.03794-08:00","updated_at":"2025-12-21T23:42:25.042402-08:00","closed_at":"2025-12-21T23:42:25.042402-08:00","dependencies":[{"issue_id":"bd-zmmy","depends_on_id":"bd-66w1","type":"blocks","created_at":"2025-12-21T22:38:38.175633-08:00","created_by":"daemon"},{"issue_id":"bd-zmmy","depends_on_id":"bd-om4a","type":"blocks","created_at":"2025-12-21T22:38:38.106657-08:00","created_by":"daemon"}]} {"id":"bd-znyw","title":"Change default JSONL filename from beads.jsonl back to issues.jsonl throughout codebase","status":"closed","priority":1,"issue_type":"task","created_at":"2025-11-21T23:27:07.137649-08:00","updated_at":"2025-11-21T23:34:05.029974-08:00","closed_at":"2025-11-21T23:34:05.029974-08:00"} {"id":"bd-zo7o","title":"Create multi-agent race condition test","description":"Automated test that runs 2+ agents simultaneously to verify collision prevention.\n\nAcceptance Criteria:\n- Script spawns 2 agents in parallel\n- Both try to claim same issue\n- Only one succeeds (via reservation)\n- Other agent skips to different work\n- Verify in JSONL that no duplicate claims\n- Test with Agent Mail enabled/disabled\n\nFile: tests/integration/test_agent_race.py\n\nSuccess Metric: Zero duplicate claims with Agent Mail, collisions without it","status":"closed","priority":0,"issue_type":"task","created_at":"2025-11-07T22:43:21.360663-08:00","updated_at":"2025-11-08T00:34:14.40119-08:00","closed_at":"2025-11-08T00:34:14.40119-08:00","dependencies":[{"issue_id":"bd-zo7o","depends_on_id":"bd-fzbg","type":"blocks","created_at":"2025-11-07T22:43:21.361571-08:00","created_by":"daemon"}]} {"id":"bd-zpnq","title":"Daemons don't exit when parent process dies, causing accumulation and race conditions","description":"Multiple daemon processes accumulate over time because daemons don't automatically stop when their parent process (e.g., coding agent) is killed. This causes:\n\n1. Race conditions: 8+ daemons watching same .beads/beads.db, each with own 30s debounce timer\n2. Git conflicts: Multiple daemons racing to commit/push .beads/issues.jsonl\n3. Resource waste: Orphaned daemons from sessions days/hours old still running\n\nExample: User had 8 daemons from multiple sessions (12:37AM, 7:20PM, 7:22PM, 7:47PM, 9:19PM yesterday + 9:54AM, 10:55AM today).\n\nSolutions to consider:\n1. Track parent PID and exit when parent dies\n2. Use single global daemon instead of per-session\n3. Document manual cleanup: pkill -f \"bd daemon\"\n4. Add daemon lifecycle management (auto-cleanup of stale daemons)","notes":"Implementation complete:\n\n1. Added ParentPID field to DaemonLockInfo struct (stored in daemon.lock JSON)\n2. Daemon now tracks parent PID via os.Getppid() at startup\n3. Both event loops (polling and event-driven) check parent process every 10 seconds\n4. Daemon gracefully exits if parent process dies (detected via isProcessRunning check)\n5. Handles edge cases:\n - ParentPID=0: Older daemons without tracking (ignored)\n - ParentPID=1: Adopted by init means parent died (exits)\n - Otherwise checks if parent process is still running\n\nThe fix prevents daemon accumulation by ensuring orphaned daemons automatically exit within 10 seconds of parent death.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-11-07T18:48:41.65456-08:00","updated_at":"2025-11-07T18:53:26.382573-08:00","closed_at":"2025-11-07T18:53:26.382573-08:00"} @@ -2636,11 +2630,11 @@ {"id":"bd-zsle","title":"GH#516: Automate 'landing the plane' setup in AGENTS.md","description":"bd init or /beads:init should auto-add landing-the-plane instructions to AGENTS.md (and @AGENTS.md for web Claude). Reduces manual setup. See: https://github.com/steveyegge/beads/issues/516","status":"closed","priority":2,"issue_type":"feature","created_at":"2025-12-14T16:31:57.541154-08:00","updated_at":"2025-12-16T01:27:29.0428-08:00","closed_at":"2025-12-16T01:27:29.0428-08:00"} {"id":"bd-zsz","title":"Add --parent flag to bd onboard output","description":"bd onboard didn't document --parent flag for epic subtasks, causing AI agents to guess wrong syntax. Added --parent example and CLI help section pointing to bd \u003ccmd\u003e --help.\n\nFixes: https://github.com/steveyegge/beads/issues/402","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-27T13:01:51.366625-08:00","updated_at":"2025-11-27T13:02:02.018003-08:00","closed_at":"2025-11-27T13:02:02.018003-08:00"} {"id":"bd-zt59","title":"Deferred HOP schema additions (P2/P3)","description":"Deferred from bd-7pwh after review. Add when semantics are clearer and actually needed:\n\n- assignee_ref: Structured EntityRef alongside string assignee\n- work_type: 'mutex' vs 'open_competition' (everything is mutex in v0.1)\n- crystallizes: bool for work that compounds vs evaporates (can derive from issue_type)\n- cross_refs: URIs to beads in other repos (needs federation first)\n- skill_vector: []float32 embeddings placeholder (YAGNI)\n\nThese can be added later without breaking changes (all optional fields).","status":"closed","priority":4,"issue_type":"task","created_at":"2025-12-22T17:54:20.02496-08:00","updated_at":"2026-01-06T19:29:46.239397-08:00","closed_at":"2026-01-06T19:29:46.239397-08:00","close_reason":"Moved to town HQ: hq-my0dy9 (HOP-specific concerns are out of scope for beads tool)"} -{"id":"bd-ztm18","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-13T12:19:49.679397-08:00","created_by":"beads/refinery","updated_at":"2026-01-13T12:19:49.750177-08:00","closed_at":"2026-01-13T12:19:49.750177-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} -{"id":"bd-ztnzl","title":"Fix bd init spins forever creating C:\\.beads outside git (GH#996)","description":"dispatched_by: mayor\n\nbd init on Windows spins forever trying to create C:\\.beads when run outside of .git. See https://github.com/steveyegge/beads/issues/996","status":"closed","priority":2,"issue_type":"task","assignee":"beads/crew/giles","created_at":"2026-01-10T12:18:38.637359-08:00","created_by":"mayor","updated_at":"2026-01-10T12:28:14.994264-08:00","closed_at":"2026-01-10T12:28:14.994264-08:00","close_reason":"Fixed infinite loop in findLocalBeadsDir() and findOriginalBeadsDir() on Windows - same pattern as PR #991 fix for FindBeadsDir(). On Windows, filepath.Dir(\"C:\\\\\") returns \"C:\\\\\" (not \"/\" or \".\"), so the loop condition must check if parent == dir to detect filesystem root.","labels":["bug"]} -{"id":"bd-zw72","title":"Investigate incremental blocked_issues_cache updates at scale","description":"Current blocked_issues_cache strategy does full DELETE + INSERT on every dependency/status change.\n\n**Problem at scale:**\n- 10K issues: ~50ms rebuild (acceptable)\n- 100K issues: ~500ms rebuild (noticeable)\n- 1M issues: multi-second rebuilds (problematic)\n\n**Current implementation (blocked_cache.go:104-154):**\n- DELETE FROM blocked_issues_cache\n- INSERT with recursive CTE\n\n**Potential optimizations:**\n1. **Incremental updates:** Only add/remove affected issue IDs instead of full rebuild\n2. **Dirty tracking:** Skip rebuild if cache is already valid\n3. **Async rebuild:** Rebuild in background, serve stale cache briefly\n4. **Partial invalidation:** Only invalidate affected subtree\n\n**Decision needed:** Is this premature optimization? Current target is \u003c100K issues.\n\n**Benchmark:** Add benchmark for cache rebuild at 100K scale to measure actual impact.","status":"open","priority":3,"issue_type":"task","created_at":"2025-12-22T22:58:55.165718-08:00","updated_at":"2026-01-02T00:17:14.280698-08:00","dependencies":[{"issue_id":"bd-zw72","depends_on_id":"bd-h0we","type":"discovered-from","created_at":"2025-12-22T22:58:55.166427-08:00","created_by":"daemon"}],"comments":[{"id":10,"issue_id":"bd-zw72","author":"beads/crew/wolf","text":"## Benchmark Investigation Results (2026-01-02)\n\n**Cache rebuild timing:**\n- 10K issues: 773ms (Go benchmark), ~270ms (raw SQL)\n- 20K issues: 1,298ms\n- Extrapolated 100K: ~6.5 seconds\n\nOriginal estimates were 15x too optimistic. Go/CGO/WAL adds ~3x overhead.\n\n**Key insight:** Most dependency changes only affect a localized subgraph. Incremental updates could reduce 773ms to \u003c50ms for typical ops.\n\n**Added:** BenchmarkRebuildBlockedCache_Large/XLarge in sqlite_bench_test.go","created_at":"2026-01-03T01:29:51Z"},{"id":11,"issue_id":"bd-zw72","author":"beads/crew/wolf","text":"## Incremental Update Design Sketch\n\n**When to update cache:**\n1. Add blocks dep → add blocked issue + descendants to cache\n2. Remove blocks dep → check if still blocked, remove if not + propagate to descendants \n3. Close issue → check dependents, remove unblocked + descendants\n4. Reopen issue → add dependents + descendants back\n\n**Key insight:** Adding to cache is simple (just insert). Removing is complex (must verify no alternate blocking path).\n\n**Proposed approach:**\n- For additions: \\`INSERT OR IGNORE\\` the affected subgraph (fast, O(affected_nodes))\n- For removals: Rebuild only for the affected subgraph, not entire cache\n- Keep full rebuild as fallback for complex cases (waits-for, conditional-blocks)\n\n**Estimated improvement:**\n- Typical add/remove: O(affected_nodes) vs O(all_issues)\n- 10K DB with 1 affected node: ~5ms vs 773ms (150x faster)\n- Worst case (unblock entire graph): same as now\n\n**Implementation complexity:** Medium - need to handle transitive parent-child correctly","created_at":"2026-01-03T01:30:30Z"}]} -{"id":"bd-zw7pp","title":"Add defensive fix in importer to auto-correct status when deleted_at present","description":"Similar to the existing defensive fix for closed_at (lines 260-267 in multirepo.go), add a fix for the reverse case:\n\nIf an issue has deleted_at set but status != tombstone, auto-correct status to tombstone during import.\n\nThis handles corrupted data gracefully instead of failing import.\n\nExisting pattern in `upsertIssueInTx`:\n```go\n// Defensive fix for deleted_at invariant: tombstones must have deleted_at\nif issue.Status == types.StatusTombstone \u0026\u0026 issue.DeletedAt == nil {\n maxTime := issue.CreatedAt\n if issue.UpdatedAt.After(maxTime) {\n maxTime = issue.UpdatedAt\n }\n deletedAt := maxTime.Add(time.Second)\n issue.DeletedAt = \u0026deletedAt\n}\n```\n\nNeed to add the reverse:\n```go\n// Defensive fix: if deleted_at is set, status must be tombstone\nif issue.Status != types.StatusTombstone \u0026\u0026 issue.DeletedAt != nil {\n issue.Status = types.StatusTombstone\n}\n```","status":"open","priority":2,"issue_type":"task","assignee":"beads/crew/wolf","owner":"steve.yegge@gmail.com","created_at":"2026-01-12T01:26:27.02309-08:00","created_by":"mayor","updated_at":"2026-01-12T01:36:55.587982-08:00"} +{"id":"bd-ztm18","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-13T12:19:49.679397-08:00","updated_at":"2026-01-13T12:19:49.750177-08:00","closed_at":"2026-01-13T12:19:49.750177-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/refinery"} +{"id":"bd-ztnzl","title":"Fix bd init spins forever creating C:\\.beads outside git (GH#996)","description":"dispatched_by: mayor\n\nbd init on Windows spins forever trying to create C:\\.beads when run outside of .git. See https://github.com/steveyegge/beads/issues/996","status":"closed","priority":2,"issue_type":"task","created_at":"2026-01-10T12:18:38.637359-08:00","updated_at":"2026-01-10T12:28:14.994264-08:00","closed_at":"2026-01-10T12:28:14.994264-08:00","close_reason":"Fixed infinite loop in findLocalBeadsDir() and findOriginalBeadsDir() on Windows - same pattern as PR #991 fix for FindBeadsDir(). On Windows, filepath.Dir(\"C:\\\\\") returns \"C:\\\\\" (not \"/\" or \".\"), so the loop condition must check if parent == dir to detect filesystem root.","created_by":"mayor"} +{"id":"bd-zw72","title":"Investigate incremental blocked_issues_cache updates at scale","description":"Current blocked_issues_cache strategy does full DELETE + INSERT on every dependency/status change.\n\n**Problem at scale:**\n- 10K issues: ~50ms rebuild (acceptable)\n- 100K issues: ~500ms rebuild (noticeable)\n- 1M issues: multi-second rebuilds (problematic)\n\n**Current implementation (blocked_cache.go:104-154):**\n- DELETE FROM blocked_issues_cache\n- INSERT with recursive CTE\n\n**Potential optimizations:**\n1. **Incremental updates:** Only add/remove affected issue IDs instead of full rebuild\n2. **Dirty tracking:** Skip rebuild if cache is already valid\n3. **Async rebuild:** Rebuild in background, serve stale cache briefly\n4. **Partial invalidation:** Only invalidate affected subtree\n\n**Decision needed:** Is this premature optimization? Current target is \u003c100K issues.\n\n**Benchmark:** Add benchmark for cache rebuild at 100K scale to measure actual impact.","status":"open","priority":3,"issue_type":"task","created_at":"2025-12-22T22:58:55.165718-08:00","updated_at":"2026-01-02T00:17:14.280698-08:00","dependencies":[{"issue_id":"bd-zw72","depends_on_id":"bd-h0we","type":"discovered-from","created_at":"2025-12-22T22:58:55.166427-08:00","created_by":"daemon"}]} +{"id":"bd-zw7pp","title":"Add defensive fix in importer to auto-correct status when deleted_at present","description":"Similar to the existing defensive fix for closed_at (lines 260-267 in multirepo.go), add a fix for the reverse case:\n\nIf an issue has deleted_at set but status != tombstone, auto-correct status to tombstone during import.\n\nThis handles corrupted data gracefully instead of failing import.\n\nExisting pattern in `upsertIssueInTx`:\n```go\n// Defensive fix for deleted_at invariant: tombstones must have deleted_at\nif issue.Status == types.StatusTombstone \u0026\u0026 issue.DeletedAt == nil {\n maxTime := issue.CreatedAt\n if issue.UpdatedAt.After(maxTime) {\n maxTime = issue.UpdatedAt\n }\n deletedAt := maxTime.Add(time.Second)\n issue.DeletedAt = \u0026deletedAt\n}\n```\n\nNeed to add the reverse:\n```go\n// Defensive fix: if deleted_at is set, status must be tombstone\nif issue.Status != types.StatusTombstone \u0026\u0026 issue.DeletedAt != nil {\n issue.Status = types.StatusTombstone\n}\n```","status":"open","priority":2,"issue_type":"task","created_at":"2026-01-12T01:26:27.02309-08:00","updated_at":"2026-01-12T01:36:55.587982-08:00","created_by":"mayor"} {"id":"bd-zwpw","title":"Test dependency child","status":"closed","priority":2,"issue_type":"task","created_at":"2025-11-05T11:23:05.998311-08:00","updated_at":"2025-11-05T11:23:30.389454-08:00","closed_at":"2025-11-05T11:23:30.389454-08:00","dependencies":[{"issue_id":"bd-zwpw","depends_on_id":"bd-k0j9","type":"blocks","created_at":"2025-11-05T11:23:05.998981-08:00","created_by":"daemon"}]} {"id":"bd-zwtq","title":"Run bd doctor at end of bd init to verify setup","description":"Run bd doctor diagnostics at end of bd init (after line 398 in init.go). If issues found, warn user immediately: '⚠ Setup incomplete. Run bd doctor --fix to complete setup.' Catches configuration problems before user encounters them in normal workflow.","status":"closed","priority":1,"issue_type":"feature","created_at":"2025-11-21T23:16:09.596778-08:00","updated_at":"2025-12-23T04:20:51.887338-08:00","closed_at":"2025-12-23T04:20:51.887338-08:00","dependencies":[{"issue_id":"bd-zwtq","depends_on_id":"bd-tbz3","type":"parent-child","created_at":"2025-11-21T23:16:09.597617-08:00","created_by":"daemon"}]} {"id":"bd-zy3z","title":"Support wisps in nodb mode for lightweight Gas Town rigs","description":"Enable proper wisp support in --no-db mode to allow lightweight Gas Town rigs (including HQ/Mayor) to run without SQLite overhead.\n\n## Motivation\nGas Town HQ and simple rigs could benefit from nodb mode's simplicity. Currently wisps don't work properly in nodb mode.\n\n## Proposed Design\n\n### Phase 1: Session-scoped wisps\n- Memory storage already has Wisp field on Issue\n- Wisps exist only for the session lifetime\n- Acceptable for patrol cycles that complete within a session\n- Depends on: bd-9avq (fix the leak)\n\n### Phase 2: Optional wisp persistence\n- Add `.beads/wisps.jsonl` for wisp storage (gitignored)\n- Load wisps from this file on nodb startup\n- Save wisps to this file on nodb exit\n- Wisps persist across restarts but don't sync via git\n\n### Phase 3: Verify mol commands\n- Test mol squash, burn, bond work with memory storage\n- These currently check for SQLite storage type\n- May need interface-based approach instead of type assertions\n\n## Files affected\n- cmd/bd/nodb.go - wisp filtering and optional persistence\n- internal/storage/memory/ - verify wisp field handling\n- cmd/bd/mol_*.go - verify memory storage compatibility\n- .beads/.gitignore - add wisps.jsonl","status":"closed","priority":3,"issue_type":"feature","created_at":"2025-12-24T21:15:59.658799-08:00","updated_at":"2025-12-24T21:17:11.570958-08:00","closed_at":"2025-12-24T21:17:11.570958-08:00","dependencies":[{"issue_id":"bd-zy3z","depends_on_id":"bd-9avq","type":"blocks","created_at":"2025-12-24T21:16:04.649866-08:00","created_by":"daemon"}]} -{"id":"bd-zykm0","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:37:54.930136-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-09T18:37:54.968386-08:00","closed_at":"2026-01-09T18:37:54.968386-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true} +{"id":"bd-zykm0","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:37:54.930136-08:00","updated_at":"2026-01-09T18:37:54.968386-08:00","closed_at":"2026-01-09T18:37:54.968386-08:00","close_reason":"auto-closed session cost wisp","created_by":"beads/crew/fang"} diff --git a/cmd/bd/doctor.go b/cmd/bd/doctor.go index 14e48be5..936f265e 100644 --- a/cmd/bd/doctor.go +++ b/cmd/bd/doctor.go @@ -465,7 +465,12 @@ func runDiagnostics(path string) doctorResult { result.Checks = append(result.Checks, vestigialWorktreesCheck) // Don't fail overall check for vestigial worktrees, just warn - // Check 14f: last-touched file tracking (runtime state shouldn't be committed) + // Check 14f: redirect + sync-branch conflict (bd-wayc3) + redirectSyncBranchCheck := convertDoctorCheck(doctor.CheckRedirectSyncBranchConflict(path)) + result.Checks = append(result.Checks, redirectSyncBranchCheck) + // Don't fail overall check for redirect+sync-branch conflict, just warn + + // Check 14g: last-touched file tracking (runtime state shouldn't be committed) lastTouchedTrackingCheck := convertWithCategory(doctor.CheckLastTouchedNotTracked(), doctor.CategoryGit) result.Checks = append(result.Checks, lastTouchedTrackingCheck) // Don't fail overall check for last-touched tracking, just warn @@ -577,10 +582,9 @@ func runDiagnostics(path string) doctorResult { result.Checks = append(result.Checks, staleMQFilesCheck) // Don't fail overall check for legacy MQ files, just warn - // Check 26d: Misclassified wisps (wisp-patterned IDs without ephemeral flag) - misclassifiedWispsCheck := convertDoctorCheck(doctor.CheckMisclassifiedWisps(path)) - result.Checks = append(result.Checks, misclassifiedWispsCheck) - // Don't fail overall check for misclassified wisps, just warn + // Note: Check 26d (misclassified wisps) was referenced but never implemented. + // The commit f703237c added importer-based auto-detection instead. + // Removing the undefined reference to fix build. // Check 27: Expired tombstones (maintenance) tombstonesExpiredCheck := convertDoctorCheck(doctor.CheckExpiredTombstones(path)) diff --git a/cmd/bd/doctor/validation.go b/cmd/bd/doctor/validation.go index 0806d9a4..91d47d3f 100644 --- a/cmd/bd/doctor/validation.go +++ b/cmd/bd/doctor/validation.go @@ -391,6 +391,79 @@ func CheckChildParentDependencies(path string) DoctorCheck { } } +// CheckRedirectSyncBranchConflict detects when both redirect and sync-branch are configured. +// This is a configuration error: redirect means "my database is elsewhere (I'm a client)", +// while sync-branch means "I own my database and sync it myself". These are mutually exclusive. +// bd-wayc3: Added to detect incompatible configuration before sync fails. +func CheckRedirectSyncBranchConflict(path string) DoctorCheck { + beadsDir := filepath.Join(path, ".beads") + + // Check if redirect file exists + redirectFile := filepath.Join(beadsDir, beads.RedirectFileName) + if _, err := os.Stat(redirectFile); os.IsNotExist(err) { + return DoctorCheck{ + Name: "Redirect + Sync-Branch", + Status: StatusOK, + Message: "No redirect configured", + Category: CategoryData, + } + } + + // Redirect exists - check if sync-branch is also configured + // Read config.yaml directly since we need to check the local config, not the resolved one + configPath := filepath.Join(beadsDir, "config.yaml") + data, err := os.ReadFile(configPath) // #nosec G304 - path constructed safely + if err != nil { + // No config file - no conflict possible + return DoctorCheck{ + Name: "Redirect + Sync-Branch", + Status: StatusOK, + Message: "Redirect active (no local config)", + Category: CategoryData, + } + } + + // Parse sync-branch from config.yaml (simple line-based parsing) + // Handles: sync-branch: value, sync-branch: "value", sync-branch: 'value' + // Also handles trailing comments: sync-branch: value # comment + configStr := string(data) + for _, line := range strings.Split(configStr, "\n") { + line = strings.TrimSpace(line) + // Skip comments + if strings.HasPrefix(line, "#") { + continue + } + if strings.HasPrefix(line, "sync-branch:") { + value := strings.TrimPrefix(line, "sync-branch:") + // Remove trailing comment if present + if idx := strings.Index(value, "#"); idx != -1 { + value = value[:idx] + } + value = strings.TrimSpace(value) + // Remove quotes if present + value = strings.Trim(value, `"'`) + if value != "" { + // Found both redirect and sync-branch - conflict! + return DoctorCheck{ + Name: "Redirect + Sync-Branch", + Status: StatusWarning, + Message: fmt.Sprintf("Redirect active but sync-branch=%q configured", value), + Detail: "Redirect and sync-branch are mutually exclusive. Redirected clones should not have sync-branch.", + Fix: "Remove sync-branch from config.yaml (set to empty string or delete the line)", + Category: CategoryData, + } + } + } + } + + return DoctorCheck{ + Name: "Redirect + Sync-Branch", + Status: StatusOK, + Message: "Redirect active (no sync-branch conflict)", + Category: CategoryData, + } +} + // CheckGitConflicts detects git conflict markers in JSONL file. func CheckGitConflicts(path string) DoctorCheck { // Follow redirect to resolve actual beads directory (bd-tvus fix) diff --git a/cmd/bd/sync.go b/cmd/bd/sync.go index 6cef62bd..dbd32ee4 100644 --- a/cmd/bd/sync.go +++ b/cmd/bd/sync.go @@ -208,6 +208,36 @@ Use --merge to merge the sync branch back to main branch.`, } hasSyncBranchConfig := syncBranchName != "" + // bd-wayc3: Check for redirect + sync-branch incompatibility + // Redirect and sync-branch are mutually exclusive: + // - Redirect says: "My database is in another repo (I am a client)" + // - Sync-branch says: "I own my database and sync it myself via worktree" + // When redirect is active, the sync-branch worktree operations fail because + // the beads files are in a different git repo than the current working directory. + redirectInfo := beads.GetRedirectInfo() + if redirectInfo.IsRedirected { + if hasSyncBranchConfig { + fmt.Printf("⚠️ Redirect active (-> %s), skipping sync-branch operations\n", redirectInfo.TargetDir) + fmt.Println(" Hint: Redirected clones should not have sync-branch configured") + fmt.Println(" The owner of the target .beads directory handles sync-branch") + } else { + fmt.Printf("→ Redirect active (-> %s)\n", redirectInfo.TargetDir) + } + // For redirected clones, just do import/export - skip all git operations + // The target repo's owner (e.g., mayor) handles git commit/push via sync-branch + if dryRun { + fmt.Println("→ [DRY RUN] Would export to JSONL (redirected clone, git operations skipped)") + fmt.Println("✓ Dry run complete (no changes made)") + } else { + fmt.Println("→ Exporting to JSONL (redirected clone, skipping git operations)...") + if err := exportToJSONL(ctx, jsonlPath); err != nil { + FatalError("exporting: %v", err) + } + fmt.Println("✓ Export complete (target repo owner handles git sync)") + } + return + } + // Preflight: check for upstream tracking // If no upstream, automatically switch to --from-main mode (gt-ick9: ephemeral branch support) // GH#638: Skip this fallback if sync.branch is explicitly configured diff --git a/internal/beads/beads.go b/internal/beads/beads.go index 4219aa31..4531e2aa 100644 --- a/internal/beads/beads.go +++ b/internal/beads/beads.go @@ -106,26 +106,42 @@ type RedirectInfo struct { // GetRedirectInfo checks if the current beads directory is redirected. // It searches for the local .beads/ directory and checks if it contains a redirect file. // Returns RedirectInfo with IsRedirected=true if a redirect is active. +// +// bd-wayc3: This function now also checks the git repo's local .beads directory even when +// BEADS_DIR is set. This handles the case where BEADS_DIR is pre-set to the redirect target +// (e.g., by shell environment or tooling), but we still need to detect that a redirect exists. func GetRedirectInfo() RedirectInfo { - info := RedirectInfo{} - - // Find the local .beads directory without following redirects - localBeadsDir := findLocalBeadsDir() - if localBeadsDir == "" { - return info + // First, always check the git repo's local .beads directory for redirects + // This handles the case where BEADS_DIR is pre-set to the redirect target + if localBeadsDir := findLocalBdsDirInRepo(); localBeadsDir != "" { + if info := checkRedirectInDir(localBeadsDir); info.IsRedirected { + return info + } } - info.LocalDir = localBeadsDir + + // Fall back to original logic for non-git-repo cases + if localBeadsDir := findLocalBeadsDir(); localBeadsDir != "" { + return checkRedirectInDir(localBeadsDir) + } + + return RedirectInfo{} +} + +// checkRedirectInDir checks if a beads directory has a redirect file and returns redirect info. +// Returns RedirectInfo with IsRedirected=true if a valid redirect exists. +func checkRedirectInDir(beadsDir string) RedirectInfo { + info := RedirectInfo{LocalDir: beadsDir} // Check if this directory has a redirect file - redirectFile := filepath.Join(localBeadsDir, RedirectFileName) + redirectFile := filepath.Join(beadsDir, RedirectFileName) if _, err := os.Stat(redirectFile); err != nil { // No redirect file return info } // There's a redirect - find the target - targetDir := FollowRedirect(localBeadsDir) - if targetDir == localBeadsDir { + targetDir := FollowRedirect(beadsDir) + if targetDir == beadsDir { // Redirect file exists but failed to resolve (invalid target) return info } @@ -135,6 +151,24 @@ func GetRedirectInfo() RedirectInfo { return info } +// findLocalBdsDirInRepo finds the .beads directory relative to the git repo root. +// This ignores BEADS_DIR to find the "true local" .beads for redirect detection. +// bd-wayc3: Added to detect redirects even when BEADS_DIR is pre-set. +func findLocalBdsDirInRepo() string { + // Get git repo root + repoRoot := git.GetRepoRoot() + if repoRoot == "" { + return "" + } + + beadsDir := filepath.Join(repoRoot, ".beads") + if info, err := os.Stat(beadsDir); err == nil && info.IsDir() { + return beadsDir + } + + return "" +} + // findLocalBeadsDir finds the local .beads directory without following redirects. // This is used to detect if a redirect is configured. func findLocalBeadsDir() string {