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>
.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>
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>
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>
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>
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>
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>
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>
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>
* 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>
* 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>
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>
* 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>
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>
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>
- 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>
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>
- 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>
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>
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>
- 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>
* 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>
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>