24 Commits
Author SHA1 Message Date
Reuven 5addd83b43 perf(plugins): ADR-098 Part 2 (slice 4/4) — token diet for ruflo-cost-tracker/cost-analyst
Closes Part 2 of ADR-098. Final and largest token diet — moves
the model pricing table, cost attribution formula, budget alert
ladder, optimization strategy catalog, and cost-report shape out
of the agent prompt into a sibling REFERENCE.md.

Before: 105 lines per spawn (~1260 tokens).
After:  41 lines per spawn (~490 tokens). Net savings ~770 tokens
        per cost-analyst spawn — biggest single-agent win of Part 2.

Reference content lives at plugins/ruflo-cost-tracker/REFERENCE.md
(63 lines):
  - Pricing table per 1M tokens for Haiku/Sonnet/Opus across
    Input/Output/Cache-Write/Cache-Read
  - Cost attribution formula
  - 4-tier budget alert ladder
  - Optimization strategies with savings ranges + quality impact
  - Standard markdown cost-report shape
  - Federation cost integration note (ADR-097 Phase 3 lookup)

The agent prompt keeps:
  - 5-row responsibilities block
  - 5 AgentDB MCP tool entries
  - Memory + Neural Learning tails (Part 4 invariant)
  - Related plugins list (added ruflo-federation per Part 1 sync)

Plugin version: 0.2.0 → 0.2.1 (patch — token diet only). The 0.2.0
bump came from Part 1 slice 3 (federation budget pairing).

ADR-098 Part 2 final progress (all 4 slices):
  - device-coordinator: 30 ≤ 60 ✓ (was 69, slice 1)
  - domain-modeler:     54 ≤ 60 ✓ (was 93, slice 2)
  - adr-architect:      45 ≤ 60 ✓ (was 96, slice 3)
  - cost-analyst:       41 ≤ 60 ✓ (was 105, slice 4)

Net cumulative savings across 4 agents: ~2400 tokens per spawn.
Multiplied by spawn frequency, this is the largest measurable
optimization landing in the 3.6.x cycle.

Remaining ADR-098 work: Part 5 (worker dispatch — ≥ 8 work-producing
agents fire the right background worker on completion).
2026-05-03 22:33:03 -04:00
Reuven 85eab480e9 perf(plugins): ADR-098 Part 2 (slice 3/4) — token diet for ruflo-adr/adr-architect
Moves the ADR markdown template, AgentDB graph-storage recipes,
lifecycle state machine, code-ADR violation detection workflow,
and index-file format out of the agent prompt into a sibling
REFERENCE.md.

Before: 96 lines per spawn (~1150 tokens).
After:  46 lines per spawn (~550 tokens). Net savings ~600 tokens
        per adr-architect spawn.

Reference content lives at plugins/ruflo-adr/REFERENCE.md (78 lines):
  - Full ADR markdown template with all 5 standard sections
  - Lifecycle state machine ASCII diagram + transition rules
  - AgentDB hierarchical-store + causal-edge commands with
    relationship vocabulary (supersedes / amends / depends-on)
  - Code-ADR violation detection workflow (Grep → git blame →
    ADR-status comparison)
  - Common drift patterns to flag
  - Index file format for docs/adr/README.md

The agent prompt keeps:
  - 4-row responsibilities block
  - Tools list (8 entries: agentdb / memory / Read-Write-Edit / Grep
    / Glob / Bash)
  - Cross-references to ruflo-jujutsu + ruflo-docs
  - Memory + Neural Learning tails (Part 4 invariant)

ADR-098 acceptance progress:
  - device-coordinator: 30 ≤ 60 ✓
  - domain-modeler:     54 ≤ 60 ✓
  - adr-architect:      46 ≤ 60 ✓ (was 96)
  - Remaining: cost-analyst (105)

Plugin version: 0.1.0 → 0.1.1 (patch — token diet only).
2026-05-03 22:29:01 -04:00
Reuven 1e5a8ec897 perf(plugins): ADR-098 Part 2 (slice 2/4) — token diet for ruflo-ddd/domain-modeler
Moves DDD vocabulary, directory layout, and AgentDB graph-storage
catalogs out of the agent prompt into a sibling REFERENCE.md.

Before: 93 lines per spawn (~1115 tokens).
After:  46 lines per spawn (~550 tokens). Net savings ~565 tokens
        per domain-modeler spawn.

