Commit Graph
13 Commits
Author SHA1 Message Date
Dragan SpiridonovandRuflo & AQE 3c3ed992d0 fix(console): show times as times, a swarm's own agents, and labels that match the gate
- AgentDB mod panel read updatedMs through countOf, whose 1e12 cap (added
  in 44b157b52) clamps every epoch-ms time to 2001-09-09: "written 9161d ago
  (an earlier session)" for a file written minutes before. Times are read as
  times; implausible ones (before 2000, more than a day ahead) read n/a.
- Overview/Swarm/Workflows/status bar/topology credited a swarm with the whole
  agent store ("running · max 3 · 259 agents" for a swarm with 0 agents) and
  disagreed on its status (running vs finished). One helper
  (data/swarm-status.ts) gives each page the swarm's own listed/found count
  and its age; "stale" only on evidence (old record, no busy member, no
  recent member). An empty fresh swarm is still its own Workflows run; the
  roster of unlisted agents keeps the run id saved views and pins used.
- mission-goal's label said "(nothing is written)" but it is a write action;
  perf-bottleneck/optimize were gated as delete (needs full) because their
  note said the probe file is "removed". Labels and notes now match the gate.

Co-Authored-By: Ruflo & AQE
Claude-Session: https://claude.ai/code/session_01CGoza3gyxBjpaiMPhGHcHs
2026-10-09 16:14:47 +02: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 44b157b522 fix(console): session control cap, gate on read-only entries that act, hostile text/data, mission auto-run guards (#3814 #3815 #3816 #3817 #3818)
- RUFLO_CONSOLE_CONTROL is kept as session state and applied on every load and save of the AI prefs; only the person's own level is stored (#3814)
- A Claude call to an entry flagged read-only that spends, writes or reaches the network is queued for the level/budget/confirm gate; deferred asks keep their origin and are awaited; Claude's ask never replaces a waiting card; mission-auto parses on/off (#3815)
- One strip set for plain() and termText(); guidance errors and perf readers cleaned; console_state withholds secret-looking lines and invite codes (#3816)
- Times clamped to Date's range, counts and ratios bounded, unique Room ids, links never read as docs, own-property cli option, objectIn closes at the JSON end (#3817)
- A failed task_update sends no prompt, hand-outs are limited, the cap needs a fresh reading and is read off-page, cap 0 is refused (#3818)

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-07 00:57:27 -04:00
ruv 19fbfdc120 fix(console): pin the recorded stop, bound the hand-over read, mask zero-width-split keys at parse, ADR-467
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-06 01:00:24 -04:00
ruv af173534e9 fix(console): security audit of the control plane, bridge and autopilot
Approval pin held outside the project (hash + start count), kill flag and second-session re-check before hand-over,
verify argv validated and asked of the engine, protected autopilot/Anatole folders, fresh-status Anatole gate,
receipt chain enforced, lost-on-restart steps parked, base-url SSRF guard, full-payload confirm card,
untrusted-quoted relay, zero-width-proof masking and classification, rotation archive link check.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-06 00:52:57 -04:00
ruv 7ee6b0a567 fix(console): Workflows review - unread cost is n/a not $0, export carries the Cost figure, key hints name real keys
Review fixes: fmtCosted/isUnread (unread run or phase was drawn as $0), exportCostOf wired
to setExportCostSource (export said n/a beside a Cost board figure), header and footer hints
named h/l, Enter and [ ] (real keys: b/l, d, u/i), two dead exports removed.

Also swept in by this commit: a concurrent session's uncommitted security hardening in the same
worktree (wf-clean/parse ESCAPES+HIDDEN, checkNoLinks on saved-view writes, wf-security.spec.ts).
One of its tests (wf-security: 'writes the saved views normally when nothing is a link') was
failing (EPIPE) when committed; not part of this review.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-05 23:09:50 -04:00
ruv 7725b867fd security(ruflo-console): a shell command is a 'full'-level action, class detection no longer a weak denylist; ANSI/OSC/hidden-text stripping; ADR-450 threat model (0.33.3)
Live proof on main: at level write + auto-confirm, console_run dt-term-exec ran a shell command.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-04 21:42:28 -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 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 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 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 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 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