diff --git a/.beads/issues.jsonl b/.beads/issues.jsonl index 533cc513..ef0e2683 100644 --- a/.beads/issues.jsonl +++ b/.beads/issues.jsonl @@ -26,12 +26,12 @@ {"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-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":"open","priority":2,"issue_type":"task","created_at":"2025-12-08T06:49:04.449094018-07:00","updated_at":"2025-12-08T06:49:04.449094018-07:00"} {"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","close_reason":"Already implemented - bd status shows summary and activity"} -{"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":"open","priority":2,"issue_type":"epic","created_at":"2025-12-25T13:31:52.287048-08:00","updated_at":"2025-12-25T13:31:52.287048-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","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","close_reason":"All child tasks completed - JSON error output is now consistent across all commands","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","close_reason":"Fixed all error handlers in updateCmd, closeCmd, and editCmd to use FatalErrorRespectJSON","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":"open","priority":2,"issue_type":"task","created_at":"2025-12-25T13:32:07.823549-08:00","updated_at":"2025-12-25T13:32:07.823549-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":"open","priority":2,"issue_type":"task","created_at":"2025-12-25T13:32:08.7273-08:00","updated_at":"2025-12-25T13:32:08.7273-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":"open","priority":3,"issue_type":"task","created_at":"2025-12-25T13:32:09.696723-08:00","updated_at":"2025-12-25T13:32:09.696723-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":"open","priority":3,"issue_type":"task","created_at":"2025-12-25T13:32:11.12219-08:00","updated_at":"2025-12-25T13:32:11.12219-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-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","close_reason":"Fixed all FatalErrorRespectJSON patterns in dep.go","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","close_reason":"Fixed all FatalErrorRespectJSON patterns in label.go","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","close_reason":"Fixed all FatalErrorRespectJSON patterns in comments.go","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","close_reason":"Fixed all FatalErrorRespectJSON patterns in epic.go","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-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","close_reason":"Already implemented: --continue flag auto-advances to next step in molecule, --no-auto prevents auto-claiming"} {"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-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","close_reason":"Moved to gastown: gt-ng6g","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"}]}