Reference content lives at plugins/ruflo-ddd/REFERENCE.md (76 lines):
  - 7-row DDD building blocks vocabulary table
  - 6-row bounded-context relationships table (added — wasn't in the
    original prompt; now first-class reference)
  - Per-context directory structure
  - AgentDB graph storage commands with 4 standard edge types
  - Naming conventions (added — wasn't in prompt)

The agent prompt keeps:
  - Responsibilities + 6-step scaffold workflow
  - Tools list (Read/Grep/Glob + memory store/search)
  - Cross-references to related plugins
  - Memory pre-search + Neural Learning tail (Part 4 invariant)

Net: prompt is now narrative + procedural; reference is tabular +
catalog. Each is read in different contexts, neither pays tokens for
the other.

ADR-098 acceptance progress:
  - device-coordinator: 30 ≤ 60 ✓
  - domain-modeler:     46 ≤ 60 ✓ (was 93)
  - Remaining: cost-analyst (105), adr-architect (96)

Plugin version: 0.1.0 → 0.1.1 (patch — token diet only).
2026-05-03 22:24:16 -04:00
Reuven f1bb3cf843 perf(plugins): ADR-098 Part 2 (slice 1/4) — token diet for iot-cognitum/device-coordinator
First slice of the token-diet pass. Moves the trust-tier table, full
tool catalog, and background worker schedule out of the agent prompt
into a sibling REFERENCE.md the agent loads on-demand.

Before: 69 lines per spawn (~830 tokens of context tax).
After:  30 lines per spawn (~360 tokens). Net savings ~470
        tokens per spawn for device-coordinator.

Reference content lives at plugins/ruflo-iot-cognitum/REFERENCE.md
(63 lines):
  - 5-tier trust table with score ranges and capabilities
  - Full lifecycle/inspection/witness command catalog
  - Background worker schedule (HealthProbe, TelemetryIngest,
    AnomalyScan, MeshSync, FirmwareWatch, WitnessAudit)
  - Trust-score formula breakdown showing the 6 weighted components

The agent prompt keeps:
  - 5-line responsibilities block
  - Trust-gate behavior + anomaly response policy
  - Single-line pointer to REFERENCE.md
  - Memory + Neural Learning tails (Part 4 invariant preserved)

ADR-098 acceptance-criteria progress:
  - device-coordinator: 30 ≤ 60 ✓ (was 69)
  - Remaining: cost-analyst (105), adr-architect (96),
    domain-modeler (93)

Plugin version: 0.1.0 → 0.1.1 (patch — token diet only,
no surface change).
2026-05-03 22:19:42 -04:00
Reuven cf96a562c1 feat(plugins): ADR-098 Part 1 (slice 4/4) — G7 controllers in agentdb + knowledge-graph
Closes Part 1 of ADR-098. Documents the 5 AgentDB controllers
activated in 3.6.23+/3.6.24 (G7 from ADR-095) so end users of
ruflo-agentdb and ruflo-knowledge-graph know they're available.

ruflo-agentdb/README.md:
  New "G7 controllers (activated in ruflo 3.6.23+ / 3.6.24)" section
  with a 5-row table (controller / role / source). Each entry cites
  the dist file inside the agentdb npm package so users can verify
  the wiring locally:
    gnnService           — GNN embeddings + relational scoring
    rvfOptimizer         — quantize + dedupe vector blocks
    mutationGuard        — WASM proof generation for state mutations
    attestationLog       — hash-chained audit log (.swarm/attestation.db)
    GuardedVectorBackend — wraps vectorBackend with guard + log
  Notes graphAdapter still pending external graph-DB connection.
  Pointers to agentdb_controllers / agentdb_health for runtime
  inspection.

ruflo-knowledge-graph/README.md:
  Targeted G7 section explaining which controllers help this plugin
  specifically:
    gnnService            — augments pathfinder semantic_similarity
                             with structural relational scoring
    rvfOptimizer          — collapses near-duplicate entity vectors
                             (same class re-exported from multiple
                             modules)
    mutationGuard +
    attestationLog +
    GuardedVectorBackend  — proof-gated writes for federated knowledge
                             import; .swarm/attestation.db audit trail
  Notes graphAdapter as a future improvement that would replace the
  current flat-causal-edge view with a real graph-DB backend.

Plugin versions:
  ruflo-agentdb          0.1.0 → 0.2.0 (minor — capability sync)
  ruflo-knowledge-graph  0.1.0 → 0.2.0 (minor — capability sync)

ADR-098 Part 1 complete: 6 plugins now reference recent ADR
capabilities. Acceptance: each affected plugin has a paragraph or
bullet list referencing the relevant ADR — done for the 6 plugins
flagged in the Part 1 table.

Remaining ADR-098 work:
  - Part 2: token diet (4 fat agent prompts → ≤ 60 lines)
  - Part 5: worker dispatch (≥ 8 work-producing agents)
2026-05-03 22:14:50 -04:00
Reuven 00a9d13b54 feat(plugins): ADR-098 Part 1 (slice 3/4) — cost-tracker federation pairing
Adds ADR-097 federation budget circuit breaker references to
ruflo-cost-tracker. The federation_send max_hops / max_tokens /
max_usd surface is exactly the boundary this plugin should track —
flagging it now even though the bus integration (Phase 3) is
deferred.

ruflo-cost-tracker/README.md:
  New "Federation budget circuit breaker pairing (ruflo 3.6.25+)"
  section with:
  - Field table: maxHops (default 8), maxTokens, maxUsd, hopCount,
    spent.{tokens,usd}
  - Phase 1 (shipped): enforce at send side
  - Phase 2 (deferred): peer state machine ACTIVE/SUSPENDED/EVICTED
    with $5/24h cost threshold + 50%/1h failure ratio triggers
  - Phase 3 (deferred): federation_spend event bus → per-peer
    rolling windows aggregated by this plugin → breaker queries
    aggregate
  - Honest caveat: until Phase 3, federated spend is NOT counted
    in cost-report — treat as lower bound when federation is in use

Related Plugins gains a ruflo-federation entry calling out the
ADR-097 dependency.

Plugin version: 0.1.0 → 0.2.0 (minor — capability sync).

ADR-098 Part 1 progress: 3/4 slices done. Last slice covers
ruflo-agentdb + ruflo-knowledge-graph (G7 controllers — gnnService,
rvfOptimizer, mutationGuard, attestationLog, GuardedVectorBackend).
2026-05-03 22:09:39 -04:00
Reuven 6130f4061c feat(plugins): ADR-098 Part 1 (slice 2/4) — encryption-at-rest notes for memory plugins
Adds ADR-096 references to ruflo-rag-memory and ruflo-rvf — the two
plugins whose write surfaces (.swarm/memory.db and
.claude-flow/sessions/*.json) are now opt-in encrypted at rest.

ruflo-rag-memory/README.md:
  New "Encryption at rest (ruflo 3.6.25+)" section before "Memory
  Namespaces". Covers:
  - Each .swarm/memory.db write encrypted with fresh 12-byte IV via
    writeFileRestricted({encrypt:true})
  - Reads use readFileMaybeEncrypted(path, null) — RFE1 magic-byte
    sniff for backward compat (legacy plaintext memory.db still works)
  - Embeddings encrypted along with the SQLite blob — no separate
    column-level encryption needed for Phase 1
  - Tamper detection: flipped byte fails GCM auth, throws on read
  - ruflo doctor -c encryption reports gate state

ruflo-rvf/README.md:
  New section between Features and Commands explaining session
  persistence's relationship to the encryption gate:
  - Off-by-default: plaintext JSON at mode 0600 (legacy behavior)
  - On: AES-256-GCM session saves, transparent decrypt on restore
  - Important caveat: when exporting RVF files for cross-machine
    transfer, the gate doesn't apply to the exported bytes — that's
    transport security, separate from at-rest. Sealed-box backups
    are the next phase per ADR-096.

Plugin versions:
  ruflo-rag-memory  0.1.0 → 0.2.0 (minor — capability sync)
  ruflo-rvf         0.1.0 → 0.2.0 (minor — capability sync)

ADR-098 Part 1 progress: 2/4 slices done. Remaining:
  - 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:05:33 -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
Reuven 29542ce6d3 feat(plugins): ADR-098 Part 3 — security-auditor opus → sonnet
Drops the security-auditor agent from model:opus to model:sonnet.
Bounded-scope security review (CVE check, dependency audit, input-
validation review, secret scan, severity-ranked report) is sonnet-
tier work in practice — opus's long-context advantage isn't load-
bearing for the audit pattern this agent runs.

Cost delta: ~5x cheaper per token for the model call. Quality delta
expected to be small; documenting the override path so users can
flip back to opus when the audit truly needs deep cross-file taint
tracing or architectural reasoning.

Added a one-line note in the agent prompt explaining the trade-off
and when to override, so the cost-vs-quality decision is visible
to users rather than buried in an ADR.

Plugin version: 0.1.0 → 0.1.1 (patch — model rightsizing only,
no surface change).

Re-audit: 2 of 43 plugin agents on model:opus, both justified —
federation-coordinator (multi-phase trust + audit-grade logging)
and neural-trader/trading-strategist (real-money trading
decisions). Down from 3 of 43.

ADR-098 acceptance-criteria item closed: "ruflo-security-audit/
security-auditor.md is on model: sonnet."

Trial period: monitor security-audit output quality across one
release cycle. Revert to opus if regression detected.

Parts 1 (capability sync), 2 (token diet), and 5 (worker dispatch)
remain.
2026-05-03 21:59:13 -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
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
rUvandReuven 0575962559 feat(iot): full-coverage smoke + iot query/ingest fixes; link to cognitum.one (1.0.0-alpha.4) (#1683)
Drove the live-Seed smoke harness from 11/24 to 24/25 covered, then 21/25
passing on link-local HTTP (the remaining 4 are real Seed security
boundaries, not plugin bugs).

Plugin source fixes (cli-commands.ts):
- iot query: handler now accepts --vector "[..]" JSON arg and parses to
  number[] (was: passed empty array; result was always nearest-neighbour
  to origin)
- iot ingest: handler now accepts --vector "[..]" --metadata "{..}" OR a
  JSON array on stdin (was: stub that always passed []; the SDK rejected
  empty arrays). Uses the SDK's expected {values, metadata} shape.
- New parseVector helper validates JSON array of numbers.

Smoke harness (__tests__/integration/full-plugin-smoke.mjs):
- Rewrote to 25 commands across 7 tiers (init/lifecycle, read-only,
  vector ops, pair round-trip, fleet ops, firmware reads, deregister).
- Pair flow opens pair window via direct API call first (the plugin
  doesn't expose pair-window control yet — known gap).
- Bearer-required failures (unpair, ingest write) classified as expected
  on link-local; firmware deploy/advance/rollback explicitly skipped
  (OTA-can-brick).
- Pass-through dArgs() helper handles cli-commands.ts arg-style
  inconsistency (some handlers read args._[0], others args['device-id']).

Cognitum.one mention (per user request):
- v3/@claude-flow/plugin-iot-cognitum/package.json: description now
  includes "Get a Seed at https://cognitum.one"; added homepage field.
- New README.md for the npm package — full command reference with
  cognitum.one link prominent at the top.
- plugins/ruflo-iot-cognitum/README.md: "Hardware" section added with
  cognitum.one link and link-local + LAN endpoint reference.

Bump to 1.0.0-alpha.4. Published to npm (alpha + latest).

Known gaps for follow-up (not blockers, real Seed limits):
- ingest/unpair require bearer auth via https://...:8443 — plugin doesn't
  support the bearer transport yet
- pair window opening isn't exposed as a CLI command
- iot pair triggers Seed rate-limiter (HTTP 429) when called repeatedly
- SDK's witness.chain() returns 0 length while raw API shows 49,138
  entries — different endpoint shape

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-04-30 13:15:42 -04:00
rUvandReuven ec563de2a1 feat(iot): ship @claude-flow/plugin-iot-cognitum@1.0.0-alpha.2 with cognitum-iot bin (#1681)
ADR-079 was implemented (239 tests passing across 19 test files) but never
shipped as an installable npm package — the marketplace plugin's skills
referenced `npx @claude-flow/cli@latest iot ...` which the CLI never exposed.

Plugin changes (v3/@claude-flow/plugin-iot-cognitum):
- Add src/bin.ts: standalone CLI shim that bootstraps the plugin in-memory,
  parses argv, resolves multi-word commands (iot fleet add, iot firmware
  deploy, etc.), aliases short flags, and dispatches to CLICommandDefinition
  handlers. Defaults `iot register` endpoint to http://169.254.42.1 (the
  Cognitum Seed link-local USB Ethernet address).
- package.json: add `bin: {cognitum-iot: dist/bin.js}`, declare files
  whitelist, bump to 1.0.0-alpha.2, move @claude-flow/shared to
  devDependencies (all imports are `import type`, erased at compile)

Marketplace plugin changes (plugins/ruflo-iot-cognitum):
- Replace 10 files' `npx @claude-flow/cli@latest iot ...` invocations with
  `npx -y -p @claude-flow/plugin-iot-cognitum@latest cognitum-iot ...`
- iot register endpoint argument now optional with documented default

Published @claude-flow/plugin-iot-cognitum@1.0.0-alpha.2 to npm
(tags: alpha + latest). Smoke-tested init / list / fleet list / register
default-endpoint via npx end-to-end.

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-04-30 11:42:04 -04:00
rUvandReuven 1405eab669 fix: rename plugin commands to avoid built-in conflicts; bump default Opus to 4.7 (#1678)
* chore: bump all packages to v3.6.11 — published to npm

SmartRetrieval integration + 4 bug fixes (#1604, #1605, #1606, #1616).

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

* fix: rename plugin commands to avoid built-in conflicts; bump default Opus model

- Rename 9 plugin commands/skills whose bare names collided with built-in
  Claude Code slash commands and skills (/doctor, /loop, /schedule, /browser,
  /status, /cost, /memory, /docs, /sparc) to ruflo-* prefixed names
- Update ruflo init to default to claude-opus-4-7 (was 4.6) in
  settings.json modelPreferences and statusline display
- Update statusline pkgVersion fallback 3.5 -> 3.6 to match published version
- Add plugin showcase GIF above Quick Start in README

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

---------

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-04-30 10:56:47 -04:00
rUvandReuven d663581497 feat: wire SmartRetrieval (ADR-090) into production memory pipeline
Integrates the 5-phase SmartRetrieval pipeline into production:
- Export smartSearch + types from @claude-flow/memory package index
- Add `smart` flag to memory_search MCP tool
- Add `--smart` / `-s` flag to CLI `memory search` command
- Update ruflo-rag-memory plugin skill and README

Pipeline: query expansion → RRF fusion → recency boost → MMR diversity → session round-robin.
11/11 tests pass, both packages build clean.

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-04-30 00:24:52 -04:00
Reuvenandclaude-flow 7ed18b8335 feat: upgrade neural-trader, ruvector, rag-memory plugins to wrap npm packages
- ruflo-neural-trader: wrap npx neural-trader (v2.7+), add market-analyst
  and backtest-engineer agents, add trader-regime/train/risk skills (4 agents, 6 skills)
- ruflo-ruvector: wrap npx ruvector — FlashAttention-3, Graph RAG, hybrid
  search, DiskANN, 103 MCP tools, Brain AGI
- ruflo-rag-memory: SOTA upgrade — hybrid search (sparse+dense RRF),
  Graph RAG multi-hop, MMR diversity, adaptive chunking, consolidation
- plugins/README.md: add npm package integration section

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-30 00:02:40 -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
Reuvenandclaude-flow bd280a79b8 refine: expand ruflo-goals agents with full methodology and MCP tool guidance
- goal-planner: GOAP algorithm, OODA loop, 3 execution modes, planning
  principles, MCP tool references for persistence and learning
- deep-researcher: 7-step methodology, evidence grading rubric, research
  principles, memory namespace conventions
- horizon-tracker: session check-in/check-out protocol, 5 drift detection
  categories, milestone lifecycle, memory persistence patterns

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-28 00:03:36 -04:00
Reuvenandclaude-flow c091ea6284 fix: add $ARGUMENTS to goals command for Claude Code plugin convention
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-28 00:01:47 -04:00
Reuvenandclaude-flow 851f3ed4ce feat: add ruflo-goals plugin — GOAP planning, deep research, horizon tracking
4 skills: deep-research, goal-plan, horizon-track, research-synthesize
3 agents: goal-planner, deep-researcher, horizon-tracker
1 command: /goals

Wires memory, task, workflow, neural, agentdb, and intelligence MCP
tools for long-horizon research and adaptive replanning.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-27 23:52:25 -04:00
Reuvenandclaude-flow 0ced9bf85f fix: remove invalid skills/commands/agents arrays from plugin creator template
The create-plugin skill was instructing agents to generate plugin.json
with skills, commands, and agents arrays — these fields cause
claude plugin validate to fail. Claude Code auto-discovers them.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-27 23:46:03 -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