117/117 verified on all three (every marker-cited dist built before regen),
drift 0, Ed25519 signature valid, no newly regressed fix in history.
Co-Authored-By: RuFlo <ruv@ruv.net>
The ruflo repo's own .claude/settings.json now enables the three mod plugins
from the ruvnet/ruflo marketplace, plus CLAUDE_CODE_ENABLE_FUNCTION_HOOKS for
Claude Code 2.1.277-2.1.286. Same keys `ruflo mods install --scope project`
writes; formatting of the rest of the file left untouched.
Co-Authored-By: RuFlo <ruv@ruv.net>
#3614 shipped ruflo-console on main, so `ruflo init` and `ruflo mods install`
now install it like ruflo-mods and ruflo-swarm. A marketplace clone without
it is stale (a doctor failure with the exact repair), never "pending".
- MOD_PLUGINS: ruflo-console@ruflo required: true.
- `ruflo mods install` points at /ruflo (and /ruflo mods) instead of /ruflo-mods.
- ADR-406 catalog: the source scan now reads `$.command.registerCommand`, and
the engine parser splits a `command=a|b` matcher into its names and treats
`command=?` (a matcher chosen at run time) as naming nothing, deferring to
the source scan for that plugin. Without this, regenerating after #3614
either failed schema validation (`ruflo|ruflo-console`, `?`) or dropped the
five /ruflo-swarm-* commands. Regenerated: 241 -> 243 entries (+/ruflo,
+/ruflo-console), none removed; the console's catalog copy is synced.
- Tests and the e2e-mods-init script now expect ruflo-console installed.
Co-Authored-By: RuFlo <ruv@ruv.net>
- ctrl+x tab focuses the band, not a pane: the footer and help no longer
suggest it for the pane
- Esc: a pane /ruflo opened (focus, closeOnEscape) closes; one that opened by
itself under panel=auto only hands the keys back, by design (an unasked dock
should not vanish on a stray Esc at an empty prompt). Help says so
- main now ships catalog.generated.json, so the parity spec no longer skips
Co-Authored-By: RuFlo <ruv@ruv.net>
- 100-column inline run: records the rows the layout gave (asked 30, got 16)
and checks both borders and the controls are on screen, instead of a label
claiming the whole view fits
- /ruflo commands step: the ADR-406 catalog loads live
- repo mode copies .claude-flow/{agents,tasks,claims,swarm,hive-mind}
(gitignored) before the run and restores them after, so agents no longer
pile up across runs
Co-Authored-By: RuFlo <ruv@ruv.net>
- /ruflo-console is registered again and is the same command as /ruflo;
ruflo-mods and ruflo-swarm answer mods / swarm <sub> on both. /ruflo-mods
and /ruflo-swarm-* stay registered for good (ADR-406: nothing removed,
renamed or reassigned); descriptions and READMEs say 'same as', not
'deprecated'
- without a pane (claude -p), /ruflo <view> answers the view as text; dump
waits (bounded, 20 s) for the view's CLI probes, joining any already running
- an inline pane given fewer rows than it asked for goes compact: controls
under the tabs, no title strip, the view scrolls below
- /ruflo commands [word]: browses the ADR-406 command catalog copied into
catalog/ (parity spec on its digest); built-in mod list as fallback
- Missions view (m): the ADR-406 mission observation, read-only; task status
shown as recorded, evidence as verified, session-bound said plainly
- ruflo-mods docs: ruflo-console@ruflo in the modTrustAllow example
- e2e: /ruflo-console alias, headless /ruflo <view>, dump waits for probes,
a 100-column inline run
Co-Authored-By: RuFlo <ruv@ruv.net>
Resolves plugins/ruflo-mods/README.md: main's install and dogfooding docs,
with /ruflo mods as the command and /ruflo-mods as its deprecated alias.
Co-Authored-By: RuFlo <ruv@ruv.net>
Found live: Claude Code answers a registered command no hook answered with its
own message, which the dispatcher passed through as if a plugin had answered.
Co-Authored-By: RuFlo <ruv@ruv.net>
scripts/e2e.sh [--target scratch|repo]: makes real state with this branch's CLI
(swarm, agents, tasks, claims claim/release/handoff, hive proposal, memory,
route, policy status), then with RUFLO_E2E_LIVE=1 drives Claude Code in an
isolated CLAUDE_CONFIG_DIR (login copied 0600, shredded on exit; project and
ancestor .mcp.json servers rejected): /ruflo, /ruflo mods, /ruflo swarm,
/ruflo dump <view> headless; the pane under tmux (hotkeys, palette, a confirm
gated release re-read from disk, animation running and stopping); auto-start
from settings.local.json and a directory marketplace; negative paths. Scratch
run: 66/66 PASS.
Co-Authored-By: RuFlo <ruv@ruv.net>
Each mission_* description now states when to use it and why the nearest
alternative (task_create, memory_store, task_status, polling mission_get,
task_cancel) is wrong. scripts/audit-tool-descriptions.mjs: 392/392 with
guidance, all gates pass.
Co-Authored-By: RuFlo <ruv@ruv.net>
`.*report.*` labelled the real workflow analysis:performance-report as
documentation. Loader-exposed docs are the all-caps basenames (README,
COMMAND_COMPLIANCE_REPORT); match those only. 226 shipped, 15 documentation.
The catalog's sourceCommit was the newest commit under any scanned root, so
an unrelated plugin commit made `catalog generate --check` stale. It is now
the newest commit touching a file the catalog actually inventories.
Co-Authored-By: RuFlo <ruv@ruv.net>
`ruflo mission create|plan|get|events|action` and the mission_create,
mission_plan, mission_get, mission_events and mission_request_action MCP
tools are thin transports over the one MissionService and its zod schemas;
MCP calls are still authorized by the existing policy runtime in
mcp-client.ts. A bounded, sanitized .claude-flow/missions/observation.json
(contract ruflo.mission-observation/1, source-time observedAt) is rewritten
atomically after each committed event for the workbench to read.
scripts/e2e-adr-406.mjs runs the built CLI in throwaway HOME,
CLAUDE_CONFIG_DIR and project dirs: catalog current and verified, legacy
command files byte-unchanged, CLI create + MCP plan reading identical
records and events, revision conflict, honest admit refusal, SIGKILL of a
writer then restart, and the §18 fixture replay with mods off vs on
(permissions, policy mode and outcomes unchanged; uninstall restores).
RUFLO_E2E_LIVE=1 adds engine version and plugin validate (no model calls).
Mod hooks the engine confirms are recorded against their declaring source
file, so the catalog is identical with or without an engine. mission_*
tools are classified in the capability brain's tasks/workflows domain.
Co-Authored-By: RuFlo <ruv@ruv.net>
- mods uninstall runs `claude plugin uninstall <id> --scope <scope>` for
exactly the plugins ruflo installed (absent before, enabled by ruflo;
recorded as claudeInstalled in install.json), then removes exactly the
settings keys it added. A plugin installed before is never uninstalled.
- mods install --source local [--marketplace-path <dir>]: declares the
ruflo marketplace as a directory source (a ruflo checkout), adds it, and
installs nothing, so the plugins load live from the working tree.
Verified on 2.1.287 in an isolated config: loads with no install record,
and an edit shows on the next run. Doctor reports the source type and
warns when the project's declared source differs from the known one.
- The repair honours the marketplace the settings file declares.
- Init output, README and ADR state exactly what loads: ruflo-swarm's
commands/skills/agents without function hooks, its host-command mod with
them; the first trusted start clones github.com/ruvnet/ruflo; headless -p
on a fresh config loads nothing; refuse-risky + modTrustAllow as opt-in
hardening (modTrust stays observe). Claude Code's re-serialization of
settings.json is reported, never fought.
- e2e: live load is `claude -p "/ruflo-mods"` behind RUFLO_E2E_LIVE=1 with
CLAUDE_CODE_OAUTH_TOKEN or ANTHROPIC_API_KEY; no credential file copied,
nothing printed; adds the --source local and uninstall scenarios.
Co-Authored-By: RuFlo <ruv@ruv.net>
Versioned mission schemas (§19.3 MissionRecord exactly, strict inputs with
bounded strings and integer monetary units), the §19.4 transition table as
data with guards (exact-plan authorization, atomic budget reservation
against the ceiling, lease epochs that fence stale executors, verified
evidence bound to plan/criteria/artifact, connectivity loss never counted as
failure), and a reducer that replays a hash-chained append-only log.
Store decision: reuse ruflo's existing authoritative-state pattern (project
files + per-file lock + atomic replace, as the policy ledger, claims and
leases do) rather than optional better-sqlite3 or in-memory sql.js. Events
are one fsynced line each; a torn final line is ignored and truncated by the
next locked writer; the snapshot is a cache that must agree with the log.
Exports the policy runtime's acquireLock (dead-owner detection by pid, pid
namespace and boot id) instead of copying it.
The shared MissionService derives principal/tenant/workspace from the local
context, deduplicates by request id (same input replays, different input is
refused), rejects stale revisions with the current one, and refuses
admit/resume until a durable executor exists. Tests: table exactness,
seeded property tests over random sequences, snapshot+tail == full replay,
torn-tail repair, chain tamper, concurrent create and plan races, and a
SIGKILL of a writer process mid-stream.
Co-Authored-By: RuFlo <ruv@ruv.net>
- autoOpen is gated on a ruflo project; Esc or the pane's mark persists
isClosedByPerson so a dismissed cockpit stays shut next session
- tests/actions.test.ts: each confirm-gated palette action asks, runs nothing
until yes, then exactly its fixed argv (13 actions)
- radar axis words, handoff arrows name the target agent, gantt now marker
- READMEs: /ruflo swarm and /ruflo mods, old names deprecated for one release;
ruflo-swarm panel now defaults to command
Co-Authored-By: RuFlo <ruv@ruv.net>
Inventory every Ruflo slash command across repository command dirs, the
packaged init templates, marketplace and source plugin command folders, and
mod command hooks observed by `claude plugin validate` (engine 2.1.287).
Records channel, package, digest, observed invocation, binding and shipped
packages (npm pack --dry-run). Loader-exposed READMEs and reports are
cataloged as documentation, not workflows.
P1: strict zod CommandDefinition per ADR-406 §6 (no unknown fields, size
caps, no dispatch for prompt workflows), duplicate id/name validator,
deterministic catalog (sorted, canonical JSON, per-file last commit, no
timestamp) with a sha256 sourceDigest consumers can recheck, and an
expected-hash write guard. Interim `ruflo catalog generate|verify|engine`
command until commands/mods.ts (PR #3612) can host it.
Co-Authored-By: RuFlo <ruv@ruv.net>
- /ruflo is the single command for every ruflo mod: views, palette, run/yes/no,
agent drill-down, help; /ruflo mods is answered by ruflo-mods and /ruflo swarm
<pane|status|topology|claims|consensus> by ruflo-swarm (both hook the same
command; the old /ruflo-mods and /ruflo-swarm-* stay as deprecated aliases)
- auto-start: panel auto opens the cockpit at session start where it docks,
never taking the keys; the band says /ruflo to open otherwise. ruflo-swarm's
own pane now defaults to panel command so two panes do not open
- diagrams (Raster, one pure function per diagram shared by paint and blit):
topology with event pulses and a leader heartbeat, claims lanes with TTL
rings and handoff arrows, federation map by trust, plugin health matrix,
learning curve draw-in and RETRIEVE→JUDGE→DISTILL→CONSOLIDATE pipeline,
MetaHarness radar and audit trend, cost gauge and burn, agent timeline
- management: command palette (fuzzy, text entries), confirm-gated actions
through fixed argv, agent drill-down with logs, approvals queue (votes,
stealable claims, refused mods, policy denies, budget), event stream with
filter, health alerts with the fix named
- tests: 28 kit tests, 28 vitest specs; 100-agent frame 0.25 ms median
Co-Authored-By: RuFlo <ruv@ruv.net>
- ruflo init enables the mods by default (--no-mods opts out) in the
committed .claude/settings.json: enabledPlugins for MOD_PLUGINS
(ruflo-mods, ruflo-swarm, ruflo-console), extraKnownMarketplaces.ruflo and
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1, then refreshes the marketplace and
`claude plugin install`s each plugin at project scope (--no-plugin-install
skips; skipped under VITEST/CI; manual commands printed on failure).
- ruflo init upgrade --mods applies the same merge + install to an existing
project; --add-missing and --settings imply it. Never clobbers: only absent
keys are added (a plugin set to false stays false and is never installed,
since `claude plugin install` would flip it), each addition is reported.
- MOD_PLUGINS is the one list; `required: false` marks a plugin not yet in
the marketplace (ruflo-console): reported as pending, never a failure.
- Install record v2 per settings file; v1 (3.50.0) records are read; mods
uninstall reverses exactly what was added in every file.
- Detection corrected from live evidence: an interactive trusted session
loads plugins straight from the marketplace clone with no install record,
so the clone decides. A stale clone (the field report, reproduced live:
"Unknown command: /ruflo-mods") fails doctor; no clone yet is a warning.
- scripts/e2e-mods-init.sh: built CLI + real claude, isolated HOME and
CLAUDE_CONFIG_DIR per scenario; E2E_LIVE=1 adds a live tmux session.
- ADR-404 Amendment 1, with where the "safe default" argument stops
(ruflo-swarm's commands/skills load regardless; modTrust stays observe).
Co-Authored-By: RuFlo <ruv@ruv.net>
- name the ruflo MCP servers and their tool count (two servers expose the
same tools, so a bare count overstated it); recount every 30 s, since
Claude Code connects MCP servers after session start
- back off re-stating a missing file for 10 s (explicit refresh and the
post-action read skip the backoff), so a closed console stops logging
ENOENT every 3 s
- tab and footer buttons get a gap; any view switch leaves the help page
- pulses are two dots wide, so one on a vertical edge stands out of it
Co-Authored-By: RuFlo <ruv@ruv.net>
Kit tests (19) for every view, hotkeys, confirm-gated claims, refusal,
empty project, narrow and desktop fallbacks, the frame loop stopping when
hidden or unfocused, hostile text and the band. Pure vitest specs (18)
for readers, CLI JSON, cell graphics and $.ruflo type parity.
Co-Authored-By: RuFlo <ruv@ruv.net>
`ruflo mods install` only wrote enabledPlugins + extraKnownMarketplaces. With a
local clone of the ruflo marketplace older than ruflo-mods (seen live at
3.38.21), Claude Code skipped the enabled plugin silently and /ruflo-mods was
an unknown command, while `mods status` and `mods doctor` reported all fine.
- Detect (read-only, respects CLAUDE_CONFIG_DIR): two new findings once the
plugin is enabled. `ruflo marketplace` checks the clone named by
known_marketplaces.json for plugins/ruflo-mods/.claude-plugin/plugin.json;
`ruflo-mods installed` checks installed_plugins.json for a user-scope entry
or a local/project entry for this project whose cache dir exists. Not
installed = FAIL; a stale clone FAILs only while nothing is installed (a
cached install still loads). Each failure carries the exact commands.
- Repair on install: when a runnable claude is on PATH, run
`claude plugin marketplace update ruflo` (or `marketplace add ruvnet/ruflo
--scope <scope>` when unknown, so user settings are not edited), then
`claude plugin install ruflo-mods@ruflo --scope <scope>` in the project dir.
execFile with fixed argv, no shell, no -y, 150s/60s timeouts; re-reads
Claude Code's records afterwards. --no-plugin-install skips it; --dry-run
prints the commands; on failure the manual commands are printed and the
exit is non-zero only with --strict.
- Status: "enabled in settings" is now distinct from installed/resolvable;
`mods status` exits 0, `mods doctor` and `doctor --component mods` fail.
- README: install steps and the stale-clone failure mode.
Co-Authored-By: RuFlo <ruv@ruv.net>
- helpers.manifest.json re-signed for 3.50.0
- verification/{linux,macos,windows}/manifest.md.json regenerated on a clean,
fully built tree: 117/117 verified each, os field stamped per manifest
Co-Authored-By: RuFlo <ruv@ruv.net>
Ships the Claude Code mods integration (ADR-404: ruflo mods CLI, doctor
component, init --mods, $.ruflo noun), the ruflo-swarm pane mod and the
ruflo-ruos plugin (ADR-405). No @claude-flow/* leaf source changed since
v3.49.0, so only the train moves.
Co-Authored-By: RuFlo <ruv@ruv.net>
Resolves .claude-plugin/marketplace.json and scripts/ci-test-baseline.txt
after #3608/#3607 merged: both sides appended entries, so the resolution
keeps both (ruflo-mods + ruflo-ruos marketplace entries; all baseline blocks).
Co-Authored-By: RuFlo <ruv@ruv.net>
- doctor --component help lists 'mods' before 'metaharness': the
ruflo-metaharness smoke step 17h greps 'metaharness)' (smoke-all,
smoke-without-metaharness).
- audit-env-var-precedence: RUFLO_MODS_OWNS is the ADR-404 handshake set
by the running mod, read by hook scripts with no CLI-flag surface
(Plugin package install-safety job).
- plugins/ruflo-mods and the mod template tsconfigs no longer extend the
gitignored .claude-plugin/types/tsconfig.json: vite/esbuild loads the
nearest tsconfig for every transformed module, so in CI (types absent)
root vitest failed to transform the six mods suites that import plugin
code (TSCONFIG_ERROR: Tsconfig not found). typeRoots points at the
generated folder instead; tsc still checks against it where present.
Verified: ruflo-metaharness smoke 125/125; env-var audit clean; root vitest
on the mods suites 99/99 with the generated types moved aside (as in CI);
tsc clean for mod and template; kit 16/16 + 1/1; validate passes.
Co-Authored-By: RuFlo <ruv@ruv.net>
From the ruOS lane's live e2e of ADR-105 (fleet 64261be):
- 400 (e.g. a Lite machine target) maps to invalid-input, never retried
- DELETE 200 ends the job cancelled with exit 143 and keeps prior output;
the adapter drains output for up to 15 s after a cancel and reports
cancelled as stopped, never failed (exec-poll: a runner we killed is
stopped, not lost)
- ADR-405: ruOS validated the contract live; ruflo's JobsApiTransport is
contract-tested against it, not called live by ruflo
Co-Authored-By: RuFlo <ruv@ruv.net>
ruos-desktop #380 (fleet 64261be) is live. Contract deltas applied:
- POST 202 new / 200 idempotent_replay (reuse job_id) / 409 same key with a
different request = client bug, surfaced, never retried / 429 cap with no
server queue -> swarm-side backoff; timeout_secs clamped to 21600
- GET with wait_ms=20000 long-poll (adapter skips its own sleep, guarded
against instant answers); 503 retried 1s/2s/4s; running=true while queued
- exited carries any exit code: only 0 is completed
- tests mock the exact live codes and fields; ADR-405 says JobsApi is
contract-tested against the live spec but not exercised live (no
control-scoped token; would need spend approval)
Co-Authored-By: RuFlo <ruv@ruv.net>