Commit Graph
525 Commits
Author SHA1 Message Date
ruv eb7771be77 fix(ruflo-console): the terminal field keeps the keys through a run and stays above the fold; tour GIF for 0.7.0
- A run starting or ending adds or drops rows above the field (spinner, last line), and the engine moved the focus
  ring off it, so the next keys left the pane. The ring is put back after the redraw.
- The conversation window reserves the ~34 rows its frame needs, so long output never pushes the field below the
  fold (where the pane drops the keys).
- The confirm row no longer doubles a trailing question mark.
- Tour GIF: neon boot, grouped menu, swarm, Hive-Mind and Skills by mouse, x.ruv.io, the MetaHarness lab, a streamed
  framed terminal turn and a swarm session ask.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 17:28:49 -04:00
ruv 5b5adeb188 fix(ruflo-console): typing reaches the terminal field after a tab click or a /switch; 0.7.0; ADR-407 final
Found live while recording the tour.
- A pane that opened by itself does not hold the keys, and a mouse click on a tab does not give them, so a person
  who clicked into the terminal typed into Claude's prompt. Opening a typing view (terminal, skills) now takes the
  keys first; Esc still hands them back rather than closing the pane.
- After a command typed in the field (/ruflo /codex /claude /swarm /new /up /down /end) the rows above it change and
  the engine moved the focus ring off it, so the next keys fired hotkeys or left the pane. The ring is put back
  after the redraw.
- ruflo-console 0.7.0; ADR-407 records Skills, Hive-Mind, the MetaHarness lab, the scrollable framed terminal and the
  clickable band as shipped.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 17:23:14 -04:00
ruv 27b60a65b6 Merge branch 'feat/console-metaharness' into feat/console-now
# Conflicts:
#	plugins/ruflo-console/tests/actions.test.ts
#	plugins/ruflo-console/tests/palette.test.ts
2026-10-02 16:43:12 -04:00
ruv 98f373651f fix(ruflo-console): lab notes name the flywheel ledger dir; a headless run that cannot go says why; smoke runs mh-lab.spec
- the flywheel run note names where receipts go (.claude-flow/flywheel-v1, per flywheel-transaction.ts)
- /ruflo run <entry> with nothing to run answers "nothing to do: <why>" instead of the bare label, so a
  claude -p user of mh-learn-run or mh-gepa-analyze gets the command to type
- smoke step 14 also runs tests/mh-lab.spec.ts

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:41:49 -04:00
ruv 096fb99686 fix(ruflo-console): palette and Approvals votes are cast as a registered hive worker
The CLI counts a vote only from a registered worker and exits 0 when it refuses one, so votes cast as
console-operator were silently dropped. Palette and Approvals now vote as the next worker that has not voted,
as the Hive-Mind view does. With no worker left they say why, and nothing runs.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:39:53 -04:00
ruv 7eddfc3e42 feat(ruflo-console): MetaHarness lab — every metaharness verb from the view, reads at once, the rest confirm-gated
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>
2026-10-02 16:38:36 -04:00
ruv a379b91c45 Merge branch 'feat/console-hive' into feat/console-now
# Conflicts:
#	plugins/ruflo-console/hooks/state.ts
#	plugins/ruflo-console/hooks/views/menu.ts
#	plugins/ruflo-console/hooks/views/pane.ts
#	plugins/ruflo-console/tests/behaviour.test.ts
2026-10-02 16:38:25 -04:00
ruv f4f5ddce49 Merge branch 'feat/console-skills' into feat/console-now
# Conflicts:
#	plugins/ruflo-console/hooks/state.ts
#	plugins/ruflo-console/hooks/views/common.ts
2026-10-02 16:37:06 -04:00
ruv 9a26876efc fix(ruflo-console): hive vote asks for JSON so a refused vote reads as refused
`hive-mind consensus` exits 0 and prints "Vote recorded (For: undefined…)" when the tool
refuses a vote (unregistered voter, double vote, Byzantine, already decided); only its
--format json output carries the tool's "error" for the runner. The shared-memory key
count no longer counts the broadcasts array it lists separately.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:37:03 -04:00
ruv 5122dcf10f feat(ruflo-console): a scrollable, framed AI terminal and a clickable console
- Terminal:
  - The conversation is a window that scrolls: ▲ older, ▼ newer, ⤓ end by mouse, or /up /down /end from the field.
  - While scrolled up, new output waits below and is counted (⤓ N new).
  - Each turn is framed: ╭─ you → agent, ├─ agent, then a gutter in that agent's colour, closed by ╰─ ✓ 3 s · $0.012.
  - Light markdown: headings bold, bullets as •, fenced code framed and tinted.
  - Long answers wrap at word boundaries.
  - A question can be clicked to put it back in the field.
  - While an agent writes back, a spinner shows; the input sits under its own rule.
- Clickable:
  - Every band part opens the console on its view, with the keys (approvals, swarm, terminal, events, claims, cost).
  - The Wildcat NETWORKS names are links.
  - The main menu's status-bar facts are links.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:36:27 -04:00
ruv aef399f623 feat(ruflo-console): Hive-Mind view — honeycomb, quorum, proposals, vote/propose/broadcast/spawn
A new keyless view (👑, after Swarm) that reads what .claude-flow/hive-mind/state.json
records: the queen and her term, the consensus strategy with the fault tolerance and
quorum it implies (the CLI's own calculateRequiredVotes arithmetic), every worker with
its hive role and liveness (from .claude-flow/agents.json, where hive-mind spawn writes),
open proposals against their bar with raft timeouts and Byzantine voters, decided
history, and the shared-memory broadcasts.

- gfx/hive.ts: a honeycomb of hex cells, the queen's crown centred, workers ringed
  clockwise; walls show each ballot on the picked proposal; one meter per proposal.
  xterm-256 colours only. A cell flashes for 2 s after its vote/join/leave event and is
  otherwise still (byte-identical frames); size depends on model and columns only.
- data/events.ts: one event per new ballot and per join/leave, tagged with the worker.
- Actions, each confirm-gated: vote through `hive-mind consensus` (the only path that
  carries the hive token) as the next registered worker without a ballot; propose,
  broadcast and spawn through `mcp exec` (no token needed). A second raft proposal in
  the same term is refused before it is asked.
- Tabs: a view with key '' gets a Button without a hotkey; viewOf never matches ''.
  The first tab row now runs to the last digit-keyed view, so Hive-Mind sits after Swarm.
- The swarm view's hive section is a short summary with "▸ open hive".

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:34:25 -04:00
ruv d59daa3c4c fix(ruflo-console): skills add checks the listed name without case (the CLI lowercases on install)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:31:23 -04:00
ruv ea0a8d7b4c feat(ruflo-console): Skills view over the npx skills CLI (skills.sh)
A new view, 🧰 Skills, with no hotkey (every digit and letter is taken):
the tab is pressed, and the menu prompt and /ruflo skills reach it by name.

- INSTALLED: `skills ls --json` and `ls -g --json`, read when the view
  opens or on r; one failing scope does not blank the other. Each row has
  ▸ update ▸ remove ▸ edit.
- SEARCH: Enter in the field runs `skills find <query>` (owner:<name>
  becomes --owner); the coloured text is read line by line into
  owner/repo@skill with install counts, each with ▸ add and ▸ add -g.
- CREATE: a name field for `skills init <name>`. Enter asks, and Enter
  again confirms.

Reads run at once, but only when the person acts, because npx and
skills.sh are on the network. Every change is confirm-gated through the
runner (ActionSpec run + shows, so the confirm row prints the exact
argv). After a change, both lists are read again and the result says
whether the change shows in them. ▸ edit loads the AI terminal with a
claude prompt; nothing here writes a file.

Input is validated before it becomes argv: [A-Za-z0-9@/._ -], no leading
-, capped. A new skill name may not hold a slash or start with a dot,
because init joins it onto the project.

viewOf no longer matches '' to the hotkey-less view. The tab bar, /ruflo
help and the palette drop the key where there is none. The narrow-tab
test holds the position, not the total view count.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:29:01 -04:00
ruv e847fc27f3 feat(ruflo-console): the band leads with what is happening now; the main menu in four boxed groups with sub-sections
- Band order:
  - What needs a person.
  - Who is working on what and for how long (▶ coder on <task> 2m).
  - The AI terminal's runs, and the newest event while it is under a minute old.
  - With nothing moving it says idle, how many agents stand ready, and when something last happened.
  - Claims and spend come last; route and pattern totals live in their own views.
- Main menu: SWARM (live/work/watch), INTELLIGENCE (learn/remember/spend), NETWORK & EXTEND (federate/extend),
  TOOLS (run/session).
  - Each group is a bordered ▓▒░ TITLE ░▒▓ box, two per row where the pane is wide enough.
  - Hive-Mind and Skills entries show once those views exist.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:22:19 -04:00
ruv a967f15396 feat(ruflo-console): switch harness from the terminal field (/codex /claude /swarm /ruflo); tour GIF
The field holds the keys, so the pick hotkeys would only type. A slash word in the field switches harness
and drops an ask the previous harness left on screen.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:15:23 -04:00
ruv 02d995102b fix(ruflo-console): every page keeps its banner and title; the terminal field takes the keys (0.6.2)
- The docked pane no longer goes compact. Compact was meant for an inline pane too short for its view, but it also
  fired on the dock, so the taller pages (Swarm, Claims, Plugins, Learning, Terminal, x.ruv.io) lost the banner and
  their block title while the shorter ones kept them. The dock scrolls, so it now always draws the full frame.
  Even a compact inline pane keeps each page's title and description line.
- The Main Menu is back to the banner and the RUFLO BBS title, and the neon sign is the boot's alone. Rows go back to 32.
- The terminal's field takes the keys when the view opens and after a harness pick ($.ui.focus), so typing reaches it
  instead of firing pane hotkeys (w, s, c…). Verified live: "where is the swarm" landed in the field.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:10:22 -04:00
ruv 0379dce1c0 fix(ruflo-console): Enter again runs a pending terminal ask even when the engine emptied the field (0.6.1)
After the first Enter the field is emptied, so the second Enter submitted empty text and read
'type something first' instead of running the confirmed command. An empty Enter on a pending
terminal ask now confirms it. Seen live while recording the console tour.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:04:00 -04:00
ruv f45c6712c1 feat(ruflo-console): an AI terminal with sessions, live streaming and a codex+claude swarm; neon materialise and glitch (0.6.0)
- Sessions: each agent keeps a conversation per project, so a follow-up carries the context.
  - codex: by its thread id, via `codex exec --json` then `codex exec resume <id> --json`, read-only throughout.
  - claude: by a session id the console picks, via `--session-id` then `--resume`, in plan mode with $1 a turn.
  - Ids are saved per project, and only id-shaped strings come back.
- Streaming (stream.ts):
  - codex JSON events show commands, file changes, tools and the answer.
  - claude stream-json types the answer out from deltas, shows tool calls, and counts the cost.
  - If a run ends with events but no answer drawn, the terminal says the format may have changed.
- Concurrency: codex and claude run side by side.
  - The swarm harness (v) sends one question to both, and their lines are tagged.
  - s stops all runs.
- Confirm once per session: the first message shows the exact command(s), and Enter again runs them. After that the session is live and Enter sends. /new or o starts over. ruflo commands are still asked every time.
- Scrollback wraps to the pane instead of truncating.
- Neon boot: each tube materialises out of random letters as it strikes, and the lit sign now and then glitches (a row slips, cells flash to noise).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 15:50:04 -04:00
ruv fbeada07e6 feat(ruflo-console): the RuFlo neon sign as an animated ASCII boot and the main menu's title (0.5.0)
- gfx/neon.ts draws ruflo/assets/ruflo-small.jpeg in cells:
  - a pink rounded frame on clips and wires, yellow tube lettering, a cyan badge of waves, on a brick wall
  - tubes are line characters on a lit cell, with a white-hot core
  - glow is additive light on the wall, so the halo stays saturated
- Colours sit on the xterm-256 cube: Claude Code draws Rasters in 256 colours in some terminals, and off-cube dark tints collapsed to brown and grey there.
- Boot: the line connects, then the tubes strike one after another with a stutter, then hum, with a rare buzz.
- Main menu: the sign hangs lit and still in place of the banner (motion outside the boot must mean data).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 15:37:26 -04:00
ruv 89e3f6e737 feat(ruflo-console): animated-ASCII boot and a Cave-BBS main menu as the landing screen
- Boot: RUFLO materialises as big ANSI block art out of an animated ASCII field.
  - A 4x4 ordered dither plus a left-to-right sweep decides when each cell resolves.
  - Cells still resolving flicker as noise characters, with a dim plasma behind, and resolved letters get a drop shadow.
  - This is the image-to-ASCII effect of tools like ascii-magic, done in cells: offline and deterministic.
  - Moved to gfx/boot.ts.
- Main menu (0, 📟): where the cockpit lands in the BBS look (bare /ruflo, auto-open).
  - "RUFLO BBS" block title, a host line, and three boxed menus (Swarm Commands, System Features, Other Commands) whose entries go where their keys go.
  - A modem-style status bar with this project's live facts, a T - mm:ss clock, and a (1:1) prompt that takes a key or a name.
  - b goes back to the menu; /ruflo <view> still opens that view.
- Auto-open no longer overrides a view a /ruflo command opened meanwhile.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 15:11:55 -04:00
ruv feeef5d246 feat(ruflo-console): x.ruv.io board and a second terminal for codex, claude and the ruflo CLI (0.4.0)
- 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>
2026-10-02 14:57:57 -04:00
ruv 6cee728fe9 feat(ruflo-console): Wildcat furniture — section block-art titles, welcome and networks strips, spacing
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 14:41:19 -04:00
ruv 09c9cc4a4a fix(ruflo-console): the boot screen animates on an unfocused pane, and its bar fills before it ends
An auto-opened pane does not hold the keys, and the frame loop only ran for a
focused pane, so the boot screen froze on its first line. The loop now also
runs while booting; when the boot ends the pane redraws once and an unfocused
pane's loop stops again. The bar now fills by about 2.9 s once the first reads
answer, and the boot lasts at least 3.2 s, so 100% shows before the view.

Tests: kit 51/51, specs 42/42, smoke 14/14.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 14:30:57 -04:00
ruv 97e92d52eb feat(ruflo-console): an animated BBS boot screen when the cockpit opens
With the bbs look, opening the pane plays a dial-up boot: ATDT ruflo.local,
RING… RING…, CONNECT 115200 / ARQ / V.42bis, the RUFLO logo drawing in a row
at a time (magenta to cyan, with the banner's scanline), "░▒▓ AGENT SWARM
CONSOLE", "> handshake ok · node <project>", and LOADING [▓▓▓░░░] 58% reads
6/10 with a blinking cursor. The bar mixes elapsed time with the reads that
have answered, so it moves before any read returns.

It runs at least 2.6 s, longer while the first read is still out, never past
6 s, and draws nothing else under it. `boot: false` turns it off; the plain
look never shows it.

Tests: kit 51/51 (a fresh pane shows only the boot raster; the view and
behaviour tests run with boot off), specs 42/42 (the sequence and the bar;
the 2.6 s / first-read / 6 s rule), smoke 14/14, validate --strict clean.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 14:24:07 -04:00
ruv 2f3f154d4f fix(ruflo-swarm): bump to 0.3.1 so the panel=command default reaches installed copies
#3614 changed ruflo-swarm's panel default from auto to command (so two panes
never auto-open) without bumping the version; installed 0.3.0 copies kept
auto, opened the Swarm pane beside the console and took its keys.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 14:21:14 -04:00
ruv 73d21ca4c2 feat(ruflo-console): the BBS look — ASCII-art banner, ▓▒░ headers, neon palette (0.3.0)
A cyberpunk/BBS look, on by default (`look: bbs`; `look: plain` keeps the
terminal theme's colours and plain rules, better on light backgrounds):

- Banner: RUFLO in a two-row half-block font, magenta to cyan, with a
  scanline sweeping across it, "░▒▓ AGENT SWARM CONSOLE", the node, and a
  blinking block cursor.
- Section headers: `▓▒░ SWARM ░▒▓══════ right` instead of `Swarm ──── right`.
- Palette: neon magenta headings, cyan values, matrix-green labels; amber
  stays the attention colour.
- Tabs: the current tab is framed like a menu pick, `[2: 🐝 SWARM]`.
- Under the tabs, a sysop prompt: `>> 🐝 SWARM :: what it is for`.
- Status: `[LINK OK] ▸ sync 3s` (`[DIALING…]` before the first read).

The look is set once per render (`setLook`), so every view keeps reading
THEME.x; the plain look is byte-for-byte what 0.2.0 drew. Version 0.3.0 so
installed copies update.

Tests: kit 50/50, specs 40/40 (banner rows, gradient, blinking cursor; option
parsing), smoke 14/14, validate --strict clean.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 14:12:23 -04:00
ruv 427a06c45b fix(ruflo-console): the current tab spaces its key like the others (2: 🐝)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 13:35:42 -04:00
ruv e36d882a9b feat(ruflo-console): emoji tabs in two rows, data views then management views
Symbols like ⁂ ◫ ≋ were hard to read. Each view now has an emoji with default
emoji presentation (no variation selector, so it renders the same in every
terminal): 🏠 Overview, 🐝 Swarm, 📌 Claims, 🌐 Federation, 🧩 Plugins,
🧠 Learning, 🔬 MetaHarness, 💾 Memory, 💰 Cost, 🕒 Timeline, ✅ Approvals,
📡 Events, 🎯 Missions. An emoji is two cells, so the bar is two rows: the
nine data views (1-9), then the four management views (g q e m). From 140
columns every tab also spells its name; the line under the bar always names the
current view and says what it is for.

Tests: kit 50/50, specs 38/38, smoke 14/14, validate --strict clean.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 13:34:51 -04:00
ruv 0018392fe0 fix(ruflo-console): bump to 0.2.0 so installed copies update
Claude Code loads an installed plugin from its cache, keyed by version, and
'claude plugin update' only refreshes it when the version changes. #3625 (icon
tabs, band, work-in-flight animation, clearer swarm and claims, clean logs)
merged at 0.1.0, so every installed copy kept the 3.51.0 code.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 13:29:07 -04:00
ruv 0f29acc73d fix(ruflo-console): strip whole ANSI sequences from CLI text (agent logs showed [1m)
plain() removed the ESC byte but left the rest of each colour sequence, so the
drill-down's 'ruflo agent logs' tail read '[1mLogs for agent-…[0m'. Whole
CSI sequences now go first; the hostile-text tests assert the sequence is
gone, and still that no control or bidi character reaches the tree.

Tests: kit 50/50, specs 38/38.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 11:49:58 -04:00
ruv 55c2534943 fix(ruflo-console): tab bar fits a narrow dock; the line under it names the view
The dock's width is the engine's to choose (it keeps where the divider was
left), so the current tab spells its name only from 110 columns; below that
it is its key and icon, highlighted, and the line under the bar always leads
with the icon and view name. The swarm table drops the type column when no
agent has a name that differs from its type, and a busy agent's work-in-flight
dot is two dots wide in full amber so it reads at a glance.

Tests: kit 50/50, specs 37/37.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 11:42:37 -04:00
ruv dc4ec3f84a feat(ruflo-console): icon tab bar with a line saying what each view is for; clearer swarm and claims; live work-in-flight
Tabs: `1: Ovr◂ 2: Swm 3: Clm …` becomes an icon per view (one terminal cell,
no emoji) with the current tab's key, icon and name in the heading colour —
`1:⌂ 2:⁂ Swarm 3:⚑ 4:⇄ 5:◫ 6:✦ 7:⚙ 8:▤ 9:$ g:◷ q:✓ e:≋ m:⚐` — and one dim
line under the bar says what the current view is for (the drill-down says how
to go back).

Swarm: one label per agent (name, else type, with a short id only where two
read the same: `coder·i1a3`), the type column only when it differs from the
name, `#od014i` instead of the full id, and a one-line legend.

Animation stays data, never decoration (the graph's rule): while ruflo has an
agent busy, a dim amber dot keeps travelling from the leader down its edge and
the node (◉) breathes; idle agents are still. Test: a busy agent moves with no
event and stops when it goes idle; with every agent idle only the leader's
heartbeat moves before an event.

Claims lanes: a card leads with the task's title (from the task store, also
for claimed tasks), then `owner · #shortid`, clipped with an ellipsis; empty
lanes shrink to their title and the room goes to lanes that hold cards.

Tests: kit 50/50, specs 37/37, smoke 14/14, validate --strict clean.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 11:34:47 -04:00
ruv e96bf74023 feat(ruflo-console): a band that says what matters, in words
Before: `◆ ruflo · hierarchical 0/0 busy · 7466 patterns · → coder · $1010.66 console`
After:  `◆ ruflo · 2 to approve (q) · ⚠ 1 alert · swarm, no agents · $1,011 this session · routed → coder · +12 learned  open console`

- Leads with what needs a person: approvals waiting and warn/bad alerts,
  in the warning colour. Info alerts (a claim held for days) stay in the pane.
  A stale marketplace clone is one of those alerts, so it is no longer a
  separate word.
- The swarm in words: "3 agents idle", "1/3 agents busy", "swarm, no agents".
  Never "0/0 busy"; the topology name is config and lives in Swarm (2).
- Spend is labelled ("this session"), whole dollars above $100, and hidden
  until it reaches a cent.
- "routed → coder" names the router's last pick.
- Learning shows as growth since the console loaded ("+12 learned"), not a
  running total that never tells you anything new.
- Parts are ordered by importance, so a narrow band drops the least useful.
- The button says "open console" and only shows while the pane is closed.

Tests: band.spec.ts (5), kit behaviour test updated; console kit 50/50,
ruflo-mods and ruflo-swarm 0 fail, smoke 14/14, validate --strict clean.
Seen live in ~/projects/ruflo: `◆ ruflo · 1 agent idle · 26 claims · +1 learned`.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 10:54:44 -04:00
ruv 6383a28267 feat(mods): ruflo-console is a required mod plugin; catalog lists /ruflo
#3614 shipped ruflo-console on main, so `ruflo init` and `ruflo mods install`
now install it like ruflo-mods and ruflo-swarm. A marketplace clone without
it is stale (a doctor failure with the exact repair), never "pending".

- MOD_PLUGINS: ruflo-console@ruflo required: true.
- `ruflo mods install` points at /ruflo (and /ruflo mods) instead of /ruflo-mods.
- ADR-406 catalog: the source scan now reads `$.command.registerCommand`, and
  the engine parser splits a `command=a|b` matcher into its names and treats
  `command=?` (a matcher chosen at run time) as naming nothing, deferring to
  the source scan for that plugin. Without this, regenerating after #3614
  either failed schema validation (`ruflo|ruflo-console`, `?`) or dropped the
  five /ruflo-swarm-* commands. Regenerated: 241 -> 243 entries (+/ruflo,
  +/ruflo-console), none removed; the console's catalog copy is synced.
- Tests and the e2e-mods-init script now expect ruflo-console installed.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 00:33:07 -04:00
ruv cc56d6470f test(ruflo-console): tool.list fixture uses the ruflo-core plugin MCP prefix (audit-plugin-mcp-prefix)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 00:09:03 -04:00
ruv e1723ef825 fix(ruflo-console): focus hint and Esc behaviour say what the engine does; catalog equality spec always runs
- ctrl+x tab focuses the band, not a pane: the footer and help no longer
  suggest it for the pane
- Esc: a pane /ruflo opened (focus, closeOnEscape) closes; one that opened by
  itself under panel=auto only hands the keys back, by design (an unasked dock
  should not vanish on a stray Esc at an empty prompt). Help says so
- main now ships catalog.generated.json, so the parity spec no longer skips

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 00:01:08 -04:00
ruv a97c33f5f1 test(ruflo-console): repo e2e stops a ruflo daemon it started (it rewrites the tracked agentdb.rvf.lock)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-01 23:59:33 -04:00
ruv 4149a78815 fix(ruflo-console): dump waits at most 8 s for its probes; registration test is exact
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-01 23:53:27 -04:00
ruv fcb32c9e5d test(ruflo-console): e2e checks say what they check; repo runs leave ruflo's runtime stores as found
- 100-column inline run: records the rows the layout gave (asked 30, got 16)
  and checks both borders and the controls are on screen, instead of a label
  claiming the whole view fits
- /ruflo commands step: the ADR-406 catalog loads live
- repo mode copies .claude-flow/{agents,tasks,claims,swarm,hive-mind}
  (gitignored) before the run and restores them after, so agents no longer
  pile up across runs

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-01 23:51:45 -04:00
ruv 34a630e893 test(ruflo-console): e2e animation check samples up to eight captures (decorations rest part of each cycle)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-01 23:38:51 -04:00
ruv be2fc099b9 fix(ruflo-console): the claims view picks the newest open task first
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-01 23:36:56 -04:00
ruv 5194355c2a feat(ruflo-console): keep every command (ADR-406), headless views, ADR-406 catalog and missions
- /ruflo-console is registered again and is the same command as /ruflo;
  ruflo-mods and ruflo-swarm answer mods / swarm <sub> on both. /ruflo-mods
  and /ruflo-swarm-* stay registered for good (ADR-406: nothing removed,
  renamed or reassigned); descriptions and READMEs say 'same as', not
  'deprecated'
- without a pane (claude -p), /ruflo <view> answers the view as text; dump
  waits (bounded, 20 s) for the view's CLI probes, joining any already running
- an inline pane given fewer rows than it asked for goes compact: controls
  under the tabs, no title strip, the view scrolls below
- /ruflo commands [word]: browses the ADR-406 command catalog copied into
  catalog/ (parity spec on its digest); built-in mod list as fallback
- Missions view (m): the ADR-406 mission observation, read-only; task status
  shown as recorded, evidence as verified, session-bound said plainly
- ruflo-mods docs: ruflo-console@ruflo in the modTrustAllow example
- e2e: /ruflo-console alias, headless /ruflo <view>, dump waits for probes,
  a 100-column inline run

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-01 23:33:06 -04:00
ruv 0150757686 Merge origin/main into feat/ruflo-console-mod
Resolves plugins/ruflo-mods/README.md: main's install and dogfooding docs,
with /ruflo mods as the command and /ruflo-mods as its deprecated alias.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-01 23:21:57 -04:00
ruv 88cac6c758 fix(ruflo-console): with ruflo-mods or ruflo-swarm absent, /ruflo mods and /ruflo swarm <sub> show the hint
Found live: Claude Code answers a registered command no hook answered with its
own message, which the dispatcher passed through as if a plugin had answered.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-01 23:19:54 -04:00
ruv 736bb7b90a test(ruflo-console): e2e seeds trust for a worktree's main checkout too
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-01 23:17:06 -04:00
ruv 0e935d9fc6 test(ruflo-console): end-to-end script against real ruflo state and a real Claude Code
scripts/e2e.sh [--target scratch|repo]: makes real state with this branch's CLI
(swarm, agents, tasks, claims claim/release/handoff, hive proposal, memory,
route, policy status), then with RUFLO_E2E_LIVE=1 drives Claude Code in an
isolated CLAUDE_CONFIG_DIR (login copied 0600, shredded on exit; project and
ancestor .mcp.json servers rejected): /ruflo, /ruflo mods, /ruflo swarm,
/ruflo dump <view> headless; the pane under tmux (hotkeys, palette, a confirm
gated release re-read from disk, animation running and stopping); auto-start
from settings.local.json and a directory marketplace; negative paths. Scratch
run: 66/66 PASS.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-01 23:13:25 -04:00
ruv 67206969b9 feat(mods): uninstall what ruflo installed, --source local (directory marketplace), exact disclosure
- mods uninstall runs `claude plugin uninstall <id> --scope <scope>` for
  exactly the plugins ruflo installed (absent before, enabled by ruflo;
  recorded as claudeInstalled in install.json), then removes exactly the
  settings keys it added. A plugin installed before is never uninstalled.
- mods install --source local [--marketplace-path <dir>]: declares the
  ruflo marketplace as a directory source (a ruflo checkout), adds it, and
  installs nothing, so the plugins load live from the working tree.
  Verified on 2.1.287 in an isolated config: loads with no install record,
  and an edit shows on the next run. Doctor reports the source type and
  warns when the project's declared source differs from the known one.
- The repair honours the marketplace the settings file declares.
- Init output, README and ADR state exactly what loads: ruflo-swarm's
  commands/skills/agents without function hooks, its host-command mod with
  them; the first trusted start clones github.com/ruvnet/ruflo; headless -p
  on a fresh config loads nothing; refuse-risky + modTrustAllow as opt-in
  hardening (modTrust stays observe). Claude Code's re-serialization of
  settings.json is reported, never fought.
- e2e: live load is `claude -p "/ruflo-mods"` behind RUFLO_E2E_LIVE=1 with
  CLAUDE_CODE_OAUTH_TOKEN or ANTHROPIC_API_KEY; no credential file copied,
  nothing printed; adds the --source local and uninstall scenarios.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-01 22:31:28 -04:00
ruv b84cd3b777 feat(ruflo-console): auto-open only in a ruflo project, remember a person's close, every action argv tested
- autoOpen is gated on a ruflo project; Esc or the pane's mark persists
  isClosedByPerson so a dismissed cockpit stays shut next session
- tests/actions.test.ts: each confirm-gated palette action asks, runs nothing
  until yes, then exactly its fixed argv (13 actions)
- radar axis words, handoff arrows name the target agent, gantt now marker
- READMEs: /ruflo swarm and /ruflo mods, old names deprecated for one release;
  ruflo-swarm panel now defaults to command

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-01 22:26:03 -04:00
ruv 6fcd9f39d9 feat(ruflo-console): /ruflo dump <view>, and read plugin records from CLAUDE_CONFIG_DIR
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-01 22:19:08 -04:00
ruv cbbabb8339 feat(ruflo-console): one /ruflo command, auto-start, diagrams, palette and management views
- /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>
2026-10-01 22:15:40 -04:00