Commit Graph
10 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 347c0b8608 darwin-plugins iter 2 — ruflo-aidefence: declare allowed-tools on /aidefence command 2026-06-26 20:11:19 -04:00
ruv e0ffdec347 darwin-plugins iter 1 — ruflo-aidefence: add ADR-112 'Use when' guidance to SKILL descriptions 2026-06-26 20:01:49 -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 9982c701fa feat(ruflo-aidefence): adopt plugin contract + canonicalize 3-gate pattern (ADR-0001)
Joins the cadence: pin → ADR (Proposed) → smoke → namespace coordination.
Plus this plugin canonicalizes the 3-gate pattern that ruflo-browser
ADR-0001 §4 codified — every consumer plugin handling untrusted content
should apply these gates in order:

1. Pre-storage PII (aidefence_has_pii) — before any AgentDB / memory_store
2. Sanitization (aidefence_scan) — for cookies / tokens / high-entropy blobs
3. Prompt-injection (aidefence_is_safe) — for content re-entering an LLM

Changes:
- ADR-0001 (Proposed) at docs/adrs/0001-aidefence-contract.md
- README adds Compatibility (pin v3.6), 3-gate pattern table,
  Namespace coordination (defers to ruflo-agentdb ADR-0001, claims
  security-patterns), Verification + Architecture Decisions sections
- plugin.json keywords add prompt-injection, defense-in-depth, mcp
  (already at v0.2.0 — no version bump needed)
- scripts/smoke.sh — 10 structural checks: version + keywords, all 6
  aidefence_* tools referenced, transfer_detect-pii reference, v3.6 pin,
  namespace coordination, 3-gate pattern complete, defence-in-depth block
  intact, ADR Proposed, skill frontmatter valid, no wildcard tools

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

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-04 19:47:25 -04:00
Reuven 6a40574745 feat(plugins): ADR-098 Part 1 (slice 1/3) — capability sync for security plugins
Adds ADR-095/096 + audit_1776853149979 references to ruflo-aidefence
and ruflo-security-audit. End users installing either plugin now see
the host hardening features that pair with the plugin's threat
detection / scanning, not just the plugin's own surface.

ruflo-aidefence/README.md:
  New "Defense-in-depth pairing (ruflo 3.6.25+)" section listing:
  - validateEnv() loader-hijack denylist (LD_PRELOAD, NODE_OPTIONS,
    DYLD_*, etc.) at the terminal_create MCP boundary
  - File mode 0600 / dir mode 0700 on session/terminal/memory stores
    via fs-secure
  - Encryption at rest (CLAUDE_FLOW_ENCRYPT_AT_REST=1, AES-256-GCM,
    RFE1 magic-byte sniff)
  Threat scoring should account for whether the host is a denylist-
  enforcing / encrypted-at-rest install.

ruflo-security-audit/README.md:
  New "Patterns to scan for (audit_1776853149979 follow-up)" section
  with six concrete antipatterns + remediation pointers:
  - execSync(string) with template-literal args (4 closed sites cited)
  - Numeric MCP inputs cast as `number` without runtime check
  - Untrusted package specs flowing into npm install
  - Loader-hijack env vars
  - Plaintext at-rest secrets paired with ADR-096
  - MCP stdin DoS (10MB cap reference)
  Plus a `ruflo verify` reference confirming 55 witnesses on disk.

Plugin versions:
  ruflo-aidefence       0.1.0 → 0.2.0 (minor — capability sync)
  ruflo-security-audit  0.1.1 → 0.2.0 (minor — capability sync,
                                       was patch from iter #55 model
                                       fix)

Two more slices remain for Part 1:
  - slice 2: ruflo-rag-memory + ruflo-rvf — encryption-at-rest gate
    notes
  - slice 3: ruflo-cost-tracker — federation budget breaker pairing,
    federation_spend events
  - slice 4: ruflo-agentdb + ruflo-knowledge-graph — G7 controllers
2026-05-03 22:01:01 -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