Skip to content

feat: multi-writer text index + agent guardrails — v2.4.3#21

Merged
mbocevski merged 3 commits into
mainfrom
feat/multi-writer-text
May 30, 2026
Merged

feat: multi-writer text index + agent guardrails — v2.4.3#21
mbocevski merged 3 commits into
mainfrom
feat/multi-writer-text

Conversation

@mbocevski

Copy link
Copy Markdown
Contributor

Summary

  • Multi-writer text-index support. Parent Claude Code + every spawned subagent / experimental agent-team member can read + write to the same backlog data directory concurrently. The prior IndexLockedError crash on subagent startup is gone. Legacy single-writer indexes auto-migrate to per-agent layout on first launch — one-time, in place, no manual step.
  • UUID verification guardrails. Every mutation tool description now appends a verify-before-mutate reminder; skills (implement, handoff, refine) reinforce "use UUIDs from the live lookup, not memory."
  • 500-char description guidance. task_add / task_log / task_modify field docstrings, the schema docstring, and the planning skill/agent all explicitly call out the cap and direct longer content to task_doc_write.
  • Bumps @backloghq/agentdb from ^2.2.1 to ^2.3.0 (which pulls in @backloghq/termlog ^0.2.0).

Test plan

  • npm run build — clean
  • npm run lint — clean
  • npm test — 193/193 pass
  • End-to-end validated with 3 concurrent writers (parent + 2 subagents): attribute filters, BM25 search, cross-agent updates and deletes all visible across writers.

Release order

@backloghq/agentdb@2.3.0 must be published to npm before this PR can merge. Once published, refresh the lockfile with npm uninstall @backloghq/agentdb && npm install @backloghq/agentdb@^2.3.0 so it resolves to the registry tarball rather than the local file: link.

mbocevski added 3 commits May 30, 2026 14:38
Bundles three improvements:

1. Multi-writer text-index support (via agentdb 2.3 + termlog 0.2).
   The parent Claude Code process and every spawned subagent /
   experimental agent-team member can now read + write to the same
   backlog data directory concurrently without the IndexLockedError
   crash that took down subagents on prior versions. Validated
   end-to-end with 3 concurrent writers — all see each other's tasks
   via attribute filters and BM25 search. Legacy single-writer text
   indexes auto-migrate to per-agent layout on first launch (one-time,
   in place, no manual step).

2. UUID verification guardrails. Every mutation tool's description
   (task_done, task_delete, task_start, task_stop, task_duplicate,
   task_modify, task_annotate, task_denotate, task_purge,
   task_doc_write, task_doc_delete) now appends a VERIFY_ID_NOTE
   directing the agent to confirm UUIDs against the live store via
   task_list / task_info before mutating. Skills (implement, handoff,
   refine) reinforce 'use UUIDs from the lookup, not memory'.

3. 500-char description guidance. task_add / task_log / task_modify
   field descriptions and the schema docstring explicitly call out
   the cap and direct agents to task_doc_write for longer content.
   skills/plan and agents/task-planner reinforce the one-line
   summary norm.

Bumps @backloghq/agentdb from ^2.2.1 to ^2.3.0. Lockfile points at
the local file: link for now; will resolve to the published 2.3.0
tarball once that's on npm.
- zod 4.3.6 → 4.4.3
- @types/node 25.5.2 → 25.9.1
- @vitest/coverage-v8 4.1.4 → 4.1.7
- eslint 10.2.0 → 10.4.1
- typescript ~6.0.2 → ^6.0.3
- typescript-eslint 8.58.1 → 8.60.0
- vitest 4.1.4 → 4.1.7
- npm audit fix resolves 7 transitive vulns (6 moderate, 1 high)
  across qs, postcss, brace-expansion, hono, fast-uri, etc.

Build + lint + 193 tests all pass unchanged.
@mbocevski mbocevski merged commit b449d9f into main May 30, 2026
2 checks passed
@mbocevski mbocevski deleted the feat/multi-writer-text branch May 30, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant