10062 Commits
Author SHA1 Message Date
rUv d10b6585f7 Merge pull request #4697 from ruvnet/release/3.71.2
release: 3.71.2 — PR sweep fixes + providers 3.0.1
v3.71.2
2026-11-04 12:54:38 -06:00
randRuFlo af95dd71a0 release: 3.71.2 — PR sweep fixes (embeddings, session, memory paging, claims, terminal, security) + providers 3.0.1
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 13:18:23 -05:00
rUv d4f4327a3c Merge pull request #4692 from ruvnet/integrate/pr-sweep-2026-11-04
Integrate 7 reviewed fixes (2026-11-04 sweep)
2026-11-04 10:42:07 -06:00
r 3abbe45ca0 Merge origin/main into integrate/pr-sweep-2026-11-04 2026-11-04 10:37:23 -05:00
Mario JauvinandRuFlo dbeaa39611 fix(ruflo-console): mission over with cancelled tasks, and no cancelled-mission context in Claude's prompt (0.49.9) (#4689)
* fix(ruflo-console): treat a mission with only done and cancelled tasks as over (0.49.9)

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruflo-console): leave the mission context out of Claude's prompt for a cancelled mission (0.49.9)

The active mission stays active until another is created, so after a cancel every new goal's guidance reached Claude with 'The mission is cancelled. Do not start new work.' before the create step could make the new mission. contextSection already returned null for a finished mission; it now does the same for a cancelled one.

---------

