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
agentdb package API.
Context
Discovered while fixing ruflo autopilot learning. Workaround in ruflo: a ruflo-native learning adapter bypasses the broken path.
Bug
agentic-flow/dist/services/agentdb-service.jsuses relative imports../../../packages/agentdb/src/index.js(+ RVFOptimizer.js, factory.js, MutationGuard.js) that don't ship in the published npm package (onlydist/ships). After PR #152 extractedpackages/agentdbto a dedicatedruvnet/agentdbrepo 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 publishedagentdbversion (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
packages/agentdb/src/in the npm package, ORagentdbpackage API.Context
Discovered while fixing ruflo autopilot learning. Workaround in ruflo: a ruflo-native learning adapter bypasses the broken path.