bd daemon sync: 2026-01-11 08:02:25

This commit is contained in:
beads/refinery
2026-01-11 08:02:25 -08:00
committed by Steve Yegge
parent 544c6c730a
commit b45c8c6edb

View File

@@ -668,6 +668,7 @@
{"id":"bd-9jbx1","title":"Session ended: gt-beads-crew-fang","status":"closed","priority":2,"issue_type":"event","created_at":"2026-01-09T18:32:46.663257-08:00","created_by":"beads/crew/fang","updated_at":"2026-01-09T18:32:46.699456-08:00","closed_at":"2026-01-09T18:32:46.699456-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true}
{"id":"bd-9ji4z","title":"Trust child repos during multi-repo hydration (replaces PR #971)","description":"## Problem\n\nPR #971 (https://github.com/steveyegge/beads/pull/971) tries to solve a real problem: when hydrating issues from child repos, custom types defined in the child fail validation because the parent doesn't know about them.\n\nExample:\n- Child repo `oss/` has `types.custom = [bd, pm, llm]`\n- Parent hydrates issue `oss-abc` with type `pm`\n- Parent's config doesn't have `pm` → validation fails\n\nPR #971's solution: Add `custom_types` to `repos.additional` config so parent explicitly tracks child types.\n\n## Why PR #971 Is Wrong\n\nIt violates **Discover, Don't Track** (PRIMING.md):\n\n\u003e Don't maintain separate tracking for what's observable. The beads ARE the source of truth.\n\nThe child repo already knows its own types. Duplicating them in parent config is:\n- Redundant state that can drift\n- Manual sync burden when child adds types \n- Anti-pattern in Gas Town's federation model\n\n## The Right Solution: Trust + Discover\n\n### Trust (Primary)\n\nFrom CONTEXT.md federation model: each chain validates its own work. The child repo already validated these issues when they were created. The JSONL is a \"signed export\" from a working Beads database.\n\n**Don't re-validate custom types during import. Trust the source.**\n\n- Built-in types (task, bug, feature, epic, chore): validate normally\n- Custom types: skip validation - child already validated them\n\n### Discover (When Needed)\n\nIf we ever need to know child's types (diagnostics, UI, routing):\n- Read from child's config/DB on demand\n- Never cache in parent config\n- `bd doctor` can discover and report mismatches as warnings\n\n## Implementation\n\n### Phase 1: Trust during import\n\nModify `upsertIssueInTx` in `internal/storage/sqlite/multirepo.go`:\n\n```go\n// Add to types/types.go\nfunc (t IssueType) IsBuiltIn() bool {\n switch t {\n case TypeTask, TypeBug, TypeFeature, TypeEpic, TypeChore:\n return true\n }\n return false\n}\n\n// In ValidateWithCustom or upsertIssueInTx:\n// For multi-repo import, only validate built-in types\n// Custom types are trusted from source repo\n```\n\n### Phase 2: Discovery for diagnostics (optional)\n\nAdd `bd doctor` check that:\n1. Reads each child repo's config/DB\n2. Discovers their custom types\n3. Reports any issues with unknown types as warnings (not errors)\n\n## Benefits\n\n- Simpler than PR #971 (removes 1200 lines of config plumbing)\n- No new config format needed\n- Backwards compatible\n- Aligned with Gas Town federation model\n- Child repos can evolve freely without updating parent\n\n## Test Plan\n\n- [ ] Hydrate child with custom type not in parent → succeeds\n- [ ] Hydrate child with invalid built-in type → fails (still validated)\n- [ ] Existing single-repo validation unchanged\n- [ ] `bd doctor` discovers and reports child types\n\n## References\n\n- PR #971: https://github.com/steveyegge/beads/pull/971\n- PRIMING.md: Discover, Don't Track principle\n- CONTEXT.md: Federation model","status":"closed","priority":1,"issue_type":"epic","created_at":"2026-01-09T14:05:36.130151-08:00","created_by":"beads/crew/emma","updated_at":"2026-01-09T14:26:42.207449-08:00","closed_at":"2026-01-09T14:26:42.207449-08:00","close_reason":"Federation trust model implemented: trust non-built-in types from child repos, discover types via bd doctor"}
{"id":"bd-9jsw","title":"Test event","status":"tombstone","priority":2,"issue_type":"event","created_at":"2025-12-30T16:07:42.213668-08:00","created_by":"beads/polecats/obsidian","updated_at":"2025-12-30T16:08:59.772362-08:00","deleted_at":"2025-12-30T16:08:59.772362-08:00","deleted_by":"batch delete","delete_reason":"batch delete","original_type":"event"}
{"id":"bd-9jye8","title":"Session ended: gt-beads-refinery","status":"closed","priority":2,"issue_type":"event","owner":"steve.yegge@gmail.com","created_at":"2026-01-11T08:02:25.160449-08:00","created_by":"beads/refinery","updated_at":"2026-01-11T08:02:25.230994-08:00","closed_at":"2026-01-11T08:02:25.230994-08:00","close_reason":"auto-closed session cost wisp","ephemeral":true}
{"id":"bd-9l0h","title":"Run tests and linting","description":"go test -short ./... \u0026\u0026 golangci-lint run ./...","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-20T21:53:19.527602-08:00","updated_at":"2025-12-20T21:55:29.660914-08:00","closed_at":"2025-12-20T21:55:29.660914-08:00","dependencies":[{"issue_id":"bd-9l0h","depends_on_id":"bd-an4s","type":"parent-child","created_at":"2025-12-20T21:53:19.529203-08:00","created_by":"daemon"},{"issue_id":"bd-9l0h","depends_on_id":"bd-gocx","type":"blocks","created_at":"2025-12-20T21:53:29.753682-08:00","created_by":"daemon"}]}
{"id":"bd-9li4","title":"Create Docker image for Agent Mail","description":"Containerize Agent Mail server for easy deployment.\n\nAcceptance Criteria:\n- Dockerfile with Python 3.14\n- Health check endpoint\n- Volume mount for storage\n- Environment variable configuration\n- Multi-arch builds (amd64, arm64)\n\nFile: deployment/agent-mail/Dockerfile","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-07T22:43:43.231964-08:00","updated_at":"2025-12-09T18:38:37.682767072-05:00","closed_at":"2025-11-25T17:47:30.777486-08:00"}
{"id":"bd-9msn","title":"Add monitoring and alerting","description":"Observability for production Agent Mail server.\n\nAcceptance Criteria:\n- Health check endpoint (/health)\n- Prometheus metrics export\n- Grafana dashboard\n- Alerts for server downtime\n- Alerts for high error rate\n- Log aggregation config\n\nFile: deployment/agent-mail/monitoring/","status":"closed","priority":3,"issue_type":"task","created_at":"2025-11-07T22:43:43.354117-08:00","updated_at":"2025-12-14T00:32:11.050086-08:00","closed_at":"2025-12-13T23:30:58.72719-08:00","dependencies":[{"issue_id":"bd-9msn","depends_on_id":"bd-z3s3","type":"blocks","created_at":"2025-11-07T23:04:28.050074-08:00","created_by":"daemon"}]}