10099 Commits
Author SHA1 Message Date
rUv bf5d71a185 Merge pull request #4788 from ruvnet/fix/ruvocal-bridge-origin
fix(ruvocal): bridge browser guard + public-only request MCP URLs
v3.71.4
2026-11-04 21:28:06 -06:00
rUv 8b132881ae Merge pull request #4791 from ruvnet/fix/untrusted-project-context
fix(hooks): ignore repo-committed learning data; label surfaced notes as project data
2026-11-04 21:10:17 -06:00
randRuFlo 2c48527f04 test(ruvocal): list urlSafety.spec with its ruvocal siblings in the root CI baseline
The root vitest run cannot transform ruvocal's SvelteKit specs (isURLLocal,
clientPool, mergeServers are listed for the same reason); the spec passes
under ruvocal's own config.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 22:05:58 -05:00
rUv 1c8757edc4 Merge pull request #4784 from ruvnet/fix/xgw-client-ip
fix(x-gateway): key per-IP limits on the trusted forwarding address (gateway 0.9.2)
2026-11-04 20:59:56 -06:00
rUv e5f5d94f55 Merge pull request #4783 from ruvnet/fix/mcp-input-hardening
fix: MCP input hardening (browser, memory paths, record ids, BBS origin); release 3.71.4
2026-11-04 20:58:31 -06:00
randRuFlo f91135144b fix(hooks): ignore repo-committed learning data; label surfaced notes as project data
.claude-flow/data stores committed to a cloned repository are no longer read
as this machine's learned patterns or synced into the user's Claude Code
memory, and are never rewritten. Surfaced entries are flattened to one line
(control, bidi and zero-width characters removed) and the block ends with a
line saying they are project notes, not instructions. Same change in the
generated fallback helper and the ruflo-mods routeContext block (0.16.2).
Helper manifest re-signed.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 21:53:45 -05:00
randRuFlo 98cda1ae84 fix(ruvocal): public-only MCP URLs from requests, pinned at connect time
isValidUrl is now public-HTTPS-only by default (no loopback, Docker-internal,
dotless or private targets, and 10/8 and fc00::/7 are now private). The
local allowances apply only to operator-configured MCP_SERVERS. MCP
transports for any other URL use a fetch whose connections are pinned to
public addresses, shared with fetch-url.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 21:48:22 -05:00
randRuFlo 1ed156ae73 fix(ruvocal): port the #4226 local-only browser guard to the ruvocal bridge
With no MCP_AUTH_TOKEN the ruvocal mcp-bridge now refuses a non-loopback
Host and any foreign Origin, the same guard src/mcp-bridge got in #4226.
The guard test runs against both bridges and is added to the ADR-166 job.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 21:48:22 -05:00
randRuFlo 825ce061d5 fix(x-gateway): key per-IP limits on the trusted forwarding address
Rate limits and the Seraphina/GitHub allowances keyed on the leftmost
X-Forwarded-For entry. They now use the same trusted-chain derivation as
registration (shared client-ip module). Gateway 0.9.2, plugin 0.10.3.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 21:41:09 -05:00
randRuFlo 95328e7762 release: 3.71.4
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 21:38:12 -05:00
randRuFlo b239250d25 fix(federation): bind BBS envelope origin to the signing key
An envelope is accepted only when its origin is the syncing peer or another
pinned peer and it verifies against that origin's pinned key. The sync
cursor advances only past envelopes that verified or were already held.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 21:38:12 -05:00
randRuFlo e4ec6167d7 fix(cli): refuse reserved ids and load record maps without a prototype
Identifiers such as __proto__ and constructor are refused by the CLI's
validateIdentifier, and the agent, task, terminal, swarm and neural record
maps load as null-prototype maps, completing #4671 for the remaining stores.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 21:38:12 -05:00
randRuFlo 146de16425 fix(memory): contain MCP export/import paths to the project
memory_export and memory_import now resolve outputPath/inputPath inside the
project directory (no symlinks, not in .git, no executables, nothing when the
server runs from a home or filesystem root), and import parse errors no
longer quote the file. An explicit dbPath must be a SQLite database file.
The local CLI keeps operator-chosen paths. session_export shares the helper.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 21:38:12 -05:00
randRuFlo 34fff62b79 fix(browser): allowlist launch switches and refuse option-like values
browser_open accepted any Chromium launch arguments, and caller text in
other browser tools could be read as agent-browser options. Launch args are
now a fixed list of plain switches, and execBrowserCommand refuses any value
that would add an option the tool did not emit itself.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 21:38:12 -05:00
rUv 03e381eaa2 Merge pull request #4713 from ruvnet/release/3.71.3
release: 3.71.3 — Claude Code 2.1.318 adoption + sweep fixes; performance 3.0.1, browser 3.0.1
v3.71.3
2026-11-04 18:20:26 -06:00
randRuFlo 9045ab8477 release: 3.71.3 — Claude Code 2.1.318 adoption, narrow band, AutoMemory persistence, daemon stop, sweep fixes; performance 3.0.1, browser 3.0.1
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 18:52:18 -05:00
Michael ValderramaandMichael Valderrama 5c44615e78 fix(cost-tracker): count each Claude Code response once in track and session (#4688)
* fix(cost-tracker): count each Claude Code response once in track and session

Claude Code writes one assistant line per content block and repeats the response's usage on each, so summing lines counts a response once per block. Key responses by message.id + requestId, as _ledger.mjs already does, and price each once.

* chore(cost-tracker): bump to 0.31.1; use a counter in the test fixture

The double-count fix changes shipped scripts, so the plugin version rises for installed copies to pick it up. The fixture's uuid no longer uses Math.random, which CodeQL flagged.

---------

Co-authored-by: Michael Valderrama <17348490+ibucketbranch@users.noreply.github.com>
2026-11-04 17:49:00 -06:00
93d4a8188c chore(deps): bump agent-browser from 0.39.2 to 0.41.0 in /v3/@claude-flow/browser (#4662)
* chore(deps): bump agent-browser in /v3/@claude-flow/browser

Bumps [agent-browser](https://github.com/vercel-labs/agent-browser) from 0.39.2 to 0.41.0.
- [Release notes](https://github.com/vercel-labs/agent-browser/releases)
- [Changelog](https://github.com/vercel-labs/agent-browser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel-labs/agent-browser/compare/v0.39.2...v0.41.0)

---
updated-dependencies:
- dependency-name: agent-browser
  dependency-version: 0.41.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): update v3/pnpm-lock.yaml for agent-browser 0.41.2

Dependabot bumped the browser package's own lockfile but not the v3 pnpm
lock, so frozen-lockfile CI failed. Surgical edit (importer + package entry,
integrity checked against the registry); a full regen would have churned
@opentelemetry/api across every importer.

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: r <r@x>
Co-authored-by: RuFlo <ruv@ruv.net>
2026-11-04 17:48:55 -06:00
Michael ValderramaandMichael Valderrama 1a5ceb62cc feat(hive-mind): add --model to hive-mind spawn --claude (#4672)
Part of #1870. With --claude, -m/--model goes to the Claude Code worker as --model. No flag, no change. Values starting with '-' are refused before anything spawns.

Co-authored-by: Michael Valderrama <17348490+ibucketbranch@users.noreply.github.com>
2026-11-04 17:48:51 -06:00
rUvandr 8d4475d963 fix(auto-memory): JSON store surfaces write/read failures, verifies imports, adds read-only lookup (#4685) (#4708)
* fix(auto-memory): JSON store surfaces write/read failures and verifies imports (#4685)

- JsonFileBackend._persist() no longer swallows errors: a failed write or
  rename rejects store/bulkInsert/bulkDelete/update/shutdown.
- Only ENOENT means "no store". A read failure (e.g. EACCES), invalid JSON,
  a non-array document, or an entry without a unique non-empty string id
  throws a StoreError, and the file is never rewritten, so its bytes stay.
- Every persist reads the file back inside the lock and checks the intended
  entries are present and equal and the deleted ids are gone.
- import reports success only after shutdown plus a fresh readback of every
  entry it wrote; a failed import (including unreadable source files) exits 1.
  Sync failures also exit 1. Exit 2 is never used, since Claude Code treats it
  as "block". A missing @claude-flow/memory still exits 0 with its warning.
- New read-only `read <namespace> <key>` prints
  {schemaVersion, store, storePresent, namespace, key, found, entry}; it never
  loads the memory package, creates directories, takes the lock or calls
  shutdown, and refuses an ambiguous key.
- The repository and packaged helper copies are byte-identical again.

The signed helpers.manifest.json is NOT re-signed here: the
auto-memory-hook.mjs hash in it is now stale, so helper-signing.test.ts and
the helpers-manifest-guard workflow fail until a maintainer runs
`node scripts/sign-helpers.mjs` (docs/helpers-sync.md step 2).

Regression: __tests__/auto-memory-persistence-4685.test.ts (28 of 30 fail on
the previous helper). Reported by @sparkling.

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

* chore(helpers): re-sign helpers.manifest.json for the auto-memory-hook fix (#4685)

Signed with the project key through RUFLO_HELPERS_SIGNING_SECRET (Secret
Manager, ruv-dev); check-helper-sync passes.

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

---------

Co-authored-by: r <r@x>
2026-11-04 17:48:45 -06:00
rUvandr 8a033a4e63 fix(daemon): keep a stopped daemon stopped until an explicit start (#4654) (#4706)
Every ruflo-core plugin hook runs the CLI, and the CLI auto-starts a daemon
whenever none is alive, so a daemon the user stopped came back within minutes.

daemon stop now writes .claude-flow/daemon.stopped (only in a Ruflo project or
an existing .claude-flow/; stop --all marks every stamped workspace).
ensureDaemonRunning declines to spawn while the marker exists. An explicit
daemon start clears it. The start that auto-start spawns carries
RUFLO_DAEMON_AUTOSTARTED=1: it never clears the marker and re-checks it, so a
stop that lands after the hook checked still wins.

Co-authored-by: r <r@x>
2026-11-04 17:48:40 -06:00
rUv d2e33508f4 Merge pull request #4704 from ruvnet/integrate/sweep-2026-11-04b
integrate: 4 contributor fixes + #4693 + #4691 (2026-11-04 sweep)
2026-11-04 17:32:41 -06:00
rUvandr 00432b4eb1 fix(plugins): agentdb_context-synthesize guidance in agentdb, observability and rag-memory (#4691 follow-up) (#4705)
agentdb 0.4.11, observability 0.3.6, rag-memory 0.3.8: the tool summarizes
validated task episodes; ordinary memories and trace spans get no-eligible-
episodes, which the old 'combine memories' guidance made look like missing data.

Co-authored-by: r <r@x>
2026-11-04 17:31:57 -06:00
randRuFlo e95c77d469 fix: refuse a trajectoryIds selection in hooks_intelligence_learn (#4693); route research synthesis away from the episode controller (#4691)
- hooks_intelligence_learn advertised trajectoryIds but never read it, so a
  scoped request ran global learning. The learning path cannot select, so an
  explicit selection is now refused before anything is imported or mutated.
- agentdb_context-synthesize summarizes validated task episodes; its description,
  the research-synthesize skill (ruflo-goals 0.4.6) and the researcher agent
  (ruflo-core 0.2.14) no longer send research documents to it.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 17:46:14 -05:00
r 825f4f8b97 Merge PR #4696 2026-11-04 17:43:47 -05:00
r 062a1988fb Merge PR #4698 2026-11-04 17:43:20 -05:00
r 01673fcbf3 Merge PR #4695 2026-11-04 17:43:20 -05:00
r 4685e6962b Merge PR #4694 2026-11-04 17:43:19 -05:00
rUvandr 27dd1f1ac8 feat(ruflo-mods): agentModels — a model per agent type for spawns that chose none (0.16.1) (#4703)
agent.spawn routing for Claude Code 2.1.300+: 'Explore=haiku,general-purpose=sonnet'
sets the model of a spawn whose call chose none, covering built-in and other
plugins' types (definitions a person cannot edit) and workflow agents. A chosen
model, forks and teammates are kept; malformed pairs are dropped; a failing hook
passes the spawn through. Off by default; /ruflo-mods reports it.

Co-authored-by: r <r@x>
2026-11-04 16:07:51 -06:00
rUvandr 45bf52cd86 feat(mods): adopt Claude Code 2.1.290-2.1.318 mod API changes (mods 0.16.0, console 0.49.11, swarm 0.3.8) (#4702)
- ruflo-mods guard (tool.check): read-only fast path on e.isReadOnly (2.1.304)
  that skips the policy-projection stat while a full check found none in the
  last 2 s (web tools excluded so the research ask still fires); a chain deny
  returns without file reads; decider "person" on every ask ruflo raises;
  agentId names the subagent on ruflo's reason; the chain's ceiling survives a
  tightening; .catch documented for 2.1.301 semantics, still fails closed.
- ruflo-console: console_state and console_run registered with
  isDeferred: false (2.1.293); console_open/console_set stay deferred.
- console + swarm: Text bold -> weight (2.1.299 deprecation), codemodded;
  bold: true -> weight: "semibold" (what the host already maps bold to).
  Engines before 2.1.299 refuse a tree with an unknown Text prop, so the kit
  maps weight back to bold there (text-weight.ts, via $.session.version()).
- tests for 2.1.318's kit: $.tool.call now raises tool.check first
  (guidance test); stub answers are validated (swarm prompt.fill stub);
  stale expectations fixed (probe session.compact, learning-loop handshake).
- console kit tests: timeoutMs 30_000 (the 5 s default timed out 19-58
  end-to-end tests under load, on 2.1.289 and 2.1.318 alike), and the mock
  clock advanced past runner.ts's VERIFY_RETRY_MS in actions/settings tests.

Co-authored-by: r <r@x>
2026-11-04 15:49:08 -06:00
rUvandr 937a9a44c2 fix(ruflo-console): the band fits a narrow pane (0.49.10) (#4701)
Rows are measured in terminal columns (emoji are two), a part that does not
fit is left out whole with a dim +N count instead of being cut mid-word, the
longest parts are shortened first so a wide band keeps the rest in full, and
the open button sizes to its label ('open' below 64 columns; the mark alone
below 40).

Co-authored-by: r <r@x>
2026-11-04 15:15:40 -06:00
rUvandr 1c0d63c79a feat(ruflo-agent): leaf agents skip CLAUDE.md and run at low effort (0.4.2) (#4700)
nested-leaf and nested-queen-leaf get effort: low and omitClaudeMd: true.
Measured on Claude Code 2.1.318 in this repo: ~64k fewer input tokens per
leaf spawn; a one-leaf run cost $0.081 instead of $0.153. README gains the
2.1.292 one-command 'claude plugin install --marketplace' form.

Co-authored-by: r <r@x>
2026-11-04 14:33:12 -06:00
rUvandr bdfbcc11ad feat(cli): adapt headless workers and hooks to Claude Code 2.1.295–2.1.318 (#4699)
- headless claude -p argv gets --permission-mode auto unless the caller set a
  mode or --dangerously-skip-permissions (2.1.302 starts -p in manual mode on
  third-party providers, telemetry off, or fresh installs; workers would stall).
  RUFLO_HEADLESS_PERMISSION_MODE overrides; none passes no flag.
- parse credential_expires_at from the -p JSON result (2.1.318), carry it on
  the execution result and emit 'credential-expiring' within 10 days.
- onFailure: "block" on the pre-bash safety gate in init-generated and repo
  settings (2.1.295): a gate that can't start or times out blocks instead of
  letting the command through. Older Claude Code ignores the key (checked on
  2.1.289).

Co-authored-by: r <r@x>
2026-11-04 14:33:07 -06:00
kevin9327 178fb86095 fix(tasks): mark agents assigned in task_create as busy 2026-11-05 04:42:11 +09:00
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
cmf235 89a9206b81 fix(performance): correct range check and de-bias attention benchmark
- quickValidation(): "Within Range" now requires meetsMinimum && meetsMaximum (previously reported YES for speedups below the 2.49x minimum).
- runComparison(): untimed warm-up plus 5 interleaved trials with alternating order; reports median per-call time; guards 0ms timer reads. Run-to-run speedup spread drops ~38% -> ~22% (256D x 50 keys, 10 runs).

Verified: tsc --noEmit clean; benchmarks.test.ts + attention.test.ts 94/94 pass.
2026-11-04 13:13:20 -05:00
kevin9327 65081ae7eb fix(claims): leave completed claims out of claims_load and claims_rebalance 2026-11-05 02:18:00 +09:00
kevin9327 07d39352f1 fix(claims): take a claim off the stealable list when claims_handoff hands it over 2026-11-05 02:16:18 +09: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