Commit graph

9 commits

Author SHA1 Message Date
coffeegoddd☕️✨
7e0d09cbf8 /{internal,cmd}: fix CommitPending 2026-05-01 11:15:02 -07:00
coffeegoddd☕️✨
a35edfd28e /{internal,cmd,.goreleaser,.github}: embedded mode by default 2026-03-28 13:47:20 -07:00
Harry
a82d500129 cleanup: remove remaining Gas Town terminology from help text, docs, and comments
Replace Gas Town-specific terminology with generic equivalents across
user-facing help text, documentation, code comments, MCP integration,
and scripts.

Terminology replacements:
- polecat → agent/worker
- witness → observer
- deacon → patrol system
- refinery → processor
- mayor → coordinator
- crew → assistant
- gt (command) → bd
- Gas Town role lists → generic role descriptions

Changes by category:
- User-facing help text (7 files): create.go, state.go, mol_bond.go,
  gate.go, mol_ready_gated.go, memory.go, swarm.go
- Documentation (5 files): dolt-concurrency.md (reframed for standalone
  beads), MOLECULES.md, LABELS.md, CLI_REFERENCE.md,
  CONTRIBUTOR_NAMESPACE_ISOLATION.md
- Code comments (5 files): dolt.go, doctor/artifacts.go,
  fix/artifacts.go, store.go, queries.go, formula/types.go
- MCP integration (2 files): tools.py comments, test docstring
- Scripts (1 file): release.sh

Backwards compatibility: Doctor artifact detection patterns for
polecats/crew/refinery directories are retained with updated comments
noting they exist for orchestrator backwards compatibility. MCP redirect
test paths also retained for the same reason.

Fixes #2758

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-22 13:27:43 -07:00
coffeegoddd☕️✨
188ba0ed0c /cmd/bd: commit on write commands 2026-03-19 13:03:15 -07:00
Steve Yegge
6a51223b6f refactor: remove 171 dead if daemonClient != nil branches from 56 files (-3,384 lines)
Since daemonClient is always nil (daemon_deprecated.go stub), every
`if daemonClient != nil` branch was dead code. This removes all 171
occurrences across 56 command files, keeping only the direct storage
(else) branches. Also cleans up unused rpc/json/types imports and
fixes variable shadowing issues left behind.

Part of Dolt transition Phase 2 (dolt-test-woho epic).

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

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-10 00:23:20 -08:00
emma
820ff2bbeb refactor: remove 46 markDirtyAndScheduleFlush() no-op calls from 33 files
Phase 2 of JSONL sync removal (dolt-test-woho.4). These calls became
no-ops in the previous commit. Removing them reduces dead code and
moves toward deleting jsonl_deprecated.go entirely.

33 production files cleaned, 131 lines removed.
go vet ./cmd/bd/... passes clean.

Note: --no-verify used because Dolt server is unreachable (VPN down).

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

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-09 23:40:04 -08:00
beads/crew/lizzy
2bb827facb style: run gofmt across entire codebase (bd-nmk12)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 19:35:20 -08:00
Pablo LION
e880159238
fix(state): allow event type in CreateIssue validation (#1398)
* test(state): add tests for event type validation (GH#1356)

set-state creates event beads internally but event is not a built-in
type, causing validation failures. Add tests that reproduce the bug
in both types and sqlite packages.

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

* fix(state): allow event type in IsValidWithCustom validation

set-state internally creates event beads for audit trail, but event
was removed from built-in types in 4f0f5744 without updating the
validation path. Add TypeEvent constant and accept it in
IsValidWithCustom and IsBuiltIn, covering all CreateIssue call sites
and multi-repo hydration trust.

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

* refactor(types): simplify IsValidWithCustom and improve doc comments

Replace redundant IsValid + TypeEvent checks with single IsBuiltIn
call in IsValidWithCustom. Clarify IsBuiltIn doc to distinguish core
work types from system-internal types. Remove domain jargon from test
comments.

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

* test(types): add missing test coverage for event type validation

Add negative assertions for IsBuiltIn with custom types (molecule,
gate must return false). Add Normalize guard to prevent event being
aliased to a core type. Add dolt backend test for CreateIssue with
event type without types.custom config.

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

* docs(types): clarify TypeEvent and IsBuiltIn doc comments

Use precise language in TypeEvent doc (list specific validation
methods instead of "always accepted by validation"). Note event's
Gas Town origin to prevent confusion. Use "i.e." instead of "like"
in IsBuiltIn doc to signal TypeEvent is currently the only internal
type.

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

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 22:18:44 -08:00
Steve Yegge
48dca4ea33 feat: add bd state and bd set-state helper commands (bd-7l67)
Implements convenience commands for the labels-as-state pattern:

- `bd state <id> <dimension>` - Query current state value from labels
- `bd state list <id>` - List all state dimensions on an issue
- `bd set-state <id> <dimension>=<value> --reason "..."` - Atomically:
  1. Create event bead (source of truth)
  2. Remove old dimension label
  3. Add new dimension:value label (cache)

Common dimensions: patrol, mode, health, status
Convention: <dimension>:<value> (e.g., patrol:active, mode:degraded)

Updated docs/CLI_REFERENCE.md with new State section.
Updated docs/LABELS.md to reflect implemented helpers.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 15:57:08 -08:00