Commit Graph

5459 Commits

Author SHA1 Message Date
beads/refinery
27197018a2 bd daemon sync: 2026-01-11 07:17:28 2026-01-11 07:17:28 -08:00
beads/refinery
03270b1fdb bd daemon sync: 2026-01-11 07:11:03 2026-01-11 07:11:03 -08:00
beads/refinery
b9e8b897fc bd daemon sync: 2026-01-11 07:04:37 2026-01-11 07:04:37 -08:00
beads/refinery
da958b48bd bd daemon sync: 2026-01-11 06:56:47 2026-01-11 06:56:47 -08:00
beads/refinery
5f379b5b34 bd daemon sync: 2026-01-11 06:51:23 2026-01-11 06:51:23 -08:00
beads/refinery
ed0ab08c84 bd daemon sync: 2026-01-11 06:47:07 2026-01-11 06:47:07 -08:00
beads/refinery
dc3df54037 bd daemon sync: 2026-01-11 06:36:58 2026-01-11 06:36:58 -08:00
beads/refinery
d2264d0455 bd daemon sync: 2026-01-11 06:31:33 2026-01-11 06:31:33 -08:00
beads/refinery
d8ec0180b1 bd daemon sync: 2026-01-11 06:23:43 2026-01-11 06:23:43 -08:00
beads/refinery
a53547d876 bd daemon sync: 2026-01-11 06:17:15 2026-01-11 06:17:15 -08:00
beads/refinery
30c19b8690 bd daemon sync: 2026-01-11 06:10:37 2026-01-11 06:10:37 -08:00
beads/refinery
c0b8d7e122 bd daemon sync: 2026-01-11 06:04:04 2026-01-11 06:04:04 -08:00
beads/refinery
3779b28275 bd daemon sync: 2026-01-11 05:57:24 2026-01-11 05:57:24 -08:00
beads/refinery
adb55d1c80 bd daemon sync: 2026-01-11 05:52:11 2026-01-11 05:52:11 -08:00
beads/refinery
1a76029b36 bd daemon sync: 2026-01-11 05:44:39 2026-01-11 05:44:39 -08:00
beads/refinery
e61391ae3c bd daemon sync: 2026-01-11 05:39:41 2026-01-11 05:39:41 -08:00
beads/refinery
7cfd12db72 bd daemon sync: 2026-01-11 05:31:22 2026-01-11 05:31:22 -08:00
beads/refinery
98753d5edd bd daemon sync: 2026-01-11 05:24:32 2026-01-11 05:24:32 -08:00
beads/refinery
818f397f6e bd daemon sync: 2026-01-11 05:18:00 2026-01-11 05:18:00 -08:00
beads/refinery
ceb369dc96 bd daemon sync: 2026-01-11 05:11:29 2026-01-11 05:11:29 -08:00
beads/refinery
b7c273a296 bd daemon sync: 2026-01-11 05:00:28 2026-01-11 05:00:28 -08:00
beads/refinery
b51d0ddc46 sync: patrol cycle update 2026-01-11 04:27:54 -08:00
beads/refinery
dacec1a934 bd daemon sync: 2026-01-11 00:59:47 2026-01-11 00:59:48 -08:00
beads/refinery
19b1bd2719 sync: patrol digest 2026-01-11 00:33:39 -08:00
beads/refinery
dedb5c57ef bd daemon sync: 2026-01-11 00:31:16 2026-01-11 00:31:16 -08:00
beads/crew/emma
f459ec2913 chore: Bump version to 0.47.0
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 00:25:32 -08:00
Jordan Hubbard
8c04eb7e7f docs(install): mention FreeBSD support (#1010)
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-01-11 00:03:18 -08:00
beads/crew/fang
0de6b10ac0 fix: add missing crystallizes column to SELECT queries and remove duplicate
- Remove duplicate crystallizes column from schema.go
- Add crystallizes to SELECT in transaction.go SearchIssues
- Add crystallizes to SELECT in ready.go GetReadyWork and GetNewlyUnblockedByClose
- Add crystallizes to SELECT in labels.go GetIssuesByLabel
- Add missing placeholder in issues.go INSERT VALUES
- Update migrations_test.go schema to include crystallizes column

Fixes test failures caused by schema/query column count mismatches.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 23:55:16 -08:00
beads/crew/emma
5528315838 Revert "docs: forbid crew workers from creating PRs"
This reverts commit d079af7cf9.
2026-01-10 23:52:43 -08:00
beads/crew/emma
d079af7cf9 docs: forbid crew workers from creating PRs
PRs are for external contributors. Crew workers commit directly to main.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 23:49:10 -08:00
beads/crew/fang
1d42732ad1 fix: add TypeRig constant and IsBuiltIn method (GH#1002)
- Add TypeRig IssueType constant for rig identity beads
- Add TypeRig to IsValid() switch statement
- Add IsBuiltIn() method for multi-repo hydration trust checks
- Add Crystallizes field to Issue struct and ComputeContentHash

Fixes validation rejecting documented issue types like 'rig' and 'agent'.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 23:46:44 -08:00
beads/crew/fang
f5cd36752d feat: add crystallizes column to sqlite storage
Adds crystallizes column for work economics (compounds vs evaporates)
per Decision 006. Includes migration 036 and updates to all INSERT/SELECT
queries in issues.go, queries.go, dependencies.go, and transaction.go.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 23:46:44 -08:00
Steve Yegge
0ed349b3ed fix(linear): use project_id when creating issues via sync --push (GH#973) (#1012)
The linear.project_id config was being read and used for filtering
when pulling issues from Linear, but was not being passed when
creating new issues via --push. Now CreateIssue includes projectId
in the mutation input when configured.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 23:46:00 -08:00
Steve Yegge
10d5f04f59 docs: add Windows Controlled Folder Access troubleshooting (GH#979) (#1011)
Add documentation for when `bd init` hangs on Windows due to Controlled
Folder Access blocking directory creation. Includes diagnosis steps and
solution to whitelist bd.exe.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 23:45:57 -08:00
beads/crew/giles
b420018b97 fix: validate sync.branch in team wizard and migrate commands (GH#923)
Two code paths bypassed syncbranch.ValidateSyncBranchName(), allowing
main/master to be set as sync.branch and causing worktree conflicts.
Now both use syncbranch.Set() for proper validation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 23:42:49 -08:00
beads/crew/dave
fafc256b33 bd sync: 2026-01-10 23:21:33 2026-01-10 23:21:33 -08:00
beads/crew/dave
40ae598751 fix(lint): resolve unparam warnings in doctor and rpc packages
- multirepo.go: discoverChildTypes now returns []string instead of
  ([]string, error) since error was always nil
- socket_path.go: tmpDir changed from function to const since it
  always returned "/tmp" regardless of platform

Fixes CI lint failures caused by unparam linter detecting unused
error returns and constant function results.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Executed-By: beads/crew/dave
Rig: beads
Role: crew
2026-01-10 23:17:37 -08:00
Eugene Sukhodolin
a731f5a48f fix(daemon): complete socket path shortening for long workspace paths (GH#1001) (#1008)
fix(daemon): socket path shortening for long workspace paths

Fixes GH#1001 where long workspace paths (e.g., pytest temp directories) caused
socket path mismatches. The daemon now uses rpc.ShortSocketPath() consistently
with the client.

Changes:
- daemon.go: Use rpc.ShortSocketPath() + EnsureSocketDir() for daemon socket
- daemon_config.go: Update getSocketPathForPID() to use rpc.ShortSocketPath()
- Added tests for long path handling and client-daemon socket path agreement

Co-Authored-By: Eugene Sukhodolin <sukhodolin@users.noreply.github.com>
2026-01-10 22:50:16 -08:00
Jordan Hubbard
89b5f8e203 Update installation instructions for FreeBSD support (#1009)
docs: add FreeBSD to installation instructions

Co-Authored-By: Jordan Hubbard <jordanhubbard@users.noreply.github.com>
2026-01-10 22:49:56 -08:00
Will Ness
cece38af16 docs: update paths for claude-plugin subdirectory structure (GH#985) (#1007)
Update documentation and scripts to reflect the plugin move from
root level to claude-plugin/ subdirectory:

- Fix command links in docs/DAEMON.md, docs/SYNC.md, examples/
- Update plugin.json path references in RELEASING.md, AGENT_INSTRUCTIONS.md
- Update scripts/bump-version.sh and scripts/check-versions.sh
- Update skill documentation paths in claude-plugin/skills/beads/

The marketplace.json correctly stays at .claude-plugin/ (root level)
while plugin.json moved to claude-plugin/.claude-plugin/.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 22:49:29 -08:00
beads/crew/dave
ac24a63187 fix: make tests resilient to project .beads/redirect
Tests were failing because beads.FindDatabasePath() follows the
project's .beads/redirect file, causing tests to find unexpected
databases. Fixed by:

- Setting BEADS_DIR in tests that need isolation from git repo detection
- Clearing BEADS_DIR in TestMain to prevent global contamination
- Updating migration test schema to include owner column

This ensures tests work correctly in crew directories that have
redirect files pointing to shared .beads directories.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Executed-By: beads/crew/dave
Rig: beads
Role: crew
2026-01-10 22:38:04 -08:00
beads/crew/dave
f79e636000 feat: consolidate schema changes from crew directories
Merges schema additions from crew/fang, crew/giles, crew/grip, and crew/wolf:

- crystallizes: bool field for work economics (compounds vs evaporates)
- work_type: WorkType field for assignment model (mutex vs open_competition)
- source_system: string field for federation adapter tracking
- quality_score: *float32 for aggregate quality (0.0-1.0)
- delegated-from: new dependency type for work delegation chains

Migrations properly sequenced as 037-040 (after existing 036 owner_column).

Also fixes test compilation errors for removed TypeRig and IsBuiltIn references.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Executed-By: beads/crew/dave
Rig: beads
Role: crew
2026-01-10 22:38:04 -08:00
Steve Yegge
8942261a12 fix: skip beads restore when directory is redirected (bd-lmqhe)
When a repo has a .beads/redirect file pointing to a shared beads
directory, restoreBeadsDirFromBranch would fail because it runs
git checkout from the local repo but with a path outside that repo.

Skip the restore when the beads directory is redirected since the
beads dir is managed by a different repo anyway.

Fixes: bd-lmqhe

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 22:09:13 -08:00
ruby
5605e590a3 fix(sqlite): prevent FK constraint failure on batch create (GH#956)
Add checkForExistingIDs check to transaction-based batch creation
(sqliteTxStorage.CreateIssues) before calling insertIssues. This
prevents INSERT OR IGNORE from silently skipping duplicate IDs,
which would cause FK constraint failures when recording events
for issues that weren't actually inserted.

Also fixes unrelated test bug: renamed parseCommaSeparated to
parseCommaSeparatedList in validators_test.go.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 22:02:03 -08:00
garnet
1ff8932468 test(rpc): add blocker check tests for close operation (GH#962)
Add two tests to verify that issue blocking/dependencies are enforced
when closing issues via the RPC handler:

- TestHandleClose_BlockerCheck: Verifies closing a blocked issue fails
  when blocker is still open, and --force flag overrides the check
- TestHandleClose_BlockerCheck_ClosedBlocker: Verifies close succeeds
  once the blocking issue is closed

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 22:01:02 -08:00
beads/refinery
50a079d3b7 fix: repair test build failures in types and sqlite packages
- Add TypeRig constant to IssueType enum
- Add IsBuiltIn() method to IssueType for multi-repo hydration trust logic
- Fix parseCommaSeparated -> parseCommaSeparatedList function name in test

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 22:00:32 -08:00
Steve Yegge
28c8ba5d0d bd sync: 2026-01-10 21:31:50 2026-01-10 21:31:50 -08:00
Steve Yegge
d74a14d92a test(sync): add tests for redirect handling in git status checks
Add tests for gitHasBeadsChanges and gitHasUncommittedBeadsChanges
functions when .beads directory is redirected to another repo:

- Test non-redirected case (baseline functionality)
- Test redirected case with no changes (clean target repo)
- Test redirected case with changes (modified file in target)

These tests cover the redirect detection logic added in a61cbde6
that uses `git -C <targetRepoDir>` when beadsDir is redirected.

Closes: bd-hxcf

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 21:31:24 -08:00
Steve Yegge
3a411088ab bd sync: 2026-01-10 21:31:00 2026-01-10 21:31:00 -08:00
Steve Yegge
29b0950ca2 bd sync: 2026-01-10 21:30:12 2026-01-10 21:30:12 -08:00