9920 Commits
Author SHA1 Message Date
rUvandr 022535eafc release: 3.63.4 (#4525)
Co-authored-by: r <r@x>
v3.63.4
2026-10-26 15:44:12 -04:00
Dragan Spiridonov 16d9b7fd58 fix(federation): the WebSocket fallback listener defaults to loopback; an empty host counts as unset (#4520)
Follow-up to #4514, which moved the plugin listener to 127.0.0.1:
- WebSocketFallbackTransport.listen() still defaulted to 0.0.0.0 for callers
  that do not pass a host (it is returned by the exported
  loadFederationTransport).
- Both used `??`, so `host: ''` (e.g. from an empty env var) passed through,
  and Node binds every interface for ''.
- README still listed FEDERATION_BIND_HOST's default as 0.0.0.0.
2026-10-26 15:25:50 -04:00
Dragan Spiridonov 4d6fc66b86 fix(mcp): an unset token entry does not crash the WebSocket upgrade (#4522)
Follow-up to #4516. `auth.tokens` built as `[process.env.X]` with X unset put
undefined in the list; upgradeHasValidToken hashed it and threw inside
verifyClient on any upgrade carrying a Bearer value (an uncaught exception a
client without the token could trigger), and with `[TOKEN, undefined]` the
real token could not connect either. Unset and empty entries now match
nothing.
2026-10-26 15:20:30 -04:00
rUvandr d3cd2e2871 fix(shared): MCP transports refuse web pages, rebound hosts and open non-loopback binds (#4517)
* fix(shared): MCP transports refuse web pages, rebound hosts and open non-loopback binds; ws token checked at upgrade

Same guard as @claude-flow/mcp 3.1.3 for the copies in @claude-flow/shared.

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

* chore(shared): 3.0.6

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

* chore: package-lock follows @claude-flow/shared 3.0.6

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

---------

Co-authored-by: r <r@x>
2026-10-26 15:10:20 -04:00
rUvandr 0219fc5d02 fix(daemon): daemon-queue entries no longer count as a manual trigger (#4515)
processDispatchQueue called triggerWorker, which set manualTrigger:true and skipped the
repository-supervisor gate, so a queue file committed in a repo ran headless workers
immediately. Queue runs now pass manualTrigger:false.

Co-authored-by: r <r@x>
2026-10-26 14:43:43 -04:00
rUvandr 3671915b8d fix(agentbbs): a .. in a room label can no longer move the room log outside basePath (#4518)
Co-authored-by: r <r@x>
2026-10-26 14:06:02 -04:00
rUvandr fc323f5108 fix(mcp): network transports start with a per-user token by default; WebSocket tokens work (#4516)
mcp start -t http|websocket with no token now uses ~/.claude-flow/mcp-http-token (0600,
created on first use) unless RUFLO_MCP_ALLOW_UNAUTHENTICATED_HTTP=1. The standalone
WebSocket transport authenticates the upgrade (Authorization: Bearer or ?token=); the
unreachable message-level 'authenticate' gate no longer fails every request, and the CLI
accepts --auth-token with websocket.

Co-authored-by: r <r@x>
2026-10-26 14:05:50 -04:00
rUvandr de8168b952 fix(federation): peer identity comes from operator-pinned keys; loopback listener default (#4514)
* fix(federation): peer identity comes from operator-pinned keys; loopback listener default; random nonces

A manifest and a handshake response both carry the key they are signed with, so they
only prove possession. VERIFIED/ATTESTED now require the key pinned in trustedPeerKeys
(nodeId -> hex public key); a mismatch is refused, an unpinned peer stays UNTRUSTED.
The listener defaults to 127.0.0.1 and handshake nonces use crypto randomness.

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

* fix(federation): a handshake response must come from the node that was challenged

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

---------

Co-authored-by: r <r@x>
2026-10-26 14:05:34 -04:00
rUvandr 29b9894d4e release: 3.63.3 (#4513)
Co-authored-by: r <r@x>
v3.63.3
2026-10-26 12:16:51 -04:00
Agustin Torres 1505a24033 Replace the models api.anthropic.com retired (#4512)
Replaced retired Claude model ids with Anthropic's recommended replacements at the places that send them or set them as defaults: the MCP sampling request, the CLI default provider config, and the provider quick-test requests.

Notice anthropic-retired-models-2026-10 about api.anthropic.com's API describes the change. It was read from a file and is not signed by the provider.
2026-10-26 12:10:53 -04:00
rUvandr cb9d030fc1 fix(federation): a policy denial of a consequential inbound message is final in legacy and observe mode (#4511)
task-assignment, memory-query, context-share, trust-change, topology-change, agent-spawn,
claim-event and agent-handoff are no longer delivered after the policy engine denied them,
and are refused when the evaluator throws.

Co-authored-by: r <r@x>
2026-10-26 11:52:24 -04:00
rUvandr c0f205629b fix(mcp): token-less HTTP/WebSocket transports refuse web pages, rebound hosts and open non-loopback binds (#4510)
Without a token the transports now check Host (loopback bind) and Origin (exact
allow-list, '*' does not count) on requests and WebSocket upgrades, and both refuse
to listen beyond loopback unless allowUnauthenticated is set.

Co-authored-by: r <r@x>
2026-10-26 11:33:00 -04:00
rUvandr 5b3bcc78cd fix(daemon): a cloned project's config can no longer enable AI workers (#4509)
daemon.aiWorkers.enabled is honoured only from the flag, RUFLO_DAEMON_AI_WORKERS=1
or the user-level ~/.claude-flow/config.json; a project file can only say false.
Headless worker context no longer globs **/.env*.

Co-authored-by: r <r@x>
2026-10-26 11:32:57 -04:00
rUvandr a52ae16e42 release: 3.63.2 (#4508)
Co-authored-by: r <r@x>
v3.63.2
2026-10-26 10:14:47 -04:00
rUvandClaude 9d854ddb9c dream(security): #4503 http_fetch SSRF bypass via IPv4-mapped IPv6 literals (evaluated, ACCEPT) (#4504)
* dream(security): http_fetch SSRF bypass via IPv4-mapped IPv6 literals

isPrivateOrLoopback() (the SSRF guard behind the http_fetch MCP tool's
validateUrl()) never stripped the "[...]" brackets Node's URL parser keeps
in `.hostname` for IPv6 literals. Two consequences:

1. The existing fc00::/7 (ULA) and fe80::/10 (link-local) checks
   (`host.startsWith('fc'/'fe80:')`) never matched anything, since `host`
   always started with "[" first.
2. There was no handling at all for IPv4-mapped IPv6 literals
   (`::ffff:a.b.c.d`, normalized by Node to a canonical `::ffff:xxxx:yyyy`
   hex form), so wrapping a loopback/private/link-local/cloud-metadata
   IPv4 address in that form bypassed the guard entirely
   (e.g. http://[::ffff:127.0.0.1]/, http://[::ffff:169.254.169.254]/).

Strips brackets once up front, then decodes IPv4-mapped-IPv6 forms back to
dotted-decimal and recurses into the existing IPv4 rules instead of adding
a parallel copy. 13 new tests (8 discriminating, verified to fail on the
pre-fix source via a stash-isolated run; 5 non-discriminating controls).

Independent adversarial critique: CONFIRMED-WITH-CAVEATS. Two pre-existing,
out-of-scope gaps disclosed in-source (IPv6 "::" unspecified address and
multicast/NAT64 ranges remain unblocked).

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_013bqQefaQjXhYZX2Acr9Jop

* dream(security): add 2026-10-26 research gist

Full SOTA report for tonight's security deep-dive (http_fetch SSRF
bypass via IPv4-mapped IPv6 literals) plus intelligence/swarm scan
findings and competitor comparison. No gist-publishing tool reachable
this session (same disclosed FALLBACK as every night since 2026-09-30)
— committed to this branch instead.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_013bqQefaQjXhYZX2Acr9Jop

* dream(security): update ledger for 2026-10-26

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_013bqQefaQjXhYZX2Acr9Jop

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-26 09:58:56 -04:00
Lenin MookiahandLenin Mookiah 2be0b69d68 fix(ci): gate helper sync on import and manifest checks (#4507)
Co-authored-by: Lenin Mookiah <2639584+leninworld@users.noreply.github.com>
2026-10-26 09:56:35 -04:00
Mario JauvinandClaude Sonnet 5.5 64b4fb9768 fix(ruflo-console): submit the mission plan from a file (Windows "command line is too long") (#4506)
* fix(ruflo-console): submit the mission plan from a file so create works on Windows

mission_plan passed the ~7 KB plan as one `mcp exec -p` argument. With about 750 quotes, Windows argv quoting pushed the line past cmd.exe's 8191 characters: "The command line is too long." The plan is now written to .claude-flow/missions/console-plan-<id>.json and submitted with `ruflo mission plan --plan-file`, on every platform. Bumps to 0.49.4.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(ruflo-console): smoke contract expects 0.49.4

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 09:13:16 -04:00
dependabot[bot] 310d78c32f chore(deps): bump agent-browser in /v3/@claude-flow/browser (#4505)
Bumps [agent-browser](https://github.com/vercel-labs/agent-browser) from 0.39.1 to 0.39.2.
- [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.1...v0.39.2)

---
updated-dependencies:
- dependency-name: agent-browser
  dependency-version: 0.39.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-26 05:39:39 -04:00
rUvandr 631c1557b5 release: 3.63.1 (#4501)
Co-authored-by: r <r@x>
v3.63.1
2026-10-25 23:10:13 -04:00
rUvandr ed2dd638bd fix(ruflo-console): entryFor no longer returns another project's install record (#4496) (#4497)
* fix(ruflo-console): entryFor no longer returns another project's install record (#4496)

No applying record and no user record now yields null; among applying
project/local records the longest projectPath wins.

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

* chore(ruflo-console): bump to 0.49.3 for the entryFor fix (#4496)

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

---------

Co-authored-by: r <r@x>
2026-10-25 22:51:04 -04:00
ordinary being 118d3a0ab4 fix(swarm): release the old domain slot when a retry moves agents (#4499)
handleTaskFail()'s retry branch marked the failed agent idle, then called assignTask() without considering domain ownership. When the retry scored to a different agent, the original AgentPool reservation was never released and a queued domain task behind it stayed queued forever (the generic queue does not drain domain queues).\n\nAwait assignTask()'s result and call releaseDomainAgent() only when the retry landed on another agent (or assignment failed); the same-agent path keeps the reservation because the retried task now owns it. This complements the terminal-failure and heartbeat-recovery release paths.\n\nRegression fills a one-agent domain, queues a second task, adds a higher-scoring generic coder, then fails the first task with retries remaining. Baseline leaves the queued task queued; candidate assigns it to the recovered domain slot. Focused domain tests 13/13, full swarm 360/360, tsc clean.
2026-10-25 22:45:24 -04:00
ordinary being 9250d4e2bf fix(swarm): wait for consensus events instead of polling (#4498)
ByzantineConsensus.awaitConsensus() polled proposals every 10 ms and GossipConsensus.awaitConsensus() every 50 ms with setInterval, even though both already emit consensus.achieved on every accept/reject transition. Each in-flight waiter therefore kept a repeating timer alive and retained its listener, and Gossip re-ran convergence on every tick.\n\nSubscribe to consensus.achieved with one expiry setTimeout, clean up both paths, and preserve the existing timeout semantics (Byzantine expires; Gossip runs convergence once then applies its participation fallback). Unknown proposals now reject immediately like RaftConsensus.\n\nRegression covers event resolution and timeout for both algorithms, spies setInterval to prove no polling timer is created, and checks no consensus.achieved listener is left behind. Baseline fails all four with one setInterval call; candidate passes. Existing consensus suites 89/89, full swarm 359/359, tsc clean.
2026-10-25 22:16:59 -04:00
daak 264b346479 fix(ruflo-console): close Windows autopilot guard gaps and binary-planting paths (#4491) (#4494)
* fix(ruflo-console): close Windows autopilot guard gaps and binary-planting paths (#4491)

- ap-guard: extract Windows paths with spaces in folder names, extended namespaces (\\?\), UNC forward slashes (//srv/share), and capture drive-relative/device paths into relative paths.
- ap-envelope: match envelope-edit deny pattern under both / and \ separators.
- ap-envelope: normalize before root test and reject extended device namespace prefixes (\\?\, \\.\).
- ap-envelope: refuse .bat/.cmd targets in verifyProblem, and strip Windows executable suffixes repeatedly.
- paths: reject NTFS alternate data streams (colon after drive) and segments resolving to parent traversals in hasParentSegment.
- wf-control & wf-convo-live: resolve powershell.exe and where.exe via System32 to prevent local directory binary-planting.
- Add focused regression tests in ap-windows-guard, ap-envelope-windows-paths, wf-control-windows, and wf-convo-finder.

Fixes #4491

* chore(ruflo-console): bump version to 0.49.2 (#4491)
2026-10-25 16:28:32 -04:00
rUvandr 18d2f18a4a fix(flywheel): skip the directory fsync on Windows so flywheel run can commit (#4492) (#4493)
Co-authored-by: r <r@x>
2026-10-25 14:39:07 -04:00
Mario JauvinandRuFlo 3a650ce747 fix(ruflo-console): Windows fixes from running every view on a real Windows machine (console 0.49.1, cost-tracker 0.28.3) (#4490)
* fix(ruflo-console): Plugin Catalog reads a Windows marketplace clone (0.47.1)

Claude Code records the ruflo marketplace clone's installLocation as a drive
path (C:\Users\...\marketplaces\ruflo). readCatalog refused any location not
starting with "/", so the catalog showed "the clone's marketplace.json is not
readable" with the file in place.

- readCatalog uses isAbsolutePath / hasParentSegment from paths.ts.
- The catalog's plugin folders, manifests, skill/agent/command reads and the
  snapshot's marketplace.json read (freshness row) build paths with joinPath
  instead of a hardcoded "/".
- tests/windows-drive-path-sites.spec.ts: a Windows clone lists its plugins,
  reads a skill file, and still refuses a relative or climbing location. The
  new tests fail without the fix.
- Version 0.47.0 -> 0.47.1 in plugin.json, hooks/version.ts, scripts/smoke.sh
  and CHANGELOG.md.

The other ruflo-console specs fail the same 12 tests with and without this
change on this machine (mission-cost, menu-entry, tui-ai-page, write-argv).

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

* fix(ruflo-console): forget-history actions and TUI colour work on Windows

- Events "forget history" and Workflows "forget saved views" ran `rm -f`, which
  Windows does not have (write-flavor.ts: no delete on host-fs). On host-fs they
  now empty the file(s) through the host file API (new emptyFiles in
  write-via.ts; forgetSpec carries a `write` op like event-export does). The
  saved-views file is rewritten as a valid empty document, and the forget is
  verified by what the file holds. Linux/macOS keep the rm argv.
- depthOf returned "none" whenever TERM was unset. Windows Terminal, PowerShell
  and cmd leave TERM unset (COLORTERM=truecolor, OS=Windows_NT), so the
  standalone TUI drew without colour. On Windows only an explicit TERM=dumb or
  NO_COLOR turns colour off.

Tests: both forget actions in host-fs flavor (files emptied, no rm run, refusal
reported, missing file left alone), forgetSpec verification, depthOf on Windows.

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

* fix(ruflo-console): ADR status edits on CRLF records, and codex detection, on Windows

- withStatus / withSupersedes compared whole lines ("---") and checked
  startsWith("---\n"), so a MADR record checked out with CRLF (git autocrlf is on
  by default on Windows) failed with "the front matter is not closed", and other
  formats got mixed line endings. Records with CRLF are now edited as LF text and
  written back with CRLF.
- The Conversation board looked for codex with `which`, which Windows lacks, so
  codex was never offered there. A Windows home (drive path or share) uses
  `where`.

Tests: CRLF records for all three ADR formats (same edit as LF, CRLF kept, MADR
front matter found, supersede link), and the finder per platform. The ADR tests
fail without the fix.

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

* fix(ruflo-console): keep the Windows fixes under the size rule, skip POSIX-only specs on Windows (0.47.2)

- Move the forget-history spec out of events-ui.ts into events-forget.ts: the
  Windows branch had taken events-ui.ts to 521 lines (smoke step 11 caps files at
  500). Move the codex-finder test out of wf-control-views.spec.ts (514 lines)
  into wf-convo-finder.spec.ts.
- wf-replay-views: the Forget button asks one tick later now that it awaits the
  write flavor; the spec waits for it.
- write-argv.spec.ts: the real-disk POSIX script specs check Unix mode bits and
  FIFOs, which NTFS has not; Windows writes through the host file API. Skipped
  there. tui-ai-page.spec.ts: the --plain spec needs a runnable fake codex (a
  shebang script), which Windows cannot run; it asserts the codex line exists.
- Version 0.47.1 -> 0.47.2 in plugin.json, hooks/version.ts, scripts/smoke.sh and
  CHANGELOG.md (the entry lists every Windows fix of this branch).

Verified: the specs of the changed areas pass; the remaining failures in a full
run are menu-entry (a circular import, not Windows-specific, fails on the
baseline), the *.test.ts kit files (need claude-code/testing), and two
timing-sensitive specs that pass alone.

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

* fix(ruflo-cost-tracker): the ledger scripts run on Windows (0.28.3)

ledger.mjs, advise.mjs and local-cost.mjs ran only when
import.meta.url === `file://${process.argv[1]}`. On Windows that is
file:///C:/... against C:\..., never equal, so every call exited 0 with no
output and the plugin's own test-ledger.mjs failed 7 tests. They compare against
pathToFileURL(process.argv[1]).href now.

Two more breaks sat behind it for the ruflo console's mission spend:
- ledger.mjs --project required a leading "/", so a Windows project exited 2.
- inProject matched with "/" and exact case; transcripts record C:\Users\x\proj.
  A drive-lettered path now compares with either separator and any letter case;
  POSIX matching is unchanged (exact, directory boundary).

Tests: test-ledger.mjs gains Windows rows and cases (drive path in both
separator styles and letter cases, relative or climbing drive paths still exit 2,
POSIX rule stays exact). Version 0.28.2 -> 0.28.3 in plugin.json, smoke.sh and
CHANGELOG.md. smoke.sh still fails 5 steps on a Windows Git Bash for a reason
that predates this (it hands /c/... paths to a Windows node), unchanged here.

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

* fix(ruflo-console): the autopilot's text checks know Windows paths, commands and shells

Groundwork for the Windows-aware path checks that ap-windows-gate.spec.ts names as
the follow-up (an autopilot start is still refused on Windows). Each rule only
parks or refuses more; none allows anything that was refused before.

- classifyTask read only POSIX paths from a task's text, so a task naming
  C:\Windows\..., \\srv\share\..., ..\..\x, ~\x, %USERPROFILE%\x or
  $env:USERPROFILE\x was not checked against the envelope folders. It is now.
- delete-outside-worktree knew the POSIX recursive-delete forms but not the
  Windows ones: rmdir /s, del on a drive, the drive-format command,
  Remove-Item -Recurse, or a recursive rm on a drive or a variable.
- verifyProblem took the program name by splitting on "/" only, so
  C:\Windows\System32\cmd.exe, bash.exe or powershell passed the banned-program
  check. It uses either separator, drops .exe/.cmd/.bat/.ps1, and a second set
  bans the Windows shells, script hosts and destructive or system tools.

Tests (ap-windows-guard.spec.ts): path extraction and the envelope check, the deny
forms and ordinary text that must not match, verify programs allowed and refused.
Four of them fail without the change; the POSIX behaviour is asserted unchanged.
CHANGELOG: added to the unreleased 0.47.2 entry.

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

* fix(ruflo-console): the Overview heading shortens a Windows project path

"ruflo state in <last two folders>" split the cwd on "/" only, so a Windows cwd
(C:\Users\x\proj) printed whole. tailOf in paths.ts splits on either separator;
the overview uses it. Test in paths.spec.ts. CHANGELOG: added to the unreleased
0.47.2 entry.

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

* fix(ruflo-console): transcript search, model keys and peer sends on Windows; smoke under Git Bash

The last Windows gaps of the sweep, each tested.

- Stopping or messaging a workflow run reads the run's task id from the session
  transcript; over 2 MB that was `grep -o`, which Windows lacks. Windows now runs
  PowerShell's Select-String (windowsSearchArgv in data/wf-control.ts). The path
  and the pattern ride inside the script as base64, so a path with a space, a
  quote, $, & or ; is only data and the script holds no double quote. Tested
  against a real PowerShell on a 5 MB-class file through such a path.
- taskIdOf returned the FIRST launch when a search printed two launches of one
  run (a resume), because the pattern's `[^}]` ran across both matches (nothing
  prints a closing brace between them). It takes the last task id in the match.
  This also affected `grep -o` on Linux and macOS.
- A model key for an HTTP endpoint was read with `printenv`, which Windows lacks.
  Host gains an optional `env` (register.ts: $.env.get, already used for other
  names) and SendDeps an optional `readEnv`, set only for a Windows home; elsewhere
  `printenv` is unchanged.
- A send to a federation peer runs `bash <helper>`. On a Windows PATH `bash` is
  the WSL launcher (System32\bash.exe), which cannot open a C:\ script path, so
  the send failed obscurely. On a Windows home it now refuses, running nothing,
  and says why.
- ruflo-cost-tracker scripts/smoke.sh builds ROOT with `pwd -W` under Git Bash:
  a Windows node could not open /c/... paths, which failed 5 steps (now 66/0).

Checked and left alone: the npx launcher. The installed Claude Code (a native
binary with the host code inside it) runs $.process.run through a bundled execa
on cross-spawn, which finds `npx` as npx.cmd through PATHEXT and runs it via
cmd.exe /d /s /c with its own argument escaping, so ['npx', ...] works on
Windows. The same lookup is why `bash` there is the first bash.exe on the PATH
(the WSL launcher on this machine), which the peer refusal above relies on.

CHANGELOG: both plugins' unreleased entries (0.47.2, 0.28.3) list these.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01C9t8G7o2vTPAxSFNb8rP4n

* fix(ruflo-console): what running every view on a real Windows machine turned up

The previous commits came from pattern scans. This one comes from running the
console's own readers against a real Windows machine (every view through the
standalone terminal; the plugin catalog, ADR loader and workflow reader called
directly), plus a complete triage of the path-handling patterns in hooks/.

Found by the real run:
- The standalone terminal left state.configDir null when CLAUDE_CONFIG_DIR was
  unset (the usual case), so the installed plugins, the marketplaces and the
  workflow runs were all "unreadable". It now falls back to <home>/.claude, as
  register.ts does in the engine. Not Windows-specific.
- research.ts kept its own POSIX-only safeInstallPath, so ruflo-goals was never
  found on Windows. It uses the Windows-aware one in cost-ledger.ts (same
  character set on POSIX); on this machine goalsOf now answers ready with the
  real C:\ root.

Found by triaging every `split('/')`, `lastIndexOf('/')` and `startsWith('/')`:
- isRunPath, isRunFile and isUnder checked for ".." only between slashes, so a
  segment written with a backslash passed on Windows; a config folder ending in
  a backslash did not match. They use hasParentSegment / trimTrailing, as does
  under().
- The menu and the boot screen named the project by splitting cwd on "/", which
  printed a whole C:\ path. baseOf in paths.ts.

Test-suite and cycle fixes so the smoke's own command passes here:
- views/pane built BODIES = { menu: menuView, ... } at load time, but
  views/menu reaches pane through mission-control > mission-claude > model-tools,
  so loading menu first left menuView undefined under the test runner (native
  ESM hoists the function; the app loads pane first). It is read at call time.
- tui-actions waited a fixed 1.2 s for a 1 s retry plus a redraw, and failed
  under CPU contention in a full run (also on the baseline). It waits for the
  outcome it asserts, up to 10 s.

Verified: the smoke's exact command (every spec, 30 s timeout) is 239 files
passed, 0 failed, 3486 tests; the console smoke is 20 passed, 0 failed; all 34
views render with exit 0 and no stderr; an ADR project with a space in its path
and CRLF records loads and plans a status change keeping its CRLF.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01C9t8G7o2vTPAxSFNb8rP4n

* fix(ruflo-console): the install record of a plugin that applies to this project, compared the Windows way

installed_plugins.json holds one record per install of a plugin, and a project-scope
record names the project it was made for. The snapshot took entries[0], so a plugin
installed for several projects showed another project's version and install folder.
On a real Windows machine ruflo-console@ruflo has five records (four project, one
user) and the first is a different project's 0.44.7; everything derived from it,
the version shown and the installPath used to find a plugin's scripts, could point
at the wrong copy.

- parseInstalled(text, cwd) picks the project or local record whose projectPath is
  the session folder or holds it, else the user record, else the first.
- insideOrSame in paths.ts is that comparison, Windows-aware (case, either
  separator, a folder inside the project); hooks/updates.ts decides which installs
  to update with it too. It compared with === and startsWith(path + "/"), so on
  Windows a session in a subfolder of the project, or with a different drive-letter
  case, did not count the project's own install and left it stale.

tui-actions: "a read runs at once" waited a fixed 500 ms for a stand-in CLI process
to start; it waits for the run it asserts, and its neighbour, which failed only
because that run landed late in the shared log, no longer does.

Tests (windows-path-guards.spec.ts): the record chosen for the project under both
separators, other letter case, a subfolder, a sibling sharing the prefix, no match,
no user record, no cwd; the updater's rule; insideOrSame. Verified: the smoke's
exact command (every spec, 30 s timeout) is 239 files passed, 0 failed, 3491 tests.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01C9t8G7o2vTPAxSFNb8rP4n

* test(ruflo-console): the focus-lost spec waits for the output to go quiet before it asserts silence

"stops drawing while the terminal reports focus lost" marked the output length 60 ms
after the focus-lost report and then expected no growth. A frame already in flight
when focus was lost lands after that mark on a busy machine, which reads as the page
still drawing; the smoke's first vitest pass failed on it and only the retry passed.
It now waits until the output stops changing before it marks, still asserts 500 ms of
silence after that, and waits for the redraw on focus regained instead of a fixed
300 ms. Passes 4 of 4 isolated runs.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01C9t8G7o2vTPAxSFNb8rP4n

* test(ruflo-console): the hostile-regex spec bounds the scan's CPU time, not the wall clock

"a slow pattern over ten thousand 200-character events stops at its budget" asserted
that the scan finished in under 2500 ms of wall-clock time. The scan is CPU-bound, and
the wall clock also counts every other worker of a parallel run, so the spec passed
alone (all 12 specs of the file in 316 ms) and failed in full runs, including both
tries of the smoke's step 14 on the previous HEAD. It now bounds the scan's CPU time
(process.cpuUsage) at the same 2500 ms and keeps a 30 s wall-clock bound as a guard
against a hang. The product code is untouched.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01C9t8G7o2vTPAxSFNb8rP4n

* test(ruflo-console): the host-boundary spec does not scan the mutation specs' temporary files

tui-boundary.spec.ts reads every .ts under hooks/ when it loads. adr-mutation and
mission-advisor-mutation make temporary .mut-N-*.ts copies of hooks modules inside
hooks/ and delete them, in other workers of the same run. Two ways that disturbs this
spec: a copy that is still there is checked as if it were a hooks module (shown with a
throwaway .mut- file that imports a Node module: the spec failed before this change,
passes after), and a copy listed and then deleted can throw at load, which fails the
whole file (the smoke's step 14 showed one such file-level failure that did not repeat;
six runs of the three specs together did not reproduce it, so that part is the likely
cause, not a demonstrated one).

The walk skips .mut- names and tolerates a file that vanishes. A real violation in
hooks/ is still caught (checked with a throwaway file).

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01C9t8G7o2vTPAxSFNb8rP4n

* fix(ruflo-console): the mod loads again: $.env.get takes a literal name

An earlier commit on this branch (f54772424) gave the host an `env` read that was
`async name => $.env.get(name)`. The engine lists the variables a module reads, so
`claude plugin validate` refuses a computed name:

  $.env.get takes a literal name as its first argument ...

and when it refuses register.ts the mod does not load at all: no /ruflo command, no
pane. Vitest never runs the engine's validator, so no test caught it; it showed up
when the branch was installed into a real Claude Code.

- register.ts reads only the one key it can name literally,
  $.env.get('OPENROUTER_API_KEY'); any other name answers undefined.
- wf-send says, for a custom endpoint key on Windows, that it cannot be read here and
  that only $OPENROUTER_API_KEY can, instead of claiming the variable is unset. The
  OpenRouter key keeps the "is not set" wording.
- tui-boundary.spec.ts: no $.env.get/set in hooks/ may take a non-literal name (fails on
  the old line, passes on the fix).
- smoke.sh step 21 runs `claude plugin validate` on the plugin when the CLI is present
  (passes now; reports "Validation failed" against the old line).
- CHANGELOG corrected: it described the broken behaviour.

Verified with the real validator: before, "Found 1 error"; after, "Validation passed",
and the hook list shows command.run{command=ruflo}. The 9 "gating hook without .catch"
notes it prints are identical on upstream/main.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01C9t8G7o2vTPAxSFNb8rP4n

* test(ruflo-console): specs remove their temp folder with a retry, so a still-exiting child does not fail the file on Windows

After the merge, tui-actions.spec.ts was reported as a failed FILE with all 8 of its
tests passing:

  EBUSY: resource busy or locked, rmdir '...\tui-actions-XXXX\project'

On Windows a folder cannot be deleted while a process started in it is still running,
and these specs start the stand-in CLI and terminal sessions with the project folder as
their working directory. force: true does not cover EBUSY, and neither does maxRetries
on rmSync: measured on Node 22 with a child holding the folder for 1.2 s, rmSync fails
in 3 ms with or without maxRetries, while fs.promises.rm with maxRetries (and a manual
loop) removes it after about a second.

- tests/fixtures/rm-tree.ts: removeTree(), the async rm with up to ~5 s of retries.
- The ten specs that start processes or sessions in their temp folder (tui-actions,
  tui-ai-host, tui-ai-page, tui-host, tui-nav, tui-pagebar, tui-parity, tui-pictures,
  tui-session, wf-control-windows) use it in afterAll.
- tests/rm-tree.spec.ts: removes a tree and an already-gone one; on Windows, a real child
  holding the folder makes rmSync fail with EBUSY and removeTree wait it out.

All eleven files pass.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01C9t8G7o2vTPAxSFNb8rP4n

---------

Co-authored-by: RuFlo <ruv@ruv.net>
2026-10-25 13:00:56 -04:00
rUvandr d7fcaf3b25 fix(ruflo-mods): load again: the ruRE offer no longer registers a second bare session.start, tool.call and turn.complete (0.7.1, #4485) (#4487)
Co-authored-by: r <r@x>
2026-10-25 07:52:18 -04:00
Dragan SpiridonovandClaude Opus 5.5 c365d37280 chore(marketplace): pin agentic-qe-fleet to v3.15.13 (#4484)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-25 07:22:05 -04:00
ordinary being 31f554c7b2 fix(swarm): wire downgraded topology leaders only to the leader (#4483)
addNode() resolved the requested role for the node's role field but passed the raw request to calculateInitialConnections(). In hierarchical/centralized topologies, a second node requesting queen/coordinator is downgraded to worker; the raw role still took the leader branch and connected it to every existing node. Connections, adjacency and edges therefore contradicted the stored role (#4481 hive-mind scan).\n\nResolve the role once, before calculating connections, and use it for both. Regression covers centralized and hierarchical topologies: the leader, a normal worker, then a late node requesting the leader role; the late node must be a worker whose only neighbor is the existing leader. Baseline fails with [leader, worker]; candidate passes. Full swarm suite 355/355 and tsc --noEmit clean.
2026-10-25 05:25:51 -04:00
kevin 166aef93c7 fix(agentbbs): page forward from sinceEnvelopeId in federation_bbs_watch (#4480) 2026-10-25 02:39:08 -04:00
rUvandr f02989a78c fix(managed): refuse . and .. resource ids; guard reads common argument wrappers (ruflo-agent 0.4.1) (#4478)
Follow-up to the 3.63.0 security review (low severity #6 and #9); documents #7 and #8 as known limits.

Co-authored-by: r <r@x>
2026-10-24 23:49:51 -04:00
rUvandr e2dae2f701 release: 3.63.0 (#4476)
Co-authored-by: r <r@x>
v3.63.0
2026-10-24 23:04:13 -04:00
rUvandr db141ba70e feat: managed workflows, unified console runs and verified advisory learning (#4471)
* feat(agent): add bounded managed dynamic workflows and verified lifecycle observation

* feat(plugins): integrate managed workflows with mod policy and capability discovery

* feat(managed): unify console runs and verified advisory learning

* fix(managed): hydrate native recall receipts validated on ruOS

* docs(managed): record authenticated console host blocker

* docs(managed): qualify installed console and compatible native host

* feat(managed): integrate verified cycles and isolate native memory

* fix(managed): enforce offline native models and qualify feedback E2E

* fix(managed): independent security and correctness review findings

- gate managed_agent_interrupt through the managed_agent_control policy; terminate obeys the allowlist and deletes only its own environment when RUFLO_MANAGED_CONTROL=1
- track only events from the acknowledged message so a later poll cannot report the previous turn as finished
- require the canonical base64 verifier signature so one receipt cannot fill the ledger
- register RUFLO_MANAGED_AGENTS_BASE_URL as a trust-boundary env var (env-precedence audit) and key the credential scope marker with a per-process HMAC (CodeQL)
- best-effort local snapshot writes; report messageId when a prompt fails after it was sent
- console: rescheduling is running, budget/action-blocked sessions are active, not finished
- document the remaining known limits in ADR 0004

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

* docs: user guide section for managed cloud agents; correct ruflo-agent README counts

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

* fix(managed): scope marker is a generation number, never a hash of the API key (CodeQL)

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

---------

Co-authored-by: r <r@x>
2026-10-24 22:42:09 -04:00
rUvandr 8ec06c0ee8 feat(ai-team): guard team_create/team_update, skill handoffs, ruflo agent linkage, /team-remember and /team-board (0.3.5) (#4475)
The guard already covered task_update results (it screens the whole call), but
team_create/team_update carry shared free text too and were unscreened. Skills now
end with the skill to use next, the three agents say how ruflo agents do the work
the service only records, and two commands cover memory and the board.

Co-authored-by: r <r@x>
2026-10-24 22:35:09 -04:00
kevin 6ed591a45a fix(memory): keep same-key entries from other namespaces in memory_search_unified (#4470)
Signed-off-by: kevin9327 <5299031+kevin9327@users.noreply.github.com>
2026-10-24 20:45:59 -04:00
rUvandr 973d0ab497 release: 3.62.0 (#4469)
Co-authored-by: r <r@x>
v3.62.0
2026-10-24 19:46:31 -04:00
rUvandr 979cce0ab5 fix(x-gateway): argument-less tools/call, bare-host POST, reject diagnostics (0.9.1) (#4468)
* fix(x-gateway): argument-less tools/call, bare-host POST, and reject diagnostics (0.9.1)

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

* ci: baseline the x-gateway registration-compat spec with its node:test siblings

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

---------

Co-authored-by: r <r@x>
2026-10-24 18:28:39 -04:00
rUvandr d3948da2d5 fix(ai-team): newest-first lists, complete evidence audit, honest version (0.3.4) (#4467)
Firestore reads without orderBy return document-id order, so capped reads kept an
arbitrary slice: the board showed an arbitrary 100 runs once a tenant had more, and
evidence exports read the first 1000 audit records then filtered, dropping a run's
events on busy tenants. Lists now order newest first; evidence queries audit by
target (30-value in-chunks). package.json still said 0.1.6 so /health could not
identify a deployment. Adds Firestore store tests with a limit-after-order double.

Co-authored-by: r <r@x>
2026-10-24 18:17:26 -04:00
rUvandr fe99f748c5 fix(daemon): explicit maxConcurrent/workerTimeoutMs win over saved daemon-state (#4462) (#4465)
Apply the #2935 explicit-wins gate to the two scalar fields restored in
initializeWorkerStates(): constructor arg > config.json > saved state > default.

Co-authored-by: r <r@x>
2026-10-24 13:45:23 -04:00
rUvandr 075503c34e fix(headless): cancel settles the execution, deadline timer cleared, escalation keys off exit (#4463) (#4466)
Co-authored-by: r <r@x>
2026-10-24 13:31:52 -04:00
rUvandr 1b6b7bba2e docs(adr): ADR-500 ruRE capability map, trust rules and the acceptance test (#4461)
* docs(adr): ADR-500 ruRE capability map, trust rules and the acceptance test

One reference for the seven tools, the doors, the trust rules and the CUDA
acceptance test, with a run of the published 3.61.1 against cuobjdump.

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

* docs(adr): ADR-500 explains the sm_120 shared figure and points at ADR-501's eighth tool

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

---------

Co-authored-by: r <r@x>
2026-10-24 12:57:23 -04:00
rUvandr 24450bf9f7 feat(rure): rure_cuda_launch_plan — static occupancy plan for CUDA kernels (ADR-501) (#4464)
New read-only tool: per kernel and architecture, theoretical occupancy at several
block sizes, what limits it, the best sizes and flags; optionally the text of a
driver-API harness the person can build to check it on their own GPU. Nothing is
compiled, loaded or run by ruRE.

The model equals NVIDIA's cuda_occupancy.h on 1,770,216 combinations (8 archs,
limiting sets included; fingerprints committed so CI repeats it) and the CUDA
driver on real GPUs: RTX 5080, RTX 3090, RTX 4090, A100, H100. Found on hardware:
from sm_90 the cubin's shared size already includes the driver's 1 KiB reservation.

Also fixes the reader reporting sm_5 for standalone cubins from CUDA 12 (ELF OS ABI
51 keeps the SM number in the low byte of e_flags); real CUDA 12.8 cubins added.

ruflo-rure 0.6.0.

Co-authored-by: r <r@x>
2026-10-24 12:39:54 -04:00
ordinary being 533e17e0b1 fix(swarm): make running-worker cancellation terminal (#4457)
cancel() marked a running WorkerDispatchService worker 'cancelled', but executeWorker() later overwrote it with 'completed' and emitted worker:completed when the in-flight executor returned. The caller saw a successful terminal result for work it had cancelled. cancel() also removed the id from the concurrency set immediately, so another worker could start while the cancelled executor was still running, exceeding maxConcurrent.\n\nKeep the slot until the executor settles in finally, and make executeWorker/catch preserve the cancelled state without emitting completed/failed. Pending cancellation also records the terminal timestamp and phase.\n\nRegression uses maxConcurrent=1: it cancels after the first worker starts, queues a second, and asserts the slot is not released before the cancelled executor settles, status/phase stay cancelled, result is undefined, and no completed/failed event is emitted. Baseline fails because the second worker starts immediately; candidate passes. Full swarm suite 353/353 and tsc --noEmit clean.
2026-10-24 02:32:22 -04:00
ordinary being c616d40193 fix(swarm): disclose synthetic worker dispatch results (#4456)
WorkerDispatchService returns static placeholder data from all 12 triggers but exposed it as an ordinary successful WorkerResult. The service is re-exported from the published @claude-flow/swarm package, so a direct consumer could present invented counts, recommendations and 'benchmarks' as real analysis (#4410 automation scan).\n\nMark every result from the current placeholder executors with synthetic:true and a reason, and label prompt context derived from those results as synthetic at both the heading and per-worker line. The work-phase comment now states that no real work is performed; the 10ms cap is unchanged.\n\nRegression dispatches all 12 triggers, waits for completion, and asserts the disclosure fields and context labels. Baseline (TS source stashed) fails with synthetic undefined; candidate passes. Full swarm suite 352/352 and tsc --noEmit clean.
2026-10-24 02:09:56 -04:00
Lenin Mookiah 7c37957f55 Fix browser doctor path from unrelated working directories (#4454)
Resolve the structural smoke script through CLAUDE_PLUGIN_ROOT.
Bump the browser plugin patch version and align its smoke assertion
to make the fix visible to installed copies.
2026-10-24 01:30:04 -04:00
rUvandr e6c3743ef1 release: 3.61.1 (#4453)
Patch release: ruflo-console 0.48.0 (ruRE outside-folder allowlist, ADR-499) reaches ruflo tui users.

Co-authored-by: r <r@x>
v3.61.1
2026-10-24 00:52:47 -04:00
ordinary being 5988f8e4a0 fix(plugins): reuse captured extension points when rebuilding caches (#4451)
Both registries rebuild extension caches by calling every surviving plugin's register* methods again on a sibling's unregister/reload. The plugin interface documents that these methods run during initialization; non-idempotent implementations can repeat counters, listeners, timers or allocations tied to unrelated plugin churn (#4410 plugins scan).\n\nCapture the raw values returned by each plugin at initialization (and on hot reload), store them on the entry, and rebuild caches by replaying those values. The enhanced registry still runs conflict resolution on every replay, so first/last/namespace/error semantics and ownership maps are preserved without re-invoking plugin code.\n\nRegression tests count registerMCPTools across unregister for both registries, verify conflict replay, and verify hot reload replaces the snapshot. Baseline (sources stashed) fails all count assertions with 2 calls instead of 1; candidate focused suites pass 52/52. Full plugin suite: 475 passed, 3 skipped, 1 pre-existing Windows safePath failure reproduced on baseline.
2026-10-24 00:26:34 -04:00
rUvandr d36d72a9ff feat(ruflo-console): ruRE can read an outside folder the person allows (ADR-499, console 0.48.0) (#4452)
New option rureFolders (name=/folder pairs); a sample names one as @name/sub/file.
The preflight resolves the alias after checking the folder and every part below it
for links, and swaps the absolute path into the row's -p JSON. Option writes stay
install-class and always ask. Runner stays at 500 lines (preflight now gets options).

Co-authored-by: r <r@x>
2026-10-24 00:02:33 -04:00
Mario JauvinandRuFlo 9d94a5bcdb ci: require a plugin version bump when shipped plugin files change (#4447)
`/plugin marketplace update` compares plugin.json "version" with the installed
copy, so a fix merged without a bump never reaches existing installs (#4436
left ruflo-console at 0.45.1 until #4443 bumped it by chance).

scripts/audit-plugin-version-bump.mjs diffs <base>...HEAD and fails when a
plugin has shipped changes but its plugin.json version did not increase. New
plugins pass. Not counted as shipped: tests/, docs/, README*.md, CHANGELOG*.md,
*.spec.* and *.test.* files, and scripts/smoke*, scripts/test-*, scripts/bench*
(smoke scripts and tests that pin the version are edited together with a bump).
SKILL.md, commands/*.md and agents/*.md do count, since they ship.

.github/workflows/plugin-version-bump.yml runs it on PRs touching plugins/**.
The label skip-plugin-version-check skips the job.

Verified against history: #4436 (43a395435) fails, #4443 (7564f7cef) passes.
The workflow itself has not run on GitHub yet.

Co-authored-by: RuFlo <ruv@ruv.net>
2026-10-23 23:51:58 -04:00
rUvandr 52884d98aa release: 3.61.0 (#4450)
Minor release: rure_analyze_cuda (CUDA fatbin/cubin/PTX static analysis), ruflo-console 0.47.0 CUDA row, zod advisory fix.

Co-authored-by: r <r@x>
v3.61.0
2026-10-23 23:28:30 -04:00
rUvandr cac404c54c feat(ruflo-mods): rureOffer — offer ruRE when the model reads a binary (ADR-498) (#4446)
Off by default. Observes Read/Write/Edit/MultiEdit file_path, and at the end of a
main-loop turn appends one fixed-wording line naming up to three validated
project-relative binary/library/asar/CUDA files (12 per session, each once).
Offer only: never runs ruRE, never denies or edits a call. Inert without a ruRE
MCP tool. Harness gains World.tools and $.tool.list.

Co-authored-by: r <r@x>
2026-10-23 23:12:31 -04:00