Commit Graph
2523 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
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
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
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
Rudy Celekli dbdceb6184 fix(policy): keep unmetered worker ceilings opt-in
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
2026-10-12 09:10:23 -04:00
Rudy Celekli edff7124ab Merge commit 'aac16fbdb3af21c0ddb989aaff4513a9ec1aaca5' into repair/ruflo3503-opt-in-20261012 2026-10-12 08:55:58 -04:00
r bb7067587f Merge main into release/3.56.7 (TUI phases 2-3) 2026-10-11 18:29:21 -04:00
randRuFlo 30a2336377 chore(release): 3.56.7 (ruflo tui, MCP resources, auto-memory/purge fixes, doctor native-addon check, mods hardening, safe init --dual); codex 3.0.4 pin; witness regen from a full build
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 16:57:22 -04:00
randRuFlo 7718a142b4 feat(tui): the AI page: ask Codex (read-only, pinned) or OpenRouter, each question after a card (ADR-489 phase 3)
Page 6. Reuses harness.send and the conversation bridge's sendTo, not a second harness. Host.spawn runs only the pinned Codex 0.162.0
release (never current or PATH), read-only, from a fixed argument allow-list; Host.httpSend sends only https POST to openrouter.ai or a
convoTargets host, never follows a redirect, and a key is read by variable name and never drawn. Enter shows a card of exactly what would be
sent; a lone y answers it only while it was drawn in full (#3983); spend cap from the provider-reported cost. e2e host matrix gets a tui leg
(keyless in CI, live gated). Not in this PR: the workspace-write toggle.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 16:54:16 -04:00
rUv 87e6d32716 Merge pull request #4075 from ruvnet/feat/tui-phase2
feat(tui): Swarm, Events and Missions pages, page bar and keys, resize, no Claude-only chrome (ADR-489 phase 2)
2026-10-11 13:54:09 -07:00
rUv 741619b5bf Merge pull request #4070 from ruvnet/fix/codex-dual-safe-defaults
fix(codex): safe default .codex/config.toml; permissive mode needs --codex-trust full
2026-10-11 13:50:57 -07:00
randRuFlo ba6f9273a3 feat(tui): Swarm, Events and Missions pages, page bar and keys, resize, and no Claude-only chrome (ADR-489 phase 2)
Five pages (Overview, Cost, Swarm, Events, Missions) with keys 1-5 / o c s e m / Tab / Shift-Tab, a page bar, a key line that
shortens with the width, clear-and-redraw on resize, a position bar under 60 columns and a notice under 40. Room is left out on
purpose (a message box and Claude sessions this host does not have).

state.isStandalone is the capability flag: on this host the shared chrome is not drawn (no tab bar, footer buttons, Launch,
Ask Claude, Claude control card); a button nobody can press is not drawn, a state chip and a section title are. Missions reads
the ADR-406 record only. Under Claude Code nothing changes. Console 0.42.7.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 16:24:56 -04:00