/** * `forge drift` — Governance drift detection. * * Compares the current governance state of a project against a saved baseline * snapshot and reports what has changed: gate regressions, evidence gaps, * risk increases, SLA degradations, policy changes, and violation spikes. * * Governance drift is NOT generic API schema drift. It tracks changes in the * quality and governance posture of the project — the things that matter for * delivery governance. * * Subcommands: * forge drift Compare current state to latest snapshot * forge drift snapshot Save a new governance snapshot (baseline) * forge drift --json JSON output for agent consumption * forge drift history Show drift over last N snapshots * * Options: * -p, --project Project ID (defaults to .forgeos/config.json) * --baseline Specific baseline snapshot to compare against * --json Machine-readable JSON output * * Exit codes: * 0 — no drift (or snapshot taken successfully) * 1 — error (engine unreachable, project not found, etc.) * 2 — drift detected (useful for CI gate integration) */ import { Command } from "commander"; import { ForgeOSClient } from "../../shared/client.js"; interface DriftItem { category: string; severity: string; field: string; baseline_value: string; current_value: string; description: string; } interface DriftReport { project_id: string; baseline_timestamp: string; current_timestamp: string; has_drift: boolean; worst_severity: string; drift_count: number; summary: Record; items: DriftItem[]; } /** * Render a DriftReport to terminal output. * Exported for testing. */ export declare function renderDriftReport(report: DriftReport, projectName?: string): string; export declare function registerDriftCommands(parent: Command, client: ForgeOSClient): void; export {}; //# sourceMappingURL=drift.d.ts.map