10634 Commits
Author SHA1 Message Date
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>
v3.80.3
2026-11-23 14:17:00 -05:00
171ab4550f dream(memory): ReasoningBank never enforces its own contradiction-exclusion flag (evaluated, ACCEPT) #5081 (#5082)
* dream(memory): #5081 ReasoningBank never enforces its own contradiction-exclusion flag

detectContradictions() marks the lower-quality side of a contradicting
memory pair consolidated=true ("to exclude from retrieval"), but
retrieve()/retrieveByContent() never checked that flag. Add the filter
in both read paths; byte-identical for any entry never flagged.

Independently corroborated by two research roles (external-literature
review and pure code review) before either saw the other's output, and
independently reproduced by a fresh-context adversarial critic. 184/184
full @claude-flow/neural suite, tsc clean, 0 regressions. Darwin skipped
(binary guard, no tunable parameter, precedent: 2026-11-14).

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

* docs(dream-cycle): fill in 2026-11-23 gist witness block

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

* docs(dream-cycle): append 2026-11-23 ledger row (#5081/#5082)

Also records direct verification of the 2026-11-19..22 no-run gap and
that #4973/#4983/#5012/#5034 were batch-integrated via #5041 (merged
2026-11-19), not rejected.

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

* fix(neural): skip consolidated memories while gathering candidates (#5081)

Filtering after candidate selection let an HNSW hit list made only of
consolidated entries return nothing instead of falling back to brute force,
and counted it as an HNSW retrieval.

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

* chore(neural): publish 3.1.2 and pin it (#5081)

The ReasoningBank fix lives in a non-bundled leaf; @claude-flow/neural 3.1.2 is
published standalone so the train carries it.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: r <r@x>
2026-11-23 13:56:07 -05:00
rUvandr dba3a947a8 fix(doctor): Version Freshness compares against latest, not the frozen alpha tag (#5079) (#5086)
doctor asked npm for @claude-flow/cli@alpha, frozen at 3.75.2 since ADR-513, so
every version from 3.75.2 on reported "up to date". Query @latest, the tag its
fix advice installs. The federation fix advice installed the frozen @alpha
(1.0.3; latest is 1.0.7); point it at @latest too.

Co-authored-by: r <r@x>
2026-11-23 13:54:57 -05:00
rUvandr c4e05f5bd3 chore(release): 3.80.2 (#5078)
Fixes since 3.80.1:
- #5076: a crash between creating and writing the policy state lock left an
  empty state.lock that failed every MCP tool call (Codex's guidance_brain and
  memory_search included) with policy-state-lock-timeout. The lock is now
  published whole with link(), and a stuck lock names its cause and path.
- #5077: Codex parsed the hook handler's `[INFO]`/`[OK]` reports as JSON
  ("invalid user prompt submit JSON output"); under a Codex payload the
  handler now emits hook JSON (additionalContext) or nothing on stdout.

Re-signed helpers.manifest.json.

Co-authored-by: r <r@x>
v3.80.2
2026-11-23 13:20:35 -05:00
rUvandr 326687da9b fix(policy): never leave an empty state.lock; say how to recover a stuck one (#5076)
* fix(policy): never leave an empty state.lock; say how to recover a stuck one

acquireLock created state.lock and then wrote its owner into it. A process
that died in between (a reboot, SIGKILL, OOM) left an empty lock that names
no owner, so it can never be reclaimed: every MCP tool call, Codex's
guidance_brain and memory_search included, waited 5 s and failed with a
bare policy-state-lock-timeout. Seen live: a 0-byte lock from a previous
boot blocked the project for five days.

- The owner is written to a private temp file first and link() publishes
  the lock whole (EEXIST when held, never follows a symlink). Windows and
  filesystems without hard links keep create-then-write, which now removes
  its own lock if the write fails.
- A timeout against an owner that can never be identified (empty, unreadable,
  another host, an earlier boot, another PID namespace) now says which, its
  age, and the path to remove. A live owner keeps the bare message, which the
  console retries.
- Unknown owners are still never taken over automatically.

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

* test(mcp-tools-deep): give the in-memory fs fake linkSync for the atomic lock

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

---------

Co-authored-by: r <r@x>
2026-11-22 22:32:29 -05:00
rUvandr dd233e6055 fix(hooks): keep Codex hook stdout valid JSON (#5077)
* fix(hooks): keep Codex hook stdout valid JSON (invalid user prompt submit JSON output)

Codex reads a hook's stdout as hook JSON when it starts with `{` or `[`.
hook-handler.cjs reports in lines like `[INFO] Routing task` and
`[OK] Edit recorded`, so under Codex every UserPromptSubmit failed with
"invalid user prompt submit JSON output", and PostToolUse/SubagentStop the
same way. #3163 fixed this for auto-memory's Stop hook only.

Under a Codex payload (it carries turn_id, as in #3163) the handler now
collects what it logs and writes it once at exit: as
hookSpecificOutput.additionalContext for UserPromptSubmit and SessionStart,
so the routing report still reaches the model, and on stderr for every other
event, leaving stdout empty. Claude Code payloads are unchanged. pre-bash
keeps its own blocking protocol. Same change in the generated fallback.

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

* chore(helpers): re-sign the helper manifest for the Codex stdout change

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

---------

Co-authored-by: r <r@x>
2026-11-22 22:09:02 -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 cff5bce451 chore(release): 3.80.1 (#5073)
Security and bug fixes since 3.80.0: #5061, #5062, #5063, #5068, #5071,
#5060, #5064 (cli) and #5057 (x-gateway, deployed separately). Re-signed
helpers.manifest.json.

Co-authored-by: r <r@x>
2026-11-22 15:45:44 -05:00
rUvandr 6104acc82e fix(update): never load package files from the working directory (3.80.1) (#5072)
getInstalledVersion() resolved <pkg>/package.json with paths: [process.cwd()]
and loaded it with require(). A package's exports map can point
./package.json at a .js file, so a node_modules/@claude-flow/security (or
embeddings, integration, testing) committed to a cloned repository ran inside
the CLI on the startup update check of almost any command.

Resolve from the CLI's own install only and read the file with JSON.parse,
so nothing is executed. Adds update-checker-cwd-hijack.test.ts (fails on
3.80.0, passes here); the 4755 opt-in test now also mocks the file read.
Release 3.80.1 (helpers manifest re-signed).

Co-authored-by: r <r@x>
v3.80.1
2026-11-22 15:43:49 -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
243adcbc36 fix(daemon): gate workers on available memory on macOS (#2935) (#5064)
On Darwin, os.freemem() counts only free and speculative pages. The kernel
keeps reclaimable file cache on the inactive queue, so an idle Mac reads as a
few percent "free" and the worker daemon defers almost every worker.

The memory gate now measures available memory on Darwin from vm_stat as
(free + speculative + inactive) x page size, clamped to totalmem, with the
page size read from vm_stat's own header (16 KiB on Apple Silicon). Purgeable
pages are not added because they already sit on other queues. Linux and
Windows keep os.freemem() unchanged.

vm_stat runs without a shell, with a 1 s timeout; concurrent checks share one
probe and results are cached for 5 s. If the probe fails the gate falls back
to os.freemem() and logs that once per daemon. Threshold defaults are not
changed.

Refs #2935

Co-authored-by: Lenin Mookiah <2639584+leninworld@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:23:44 -05:00
Andrew Chen 4be918c6f2 fix(memory): honour minConfidence 0 in bridgeSearchPatterns (#5060) 2026-11-22 15:23:38 -05:00
rUvandr e86f3dd321 fix(memory): search and read-only list fallbacks never write the store (#5065) (#5071)
The sql.js fallbacks behind memory_search and memory_search_unified took
memory.db.lock and could migrate the schema on every call (via
ensureSchemaColumns), opened and wrote hnsw.index, and wrote
rabitq.meta.json when a search built the RaBitQ pre-filter.

- readOnlySchemaError(): probes PRAGMA table_info on the loaded image, no lock;
  a store that needs migrating is refused with an error naming the fix.
- searchEntries: uses the probe, searches an HNSW index only if this process
  already opened one, and builds RaBitQ in memory without its meta file.
- listEntries({ readOnly: true }): no lock, no migration, no native-handle
  release; memory_search_unified passes it. Other listEntries callers keep
  the migrating path.

Co-authored-by: r <r@x>
2026-11-22 14:46:08 -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
ordinary being 1ca8b28cd1 fix(agentbbs): refuse symlinked state files (#5063)
.agentbbs is project-local and can be committed by a cloned repository. The identity, peer registry, room registry and room logs were read and written with path-following APIs, so a symlink shipped in the repo could make addPeer/register/publish/sync create or overwrite a file outside the project, or make serve/watch read one.\n\n- ensureAgentbbsDir refuses a symlinked or non-directory basePath.\n- assertRegularStateFile lstat-checks identity, peers, rooms.json and room logs before read/write; symlinks and special files fail closed.\n- getNodeIdentity creates with 'wx', so a dangling symlink is refused rather than followed, and re-reads a concurrent creator.\n- writePeers writes a temp sibling and renames, so a crash cannot leave a truncated peer registry that readPeers would treat as an empty, unpinned list.\n- agentbbs-tools reuses the same checks before nextSeq/readEnvelopes/registry read/append.\n\nRegression tests create real symlinks in temp dirs. On Linux the four federation cases fail against the pre-change source (victim overwritten, dangling target created, room log appended, symlinked basePath accepted) and pass with the change; the tools nextSeq case passes too.
2026-11-22 14:45:56 -05:00
Dragan SpiridonovandRuflo & AQE 6b7f267abe fix(hooks): redact Google, Cognitum and header/query-string keys in recorded commands (#5062)
* fix(hooks): redact Google, Cognitum and header/query-string keys in recorded commands

redactCommandForStorage (#4056) caught Authorization headers, --token flags,
*_TOKEN= assignments and well-known token shapes, but stored these verbatim:

- Google API keys (AIza…, 39 chars) — Firebase/identitytoolkit ?key= calls and
  Gemini keys;
- Cognitum API keys (cog_…);
- keys sent in x-api-key / X-Goog-Api-Key / x-auth-token headers;
- ?key= / &api_key= query-string credentials.

Adds two rules and two shapes; each is bounded like the existing ones, and the
hostile-input test covers the new prefixes. 8 new cases: 7 fail on main, all
35 pass with the fix. Fixtures are built by concatenation so secret scanners
do not flag them (gitleaks: no leaks in the diff).

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

* fix(hooks): close quoted-value and form-body leaks in command redaction

Review follow-up for the recorded-command redactor:

- header and Authorization rules accept a quoted value, so object-literal
  headers ({"x-api-key":"..."}) no longer leak
- new JSON/object-literal rule for api_key/apiKey/access_token/auth_token
  and quoted bare 'key'
- form bodies: api_key=/apikey= after whitespace or a quote, and bare key=
  after -d / --data*
- more header names (apikey, api-key, Ocp-Apim-Subscription-Key,
  Private-Token, X-Auth-Key, x-access-token) with an optional scheme;
  a colon is still required, so `grep -rn x-api-key src` is untouched
- cog_ keys matched as cog_ + 64 lowercase hex with hex lookarounds:
  catches prefix_cog_<hex>, leaves cog_SomeIdentifier alone
- bare ?token= no longer redacted (pagination cursors); ?key= kept on
  purpose and pinned by a test
- flag rule needs a non-word, non-dash char before its dash, so it no
  longer fires inside x-api-key (kept the colon of "x-api-key :v")
- negative tests with exact output; hostile-input test extended

Co-Authored-By: Ruflo & AQE
Claude-Session: https://claude.ai/code/session_01GLQCdgnsuwts6j51rwcqgB
2026-11-22 14:45:49 -05:00
rUvandClaude 19af6d8acb fix(security): unsigned content in agentbbs federation envelopes (#5061)
The canonical bytes an envelope signature covers were built by assigning
payload keys onto a plain object. An own `__proto__` key set the prototype
instead, so that key and its subtree dropped out of the signed bytes while
still being stored and re-served as the origin's content. Merge also stored
every top-level field of an incoming envelope, including fields the
signature does not cover.

- canonicalEnvelopeBytes refuses a payload containing a `__proto__` key,
  so verification fails and signing throws.
- mergeEnvelopes stores only the signed fields plus signature and hops.
- New test: agentbbs-federation-signed-coverage.test.ts (5 cases; all fail
  before, pass after).


Claude-Session: https://claude.ai/code/session_01MfPHVJbk1daZwNMDkX4iAC

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-22 14:45:42 -05:00
rUvandr f203a8d2e7 fix(bridge,ruvocal): harden request handling and outbound connection checks (#5069)
* fix(bridge,ruvocal): harden request handling and outbound connection checks

mcp-bridge (both copies): reject malformed chat request bodies with 400,
route async handler errors to an error middleware, tolerate unexpected
upstream tool-call shapes, and fail pending calls cleanly when a stdio
backend exits. Adds runtime regression checks R8-R10.

ruvocal: check IP-literal hosts when a connection opens, not only
resolved hostnames, and align the reserved address ranges with the
bridge's url-guard.

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

* fix(ruvocal): check configured MCP servers with their configured headers

The health check sent no headers for operator-configured servers, so a
bridge that requires a token was reported as unavailable. Use the
configured headers when the request supplies none, as mergeMcpServers
already does for the chat flow.

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

* fix(bridge): log route errors without a request-derived format string

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

---------

Co-authored-by: r <r@x>
2026-11-22 11:16:28 -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>
v3.80.0
2026-11-20 22:21:35 -05:00
ordinary being 6822e67d69 fix(agentbbs): advance federation sync per origin (#5031) (#5052)
A room log interleaves envelopes from multiple origins, and each origin numbers its own seq. syncRoomFromPeer stored one room-wide max and sent it as since, so after merging an origin with a high seq, a later envelope from another origin with a lower seq was skipped by the next incremental pull.\n\n- Track per-origin high-water marks in FederationPeer.lastSeqByOrigin and send them as a JSON since cursor.\n- Teach serveFederation to parse that cursor while retaining the numeric since form for older clients; malformed or oversized cursors are rejected with 400.\n- Report acceptedByOrigin from mergeEnvelopes. Duplicates use the stored envelope's origin/seq, so a duplicate cannot move another origin's cursor.\n- Start a legacy peer's first per-origin sync from 0: an old room-wide cursor may already have skipped envelopes and is not a safe baseline.\n- Tests cover interleaved origins, a new origin with no cursor entry, numeric and malformed cursors, and duplicate-origin poisoning.
2026-11-20 21:16:07 -05:00
rUvandr 662796a974 fix: openrouter-alts resolves from the package (#4957); single winner on stale ledger lock (#5025) (#5038)
* fix(cli): resolve openrouter-alts.json from the package (#4957)

loadOpenRouterAlts() probed only process.cwd(), and the file was not in the
CLI's files allowlist, so an npm install never loaded the ADR-148 per-tier
OpenRouter alternates. Resolve it relative to the module (import.meta.url,
as neural-router.ts does), keep the cwd probes as a dev fallback, and ship
the file.

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

* fix(cli): only one waiter breaks a stale managed-agent ledger lock (#5025)

Breaking a stale lock was lstat -> unlink, so two waiters that saw the same
dead lock could both break it: the second unlinked the fresh lock the first
had just taken, and two writers raced their read-modify-rename. Breakers now
serialise on <lock>.reclaim and re-check the lock's identity and age under
it, as policy-runtime.ts reclaimDeadLock does. Release removes the lock only
if it is still the file this writer created.

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

---------

Co-authored-by: r <r@x>
2026-11-20 21:16:01 -05:00
rUvandr 6da74f2874 fix(cli): statusline tips and examples name commands that exist (#5042)
Four seed statusline tips described their commands wrongly:
- `ruflo status watch`: watch is the --watch flag. The positional was
  ignored and status printed once. Now `ruflo status --watch`.
- `doctor --fix` "auto-repair": --fix prints suggested commands and
  applies nothing. Reworded.
- `hooks route` "3-tier model routing cuts token cost 30-75%": hooks
  route suggests an agent type for a task (model tiers are
  `hooks model-route`), and the percentage has no source in the docs.
  Reworded, number dropped.
- `security scan --depth deep` "audits dependencies and config": the scan
  checks dependencies (npm audit), hardcoded secrets and code patterns.

Help examples:
- `memory store -k ... -v "..."`: -v is the global --verbose. The value
  only landed through the positional fallback, with verbose switched on.
  Now --value.
- `status --json`: not a declared option. The action reads
  --format json, so the example printed text. Now --format json.

Message ids and URLs are unchanged. New test
funnel-messages-commands.test.ts resolves every educational tip against
the real Command objects. `adr index` is exempt: there is no `adr` CLI
command, which is left for a separate fix.

Co-authored-by: r <r@x>
2026-11-20 21:15:54 -05:00
rUvandClaude 69e24c392e fix(security): prototype pollution in codex config.toml validator (#5051)
parseToml looked up section headers on a plain object, so a [__proto__]
or [constructor] header in an untrusted config.toml resolved to a shared
built-in and the following key = value lines were written onto it. Use
null-prototype maps for the parsed data and its sections, check own
properties only, and replace non-object values instead of writing onto them.


Claude-Session: https://claude.ai/code/session_01MfPHVKgRKN2gU6psLP1NGd

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-20 21:15:48 -05:00
rUv 4a80b5af8c feat(cli): opt-in signed SIM handoff ingestion (metaharness sim-ingest) (#5054)
* feat(cli): opt-in signed SIM handoff ingestion (metaharness sim-ingest)

Consumes metaharness.sim.handoff.v2 envelopes (ruvnet/metaharness#524).
An independent Node-crypto verifier checks the Ed25519 signature over
canonical JSON, a trusted key set, the key-to-tenant binding, freshness
and that every record belongs to the tenant. Verified evidence is stored
under sim:<owner>/<repo> in a dedicated .claude-flow/sim/sim-memory.db,
separate from task-agent memory, via the real memory-initializer API.

Disabled until .claude-flow/sim/trusted-keys.json sets enabled:true.
Idempotent on the content-derived event id; revoke-event leaves a
tombstone, revoke-key deletes its events and marks it revoked; reads
re-verify each row; every decision goes to an id/hash-only audit log.

Refs ruvnet/metaharness#524

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

* fix(cli): harden sim-ingest revocation, retention and store separation proof

- revoke-key confirms each row's signer before deleting instead of
  trusting the store's tag filter (two-keys-one-tenant test with the tag
  filter ignored).
- Retention runs from the producer's createdAt; a replay after it has
  elapsed is rejected (retention_elapsed) rather than re-stored.
- An insert that collides with a soft-deleted or expired row reclaims it
  (tombstones are checked first); covered on the real store by re-signing
  revoked-key content with a second trusted key.
- Real-store test now points CLAUDE_FLOW_DB_PATH at a real task-agent db
  and proves it holds no sim: rows and that search finds only task notes.

Refs ruvnet/metaharness#524

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-20 16:38:07 -05:00
rUvandr 3c2ae91170 fix(release): absolute README URLs on npm pages + release 3.79.1 (#5053)
* fix(release): absolute README URLs on the ruflo and @claude-flow/cli npm pages

npmjs.com resolves relative README URLs against repository.directory, so on
the ruflo page docs/assets/x.svg became raw.githubusercontent.com/.../HEAD/
ruflo/docs/assets/x.svg: 41 of 51 images and every relative link 404ed. The
@claude-flow/cli page had the same problem. claude-flow publishes from the
root and was unaffected.

The release workflow now stages both subdirectory READMEs through
scripts/readme-absolute-urls.mjs, which rewrites relative images to
raw.githubusercontent.com and relative links to github.com/blob, pinned to
the commit being published. Both prepare-publish scripts use it too. Also
fixes the README's Verification link (verification.md moved to
verification/README.md in May).

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

* chore(release): 3.79.1

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

---------

Co-authored-by: r <r@x>
v3.79.1
2026-11-20 08:34:42 -05:00
rUv 6c6293dab6 Remove the ADR navigation text below the ruPro hero 2026-11-19 21:15:15 -05:00
rUv d06af9a2a3 Refresh the ruPro workflow explanations in the README tour 2026-11-19 20:56:59 -05:00
rUv 6f847a38eb Explain ruPro workflows through the decisions reviewers make 2026-11-19 20:56:57 -05:00
rUv bf16f0adaf Display the 14-scene ruPro workspace tour 2026-11-19 20:51:31 -05:00
rUv 9805ab269d Add ruPro project monitoring, browser preview and capacity planning scenes 2026-11-19 20:51:29 -05:00
rUv c9e5af0d15 Publish the 3D learning graphs in the README tour 2026-11-19 20:47:49 -05:00
rUv 113587b52a Visualize agent swarms, vector recall and self-improvement in three dimensions 2026-11-19 20:47:48 -05:00
rUv 59144db090 Publish the ruPro tour with animated agent identities 2026-11-19 20:45:06 -05:00
rUv fadb6ccac4 Animate each ruPro learning scene and identify Claude, Codex and Copilot 2026-11-19 20:45:05 -05:00
rUv b7d1345e1b Refresh the README tour with redesigned scene layouts 2026-11-19 20:41:38 -05:00
rUv 86961c5aa5 Give ruPro memory, payment and ADR scenes distinct visual layouts 2026-11-19 20:41:37 -05:00
rUv 551c5cae41 Remove the scene link row beneath the ruPro tour 2026-11-19 20:38:33 -05:00
rUv b8f391fa72 Show active slide progress inside the ruPro animation 2026-11-19 20:38:32 -05:00
rUv 65d96a0486 Link the ADR and self-learning sequence from the README 2026-11-19 20:25:38 -05:00
rUv f9be6de006 Illustrate how architecture decisions guide and evolve through agent memory 2026-11-19 20:25:37 -05:00
rUv d398f090b2 Link the eight-scene ruPro tour and its new slides from the README 2026-11-19 20:23:20 -05:00
rUv a10f84afb2 Extend the ruPro tour with three payment review scenes 2026-11-19 20:23:18 -05:00
rUv 359b08710c Surface the memory recall slide below the hero on all screen sizes 2026-11-19 20:17:13 -05:00
rUv ae01647c4e Make the memory recall scene directly addressable 2026-11-19 20:17:12 -05:00
rUv 18db80ab70 Link the five-scene mobile workspace tour 2026-11-19 20:15:14 -05:00
rUv 00de4eafea Show cross-project lesson recall before replay analytics 2026-11-19 20:15:12 -05:00
rUv e9e7eadf10 Publish the four-tab mobile workspace preview 2026-11-19 19:14:05 -05:00
rUv e9ed9c3926 Match the mobile ruPro tour to the teal four-tab workspace 2026-11-19 19:14:03 -05:00
rUv 5d22f45da2 Feature the self-improving agent walkthrough on mobile 2026-11-19 18:22:04 -05:00