1364 Commits
Author SHA1 Message Date
rUvandClaude e7bc48f0a3 fix(security): daily scan 2026-11-24 — 2 fixes (#5092)
* fix(security): untrusted package execution in metaharness bin lookup

The metaharness bin resolver walked up node_modules from the MCP server's
working directory, so a project that ships its own node_modules/metaharness
had that package's bin run by score/genome/mcp-scan/threat-model and the
other metaharness tools. Resolve only from ruflo's own install tree
(fromCwd:false), as _darwin.mjs and _redblue.mjs already do, and fall back
to the pinned cache install. Extend test-no-tool-time-npx.mjs Phase 5.

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

* fix(security): path traversal in agenticow MCP tools

agenticow_* handlers accepted any absolute memory path from tool input and
created or overwrote <path> and <path>.agenticow.json there. Paths from MCP
input now go through resolveToolMemoryPath, which requires both files to
resolve inside the project (real parent directory, no symlinked or
executable target) via containedWritePath. The local CLI keeps its ability
to name any path. Add agenticow-path-containment.test.ts.

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

* chore(plugins): bump ruflo-metaharness to 0.5.4 for the bin lookup fix

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-24 08:39:44 -05:00
rUv 9936abe8b5 fix(cli): isolate tool-time npx, contain metaharness file arguments, validate daemon stop target (3.80.3) (#5085)
Tool-time npx calls resolve packages from a ruflo-owned prefix instead of the opened project; metaharness MCP file arguments stay inside the project; daemon stop only signals a validated ruflo process. Release 3.80.3 (helpers manifest re-signed).

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-23 14:17:00 -05:00
rUvandr 4ba353a57f feat(console): native vector pictures on Claude Code Desktop (ADR-546, 0.51.0) (#5075)
* feat(console): native vector pictures on surfaces that draw Svg (ADR-546, 0.51.0)

On Claude Code Desktop, the editor and the mobile app, the swarm graph, cost
gauge, activity/burn sparklines and the BBS neon titles are drawn as native,
interactive SVG (isInteractive) instead of the terminal's cells written as SVG:
pulsing busy nodes, traffic along edges, a sweeping gauge with ladder ticks,
draw-in sparklines, hover tooltips on every node/sample/tick. Motion is CSS only
(none at fps 0 or under reduced motion). Settings -> UI -> Desktop pictures
(rich|cells, saved). The terminal is unchanged.

Security: data only through escapeXml or finite numbers, colours only as
validated hex attributes, constant stylesheet, no script/link/image/
foreignObject/external url(), capped at 131072 chars with a cell fallback.

Tests: tests/vector-pictures.spec.ts (pure, hostile inputs, size cap, motion
gating, determinism, build cost), tests/desktop-rich.test.ts (kit e2e on the
desktop and terminal surfaces in all three looks, setting persistence).

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

* fix(console): gate desktop vectors on host version, fit to pane, loop-only motion (ADR-546)

- Draw the vector pictures only on hosts that take Text `weight` (2.1.299+), past
  the 2.1.289 types that declare Svg `height`/`isInteractive`; an older engine
  refuses a tree with an unknown prop, so it keeps the cell pictures.
- Never draw a vector wider than the cell picture it replaces (the BBS title is
  fitted beside the nav icons); the viewBox scales it down.
- Drop the draw-in/fade/sweep entrance animations: a sparkline or gauge whose
  data ticks is a new document each time, so they replayed on every tick. Only
  looping motion remains (pulse, edge traffic, flicker).
- Tests: a 2.1.289 host gets cells; the BBS title fits at 110 and 64 columns.

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

---------

Co-authored-by: r <r@x>
2026-11-22 21:46:54 -05:00
rUvandr fcdb85c26a fix(console): auto nav spells every page's full name, wrapping instead of shortening (#5074)
Below ~90 columns the auto nav style fell back to three-letter codes
(Msn, Ovr, Wfl) and below ~70 to bare icons, so the nav was hard to read
at the widths a dock usually has. auto now always uses the full form; a
group row that does not fit wraps, shared evenly over its lines. brief
and icons remain selectable in Settings. Console 0.50.3.

Co-authored-by: r <r@x>
2026-11-22 16:49:12 -05:00
rUvandr f0dd7e6b6e fix(x-gateway): single-use invites, invite revoke, ordered federation_sync cursor (#5029, #5030) (#5057)
* fix(x-gateway): single-use invites, invite revocation, ordered sync cursor (#5029, #5030)

#5029
- mintInvite and federation_invite_mint default to max_uses 1 (was 25);
  maxUses/ttlSecs must be positive integers.
- New legacy-only, admin-only federation_invite_revoke: revokes by code or id
  via buzz-relay POST /api/invites/revoke (block/buzz#9680). Admission is
  decided by the relay, so revocation lives there; a relay build without the
  route answers 404 and the tool reports "unsupported". Withheld from the
  directory profiles because it accepts an invite code.
- CLI: x_federation_invite_revoke passthrough; mint/--uses text says default 1.

#5030
- federation_sync returns next_cursor and accepts since_cursor. The relay
  exposes no receive-order sequence, so the cursor carries a window floor plus
  48-bit prefixes of the ids already delivered inside it. Each call reads the
  whole window (full NIP-01 pages are narrowed by `until` bisection, because
  `limit` keeps the newest events) and delivers unseen events oldest first by
  (created_at, id). Same-second events and late arrivals within 300 s are
  delivered exactly once. A timed-out read hands the same cursor back.
- The cursor is decoded as hostile input: length cap, strict shape, lookback
  clamped to 30 days, bound to the type filter.
- No-cursor calls keep the old window read and relay filter.
- CLI: since_cursor in the x_federation_sync schema; `federation sync --cursor`.

Gateway package 0.9.2 -> 0.10.0, plugin 0.10.6 -> 0.11.0.

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

* fix(x-gateway): judge sync completeness on the raw relay page; compact cursor

buzz-relay applies `limit` in SQL before it matches #t/#k in Rust
(handlers/req.rs filter_fully_pushable), so a short #t-filtered page does not
prove a window complete. Cursor reads now send only kinds/since/until/limit,
match the swarm tag and type locally, and judge completeness on the raw count.
A no-cursor read cannot prove completeness either, so its next_cursor keeps the
whole requested window and remembers what was returned.

The cursor encodes delivered ids as delta-coded seconds, so the largest cursor
the gateway can emit (2000 ids in distinct seconds) fits the schema cap, and
any type string the tool accepts round-trips. Tests: the fake relay applies
limit before tag matching and carries non-swarm traffic; a property test pins
the cursor size bound.

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

* test(ci): list the new x-gateway node:test files in the root ratchet baseline

invite-admin and sync-cursor import nostr-tools, which only the plugin's own
`npm test` installs (157/157 pass there), like the other x-gateway suites.

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

---------

Co-authored-by: r <r@x>
2026-11-22 15:23:50 -05:00
21c24d3218 fix(learning-loop): help/list runs are not verifiers; never store part of a secret (#5067) (#5068)
* fix(learning-loop): help/list runs are not verifiers; never store part of a secret

An edit followed by a test command that only printed help or listed tests
(`npm test --help`, `npx vitest list`, `npx jest --listTests`,
`pytest --collect-only`, `cargo test --no-run`, `go test -list .`) was
recorded as verified-success: classify() matched the command head and
ignored the rest, and those commands exit 0 without running a check.

- classify(): a verifier segment whose bash words ask for help, version,
  a listing, a config dump, a dry run or a compile-only build is not a
  verifier; `vitest list` / `cargo nextest list` likewise. Words are split
  as bash does, so a quoted argument that contains `--help` (a test-name
  pattern) still verifies. A command with a shell comment is refused:
  `npm run build # && npm test` ran only the build.
- Verifier evidence is screened for secret shapes; a command carrying one
  keeps its kind and outcome and is stored as `[redacted]`. Evidence reaches
  SONA feedback, the ledger and learned lessons.
- taskText() screened only the first 300 characters, after the cut, so a
  key the cut split was stored in part (`ghp_ABCDEFGHIJKLMNO`). It now
  screens the kept text plus 1 KiB, cuts at a word boundary so a long key
  (JWT) is dropped whole, and reads at most 64 KiB of the prompt
  (32M-character prompt: ~6 ms, against ~1.4 s unbounded).

Regenerated both learning-loop.cjs copies. helpers.manifest.json needs a
maintainer re-sign for the new bytes.

Co-Authored-By: Ruflo & AQE
Claude-Session: https://claude.ai/code/session_01GLQCdgnsuwts6j51rwcqgB

* fix(learning-loop): per-runner no-run flags, raw screening, SONA skips [redacted] (0.17.5)

Third adversarial review of #5068:

- More commands that exit 0 without a check are not verifiers: tsc -v,
  --listFilesOnly, -b --dry, --init; eslint -v, --env-info; vitest/jest
  -v; make -n/-q (and clusters); go test -c/-n; dotnet test -t; pytest
  --fixtures/--markers/--setup-plan; npm/pnpm/yarn/bun --if-present.
  Flags are read for the program actually run (past npx, pnpm exec,
  python -m, uv/poetry run), so `pytest -v` stays a run and
  `jest --testNamePattern vitest list` is not taken for `vitest list`.
- Bash removes a backslash-newline outright; classify() now joins without
  a space (`--ver\<newline>sion` is --version). An escaped space no longer
  starts a word, so `a\ #b` is not a comment.
- shellWords()/hasComment() move to hooks/loop/words.ts; narrows() uses
  them, so a partly quoted --passWithNoTests still taints (ADR-503).
- Evidence and task text are screened as given as well as normalised: a
  line separator or control character inside a key hid it from the
  folded screen. A kept key-block header ("-----BEGIN") is refused.
- Ingest counts a task stored as [redacted] and never trains SONA with
  it (it learned `coder:redacted`).
- ruflo-mods 0.17.5 with a CHANGELOG entry (version-bump check).

Every guard is covered: reverting any one of the 12 fails a test.

Co-Authored-By: Ruflo & AQE
Claude-Session: https://claude.ai/code/session_01GLQCdgnsuwts6j51rwcqgB

* chore(helpers): re-sign helpers.manifest.json for the rebuilt learning-loop.cjs (#5067)

Rebuilt learning-loop.cjs from source with build-learning-loop-helper.mjs;
the bytes match the committed bundle (sha256 0a39ee1d50d3349d...).

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

---------

Co-authored-by: r <r@x>
Co-authored-by: RuFlo <ruv@ruv.net>
2026-11-22 14:46:02 -05:00
rUvandr 87f612cef1 chore(release): 3.80.0 (#5056)
* chore(release): 3.80.0 (codex 3.0.9)

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

* fix(cli): bundled OpenRouter alternates are opt-in (#4957)

#5038 loaded the bundled openrouter-alts.json for every npm install, which
changes which OpenRouter models users are billed for. Its PR asked for a
maintainer decision on that default. Until then, the bundled copy loads only
with CLAUDE_FLOW_ROUTER_OPENROUTER_ALTS=bundled; npm installs keep the
previous behaviour (no per-tier alternate). The file still ships.

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

* chore(release): pin @metaharness/darwin ~0.16.0; codex VERSION 3.0.9

darwin 0.16.0 is npm latest (it fixes the 0.15.0 bug that could leave SIM
journals unreadable), so the metaharness pin-drift gate flags ~0.14.0 as
stale. Bump the CLI dependency, MH_DARWIN_PIN and the plugin helper pin.
The pnpm lock entry is edited by hand to the 0.16.0 integrity; nothing else
in the lock moves. codex's exported VERSION follows the 3.0.9 bump.

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

* chore(ruflo-metaharness): 0.5.3 for the darwin ~0.16.0 helper pin

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

---------

Co-authored-by: r <r@x>
2026-11-20 22:21:35 -05:00
rUvandr ad343eb14d feat(release): SLSA provenance publishing + pinned init output (ADR-545) (#5048)
* feat(release): publish the train with SLSA provenance (ADR-545)

stable-npm-release publishes with --provenance (id-token: write), checks
repository.url before publishing, defaults to a dry run, publishes only
from main, and promotes to latest only after the registry holds a SLSA v1
attestation for exactly the verified archive built in ruvnet/ruflo.
Only latest moves (ADR-513). ADR-545 records the client review items.

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

* fix(release): drop the dead root npm ci step that runs security's tsc prepare

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

* fix(release): clear x-gateway audit gate; allow HEAD dry runs (ADR-545)

npm audit fix clears the 2 high advisories; a scoped override lifts
rimraf's glob to ^14.0.2 for the remaining glob/minimatch moderates
(0 vulnerabilities, 142/142 gateway tests). tag=HEAD (dry run only)
builds the dispatched commit so a release can be rehearsed before it
is tagged.

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

* docs(adr-545): record RuVector#1516 and the laptop-only package gap

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

* chore(release): commit the signed helper manifest for 3.78.1 (ADR-545)

CI verifies the committed manifest; the signing key stays off CI.

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

* fix(release): npm ls --all warns instead of gating (#5047)

The published 3.78.1 tree already has invalid nested ranges; the
functional smoke checks stay the gate until #5047 aligns the pins.

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

* feat(cli): pin init output to the CLI's exact version, add repin and provenance check (ADR-545)

- init writes @claude-flow/cli, claude-flow and ruflo pinned to the running
  CLI's version (one specifier helper, src/init/pinning.ts); third-party MCP
  refs (ruv-swarm, flow-nexus, agentic-jujutsu) pinned to known versions.
  `--channel latest` keeps the previous floating output byte-for-byte.
- `ruflo init repin` / `init --repin`: idempotent rewrite of settings.json,
  .mcp.json, CLAUDE.md and .claude/helpers with --dry-run and a per-line
  report. Leaves signed helpers, JSON keys and #2448 runaway hook commands
  alone and says why.
- Helper refresh never rewrites signed helpers, so pins survive it.
- Provenance check (registry attestations, SLSA v1 predicate, subject digest
  == dist.integrity, repo == github.com/ruvnet/ruflo) via
  `doctor -c provenance`, after repin, and as a non-fatal warning at init.
  Fetch is injectable; tests use recorded registry fixtures.

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

* fix(release): test the federation WebSocket fallback by removing agentic-flow

The CLI now depends on stable agentic-flow ^3.0.0, so pinning the
alpha no longer forces the fallback; the smoke step was stale.

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

* fix(cli): pin untagged npx runs in helper scripts; update #2206 CI guard (ADR-545)

`npx @claude-flow/cli hooks …` with no tag floats exactly like @latest.
The generated pre-commit hook and copied unsigned helpers (post-commit,
pre-commit) ran it untagged. Init now pins those runs on copy and in the
generator, and `init repin` pins them in .claude/helpers. Docs copied from
the package and the user's CLAUDE.md are left as is. The --prefix form used
by the signed helpers is not matched.

The wizard-init guard required the literal `ruflo@latest` in
mcp-generator.ts; it now requires the args to run the ruflo wrapper via
ourSpec('ruflo', …).

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

* docs(adr-545): CI-only train publishing in CLAUDE.md; record dry-run findings

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

* chore(x-gateway): bump plugin to 0.10.6 for the dependency audit fix

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

* fix(adr-545): unambiguous flag regex (CodeQL ReDoS), anchored scope replace, keep doctor help ending in metaharness)

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

* ci: exclude the node:test provenance gate test from the vitest ratchet (runs via node --test in v3-ci)

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

---------

Co-authored-by: r <r@x>
2026-11-19 16:21:20 -05:00
rUvandr d9213d356c feat(mods): enable Project Anatole (ruflo-protector) by default (#5046)
ruflo init and ruflo mods install now enable ruflo-protector@ruflo with
the other ruflo mods (MOD_PLUGINS). It starts in learn mode, graduates
only to notify, and never enables enforce by itself. An explicit false
in enabledPlugins is preserved. ADR-453 §14.1 amended; protector 0.1.3.

Co-authored-by: r <r@x>
2026-11-19 15:02:49 -05:00
5cdb56feb7 fix: sign companion helpers, guard every .claude-flow write (#4746, integrates #4991) (#5039)
* fix: sign companion helpers and refuse symlinked .claude-flow writes (#4746)

* fix: sign companion helpers and refuse symlinked .claude-flow writes (#4746)

* fix: sign companion helpers and refuse symlinked .claude-flow writes (#4746)

* fix: sign companion helpers and refuse symlinked .claude-flow writes (#4746)

* fix: sign companion helpers and refuse symlinked .claude-flow writes (#4746)

* fix: sign companion helpers and refuse symlinked .claude-flow writes (#4746)

* fix: sign companion helpers and refuse symlinked .claude-flow writes (#4746)

* fix(ruflo-mods): route every .claude-flow write through the link guard (#4746)

The PR guarded only the session heartbeat and the compaction snapshot. Edit
records, the learning-loop ledger, guidance observations, context-delegation
metrics, cost attribution and the console toast ring still wrote through
$.fs.write, which follows links. All of them now go through one helper,
projectWrite (state.ts), over writeWithoutLinks: a symlinked .claude-flow or
any symlinked folder below it refuses the write. Appends are read-then-
rewrite, so they are covered by the same path.

The cost hook's project check no longer counts a symlinked .claude-flow as
the project's state (the live engine reports the target's kind plus isLink).

The mods harness gains liveLinkStat (stat as the live engine answers it), and
mods-every-write-guarded-4746.test.ts drives every writing hook entry point:
a control run proves each path writes into a real .claude-flow, and runs with
a symlinked .claude-flow and with symlinked data/cost/metrics/sessions folders
must leave the outside directory byte-identical. Without this change those two
runs fail with six files written outside the project.

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

* fix(cli): init --upgrade installs the signed companion bytes (#4746)

session.cjs and memory.cjs joined the signed critical set in this PR, but
executeUpgrade still regenerated both from the CLI's generators, whose output
is not byte-identical to the packaged copies. The next run's integrity check
then reported both as tampered: once (healed) on a normal install, on every
run under .LOCKED, RUFLO_HELPERS_LOCKED or an ahead stamp, where the refresh
only inspects.

ensureCommonJsCompanions takes an optional sourceDir. The upgrade passes the
package's own .claude/helpers (findPackageHelpersDir, the source the startup
refresh verifies against): a companion present there as a regular file is
copied byte-for-byte through the existing link-safe atomic write; only a
missing one (or one shipped as a link) comes from the generators. The startup
ensure for missing companions is unchanged.

upgrade-companion-integrity-4746.test.ts upgrades a project and runs the
startup integrity check against a throwaway-key manifest over the package's
companion bytes; without this change it reports
['session.cjs', 'memory.cjs'] as tampered.

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

* chore(ruflo-mods): 0.17.3 — every .claude-flow write is link-guarded (#4746)

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

* test(ruflo-mods): cover the toast writer session.start binds (#4746)

With engine.create, the $.ruflo noun's toast writer is the one in use, so the
binder in session.start was guarded but never exercised. A run without
engine.create drives it; reverting session.ts alone now fails that case
(console/toasts/mods.jsonl written outside the project). Reverting any other
call-site file alone fails the existing cases.

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

* chore(helpers): re-sign manifest with session.cjs and memory.cjs (#4746)

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

---------

Co-authored-by: Aditya Chandrajit Deore <adityadeoreofficial@gmail.com>
Co-authored-by: r <r@x>
2026-11-19 01:21:48 -05:00
65fc26d0fa fix(learning-loop): show lessons only from a file this machine wrote (#4747, integrates #4854) (#5037)
* fix(learning-loop): show lessons only from a file this machine wrote

A repository could commit .claude-flow/data/learned-lessons.json, and both
the ruflo-mods prompt hook and the classic learning-loop.cjs helper showed
its lessons as this project's own test and build history.

The CLI ingest now stamps the lessons file with an origin id kept under the
home directory (~/.claude-flow/learning-loop-origin, 32 hex characters,
created on first use with mode 0600). Both readers show nothing from a file
whose origin is missing or does not match this machine's id, so a file
carried in by a clone is ignored. A lessons file written before this change
shows nothing until the next ingest rewrites it.

ruflo-mods 0.16.3. The helper bundle is rebuilt, so helpers.manifest.json
needs a maintainer re-sign.

Fixes #4747

* chore(helpers): re-sign manifest for the #4747 learning-loop.cjs change

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

---------

Co-authored-by: Parman Mohammadalizadeh <prmma23@gmail.com>
Co-authored-by: r <r@x>
2026-11-18 23:51:56 -05:00
edf7ddb3fe fix(security): transport and WebSocket limits (#4752) (#4962)
* fix(security): enforce transport and WebSocket limits (#4752)

- x-gateway ws-proxy: release a connection slot once per connection;
  close/error on both sockets decremented `active` up to four times,
  which defeated the 500-connection cap.
- mcp http transport: /ws now has maxPayload (maxMessageSize, default
  10 MiB) and checks the bearer token in verifyClient, before the
  upgrade, using the same Authorization header as the HTTP routes
  (no ?token=). Unset token entries are skipped instead of throwing.
- mcp http transport: cap legacy SSE streams on GET /mcp
  (maxSseClients, default 100); extra streams get 503 + Retry-After.
- agent-federation fallback WebSocket listener: maxPayload (default
  4 MiB, configurable) instead of the ws 100 MiB default.
- agentbbs sync: redirect "error", reject an oversized Content-Length
  up front, and stream the body with a running byte cap instead of
  buffering it whole.

Each limit has a test.

* fix(mcp): keep ?token= on /ws, checked before the upgrade (#4752)

Browsers cannot set Authorization on a WebSocket, so dropping ?token=
would cut browser clients off /ws and make the HTTP transport behave
differently from the standalone WebSocket transport. verifyClient now
takes the token from the Authorization header or, failing that, from
?token=, still before the upgrade and still failing closed on an empty
token list. ADR-479 describes the new check.

Also:
- maxMessageSize and maxSseClients fall back to their defaults unless
  they are positive numbers.
- shared/src/mcp/transport/http.ts: /ws gets maxPayload (maxMessageSize,
  default 10 MiB) instead of the ws 100 MiB default.

* chore(ruflo-x-gateway): bump to 0.10.5 for the ws-proxy slot fix

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

* chore(leaves): shared 3.0.9 for the /ws payload cap (#4752)

The /ws maxPayload change in shared/src/mcp/transport/http.ts only reaches
users through a standalone shared publish. shared 3.0.9 is published; the CLI
and root manifests pin it and both lockfiles follow.

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

* test(ci): list the x-gateway ws-proxy node:test file with its siblings

Root vitest cannot run plugins/ruflo-x-gateway node:test files (they run via
the plugin's npm test), so each one is listed in ci-test-baseline.txt. The new
ws-proxy test was missing, which failed the ratchet with 'No test suite found'.

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

---------

Co-authored-by: Rutvij97 <218486544+Rutvij97@users.noreply.github.com>
Co-authored-by: rUv <ruv@ruv.net>
Co-authored-by: r <r@x>
2026-11-17 23:15:27 -05:00
9e98e96fa7 fix(security): managed-agent tools refuse sessions this project did not create (#4831)
* fix(security): managed-agent tools refuse sessions this project did not create

managed_agent_prompt, status, events and terminate accepted any session id
in the Anthropic organisation, so a prompt-injected caller could read,
steer or delete sessions it never created. managed_agent_create now records
each session and its environment in .claude-flow/managed-workflows/sessions.json,
and the four tools refuse any session that is neither in that ledger nor in
RUFLO_MANAGED_CONTROL_SESSIONS, before any provider request. Terminate also
deletes only the environment recorded for the session, and forgets the
session once it is deleted.

Fixes #4751

* fix(managed-agent): keep the session ledger outside the workspace and check environments with the provider

The ledger moves to ~/.claude-flow/managed/<sha256(realpath(cwd))>.json (the
dispatch queue's state directory, RUFLO_AI_BUDGET_DIR honoured), so an agent
that can write project files cannot grant itself another session. Terminate
now asks the provider which environment a session runs in before deleting
one, and refuses when the ledger disagrees.

The ledger lock records its owner and is broken once older than 5 s, a
corrupt ledger is set aside as .corrupt-<ts> on write, and create warns when
the 1000-entry cap drops a session. The ruflo-agent managed-agent skill no
longer says to terminate stale sessions from list (ruflo-agent 0.4.3).

Tests cover a forged-ledger environment delete, a workspace ledger, a stale
and a live lock, a corrupt ledger, the cap, and eight processes creating at
once.

Refs #4751

* ci(env-audit): register RUFLO_MANAGED_CONTROL_SESSIONS as a host-only escape hatch

The managed-agent allowlist is a trust boundary (#4751): a caller must not be
able to widen it, so there is deliberately no CLI flag to take precedence.

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

---------

Co-authored-by: r <r@x>
Co-authored-by: RuFlo <ruv@ruv.net>
2026-11-17 15:43:26 -05:00
289581e9c1 integrate: pre-bash guard reads $(...) and parameter defaults (#4848) (#5024)
* fix(hooks): read $(...) substitutions and parameter defaults in the root-delete guard

hasRootDelete parsed backtick substitutions but not $(...): the $ joined
the word and ( reset the rm being parsed, so rm -rf "$(echo)"/ and
rm $(:) -rf / passed while their backtick spellings were refused. A $(...)
body is now matched past quotes and nesting, scanned as its own command,
and dropped from the word, as a backtick one is. $((...)) is arithmetic:
its body is still scanned and a digit stands in for it. Once a $( never
closes, the rest of that scan reads ( and ) as separators, as before.

A parameter's default (X:-word, X-word, X:=word, X=word in dollar braces)
is now judged as the word the shell uses when the name is unset, so
rm -rf ${X:-/} is refused. Single quotes keep it literal.

Same change in both hook-handler.cjs copies, the generated fallback and
the ruflo-mods guard (0.16.3), with parity cases in mods-guard.test.ts.
The packaged helper is signed, so helpers.manifest.json needs a re-sign.

Fixes #4742

* fix(hooks): fail closed on an unclosed $( and read array/indirect defaults (ruflo-mods 0.17.2)

closeParen now skips $'...' strings with their escapes and # comments, so
rm -rf $(echo $'\'')/ and a ) inside a comment no longer end the scan early.
A $( that never closes in a command with an rm in it is refused instead of
read the old way. The parameter matcher takes an optional leading ! and a
[...] subscript, so ${A[0]:-/} and ${!X:-/} are refused. Same change in all
four guard copies, with the review's inputs as parity cases.

Refs #4742

* chore(helpers): re-sign the helpers manifest for the #4848 hook-handler guard

#4848 changes .claude/helpers/hook-handler.cjs, so the signed manifest's
hash no longer matched (guard: helper-signing.test.ts integrity mismatch).
Re-signed with the release key; helper-signing + mods-guard: 312/312.

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

---------

Co-authored-by: Parman Mohammadalizadeh <prmma23@gmail.com>
Co-authored-by: r <r@x>
2026-11-17 15:28:35 -05:00
Mr. Makandruflo 07b79edc02 fix(mods): engine.create in the validator's form; claude plugin validate passes on Claude Code 2.1.323+ (0.17.1) (#5017)
* fix(mods): engine.create in the validator's form; claude plugin validate passes on Claude Code 2.1.323+ (0.17.1)

hooks/noun.ts returned { ...added, ...beneath } from engine.create. Claude Code
2.1.323 and later refuse that in `claude plugin validate` ("this engine.create
hook is outside its form: a spread of anything but the value of next(e)"), for
0.16.2 and 0.17.0 alike; 2.1.319 accepted it. Reading beneath.ruflo to keep an
earlier step's noun is refused as well ("$.ruflo is used as a value"), so the
hook now returns { ...beneath, ruflo }. No other plugin defines engine.create,
so $.ruflo is unchanged in practice. The mod loaded and ran on those versions
already; only validation failed.

Tests: claude plugin test plugins/ruflo-mods 209/209 before and after;
claude plugin validate fails before, passes after (2.1.323, 2.1.325, 2.1.326);
headless `claude -p --plugin-dir` probe loads it with plugin_errors null.

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

* test(mods): smoke.sh expects 0.17.1

Step 1 pins the plugin.json version; the 0.17.1 bump needs it too
(same as the 0.17.0 bump in 1acb1fc98). smoke.sh: 17 passed, 0 failed.

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

---------

Co-authored-by: ruflo <ruv@ruv.net>
2026-11-17 13:22:25 -05:00
6e1bcc4517 chore(deps): bump @ruvnet/sublinear-core from 1.0.0 to 1.0.1 in /plugins/ruflo-graph-intelligence (#5006)
* chore(deps): bump @ruvnet/sublinear-core

Bumps [@ruvnet/sublinear-core](https://github.com/ruvnet/sublinear-time-solver/tree/HEAD/packages/sublinear-core) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/ruvnet/sublinear-time-solver/releases)
- [Changelog](https://github.com/ruvnet/sublinear-time-solver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ruvnet/sublinear-time-solver/commits/HEAD/packages/sublinear-core)

---
updated-dependencies:
- dependency-name: "@ruvnet/sublinear-core"
  dependency-version: 1.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* chore(ruflo-graph-intelligence): 0.3.2; lockfile without peer entries

Regenerated with --legacy-peer-deps from main's lockfile, as main's was made:
dependabot's version added ~11.7k lines of peer entries pulled in by the
@claude-flow/cli peer. Bump the plugin version for the version-bump gate.

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-17 11:19:45 -05:00
rUvandr 2ede870496 fix(ruflo-console): POSIX append keeps every batch under uutils dd (#4978) (#5013)
* fix(ruflo-console): POSIX append keeps every batch under uutils dd (#4978)

The POSIX append script ran `dd bs=1M iflag=fullblock status=none >> "$1"`.
uutils dd 0.10.0 (the default coreutils on Ubuntu 26.04, now the
ubuntu-latest runner image) truncates its stdout to its own offset after
writing: strace shows `lseek(1, 0, SEEK_CUR)` then `ftruncate(1, pos)`. With
concurrent appenders that cuts off every batch another writer added in
between, so the "eight writers" spec lost whole 60-line batches
(1500/1680/1740 of 2400) and kept main's CI/CD Pipeline red.

Add `conv=notrunc` (POSIX dd; GNU, BSD and uutils all accept it). In an
ubuntu:26.04 container the spec fails 3/3 before (720, 721, 1080 lines) and
passes 3/3 after; GNU dd is unaffected. Linux hosts still run the GNU argv,
so the shipped Linux path was never affected; the script is the macOS/BSD
path. The POSIX whole-set digest is re-pinned; the GNU digest is unchanged.

ruflo-console 0.50.1 -> 0.50.2.

Fixes #4978

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

* chore(ruflo-console): smoke pins 0.50.2

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

---------

Co-authored-by: r <r@x>
2026-11-17 10:21:06 -05:00
randRuFlo 0e9902f396 feat(ruflo-intelligence): document neural wsp ruv-FANN tooling (0.6.0)
/neural wsp, intelligence-specialist rows, and an intelligence-route step
that runs neural wsp check after the centroid artifact is replaced.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-12 15:58:34 -05:00
randRuFlo 8fff84a767 test(mods): judge none label renders as no specialist (ADR-530)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-11 17:15:59 -05:00
randRuFlo c05eb65398 fix(mods): judge keeps the vendored route contract; real-binary contract; ADR-530 wording
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-11 17:13:03 -05:00
randRuFlo 1acb1fc98f feat(mods): opt-in model-judge routing (routeJudge, ADR-530)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-11 17:02:27 -05:00
randRuFlo de924cdc91 chore(ruflo-metaharness): 0.5.2 for the darwin ~0.14.0 helper pin
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 22:54:58 -05:00
randRuFlo b9b053e29a deps(cli): @metaharness/darwin ~0.14.0 (#4952)
0.14.0 adds an opt-in numeric surrogate (ruv-fann as an optional peer).
Without the surrogate config, evolveNumeric behaves as in 0.13.1, and
exports are unchanged. Moves the CLI range, the plugin's
DARWIN_PIN_VERSION and MH_DARWIN_PIN together. v3/pnpm-lock.yaml gains
a darwin@0.14.0 entry; 0.13.0 stays for metaharness, ruvector and
ruvllm-gpu-loop, which still declare ^0.13.0.

Fixes #4952

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 22:48:24 -05:00
rUv 0ef9f2de0b Merge pull request #4949 from ruvnet/test/4930-darwin-parity-diagnostics
test(metaharness): diagnose bench parity flake, fix 404-in-digest degraded misclassification (#4930)
2026-11-10 17:16:00 -05:00
rUv 4ff25300c8 Merge pull request #4946 from ruvnet/fix/4885-witness-unbuilt
fix(witness): report unbuilt checkouts as not-built without masking real failures (#4885)
2026-11-10 17:15:14 -05:00
randRuFlo de84eef06d docs(ruflo-graph-intelligence): changelog entry for 0.3.1
The console's ADR-478 check parses a plugin's changelog once its version is
stable semver; every heading here was a prerelease, so the file didn't parse.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 16:02:48 -05:00
randRuFlo 871f2ff35b test(ruflo-metaharness): smoke accepts any plugin version from 0.5.0 up
The exact-match check broke on every ruflo-metaharness version bump.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 14:57:47 -05:00
randRuFlo 5ee6a349a3 test(ruflo-core): smoke accepts any plugin version from 0.2.15 up
The exact-match check broke on every ruflo-core version bump.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 14:48:17 -05:00
randRuFlo 8421e87322 chore(release): 3.75.3
@claude-flow/cli, claude-flow and ruflo 3.75.3. Carries #4905 (shared 3.0.8,
zod 4), #4947 (memory 3.3.1 pin), #4943, #4935, #4934, #4936 and #4938.
ruflo-graph-intelligence plugin 0.3.1 (the version audit ignores prerelease
tags, so 0.3.0 did not count as a raise over 0.3.0-alpha.1).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 14:09:19 -05:00
randRuFlo b05b7a640d chore(ruflo-graph-intelligence): bump plugin to 0.3.0
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 14:07:33 -05:00
randRuFlo 20ef743935 chore(ruflo-metaharness): bump plugin to 0.5.1
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 14:07:30 -05:00
randRuFlo f6bdc4e9aa chore(ruflo-core): bump plugin to 0.2.16
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 14:07:27 -05:00
randRuFlo 0383c7e7b6 fix(metaharness): do not classify a "404" inside a hex digest as darwin unavailable
DEGRADED_RX matched any 404 substring. When bench.mjs cannot import
darwin (CI's Test V3 Packages job installs only v3/ with pnpm, so the
plugin script finds no @metaharness/darwin and runs the cached darwin
CLI), darwin reports a tampered suite on stderr with both sha256 digests.
A digest containing "404", about 3% of tampered suites, made
classifyDegraded() report the tamper as "darwin not available", and the
script exited 0 instead of 1.

The 404 token now has to stand alone ("404 Not Found", "E404"). The
regression test runs classifyDegraded on a tamper message whose digests
contain 404, and checks that the npm 404 forms are still classified as
unavailable.

Refs #4930

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 13:11:09 -05:00
randRuFlo 0352da8033 test(metaharness): report darwin resolution path and subprocess tails on bench parity mismatch
bench.mjs now adds a top-level darwinSource field to every JSON payload
(library | cli-local | cli-cache | none). A degraded payload also carries
the darwin CLI's exit code and stderr tail. Existing fields and exit codes
are unchanged. runDarwin() returns the resolved bin source, and the shared
degraded emitter takes optional extra diagnostic fields.

darwin-inprocess-adr526 puts darwinSource, the degraded reason, and the
stdout/stderr tails in the assertion message when the bench.mjs
subprocess exit code is not the expected one.

Refs #4930

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 13:07:04 -05:00
randRuFlo 5ac614dd9e fix(witness): report unbuilt checkouts as not-built without masking real failures (#4885)
verify.mjs already exited 2 with precondition dist-not-built on a source-only
checkout, but the verdict was too broad and its message was misleading:

- A built tree with ONE dist file deleted was reported as "dist-not-built"
  (exit 2) instead of a missing artifact (exit 1).
- A manifest with an invalid signature on an unbuilt checkout also exited 2.
- The text said "every manifest entry is missing" when 18 source entries had
  been checked and passed; scheduled runners quoted that as an integrity failure.

Not-built is now reported only when the signature is valid, no source entry is
regressed or missing, and none of the manifest's dist/ entries exist on disk.
Anything else falls through to the normal exit-1 failure path.

JSON gains `status` ('ok' | 'fail' | 'not-built' | 'no-source-entries') on every
path, plus `notBuilt` {distEntries, sourceEntries, distDirs} and `results` on the
not-built path. `ok`, `scope`, `precondition`, `signature` and `summary` are
unchanged, and exit 2 + precondition dist-not-built are kept for existing
consumers (smoke-witness-verify-precondition.mjs Case 5).

Adds a vitest test (collected by the root CI ratchet) with a node:crypto-signed
fixture: unbuilt -> not-built; built+intact -> ok; marker removed -> fail;
dist file deleted in a built tree -> fail; source regression and tampered
signature on an unbuilt tree -> fail.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 13:06:17 -05:00
ruv dfc87e5c03 chore(npm): canonical repository, homepage and keywords for 12 packages; verified quickstarts for memory and security
Package metadata only (ADR-356 distribution lane). No version bumps, no
dependency, script or source changes; it ships with each package's next
release.

- homepage https://ruv.io, repository {url ruvnet/ruflo, directory},
  bugs ruvnet/ruflo/issues on @claude-flow/{memory,security,embeddings,
  swarm,testing,plugins,performance,providers,deployment,
  plugin-agent-federation,plugin-iot-cognitum} and
  ruflo-graph-intelligence. Nine of these had no repository field at all,
  so their npm pages link nowhere.
- 10-12 keywords per package, taken from each package's README features.
- ruflo-graph-intelligence description trimmed to 160 chars.
- memory and security READMEs: one-line job statement, supported
  environments, a quickstart run against the published 3.3.0 / 3.0.7
  with its real output, a link to the next package, and an animated SVG
  (2.5 KB / 2.1 KB, prefers-reduced-motion aware) that shows that run.

Packages in #4897 (aidefence, browser, cli-core, guidance, neural,
teammate-plugin) are left alone to avoid conflicting with it.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-09 19:45:00 -05:00
randRuFlo 4e249930fc chore(ruflo-console): 0.50.1 for the command catalog refresh
The command catalog copy changed (#2640 command renames + catch-up
regeneration), so ruflo-console moves 0.50.0 -> 0.50.1 in plugin.json,
hooks/version.ts, scripts/smoke.sh and the CHANGELOG. The catalog is
regenerated on the merged tree (one entry changed by main) and copied to
the console again.

The single-host AGENTS.md snapshot follows main's #3153 change (#4918:
registered MCP tool names); no other line differs.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 17:49:12 -05:00
r 981adf7acf Merge remote-tracking branch 'origin/main' into feat/2638-2640-init-single-source 2026-11-09 17:46:20 -05:00
randRuFlo e894a8b93c chore(catalog): regenerate command catalog after the #2640 command renames
`ruflo catalog generate` + copy to the ruflo-console catalog (their digests
must match). Picks up memory-neural, stream-chain-run and swarm-orchestrate.
The committed catalog was already stale on main (243 entries; now 290: new
mod registrations and plugins since the last regeneration), so this also
carries that drift. The host-specific engine report is left as committed.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 15:14:28 -05:00
randRuFlo d96d246e5c docs(plugins): README names the piiGuard option (#4861)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 12:13:25 -05:00
randRuFlo 59377fdb63 feat(plugins): separate piiGuard option from the secret guard (#4861)
ruflo-federation's one `guard` switch gated both the secret refusal and
the SSN/card refusal, so an operator could not make PII informational
without also dropping secret screening. Add a `piiGuard` userConfig
option (default on: behaviour unchanged) wherever `guard` is declared:

- ruflo-federation 0.4.0: verdict() takes the options; the hasPii refusal
  runs only while piiGuard is on. Secrets and input too large to screen
  are still refused whenever guard is on.
- ruflo-intelligence 0.5.0: the hooks_transfer EMAIL refusal is gated by
  piiGuard; the secret refusal is not. piiGuard joins the status file.
- ruflo-console 0.50.0: the mission screen gets a distinct `secret`
  status from the local secret screen (blocks guidance even when
  AIDefence is missing); `pii` blocks only while the new piiGuard option
  is on, otherwise the finding is reported in a `safe` result's detail.

New tests per plugin: default refuses PII; piiGuard off lets PII-only
text through; a secret is still refused with piiGuard off; guard off
behaves as before.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 12:11:22 -05:00
randclaude-flow ab18c33548 fix(deps): zod ^4.6.7 floor, integration agentic-flow ^2.0.14, mcp/codex/shared advisory floors
zod (GHSA-mrhx-c7xc-m3w5): shared, claims, the twelve v3 plugins,
ruvector-upstream, plugins/ruflo-{arena,ai-team,chatgpt-federation,x-gateway}
and goal_ui move to zod ^4.6.7. hooks declared zod but never imported it, so
the dependency is dropped.

gastown-bridge drops uuid/@types/uuid (GHSA-w5hq-g745-h8pq).

integration: peer agentic-flow ^2.0.0-alpha -> ^2.0.14 || ^3.0.0
(GHSA-vcv2-r9jh-99m5). The repo source already matched the published 3.0.2,
so this ships as 3.0.3. A patched agentic-flow leaves a ReasoningBank timer
alive, which made plugins/ruflo-cost-tracker/scripts/compact.mjs print its
result and never exit; compact.mjs now exits after stdout drains, guarded by
scripts/smoke-compact-exit.mjs (hangs on main, passes here) in
cost-tracker-smoke.

Stale ranges outside the cli: mcp ws ^8.21.0 (GHSA-96hv-2xvq-fx4p), express
^4.22.3 (GHSA-qw6h-vgh9-j6wx), ajv ^8.20.0 (GHSA-2g4f-4pwh-qvx6); codex yaml
^2.8.3 (GHSA-48c2-rrv3-qjmp); shared express ^4.22.3 || ^5.1.0. Each package
gets an advisory-ranges test over its own manifest.

ADR-356 metadata on every published manifest: homepage https://ruv.io,
canonical repository with directory, bugs, 8-20 keywords, description
<= 200 characters.

Versions: shared 3.0.8, hooks 3.0.3, claims 3.0.1, integration 3.0.3,
mcp 3.1.7, codex 3.0.7, gastown-bridge 0.1.6, prime-radiant 0.1.7, other
v3 plugins one alpha up. Marketplace plugin.json bumps for the five changed
plugins. The cli, claude-flow and ruflo pins are left for the release lane.

Lockfiles: v3/pnpm-lock.yaml drops the agentic-flow@2.0.0-alpha tree;
standalone plugin locks were regenerated with npm 11 (npm 10 crashed on a
stale optional peer in four of them).

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-09 02:21:15 -05:00
2d789faadc fix(zod4): port shared and v3 plugin schemas to zod 4; gastown convoy IDs from crypto.randomUUID
zod < 4.6.6 can exhaust memory validating oversized constrained collections
(GHSA-mrhx-c7xc-m3w5, high) and has no 3.x fix. This ports the zod 3 APIs
that break under zod 4:

- ZodError.errors -> .issues (shared config validator, gastown sanitizers,
  validators, sync bridge)
- one-argument z.record(value) -> z.record(z.string(), value)
- z.ZodType<Out, ZodTypeDef, In> -> z.ZodType<Out, In>
- prime-radiant: `.default({})` no longer parses the default under zod 4, so
  nested defaults were dropped; the default now parses `{}`
- gastown: MCP inputSchema conversion reads zod 4's `_def.shape`/`_def.type`

The shared and plugin source ports are taken from #4535 by Dragan
Spiridonov (proffesor-for-testing), applied onto current main.

gastown-bridge also drops `uuid` (GHSA-w5hq-g745-h8pq): it only generated
v4 convoy IDs, now `crypto.randomUUID()`.

Tests: every v3 plugin gets a red/green zod floor test against its real
input schema. An oversized bounded array of invalid elements yields one
`too_big` issue under zod >= 4.6.6 and one issue per element below it; the
tests fail on main's source with zod 3.25.76 and pass here.

Co-authored-by: Dragan Spiridonov <spiridonovdragan@gmail.com>
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-09 02:20:56 -05:00
randRuFlo 9b46f57c58 feat(metaharness): @metaharness/darwin as a regular dependency, used in-process (ADR-526); release 3.74.0
- darwin moves to dependencies (ADR-526 amends ADR-150 rule 2 for darwin
  only); the smoke gate, doctor check and clean-install test accept it.
- src/metaharness/darwin-lib.ts: cached import; metaharness_bench verify and
  every metaharness_gepa op run in-process with the scripts' exact payloads
  and exit codes, falling back to the scripts when darwin does not import.
- ruflo-metaharness 0.5.0: bench.mjs verify imports darwin directly (bare
  import, no tool-time install) and falls back to the installed darwin CLI.
- Parity test vs the plugin scripts; benchmark script + measured runs.
- Version 3.74.0.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-08 22:01:25 -05:00
rUvandr 657a4ff81c feat(funnel): count plugin-only users via the ruflo-core MCP launch (#4872)
* feat(funnel): count plugin-only users via the ruflo-core MCP launch

Plugin-only users never run init, so no SessionStart hook refreshes the
funnel cache and they are invisible in the usage numbers. The ruflo-core
launcher now sets RUFLO_LAUNCH_SURFACE=plugin; mcp start (stdio) makes the
existing 6h-cached /v1/messages fetch off the start path, gated on
resolveFunnelEnabled(), and the User-Agent gains ' surface/plugin' from a
closed allowlist. Nothing is written to stdout. LIA updated.

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

* fix(ruflo-core): keep RUFLO_MCP_SPAWN inside the env-precedence audit window

The four-line insertion pushed the existing RUFLO_MCP_SPAWN read past the
audit's 20-line function-signature heuristic. Collapse it to one line and
move the explanation to the header comment.

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

---------

Co-authored-by: r <r@x>
2026-11-06 15:00:01 -06:00
rUvandr adef54c386 chore(ruflo-console): Vector Lab pin follows ruflo-ruvector to ruvector 0.3.13 (0.49.13) (#4856)
Readers checked against 0.3.13 output (hooks stats, hooks route, rvf
examples, identity show): same shapes as 0.3.12. Console smoke 21/21;
claude plugin test 255/260, the same 5 mission-control / compact-nav /
goal-length failures as on main (noted in #4842), none in the vector page.

Co-authored-by: r <r@x>
2026-11-06 07:28:20 -06:00
rUvandr b9f32453f3 feat(plugins): agentdb 3.4, ruvllm 4.1 runtime, sublinear-core, injection guard in plugins + marketplace pins (#4843)
* feat(plugins): ecosystem releases in agentdb, ruvllm, aidefence, intelligence, graph-intelligence + marketplace pins

ruflo-ruvllm 0.4.0: new ruvllm-runtime skill telling apart ruvllm-wasm (MCP
tools), @ruvector/ruvllm ^4.1.0 (restored SonaCoordinator/LoraAdapter/
TrainingPipeline runtime) and @ruvector/ruvllm-gpu-loop 1.1.x; warns off the
wrong-repo 4.0.x. ruflo-agentdb 0.4.12: agentdb 3.4 capabilities (pathfinder
dynamic-mincut, AGENTDB_INJECTION_GUARD, where RaBitQ lives for ruflo), and
the agentdb-specialist ruvector pin line from #4842. ruflo-aidefence 0.3.4:
agentdb guard + agentic-flow prompt_injection_scan. ruflo-intelligence 0.4.6:
learning-wasm / ruvllm 4.1 backends, links lora-learning and fast-code-edits.
ruflo-graph-intelligence 0.3.0-alpha.1: declared solver dep
sublinear-time-solver -> @ruvnet/sublinear-core (never imported; lockfile
1,015 -> 77 packages; tsc + vitest 104/104), new sublinear-core skill,
supply-chain allowlist updated.

Marketplace: external agentdb -> plugin-v3.4.0 (agentdb@3.4.0); external
agentic-flow -> aa5b11e (plugin 3.3.0, agentic-flow@3.3.0, ecosystem tools).

ruflo-ruvector is left to #4842; additions on top follow after it merges.
The six CLI ecosystem skills are linked, not duplicated; no v3/ changes.

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix(plugins): keep the two new skill descriptions under 300 chars (ADR-507)

Co-Authored-By: claude-flow <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-11-06 07:28:16 -06:00
rUvandr 459dea5a55 feat(ruflo-ruvector): pin ruvector 0.3.13 — DiskANN CLI/MCP, RaBitQ hook recall; drop MCP tools the server never had (0.4.1) (#4855)
Follows #4842. Smoke 14/14 against 0.3.13; DiskANN build + search round
trip run with the diskann extra. 0.3.13 registers 118 MCP tools (adds
diskann_build, diskann_search) and moves to @ruvector/attention ^2.2.3
(GHSA-p62c-q7fc-qmg9) and @ruvector/sona ^0.1.11. The agent listed
sona_*, attention_* and gnn_* MCP tools that ruvector never registered;
they are CLI-only. Documents ruvector add extras and
RUVECTOR_RABITQ_THRESHOLD. Removes the benchmark limitation, which no
longer reproduces.

Co-authored-by: r <r@x>
2026-11-06 07:17:36 -06:00
randRuFlo 357c06dfa0 test(plugins): smoke contracts expect ruflo-agentdb 0.4.12 and ruflo-browser 0.3.8
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-05 22:42:49 -05:00
randRuFlo 13432299e5 fix(plugins): keep history in comments, hint on an uncached pin, scope the verified claim
- browser-session-tools / neural-tools: comments keep the versions they
  describe (#2015 was found on 0.2.25; ONNX bundled since 0.2.27). The
  embedder label no longer hardcodes a version the ^0.3.11 range may not
  resolve to.
- Console vector page: npx --offline with only an older pin cached printed a
  bare ENOTCACHED. The result now starts with the command that fixes it.
  Spec added.
- ruflo-ruvector README: the "since 0.3.3" table says which rows were run.
  The two MCP gates were exercised over stdio (refused without the variable,
  allowed with it); 0.3.10/0.3.11 come from release notes. /vector-setup says
  to re-register the server after upgrading.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-05 22:29:05 -05:00