mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
v3.63.9
1278
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
8c0ad74e50 |
chore(marketplace): pin agentic-qe-fleet to v3.15.17 (#4574)
Move the external agentic-qe-fleet entry from v3.15.16 (4edfa469) to v3.15.17 (b177b2315521376b83f2eed40e4994fd7581d067), so its MCP server runs agentic-qe@3.15.17. The plugin folder changed only its version and MCP pin. Updates the README links, the external-plugins test fixture and the ADR-484 evidence section with the re-run install results. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
49f9a313ea |
chore(marketplace): pin agentic-qe-fleet to v3.15.16 (#4560)
Move the external agentic-qe-fleet entry from v3.15.15 (1d0cc766) to v3.15.16 (4edfa469d8f957b45bc0ea25424eb831b134f129), so its MCP server runs agentic-qe@3.15.16. The plugin folder changed only its version and MCP pin. Updates the README links, the external-plugins test fixture and the ADR-484 evidence section with the re-run install results. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
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> |
||
|
|
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> |
||
|
|
551428e39a |
chore(marketplace): pin agentic-qe-fleet to v3.15.15 (#4533)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
dafd38a4fe |
feat(ai-team): semantic memory via Cognitum embeddings, ordered listing, funnel logging, anon rate limit (0.4.0) (#4527)
* feat(ai-team): semantic memory via Cognitum embeddings, ordered listing, funnel logging, anon rate limit (0.4.0) - memory_search ranks by meaning through /v1/embeddings (cognitum-embed, 384-dim) when a key is set; vectors persisted only for unchanged text, never returned; outage or no key falls back to the labelled lexical index - listMemories reads newest first (composite index teamId+createdAt), falling back to the unordered read when the index is absent - one structured ai_team_activation log line per workflow stage, hashed tenant, no content - per-client limit on unauthenticated requests (last X-Forwarded-For entry; OAuth and /health exempt) Co-Authored-By: claude-flow <ruv@ruv.net> * fix(ai-team): keep plain mcp.tool registration sites; wrap registration for funnel logging The repo-wide guard-tool-names check scans for .tool('name'; a local tool() helper hid them. Co-Authored-By: claude-flow <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
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> |
||
|
|
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> |
||
|
|
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> |
||
|
|
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) |
||
|
|
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 (
|
||
|
|
d7fcaf3b25 |
fix(ruflo-mods): load again: the ruRE offer no longer registers a second bare session.start, tool.call and turn.complete (0.7.1, #4485) (#4487)
Co-authored-by: r <r@x> |
||
|
|
c365d37280 |
chore(marketplace): pin agentic-qe-fleet to v3.15.13 (#4484)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|
|
f02989a78c |
fix(managed): refuse . and .. resource ids; guard reads common argument wrappers (ruflo-agent 0.4.1) (#4478)
Follow-up to the 3.63.0 security review (low severity #6 and #9); documents #7 and #8 as known limits. Co-authored-by: r <r@x> |
||
|
|
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> |
||
|
|
8ec06c0ee8 |
feat(ai-team): guard team_create/team_update, skill handoffs, ruflo agent linkage, /team-remember and /team-board (0.3.5) (#4475)
The guard already covered task_update results (it screens the whole call), but team_create/team_update carry shared free text too and were unscreened. Skills now end with the skill to use next, the three agents say how ruflo agents do the work the service only records, and two commands cover memory and the board. Co-authored-by: r <r@x> |
||
|
|
979cce0ab5 |
fix(x-gateway): argument-less tools/call, bare-host POST, reject diagnostics (0.9.1) (#4468)
* fix(x-gateway): argument-less tools/call, bare-host POST, and reject diagnostics (0.9.1) Co-Authored-By: RuFlo <ruv@ruv.net> * ci: baseline the x-gateway registration-compat spec with its node:test siblings Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
d3948da2d5 |
fix(ai-team): newest-first lists, complete evidence audit, honest version (0.3.4) (#4467)
Firestore reads without orderBy return document-id order, so capped reads kept an arbitrary slice: the board showed an arbitrary 100 runs once a tenant had more, and evidence exports read the first 1000 audit records then filtered, dropping a run's events on busy tenants. Lists now order newest first; evidence queries audit by target (30-value in-chunks). package.json still said 0.1.6 so /health could not identify a deployment. Adds Firestore store tests with a limit-after-order double. Co-authored-by: r <r@x> |
||
|
|
24450bf9f7 |
feat(rure): rure_cuda_launch_plan — static occupancy plan for CUDA kernels (ADR-501) (#4464)
New read-only tool: per kernel and architecture, theoretical occupancy at several block sizes, what limits it, the best sizes and flags; optionally the text of a driver-API harness the person can build to check it on their own GPU. Nothing is compiled, loaded or run by ruRE. The model equals NVIDIA's cuda_occupancy.h on 1,770,216 combinations (8 archs, limiting sets included; fingerprints committed so CI repeats it) and the CUDA driver on real GPUs: RTX 5080, RTX 3090, RTX 4090, A100, H100. Found on hardware: from sm_90 the cubin's shared size already includes the driver's 1 KiB reservation. Also fixes the reader reporting sm_5 for standalone cubins from CUDA 12 (ELF OS ABI 51 keeps the SM number in the low byte of e_flags); real CUDA 12.8 cubins added. ruflo-rure 0.6.0. Co-authored-by: r <r@x> |
||
|
|
7c37957f55 |
Fix browser doctor path from unrelated working directories (#4454)
Resolve the structural smoke script through CLAUDE_PLUGIN_ROOT. Bump the browser plugin patch version and align its smoke assertion to make the fix visible to installed copies. |
||
|
|
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> |
||
|
|
cac404c54c |
feat(ruflo-mods): rureOffer — offer ruRE when the model reads a binary (ADR-498) (#4446)
Off by default. Observes Read/Write/Edit/MultiEdit file_path, and at the end of a main-loop turn appends one fixed-wording line naming up to three validated project-relative binary/library/asar/CUDA files (12 per session, each once). Offer only: never runs ruRE, never denies or edits a call. Inert without a ruRE MCP tool. Harness gains World.tools and $.tool.list. Co-authored-by: r <r@x> |
||
|
|
2bc73c0994 |
fix(deps): zod 4.6.7 in graph-intelligence and browser, time-boxed accepted entries for nested zod 3 (#4442) (#4444)
* fix(deps): zod 4.6.7 in graph-intelligence and browser; time-boxed accepted entries for nested zod 3 (#4442) GHSA-mrhx-c7xc-m3w5 (zod <4.6.6) turned the supply-chain audit red for every PR. Both projects' own zod dependency moves ^3.22.4 -> ^4.6.7; the only code change zod 4 needs is a key schema on z.record (7 calls). The regenerated locks are now consistent with package.json (npm ci works). The audit still names zod because other packages (@claude-flow/cli|hooks|security|plugin-gastown-bridge, agentic-flow) keep nested zod 3.25.76 copies; two time-boxed accepted entries (expire 2026-11-23, tracked in #4442) cover those. Needs CODEOWNER review (policy file). Co-Authored-By: RuFlo <ruv@ruv.net> * fix(deps): pnpm lock follows the browser package's zod 4.6.7 The first commit changed v3/@claude-flow/browser/package.json but not v3/pnpm-lock.yaml, so every 'pnpm install --frozen-lockfile' job failed with ERR_PNPM_OUTDATED_LOCKFILE. Minimal edit: the browser importer's zod specifier/version and the /zod@4.6.7 package block (registry integrity). Proved with a clean 'pnpm install --frozen-lockfile', then pnpm -r build, browser tsc --noEmit and its tests (231 passed). Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
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> |
||
|
|
dd5d66cdb4 |
feat(rure): rure_analyze_cuda — CUDA fatbin, cubin and PTX static analysis (ADR-0006) (#4441)
* feat(rure): rure_analyze_cuda — CUDA fatbin, cubin and PTX static analysis (ADR-0006) New read-only MCP tool and an original pure-TypeScript reader: fatbin containers and entries (kind, sm_NN, zstd/LZ4 under size caps), cubin kernels from the symbol table with registers (EIATTR_REGCOUNT), code size and constant/shared/local memory, and PTX version/target/kernel names. Parses, never executes; strings screened by AIDefence; decompression budget charged per attempt. Checked against real nvcc 12.8 and 13.0 output (sm_75/80/90) and cuobjdump: committed fixtures with recorded ground truth, plus a live test that compiles with a local nvcc. ruflo-rure 0.5.0. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(rure): rure_analyze_cuda description carries the ADR-112 'Use when' guidance The tool-description audit (ADR-112) failed the PR: one tool without guidance. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(rure): linear-time PTX sniff and scan (CodeQL js/redos, plus a quadratic one it did not flag) looksLikePtx used a lazy comment pattern inside a repeated group, which backtracks exponentially (CodeQL js/redos); it is now a forward scan. The directive regexes in scanPtx matched with ^\s*, which rescans a whole run of blank lines at every line start: 80000 blank lines took 4.6 s and 320000 took 71 s. They now match space and tab only and bound the rest. Tests: pathological comment structure, and long blank-line and whitespace runs, all under 500 ms. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
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> |
||
|
|
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> |
||
|
|
43a3954350 |
fix(ruflo-console): accept Windows paths in the autopilot envelope (follow-up to #4434 R1) (#4436)
* fix(console): accept Windows paths in the autopilot envelope #4434 added Windows path parity across the console, but the autopilot envelope's own path validator still rejected any `\`, and the downstream `isProtectedPath` and `pathAllowed` guards compared with POSIX-only string ops. The code is unreachable today because autopilot start is still gated off on Windows (ap-windows-gate.spec.ts), but it is the next thing a Windows user will trip on when that gate is lifted — the natural `C:\work\app` form, and every UNC path, is refused with the opaque "is not an absolute folder below the root with no .." error. Four narrow fixes in `hooks/data/ap-envelope.ts`, driven by the separator-aware helpers already in `hooks/data/paths.ts`: - `isProtectedPath`: fold `\` to `/` on a drive-lettered or UNC path before the protected-dir compare. - `validateEnvelope` path check: drop the unconditional `path.includes('\')` reject (it contradicted `isAbsolutePath` which already accepts `C:\x` and `\srv\share`), and tighten the drive-root regex `/^[A-Za-z]:\/?$/` → `/^[A-Za-z]:[\/]?$/` so `C:\` is still refused explicitly (was previously caught by the backslash reject). - `validateEnvelope` output canonicalisation: use `trimTrailing` instead of `/\/+$/` replace, so a trailing `\` on a Windows path is stripped the way `/` already is on POSIX. - `pathAllowed`: use `hasParentSegment`, `samePath` and `below` from paths.ts. A file at `C:\work\app\file.ts` is now inside envelope path `C:\work\app` (and `c:\WORK\app\file.ts` is too), while `C:\work\application\file.ts` still is not. Semantics on a POSIX envelope are unchanged — the new helpers degrade exactly to their old string ops when neither side is a Windows path. New `tests/ap-envelope-windows-paths.spec.ts` pins what should and should not be accepted (13 cases: backslash drive, forward-slash drive, UNC, trailing-separator strip, `..`, bare-drive-root, protected-folder, pathAllowed under case + separator variation, prefix-match rejection). Verified on Windows 11: new spec 13/13, ap-core.spec.ts 31/31 (no POSIX regression), 5 envelope-adjacent specs 64/64 combined, full console suite 3444 total · 3399 pass · 13 fail — same pre-existing baseline as #4434's own run, zero regressions. Follow-up to #4434 R1 (https://github.com/ruvnet/ruflo/pull/4434#issuecomment-6371423874). Co-Authored-By: RuFlo <ruv@ruv.net> * fix: keep the backslash reject for POSIX-rooted envelope paths #4436 review (@ruvnet): dropping `path.includes('\')` outright also dropped the refusal for a POSIX-rooted path with backslashes smuggled in. `/work/app\..\..\other` passes `isAbsolutePath` (POSIX form), and `hasParentSegment` splits POSIX-only when `isWindowsPath` says the path is not Windows, so the `..` segments are invisible to it. On a Windows host, that leading-`/` path then resolves to `\other`, outside the folder the user named. Unreachable today because autopilot is still gated off on Windows, but it is the guard that gate's removal depends on. Keep the backslash reject, but only for non-Windows paths (POSIX should never have `\` in its path). The native Windows forms `C:\work\app` and `\srv\share\app` continue to pass; the mixed `/work/app\..\..\other` form is refused as before. Added case to tests/ap-envelope-windows-paths.spec.ts. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: RuFlo <ruv@ruv.net> |
||
|
|
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 (
|
||
|
|
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> |
||
|
|
7d18ee7a03 |
chore(marketplace): pin agentic-qe-fleet to v3.15.12 (#4419)
Move the external agentic-qe-fleet entry from v3.15.11 (221d6de1) to v3.15.12 (90a91fe3), the current npm latest, and update the README links, the external-plugins test fixture and ADR-484. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|
|
a2465d80ba |
fix(cost-tracker): run memory store in CLAUDE_FLOW_CWD (#4397 part 2) (#4407)
The Stop hook spawned the CLI with no cwd, so it created a stray .swarm/memory.db in the session project instead of the MCP data root. Pass cwd: CLAUDE_FLOW_CWD || process.cwd(). Co-authored-by: r <r@x> |
||
|
|
92731bc6bf |
fix(ruflo-rure): security review fixes — gate coverage, symlinks, ReDoS, parser budgets (#4403)
Closes the findings from an independent review of ruRE 0.1.0-0.4.0: screen every attacker-derived string and report screened/skippedFiles, walk without following symlinks under a total-byte budget, linear EVM file sniffing, an iteration budget for ELF/PE table walks, guarded ELF e_entry, and single-descriptor reads. Each fix has a test that fails without it. Co-authored-by: r <r@x> |
||
|
|
e6ec9cd687 |
feat(ruflo-rure): Phase 4 — EVM bytecode static inventory (#4402)
Adds rure_analyze_evm per ADR-0005: aligned disassembly and pattern scan for dispatcher selectors, hazardous opcodes, embedded addresses, event topics, EIP-1167 minimal proxies, solc metadata and embedded strings. No interpreter, RPC or network; PUSH data is never read as opcodes; input capped at 256 KiB; embedded strings pass the AIDefence gate. Co-authored-by: r <r@x> |
||
|
|
d835597e0b |
feat(ruflo-rure): Phase 3 — .NET assembly metadata inspection (#4401)
Adds rure_analyze_dotnet per ADR-0004: an original pure-TypeScript ECMA-335 metadata reader (assembly identity and references, types, method count, P/Invoke imports, user-string literals, entry point). No dependency, no IL decoding, never loads or runs the assembly. Table extents are validated against the stream before any row is read, and all extracted text passes through the AIDefence gate. Co-authored-by: r <r@x> |
||
|
|
b31d2b0471 |
feat(ruflo-rure): Phase 2 — native binary static analysis (ELF/PE/Mach-O) (#4400)
Adds rure_analyze_binary per ADR-0003: an original pure-TypeScript container parser (format, arch, entry, sections, linked libraries, imported/exported symbols, optional strings). No disassembler, no new dependency, never loads or executes the target. Reads are bounds-checked, tables and strings are capped, files over 128 MiB are refused, and all extracted text passes through the AIDefence gate. Co-authored-by: r <r@x> |
||
|
|
1b31914579 |
feat(ruflo-rure): new reverse-engineering plugin, Phase 1 (JS/Electron static analysis) (#4396)
* docs(ruflo-rure): ADR-0001 scope/dual-use policy, ADR-0002 Phase 1 architecture
Fixes #4395 (part 1 — research/planning phase)
Co-Authored-By: RuFlo <ruv@ruv.net>
* feat(ruflo-rure): Phase 1 implementation — JS/Electron static analysis
Implements the plugin scaffold (manifest, skill, command, agent, smoke
test, benchmark) and the three Phase 1 MCP tools per ADR-0001/0002:
- rure_extract_asar: resource-capped .asar extraction via @electron/asar,
checking the archive header's declared size/file count before writing
anything (decompression-bomb guard).
- rure_analyze_js_app: TypeScript-compiler-API-based static analysis —
import/export graph, Electron process-boundary detection (ipcMain/
ipcRenderer/contextBridge, require("electron"), nodeIntegration flags),
every finding evidence-sourced to file + line range.
- rure_find_feature: deterministic lexical/structural feature search,
explicitly not semantic/LLM matching.
Every extracted string is routed through the AIDefence content gate
before being returned; flagged content is redacted, never dropped
silently. Parses only — never executes analyzed code, independently
verified by scripts/smoke.mjs grepping the real source (comments
stripped first, so the doc comment describing the property can't trip
its own check).
27 new tests, all passing. Typecheck clean. Tool-description audit
(ADR-112) clean. Benchmark: ~3.6k-18k files/s on a synthetic Electron
bundle (plugins/ruflo-rure/scripts/benchmark.ts).
Trust tier: experimental. Marketplace/directory submission is a
separate, explicit decision, not part of this change (ADR-0001).
Part of #4395.
Co-Authored-By: RuFlo <ruv@ruv.net>
* feat(console): add ruflo-rure to the plugin map (devtools section)
Every plugin directory needs a line in PLUGIN_MAP or the console's own
plugin-coverage test fails. ruflo-rure lands in devtools, same section
as the other inspection/analysis plugins (ruflo-browser, ruflo-jujutsu,
ruflo-testgen).
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(ruflo-rure): fix CI failures — real deps, capability-brain classification
Three real bugs surfaced by PR #4396's CI, not flakes:
- typescript was only a devDependency of @claude-flow/cli, but
src/rure/ts-walk.ts needs it at runtime. Moved to dependencies.
(CI: "Cannot find package 'typescript'" in a from-source install.)
- @claude-flow/aidefence was never declared as a dependency of
@claude-flow/cli at all (only resolvable locally via monorepo
hoisting), so the AIDefence gate silently no-op'd in CI's isolated
install. Added as an optionalDependency, matching the existing
graceful-degradation code path and the browser_act precedent this
also fixes.
- capability-brain.ts classified every registered MCP tool into a
domain by prefix; the three new rure_* tools had no domain, so
guidance-brain.test.ts's "classifies every live registered tool"
assertion failed. Added a 'reverse-engineering' domain (experimental
maturity, matching ADR-0001's trust tier) and its package-owner
lookup entry.
All 35 rure + guidance-brain tests pass; typecheck clean;
audit-tool-descriptions and audit-cli-mcp-tools clean.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(ruflo-rure): revert @claude-flow/aidefence optionalDependency, mock it in tests instead
Reverts the optionalDependency added in
|
||
|
|
c8b2f66290 |
docs(federation): document the existing custom-gateway override (#4399)
ruflo's federation layer already supports pointing at a self-hosted
gateway/relay instead of x.ruv.io — RUFLO_X_GATEWAY_URL,
RUFLO_X_RELAY_WS and RUFLO_X_RELAY_HTTP are already read by
v3/@claude-flow/cli/src/mcp-tools/x-federation-{tools,join,channels}.ts
before falling back to the x.ruv.io/relay.ruv.io defaults. The gap was
discoverability, not capability: nothing told a user this override
exists, and the console's x.ruv.io board never mentioned it.
- plugins/ruflo-x-gateway/README.md: new "Self-hosting a custom
federation gateway" section explaining both layers (client-side env
vars for the CLI's own tool calls; server-side deploy vars for
running your own gateway instance) and what deliberately stays
fixed (the Claude plugin directory submission's .mcp.json, guarded
by test/claude-directory.test.mjs — that one endpoint is reviewed
and vetted by Anthropic, so it can't be templated).
- plugins/ruflo-console/hooks/xruv.ts: a one-line comment pointing at
the README from the RELAY constant. The constant itself is
unchanged — this file is documented "Pure: entries and parsers
only, no $", so it can't read process.env to show a self-hoster's
actual configured relay; the honest fix is pointing at the real
override, not guessing at a value this file can't observe.
- plugins/ruflo-console/hooks/help-topics-more.ts: the "Use the
x.ruv.io board" help topic now has a tip naming the three env vars
and pointing at the README.
No behavior change — x.ruv.io/relay.ruv.io remain the defaults
everywhere they already were.
Co-authored-by: r <r@x>
|
||
|
|
fac6d193ce |
fix(ruflo-ai-team): annotation-review.md missed team_board and run_complete (#4394)
annotation-review.md's readOnly/destructive/idempotent/openWorld classification table only listed 12 of the 14 live MCP tools. team_board (added at 0.2.0) and run_complete (added at 0.2.1) were never added to the table, even though the doc claims "the server tests compare the live tool list with this classification" — nothing actually enforced that until now. Both tools' real annotations (read from src/server.mjs) fit the existing rows exactly: team_board uses READ(...) like the other read-only tools, and run_complete uses WRITE(..., true) like the other idempotent upserts. scripts/smoke.mjs now asserts the doc's documented tool set matches the live server tool set exactly, so this can't silently drift again. Verified by reverting the doc fix alone and confirming smoke failed with the exact "documents every live tool" check, then restoring it. Co-authored-by: r <r@x> |
||
|
|
732e9f07c0 |
chore(marketplace): pin agentic-qe-fleet to v3.15.11 (#4390)
Move the external agentic-qe-fleet entry from v3.15.10 (e5814a2f) to v3.15.11 (221d6de15c73bb385961e4e649d8fcc1f5dc2dea). The plugin folder changed only its version and its MCP pin (agentic-qe@3.15.11). Updates the README links, the external-plugins test fixture and ADR-484. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|
|
b37939f3da |
fix(cost-tracker): match Claude Code project slug for all non-alphanumerics (#4374)
* fix(cost-tracker): match Claude Code project slug for all non-alphanumerics The #1927 fix replaced only /, \\\\ and :, but Claude Code replaces every non-alphanumeric character in a project path with '-'. Paths containing '_' or '.' (for example C:\\Users\\john_doe\\my.project) therefore resolved to a directory that never exists, and the Stop hook silently persisted nothing (#4366).\n\nMove the encoder into a shared _encode-project-path.mjs, use it from track.mjs and the two test harnesses that were duplicating the old regex, and add unit coverage plus an end-to-end smoke case for an underscore/dot Windows path. The regression is visible in the unit test and in the 'looked under' diagnostic: the old code leaves 'my_project.v2' literal; the new code matches Claude Code's 'my-project-v2'. * chore(witness): repoint #1927 marker to _encode-project-path.mjs (#4366) #4366 moved encodeProjectPath out of track.mjs into a new shared _encode-project-path.mjs, taking the #1927 marker comment with it in different wording. Re-point all three OS manifests' #1927 entry at the new file/marker text and regenerate so witness-marker-drift-smoke and witness-verify-precondition-smoke pass again. Co-authored-by: 马建彤 <majiantong666@qq.com> Co-Authored-By: RuFlo <ruv@ruv.net> * fix(witness): don't append a history snapshot from an unbuilt checkout regen.mjs's --history flag records the current verification state as a new history entry. My prior regen ran in a source-only worktree (no pnpm build), so it recorded ~99 dist-dependent fixes as "missing" that CI's built-tree verify never saw as missing -- history.mjs then read that back as a mass regression against prior (post-build) snapshots. The actual fix (#1927 marker repointed to _encode-project-path.mjs) only needed the manifest's marker/file/sha256 corrected and re-signed, not a new history entry. Revert history.jsonl to its pre-regen state in all three OS directories; manifest.md.json is unchanged by this commit. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: 马建彤 <majiantong666@qq.com> Co-authored-by: r <r@x> |
||
|
|
245e669d9f |
fix(ruflo-browser): skip CLI source check outside the monorepo (#4369)
Refs #2912 Co-authored-by: rUv <ruv@ruv.net> |
||
|
|
c6a9d73e6c |
fix(console): make the touch-refuses-a-link test umask-independent (#4365)
`writeFileSync(victim, 'precious', { mode: 0o644 })` is still subject
to the process umask, so on a host with a restrictive umask (0077)
the file actually lands at 0600. The test then asserted the touch
script's symlink guard had left victim untouched at 0644 — true, but
victim was never at 0644 to begin with on such a host, so the
assertion failed independent of the guard's real behavior (verified
manually: the guard correctly refuses and leaves the target
unmodified).
Force the mode with chmodSync right after the write so the assertion
reflects the guard's actual behavior rather than this host's umask.
Co-authored-by: r <r@x>
|
||
|
|
cd89db4f08 |
fix(ruflo-adr): make ADR indexing work on Windows (#2413) (#4330)
* fix(ruflo-adr): find ADRs on Windows and report POSIX paths (#2413) findAdrs matched literal /docs/adr/ substrings, so join()'s backslashes on Windows silently produced 0 ADRs. Match either separator and report the file field relative to the scan root with forward slashes so bySource and stored records are stable across platforms. * fix(ruflo-adr): spawn npm npx-cli.js on Windows (#2413) spawnSync cannot launch npx.cmd without a shell, so the no-installed-CLI fallback returned ENOENT and every store failed on Windows. Resolve npm's npx-cli.js (npm_execpath, PATH shims, or Node's bundled npm) and run it with process.execPath so argv stays shell-safe. --------- Co-authored-by: rUv <ruv@ruv.net> |
||
|
|
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>
|
||
|
|
558f194506 |
fix(witness): support pinned signing keys and label legacy signatures (#4326)
* fix(witness): support pinned signing keys and label legacy signatures The default witness seed is derived from the public git commit, so anyone can re-sign a modified manifest; verify.mjs still called the result cryptographically valid. Add RUFLO_WITNESS_SEED for external-key signing and RUFLO_WITNESS_PUBLIC_KEY for pinned verification (fail closed on external-key manifests without a pin), tag legacy manifests as self-attested, and stop describing the default as authorship proof. * fix(witness): make --public-key win over the env pin The env-var precedence audit requires a CLI flag for RUFLO_WITNESS_PUBLIC_KEY. Add --public-key, document that it takes precedence, and cover both precedence directions in the auth test. * fix(ci): exclude witness-auth test from vitest ratchet (uses node:test) plugins/ruflo-core/scripts/witness/__tests__/witness-auth.test.mjs imports from node:test, not vitest, matching the same miscategorization pattern as pod-tick.test.mjs and probe-mod-guards.test.mjs. vitest's glob picks it up but can't parse node:test's API, so the ratchet reports "No test suite found" even though `node --test` passes all 3 cases cleanly. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> Co-authored-by: RuFlo <ruv@ruv.net> |
||
|
|
c2069ed6f6 |
fix(metaharness): revive the cost dimension and single-source the verdict bands (ADR-152) (#3520)
Reconciling the shipped similarity code against docs/metaharness-user-guide.md
turned up three divergences between what ADR-152 specifies, what the code does,
and what the docs promise.
1. Cost normalization (vector index 8) was inert below $0.999.
ADR-152 Table 1 specified `log10(usd + 0.001) / log10(10)` clamped to [0,1].
`Math.log10(10)` is 1, so the division was a no-op and the expression reduced
to `clamp(log10(usd + 0.001), 0, 1)`. Because log10 is negative for every
usd < 0.999, the clamp flattened that entire range to a constant 0 — including
the $0.048 baseline the plugin README records. Two harnesses differing only in
cost scored `cosine === 1`; the documented 9-dim vector was effectively 8-dim.
Replaced with an explicit log band: $0.001 -> 0, $10 -> 1, log-interpolated
between, monotonic and non-finite-safe. Exported as `normalizeCost()` with the
band in `COST_BAND_USD`.
2. The verdict bands had two encodings, and they disagreed.
`audit-trend.mjs` inlined the bands with a 0.80 `minor-drift` floor while the
user guide documented 0.85; `drift-from-history` prints that verdict, so the
two diverged in the 0.80-0.85 band. The bands now live once as
`VERDICT_THRESHOLDS` + `verdictFor()` in `_similarity.mjs`, `audit-trend.mjs`
imports them, and `similarity()` returns `verdict` beside `overall`. The
documented 0.85 floor is canonical.
Deliberate user-visible change: structural similarity in [0.80, 0.85) now
reports `moderate-drift` instead of `minor-drift`. `--threshold` comparison is
unaffected (it tests `overall`), but consumers branching on the verdict string
should be re-checked.
3. The user guide's weight table said 0.4/0.3/0.3; ADR-152 and the code both say
0.6/0.25/0.15. Corrected the guide, which was the outlier.
The ADR gains a dated Revision section recording both fixes and the behaviour
change. The §Spike-result figures are unchanged (the LEGAL/SUPPORT fixtures are
near-identical on the cost axis), so test-similarity.mjs Phase 8 keeps pinning
the original anchors; new Phase 7b/7c/7d coverage pins the corrected semantics.
Note this does NOT address the coarse-cosine limitation ADR-152 itself flags
("numerical cosine alone is too coarse"): uniform quality degradation still
reads as high similarity. Drift gates that must catch absolute loss should pair
structural similarity with the absolute gates rather than rely on --threshold.
Verification:
node plugins/ruflo-metaharness/scripts/test-similarity.mjs -> 128 passed, 0 failed (was 102)
node plugins/ruflo-metaharness/scripts/_spike-similarity.mjs -> both invariants hold
Co-authored-by: longxinjun-ai <longxinjun-ai@users.noreply.github.com>
Co-authored-by: rUv <ruv@ruv.net>
|
||
|
|
d7f2286835 |
fix(memory): build the RaBitQ index on demand and use it on the vector path (#4318)
* fix(memory): build the RaBitQ index on demand and use it on the vector path (#4203) shouldRebuildRabitq() had no callers and the index was only ever populated by the explicit embeddings_rabitq_build tool, so searchRabitq() always returned null and the sql.js pre-filter was dead. ensureRabitqIndex() drives the existing thresholds from the search entry points (60s throttle, 10-vector floor, 20% drift, disabled after a missing-WASM failure, bound to the source dbPath and dimensions). The bridge cosine path now scans RaBitQ candidates and reranks them with the same exact cosine, falling back to the unchanged exhaustive scan on any error. * test(memory): cover RaBitQ auto-build, exact rerank and top-k recall (#4203) Six tests against a real sqlite store: build on demand, bridge uses the index and reranks with exact cosine, no rebuild per search, below-floor negative control, exhaustive-vs-indexed parity when the corpus fits the candidate window, and recall plus exact-rerank on a 60-row corpus larger than the window (>=80% top-5 recall). |
||
|
|
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> |
||
|
|
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 (
|