Commit Graph
43 Commits
Author SHA1 Message Date
Dragan SpiridonovandRuflo & AQE bde274f845 fix(console): expire unanswered confirm cards at 30 s, let Claude withdraw its own ask
An unanswered confirm card never expired: the Room showed "155s of 30s",
every later Claude console action was refused as "already waiting", Claude
could not withdraw its own ask, and a late Yes was refused anyway ("the
confirm came more than 30 s after the ask").

- A card is cleared at PENDING_TTL_MS (30 s) by a timer registered in
  state.timers (torn down with the controller) or at the next ask/call; one
  Events entry, lastResult "expired: ask again", the Room says expired. The
  window and gates are unchanged; expiry runs nothing; a later Yes is still
  refused.
- ask-withdraw clears only a write-class card Claude raised in its own
  direct console_run (origin id recorded at raise); never the person's,
  deferred, follow-up, spend, install, network or delete cards; at most
  3 withdraws a minute and a 10 s same-label re-ask cooldown.
- A typed /ruflo yes is refused within 3 s of a Claude-raised card or 10 s
  of an expiry/withdraw (press the card itself).
- ADR and skills palette hints say which page to open and how many numbers
  an entry needs.

Co-Authored-By: Ruflo & AQE
Claude-Session: https://claude.ai/code/session_01CGoza3gyxBjpaiMPhGHcHs
2026-10-10 18:09:17 -04:00
randRuFlo 72f789254e feat(console,mods): optional detect-only ruvnet-brain grounding (ADR-487)
Console 0.42.0: Overview "Grounding" line (on / not installed / installed, disabled / unknown), a default-on nudge setting that adds one fixed line pointing at search_ruvnet to the mission context when the brain is on and the mission names the ruvnet stack (through modelLine, nothing interpolated), and a default-off, dismissible once-per-session install hint. Mods 0.5.0: option `grounding` (default off) adds a read-only /ruflo-mods row.

Detect-only: never calls, installs, gates, blocks or copies anything of the third-party plugin; ruflo behaves identically without it (smoke steps console 20, mods 15).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-09 18:02:44 -04:00
3991f40670 fix(console): card-bound confirm, one model-facing sanitiser, linear escape stripping, own-key lookups, wrapped Approvals (0.40.2)
- 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>
2026-10-08 17:38:02 -04:00
ruv b62b7d334c fix(console): keep the swarm ADR digest true to the active mission; verify's confirm names its git reads; real-pane ADRs test (ADR-480)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-07 17:16:11 -04:00
ruv 9cef4cb070 feat(console): What's new page under TOOLS, plugin changelog parser and marker (ADR-478), console 0.38.0
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-07 14:37:28 -04:00
ruv a65be10ed4 feat(mods): shared toast policy and its call sites (ADR-477), work in progress
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-07 12:40:10 -04:00
ruv dab6c087cb feat(console): wire the Workflows page (ADR-464): view, nav, menu, live refresh, keys, slot seams
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-05 22:16:35 -04:00
ruv db2299956c feat(console): register memory-health probe; move segmentOf out of controller (500-line limit)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-05 21:58:43 -04:00
ruv e36986d861 fix(console): register the memmap probe, cap the namespace key and embedding length, tests for each
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-05 21:49:26 -04:00
ruv 616a7ebb01 feat(console): band notices, tone border, /ruflo band|notices|quiet (0.33.23)
The band now announces approvals, alerts, finished missions, long turns
ending and Anatole blocks on a notice row (linked, dismissable, 20s),
colours its border by state, can go compact, and labels subagents by a
short id instead of the raw one.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-05 20:01:52 -04:00
rUv 668f99dc33 fix: address Ruflo mod and console beta feedback (#3698) 2026-10-04 13:25:23 -07:00
ruv 3ed6c7963b feat(ruflo-console): missions Claude knows about, gate evidence, mission spend and a loop manager (ADR-443)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-04 13:10:44 -04:00
ruv 283e680ff2 feat(ruflo-cost-tracker, ruflo-console): multi-provider cost ledger, price book, advisor and Cost page (ADR-437)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-04 01:19:18 -04:00
ruv cc912873cd fix(ruflo-console): icon row fits beside header art; boot scan names; palette sorts unrunnable last; smoke contract names the update GET; controller under 500 lines
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-03 20:10:03 -04:00
ruv f98d982f06 feat(ruflo-console): boot border; icon row (menu, palette, help, settings, refresh); menu-pick fix; nav and menu reorganised (ADR-430, ADR-432)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-03 19:52:22 -04:00
ruv 3cd6cb7882 feat(ruflo-console): fewer menu sub-sections; scroll the pane to the top when a page, help or the palette opens (ADR-430)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-03 19:18:35 -04:00
ruv adbfb02ce8 feat(ruflo-console): menu entry animation and page-title strike-in (ADR-433)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-03 18:36:26 -04:00
ruv 7c1150f32c feat(ruflo-console): cyberpunk data-driven boot uplink; Refresh replays the intro (ADR-432)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-03 18:30:06 -04:00
ruv f1d5dda655 feat(ruflo-console): the Performance page folds its verbs into groups, and a running measurement spins
The verbs are grouped: Measure now (open), Benchmarks and Record and analyse (folded), each header saying what is inside, with the fixed tables under Not measured here. The latency lines stay at the top. The running line in a result is now the shared spinner with its seconds, replacing a blinking block, and the frame loop runs while any lab action is in flight, so it moves on any page. The spinner lives in its own module, shared with the Missions page.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-03 16:54:37 -04:00
ruv ab5ecd6aa1 feat(ruflo-console): the Missions page animates while a mission, a task or a guidance run is live
The frame loop only ran while something was pictured, so the Missions page never redrew and nothing could move. It now runs while the page has live work. Running missions and tasks show a spinner, and the expanded mission's state line turns too. The spinner's frames are one tenth of a second each.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-03 16:21:03 -04:00
ruv 881067bc01 feat(ruflo-console): 0.16.0 — Learning page: animated pulse, folded settings and configuration, self-learning actions (pretrain, consolidate, pattern store)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-03 02:07:52 -04:00
ruv 4aa8e5ca43 feat(ruflo-console): 0.11.0 — Mission Control: lifecycle planner, claude -p guidance, inline confirms, menu strip, hotkeys for every view
A goal becomes a plan over one lifecycle (Research, Create with ADRs and SOP, Build, Test, Validate, Secure, Benchmark, Learn), then a governed mission and ruflo tasks that the primary Claude session carries out one at a time. After a goal is entered, claude -p (plan mode, read-only, budgeted; asks first unless always accept) writes guidance by stage with the ruflo capabilities to bring in. Confirms sit under the field that raised them, fields can be edited again, Mission Control leads the main menu, the band shows the active mission, Missions is key 1 and every view has a hotkey. ADR-408.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 23:02:46 -04:00
ruv bf1b5550ed feat(ruflo-console): 0.10.0 — Settings with search, AI terminal (claude default, auto-ask, always accept, scrollbar), remembered actions, NAV styles, Hive ACT menu, collapsible sections
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 22:18:56 -04:00
ruv ed47d37556 feat(ruflo-console): 0.9.0 — Plugin Catalog (every ruflo plugin, mod and skill), button sweep, tour GIF
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 20:46:14 -04:00
ruv 589e05881f feat(ruflo-console): 1/3 Claude + 2/3 cockpit tour GIF; RUFLO_CONSOLE_COLUMNS; status row above tall views
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 18:50:31 -04:00
ruv 089d2d6fba Merge branch 'feat/console-evolve' into feat/console-starts
# Conflicts:
#	plugins/ruflo-console/hooks/actions.ts
#	plugins/ruflo-console/hooks/bindings.ts
#	plugins/ruflo-console/hooks/palette.ts
#	plugins/ruflo-console/hooks/runner.ts
#	plugins/ruflo-console/hooks/state.ts
#	plugins/ruflo-console/hooks/views/common.ts
#	plugins/ruflo-console/hooks/views/pane.ts
#	plugins/ruflo-console/tests/views.test.ts
2026-10-02 18:15:09 -04:00
ruv e8f8f3bfc0 feat(ruflo-console): Self-Evolution view (🧬): the governed loop, ledger, lineage, policy gate and witness
A keyless view that reads ruflo's governed-evolution stack from disk on open
(flywheel-v1 state and receipts, generation bundles, served.json,
harness-active-policy.json, verification/<os>/manifest.md.json) and runs its
checks as buttons and palette ids (evolve-*): flywheel status/receipts/history,
policy status and ruflo verify --manifest run at once ($0, local); policy
evaluate of the promote action asks first and says it appends one decision
receipt. Promotion, evidence-reset and rollback are never entries: the view
shows the promote command and why (ADR-322). Autogenous and rGi are stated as
integrated (the shared ruflo.flywheel-receipt/v1 format) or only linked, with
▸ ask typing a read-only research prompt into the AI terminal.

Shared hunks: ActionSpec.lines (a lab run's own reader, used by the runner),
the confirm row's runs: line wraps instead of clipping long argv.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 18:09:18 -04:00
ruv 33ce665cda Merge branch 'feat/console-cost' into feat/console-starts
# Conflicts:
#	plugins/ruflo-console/hooks/controller.ts
#	plugins/ruflo-console/hooks/dispatch.ts
#	plugins/ruflo-console/hooks/palette.ts
#	plugins/ruflo-console/tests/fixtures/world.ts
2026-10-02 18:01:39 -04:00
ruv 484cf7b3a8 feat(ruflo-console): Cost can set a budget, shows where spend goes, and projects the burn (codex)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 18:00:29 -04:00
ruv 49452e2eb1 feat(ruflo-console): the x.ruv.io board runs every federation capability itself
The board was a menu that typed `ruflo federation …` into the terminal. Each
capability is now a row with its own button or field, run as one fixed argv
through `mcp exec -t x_federation_*`:

- identity: whether ~/.ruflo/nostr.key exists (never read), the pubkey a
  result names, join with an optional invite code (masked on the confirm row
  and in answers), the agentbbs node identity; unregister is shown as not
  offered, since the gateway has no leave endpoint
- live: registry, roster, work-claims board and the last 20 swarm messages,
  kept live with federationNetwork, else fetched once per click
- channels: list, read, publish as yourself, create, grant, accept
- admin (gateway identity): hub publish and admit ask first and need
  RUFLO_X_ADMIN_TOKEN, of which only "is it set" is kept; invites are minted
  in the terminal, never by the board, since the code is a bearer secret
- a result panel that j/k scroll, and every action as an x-* palette entry,
  so `/ruflo run x-roster` works headless

Reads run at once; joins, publishes, grants, creates and accepts ask first and
say what they send. Channel reads ask until a Nostr key exists, because the CLI
makes one on first use. Claims and sync are two new network probes gated by the
same option.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 17:49:44 -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 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 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 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 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 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 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
ruv 7dcea3a02e fix(ruflo-console): fixes from the live run
- name the ruflo MCP servers and their tool count (two servers expose the
  same tools, so a bare count overstated it); recount every 30 s, since
  Claude Code connects MCP servers after session start
- back off re-stating a missing file for 10 s (explicit refresh and the
  post-action read skip the backoff), so a closed console stops logging
  ENOENT every 3 s
- tab and footer buttons get a gap; any view switch leaves the help page
- pulses are two dots wide, so one on a vertical edge stands out of it

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-01 21:45:57 -04:00
ruv 6eb25a823c feat(ruflo-console): tests, smoke, bench, marketplace entry, CI baseline
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>
2026-10-01 21:34:10 -04:00
ruv d9bbe88ded feat(ruflo-console): cockpit mod with eight views, band, claims actions (WIP)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-01 21:25:49 -04:00