Co-authored-by: RuFlo <ruv@ruv.net>
2026-11-04 09:31:07 -06:00
r 9c1031452d Merge PR #4663: chore(deps): bump agentic-flow from 2.1.4 to 2.1.5 in /v3/@claude-flow/browser 2026-11-04 10:28:56 -05:00
r 5048deda75 Merge PR #4671: fix(security): daily scan 2026-11-03 — 2 fixes 2026-11-04 10:28:55 -05:00
r 2ad1257416 Merge PR #4579: fix(cli): stop installing default skills whose commands v3 does not ship 2026-11-04 10:28:55 -05:00
r e68b7ebe10 Merge PR #4655: fix(claims): take a claim off the stealable list when claims_status updates it 2026-11-04 10:28:54 -05:00
r a2e3a1dc66 Merge PR #4656: fix(claims): keep the claim context in claims_steal when no handoff context was given 2026-11-04 10:28:54 -05:00
r c9816cf623 Merge PR #4658: fix(terminal): report an unknown sessionId in terminal_execute instead of running in a new session 2026-11-04 10:28:54 -05:00
r 36ea7452c3 Merge PR #4675: fix(embeddings): read --db-path, --max-size, --ef-construction and --batch-size 2026-11-04 10:28:53 -05:00
rUvandr a135c978e3 test(neural): warm the JIT before the DT and PPO timing checks (#4690)
The Decision Transformer 'should train under performance target' check
times the very first train() call in a fresh worker. That cold call is
several times slower than steady state (17ms vs 4ms locally), and on a
loaded 2-worker CI runner it alone crossed the 100ms bound: 110-154ms
on #4653, #4655, #4657, #4663 and #4521. Run one train() on a throwaway
instance with the same config first, then time. The PPO update check has
the same shape and gets the same warm-up. Bounds are unchanged.

Co-authored-by: r <r@x>
2026-11-04 09:28:37 -06:00
ordinary being ad7e9e5416 fix(memory): page list row identities before loading payloads (#4687)
bridgeListEntries() and the sql.js listEntries() fallback selected full content and embedding columns before ORDER BY updated_at DESC LIMIT/OFFSET, so metadata-only pages sorted large payloads that were then discarded (#4686).\n\nUse a rowid subquery to order/limit row identities first, then fetch the page's payload columns. The original full-row query remains as a fallback for legacy WITHOUT ROWID tables. Filters (status/TTL/namespace/provenance/tags), total count, embedding cap, page membership, order and returned fields are unchanged.\n\nAdds a sql.js fixture test for descending offset pages, full content, total and limit 0. Existing sql.js list/provenance/tag and ADR-472 embedding tests pass 12/12 locally; tsc reports only the pre-existing missing workspace packages.
2026-11-04 09:05:02 -06:00
ordinary being d45db2597d fix(providers): account for Anthropic prompt-cache tokens (#4673)
* fix(providers): account for Anthropic prompt-cache tokens

Anthropic reports input_tokens separately from cache_creation_input_tokens and cache_read_input_tokens, with cache writes priced at 1.25x and reads at 0.1x base input. The provider ignored both fields: promptTokens undercounted every cache hit/write and promptCost used the full base rate for all input (#4597 performance/security scan).\n\nAdd optional cache fields to LLMResponse.usage, compute total prompt tokens from all three, apply the cache multipliers in cost accounting, and carry the same fields through the streaming done event. Non-cached responses are unchanged.\n\nTwo tests mock the Anthropic REST/SSE responses: a non-streamed response (100 ordinary + 200 write + 800 read -> 1100 prompt tokens, .00129 prompt cost) and a streamed response (60 prompt, 5 output, .000114 prompt). Baseline returns 100/10 prompt tokens and omits the cache fields; candidate passes 2/2. Full provider unit tests pass (the integration suite is skipped locally: missing dotenv); tsc only reports the pre-existing missing @ruvector/ruvllm.

* test(providers): keep non-cached Anthropic usage unchanged

Add a compatibility control proving the new cache accounting leaves a response with no cache tokens byte-identical: 100 prompt, 50 completion, 150 total, \.0003 prompt cost.
2026-11-04 09:04:55 -06:00
nk-batman21 cc665b12f6 fix(session): honor the component flags in session save, restore and export (#4649)
The parser stores --memory-only as flags.memoryOnly and --no-include-memory
(or --include-memory false) as flags.includeMemory = false, but session
save, restore and export read only the kebab-case keys, which are never
set. `session restore <id> --memory-only` overwrote the agent and task
stores, and `session save` / `session export` with --no-include-memory
still wrote the memory entries.

Read the camelCase keys and keep the kebab ones as a fallback, as init and
mods do.
2026-11-04 09:04:51 -06:00
kevin 36d0d79b06 fix(embeddings): honour threshold 0 in embeddings_search (#4611) 2026-11-04 09:04:45 -06:00
rUv 91e383bd5a Merge pull request #4684 from ruvnet/release/3.71.1
release: 3.71.1 — seven issue fixes (wrapper, memory import, dry-run, federation, shared, MCP sessions)
v3.71.1
2026-11-04 03:53:12 -06:00
randRuFlo ef838d2497 chore(release): lock @claude-flow/shared 3.0.7 from the registry
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 03:37:28 -05:00
randRuFlo 2a75e765c3 chore(release): 3.71.1 — shared 3.0.7, mcp 3.1.6, plugin-agent-federation 1.0.5
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 03:30:34 -05:00
r d3c5244eae Merge PR #4682 into release/3.71.1 2026-11-04 03:28:54 -05:00
r b694a8ae01 Merge PR #4647 into release/3.71.1 2026-11-04 03:28:54 -05:00
r 86840b68a6 Merge PR #4646 into release/3.71.1 2026-11-04 03:28:54 -05:00
r 4c22c1b48d Merge PR #4664 into release/3.71.1 2026-11-04 03:28:54 -05:00
r 3c388f18e0 Merge PR #4669 into release/3.71.1 2026-11-04 03:28:54 -05:00
r 2ecc39dbcf Merge PR #4677 into release/3.71.1 2026-11-04 03:28:54 -05:00
r 5c6032de90 Merge PR #4680 into release/3.71.1 2026-11-04 03:28:53 -05:00
rUv bca5d10958 Merge branch 'main' into fix/4674-http-session-retire 2026-11-04 01:58:18 -06:00
rUv 090317b4cc Merge branch 'main' into fix/shared-rate-reset-empty-key 2026-11-04 01:58:15 -06:00
rUv 031a109b6b Merge branch 'main' into fix/resilience-ownership-20261101 2026-11-04 01:58:12 -06:00
rUv 504c2bd080 Merge branch 'main' into fix/federation-handoff-dual-floor 2026-11-04 01:58:09 -06:00
rUv 9973d61028 Merge branch 'main' into fix/dry-run-ruvector-deployment 2026-11-04 01:58:05 -06:00
rUv 32f6f680be Merge branch 'main' into fix/memory-import-claude-slug 2026-11-04 01:58:03 -06:00
rUv 2f7ad9001a Merge branch 'main' into fix/incomplete-wrapper-install 2026-11-04 01:58:00 -06:00
rUvandr bbd057eb17 fix(memory): find stored patterns when agentdb serves mock embeddings (#4643) (#4681)
agentdb_pattern-store writes through ReasoningBank.storePattern(), but when
agentdb's Transformers.js model fails to load (offline, failed sharp install,
or a loaded CI runner) it serves hash-based mock embeddings. A passage and a
query then embed to unrelated vectors, so searchPatterns() returned [] for a
pattern that was just stored. This is the full-suite #2226 failure that has
kept the CI ratchet red since the move to agentdb 3.2.

- bridgeSearchPatterns: when the agentdb vector search returns nothing, scan
  the same reasoning_patterns table for the query text, matching what the
  LocalReasoningBank branch already does over getAll().
- rescueAgentdbEmbedder: agentdb 3.x's ReasoningBank calls embedQuery() /
  embedPassage(), which bypass embed(). Patch the role methods too and clear
  the cached mock vectors, so a host with ONNX actually gets real vectors.
- Regression test forces AGENTDB_DISABLE_TRANSFORMERS=1 and requires the
  round-trip to hit; it fails without the fix.

Co-authored-by: r <r@x>
2026-11-04 01:57:56 -06:00
randRuFlo 536a7315bd fix(mcp): retire superseded sessions instead of refusing at maxSessions (#4674)
Every initialize created a session, but the server answers every client
through one currentSession, so a superseded session is never addressed again.
It still held a slot until the 30-minute expiry, and 100 short-lived SDK
clients (connect, listTools, close) were enough to make the next initialize
fail with "Maximum sessions (100) reached".

SessionManager.reserveCapacity(keepId) closes the least recently active
session other than keepId when the manager is full. The server calls it
before creating a session, keeping the current one. Capacity and expiry are
unchanged, and nothing is closed while there is room.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 02:07:21 -05:00
ordinary being 762fbf74c2 fix(memory): expose AgentDB init failures in health (#4667)
agentdb_health could return available:true with controllers while AgentDB itself had failed to open (for example because the daemon or another MCP server owned the RuVector store). The only trace was the separate isBridgeAvailable() check; the health payload had no init error or lock hint (#4654).\n\nbridgeHealthCheck now reads the registry's getAgentDBInitError(), reports available:false, includes agentdbInitError and the recorded bridgeFailureReason, and adds an actionable hint when the cause is an already-open/locked native store. Older registries without the record are unchanged.\n\nRegression extends the #4622 fake registry with listControllers and covers failed and healthy health payloads. Baseline returns available:true and no error for the failure case; candidate 5/5 with the Windows bridge opt-in, existing 3 tests unchanged.
2026-11-04 01:01:20 -06:00
Aaditya 55260ca55a fix(neural): call the @ruvector/attention API that exists (#4613)
* fix(neural): call the @ruvector/attention API that exists

ruvector-training called methods the binding does not have, in 0.1.31
and in the latest 2.2.2:

- computeContrastiveLoss called InfoNceLoss.compute(anchor, positives[],
  negatives), which throws "Get TypedArray info failed" because the
  binding takes a single positive, and then InfoNceLoss.backward(),
  which does not exist. `neural train`'s contrastive leg (with --backend
  wasm, or auto without the native ruvllm trainer) swallowed the error
  every epoch and reported "LoRA Adaptations 0".
- computeFlashAttention, computeMoEAttention and
  computeHyperbolicAttention called computeRaw(); the classes expose
  compute(query, keys, values).

computeContrastiveLoss now uses computeWithGradients(anchor, positive,
negatives) and averages over the positives, so the list signature keeps
its meaning; it rejects an empty list. The attention helpers call
compute(). With the fix, `neural train --backend wasm --epochs 5` reports
3 LoRA adaptations instead of 0.

Fixes #4610

* test(neural): skip the #4610 cases unless initializeTraining brought the feature up

Resolving @ruvector/attention is not enough. In CI the package resolves
but the binding does not initialize, so the cases failed with "Flash
attention not initialized". The test now runs initializeTraining once
in a child and gates each case on the feature it reports: InfoNCE Loss
for the contrastive case, and FlashAttention, MoE and
HyperbolicAttention for their helpers.

Refs #4610
2026-11-04 01:01:04 -06:00
bitpandaw 126c84b9fc fix(ruflo): fail clearly when the CLI installation is incomplete 2026-11-04 14:29:02 +08:00
Tanishq 093298ef53 fix(memory): match Claude Code's project slug for all non-alphanumerics in memory_import_claude
Claude Code names ~/.claude/projects/<slug> by replacing every character
other than [A-Za-z0-9] with `-`. resolveProjectMemoryDir() only tried
slugs that replace slashes, backslashes, `:` and whitespace, so for a
project path with `_`, `.` or the like (/home/alice/my_app, a Windows
user folder such as john.doe, a WSL /mnt/c/.../my_proj path)
memory_import_claude found nothing and returned "No Claude memory files
found", with or without projectPath.

Also try Claude Code's rule after the existing candidates of each path,
and for a WSL path on its Windows form too. The cost tracker's
_encode-project-path.mjs uses the same rule (#4366).
2026-11-04 01:47:25 +05:30
kevin d1afa3fb0e fix(embeddings): read --db-path, --max-size, --ef-construction and --batch-size
The parser stores every long flag under its camelCase key, but the
embeddings subcommands read ctx.flags['db-path'], ['max-size'],
['ef-construction'] and ['batch-size'], which are never set. The flags
(and the documented `chunk -s 256` short form) were ignored and the
hard-coded defaults used instead. Read the camelCase keys.
2026-11-04 04:16:40 +09:00
ClaudeandRuFlo d369bb73b8 fix(security): path traversal in session_export outputPath
session_export wrote the session JSON to any outputPath given in MCP tool
input, so a caller could create or overwrite files anywhere the MCP server
process could write. The path is now resolved against the project root, its
real parent directory must stay inside the real project root, and an
existing symlink or non-file target is refused. The CLI 'session export'
command writes its own file and is unaffected.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MfPHVKCrsaLkwMr8CpYU7J
2026-11-03 04:48:48 +00:00
ClaudeandRuFlo 4dc2c1d304 fix(security): prototype pollution in DAA, workflow and claims stores
The DAA, workflow and claims stores are plain JSON-parsed objects keyed by
ids from MCP tool input. validateIdentifier accepts names such as
__proto__ and constructor, so daa_workflow_execute, workflow_cancel and
workflow_stop could resolve such an id to Object.prototype and write status
and error fields onto it, and claims_steal treated an inherited built-in as
a stealable marker. The record maps now load as null-prototype maps.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MfPHVKCrsaLkwMr8CpYU7J
2026-11-03 04:47:26 +00:00
Tanishq 82e96a5b3d fix(cli): honor --dry-run in ruvector migrate, ruvector backup restore and deployment deploy
The parser stores `--dry-run` (and `-d` on `deployment deploy`) as
`dryRun`, but these three actions read `flags['dry-run']`, which is
never set, so each of them ran the real operation:

- `ruvector migrate --dry-run` applied every pending migration, and with
  `--down` it ran the rollback SQL (DROP TABLE for 1.2.0 to 1.5.0).
- `ruvector backup restore --clean --dry-run` dropped and recreated the
  schema, then inserted the backup's rows.
- `deployment deploy --dry-run` recorded a deployment and made it the
  active one in .claude-flow/deployments.json.

Read `dryRun`, keeping the kebab key as a fallback, as the top-level
migrate, update, init and mods commands do.
2026-11-03 03:38:58 +05:30
马建彤 7ca274c106 test(federation): cover a spawn floor above the write floor
Exercise the symmetric max(write, spawn) case so agent-handoff cannot regress to spawn-only gating when spawn is the higher floor.
2026-11-02 18:27:25 +08:00
马建彤 a19171eb0e fix(federation): require both handoff trust floors
POLICY_CATEGORY_FOR_MESSAGE_TYPE mapped agent-handoff to the spawn floor only. A handoff also transfers work state, so when an operator sets minTrustLevelForWrite above minTrustLevelForSpawn, a handoff was admitted below the configured write floor (#4650, follow-up from #4580).\n\nAdd a write+spawn category whose threshold is max(minTrustLevelForWrite, minTrustLevelForSpawn), and map agent-handoff to it. Plain agent-spawn remains spawn-only.\n\nRegression uses write=PRIVILEGED, spawn=ATTESTED: handoff at TRUSTED is now refused and only PRIVILEGED is allowed; agent-spawn keeps its existing capability/floor behavior. Baseline fails the handoff case; candidate 2/2. Package suite 620 passed (one pre-existing missing-@noble suite); no tsc errors in the changed source.
2026-11-02 18:06:00 +08:00
dependabot[bot] 2728bfb19a chore(deps): bump agentic-flow in /v3/@claude-flow/browser
Bumps [agentic-flow](https://github.com/ruvnet/agentic-flow) from 2.1.4 to 2.1.5.
- [Release notes](https://github.com/ruvnet/agentic-flow/releases)
- [Changelog](https://github.com/ruvnet/agentic-flow/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/ruvnet/agentic-flow/commits)

---
updated-dependencies:
- dependency-name: agentic-flow
  dependency-version: 2.1.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-02 09:21:08 +00:00
kevin a91fc435d2 fix(terminal): report an unknown sessionId in terminal_execute instead of running in a new session 2026-11-02 14:04:39 +09:00
PerryLink 778aef9d12 fix(cli): move only the command-dependent GitHub skills into the legacy group
Review follow-up: flipping skills.github off also dropped github-code-review and
github-project-management, which only use hooks and work on v3. Only
github-multi-repo, github-release-management and github-workflow-automation
drive verbs v3 does not ship.

Keep those two in the default GitHub group, move the other three into
skills.legacy next to stream-chain and sparc-methodology, and leave the
GitHub group selected in the wizard again.
2026-11-02 12:41:03 +08:00
kevin9327 9744cf4801 fix(claims): keep the claim context in claims_steal when no handoff context was given 2026-11-02 08:08:40 +09:00