* feat(plugins): ADR-507 cut the per-turn plugin footprint - scripts/measure-plugin-footprint.mjs: per-plugin skills/commands/agents, listing characters and estimated tokens, from the tree or a git ref; before/after reports in v3/docs/validation/. - 27 operational skills get disable-model-invocation: true (cost-tracker sub-reports reached by /ruflo-cost, metaharness bench/learn/evolve/mint/ oia-audit, GAIA submission + comparison, init-project, ruflo-status, vector-setup, federation-init, agntcy-status). Each is listed in a "User-invoked skills" table in its plugin README; the choosing rule is in plugins/README.md. - 20 skill descriptions over 300 characters cut to one sentence plus "Use when". - audit-skill-frontmatter: 300-char ceiling on skill and command descriptions (measured unfolded) and a README check for every user-invoked skill. - skillTrim (§2.4) not built: the engine has no skill-listing hook. Listing with every plugin enabled: 47,743 -> 39,402 chars (about 11,936 -> 9,851 tokens per turn). Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-507 status names PR #4588 Co-Authored-By: RuFlo <ruv@ruv.net> * docs(plugins): ADR-507 cost-analyst points users at /ruflo-cost for user-invoked reports The engine's refusal for a disable-model-invocation skill says not to replicate its workflow by other means, so the agent names the subcommand instead of running the report script. After-report now cites the pushed commit. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(scripts): ADR-507 audit runs through symlinked paths; test the gate's wiring The import guard compared argv[1] with import.meta.url, which Node realpaths for the entry module. Run through a symlinked path, main() was skipped and the audit exited 0 having checked nothing. Both scripts now compare realpaths. audit-skill-frontmatter takes --plugins-dir so tests can run the real CLI on a fixture: a 304-char folded description, an unlisted user-invoked skill and a 311-char literal command description must exit 1 with those findings, and adding the README row must clear only the user-invoked one. The repo-wide test now also asserts skillsScanned > 100. Disabling any of the three checks, or restoring either old guard, fails a test. Co-Authored-By: RuFlo <ruv@ruv.net> * chore(plugins): version bumps for ADR-507 footprint changes Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x>
ruflo-ruos
Run ruflo swarm agents on your own ruOS cloud desktops. The plugin can:
- place an agent on a desktop;
- stream the agent's output back;
- show the agent in ruflo's swarm state;
- hand finished work back for your review.
The plugin is optional. ruflo works the same without it.
Design and threat model: ADR-405.
Transports
| Transport | When | Configure |
|---|---|---|
| ruOS fleet MCP / REST (default) | The only path from outside your ruOS tenant (laptops, workstations, CI) | In Claude Code: the connected mcp__ruos__* tools. In a terminal: RUOS_MCP_URL + RUOS_MCP_TOKEN, or the @cognitum/ruos login (~/.config/ruos/credentials.json) |
Per-tenant SSH :2222 |
Only desktop to desktop inside your tenant's Fly 6PN, i.e. when ruflo runs ON one of your ruOS desktops | --transport ssh, RUOS_SSH_KEY, optional RUOS_SSH_USER, RUOS_FLY_APP. Peers come from ~/.claude/federation/peers.json |
Mint a desktop:control token with the narrowest lifetime. A read-only token can list desktops but cannot exec, start or stop them.
- The plugin never contacts the desktop executor on
:17870, which has no per-tenant auth (ruOS ADR-070). - It never calls
desktop_deleteorsecret_delete. - It never logs your token.
- With no credentials, every networked command exits 2 and makes no request.
Jobs. --jobs auto (the default) uses the live ruOS jobs API (ADR-105: long-poll, 64 KiB chunks) when your fleet answers it, and otherwise polls desktop_exec. The poll path is a detached nohup runner under ~/.ruflo-ruos/runs/, read by byte offset about 2 KiB at a time, because desktop_exec output is head-capped at about 4 KiB.
Commands
| Command | What it does |
|---|---|
/ruflo-ruos:hosts |
Lists your desktops: state, heartbeat, and the ruflo agents on each |
/ruflo-ruos:run |
Runs claude -p on a desktop, streams the output, and records the agent and its claim |
/ruflo-ruos:view |
Delegates to /ruos view if installed, otherwise to a view-only desktop_share link |
/ruflo-ruos:deploy |
Read-only hand-off: branch, HEAD, dirty and ahead counts of a repo, plus a summary for a human to review, merge and deploy. Never pushes, deploys or publishes. |
Skill: ruos-host-run, the session path that uses the connected fleet MCP. Agent: ruos-host-operator.
CLI
CLI="node plugins/ruflo-ruos/scripts/cli.mjs"
$CLI status # config + next auto-stop, no network
$CLI hosts
$CLI run --desktop "Work Desktop" --prompt-file task.txt --model sonnet --timeout 900
$CLI run --desktop <id> --prompt-file task.txt --start # wakes a stopped desktop (billable)
$CLI stop --desktop <id> --run <runId> --confirm
$CLI desktop-stop --desktop <id> --confirm
$CLI attach --desktop <id> --run <runId> # re-read a run after a restart (HOME persists)
$CLI logs --run <runId>
$CLI build --prompt-file task.txt # exact desktop_exec strings for the session path
$CLI record start|output|end --run <runId> ...
$CLI deploy-info --desktop <id> --repo projects/app
Status line (mod)
When the ruflo mod (ruflo-mods) is loaded, this plugin's mod adds a ruos segment to ruflo's status line, e.g. ruOS 2 agents · Work Desktop, and clears it when no agent is running. It reads only .claude-flow/ruos/hosts.json, makes no network calls, and draws nothing without ruflo-mods. Verify it with claude plugin test plugins/ruflo-ruos.
Swarm state
Remote agents are recorded with ruflo's own tools: agent_spawn with config.host = {kind: "ruos", desktopId, desktopName, transport, runId}, then agent_update, then claims_claim/claims_release on ruos-run-<runId>. The plugin itself writes only to .claude-flow/ruos/:
events.jsonl: lifecycle events, with ids and sizes only;audit.jsonl: one record per run (desktop, command sha256, start, end, exit, bytes), because ruOS does not audit the detached output;hosts.json: the current host snapshot;runs/<runId>.log: the run output, mode 0600.
Cost and auto-stop
ruOS stops cloud desktops at 23:00 America/Toronto on weekdays. desktop_keepawake does not override this.
- A run that could cross the stop is refused unless you pass
--ignore-autostop. - A stopped desktop is started only with
--start.
Verify
bash plugins/ruflo-ruos/scripts/smoke.sh # structure, security greps, full node --test suite
node plugins/ruflo-ruos/scripts/bench.mjs # adapter overhead vs a raw local call