* 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>
The CLI, two MCP tools and two plugin scripts imported or ran code found
relative to the cwd, which is the opened project:
- doctor (metaharness check), `metaharness` command and metaharness MCP
tools: plugins/ruflo-metaharness/scripts under the cwd;
- testgen MCP tools: plugins/ruflo-testgen/scripts under the cwd, reached
on every published install because that plugin is not bundled;
- init: <cwd>/node_modules/@claude-flow/codex;
- embeddings: <cwd>/node_modules, <cwd>/../node_modules and a fixed
/workspaces/claude-flow path for agentic-flow;
- ruflo-ruos ledger: the CLI's mcp-client resolved from the cwd;
- cost-tracker compact.mjs: @claude-flow/integration resolved from the cwd.
Each now resolves from the tool's own install (module location /
createRequire(import.meta.url)), plus the user's marketplace checkout for
the plugin scripts. The project remains the data/scoring target.
Test: optional-module-resolution-trust.test.ts (10 cases, all fail on main).
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>
ruflo-mods landed the flat segment API (#3608, ADR-404). The ruflo-ruos mod
reads only .claude-flow/ruos/hosts.json and sets $.ruflo.segment({id:'ruos',
text}) on session start, each prompt and every 15 s; try/catch, no feature
detection, no network, no $.ruos dependency. Vendored $.ruflo type with a
parity test; claude plugin validate + 3 claude plugin tests pass; smoke runs
them when the claude CLI is present. CI baseline lists the two new test files.
Co-Authored-By: RuFlo <ruv@ruv.net>
- every remote command gets a fresh 64-bit nonce; markers print as
RUOS<nonce>_NAME via printf 'RUOS%s_NAME' '<nonce>', so the token never
appears in the command or its desktop_exec echo; parsers accept only
whole lines with that command's nonce (test replays raw echoes that
contain every marker name)
- test that poll command + 2 KiB slice fit the ~4 KiB cap, echo counted
- pid file holds digits only; audit hash masks the nonce (stable)
- scripts/ci-test-baseline.txt: the 6 node:test files (run by smoke.sh)
that root vitest reports as 'No test suite found' (lead-authorized)
- hosts.json heartbeatAt is ISO for the swarm pane (#3607)
Co-Authored-By: RuFlo <ruv@ruv.net>
Live E2E on rUv's Work Desktop (2026-10-01) found that desktop_exec echoes
the command it ran and head-caps stdout at ~4 KiB:
- strip the exec frame and match every marker as a whole line (the echo
contains the marker names and would always false-match)
- poll slices drop to 2 KiB
Design rules from the ruOS lane:
- JobTransport with ExecPollTransport (now) and JobsApiTransport (ADR-105,
feature-detected; run id = idempotency key; 404 never retried; capacity
backoff), adaptive 1s->10s polling, attach to re-read after a restart
- fleet MCP is stateless and the only external transport; SSH :2222 is
in-tenant only; credentials from env or @cognitum/ruos file, redacted;
read-only tokens degrade with insufficient-scope
- never issue desktop_delete/secret_delete (runtime guard + static test)
- llm_route_get before launch; per-run audit record; Lite browsers filtered;
128-bit run ids; 23:00 stopAt recorded in swarm state; deploy read-only
- ADR-405 updated incl. TOFU accepted risk and live evidence
Co-Authored-By: RuFlo <ruv@ruv.net>
- hosts.json is read-merge-write: discovery keeps agent placements and a
run keeps the other hosts; finished agents are removed
- poll reports runner liveness (kill -0); a dead runner without an exit
code fails fast instead of waiting out the timeout
- only whole base64 quanta are decoded, so a truncated tool result never
advances the offset past bytes it did not deliver
- the 23:00 auto-stop window applies to cloud desktops only
Co-Authored-By: RuFlo <ruv@ruv.net>
Optional plugin core for running ruflo swarm agents on the user's own ruOS
desktops (ADR-405). Fleet MCP (tenant-authenticated) and per-tenant SSH :2222
only; the :17870 executor is never contacted. Swarm state flows through
ruflo's existing agent_* and claims_* tools in-process.
Co-Authored-By: RuFlo <ruv@ruv.net>