Commit Graph
11 Commits
Author SHA1 Message Date
ruvnet e332689b8c fix(release): harden hooks, statusline, security, and plugin MCP integration 2026-07-16 23:06:29 -04:00
ruv 0afaf63bc1 darwin-plugins iter 2 — ruflo-federation: fix misleading commands table (slash commands vs skills)
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01EYpeWgqLx3Q3yL2R2ePfmG
2026-06-26 20:13:16 -04:00
ruv e5258d919c darwin-plugins iter 1 — ruflo-federation: add 'Use when' guidance to federation-status (ADR-112) 2026-06-26 20:02:06 -04:00
ruv 6198abfab7 fix(plugins): reconcile stale smoke contract assertions across 23 plugins
full-system-test surfaced 23/32 plugin smoke contracts failing on a
single drifted assertion: the smoke gate greps ADR-0001 for
`status: Proposed`, but those ADRs were long since promoted to
`Accepted` without updating the gate. Flip the assertion (label, grep,
message) Proposed -> Accepted only where the ADR is genuinely Accepted.

ruflo-core additionally had a stale version assertion (0.2.0 -> 0.2.2).

Left untouched: ruflo-adr, ruflo-browser, ruflo-intelligence — their
ADR-0001 is genuinely Proposed, so their smokes correctly assert it.
No plugin source or ADR changed — only the drifted test assertions.

