claude-flow
Version:
Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration
29 lines (26 loc) • 941 B
text/typescript
/**
* IoT-adapted trust levels for Cognitum Seed devices.
* Mirrors Ruflo agent trust but adds hardware-specific stages.
*/
export enum DeviceTrustLevel {
/** Seen on the network but not paired. */
UNKNOWN = 0,
/** Paired, identity verified via Ed25519. */
REGISTERED = 1,
/** Firmware verified, policies applied, security zone assigned. */
PROVISIONED = 2,
/** Extended uptime, clean witness chain, anomaly-free history. */
CERTIFIED = 3,
/** Fleet-level attestation across multiple devices. */
FLEET_TRUSTED = 4,
}
const LABELS: Record<DeviceTrustLevel, string> = {
[]: 'unknown',
[]: 'registered',
[]: 'provisioned',
[]: 'certified',
[]: 'fleet-trusted',
};
export function getDeviceTrustLabel(level: DeviceTrustLevel): string {
return LABELS[level] ?? 'unknown';
}