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>
CI caught it: #2920 consolidate() assigns an ID to an ID-less entry in place, so the
ids captured at write time no longer matched the on-disk copy and the merge appended
it again. Capture ids when the store is read, and never treat an id-less on-disk
entry as one another writer added. Helpers re-signed.
Co-Authored-By: RuFlo <ruv@ruv.net>
- probe: a plugin set to false is reported as disabled with 'claude plugin enable', not 'ruflo mods install' (which never flips it); installed-but-not-enabled; partial install (some mod plugins, no marketplace, record drift)
- every non-passing finding carries a one-line fix; headless -p fresh-config caveat named
- doctor --strict exits 1 on a warning too
- install writes settings and record as one operation: a failing record write restores the settings
Co-Authored-By: RuFlo <ruv@ruv.net>
- E: `ruflo tui --plain` prints one plain frame and exits 0; without a TTY and
without --plain it prints a one-line hint on stderr and exits 2 (no frame).
Tests for terminal, non-terminal, --plain in a terminal, no raw mode, and
through the command with the real bundle.
- A: esbuild is a declared root devDependency (^0.27.2, already locked).
- B: v3/@claude-flow/cli/scripts/prepare-publish.mjs builds and stages
plugins/ruflo-console/dist/tui.mjs so a registry install runs `ruflo tui`.
Measured: +449,345 bytes on the CLI tarball.
- ADR-489: status Accepted; section 8 records decisions A-E (C: Swarm, Events,
Missions, Room; D: Codex read-only by default, no danger-full-access, OpenRouter
https-only to openrouter.ai + convoTargets hosts). Repairs a corrupted table row
that had pasted copies of the file head into the ADR.
- README: a short ruflo tui section.
Co-Authored-By: RuFlo <ruv@ruv.net>
#4057: with encryption at rest on, `memory purge`'s sql.js fallback rewrote a
plaintext native SQLite store as an RFE1 blob and still printed [OK]; the
native bridge and every SQLite reader then rejected the file. Every whole-file
read-modify-write (purge, delete, get access-count, store, schema migration,
decay) now writes the image back in the format it read (plaintext -> plaintext,
RFE1 -> RFE1) via writeDbImagePreservingFormat. applyTemporalDecay also read
the raw bytes, so it failed on encrypted stores, and wrote plaintext: both
fixed.
#4056: `hooks post-command` stored every Bash command in full with no off
switch. Add CLAUDE_FLOW_HOOKS_RECORD_COMMANDS=0 / CLAUDE_FLOW_HOOKS_ENABLED=false /
hooks.recordCommands=false (nothing is stored when off), redact common secret
shapes and cap stored text at 2000 chars (bounded patterns, linear on hostile
input). `memory cleanup --expired-only` never saw expired rows because
listEntries hides them (TTL is a read-time rule): listEntries gains
includeExpired + expiresAt, and memory_cleanup uses it. ruflo-core 0.2.8: the
Bash shim stands down when recording is off.
Co-Authored-By: RuFlo <ruv@ruv.net>
- Upgrade-written import/sync hooks used `node -e "...import(file)" import`, which
leaves the subcommand in process.argv[1]; the helper read argv[2], so both hooks
only printed the status banner. They now use helperHookCommand like every other
helper hook, and the helper also accepts the argv[1] shape so settings.json files
already written keep working.
- Hook timeouts were written as 6000/8000 (and 8000/10000 from init) but Claude Code
reads them in seconds; the auto-memory hooks now use 30.
- JsonFileBackend.query treated MemoryQuery.type (a query mode: hybrid, semantic...)
as an entry type, so the bridge's learnings query matched nothing and sync always
reported 0. It now treats modes as modes and honours tags, updatedAfter, key,
keyPrefix and memoryType. The "Curated MEMORY.md index" line is no longer printed
when the bridge emitted index:skipped.
- In a git worktree the memory dir is keyed by the main checkout (resolved with
`git rev-parse --git-common-dir`, no shell) to match Claude Code.
- auto-memory-hook.mjs and intelligence.cjs both read-modify-write
auto-memory-store.json: writes are atomic (temp + rename), serialised by a short
fail-open directory lock, and keep entries another writer added since the read.
- Not changed: autoAssignOnIdle/autoAssign are false on purpose (#3031).
Helpers re-signed. Regression: __tests__/auto-memory-hooks-4058.test.ts (10 of 11
failed before; the 8-writer race kept 6 of 8 entries).
Co-Authored-By: RuFlo <ruv@ruv.net>
init, init --dual and @claude-flow/codex init wrote a gitignored
.codex/config.toml with sandbox_mode = danger-full-access,
approval_policy = never and web_search = live. Default is now standard
trust (workspace-write, on-request, cached); the permissive file needs
--codex-trust full (or RUFLO_CODEX_TRUST=full). init prints which level
it wrote, an existing .codex/config.toml is never rewritten (not even
with --force) and a kept permissive file is flagged. Unknown levels are
rejected on the CLI and fall back to standard from the environment.
Found by the three-host e2e run (ADR-490). @claude-flow/codex 3.0.4
(bundled: ships with the next train).
Co-Authored-By: RuFlo <ruv@ruv.net>
Read-only check: reads build/config.gypi of each better-sqlite3 copy in the
resolved tree (never loads an addon), warns when a locally compiled copy used
24.19+ headers while the runtime is 24.19-24.21 (nodejs/node#65446), with the
documented workarounds. Prebuilt copies carry no config.gypi and pass.
Co-Authored-By: RuFlo <ruv@ruv.net>
ADR-490 (loop), ADR-491 (mods host integration, Proposed). The loop's first run found two defects, fixed test-first:
- ruflo mcp start advertised resources but answered resources/* with -32601 (3 stdio servers).
- init --dual's marketplace clone ran under a 20 s budget (17.5 s measured), swallowing the real error.
Co-Authored-By: RuFlo <ruv@ruv.net>
Adds a standalone host for the ruflo-console views: a Node Host adapter
(confined reads, CLI-only run, everything engine-bound refused), a zero
dependency terminal renderer that is also the escape/secret chokepoint, and
`ruflo tui [--view overview|cost]` which draws the mod's own paneView.
Read-only; headless prints one plain frame. No hooks/ file changed, no
version bump, publish path untouched (bundle staging is a decision in the ADR).
Co-Authored-By: RuFlo <ruv@ruv.net>
Two findings from ruvnet's review on #4053:
1. The powershell/-EncodedCommand pattern (`\s+.*-e(...)`) backtracks
quadratically on hostile input -- measured ~1.9s on 64,000 spaces with no
match; a 1MB hook command would stall session-restore (an unconditional
boot path) for minutes. Rewritten as a linear token-walk
(`(?:\S+\s+)*?`), confirmed <5ms on a 1MB hostile input while still
matching real EncodedCommand payloads. Fixed in both the CJS mirror and
the shared TS original (settings-risk-scanner.ts), since the TS version
is already live via init/--upgrade.
2. scanSessionStartSettingsForRisk()'s warnings included up to 120 chars of
the matched hook-command snippet -- but session-restore's stdout is read
back into the live Claude Code session as context, unlike init/--upgrade
where a human reads the terminal directly. Printing attacker-controlled
settings.json content into that context is a prompt-injection path even
with control characters stripped. The automatic-boot path now prints
only the scanner-generated location + reason, never the snippet;
srFormatRiskFindingsAsWarnings (snippet included) is unchanged for
init/--upgrade's human-facing output.
New tests: a 1MB ReDoS timing guard, a snippet-leak regression guard, and a
real-payload-still-detected check after the regex rewrite. 75/75 related
tests pass.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01HW4yuGGcrCy4CcPgQ7Q2dx