Leftovers of #3817/#3822 and #3818/#3823.
Numbers from CLI JSON (#3822). JSON.parse('1e999') is Infinity; a count can
also be negative, fractional or absurd. Bounded where read with data/safe.ts
countOf / ratioOf and a new measureOf (finite, within +-1e12):
- secure.ts scanReader: every severity count and the total are at least
the listed findings, so a summary never reads CLEAN beside a listed
finding. A count or total the tool printed but no reader can trust stays
UNKNOWN (SecFindings.unreadable / isTotalUnknown), with the listed
findings only as its lower bound: "critical ?" / "high ≥2 ?",
"? findings (total unreadable)", COUNTS UNREADABLE. securityBand() is the
one rule for the band (views/bar.ts) and the menu badge (menu-style.ts):
it warns on high/critical ("N+" when anything is unknown) and on any
unknown count or total. Threat confidence via ratioOf, composition score via measureOf.
The verdict-exit judgement (#3934, SCAN_FOUND/countsWith) is unchanged.
- Same class swept in perf.ts, mh-lab.ts (labLines cells, gepa chars,
genome ids, receipts), neural.ts, memory-lines.ts,
data/evolve.ts, data/research.ts and data/cli.ts.
Mission resume (#3823). setPaused takes who resumed. The mission-resume
palette entry built inside Claude's console_run (state.control.viaModel)
resumes as 'model': hand-out counts are kept and an advisor stop-the-line
is not re-opened, so an exhausted task gets no new billed hand-out. The
person's resume (page buttons, palette, a typed /ruflo run) still gives
every task its hand-outs back.
Co-Authored-By: Ruflo & AQE
Claude-Session: https://claude.ai/code/session_01CGoza3gyxBjpaiMPhGHcHs
security defend / scan / channel-scan / scan-plan and the metaharness alert
scripts exit non-zero to say "found something" while printing a valid JSON
verdict. The runner treated every non-zero exit as a failure, so exactly when
a safety check caught something, Claude (console_run / console_state) was told
it failed and got no verdict. Failure reasons took the first stderr line, which
on many installs is "[WARN] Skipped helper auto-refresh", hiding the [ERROR].
- ActionSpec.findings = { exits, isAnswer, found } per entry, taken from the
CLI source: such an exit is an answer only when stdout holds a complete
answer of that command's shape, judged on its top-level keys (a hostile span
quoting "[ERROR]" or a nested failure cannot flip it), the answer says it
found something, and nothing outside it (trailing stdout, stderr) reports a
failure. A banner object before the verdict is skipped.
- The one-line outcome carries the verdict ("answered: UNSAFE · 2 threats").
- data/failure.ts: one failure-reason helper (wrapped MCP isError, top-level
error, [ERROR] line, error-naming line; [WARN]/[INFO]/Parameters skipped),
used by the runner, CLI probes and mission verify notes.
Co-Authored-By: Ruflo & AQE
Claude-Session: https://claude.ai/code/session_01CGoza3gyxBjpaiMPhGHcHs
- A Yes runs only the card it was pressed on: every pending card has an id,
the Yes / Always allow / Always accept buttons carry it, runner.confirm(seen)
runs nothing (and says so) when another card took its place. A card Claude
raised is re-checked against the level and Stop when it lands and when the
Yes arrives.
- Everything returned to the model goes through modelLine (escapes, then
control and invisible characters removed, cut, withheld whole when it holds
a secret shape or an invite code) and every answer leaves through
modelLines; a version such as v2.1.0-beta.3 is not an invite.
- ESCAPES is linear: an unterminated OSC ends at the next introducer or the
end of the text (7.7 s on the old pattern became milliseconds on 1 MB).
- Mission state/status, hive role, audit severity and Settings plugin names
that are Object.prototype keys read as unknown (own()).
- Approvals and a mission objective wrap at 80 columns instead of being cut
with an ellipsis (#3899).
Specs ported from #3820, #3821 and #3822, adapted to main.
Co-authored-by: Dragan Spiridonov <spiridonovdragan@gmail.com>
Co-Authored-By: RuFlo <ruv@ruv.net>
#3788: Claude's confirm gate re-derived the action class from English words and ignored each Dev Tools entry's declared cost, so the
network entry dt-prov-test read as a plain write and could auto-run at write + auto. The entry's cost now travels with the ask
(`declared`) and the gate takes the stricter of the two classes. Live drive: at level write the entry is now refused as a network
action (needs manage); before, it was not asked about.
#3789: jsonAfter sliced to the LAST } or ] in the output, so a trailing log line holding one dropped valid JSON. It now finds the
bracket that closes the first one, skipping strings.
Co-Authored-By: RuFlo <ruv@ruv.net>
A probe runs research-list.mjs from the installed ruflo-goals plugin (0.3.0+)
only while Missions is in front, at most every 5 minutes, local only. Ports the
Probe.argvOf/probeReady plumbing and Installed.installPath from the Cost work.
Co-Authored-By: RuFlo <ruv@ruv.net>
The Memory view (8) becomes a lab over ruflo's memory surface. Each action is one
fixed argv, checked against commands/memory.ts, mcp-tools/{memory,agentdb,embeddings}-tools.ts
and --help:
- stats, a vector gauge, a bar per namespace (click to filter), a recency
timeline, and a browse list where each entry has view and delete buttons
- a search field covering memory search, or memory_search_unified with the
scope toggle
- namespace/key/value fields with store, retrieve and delete
- 33 lab entries across memory, AgentDB, embeddings and maintenance
Reads run at once and fill a result panel. Writes ask first. Deletes ask and
say they cannot be undone. Embedding calls ask first, because they may download
the model. Every entry is a palette id, so `/ruflo run mem-search <q>` answers
headless.
Shared hunks:
- ActionSpec.lines is a lab's own output reader.
- The MetaHarness result panel now shows only mh- results.
- memory stats now exposes unreadStore.
- memory list now keeps the entries it reads.
Co-Authored-By: RuFlo <ruv@ruv.net>
The MetaHarness view keeps READINESS, FLYWHEEL and AUDIT TREND and adds a BBS lab: 25 entries in three groups
(inspect: $0 reads that run at once; record: $0 writes that ask; evolve & test: local compute or paid models,
asked with the cost on the confirm row), a RESULT panel with the last run's label, exit, cost note and up to 40
lines (14 in view, j/k scroll, a running indicator), and PROMOTE as a command the person runs: never a button,
never a palette entry (ADR-322: the console proposes and evaluates, it never promotes).
Every argv was checked against commands/metaharness.ts, the plugin scripts and the MCP tool schemas, and every $0
read was sampled on @claude-flow/cli 3.51.1. security-bench is MCP-only (mcp exec -t metaharness_security_bench).
learn --run and gepa --op analyze need a path, so their buttons type the command into the terminal instead.
- mh-lab.ts: the catalog, labSpec, and readers (findings by severity, redblue runs/attacks, gepa render/genome,
receipts, a flattener for the rest); every lab entry is a palette entry, so /ruflo run mh-genome works headless
- runner: ActionSpec lab/note/timeoutMs (evolve and security-bench outlast 90 s), state.lab, settled()
- dispatch: /ruflo run and /ruflo yes answer a lab run with what it printed
- audit probe: audit-list rows carry key/startedAt/finishedAt; the probe read none of them, so the trend had no
points from real data; it now keeps each key for audit-trend and similarity
- tests: kit tests for the lab view, an inspect run, a spending ask, promote never run, headless answers, the six
new confirm-gated argv; mh-lab.spec.ts for the catalog invariants and readers on captured CLI output
Co-Authored-By: RuFlo <ruv@ruv.net>
- x.ruv.io view (w, 🛸): a Wildcat-style main menu of what the open federation offers; each read entry
puts its `ruflo federation …` command in the terminal. The registry (join steps, limits, default rooms)
and the roster come from the network, so they run only with federationNetwork on (new opt-in
registryProbe; smoke now expects two network probes).
- Terminal view (i, 💻): pick codex (exec, read-only sandbox), claude (-p, plan mode, $1 cap) or one
ruflo CLI command. The text reaches model harnesses on stdin, never as an argument. Enter shows the
exact command, Enter again runs it. Output streams through $.process.spawn into a scrollback that keeps
indentation and strips escapes and bidi characters. s stops a run; it is also capped at ten minutes.
- ActionSpec gains run/shows so the confirm row prints the real argv for a non-ruflo command.
Co-Authored-By: RuFlo <ruv@ruv.net>
- /ruflo is the single command for every ruflo mod: views, palette, run/yes/no,
agent drill-down, help; /ruflo mods is answered by ruflo-mods and /ruflo swarm
<pane|status|topology|claims|consensus> by ruflo-swarm (both hook the same
command; the old /ruflo-mods and /ruflo-swarm-* stay as deprecated aliases)
- auto-start: panel auto opens the cockpit at session start where it docks,
never taking the keys; the band says /ruflo to open otherwise. ruflo-swarm's
own pane now defaults to panel command so two panes do not open
- diagrams (Raster, one pure function per diagram shared by paint and blit):
topology with event pulses and a leader heartbeat, claims lanes with TTL
rings and handoff arrows, federation map by trust, plugin health matrix,
learning curve draw-in and RETRIEVE→JUDGE→DISTILL→CONSOLIDATE pipeline,
MetaHarness radar and audit trend, cost gauge and burn, agent timeline
- management: command palette (fuzzy, text entries), confirm-gated actions
through fixed argv, agent drill-down with logs, approvals queue (votes,
stealable claims, refused mods, policy denies, budget), event stream with
filter, health alerts with the fix named
- tests: 28 kit tests, 28 vitest specs; 100-agent frame 0.25 ms median
Co-Authored-By: RuFlo <ruv@ruv.net>
Kit tests (19) for every view, hotkeys, confirm-gated claims, refusal,
empty project, narrow and desktop fallbacks, the frame loop stopping when
hidden or unfocused, hostile text and the band. Pure vitest specs (18)
for readers, CLI JSON, cell graphics and $.ruflo type parity.
Co-Authored-By: RuFlo <ruv@ruv.net>