Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

723 B
Raw Blame
import type { DeviceTrustLevel } from '../entities/index.js';
import type { DeviceTrustScore } from '../entities/index.js';

export interface TrustHistoryEntry {
  deviceId: string;
  timestamp: Date;
  oldLevel: DeviceTrustLevel;
  newLevel: DeviceTrustLevel;
  score: DeviceTrustScore;
  /** What caused the change: 'registration', 'pair', 'unpair', 'refresh', 'probe'. */
  trigger: string;
}

export interface TrustHistoryRepository {
  append(entry: TrustHistoryEntry): Promise<void>;
  findByDevice(deviceId: string, limit?: number): Promise<TrustHistoryEntry[]>;
  findByLevel(level: DeviceTrustLevel): Promise<TrustHistoryEntry[]>;
  deleteByDevice(deviceId: string): Promise<number>;
  count(): Promise<number>;
}