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 ef87d00b6c darwin-plugins iter 2 — ruflo-iot-cognitum: correct stale source-file count (32→39) 2026-06-26 20:14:12 -04:00
ruv 44153b8aba darwin-plugins iter 1 — ruflo-iot-cognitum: add 'Use when' trigger guidance to iot-anomalies skill (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
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 4046967c03 feat(ruflo-iot-cognitum): v0.2.0 — adopt plugin contract (ADR-0001, federation trust-model parallel, smoke)
Plugin already had 4 agents + 5 skills + /iot with 25 subcommands +
REFERENCE.md + 5 already-compliant kebab-case namespaces (iot-devices,
iot-telemetry, iot-telemetry-anomalies, iot-anomalies, iot-audit). The
contract pieces were missing.

Notable: this plugin's 5-tier device trust model (UNKNOWN → REGISTERED →
PROVISIONED → CERTIFIED → FLEET_TRUSTED) follows the same shape as
ruflo-federation's (UNTRUSTED → VERIFIED → ATTESTED → TRUSTED →
PRIVILEGED) but uses distinct naming for a distinct surface. ADR-0001
makes the parallel explicit.

- ADR-0001 (Proposed) at docs/adrs/0001-iot-cognitum-contract.md
- README adds Compatibility (pin v3.6 + Cognitum Seed hardware + SDK),
  Namespace coordination (5 namespaces, all already-compliant; defers
  to ruflo-agentdb ADR-0001), Trust-model parallel block (federation
  cross-reference noting same shape / distinct naming),
  Verification + Architecture Decisions
- plugin.json bumps 0.1.1 → 0.2.0; keywords add mcp, cognitum-seed,
  5-tier-trust
- scripts/smoke.sh — 12 structural checks: version + keywords, 5 skills
  + 4 agents + command present, /iot command non-empty, 6 background
  workers (HealthProbe/TelemetryIngest/AnomalyScan/MeshSync/FirmwareWatch/
  WitnessAudit), 5 trust tiers (cognitum-specific), 6 anomaly types,
  rollout state machine, v3.6 pin, namespace coordination, federation
  trust-model cross-reference, ADR Proposed, REFERENCE.md non-empty

Verification: bash plugins/ruflo-iot-cognitum/scripts/smoke.sh → 12/12

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-04 20:09:08 -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 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
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
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