Back to Ruflo

ruflo-iot-cognitum — Operations Reference

plugins/ruflo-iot-cognitum/REFERENCE.md

3.6.303.3 KB
Original Source

ruflo-iot-cognitum — Operations Reference

Companion reference for the agents in this plugin. The agent prompts deliberately stay lean (≤ 60 lines) per ADR-098 Part 2; this file collects the tables and catalogs an agent reads on-demand instead of paying for them in every spawn's context window.

Trust tiers (5 levels)

LevelNameScore rangeCapabilities
0UNKNOWN0.0–0.19Discovery only
1REGISTERED0.2–0.39Status, identity queries
2PROVISIONED0.4–0.59Telemetry ingest, vector store
3CERTIFIED0.6–0.79Mesh participation, firmware deploy
4FLEET_TRUSTED0.8–1.0Full fleet operations, witness signing

Promotion requires the device to meet the lower bound of the next tier across all 6 trust components — a single-component cliff (e.g. firmware fall-behind) demotes by one tier until the deficiency is repaired.

Device coordinator tool catalog

The default endpoint when none is supplied is http://169.254.42.1/ — the Cognitum Seed link-local USB Ethernet address.

bash
# Lifecycle
npx -y -p @claude-flow/plugin-iot-cognitum@latest cognitum-iot register [endpoint]
npx -y -p @claude-flow/plugin-iot-cognitum@latest cognitum-iot pair <device-id>
npx -y -p @claude-flow/plugin-iot-cognitum@latest cognitum-iot unpair <device-id>
npx -y -p @claude-flow/plugin-iot-cognitum@latest cognitum-iot remove <device-id>

# Inspection
npx -y -p @claude-flow/plugin-iot-cognitum@latest cognitum-iot status <device-id>
npx -y -p @claude-flow/plugin-iot-cognitum@latest cognitum-iot list
npx -y -p @claude-flow/plugin-iot-cognitum@latest cognitum-iot mesh <device-id>

# Witness audit
npx -y -p @claude-flow/plugin-iot-cognitum@latest cognitum-iot witness <device-id>
npx -y -p @claude-flow/plugin-iot-cognitum@latest cognitum-iot witness verify <device-id>

Background workers

WorkerIntervalEvent emittedDescription
HealthProbeWorker30siot:device-offlineProbes device status, detects offline
TelemetryIngestWorker60sIngests telemetry vectors
AnomalyScanWorker120siot:anomaly-detectedRuns Z-score anomaly detection
MeshSyncWorker120siot:mesh-partitionDetects mesh topology partitions
FirmwareWatchWorker300siot:firmware-mismatchDetects firmware version changes
WitnessAuditWorker600siot:witness-gapAudits witness chain epoch continuity

Workers are dispatched by the host daemon when ruflo-iot-cognitum is loaded. Verify via ruflo hooks worker list and ruflo hooks worker status.

Trust-score formula breakdown

trustScore =
    0.30 · pairingIntegrity     # mTLS chain valid, expected fingerprint
  + 0.15 · firmwareCurrency     # current firmware vs latest available
  + 0.20 · uptimeStability      # rolling 24h uptime ratio
  + 0.15 · witnessIntegrity     # Ed25519 chain has no gaps
  + 0.10 · anomalyHistory       # 1.0 minus normalized anomaly count
  + 0.10 · meshParticipation    # active edges in the mesh topology

A device that fails its witness verify drops witnessIntegrity to 0 immediately — that single failure caps the device at trust 0.85 (max), forcing demotion from FLEET_TRUSTED.