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>
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>
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>
- 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>
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>
- 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>
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>
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>
- 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).
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.
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>
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>