Commit Graph
182 Commits
Author SHA1 Message Date
rUvandr 2ede870496 fix(ruflo-console): POSIX append keeps every batch under uutils dd (#4978) (#5013)
* fix(ruflo-console): POSIX append keeps every batch under uutils dd (#4978)

The POSIX append script ran `dd bs=1M iflag=fullblock status=none >> "$1"`.
uutils dd 0.10.0 (the default coreutils on Ubuntu 26.04, now the
ubuntu-latest runner image) truncates its stdout to its own offset after
writing: strace shows `lseek(1, 0, SEEK_CUR)` then `ftruncate(1, pos)`. With
concurrent appenders that cuts off every batch another writer added in
between, so the "eight writers" spec lost whole 60-line batches
(1500/1680/1740 of 2400) and kept main's CI/CD Pipeline red.

Add `conv=notrunc` (POSIX dd; GNU, BSD and uutils all accept it). In an
ubuntu:26.04 container the spec fails 3/3 before (720, 721, 1080 lines) and
passes 3/3 after; GNU dd is unaffected. Linux hosts still run the GNU argv,
so the shipped Linux path was never affected; the script is the macOS/BSD
path. The POSIX whole-set digest is re-pinned; the GNU digest is unchanged.

ruflo-console 0.50.1 -> 0.50.2.

Fixes #4978

Co-Authored-By: RuFlo <ruv@ruv.net>

* chore(ruflo-console): smoke pins 0.50.2

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-11-17 10:21:06 -05:00
randRuFlo 4e249930fc chore(ruflo-console): 0.50.1 for the command catalog refresh
The command catalog copy changed (#2640 command renames + catch-up
regeneration), so ruflo-console moves 0.50.0 -> 0.50.1 in plugin.json,
hooks/version.ts, scripts/smoke.sh and the CHANGELOG. The catalog is
regenerated on the merged tree (one entry changed by main) and copied to
the console again.

The single-host AGENTS.md snapshot follows main's #3153 change (#4918:
registered MCP tool names); no other line differs.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 17:49:12 -05:00
randRuFlo 59377fdb63 feat(plugins): separate piiGuard option from the secret guard (#4861)
ruflo-federation's one `guard` switch gated both the secret refusal and
the SSN/card refusal, so an operator could not make PII informational
without also dropping secret screening. Add a `piiGuard` userConfig
option (default on: behaviour unchanged) wherever `guard` is declared:

- ruflo-federation 0.4.0: verdict() takes the options; the hasPii refusal
  runs only while piiGuard is on. Secrets and input too large to screen
  are still refused whenever guard is on.
- ruflo-intelligence 0.5.0: the hooks_transfer EMAIL refusal is gated by
  piiGuard; the secret refusal is not. piiGuard joins the status file.
- ruflo-console 0.50.0: the mission screen gets a distinct `secret`
  status from the local secret screen (blocks guidance even when
  AIDefence is missing); `pii` blocks only while the new piiGuard option
  is on, otherwise the finding is reported in a `safe` result's detail.

New tests per plugin: default refuses PII; piiGuard off lets PII-only
text through; a secret is still refused with piiGuard off; guard off
behaves as before.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 12:11:22 -05:00
rUvandr adef54c386 chore(ruflo-console): Vector Lab pin follows ruflo-ruvector to ruvector 0.3.13 (0.49.13) (#4856)
Readers checked against 0.3.13 output (hooks stats, hooks route, rvf
examples, identity show): same shapes as 0.3.12. Console smoke 21/21;
claude plugin test 255/260, the same 5 mission-control / compact-nav /
goal-length failures as on main (noted in #4842), none in the vector page.

Co-authored-by: r <r@x>
2026-11-06 07:28:20 -06:00
randRuFlo 4ed8aa3926 feat(plugins): move ruflo-ruvector, ruflo-browser and the console vector page to ruvector 0.3.12
The CLI has depended on ruvector ^0.3.11 since #4838. The plugins still pinned
older releases: 0.3.3 in ruflo-ruvector and the console vector page, and
0.2.27/0.2.25 in ruflo-browser and the CLI's browser-session npx fallback.
0.3.3 predates the 0.3.4 MCP security hardening.

- Every pinned command was run against 0.3.12: the ruflo-ruvector smoke
  (14/14), the console vector page's read commands, and the browser-session
  rvf + trajectory argv.
- Fix the ruflo-browser agent and browser-record recipes. They passed
  --session-id/--task/--args/--verdict to `hooks trajectory-*`, which no
  ruvector release accepts. They now use the argv the browser_session_* MCP
  tools already use.
- ruflo-ruvector README: a "What changed since 0.3.3" table (MCP env gates,
  per-project store, CRUD, `ruvector add`, rvf lock fix, graph-mincut fix),
  a re-verified limitations table, and the correct ADR link and tool count.
  /vector-setup documents RUVECTOR_MCP_ALLOW_INIT and RUVECTOR_MCP_ROOTS.
- Versions: ruflo-ruvector 0.4.0, ruflo-browser 0.3.8, ruflo-console 0.49.12.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-05 22:20:36 -05:00
rUvandr 45bf52cd86 feat(mods): adopt Claude Code 2.1.290-2.1.318 mod API changes (mods 0.16.0, console 0.49.11, swarm 0.3.8) (#4702)
- ruflo-mods guard (tool.check): read-only fast path on e.isReadOnly (2.1.304)
  that skips the policy-projection stat while a full check found none in the
  last 2 s (web tools excluded so the research ask still fires); a chain deny
  returns without file reads; decider "person" on every ask ruflo raises;
  agentId names the subagent on ruflo's reason; the chain's ceiling survives a
  tightening; .catch documented for 2.1.301 semantics, still fails closed.
- ruflo-console: console_state and console_run registered with
  isDeferred: false (2.1.293); console_open/console_set stay deferred.
- console + swarm: Text bold -> weight (2.1.299 deprecation), codemodded;
  bold: true -> weight: "semibold" (what the host already maps bold to).
  Engines before 2.1.299 refuse a tree with an unknown Text prop, so the kit
  maps weight back to bold there (text-weight.ts, via $.session.version()).
- tests for 2.1.318's kit: $.tool.call now raises tool.check first
  (guidance test); stub answers are validated (swarm prompt.fill stub);
  stale expectations fixed (probe session.compact, learning-loop handshake).
- console kit tests: timeoutMs 30_000 (the 5 s default timed out 19-58
  end-to-end tests under load, on 2.1.289 and 2.1.318 alike), and the mock
  clock advanced past runner.ts's VERIFY_RETRY_MS in actions/settings tests.

Co-authored-by: r <r@x>
2026-11-04 15:49:08 -06:00
rUvandr 937a9a44c2 fix(ruflo-console): the band fits a narrow pane (0.49.10) (#4701)
Rows are measured in terminal columns (emoji are two), a part that does not
fit is left out whole with a dim +N count instead of being cut mid-word, the
longest parts are shortened first so a wide band keeps the rest in full, and
the open button sizes to its label ('open' below 64 columns; the mark alone
below 40).

Co-authored-by: r <r@x>
2026-11-04 15:15:40 -06:00
Mario JauvinandRuFlo dbeaa39611 fix(ruflo-console): mission over with cancelled tasks, and no cancelled-mission context in Claude's prompt (0.49.9) (#4689)
* fix(ruflo-console): treat a mission with only done and cancelled tasks as over (0.49.9)

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruflo-console): leave the mission context out of Claude's prompt for a cancelled mission (0.49.9)

The active mission stays active until another is created, so after a cancel every new goal's guidance reached Claude with 'The mission is cancelled. Do not start new work.' before the create step could make the new mission. contextSection already returned null for a finished mission; it now does the same for a cancelled one.

---------

Co-authored-by: RuFlo <ruv@ruv.net>
2026-11-04 09:31:07 -06:00
rUvandr 66df9b95e1 feat(marketplace): agentdb and agentic-flow external plugins (ADR-518) (#4629)
* feat(marketplace): list agentdb and agentic-flow as external plugins (ADR-518)

Adds both upstream Claude Code plugins to the ruflo marketplace as
git-subdir entries pinned to their plugin-v3.1.0 merge commits
(agentdb 401fcb68, agentic-flow 2c86073b). Each runs its own MCP server
pinned to the 3.1.0 package plus a mod guard command.

A real-binary e2e checks out the pinned commit and asserts the mod
answers its own command with zero model requests, with a negative
control the loader refuses. README rows and ADR-518 added.

Co-Authored-By: RuFlo <ruv@ruv.net>

* chore(marketplace): keep \u escapes so the diff only adds the two entries

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(console): give agentdb and agentic-flow a home section (plugin coverage)

Co-Authored-By: RuFlo <ruv@ruv.net>

* test: run the external-plugin e2e only in the real-binary tier

Co-Authored-By: RuFlo <ruv@ruv.net>

* chore(console): 0.49.8 — plugin map covers agentdb and agentic-flow

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-10-31 20:45:43 -04:00
rUvandr 7d679ab425 fix(console): let Claude ack Project Anatole alerts via console_run (0.49.7) (#4545)
* fix(console): let Claude ack Project Anatole alerts via console_run

console_run anatole-ack-<id> failed with "command.run: called from a
tool.call hook, it would wait on the turn this hook is holding": the
console sent /protector and awaited its answer inside Claude's tool
call, and the host refuses a slash command while that call holds the
turn. A clock tick and immediate:true do not avoid it (probed against
Claude Code 2.1.289); a command started after the hook returns runs.

The Anatole specs now send /protector without waiting, retry for about
a minute while the host reports the turn as held, and say Queued until
the mod answers. Acks still pass the console confirm and Claude-control
level. ruflo-console 0.49.7.

Co-Authored-By: RuFlo <ruv@ruv.net>

* docs(console): link #4545 in the 0.49.7 changelog

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-10-27 17:22:26 -04:00
Mario JauvinandRuFlo 065089344d fix(ruflo-console): offer to create a mission for a new goal once the active mission is over (0.49.6) (#4537)
* fix(ruflo-console): offer to create a mission for a new goal once the active mission is over

The active mission stayed active for ever, so after it finished (every task
done in the ruflo task store) or was cancelled, a goal planned after it showed
"Create the mission and its tasks" as done with the old id and no create
button. missionOfGoal() now says the goal has no mission yet when the active
one is over, so the create step is the next step with its mc-create button.
A mission still going keeps the re-plan in place; a finished mission's own
goal is not offered a second time; a cancelled mission's goal can be created
again. The create itself is unchanged and still asks first.

Co-Authored-By: RuFlo <ruv@ruv.net>

* chore(ruflo-console): 0.49.6

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: RuFlo <ruv@ruv.net>
2026-10-27 14:22:25 -04:00
Mario JauvinandClaude Sonnet 5.5 60e951415b fix(ruflo-console): keep a project copy of the mission ledger (0.49.5) (#4524)
* fix(ruflo-console): keep a project copy of the mission ledger (0.49.5)

The ledger lives in the plugin's host store, a separate file per plugin
source. A console loaded inline in one session and from the marketplace
install in the next saw an empty store, so the project's mission
disappeared from Mission Control after a restart. Each save now also
writes .claude-flow/console/mission-ledger.json (git-ignored), and a load
that finds no ledger for the project in the store restores this project's
missions from it. A store that already has a ledger is left alone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(ruflo-console): offer, never adopt, missions from the project copy

The copy is a file a cloned repository can ship. Missions read from it
are now only offered (same path as pre-per-project missions, one yes
adopts each); nothing is adopted, stored or made active unasked, `active`
in the copy is ignored, and an empty ledger no longer overwrites it.

Addresses review on #4524.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(ruflo-console): word the project-folder offer as what it is

Missions offered from .claude-flow/console/mission-ledger.json were shown
under "from before per-project storage, with no project recorded", which
is wrong for them. They now get their own heading that says where they
were found and that a cloned repo can ship the file; the old heading is
kept for missions that name no project.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 16:08:34 -04:00
Mario JauvinandClaude Sonnet 5.5 64b4fb9768 fix(ruflo-console): submit the mission plan from a file (Windows "command line is too long") (#4506)
* fix(ruflo-console): submit the mission plan from a file so create works on Windows

mission_plan passed the ~7 KB plan as one `mcp exec -p` argument. With about 750 quotes, Windows argv quoting pushed the line past cmd.exe's 8191 characters: "The command line is too long." The plan is now written to .claude-flow/missions/console-plan-<id>.json and submitted with `ruflo mission plan --plan-file`, on every platform. Bumps to 0.49.4.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(ruflo-console): smoke contract expects 0.49.4

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 09:13:16 -04:00
rUvandr ed2dd638bd fix(ruflo-console): entryFor no longer returns another project's install record (#4496) (#4497)
* fix(ruflo-console): entryFor no longer returns another project's install record (#4496)

No applying record and no user record now yields null; among applying
project/local records the longest projectPath wins.

Co-Authored-By: RuFlo <ruv@ruv.net>

* chore(ruflo-console): bump to 0.49.3 for the entryFor fix (#4496)

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-10-25 22:51:04 -04:00
daak 264b346479 fix(ruflo-console): close Windows autopilot guard gaps and binary-planting paths (#4491) (#4494)
* fix(ruflo-console): close Windows autopilot guard gaps and binary-planting paths (#4491)

- ap-guard: extract Windows paths with spaces in folder names, extended namespaces (\\?\), UNC forward slashes (//srv/share), and capture drive-relative/device paths into relative paths.
- ap-envelope: match envelope-edit deny pattern under both / and \ separators.
- ap-envelope: normalize before root test and reject extended device namespace prefixes (\\?\, \\.\).
- ap-envelope: refuse .bat/.cmd targets in verifyProblem, and strip Windows executable suffixes repeatedly.
- paths: reject NTFS alternate data streams (colon after drive) and segments resolving to parent traversals in hasParentSegment.
- wf-control & wf-convo-live: resolve powershell.exe and where.exe via System32 to prevent local directory binary-planting.
- Add focused regression tests in ap-windows-guard, ap-envelope-windows-paths, wf-control-windows, and wf-convo-finder.

Fixes #4491

* chore(ruflo-console): bump version to 0.49.2 (#4491)
2026-10-25 16:28:32 -04:00
Mario JauvinandRuFlo 3a650ce747 fix(ruflo-console): Windows fixes from running every view on a real Windows machine (console 0.49.1, cost-tracker 0.28.3) (#4490)
* fix(ruflo-console): Plugin Catalog reads a Windows marketplace clone (0.47.1)

Claude Code records the ruflo marketplace clone's installLocation as a drive
path (C:\Users\...\marketplaces\ruflo). readCatalog refused any location not
starting with "/", so the catalog showed "the clone's marketplace.json is not
readable" with the file in place.

- readCatalog uses isAbsolutePath / hasParentSegment from paths.ts.
- The catalog's plugin folders, manifests, skill/agent/command reads and the
  snapshot's marketplace.json read (freshness row) build paths with joinPath
  instead of a hardcoded "/".
- tests/windows-drive-path-sites.spec.ts: a Windows clone lists its plugins,
  reads a skill file, and still refuses a relative or climbing location. The
  new tests fail without the fix.
- Version 0.47.0 -> 0.47.1 in plugin.json, hooks/version.ts, scripts/smoke.sh
  and CHANGELOG.md.

The other ruflo-console specs fail the same 12 tests with and without this
change on this machine (mission-cost, menu-entry, tui-ai-page, write-argv).

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruflo-console): forget-history actions and TUI colour work on Windows

- Events "forget history" and Workflows "forget saved views" ran `rm -f`, which
  Windows does not have (write-flavor.ts: no delete on host-fs). On host-fs they
  now empty the file(s) through the host file API (new emptyFiles in
  write-via.ts; forgetSpec carries a `write` op like event-export does). The
  saved-views file is rewritten as a valid empty document, and the forget is
  verified by what the file holds. Linux/macOS keep the rm argv.
- depthOf returned "none" whenever TERM was unset. Windows Terminal, PowerShell
  and cmd leave TERM unset (COLORTERM=truecolor, OS=Windows_NT), so the
  standalone TUI drew without colour. On Windows only an explicit TERM=dumb or
  NO_COLOR turns colour off.

Tests: both forget actions in host-fs flavor (files emptied, no rm run, refusal
reported, missing file left alone), forgetSpec verification, depthOf on Windows.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruflo-console): ADR status edits on CRLF records, and codex detection, on Windows

- withStatus / withSupersedes compared whole lines ("---") and checked
  startsWith("---\n"), so a MADR record checked out with CRLF (git autocrlf is on
  by default on Windows) failed with "the front matter is not closed", and other
  formats got mixed line endings. Records with CRLF are now edited as LF text and
  written back with CRLF.
- The Conversation board looked for codex with `which`, which Windows lacks, so
  codex was never offered there. A Windows home (drive path or share) uses
  `where`.

Tests: CRLF records for all three ADR formats (same edit as LF, CRLF kept, MADR
front matter found, supersede link), and the finder per platform. The ADR tests
fail without the fix.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruflo-console): keep the Windows fixes under the size rule, skip POSIX-only specs on Windows (0.47.2)

- Move the forget-history spec out of events-ui.ts into events-forget.ts: the
  Windows branch had taken events-ui.ts to 521 lines (smoke step 11 caps files at
  500). Move the codex-finder test out of wf-control-views.spec.ts (514 lines)
  into wf-convo-finder.spec.ts.
- wf-replay-views: the Forget button asks one tick later now that it awaits the
  write flavor; the spec waits for it.
- write-argv.spec.ts: the real-disk POSIX script specs check Unix mode bits and
  FIFOs, which NTFS has not; Windows writes through the host file API. Skipped
  there. tui-ai-page.spec.ts: the --plain spec needs a runnable fake codex (a
  shebang script), which Windows cannot run; it asserts the codex line exists.
- Version 0.47.1 -> 0.47.2 in plugin.json, hooks/version.ts, scripts/smoke.sh and
  CHANGELOG.md (the entry lists every Windows fix of this branch).

Verified: the specs of the changed areas pass; the remaining failures in a full
run are menu-entry (a circular import, not Windows-specific, fails on the
baseline), the *.test.ts kit files (need claude-code/testing), and two
timing-sensitive specs that pass alone.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruflo-cost-tracker): the ledger scripts run on Windows (0.28.3)

ledger.mjs, advise.mjs and local-cost.mjs ran only when
import.meta.url === `file://${process.argv[1]}`. On Windows that is
file:///C:/... against C:\..., never equal, so every call exited 0 with no
output and the plugin's own test-ledger.mjs failed 7 tests. They compare against
pathToFileURL(process.argv[1]).href now.

Two more breaks sat behind it for the ruflo console's mission spend:
- ledger.mjs --project required a leading "/", so a Windows project exited 2.
- inProject matched with "/" and exact case; transcripts record C:\Users\x\proj.
  A drive-lettered path now compares with either separator and any letter case;
  POSIX matching is unchanged (exact, directory boundary).

Tests: test-ledger.mjs gains Windows rows and cases (drive path in both
separator styles and letter cases, relative or climbing drive paths still exit 2,
POSIX rule stays exact). Version 0.28.2 -> 0.28.3 in plugin.json, smoke.sh and
CHANGELOG.md. smoke.sh still fails 5 steps on a Windows Git Bash for a reason
that predates this (it hands /c/... paths to a Windows node), unchanged here.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruflo-console): the autopilot's text checks know Windows paths, commands and shells

Groundwork for the Windows-aware path checks that ap-windows-gate.spec.ts names as
the follow-up (an autopilot start is still refused on Windows). Each rule only
parks or refuses more; none allows anything that was refused before.

- classifyTask read only POSIX paths from a task's text, so a task naming
  C:\Windows\..., \\srv\share\..., ..\..\x, ~\x, %USERPROFILE%\x or
  $env:USERPROFILE\x was not checked against the envelope folders. It is now.
- delete-outside-worktree knew the POSIX recursive-delete forms but not the
  Windows ones: rmdir /s, del on a drive, the drive-format command,
  Remove-Item -Recurse, or a recursive rm on a drive or a variable.
- verifyProblem took the program name by splitting on "/" only, so
  C:\Windows\System32\cmd.exe, bash.exe or powershell passed the banned-program
  check. It uses either separator, drops .exe/.cmd/.bat/.ps1, and a second set
  bans the Windows shells, script hosts and destructive or system tools.

Tests (ap-windows-guard.spec.ts): path extraction and the envelope check, the deny
forms and ordinary text that must not match, verify programs allowed and refused.
Four of them fail without the change; the POSIX behaviour is asserted unchanged.
CHANGELOG: added to the unreleased 0.47.2 entry.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruflo-console): the Overview heading shortens a Windows project path

"ruflo state in <last two folders>" split the cwd on "/" only, so a Windows cwd
(C:\Users\x\proj) printed whole. tailOf in paths.ts splits on either separator;
the overview uses it. Test in paths.spec.ts. CHANGELOG: added to the unreleased
0.47.2 entry.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruflo-console): transcript search, model keys and peer sends on Windows; smoke under Git Bash

The last Windows gaps of the sweep, each tested.

- Stopping or messaging a workflow run reads the run's task id from the session
  transcript; over 2 MB that was `grep -o`, which Windows lacks. Windows now runs
  PowerShell's Select-String (windowsSearchArgv in data/wf-control.ts). The path
  and the pattern ride inside the script as base64, so a path with a space, a
  quote, $, & or ; is only data and the script holds no double quote. Tested
  against a real PowerShell on a 5 MB-class file through such a path.
- taskIdOf returned the FIRST launch when a search printed two launches of one
  run (a resume), because the pattern's `[^}]` ran across both matches (nothing
  prints a closing brace between them). It takes the last task id in the match.
  This also affected `grep -o` on Linux and macOS.
- A model key for an HTTP endpoint was read with `printenv`, which Windows lacks.
  Host gains an optional `env` (register.ts: $.env.get, already used for other
  names) and SendDeps an optional `readEnv`, set only for a Windows home; elsewhere
  `printenv` is unchanged.
- A send to a federation peer runs `bash <helper>`. On a Windows PATH `bash` is
  the WSL launcher (System32\bash.exe), which cannot open a C:\ script path, so
  the send failed obscurely. On a Windows home it now refuses, running nothing,
  and says why.
- ruflo-cost-tracker scripts/smoke.sh builds ROOT with `pwd -W` under Git Bash:
  a Windows node could not open /c/... paths, which failed 5 steps (now 66/0).

Checked and left alone: the npx launcher. The installed Claude Code (a native
binary with the host code inside it) runs $.process.run through a bundled execa
on cross-spawn, which finds `npx` as npx.cmd through PATHEXT and runs it via
cmd.exe /d /s /c with its own argument escaping, so ['npx', ...] works on
Windows. The same lookup is why `bash` there is the first bash.exe on the PATH
(the WSL launcher on this machine), which the peer refusal above relies on.

CHANGELOG: both plugins' unreleased entries (0.47.2, 0.28.3) list these.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01C9t8G7o2vTPAxSFNb8rP4n

* fix(ruflo-console): what running every view on a real Windows machine turned up

The previous commits came from pattern scans. This one comes from running the
console's own readers against a real Windows machine (every view through the
standalone terminal; the plugin catalog, ADR loader and workflow reader called
directly), plus a complete triage of the path-handling patterns in hooks/.

Found by the real run:
- The standalone terminal left state.configDir null when CLAUDE_CONFIG_DIR was
  unset (the usual case), so the installed plugins, the marketplaces and the
  workflow runs were all "unreadable". It now falls back to <home>/.claude, as
  register.ts does in the engine. Not Windows-specific.
- research.ts kept its own POSIX-only safeInstallPath, so ruflo-goals was never
  found on Windows. It uses the Windows-aware one in cost-ledger.ts (same
  character set on POSIX); on this machine goalsOf now answers ready with the
  real C:\ root.

Found by triaging every `split('/')`, `lastIndexOf('/')` and `startsWith('/')`:
- isRunPath, isRunFile and isUnder checked for ".." only between slashes, so a
  segment written with a backslash passed on Windows; a config folder ending in
  a backslash did not match. They use hasParentSegment / trimTrailing, as does
  under().
- The menu and the boot screen named the project by splitting cwd on "/", which
  printed a whole C:\ path. baseOf in paths.ts.

Test-suite and cycle fixes so the smoke's own command passes here:
- views/pane built BODIES = { menu: menuView, ... } at load time, but
  views/menu reaches pane through mission-control > mission-claude > model-tools,
  so loading menu first left menuView undefined under the test runner (native
  ESM hoists the function; the app loads pane first). It is read at call time.
- tui-actions waited a fixed 1.2 s for a 1 s retry plus a redraw, and failed
  under CPU contention in a full run (also on the baseline). It waits for the
  outcome it asserts, up to 10 s.

Verified: the smoke's exact command (every spec, 30 s timeout) is 239 files
passed, 0 failed, 3486 tests; the console smoke is 20 passed, 0 failed; all 34
views render with exit 0 and no stderr; an ADR project with a space in its path
and CRLF records loads and plans a status change keeping its CRLF.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01C9t8G7o2vTPAxSFNb8rP4n

* fix(ruflo-console): the install record of a plugin that applies to this project, compared the Windows way

installed_plugins.json holds one record per install of a plugin, and a project-scope
record names the project it was made for. The snapshot took entries[0], so a plugin
installed for several projects showed another project's version and install folder.
On a real Windows machine ruflo-console@ruflo has five records (four project, one
user) and the first is a different project's 0.44.7; everything derived from it,
the version shown and the installPath used to find a plugin's scripts, could point
at the wrong copy.

- parseInstalled(text, cwd) picks the project or local record whose projectPath is
  the session folder or holds it, else the user record, else the first.
- insideOrSame in paths.ts is that comparison, Windows-aware (case, either
  separator, a folder inside the project); hooks/updates.ts decides which installs
  to update with it too. It compared with === and startsWith(path + "/"), so on
  Windows a session in a subfolder of the project, or with a different drive-letter
  case, did not count the project's own install and left it stale.

tui-actions: "a read runs at once" waited a fixed 500 ms for a stand-in CLI process
to start; it waits for the run it asserts, and its neighbour, which failed only
because that run landed late in the shared log, no longer does.

Tests (windows-path-guards.spec.ts): the record chosen for the project under both
separators, other letter case, a subfolder, a sibling sharing the prefix, no match,
no user record, no cwd; the updater's rule; insideOrSame. Verified: the smoke's
exact command (every spec, 30 s timeout) is 239 files passed, 0 failed, 3491 tests.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01C9t8G7o2vTPAxSFNb8rP4n

* test(ruflo-console): the focus-lost spec waits for the output to go quiet before it asserts silence

"stops drawing while the terminal reports focus lost" marked the output length 60 ms
after the focus-lost report and then expected no growth. A frame already in flight
when focus was lost lands after that mark on a busy machine, which reads as the page
still drawing; the smoke's first vitest pass failed on it and only the retry passed.
It now waits until the output stops changing before it marks, still asserts 500 ms of
silence after that, and waits for the redraw on focus regained instead of a fixed
300 ms. Passes 4 of 4 isolated runs.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01C9t8G7o2vTPAxSFNb8rP4n

* test(ruflo-console): the hostile-regex spec bounds the scan's CPU time, not the wall clock

"a slow pattern over ten thousand 200-character events stops at its budget" asserted
that the scan finished in under 2500 ms of wall-clock time. The scan is CPU-bound, and
the wall clock also counts every other worker of a parallel run, so the spec passed
alone (all 12 specs of the file in 316 ms) and failed in full runs, including both
tries of the smoke's step 14 on the previous HEAD. It now bounds the scan's CPU time
(process.cpuUsage) at the same 2500 ms and keeps a 30 s wall-clock bound as a guard
against a hang. The product code is untouched.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01C9t8G7o2vTPAxSFNb8rP4n

* test(ruflo-console): the host-boundary spec does not scan the mutation specs' temporary files

tui-boundary.spec.ts reads every .ts under hooks/ when it loads. adr-mutation and
mission-advisor-mutation make temporary .mut-N-*.ts copies of hooks modules inside
hooks/ and delete them, in other workers of the same run. Two ways that disturbs this
spec: a copy that is still there is checked as if it were a hooks module (shown with a
throwaway .mut- file that imports a Node module: the spec failed before this change,
passes after), and a copy listed and then deleted can throw at load, which fails the
whole file (the smoke's step 14 showed one such file-level failure that did not repeat;
six runs of the three specs together did not reproduce it, so that part is the likely
cause, not a demonstrated one).

The walk skips .mut- names and tolerates a file that vanishes. A real violation in
hooks/ is still caught (checked with a throwaway file).

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01C9t8G7o2vTPAxSFNb8rP4n

* fix(ruflo-console): the mod loads again: $.env.get takes a literal name

An earlier commit on this branch (f54772424) gave the host an `env` read that was
`async name => $.env.get(name)`. The engine lists the variables a module reads, so
`claude plugin validate` refuses a computed name:

  $.env.get takes a literal name as its first argument ...

and when it refuses register.ts the mod does not load at all: no /ruflo command, no
pane. Vitest never runs the engine's validator, so no test caught it; it showed up
when the branch was installed into a real Claude Code.

- register.ts reads only the one key it can name literally,
  $.env.get('OPENROUTER_API_KEY'); any other name answers undefined.
- wf-send says, for a custom endpoint key on Windows, that it cannot be read here and
  that only $OPENROUTER_API_KEY can, instead of claiming the variable is unset. The
  OpenRouter key keeps the "is not set" wording.
- tui-boundary.spec.ts: no $.env.get/set in hooks/ may take a non-literal name (fails on
  the old line, passes on the fix).
- smoke.sh step 21 runs `claude plugin validate` on the plugin when the CLI is present
  (passes now; reports "Validation failed" against the old line).
- CHANGELOG corrected: it described the broken behaviour.

Verified with the real validator: before, "Found 1 error"; after, "Validation passed",
and the hook list shows command.run{command=ruflo}. The 9 "gating hook without .catch"
notes it prints are identical on upstream/main.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01C9t8G7o2vTPAxSFNb8rP4n

* test(ruflo-console): specs remove their temp folder with a retry, so a still-exiting child does not fail the file on Windows

After the merge, tui-actions.spec.ts was reported as a failed FILE with all 8 of its
tests passing:

  EBUSY: resource busy or locked, rmdir '...\tui-actions-XXXX\project'

On Windows a folder cannot be deleted while a process started in it is still running,
and these specs start the stand-in CLI and terminal sessions with the project folder as
their working directory. force: true does not cover EBUSY, and neither does maxRetries
on rmSync: measured on Node 22 with a child holding the folder for 1.2 s, rmSync fails
in 3 ms with or without maxRetries, while fs.promises.rm with maxRetries (and a manual
loop) removes it after about a second.

- tests/fixtures/rm-tree.ts: removeTree(), the async rm with up to ~5 s of retries.
- The ten specs that start processes or sessions in their temp folder (tui-actions,
  tui-ai-host, tui-ai-page, tui-host, tui-nav, tui-pagebar, tui-parity, tui-pictures,
  tui-session, wf-control-windows) use it in afterAll.
- tests/rm-tree.spec.ts: removes a tree and an already-gone one; on Windows, a real child
  holding the folder makes rmSync fail with EBUSY and removeTree wait it out.

All eleven files pass.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01C9t8G7o2vTPAxSFNb8rP4n

---------

Co-authored-by: RuFlo <ruv@ruv.net>
2026-10-25 13:00:56 -04:00
rUvandr db141ba70e feat: managed workflows, unified console runs and verified advisory learning (#4471)
* feat(agent): add bounded managed dynamic workflows and verified lifecycle observation

* feat(plugins): integrate managed workflows with mod policy and capability discovery

* feat(managed): unify console runs and verified advisory learning

* fix(managed): hydrate native recall receipts validated on ruOS

* docs(managed): record authenticated console host blocker

* docs(managed): qualify installed console and compatible native host

* feat(managed): integrate verified cycles and isolate native memory

* fix(managed): enforce offline native models and qualify feedback E2E

* fix(managed): independent security and correctness review findings

- gate managed_agent_interrupt through the managed_agent_control policy; terminate obeys the allowlist and deletes only its own environment when RUFLO_MANAGED_CONTROL=1
- track only events from the acknowledged message so a later poll cannot report the previous turn as finished
- require the canonical base64 verifier signature so one receipt cannot fill the ledger
- register RUFLO_MANAGED_AGENTS_BASE_URL as a trust-boundary env var (env-precedence audit) and key the credential scope marker with a per-process HMAC (CodeQL)
- best-effort local snapshot writes; report messageId when a prompt fails after it was sent
- console: rescheduling is running, budget/action-blocked sessions are active, not finished
- document the remaining known limits in ADR 0004

Co-Authored-By: RuFlo <ruv@ruv.net>

* docs: user guide section for managed cloud agents; correct ruflo-agent README counts

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(managed): scope marker is a generation number, never a hash of the API key (CodeQL)

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-10-24 22:42:09 -04:00
rUvandr d36d72a9ff feat(ruflo-console): ruRE can read an outside folder the person allows (ADR-499, console 0.48.0) (#4452)
New option rureFolders (name=/folder pairs); a sample names one as @name/sub/file.
The preflight resolves the alias after checking the folder and every part below it
for links, and swaps the absolute path into the row's -p JSON. Option writes stay
install-class and always ask. Runner stays at 500 lines (preflight now gets options).

Co-authored-by: r <r@x>
2026-10-24 00:02:33 -04:00
rUvandr 7564f7cefa feat(ruflo-console): CUDA row on the ruRE page, DETECT routes and a hint from the native reader (ADR-497) (#4443)
* feat(ruflo-console): CUDA row on the ruRE page, DETECT routes and a hint from the native reader (ADR-497)

dt-re-cuda calls rure_analyze_cuda; cudaLines shows fatbin entries, kernels with
registers/code/constant/shared memory, and PTX, from real captured CLI answers.
DETECT sends .cubin/.fatbin/.ptx to it, and the native reader points a CUDA host
binary at it. Console 0.47.0. Needs a CLI with the tool (after 3.60.1).

Co-Authored-By: RuFlo <ruv@ruv.net>

* test(ruflo-console): CUDA e2e must handle a Node without zstd

CI's Test Suite job runs Node 20.20.2, which has no zstd, so the CLI correctly
reported the CUDA 13 PTX as unread and the test that expected it to be read
failed. The test now expects the read where zstd exists and the explicit
'this Node cannot read zstd' note where it does not. Run under both Node
22.23.2 and 20.20.2.

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-10-23 18:25:46 -04:00
rUvandr bb9ab9eee3 feat(ruflo-console): ruRE DETECT, long lists, and a structured view for Claude (ADR-496) (#4440)
* feat(ruflo-console): ruRE DETECT, long lists, and a structured view for Claude (ADR-496)

DETECT picks the reader from the folder/file kind and extension (never the
writing one). Long lists wrap onto their own lines (60 items, 120 lines in
all). console_run answers with a ruRE run's lines and console_state carries a
rure block, every string through the model path. preflight may now return
replacement args/label/lab/note/lines. Console 0.46.0.

Co-Authored-By: RuFlo <ruv@ruv.net>

* test(ruflo-console): DETECT e2e must not assume the format line is first

Without AIDefence (CI) the reader puts a 'not screened' caveat first, so the
ELF/PE assertions at index 0 failed on the Ubuntu runner. Look for the format
line anywhere in the result.

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-10-23 16:52:14 -04:00
rUvandr 39f5942c02 fix(ruflo-console): ruRE refuses a sample that is a link (ADR-495) (#4439)
The sample rule was textual (relative, no ..); a link inside the project
that points outside it passed and the rure_* tools opened it. Every ruRE row
now walks the sample on disk before it runs (new ActionSpec.preflight, awaited
by the runner), for the page and for console_run alike. Console 0.45.2.
Also fixes ruRE comments citing ADR-492 (it is ADR-494).

Co-authored-by: r <r@x>
2026-10-23 16:12:13 -04:00
ea25a05abe fix(ruflo-console): Windows writes go through the host filesystem (#4433) (#4434)
* test(console): fixture file system accepts Windows drive paths

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(console): Windows project folders are project folders (ADRs, export, catalog, mission cost)

Guards that accepted only a path starting with "/" treated a Windows session
folder (C:\Users\x\proj) as "no project folder is known". Adds hooks/data/paths.ts
(pure string helpers: isAbsolutePath, joinPath, samePath, plus hasParentSegment,
normalizePath, below, trimTrailing, isWindowsPath) and uses it at the absolute-path
guards in adr, event-export, wf-file, plugin-catalog, mission-cost (and the ledger
install path), wf-worktrees, skills-lab, wf-drill-io, facts, ap-envelope and
register. Each caller keeps its own ".." refusal; POSIX paths take the same code
path as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(console): protected autopilot folders match ignoring case on Windows paths

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(console): find the home folder on Windows (sessions, plugin health, What's new)

Implements homeOf function that checks HOME → USERPROFILE → HOMEDRIVE+HOMEPATH
with comprehensive test coverage. Fixes state.home initialization on Windows
where HOME is unset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(console): disk writes work on Windows through the host file API

Windows has none of uname, dd, sh, install, mkdir or cp in Claude Code's process
environment, so every console write (Events, Timeline, autopilot journal, ADRs,
exports, .gitignore) failed there. New write flavor host-fs, chosen on win32 (no
uname is run), carries the enumerated writes through $.fs.read/write/exists via
writeVia. Linux GNU and macOS/BSD argv are unchanged (pinned by test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(console): autopilot kill flag can be cleared on Windows; document host-fs create window

Windows has no delete, so clearKill rewrites the KILL flag with a fixed marker and
killSeen treats exactly that content as not set (host-fs only); stopNow rewrites
the flag empty so a second stop is seen. POSIX rm/stat behaviour is unchanged.
write-via and wf-file now say host-fs creates are check-then-write (no O_EXCL).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(console): no Linux-only process probe on Windows; clear probe timers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(console): a hive started from the console shows at once

When a start's CLI run exited 0 but its verify fails (the CLI can return
before its state file lands), wait 1 s via host.after, read fresh and verify
once more before reporting the "expected ..." text. No retry when the run
failed; exactly one retry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(console): pin Windows containment, parent-segment and UNC rules in paths.ts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(console): workspace keys equal across drive-letter case and trailing separator

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(console): autopilot start is refused on Windows until atomic appends and Windows-aware path checks exist

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(console): 0.42.2 changelog and version

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(console): read home variables by literal name so the module loads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* post-merge cleanup: finish #4036 integration

The Option B merge commit (4313013cb) landed cleanly against upstream/main
but a batch of merge-resolution edits in the working tree were not persisted
into the commit itself. This commit finishes the integration:

Path-helper consolidation (abs-path.ts → paths.ts):
- hooks/data/wf-drill-io.ts: add missing paths.ts import for below,
  hasParentSegment, isAbsolutePath, samePath, trimTrailing (fixes 4
  wf-drill-read.spec.ts failures that threw `ReferenceError: isAbsolutePath
  is not defined` at runtime).
- hooks/adr.ts: migrate from ./data/abs-path to ./data/paths, pulling in
  joinPath which is needed at lines 89/94.
- hooks/register.ts: drop the rootedPath import from the deleted
  abs-path.ts; inline the equivalent isAbsolutePath+joinPath expression.
- hooks/data/event-export.ts, hooks/data/wf-file.ts: drop the duplicate
  isAbsolutePath import from the deleted ./abs-path (the main-side wider
  './paths' import already covers it).

VERIFY_RETRY_MS lifecycle (ADR-450 interaction with Marius' feature):
- hooks/runner.ts: extend the retry condition — `verified === 'n/a' &&
  spec.verify !== undefined` also retries, so a snapshot that hasn't
  loaded yet (null, not "no verifier") gets the one-second re-check.

Tests brought in line with the new timing / platform guards:
- tests/tui-actions.spec.ts: settle(600) → settle(1200) at the point the
  runner's VERIFY_RETRY_MS one-second re-check has to resolve before the
  verdict is drawn.
- tests/windows-drive-path-sites.spec.ts: fsWithDir made separator-agnostic
  via a normSeps helper, since joinPath now uses the base path's own
  separator (`\` on a Windows base).

Version bump:
- .claude-plugin/plugin.json, hooks/version.ts, scripts/smoke.sh: 0.44.7
  → 0.44.8.
- CHANGELOG.md: prepend 0.44.8 entry crediting #4036 and @socrates6969.

Verified: full console suite 3400 total · 3362 pass · 15 fail · 23 skipped.
Every one of the 15 remaining fails is pre-existing on main or a
platform/env limitation (Windows chmod, fake-timer timing, codex not
installed) — zero merge-caused failures remain.

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: Marius Carlsson <109006081+socrates6969@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Mario Jauvin <marioja@users.noreply.github.com>
Co-authored-by: r <r@x>
2026-10-23 14:04:03 -04:00
rUvandr e8c98eb916 feat(ruflo-console): ruRE page in TOOLS — static reverse engineering from the console (ADR-494) (#4430)
* feat(ruflo-console): ruRE page in TOOLS — static reverse engineering from the console (ADR-494)

A TOOLS page for the six rure_* tools of ruflo-rure, built the way the Sandbox
page is: six Dev Tools entries (dt-re-*) drawn on a page of their own, so they
share the confirm gate, palette ids and result panel. Five rows are $0 reads;
UNPACK .ASAR writes outside the project and asks first. A new 'sample' field
takes only a project-relative path. Results are the analyzed file's own text
and pass plain() so a hostile binary cannot put an escape on the terminal; a
number that is not a measurement reads n/a. A CLI without the tools says to
update. Enter in a ruRE field runs that page's row.

Tests: rure-page.spec.ts (catalog vs real schemas, readers vs real captured CLI
output, hostile answers, page, guide, palette, Enter routing) and
rure-e2e.spec.ts (every row's argv through the built CLI on real files,
including a hostile ELF; fails with plain() removed). Console 0.44.7 -> 0.45.0;
ruflo-rure 0.4.1 -> 0.4.2 (docs only).

Co-Authored-By: RuFlo <ruv@ruv.net>

* test(ruflo-console): ruRE e2e accepts either AIDefence outcome (CI has no AIDefence)

The .NET e2e asserted a string literal was 'hidden by AIDefence', true only
where the optional package is installed. In CI the tool reports screened:false
and the page says 'not screened: AIDefence was unavailable'. Both are honest;
the test now pins that the screening state is always on screen.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruflo-console): ruRE EVM result no longer shows a doubled ellipsis

plain() already marks a clipped value; the reader added a second one to the
event topic and the IPFS hash. Test pins it.

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-10-23 12:02:36 -04:00
rUvandr 98c3808276 fix(console): find the project folder on Windows for ADRs, exports and transcript save (#4358)
Three sites hardcoded `base.startsWith('/')` / `root.startsWith('/')`
as their "is the project folder known" guard. On Windows `state.cwd`
is a drive path (`C:\Users\...`), which never starts with `/`, so
each one refused regardless of settings:

- adr.ts discover() — the ADRs page never found a project's folder
- event-export.ts resolveTarget() — Events/Timeline export
- wf-file.ts resolveExportPath() — the Workflows page's saved-view
  write path, and (transitively) the AI terminal's transcript save

All three now use the existing isAbsolutePath() helper (#4175 already
fixed the same bug class in register.ts). Two follow-on fixes were
needed once the guard was fixed:

- resolveTarget()/resolveExportPath() both forced a POSIX-style
  leading `/` onto the reconstructed path after splitting on `/`,
  discarding a Windows drive or UNC prefix. Now the leading `/` is
  only added back when the original absolute path was POSIX-style.
- wf-file.ts's own containment filter (`inside`) had the identical
  startsWith('/') bug, independently excluding every Windows root.
- wf-convo-live.ts's saveTranscript() pre-joined state.cwd into the
  string passed to resolveExportPath(), which refuses any backslash
  in its input — so a Windows cwd tripped that guard even after the
  above fixes. It now passes the relative file name only, matching
  resolveTarget()'s cleaner two-argument contract.

Fixes #4356 (reported by @marioja, with exact file/line citations and
a correct root-cause diagnosis for the ADRs page; this also fixes the
two related sites the report flagged as worth checking).

Validated: new windows-drive-path-sites.spec.ts (7/7), the full
plugin unit suite (219 files / 3340 tests), and the ADRs + export-
adjacent UI harness suites (adrs, labs, missions, watch — 27/27).

Co-authored-by: r <r@x>
2026-10-21 11:31:41 -04:00
rUvandr 4401c87d6d feat(ruflo-console): separate the nav's menu, groups, search and pages with a bar (0.25.1) (#3664)
The compact nav (ADR 424) ran its groups together with a gap. A dim bar now sits between the menu, each group and the search on the first row, and between the pages on each row below. The width check counts the bars, so the search still moves to its own row when it does not fit. Presentation only: groups, pages, hotkeys and search are unchanged.

Co-authored-by: r <r@x>
2026-10-20 03:26:25 -04:00
rUvandr d529a38a7c release: 3.58.0 (#4306)
* chore(release): 3.58.0 version bumps and changelog

Minor release: new memory peek command, Codex activity viewer, configurable
MCP rate limits, plus the #4303 install-breaking fix and a round of
correctness fixes merged since 3.57.2. Also bumps ruflo-console 0.44.4 ->
0.44.5 for the #4305 TUI fix, which shipped to main without a plugin version
bump (the same gap already documented as a past mistake in the console's own
changelog for 0.44.3/0.44.4).

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruflo-console): update smoke.sh's hardcoded version check to 0.44.5

The plugin.json version bump to 0.44.5 (for the #4305 TUI fix) broke the
smoke contract's own hardcoded expectation of 0.44.4 in step 1. Update the
step name and grep pattern to match.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ci): sync the smoke-workflow regression test to the real 15-minute timeout

#3950 bumped .github/workflows/all-plugins-smoke.yml's smoke-all job from
timeout-minutes 10 to 15 (the job now also checks out and smokes the first
external git-subdir marketplace entry, agentic-qe-fleet) but never updated
this test's hardcoded expectation of 10, breaking the Test Suite job on
every PR since.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(memory): resolve sql.js's wasm dist path directly, not via package.json

fts5.test.ts located sql-wasm.wasm via require.resolve('sql.js/package.json')
then string-replaced the suffix. sql.js 1.14 tightened its exports map to
"." and "./dist/*" only, so that package.json subpath resolve throws
ERR_PACKAGE_PATH_NOT_EXPORTED even though the wasm file is present on disk —
caught by the existing try/catch and misreported as "sql.js isn't installed",
failing all 4 SqlJsBackend FTS5 tests with "sql.js/dist/sql-wasm.wasm not
found". Resolve 'sql.js/dist/sql-wasm.wasm' directly instead, which the
"./dist/*" export already permits.

Verified: 6/6 passing locally (was 4 failed before the fix).

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ci): move pod-tick.test.mjs to the node:test exclusion list

Same fix as #4308: this file imports test() from node:test (not vitest)
and documents itself as "Run with: node --test" in its own header, but
was miscategorized into ci-test-baseline.txt. Running it under vitest's
shared worker process correlates strongly with the ERR_IPC_CHANNEL_CLOSED
crash hit 4/6 times on this PR's own CI (#4307). Applying here directly so
this release doesn't wait on #4308 to merge first.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ci): cap the ratchet's vitest worker count to 2

#4307: Test Suite (ubuntu-latest) intermittently crashes with tinypool's
ERR_IPC_CHANNEL_CLOSED at three different, unrelated points across 7 runs
on this PR, after ruling out any specific file as the cause (one
candidate, pod-tick.test.mjs, was fixed separately for an unrelated
reason and the crash still recurred at a different file). The pattern
(crash location varies, happens ~60-90s into a ~9500-test run) is more
consistent with cumulative memory pressure across the default fork
pool (one fork per CPU, ~4 on a standard runner) than a single bad
test. Capping workers at 2 trades some wall-clock time for headroom
while the real cause is still open in #4307.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(graph-intelligence): build the optional cli import specifier from parts

#4307 investigation, round 8: once the worker-cap fix (3739f3a9) stopped
the random tinypool crash, Test Suite started failing deterministically
on plugins/ruflo-graph-intelligence/tests/phase4-adapters.spec.ts —
"./src/memory/graph-edge-writer.js" is not exported, even though that
spec file's own tests never execute the real GraphEdgesSource.listEdges()
(they all use inline fake listEdges() test doubles). The spec file does
statically import knowledge-graph-adapter.ts at module level, though, so
vitest's module-graph crawl sees the string literal and (CI-only, not
reproduced locally in 2/2 attempts) appears to eagerly resolve it outside
this method's own try/catch during collection.

Build both the primary and fallback specifiers from joined array parts
instead of literals, so no bundler's static import-specifier scan can
find and pre-resolve them — the actual resolution still only happens at
the real `await import(...)` call site, same as before.

Verified: full plugin suite green, 104/104 (was 8/8 on the one affected
file already — this closes the only CI-only gap).

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ci): baseline token-optimizer.test.ts — real, pre-existing, unrelated bug

v3/@claude-flow/integration/src/token-optimizer.ts calls
this.agentBooster.editCode(...), but the real agentic-flow/agent-booster
module's AgentBooster/EnhancedAgentBooster class has no editCode method
at all (its real API is apply/applyBatch/prefetch/...). Confirmed by
enumerating the class prototype directly. Not a version-pin issue, not
caused by anything in this release — @claude-flow/integration isn't even
part of the release train. Filed as #4311 with the real-fix suggestion
(rewrite optimizedEdit() against the actual API) for whoever owns that
integration layer; baselining here so the Test Suite ratchet reflects
reality instead of blocking an unrelated release on pre-existing debt.

Co-Authored-By: RuFlo <ruv@ruv.net>

* docs(changelog): record the CI-reliability fixes found validating 3.58.0

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-10-20 02:11:26 -04:00
Mathew BeaneandRuFlo ffc2b08279 fix(ruflo-console): stop pre-#4237 missions leaking into every project (#4254)
#4242 keyed the mission ledger by project, but a project with no ledger of
its own still took in every mission from the old shared key that had no cwd
(all of them, since cwd was only recorded from #4237 on), and the first save
copied them into the project's own key.

- Missions with no project are offered in Mission Control (adopt here / not
  this project) instead of taken in; until adopted they are not picked,
  handed to Claude or put in the prompt.
- Adopt stamps the project's cwd and removes them from the shared key;
  dismiss is remembered per project.
- A shared-key mission recorded for this project is taken in and pruned.
- A 0.44.3 copy with no project in a project key is offered the same way.
- loadLedger clears missions and active when the State's cwd changes
  (session.start reuses the State).
- Ledger storage moves to hooks/mission-ledger.ts (mission-control.ts would
  pass 500 lines); mission-control.ts re-exports it unchanged.
- Console 0.44.4: #4242 shipped under 0.44.3, so plugin update never
  offered it.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-19 12:55:40 -04:00
Korjavin Ivanandkorjavin 584bad756b fix(console): the rest of Mission Control's prose wraps at 80 columns (#3899) 0.44.3 (#4225)
0.40.2 and 0.43.7 wrapped Approvals, a mission's objective and the Plan tab's
own prose; some mission text still ended in "…" at 80 columns (tmux):

- launch steps: a detail that does not fit beside its label (Claude's
  guidance note, the screen verdict, the next task) wraps on rows under
  the step; "Create the mission and its tasks" no longer runs into its detail
- record: the expanded mission's state/plan/evidence/executor/blocked lines,
  the stale and attention notes, the legend and the observation note wrap
- Mission options: the "not offered by this session" hint wraps

Tests first: tests/narrow-width.spec.ts (2 new cases fail without the change).

Co-authored-by: korjavin <148765+korjavin@users.noreply.github.com>
2026-10-17 16:35:25 +01:00
randRuFlo 00002568a2 Merge main into fix/console-windows-rooted-4175; renumber console bump to 0.44.2
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 10:22:43 -04:00
randRuFlo fcd0fa59dd chore(console): 0.44.1 for the TUI Stage B and C changes
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 09:51:00 -04:00
randRuFlo 1e8d37e03a feat(tui): ruflo tui draws the console's pictures, looks and motion (console 0.44.0, ADR-489 phase 4)
The standalone terminal UI now leads each page with the same title art and
pictures the console draws, as coloured cells (Raster in the terminal kit),
in the console's looks (Classic BBS default, Orbital, plain), moving at
--fps with only the changed rows redrawn.

- tui/ansi.ts: Raster; control/escape/invisible/wide code points become
  spaces, malformed or oversized cells draw nothing
- looks: --look, t key; --boot; --fps, --no-anim, --no-pictures
- focus reporting pauses the animation clock; NO_COLOR, dumb terminals,
  and widths under 44 fall back to the words
- guide: flags, looks, the t key; corrects the confirm-card sentence
- ADR-489: phase 4 recorded, parity table skeleton
- README/guide SVGs regenerated from real frames (leak-checked)

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 05:44:48 -04:00
randRuFlo 9405bed863 fix(console): read the project on Windows: a drive path is absolute, so the cwd is not prefixed twice (#4175)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 05:21:33 -04:00
RuFlo 263826b0ef fix(console): hints name the skills pin from PINNED_SKILLS, limits documented; console 0.43.5 (#4113)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 15:42:40 -04:00
RuFlo 5caaa53a1b chore(console): 0.43.3 for the console_state expired flag (#4067)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 13:55:22 -04:00
randRuFlo 29714a9e4a fix(console,cli): ruflo tui page bar marks the AI page, help says 1-6, policy-trust path never relative to cwd (console 0.43.1)
- tui: the page bar was painted from session.state.view, which the AI page never sets, so on page 6 it kept the previous page lit; it now follows session.page (9 tests, 4 failed first)
- tui --help and the console README said keys 1-5; they are 1-6 and o c s e m a (test holds the help text)
- cli: policyTrustRoot() no longer joins an empty or relative $HOME, which put the anchor mirror and key under the working directory; falls back to the account home or refuses (2 tests, 1 failed first)
- docs: ruflo-tui-walkthrough.svg re-recorded from real frames with the AI page and its ask-first card, 6 AI marked

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 12:55:08 -04:00
RuFlo 6c79bcab76 Merge branch 'codex/console-orbital-theme' of https://github.com/ruvnet/ruflo into pr-4079 2026-10-11 23:45:37 -04:00
RuFlo 79f2199367 perf(console): land mask for the Orbital globe, theme bench, adversarial theme specs
- orbitalGlobe reads a one-degree land mask built once (0.407 -> 0.268 ms at 140x24, 0.176 -> 0.120 ms at 100x16; 0.16% of globe glyphs differ along coastlines); palette parsed once per theme
- scripts/bench-theme.mjs: per-tick cost of the animated pictures, Classic vs Orbital
- tests/themes-adversarial.spec.ts: 45 specs on import, store and model-facing text

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 23:45:27 -04:00
rUv edee18c62e perf(console): exclude inactive SVG frames from rendering 2026-10-11 20:28:28 -07:00
rUv 8c3192c306 fix(console): replay header entrance motion on demo navigation 2026-10-11 20:26:40 -07:00
rUv ddadeaae6c fix(console): draw missing SVG icons and align animated glyph cells 2026-10-11 20:26:39 -07:00
RuFlo dc38c094ae chore(console): port the SVG demo exporter from Python to Node
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 23:25:09 -04:00
r 2b3dc7f7d4 Merge branch 'codex/console-orbital-theme' of https://github.com/ruvnet/ruflo into pr-4079 2026-10-11 23:24:41 -04:00
RuFlo dc4a519a2a fix(console): Theme Studio boot line, help guide, by-name nav, 0.43.0, no Python, files under 500 lines
- boot log + self-check area + help guide for the themes view; nav test lists it as by-name
- bump console to 0.43.0 (plugin.json UTF-8 restored, CHANGELOG, version.ts, smoke pin)
- remove render-theme-demo.py (repo rule: no Python); README points at frames.json
- generate-console-theme skill: allowed-tools: Read
- split pane icons and startup loads out of pane.ts/controller.ts (both back under 500 lines)

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 23:24:30 -04:00
rUv b23b053d63 feat(console): export theme workflow as native animated SVG vectors 2026-10-11 20:19:04 -07:00
rUv 3fb35a5a0f test(console): add reproducible theme workflow demo and video export 2026-10-11 20:13:12 -07:00
randRuFlo 9cf03b3ab9 ci(tui): build the TUI bundle for the e2e matrix with an esbuild installed on its own (RUFLO_ESBUILD_DIR)
A root npm install crashes in arborist on this workspace; the tui leg only needs esbuild. build-tui.mjs looks in the repo first, then in RUFLO_ESBUILD_DIR.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 17:04:46 -04:00
randRuFlo ba6f9273a3 feat(tui): Swarm, Events and Missions pages, page bar and keys, resize, and no Claude-only chrome (ADR-489 phase 2)
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>
2026-10-11 16:24:56 -04:00
randRuFlo c11b5461f5 feat(cli,console): ruflo tui, the console in a terminal of its own (ADR-489, phase 1)
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>
2026-10-11 09:47:49 -04:00
randRuFlo 4fce7223f1 chore(console): 0.42.6 version and changelog for #3979
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-10 21:00:18 -04:00
randRuFlo 91aa4eef59 fix(console): bind every confirm route to the card the person saw (#3983), version 0.42.5
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-10 20:58:55 -04:00