Remove the entire agent-as-bead subsystem which treated agents as beads
with GT-specific state management. This is pure Gas Town infrastructure
that belongs in GT, not in the beads issue tracker.
Deleted files:
- cmd/bd/agent.go (state, heartbeat, show, backfill-labels commands)
- cmd/bd/slot.go (hook/role slot management)
- cmd/bd/merge_slot.go (merge queue slot primitives)
- All associated test files
Removed from types.Issue:
- AgentState, HookBead, RoleBead, LastActivity, RoleType, Rig, Holder
- AgentState type definition and constants
Removed from storage layer:
- 6 agent columns from DB schema (hook_bead, role_bead, agent_state,
last_activity, role_type, rig)
- Agent field scanning, insertion, and update allowlisting
Cleaned up references in:
- show_format.go (agent identity and slot display sections)
- create.go (--agent-rig flag and agent label auto-add)
- move.go, refile.go (RoleType/Rig field copying)
- doctor/deep.go (agent bead integrity check)
- config.go (agent role configuration functions)
Fix pre-existing test failures from Dolt-Native Pruning phases 1-8.
All internal/* packages and cmd/bd/doctor now pass. Remaining 19
failures in cmd/bd are routing (9), init path checks (7), and tips (3).
Key fixes:
- Remove type assertions on concrete *dolt.DoltStore (not an interface)
- Fix DATETIME timezone bug: normalize timestamps to UTC before storage
- Replace SQLite datetime() syntax with MySQL DATE_SUB() in stale tests
- Remove --backend flag from init test invocations (flag removed)
- Update doctor tests for Dolt-only backend behavior
- Skip/remove tests for removed features (CompactableStorage,
FederatedStorage, ExportToMultiRepo, merge driver, no-db mode)
- Add issue_prefix config in test stores that create issues
- Fix export_hashes → interactions table reference in schema test
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Executed-By: beads/crew/emma
Rig: beads
Role: crew
Delete daemon_compat.go which contained the deprecated --no-daemon flag,
boolToFlag, truncateString, and formatUptime utility functions. Remove
dead isDaemonAutoSyncing code path from prime.go. Clean up --no-daemon
args from hook sync invocations and daemon config references.
Part of dolt-1s40: Dolt-Native Beads v2
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Executed-By: beads/crew/emma
Rig: beads
Role: crew
- Fix unused `force` param in doExportSync (sync.go)
- Fix unused `ctx` param in shouldUseIncrementalExport (sync_export.go)
- Fix Windows build: move dolt.ListMigrations() behind CGO build tag
via listMigrations() bridge in migrate_dolt.go/migrate_dolt_nocgo.go
- Run gofmt on 19 remaining unformatted files across cmd/bd/ and internal/
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Executed-By: beads/crew/emma
Rig: beads
Role: crew
TestFormatUptime expected "45.0 seconds" but simplified formatUptime returns "45s".
TestTruncateString expected ellipsis truncation but simplified truncateString
does plain truncation. Also removed duplicate --no-daemon flag registration
(now in daemon_compat.go).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Delete the JSONL sync layer files (autoflush.go, autoimport.go, export.go,
import.go, jsonl_deprecated.go) and the internal/importer/ package as part
of the Dolt transition Phase 2.
Preserved actively-used functions in new focused files:
- config_local.go: YAML config parsing (isNoDbModeConfigured, etc.)
- jsonl_path.go: JSONL path resolution and utilities
- jsonl_bootstrap.go: Git-based auto-import on empty database
- import_engine.go: Core import engine inlined from internal/importer/
Removed all FlushManager references, markDirtyAndScheduleFlush calls,
autoImportIfNewer calls, and deleted tests for removed functionality.
38 files changed, -9,753 lines.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Added 479 lines of new tests:
- utils_unit_test.go: Tests for utility functions (truncateString,
pluralize, formatTimeAgo, containsLabel, extractIDSuffix, truncate,
truncateDescription, showCleanupDeprecationHint, clearAutoFlushState)
- hooks_test.go: Tests for FormatHookWarnings, isRebaseInProgress,
hasBeadsJSONL
- list_test.go: Tests for formatIssueLong, formatIssueCompact
- version_tracking_test.go: Fixed flaky tests by setting BEADS_DIR
env var to prevent git worktree detection from finding the actual
.beads directory instead of the temp directory
Coverage increased from 21.6% to 22.0%. The remaining 78% of untested
code involves daemon/RPC operations, command handlers requiring
database/daemon setup, and git operations that would require
integration tests with mocked dependencies.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>