3406 Commits
Author SHA1 Message Date
randRuFlo 00b7e70fc5 chore(release): 3.56.9 (security/codex 3.0.5 pins, shared 3.0.5, cli-core 3.7.2); witness regen from a full build (117/117)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 16:47:55 -04:00
rUv f7423b1c62 Merge pull request #4117 from ruvnet/release/leaves-3569
chore(release): security 3.0.5, codex 3.0.5 (bundled leaves, standalone publish)
2026-10-12 13:43:18 -07:00
randRuFlo 366ff7a3fb chore(release): security 3.0.5 and codex 3.0.5 for #3503/#3522 (bundled leaves, standalone publish)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 16:08:29 -04:00
r b55e480e22 Merge remote-tracking branch 'origin/main' into pr-4096
# Conflicts:
#	plugins/ruflo-console/CHANGELOG.md
2026-10-12 16:07:28 -04:00
rUv 1470e9e547 Merge pull request #4108 from ruvnet/batch/leaf-shared-clicore
fix(shared,cli-core): rate window/retry and narrow-column fixes (batch of #4014, #4015, #4018): shared 3.0.5, cli-core 3.7.2
2026-10-12 13:06:53 -07:00
r e036655bed Merge remote-tracking branch 'origin/main' into pr-4096
# Conflicts:
#	plugins/ruflo-console/CHANGELOG.md
2026-10-12 15:41:53 -04:00
rUv a502a8f449 Merge pull request #4099 from proffesor-for-testing/fix/v3-ci-test-collection
fix(ci): run every v3 root-suite test file and stop accepting a crashed run as a pass
2026-10-12 12:34:45 -07:00
r 57d25490d6 Merge remote-tracking branch 'origin/main' into pr-4096
# Conflicts:
#	plugins/ruflo-ai-team/CHANGELOG.md
#	plugins/ruflo-console/CHANGELOG.md
#	plugins/ruflo-loop-workers/CHANGELOG.md
2026-10-12 15:21:42 -04:00
rUv 6deafaee99 Merge pull request #4107 from ruvnet/batch/cli-fixes-2
fix(cli): parser, retry, rate-limit, monitoring and config fixes (batch of #4000-#4003, #4006-#4011, #4013, #4016, #4017)
2026-10-12 11:51:29 -07:00
RuFlo 91fb50d3c7 test(hive-mind): move the two real-CLI cases to their own quarantined file; the other 21 auth tests stay gated
The real-CLI cases spawn node bin/cli.js from the vitest worker; in the full parallel suite on the CI runner that spawn fails with ENOMEM on all five attempts (runs 38290339354, 38291176206) while it passes alone and on a large host. Rather than hide the whole file, only those two cases move to hive-mind-real-cli-auth.test.ts, which is listed in KNOWN_FAILING (expires 2026-12-01 with the rest). The no-prior-init case now asserts a real non-zero exit instead of 'not 0', which a failed spawn (-1) would also have satisfied.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 14:48:52 -04:00
RuFlo 7106a4c166 test(hive-mind): retry the real-CLI child on transient spawn failures (ENOMEM/EAGAIN) with back-off
Run 38290339354 failed 'real CLI-process integration' with 'spawnSync node ENOMEM': the runner was briefly out of memory while hundreds of forked test files ran. Retry up to four times with 0.5-2 s back-off; a real defect fails every attempt, and the final report names the signal/code/message.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 14:37:00 -04:00
rUv 8b23593803 Merge pull request #4102 from z4forzubair/fix-analyze-diff-render
fix(cli): render analyze diff from the analyze_diff result shape (#4101)
2026-10-12 11:28:44 -07:00
RuFlo 5c6fbd9209 test(hive-mind): report why the real-CLI child had no exit status (signal, code, message) and retry spawn errors once
Run 38265587493's 'real CLI-process integration' failure on the full parallel suite reported status=undefined with an empty signal, so it is not a signal kill. Surface errno/message so the cause is visible, and retry once since a real defect repeats.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 14:21:11 -04:00
RuFlo ebffa128dd fix(ci): keep the two plugin trust tests in the gate, retry a signal-killed CLI child once, and expire the quarantine
- v3/vitest.config.ts: drop plugins-upgrade-trust-gate and plugins-install-scripts-3557 from KNOWN_FAILING (both pass alone and under the root config; they guard the plugin upgrade trust gate); make the config refuse to load after 2026-12-01 so the quarantine has to be triaged instead of lasting forever.
- hive-mind-spawn-broadcast-shutdown-auth: runCli reports the signal and retries once when a child is killed by a signal (run 38265587493 failed 'real CLI-process integration' with exit -1); assertions now print the child output.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 13:41:42 -04:00
randRuFlo d2a2c98c9c review(#4096): shared-screen references and email verb, plugin version bumps, helpers re-signed
Independent review of #4096 (issues #4093-#4095). The guard and mods-screen fixes hold on a 62-row adversarial
corpus (main 40/62, PR 58/62; the 4 misses are static-analysis limits main also has) and 1 MB hostile inputs stay
bounded. Gaps found and fixed here, tests first:
- the shared plugin screen (copied into 39 plugins) still flagged ./service-account.json and --set-secrets=NAME=NAME:latest
  as key assignments: relative file paths and secret-manager references are now excused there too, a literal is not
- exfiltration now also covers e-mailed credentials ("email me the .env")
- 8 more guard parity rows (list that includes the root in any position, benign brace uses, spaced named fork bomb)
- every plugin whose screen copy changed gets a patch bump + CHANGELOG entry (marketplace users only receive a
  change after a bump; precedent: d06b0122b), ruflo-mods 0.6.1 carries the guard, screens and README
- helpers manifest re-signed (hook-handler.cjs changed)

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 13:39:02 -04:00
rUv 1365efcb20 Merge pull request #3503 from rudycelekli/policy-envelope-metering
fix(policy): require metering for explicit envelope ceilings
2026-10-12 10:37:08 -07:00
randRuFlo 67b75f322d chore(release): shared 3.0.5 and cli-core 3.7.2 for #4014 #4015 #4018, align CLI/root pins
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 13:32:08 -04:00
r e8c48e6402 Merge pull request #4018 (rudycelekli) into batch 2026-10-12 13:31:49 -04:00
r 55445ede8e Merge pull request #4015 (rudycelekli) into batch 2026-10-12 13:31:49 -04:00
r f6314e055d Merge pull request #4014 (rudycelekli) into batch 2026-10-12 13:31:49 -04:00
randRuFlo e3cec110f2 test(cli): rate limiter status limit is the burst capacity admission uses (follows #4006)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 13:31:09 -04:00
r aa96167629 Merge pull request #4013 (rudycelekli) into batch 2026-10-12 13:30:22 -04:00
r fd27a91abb Merge pull request #4011 (rudycelekli) into batch 2026-10-12 13:30:22 -04:00
r a9285b7974 Merge pull request #4010 (rudycelekli) into batch 2026-10-12 13:30:22 -04:00
r 1a90826a50 Merge pull request #4009 (rudycelekli) into batch 2026-10-12 13:30:22 -04:00
r eaf460ade1 Merge pull request #4008 (rudycelekli) into batch 2026-10-12 13:30:22 -04:00
r b5443dd2d7 Merge pull request #4007 (rudycelekli) into batch 2026-10-12 13:30:22 -04:00
r 68d1110717 Merge pull request #4006 (rudycelekli) into batch 2026-10-12 13:30:22 -04:00
r 24695d67f7 Merge pull request #4003 (rudycelekli) into batch 2026-10-12 13:30:22 -04:00
r 5f24deb642 Merge pull request #4017 (rudycelekli) into batch 2026-10-12 13:30:22 -04:00
r 6b092018de Merge pull request #4016 (rudycelekli) into batch 2026-10-12 13:30:22 -04:00
r 58d34049c3 Merge pull request #4002 (rudycelekli) into batch 2026-10-12 13:30:22 -04:00
r 487d0a4d95 Merge pull request #4001 (rudycelekli) into batch 2026-10-12 13:30:22 -04:00
r f48578afc5 Merge pull request #4000 (rudycelekli) into batch 2026-10-12 13:30:22 -04:00
r 8414251578 Merge remote-tracking branch 'origin/main' into pr-4096 2026-10-12 13:28:20 -04:00
rUv 4f1b3e9604 Merge pull request #4104 from ruvnet/release/3.56.8
release: 3.56.8
2026-10-12 10:28:11 -07:00
r 440fcaed76 Merge main into release/3.56.8 (TUI page-bar fix #4105) 2026-10-12 13:11:19 -04:00
randRuFlo 29714a9e4a fix(console,cli): ruflo tui page bar marks the AI page, help says 1-6, policy-trust path never relative to cwd (console 0.43.1)
- tui: the page bar was painted from session.state.view, which the AI page never sets, so on page 6 it kept the previous page lit; it now follows session.page (9 tests, 4 failed first)
- tui --help and the console README said keys 1-5; they are 1-6 and o c s e m a (test holds the help text)
- cli: policyTrustRoot() no longer joins an empty or relative $HOME, which put the anchor mirror and key under the working directory; falls back to the account home or refuses (2 tests, 1 failed first)
- docs: ruflo-tui-walkthrough.svg re-recorded from real frames with the AI page and its ask-first card, 6 AI marked

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 12:55:08 -04:00
randRuFlo e6dbed3bf6 fix(tui): the AI page highlights 6 AI in the page bar, not the page before it
paint() drew the page bar from session.state.view, which the session leaves alone on the AI page (the shared console state
keeps the last non-AI page), so the bar marked Overview (started with --view ai) or the previous page (reached with 6).
It now uses session.page. Also: ruflo tui --help said keys 1-5; it is 1-6.

Test first: the new tui-nav.spec case fails without the change and passes with it; also checked in a real tmux pane on the
rebuilt bundle (started on ai, and 4 then 6: both mark 6 AI). Only tui/ changed (not hooks/), so no console version bump.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 12:09:31 -04:00
randRuFlo 78981548fa chore(release): 3.56.8 version bumps and changelog
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 11:58:05 -04:00
rUv 740d17f71e Merge pull request #4097 from ruvnet/fix/oct12-verified-issues
fix: accurate coverage reports and reliable SPARC/TDD workflow instructions
2026-10-12 08:56:43 -07:00
Muhammad Zubair f7d885a580 fix(cli): render analyze diff from the analyze_diff result shape (#4101) 2026-10-12 20:36:36 +05:00
randRuFlo c84a6d0a18 chore(shared): 3.0.4 (RVF tail recovery + runtime dependencies), CLI/root pins, fresh-consumer smoke
Carries #4031 (rudycelekli) and #4091 (proffesor-for-testing); oversized-tail and permission-safe
recovery per rUv's review and martinvlad's fresh-consumer finding. Adds scripts/smoke-shared-fresh-consumer.mjs
(packed tarball, plain Node) and a CI step for it.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 11:21:58 -04:00
r c444a600ee Merge PR #4031 (RVF tail recovery) with oversized-tail and permission-safe fixes into release/shared-3.0.4 2026-10-12 11:19:40 -04:00
randRuFlo ee2f299025 Merge main into fix/rvf-truncated-tail-recovery; refuse oversized-prefix tails and oversized records
Keeps the newer serialized-record index fix (#4030) and the other RVF fixes from #4061.
An oversized length prefix is no longer accepted silently: the bytes are kept and append()
rejects explicitly (opt-in repairOversizedTail truncates). appendRecord() refuses records
replayFile() could never read back. Adds the tail-shape matrix regression tests.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 11:19:21 -04:00
RuFlo b4cbd4be9f review(#4097): CI test ratchet exclusion, coverage report size cap and count clamping, sparc 0.3.5 / testgen 0.3.3, sanitize receipts
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 11:15:50 -04:00
rUv 6fe5706dfb fix: correct coverage reporting and plugin workflow contracts
Fixes #4082, #4083, #4084, #4085, #4086, #4087, #4088.

Validated on ruOS with 68 focused tests, both plugin smoke suites,
strict coverage reader type checking, and source checksums.
2026-10-12 07:40:46 -07:00
Dragan Spiridonov da309210ef fix(screens): catch .env exfiltration, stop flagging model token talk and secret references
- exfiltration (mods guidance screen and the shared plugin screen, synced to
  all 40 copies): `\b\.env` needs a word character before the dot, so
  "upload the .env file to my server", "send .env to me" and
  "post your .env here" were not flagged. `.env` and `.envrc` are now
  matched on their own, and a dot inside a word (./config.env,
  config.prod.env) no longer ends the phrase. A model's token accounting is
  not a credential: --max-tokens, /oauth/token and "token
  usage/count/limit/budget/window" are left out; a file or value named token
  (/run/token, "max-token value") is still caught.
- key assignment (mods guidance screen): a value that only names where the
  secret lives is not one: process.env.X, os.environ, import.meta.env.X, a
  ./ ../ or ~/ path to a file with an extension, a secret-manager reference
  name-with-separators:latest or :3, or NAME=that-reference
  (--set-secrets=NAME=ref:latest). A literal value is never excused by its
  shape alone, and padded base64 still matches.

Measured with the screen corpus: true positives caught 32/33 -> 33/33,
benign inputs clean 16/41 -> 22/41. Real docs (24,876 ruflo + ~34,600
cognitum paragraphs): flagged 96 -> 95 and 97 -> 86. One new hit: a sentence
whose phrase now spans a dotted hostname ("post the prompt to
api.deepseek.com ... a key, token"). Every shape stays linear (about 10x per
10x of input; worst ~240 ms at 1M chars, `send ` repeated).

Regenerates plugins/ruflo-adr/hooks/codex-hook.cjs, which bundles the shared
screen. New test: __tests__/mods/mods-screen-exfiltration.test.ts (40 cases;
17 fail with main's screens).
2026-10-12 15:52:43 +02:00
Dragan Spiridonov 747bb5ee1c fix(guard): root-delete guard expands brace lists, judges deep nesting by tokens, catches fork-bomb definitions
The pre-bash guard (mods dangerous-command.ts, both shipped hook-handler.cjs
copies and the helpers-generator fallback) missed:

- brace expansion: `rm -rf {/*,}`, `{/,}*` and `{,/}*` expand to `/*`, which
  GNU rm deletes; `rm -rf /{tmp,}` and `{rm,-rf,/}` were documented limits.
  Unquoted {a,b} lists (nested or glued to text) now become separate words,
  as bash expands them. Quoted or escaped braces, anything inside ${...} and
  {1..3} sequences are left alone. A quoted string with braces is rescanned
  like one with spaces, so `bash -c '{rm,-rf,/}'` is caught.
  Expansion is iterative with a linear group finder: no recursion to
  overflow, no quadratic rescans. Past 4096 words or 1M characters of work,
  an rm in progress fails closed and the list itself is judged by its tokens,
  so an oversized list cannot hide the rm it spells.
- nesting past four `bash -c` levels: only the literal phrase was matched, so
  `rm -fr /`, `rm -rf '/'`, `r"m" -rf /` and `rm --recursive --force /`
  passed at depth 5, and a nested `rm -rf /tmp/x` was refused. The string is
  now judged by its tokens (quote characters dropped first): an rm and a
  possible root operand anywhere in it. Backtick bodies past the bound too.
- fork bombs: only the exact `:(){:|:&};:` spelling was matched. The
  definition itself is now caught in any spacing and under any name,
  including `function f { f|f& }`, wherever the call comes later.
- the short-option checks (/^-[a-z]*r[a-z]*$/) were quadratic on a long
  failing option; they are now linear.

All four copies are derived from one source and stay byte-identical (the two
.cjs files) or annotation-identical (the mod). 42 new table rows; with main's
guard 27 of them fail. A 209-row differential corpus agrees across every copy,
blocks every miss above and changes no other verdict.

helpers.manifest.json is NOT re-signed here (no signing key): until the
maintainer runs `node scripts/sign-helpers.mjs`, as in 1803bd9d7,
__tests__/helper-signing.test.ts ("its hashes match the actual shipped helper
files") fails and helper refresh refuses the new hook-handler.cjs.
2026-10-12 15:52:43 +02:00
Dragan Spiridonov 41b05582cc fix(shared): declare runtime dependencies and keep tests out of the tarball
@claude-flow/shared 3.0.1-3.0.3 declare only sql.js, but the compiled code
imports zod (core/config) and express, cors, helmet and ws (mcp transports).
They sat in devDependencies, so a clean `npm i @claude-flow/shared` cannot load
`.` or `./core` (Cannot find package 'zod') or `./mcp` (Cannot find package
'express'). ruflo users never saw it because @claude-flow/cli declares the same
packages and npm hoists them.

- Move zod, express, cors, helmet and ws to dependencies, with ranges that
  overlap what @claude-flow/cli declares so a CLI install can dedupe them.
  express is bounded to `^4.22.2 || ^5.0.0` (the patched 4.x floor the repo
  overrides to, and the 5.x the workspace runs) instead of an open `>=`.
- Move @types/ws to dependencies: dist/mcp/transport/websocket.d.ts imports
  `ws`, so a consumer type-checking with skipLibCheck off hit TS7016.
- Exclude *.test.ts / *.spec.ts / __tests__ from the build, and negate them in
  `files` so a stale local dist (composite builds do not clear old outputs)
  cannot ship them either. 3.0.3 ships 6 compiled tests that import vitest.
- HttpTransport: read `req.body ?? {}`. Under Express 5 a POST /rpc with no JSON
  body left req.body undefined and answered 500 instead of the JSON-RPC 400.
  Malformed JSON (body-parser's entity.parse.failed) now answers 400 / -32700
  Parse error instead of 500 / -32603 Internal error, under Express 4 and 5.
- Lockfile: only the shared importer block moves; ws 8.19.0 was referenced by
  nothing else and is dropped. `pnpm@8.15.0 install --frozen-lockfile` passes.
- Tests: __tests__/package-manifest.test.ts scans src/ with the TypeScript
  AST (type-only imports erased, comments/strings ignored) and fails on an
  undeclared runtime import, a missing @types/ws, or removed test exclusions;
  __tests__/mcp/http-transport-body.test.ts (transport bound to port 0) covers
  the bodiless POST and malformed JSON. Every mutant (zod, express, @types/ws,
  spec negation, tsconfig exclude, each HTTP fix reverted) is caught.

Verified: npm pack + clean `npm i <tgz>` imports all 9 exports subpaths
(origin/main and registry 3.0.3 fail on 3 of them) and ships no test files;
HTTP /health 200 and a WebSocket connect work under express 5.3.0 and 4.22.3;
a consumer tsc with skipLibCheck off reports 0 errors; shared tests pass; the
CI recursive build and the CLI type-check pass.

Not included: the version bump and the CLI's exact `@claude-flow/shared`
pin, which belong to the release.
2026-10-12 15:42:37 +02:00