Browser MCP: ENOENT fallback to npx, --args passthrough with Linux
sandbox auto-detect, hover @eN ref parity with click/fill.
RaBitQ: buildRabitqIndex now reads through bridge (better-sqlite3)
first so it sees WAL data from memory_store. Fixes vectorCount: 0
after store. embeddings_search defaults to namespace 'all'.
Co-Authored-By: claude-flow <ruv@ruv.net>
- Integrate @ruvector/rabitq-wasm for 32x vector compression and
Hamming-scan pre-filtering in the memory search pipeline
- Add 3 MCP tools: embeddings_rabitq_build, _search, _status
- Fix: bridgeStoreEntry now returns rawEmbedding for HNSW sync
- Fix: storeEntry adds to HNSW index after bridge store succeeds
- Fix: bridgeStorePattern adds to HNSW in bridge-fallback path
- Fix: RRF scoring uses pure BM25 when row has no embedding
(prevents 0.3x crush of keyword scores below threshold)
- Fix: pattern-store recognizes bridge-fallback for hnswIndexed
Closes#1659
Co-Authored-By: claude-flow <ruv@ruv.net>
Plugin entries with undefined tags, keywords, categories, or permissions
arrays caused .some()/.includes()/.filter() to crash with "Cannot read
properties of undefined". Added || [] fallback across all array accesses
in search.ts.
Co-Authored-By: claude-flow <ruv@ruv.net>
The create-plugin skill was instructing agents to generate plugin.json
with skills, commands, and agents arrays — these fields cause
claude plugin validate to fail. Claude Code auto-discovers them.
Co-Authored-By: claude-flow <ruv@ruv.net>
- microlora_adapt: zero-pad input to MICROLORA_WASM_MIN_DIM (768) so
smaller inputDim values work without user intervention
- system_info: search both ../.. and ../../.. for package.json to find
the real version from compiled dist/ paths
Co-Authored-By: claude-flow <ruv@ruv.net>
Tier A (6 bugs):
- #1647: trajectory-start now persists pending record to disk; intelligence_stats wrapped in try/catch
- #1646: guidance capability catalog referenced 'memory_import' instead of 'memory_import_claude'
- #1617: getProjectCwd() rejects CLAUDE_FLOW_CWD when set to $HOME or '/'
- #1619: system_health checks for agentdb.sqlite and store.rvf, not just legacy store.json
- #1614: RvfBackend persistToDisk uses write queue instead of silently dropping concurrent writes
- #1610: ControllerRegistry.initialize() now receives vectorBackend: 'auto' config
Tier B (7 issues):
- #1636: worker-dispatch returns honest 'scheduled' status instead of faking completion via setTimeout
- #1637: daemon-state.json uses atomic write (tmp + rename) to prevent corruption from concurrent writes
- #1620: init 'Next steps' uses brand-aware binary name (ruflo vs claude-flow)
- #1635/#1633: Windows tasklist command improved with /NH flag and 3s timeout
- #1631: neural_train response includes platformNote when ONNX embeddings unavailable
Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
Root cause: ruflo wrapper missing process.exit(0) after cli.run() resolves.
HNSW VectorDb, sql.js WASM, and ONNX worker threads keep the Node event
loop alive after command handlers return. bin/cli.js had the fix since
v3.5.76 but ruflo/bin/ruflo.js only had .catch(), no .then().
Fixes:
- ruflo wrapper: add process.exit(0) in .then() callback (#1641, #1653, #1629)
- session save: TypeError on result.stats.agentCount — MCP returns
stats.agents not stats.agentCount (#1634)
- session list: Invalid Date — MCP returns savedAt not updatedAt;
formatDate now guards empty/invalid input (#1626)
- session current/export: same stats property name mismatch
- memory_search threshold: || → ?? so threshold=0 works (#1628)
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix: resolve Tier A blockers #1596, #1567, #1556#1596 — CLI lazy-command routing:
`ruflo daemon start` was mis-routed to the top-level `start` command
because the parser only registered the 10 core sync commands and its
greedy Pass 1 walk happily matched `start` as the command with `daemon`
left as a positional. Teach the parser about lazy command names via
`registerLazyCommandName()`, stop Pass 1 at the first non-flag
positional, and recognize lazy names in Pass 2 so commandPath becomes
`['daemon', 'start']`. The existing positional-based subcommand
fallback in CLI.run() then dispatches correctly. Affects every
lazy-loaded command (daemon, doctor, embeddings, neural, config,
workflow, hive-mind, ...).
#1567 — agent_spawn Zod field mismatch:
validate-input.ts was passing `{ agentType, name }` to
@claude-flow/security's SpawnAgentSchema, which expects `{ type, id }`,
so every MCP agent_spawn call failed with `type: Required`. Align the
field names. Also swallow `invalid_enum_value` issues because the
schema enumerates only 15 built-in agent types — we support custom
types and the inline identifier validator already gated unsafe input.
#1556 — AutoMemoryBridge destroys hand-curated MEMORY.md:
`curateIndex()` fired on every Stop hook tick and overwrote MEMORY.md
with a single-line title stub whenever none of the files in memoryDir
matched the 7 hardcoded DEFAULT_TOPIC_MAPPING filenames — which is
exactly the situation for any project using Claude Code's native
`<type>_<topic>.md` memory convention. Skip the write entirely when
there are no sections to curate and emit `index:skipped` instead;
`curate` must be non-destructive when there's nothing to curate.
Tests:
- __tests__/parser.test.ts: 4 new cases cover lazy command routing,
bare lazy commands, and global flags before a lazy command.
- __tests__/validate-input-agent-spawn.test.ts: built-in type, custom
type, bad identifier, and no-domain cases.
- src/auto-memory-bridge.test.ts: new #1556 case + updated empty-file
case to assert the new non-destructive semantics.
All 120 CLI + 74 memory tests pass locally.
Co-Authored-By: claude-flow <ruv@ruv.net>
* chore: bump to 3.5.80 / memory 3.0.0-alpha.14 for Tier A fixes
- @claude-flow/cli 3.5.78 → 3.5.80
- @claude-flow/memory 3.0.0-alpha.13 → 3.0.0-alpha.14
- claude-flow umbrella 3.5.78 → 3.5.80
- ruflo umbrella 3.5.78 → 3.5.80
Also fixes memory package's prebuild script to clean
tsconfig.tsbuildinfo so tsc --incremental produces fresh
output after rm -rf dist.
Matches published npm artifacts for issues #1596, #1567, #1556.
Co-Authored-By: claude-flow <ruv@ruv.net>
---------
Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
ruvllm's TrainingPipeline.saveCheckpoint() is a no-op that writes nothing to disk.
Added fs.existsSync check after ruvllm call so the JS JSON fallback activates and
writes real checkpoint data (5811 bytes).
Co-Authored-By: claude-flow <ruv@ruv.net>
- neural.ts: quantize now performs actual Float32→Int8 conversion with
scale/offset params, reports measured file size ratio instead of
hardcoded 3.92x
- security.ts: CVE command honestly reports no database configured
instead of returning fabricated vulnerability data; threat modeling
labeled as STRIDE reference template, not analysis output
- agent-tools.ts: agent_spawn returns status 'registered' with note
that actual execution requires Task tool or claude -p
- agent-tools.ts: validates agentType/agentId/domain via new
validate-input.ts before processing
- memory-tools.ts: rejects path traversal and shell metacharacters
in keys and namespaces
- validate-input.ts: new input validation utility for MCP tools with
optional @claude-flow/security Zod schema integration
- package.json: added @claude-flow/security to optionalDependencies
Published as v3.5.69 across @claude-flow/cli, claude-flow, ruflo.
Co-Authored-By: claude-flow <ruv@ruv.net>
- Contrastive loss (InfoNCE): WORKS — 5.6004 loss on test data
- AdamW optimizer step: WORKS — weights updated correctly
- Gradient computation: WORKS — finite difference, norm=39.94
- Full training pipeline verified end-to-end
- stepInPlace pending platform binary rebuild, step() works as fallback
- CLAUDE.md updated with memory bridge MCP tools and accurate stats
Co-Authored-By: claude-flow <ruv@ruv.net>
SessionStart hook now vectorizes imported memory entries into sql.js
with ONNX 384-dim embeddings. Claude Code's MEMORY.md files become
searchable via semantic vector similarity in AgentDB.
New features:
- import: stores auto-memory entries into AgentDB with embeddings
- import-all: imports ALL Claude memories across ALL projects
(4 files, 5 entries from 3 projects vectorized and verified)
- sync: flushes SONA/ReasoningBank patterns to disk on session end
- status: shows AgentDB, SONA, patterns, trajectories
Verified: "security vulnerability" → security_analysis (0.435),
"npm publish" → publish workflow (0.624), "ruvector" → ruvector (0.678)
Co-Authored-By: claude-flow <ruv@ruv.net>
detectWorkerTriggers() crashed with 'Cannot read properties of
undefined (reading slice)' when called without text. Added null
guard at function entry.
Co-Authored-By: claude-flow <ruv@ruv.net>
CI failed with EUSAGE: lockfile had router@0.1.28 but package.json
wants ^0.1.30. Regenerated with npm install --package-lock-only.
Co-Authored-By: claude-flow <ruv@ruv.net>
- Suppress [AgentDB Patch] console.warn in CLI and MCP entry points
(cosmetic warning from agentic-flow v1.x compat patch, not an error)
- Add export paths: ./dist/*, ./memory, ./intelligence for programmatic
deep imports (fixes ERR_PACKAGE_PATH_NOT_EXPORTED on clean install)
- Fix postinstall to resolve agentdb path correctly for both v2 and v3
- Bump to 3.5.64
Co-Authored-By: claude-flow <ruv@ruv.net>
- session-start hook detects old statusline (Math.floor(sizeKB/2) or
Maturity fallback) and auto-regenerates from current generator
- Statusline header now shows real package version (e.g. "RuFlo v3.5.63")
instead of hardcoded "RuFlo V3" — reads from @claude-flow/cli package.json
- Deployed statusline.cjs updated for this repo
- Older installs auto-fix on next session start via MCP hook
Co-Authored-By: claude-flow <ruv@ruv.net>
Patches the already-generated statusline.cjs so existing users of this
repo get real data immediately without needing to re-run ruflo init:
- patterns: real entry count from stores, not fileSize/2KB
- intelligence: 0% when no real data, not "does src/ exist? +15%"
- DDD domains: requires 100 real patterns per domain
- AgentDB stats: reads from both auto-memory-store and hooks store
New users get this automatically via the updated generator (3.5.61).
Co-Authored-By: claude-flow <ruv@ruv.net>
- session-start hook now writes session entry to auto-memory-store.json
- post-task hook now writes task outcome to auto-memory-store.json
- statusline getAgentDBStats reads from both auto-memory-store.json AND
hooks memory store (.claude-flow/memory/store.json)
- Vectors/Size in statusline will auto-populate as hooks fire
- Removed fake previousSession fallback values (was 3/15 hardcoded)
Co-Authored-By: claude-flow <ruv@ruv.net>