aiwg
Version:
Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo
42 lines • 1.31 kB
TypeScript
/**
* Drift audit — type definitions.
*
* @implements #1208
* @see .aiwg/architecture/adr-rlm-index-features-impl-plan.md
*/
export interface DriftThresholds {
/** Keyword-overlap ratio below which two summaries are considered to have drifted. */
keywordOverlapMin: number;
/** Any disappeared/added declared symbol counts as drift. */
symbolChangeCritical: boolean;
/** Maximum age in days before an entry is flagged stale even when content unchanged. */
freshnessMaxDays: number;
}
export declare const DEFAULT_THRESHOLDS: DriftThresholds;
export type DriftStatus = 'ok' | 'drift' | 'stale-age' | 'skip';
export interface DriftRow {
artifactId: string;
status: DriftStatus;
reason: string;
storedHash: string | null;
currentHash: string | null;
ageDays: number | null;
/** When status === 'drift', a one-line remediation pointer. */
remediation?: string;
/** Diffs surfaced to the operator when drift detected. */
symbolDelta?: {
added: string[];
removed: string[];
};
overlap?: number;
}
export interface AuditReport {
total: number;
ok: number;
drift: number;
staleAge: number;
skipped: number;
thresholds: DriftThresholds;
rows: DriftRow[];
}
//# sourceMappingURL=types.d.ts.map