All 32 plugin smoke contracts now pass; full-system-test is 4/4 green.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-29 15:00:34 -04:00
rUvandReuven c328b76541 docs(plugins): aidefence 2.3.0 surface in ruflo-aidefence/-browser/-federation READMEs (#2003)
Followup to ADR-118. Three plugin READMEs amended to describe what
the upstream aidefence@2.3.0 / aimds-*@0.1.1 release improves in
their existing 3-gate flows:

  • ruflo-aidefence: new "What the gates catch" table — prompt
    injection (0..4 modifier window), role hijack, jailbreak
    markers; aidefence_stats counters now accurate.

  • ruflo-browser: AIDefence Gate 3 (Prompt-injection check) note
    that scraped-content scans now flag role-hijack + jailbreak
    in addition to the canonical `ignore all previous
    instructions` family.

  • ruflo-federation: 3-gate alignment block extended with a
    paragraph that the inbound aidefence_is_safe gate's wider
    detection runs through the adaptive confidence calibration
    automatically — no plugin code change needed.

No semantic change to the plugins themselves. Pure documentation
of behavior the 2.3.0 bump already provides through the unchanged
MCP-tool surface.

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-05-14 21:48:42 -04:00
ReuvenandRuFlo 02eee0bcdc docs(adr): bulk-update plugin contract ADR statuses (sweep)
- 27 plugins moved Proposed → Accepted (shipped versions, in marketplace)
  - 0 plugins kept as Proposed (all have real versions ≥ 0.2.0)

Per-plugin breakdown:
  ruflo-aidefence    v0.2.0  Accepted — 3-gate pattern, 6 aidefence_* tools
  ruflo-autopilot    v0.2.0  Accepted — 10 autopilot_* tools, /loop integration
  ruflo-core         v0.2.1  Accepted — MCP server contract, plugin-catalog discovery
  ruflo-cost-tracker v0.16.1 Accepted — namespace-routing fix, ADR-097 budget integration
  ruflo-daa          v0.2.0  Accepted — 8 daa_* tools, intelligence-pipeline alignment
  ruflo-ddd          v0.2.0  Accepted — AgentDB domain graph, SPARC Architecture-phase
  ruflo-docs         v0.2.0  Accepted — document worker dispatch, drift detection
  ruflo-federation   v0.2.0  Accepted — ADR-097 Phase 1+2, 3-gate alignment
  ruflo-goals        v0.2.0  Accepted — 6 namespaces, GOAP + dossier ADR-099
  ruflo-iot-cognitum v0.2.0  Accepted — 5-tier trust, 6 background workers
  ruflo-jujutsu      v0.2.0  Accepted — 6 analyze_* tools, ADR-compliance cross-link
  ruflo-knowledge-graph v0.2.0 Accepted — embeddings_generate fix, pathfinder
  ruflo-loop-workers v0.2.0  Accepted — 12 worker triggers, 5 hooks_worker-* tools
  ruflo-market-data  v0.2.0  Accepted — embeddings + namespace-routing bugs fixed
  ruflo-migrations   v0.2.0  Accepted — namespace-routing bug fixed both skills
  ruflo-neural-trader v0.2.0 Accepted — 4 namespaces already compliant
  ruflo-observability v0.2.0 Accepted — namespace-routing bug fixed both skills
  ruflo-plugin-creator v0.2.0 Accepted — scaffolding templates updated with contract
  ruflo-rag-memory   v0.2.0  Accepted — claude-memories reserved namespace consumer
  ruflo-ruvllm       v0.2.0  Accepted — LLM-config + chat-format slice ownership
  ruflo-rvf          v0.2.0  Accepted — portable-memory + session-persistence slice
  ruflo-security-audit v0.2.0 Accepted — 3-gate + audit_1776853149979 regression class
  ruflo-sparc        v0.2.0  Accepted — all 5 SPARC phases cross-linked
  ruflo-swarm        v0.2.0  Accepted — 12 MCP tools (4 swarm_* + 8 agent_*)
  ruflo-testgen      v0.2.0  Accepted — testgaps worker + coverage CLI commands
  ruflo-wasm         v0.2.0  Accepted — 10 wasm_* tools, ADR-070 cross-ref
  ruflo-workflows    v0.2.0  Accepted — 10 workflow_* tools, SPARC phase transitions

Each ADR received: updated: 2026-05-09 in frontmatter + Implementation status
section noting version, marketplace presence, and contract element alignment.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-09 15:10:42 -04:00
ReuvenandRuFlo b0168e4a55 feat(ruflo-federation): adopt plugin contract — 3-gate alignment + ADR-097 budget integration + smoke (ADR-0001)
Federation already at v0.2.0 with comprehensive ADR-097 budget circuit
breaker docs. The contract pieces were missing.

The plugin's "PII Pipeline" feature is a richer specialization of the
canonical 3-gate pattern owned by ruflo-aidefence ADR-0001:

  Canonical gate 1 (aidefence_has_pii)  ← 14-type PII detection w/ trust-level policies
  Canonical gate 2 (aidefence_scan)     ← outbound HMAC envelope + dual gates
  Canonical gate 3 (aidefence_is_safe)  ← inbound message verification

This ADR makes the alignment explicit so implementers reading both
plugins don't reconcile two different "gate" stories.

- ADR-0001 (Proposed) at docs/adrs/0001-federation-contract.md
- README adds Compatibility (pin v3.6 + plugin-agent-federation runtime),
  3-gate alignment block (canonical → federation specialization mapping),
  Namespace coordination (claims `federation` as the documented exception
  to <plugin-stem>-<intent> rule — when the plugin name is the intent,
  the namespace can match the plugin stem; defers to ruflo-agentdb
  ADR-0001), Verification + Architecture Decisions sections
- plugin.json keywords add mcp, pii-pipeline, audit-log (already at 0.2.0)
- scripts/smoke.sh — 10 structural checks: version + keywords, 3 skills +
  agent + command with frontmatter, ADR-097 budget block intact, 5-tier
  trust model documented, compliance modes (HIPAA/SOC2/GDPR), v3.6 pin,
  namespace coordination, 3-gate alignment cross-reference, ADR Proposed,
  no wildcard tools

Verification: bash plugins/ruflo-federation/scripts/smoke.sh → 10/10

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-04 20:03:22 -04:00
Reuven 149ea30a45 docs(plugin): update ruflo-federation Claude Code plugin for ADR-097
Mirrors the federation_send budget envelope work that landed in 7e1cc06
into the user-facing Claude Code plugin so end users can discover and use
the new controls.

Files:

  plugins/ruflo-federation/.claude-plugin/plugin.json
    Bump 0.1.0 → 0.2.0 (the budget circuit breaker is a meaningful
    surface change). Add circuit-breaker / budget / token-quota
    keywords. Description gains "and per-call budget circuit breaker
    (ADR-097)".

  plugins/ruflo-federation/README.md
    New "Budget Circuit Breaker (ADR-097)" bullet under What's Included.
    Full new section "Budget & Circuit Breaker" with the field table
    (maxHops/maxTokens/maxUsd/hopCount/spent), defaults, hard ceilings,
    validation behavior, and the Phase 1/2/3 roadmap. Notes constant-
    string error responses (HOP_LIMIT_EXCEEDED, BUDGET_EXCEEDED) and
    the anti-oracle posture.

  plugins/ruflo-federation/commands/federation.md
    Add `send <node-id> <message-type> <payload>` subcommand to the
    Usage block. Document the seven budget options (--max-hops,
    --max-tokens, --max-usd, --hop-count, --spent-tokens,
    --spent-usd) with defaults. List the constant-string error codes.
    Add the npx invocation step.

  plugins/ruflo-federation/agents/federation-coordinator.md
    Add responsibility #6 — budget enforcement — to the agent's job
    description. Add the `send` invocation under Tools so the agent
    knows the new option set.

No code changes — this is the surface that end users actually consume
when they /plugin install ruflo-federation, so it has to track the
underlying plugin's API.
2026-05-03 21:17:31 -04:00
rUvandReuven 1976c57ccd fix(federation): publish @claude-flow/plugin-agent-federation@1.0.0-alpha.3 with ruflo-federation bin (#1685)
Same class of bug as iot-cognitum: source existed (325 tests passing) but
unpublished, and ruflo-federation marketplace plugin's skills called
`npx @claude-flow/cli@latest federation <subcmd>` — federation isn't a
CLI subcommand. End result: every federation skill failed.

Plugin source (v3/@claude-flow/plugin-agent-federation):
- New src/bin.ts: standalone CLI shim that bootstraps AgentFederationPlugin
  in-memory, parses argv, resolves multi-word commands (federation peers
  add, federation peers remove, etc.), aliases short flags, dispatches to
  CLICommandDefinition handlers. Loads .env for FEDERATION_NODE_NAME,
  FEDERATION_BIND_HOST, FEDERATION_BIND_PORT, FEDERATION_TRUST_LEVEL.
- package.json: add bin {ruflo-federation: dist/bin.js}, files whitelist,
  homepage. Move workspace deps to devDependencies (all imports are
  `import type`, erased at compile — zero runtime workspace dep).
- New README.md with subcommand reference and .env config.

Marketplace plugin (plugins/ruflo-federation):
- Bulk-rewrote 5 files (3 skills + commands/federation.md +
  agents/federation-coordinator.md): now call
  `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation <subcmd>`

Other minor fix:
- plugins/ruflo-swarm/README.md: pin `npx @claude-flow/cli swarm` →
  `npx @claude-flow/cli@latest swarm` for consistency with the other 31 plugins.

Audit result post-fix: 32/32 plugins use working invocation patterns.
- 12 verbs against @claude-flow/cli@latest (all exist: memory, hooks,
  security, neural, swarm, doctor, init, embeddings, status, daemon,
  config, plus session)
- @claude-flow/plugin-iot-cognitum (alpha.5 published)
- @claude-flow/plugin-agent-federation (alpha.3 published — this PR)
- neural-trader (2.7.1 on npm)
- ruvector (0.2.25 on npm)

Smoke test: `npx -y -p @claude-flow/plugin-agent-federation@latest
ruflo-federation status` returns Node ID + session count + healthy flag.

Caveat: the 11 plugins that depend on mcp__claude-flow__* MCP tools
(adr, aidefence, autopilot, browser, daa, goals, plugin-creator, ruvllm,
sparc, wasm, workflows) require the MCP server to be connected — not
audited here.

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-04-30 16:26:23 -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 b239c6246c feat: ruflo-federation native plugin, registry entry, README overhaul
- Add ruflo-federation to plugins/ (21st native Claude Code plugin)
  with federation-coordinator agent, /federation command, and 3 skills
  (federation-init, federation-status, federation-audit)
- Register @claude-flow/plugin-agent-federation in discovery.ts
  (official, featured, trending, newest, realNpmPackages)
- README: rewrite intro, add "Slack for Agents" federation section
  with ASCII comms diagram, capabilities table, install commands,
  update plugin count to 21+21

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-29 18:57:35 -04:00