Commit graph

6 commits

Author SHA1 Message Date
jade
13a83b080c refactor: make BEADS_ACTOR primary env var, BD_ACTOR deprecated fallback (bd-hm9r)
Simplify actor resolution chain to: --actor > BEADS_ACTOR > BD_ACTOR (deprecated) >
git config user.name > $USER > "unknown". BD_ACTOR still works for backwards compat
but BEADS_ACTOR is now the canonical beads-native env var. Updates all code paths,
tests, and documentation.
2026-03-20 18:30:20 -07:00
beads/crew/emma
396c944a5e fix: add shared Dolt server mode for multi-repo/agent setups (GH#2416)
Introduces BEADS_DOLT_SHARED_SERVER mode where multiple beads projects
share a single Dolt server on a fixed port (3308), avoiding per-project
server sprawl. Includes `bd init --shared-server`, `bd dolt shared-*`
commands, doctor checks, and comprehensive tests.

Co-Authored-By: Shybko <shybko@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 17:38:00 -07:00
Pierre-Alexandre Entraygues
cef38b2dd5 docs(otel): remove absent metrics section from data model appendix
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 22:33:59 +01:00
Pierre-Alexandre Entraygues
56a5ae6af2 docs(otel): re-verify data model appendix line numbers against main@371df32b
All line numbers in the Source Reference Audit appendix were stale
(written against the branch commit 986a284c). Re-verified every
reference against main@371df32b:

- retry_count registration: 265 → 302
- lock_wait_ms registration: 269 → 306
- circuit_trips/rejected: remove "on main" qualifier (now the audit ref)
- bd.command span attrs: main.go:266-271 → 262-266
- bd.actor: main.go:478 → 474
- dolt.exec span: 312-318 → 363-368
- dolt.query span: 346-352 → 400-405
- dolt.query_row span: 372-378 → 429-434
- dolt.commit: 913 → 1086
- dolt.push: 1058,1093 → 1231,1266
- dolt.pull: 1122 → 1295
- dolt.merge: 1216 → 1389
- dolt.branch: 1184 → 1357
- dolt.checkout: 1199 → 1372
- hooks_otel.go: 14-25 → 14,20
- haiku.go model/op attrs: 128-131 → 129-130
- haiku.go token attrs: 164-168 → 165-167

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 22:33:59 +01:00
Pierre-Alexandre Entraygues
f41397b605 docs(otel): correct data model doc against source code audit
- Add metric naming convention table (SDK dot-notation → Prometheus underscores)
- Move doltserver.* events to roadmap — zero OTel imports in doltserver package
- Clarify hook.exec as span-only (no metric counters or histograms)
- Flag bd.db.lock_wait_ms as registered but never recorded
- Add circuit breaker metrics (bd.db.circuit_trips/rejected)
- Add source reference appendix: every span, metric, and attribute
  backed by file:line to prevent documentation drift
- Correct Init()/Shutdown() signatures to match actual telemetry.go
- Fix SQL span section to reflect actual dolt.query/exec/query_row spans

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 22:33:58 +01:00
Pierre-Alexandre Entraygues
8c6375ff13 docs(otel): add OTel architecture and data model design docs
- otel-architecture.md: component overview, implementation status,
  roadmap (Tier 1: trackers/git/doltserver, Tier 2: query/validation,
  Tier 3: command spans/test suite)
- otel-data-model.md: complete event schema for all telemetry signals,
  including new §7 for AI events (compact + find_duplicates),
  AI metrics (bd.ai.input_tokens, bd.ai.output_tokens, bd.ai.request.duration)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 22:33:58 +01:00