agentdb-service.js uses dead pre-extraction relative imports (PR #152 Folge)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 812
- Forks
- 175
- Avg merge
- 2m
- Merged PRs (30d)
- 3
Description
Bug
agentic-flow/dist/services/agentdb-service.js uses relative imports ../../../packages/agentdb/src/index.js (+ RVFOptimizer.js, factory.js, MutationGuard.js) that don't ship in the published npm package (only dist/ ships). After PR #152 extracted packages/agentdb to a dedicated ruvnet/agentdb repo as a git submodule, these paths are dead in npm installs.
Impact
AutopilotLearning.initialize() falls back to in-memory (agentdb-service catches the import failure silently). No published agentdb version (1.6.1 / 2.0 / 3.0-alpha) exports the expected names (AgentDB, RVFOptimizer, createBackend, MutationGuard) — they use a different controller API (createDatabase, ReflexionMemory, SkillLibrary, ReasoningBank).
Fix options
- Ship
packages/agentdb/src/in the npm package, OR - Rewrite the 4 relative imports to use the published
agentdbpackage API.
Context
Discovered while fixing ruflo autopilot learning. Workaround in ruflo: a ruflo-native learning adapter bypasses the broken path.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with agentic-flow/dist/services/agentdb-service.js and inspect its four relative imports into packages/agentdb/src/. Compare the expected exports with the published agentdb APIs, then determine which fix option fits the package layout. Done means AutopilotLearning.initialize() uses the intended AgentDB integration from an npm install instead of silently falling back to in-memory storage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100