Commit Graph
25 Commits
Author SHA1 Message Date
randRuFlo 0e9902f396 feat(ruflo-intelligence): document neural wsp ruv-FANN tooling (0.6.0)
/neural wsp, intelligence-specialist rows, and an intelligence-route step
that runs neural wsp check after the centroid artifact is replaced.

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

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

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

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 12:11:22 -05:00
rUvandr b9f32453f3 feat(plugins): agentdb 3.4, ruvllm 4.1 runtime, sublinear-core, injection guard in plugins + marketplace pins (#4843)
* feat(plugins): ecosystem releases in agentdb, ruvllm, aidefence, intelligence, graph-intelligence + marketplace pins

ruflo-ruvllm 0.4.0: new ruvllm-runtime skill telling apart ruvllm-wasm (MCP
tools), @ruvector/ruvllm ^4.1.0 (restored SonaCoordinator/LoraAdapter/
TrainingPipeline runtime) and @ruvector/ruvllm-gpu-loop 1.1.x; warns off the
wrong-repo 4.0.x. ruflo-agentdb 0.4.12: agentdb 3.4 capabilities (pathfinder
dynamic-mincut, AGENTDB_INJECTION_GUARD, where RaBitQ lives for ruflo), and
the agentdb-specialist ruvector pin line from #4842. ruflo-aidefence 0.3.4:
agentdb guard + agentic-flow prompt_injection_scan. ruflo-intelligence 0.4.6:
learning-wasm / ruvllm 4.1 backends, links lora-learning and fast-code-edits.
ruflo-graph-intelligence 0.3.0-alpha.1: declared solver dep
sublinear-time-solver -> @ruvnet/sublinear-core (never imported; lockfile
1,015 -> 77 packages; tsc + vitest 104/104), new sublinear-core skill,
supply-chain allowlist updated.

Marketplace: external agentdb -> plugin-v3.4.0 (agentdb@3.4.0); external
agentic-flow -> aa5b11e (plugin 3.3.0, agentic-flow@3.3.0, ecosystem tools).

ruflo-ruvector is left to #4842; additions on top follow after it merges.
The six CLI ecosystem skills are linked, not duplicated; no v3/ changes.

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix(plugins): keep the two new skill descriptions under 300 chars (ADR-507)

Co-Authored-By: claude-flow <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-11-06 07:28:16 -06:00
chaitanya-y20 13af5f1208 chore(plugins): give every plugin manifest a repository field
44 of the 48 `plugins/*/.claude-plugin/plugin.json` manifests had no
`repository`, while the four that do already point at the repo URL their
`homepage` names. The field is what the directory listing and
`npm view` read, and its absence is invisible until something reads it.

Add it to the 44 that lack it, then make `scripts/audit-plugin-manifest.mjs`
enforce it so the next plugin cannot ship without one:

- check 6 in the script header, the violation in `auditManifest`, and the
  clean-run summary line. A manifest may carry the repository as a string or
  as an object's `url`; anything else is reported as missing, and a value that
  is not an http(s) URL is reported separately.
- the required-field lists in `create-plugin` and `validate-plugin` skills, so
  a scaffolded plugin passes the gate it is told to satisfy.

Verified with the repo's own gates:

- `node scripts/audit-plugin-manifest.mjs` scans 48 manifests, clean.
- removing the field from one manifest reports `repository field: missing or
  empty` and exits 1; setting it to `ruvnet/ruflo` reports `repository is a URL`
  and exits 1; restoring it exits 0.
- `node scripts/check-plugin-manifests.mjs` is unchanged by this diff (its two
  nested-manifest findings belong to `ruflo-ai-team/directory` and
  `ruflo-x-gateway/directory`, which this change does not touch).
- `node scripts/audit-plugin-secrets.mjs` clean, 48 manifests.

No plugin version is bumped: the installed artifact's behaviour does not change
and no user-visible surface reads the field from an installed copy, so there is
nothing for a version bump to deliver. The `Plugin version bump` workflow will
flag the 44 manifests it sees as shipped files, and this PR needs the
`skip-plugin-version-check` label rather than 44 unrelated version bumps that
would collide with each plugin's own release cadence.

Closes #4774
2026-11-05 09:25:38 +05:30
akushonkamen 87d8687f3f fix(ruflo-agentdb): stop the secret screen treating a hyphen-named memory key as a credential field (#4202) (#4211)
* fix(ruflo-agentdb): stop the secret screen treating a hyphen-named memory key as a credential field

assignmentSecret() ran the KEY_NAME key-assignment check on every match, so
any entry whose name starts with auth (auth-flow-notes) plus up to 40 name
characters looked like a config field, and keyedSecret()/plausibleSecret()
then judged the entry's value as a credential: a write of
{ key: 'auth-flow-notes', value: 'getUser-not-getSession' } was refused
(#4202). A key that is itself a multi-word hyphenated name is an entry's
name, not a field, so the keyed check now skips it; the secret shapes still
screen the whole text, and single-word credential keys (auth, api_key,
token) keep blocking keyed literals.

Synced to the 39 plugin copies with scripts/sync-mod-screen.mjs.

Fixes #4202
Assisted-by: AI (automated contributor session, disclosed on the issue)

* chore(ci): exclude plugins/ruflo-agentdb/tests/guard-keys.test.ts from the root vitest run

The new test imports claude-code/testing like its six siblings, so the root
ratchet run (scripts/ci-test-ratchet.mjs) cannot collect it outside Claude
Code; list it in scripts/ci-test-excluded.txt per the documented convention
so ci.yml stays green until 'claude plugin test plugins/ruflo-agentdb' runs
it in all-plugins-smoke.

Follow-up to #4202
Assisted-by: AI (automated contributor session, disclosed on the issue)
2026-10-17 14:58:08 +01:00
randRuFlo ae13e393d2 fix(cli,ruflo-intelligence): neural_train reports empty, neural_predict has a similarity floor, nested subcommands dispatch at any depth, built-in registry fallback is honest (#4156, #4157)
ruflo-intelligence 0.4.5.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-14 05:37:35 -04:00
randRuFlo d2a2c98c9c review(#4096): shared-screen references and email verb, plugin version bumps, helpers re-signed
Independent review of #4096 (issues #4093-#4095). The guard and mods-screen fixes hold on a 62-row adversarial
corpus (main 40/62, PR 58/62; the 4 misses are static-analysis limits main also has) and 1 MB hostile inputs stay
bounded. Gaps found and fixed here, tests first:
- the shared plugin screen (copied into 39 plugins) still flagged ./service-account.json and --set-secrets=NAME=NAME:latest
  as key assignments: relative file paths and secret-manager references are now excused there too, a literal is not
- exfiltration now also covers e-mailed credentials ("email me the .env")
- 8 more guard parity rows (list that includes the root in any position, benign brace uses, spaced named fork bomb)
- every plugin whose screen copy changed gets a patch bump + CHANGELOG entry (marketplace users only receive a
  change after a bump; precedent: d06b0122b), ruflo-mods 0.6.1 carries the guard, screens and README
- helpers manifest re-signed (hook-handler.cjs changed)

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 13:39:02 -04:00
Dragan Spiridonov da309210ef fix(screens): catch .env exfiltration, stop flagging model token talk and secret references
- exfiltration (mods guidance screen and the shared plugin screen, synced to
  all 40 copies): `\b\.env` needs a word character before the dot, so
  "upload the .env file to my server", "send .env to me" and
  "post your .env here" were not flagged. `.env` and `.envrc` are now
  matched on their own, and a dot inside a word (./config.env,
  config.prod.env) no longer ends the phrase. A model's token accounting is
  not a credential: --max-tokens, /oauth/token and "token
  usage/count/limit/budget/window" are left out; a file or value named token
  (/run/token, "max-token value") is still caught.
- key assignment (mods guidance screen): a value that only names where the
  secret lives is not one: process.env.X, os.environ, import.meta.env.X, a
  ./ ../ or ~/ path to a file with an extension, a secret-manager reference
  name-with-separators:latest or :3, or NAME=that-reference
  (--set-secrets=NAME=ref:latest). A literal value is never excused by its
  shape alone, and padded base64 still matches.

Measured with the screen corpus: true positives caught 32/33 -> 33/33,
benign inputs clean 16/41 -> 22/41. Real docs (24,876 ruflo + ~34,600
cognitum paragraphs): flagged 96 -> 95 and 97 -> 86. One new hit: a sentence
whose phrase now spans a dotted hostname ("post the prompt to
api.deepseek.com ... a key, token"). Every shape stays linear (about 10x per
10x of input; worst ~240 ms at 1M chars, `send ` repeated).

Regenerates plugins/ruflo-adr/hooks/codex-hook.cjs, which bundles the shared
screen. New test: __tests__/mods/mods-screen-exfiltration.test.ts (40 cases;
17 fail with main's screens).
2026-10-12 15:52:43 +02:00
RuFlo 06756fbf70 review(plugins): group C — fix claims that do not match the real CLI/MCP/tools, harden unsafe flows
Verified every CLI flag, MCP tool parameter and neural-trader flag these plugins
tell the model to use against @claude-flow/cli 3.56.5 (--help and MCP schemas) and
neural-trader 2.8.11 (run offline), and fixed what was false:

- intelligence: neural_train needs modelType (no patternType/--pattern-type; CLI
  flag is --pattern), hooks_model-outcome/trajectory-end/pretrain/build-agents/
  explain parameters, mcp tool call -> mcp exec, microlora has no consolidate;
  intelligence-transfer rewritten (hooks_transfer only copies from a local
  project; marketplace is hooks transfer store ..., PINATA_API_KEY/SECRET, PII
  scan + confirmation before publish).
- loop-workers: CronCreate takes {cron,prompt,recurring} and is session-scoped
  (7-day expiry), ScheduleWakeup needs prompt, 270s heartbeat qualified by TTL.
- market-data: candles were routed to the ~11-pattern ruvllm_hnsw router;
  untrusted-feed rules; no order placement.
- neural-trader: many documented flags answer "Unknown command" in 2.8.11; several
  handlers return demo output; backtests/signals use synthetic bars without
  --live; backtest signing now refuses non-live data; live/broker path and
  circuit-breaker claims corrected; signal TTL used a non-existent expiresAt.
- iot-cognitum: pin the fleet CLI instead of @latest; confirmation gates for
  firmware deploy/advance/rollback and fleet delete.
- migrations: confirmation/dry-run/validate gates before migrate up/down.
- music: bearer token only sent to music.cognitum.one; pin cogmusic@0.1.1; token
  never enters the transcript.
- jujutsu: analyze_diff* take a ref, not diff text; gate PR merge/close/create.
- knowledge-graph: align relation weights with kg-extract.
- Removed the invalid post-task --train-neural flag everywhere in these plugins.

Plugin versions bumped (marketplace users only receive changes after a bump):
intelligence 0.4.3, loop-workers 0.3.4, market-data 0.3.4, neural-trader 0.3.5,
iot-cognitum 0.3.3, jujutsu 0.3.4, knowledge-graph 0.3.4, migrations 0.3.4,
music 0.2.4. metaharness reviewed, no change needed.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 11:33:03 -04:00
ruv 7670a02849 docs(plugins): CHANGELOG.md for every plugin in the ADR-478 format, derived from git history
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-07 14:37:29 -04:00
ruv d06b0122be fix(mods): shared textsOf reports truncation and every guard fails closed on it
The walker dropped input past its node, character and per-string budgets
silently, so 32 guards passed a secret placed after the cap. textsOf now
appends a TRUNCATED marker; names/hasSecretIn treat it as a finding. Regenerated
the 38 copies, bumped the 39 plugins, emptied the known-holes baseline.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-05 00:27:13 -04:00
ruv 21adb5ce28 feat(mods): vendor the flag option parser from one origin with the screen sync and drift check (review #2)
Extend scripts/sync-mod-screen.mjs to a second kit: the flag() helper in hooks/options.ts of 38 mods now sits between SHARED FLAG markers and is
rewritten/checked from ruflo-agentdb. Drift, a lost marker or zero copies fails --check. Bump the 39 touched plugin versions and their version pins.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-04 23:46:06 -04:00
ruv 53de5bb936 fix(mods): one iterative textsOf in the shared screen — depth, sibling, size caps, object keys and the invisible-character set fixed at the root (ADR-445)
Replaces 37 copy-pasted recursive walkers with a shared breadth-first one (keys as key=value, overlapping windows for long strings, node and char budgets) and widens INVISIBLE (soft hyphen, bidi isolates, Mongolian separator, more). Probe holes 788 -> 0.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-04 20:51:39 -04:00
ruv f2190b38ad fix(mods): secret screen — a 20+ char value under a secret-named key is a secret even all-letter or UUID-shaped, unless a clear reference (ADR-445)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-04 19:57:17 -04:00
ruv 0b5eb1c109 fix(mods): secret screen judges values, not names — fewer false positives, vendor keys, URL credentials, env assignments, 200 KB scan (ADR-445)
One canonical region in ruflo-agentdb/hooks/screen.ts, regenerated into the 37 copies by sync-mod-screen.mjs. 'key assignment' is now decided by
the value (not a call/env/path/placeholder/UUID/name; two character classes; >=2.5 bits entropy). Adds stripe, npm, huggingface, sendgrid, twilio,
slack webhook and credentialed DB URL rules; bearer and DB URL placeholders are rejected. 40 new agentdb tests; 20 KB ReDoS probe 0.57 -> 0.68 ms.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-04 19:50:47 -04:00
ruv 71bf281bf0 refactor(mods): one source for the secret screen — sync-mod-screen.mjs regenerates the shared region of 37 screen.ts copies, --check in all-plugins-smoke (ADR-445)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-04 19:03:37 -04:00
ruv 1ca7d0e788 feat(plugins): goals, graph-intelligence, intelligence, iot-cognitum as mods
Tighten-only guards on each plugin's own tools (secrets; dossier ID numbers;
intelligence reset confirm + public-transfer email screen; destructive
cognitum-iot confirm), /<short>-mod local commands, status files, tests and
smoke steps. Minor version bumps.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-04 15:35:31 -04:00
ruvnet e332689b8c fix(release): harden hooks, statusline, security, and plugin MCP integration 2026-07-16 23:06:29 -04:00
ruv e4ecb88ae3 darwin-plugins iter 3 — ruflo-intelligence: align plugin.json tool-count breakdown with README inventory 2026-06-26 20:28:10 -04:00
ruv a73ff2980d darwin-plugins iter 1 — ruflo-intelligence: correct Tier 1 to deterministic codemod (ADR-143) 2026-06-26 20:02:14 -04:00
ReuvenandRuFlo 78e5658dfd feat(ruflo-intelligence): v0.3.0 — surface completeness, 4-step pipeline, IPFS transfer, namespace coordination
Implements ADR-0001 for ruflo-intelligence. Plugin previously documented
~14 of 29 intelligence-related MCP tools and never operationalized the
4-step pipeline (RETRIEVE → JUDGE → DISTILL → CONSOLIDATE) that CLAUDE.md
treats as the V3 framing. IPFS-based cross-project pattern transfer
(hooks_transfer) was completely invisible despite being a real
differentiator.

Verified surface (29 tools across 5 families):
- 6 neural_* (incl. neural_compress, previously undocumented)
- 10 hooks_intelligence_*-family (incl. _attention, _learn, _stats,
  -reset — all previously undocumented)
- 6 routing/meta hooks (hooks_route, hooks_explain, hooks_pretrain,
  hooks_build-agents, hooks_metrics, hooks_transfer — last 5
  previously undocumented)
- 3 hooks_model-* (Tier 1/2/3 routing)
- 4 ruvllm_sona_* + ruvllm_microlora_* (MicroLoRA previously undocumented)

Changes:
- bump 0.1.0 → 0.3.0; new keywords (microlora, ewc, attention, moe,
  pattern-transfer, model-routing, mcp)
- ADR-0001 (Proposed): documents drift, decisions, smoke contract,
  namespace coordination with ruflo-agentdb
- README: full rewrite with tool inventory + 4-step pipeline (each phase
  mapped to specific tool calls) + cross-project IPFS transfer + hook
  integration table + namespace coordination (defers to ruflo-agentdb
  ADR-0001) + EWC++ explanation (no longer phantom feature) + MoE mode
  enumeration + Compatibility section
- intelligence-specialist agent: tool routing matrix (29 entries),
  pipeline responsibility table, namespace contract, MoE mode selection,
  EWC++ in practice, cross-project transfer flow
- /intelligence command: real dashboard (stats + metrics + model-stats
  + neural-status + hooks_explain on --why)
- /neural command: adds neural_compress dispatch
- intelligence-route skill: adds hooks_explain rationale step
- neural-train skill: adds MicroLoRA section, EWC++ via consolidate flag,
  hooks_pretrain + hooks_build-agents bootstrap, hooks_intelligence-reset
  for testing
- NEW intelligence-transfer skill: walks the IPFS workflow end-to-end
  (store / load / from-project), Pinata prerequisite documented
- scripts/smoke.sh: 16 structural checks (3 doc invariants + 13 contract)

Verification:
  bash plugins/ruflo-intelligence/scripts/smoke.sh
  → 16 passed, 0 failed

Coordinates with prior ADRs:
- ruflo-agentdb ADR-0001 §"Namespace convention" — pattern (singular)
  vs patterns (plural) gotcha referenced inline
- ruflo-ruvector ADR-0001 — trajectory hooks land in ruvector substrate
- ruflo-browser ADR-0001 — consumes trajectory hooks for replay

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-04 19:39:44 -04:00
Reuven 2e5c90c902 feat(plugins): ADR-098 Part 4 — standardize neural-learning hook
Closes the 16% gap (7 of 43 plugin agents) flagged by the ADR-098
audit: agents that completed tasks without feeding the SONA learning
loop, costing the system long-term improvement signal.

Each affected agent gets the canonical 5-line tail:

  ### Neural Learning

  After completing tasks, feed the <role-specific-context>:
  ```bash
  npx @claude-flow/cli@latest hooks post-task --task-id "TASK_ID" --success true --train-neural true
  ```

The "<role-specific-context>" is per-agent so the tail reads native
rather than copy-pasted:

  ruflo-daa/daa-specialist            adaptive-agent learning loop
  ruflo-goals/goal-planner            planner trajectory store
  ruflo-intelligence/intelligence-spec pattern-discovery learning loop
                                       (next RETRIEVE benefits from this run)
  ruflo-iot-cognitum/telemetry-analyz  telemetry baseline learning
                                       (Z-score thresholds adapt)
  ruflo-ruvllm/llm-specialist         router outcome learning
                                       (provider/model picks compound)
  ruflo-sparc/sparc-orchestrator      phase-quality learning loop
                                       (quality gates self-tune)
  ruflo-swarm/coordinator             coordination outcome learning
                                       (topology + role choices compound)

Re-audit confirms 0 of 43 plugin agents missing the hook (was 7 of 43).

ADR-098 acceptance-criteria item closed: "All 43 plugin agents include
a `hooks post-task --train-neural true` invocation."

Parts 1 (capability sync), 2 (token diet), 3 (model rightsizing), and
5 (worker dispatch) remain as separate iterations.
2026-05-03 21:56:52 -04:00
Reuvenandclaude-flow f25bcf2073 feat: add 10 new ruflo plugins, optimize all 32, add READMEs and user guide
New plugins: ruflo-adr (ADR lifecycle), ruflo-ddd (domain-driven design),
ruflo-sparc (SPARC methodology), ruflo-neural-trader (trading strategies),
ruflo-ruvector (vector embeddings), ruflo-knowledge-graph (entity graphs),
ruflo-market-data (OHLCV ingestion), ruflo-migrations (schema management),
ruflo-observability (logging/tracing), ruflo-cost-tracker (token budgets).

Optimizations across all 32 plugins:
- All pass `claude plugin validate` (removed invalid manifest arrays)
- 51/51 skills have argument-hint frontmatter
- Model routing: 4 haiku, 24 sonnet, 2 opus (cost-optimized)
- Neural learning hooks on 25/30 agents
- Cross-references between 6 related plugin pairs
- Pathfinder graph traversal algo for researcher agent
- READMEs for all 32 plugins + plugins/README.md catalog
- discover-plugins skill updated with full 32-plugin catalog

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-29 23:46:54 -04:00
Reuvenandclaude-flow 81418649c6 feat: add 19 Claude Code native plugins with 64 skills, 25 commands, 21 agents
Complete plugin marketplace for Ruflo with validated Claude Code plugin format:

- ruflo-core: MCP server, status, doctor, plugin discovery
- ruflo-swarm: swarm coordination, Monitor, worktree isolation
- ruflo-autopilot: autonomous /loop completion with learning
- ruflo-intelligence: SONA neural patterns, trajectory learning, routing
- ruflo-agentdb: AgentDB controllers, HNSW vector search, RuVector
- ruflo-aidefence: AI safety scanning, PII detection, prompt defense
- ruflo-browser: Playwright browser automation, testing, scraping
- ruflo-jujutsu: git diff analysis, risk scoring, reviewer recs
- ruflo-wasm: sandboxed WASM agents and gallery sharing
- ruflo-workflows: workflow templates, orchestration, lifecycle
- ruflo-daa: Dynamic Agentic Architecture, cognitive patterns
- ruflo-ruvllm: local LLM inference, MicroLoRA, SONA, chat format
- ruflo-rvf: RVF portable memory, session persistence, transfer
- ruflo-loop-workers: background /loop workers, CronCreate
- ruflo-security-audit: CVE scanning, dependency checks
- ruflo-rag-memory: simple store/search/recall interface
- ruflo-testgen: test gap detection, TDD workflow
- ruflo-docs: doc generation, drift detection
- ruflo-plugin-creator: scaffold, validate, publish new plugins

All 19 pass `claude plugin validate`. Skills auto-discovered from
directory structure (not declared in plugin.json). Each skill wires
to ruflo MCP tools via allowed-tools frontmatter.

Includes: marketplace.json, GitHub Pages storefront, CI validation
workflow, minimalist README with USERGUIDE split.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-27 23:07:33 -04:00