---
name: iot-witness-verify
description: Verify witness chain integrity and detect provenance gaps
allowed-tools: Bash(npx *) mcp__claude-flow__memory_store Read
argument-hint: "<device-id>"
category: system
---
Verify the witness chain integrity for a Cognitum Seed device.

Steps:
1. `npx -y -p @claude-flow/plugin-iot-cognitum@latest cognitum-iot witness verify DEVICE_ID`
2. Check for epoch gaps and hash chain breaks
3. Report integrity score (0.0–1.0)
4. If gaps found, store for audit trail:
   `mcp__claude-flow__memory_store({ key: "iot-witness-gap-DEVICEID", value: "Gap from EPOCH to EPOCH", namespace: "iot-audit" })`
