/** * audit-floor (CUT A4) — the audit warning-floor gate as a finite, structured * command (migrated from `scripts/audit-floor.ts`). It fails when the * artifact-independent three-pass warning inventory drifts from the pinned * `AUDIT_WARNING_FLOOR`, or when ANY error-severity finding is present. * * The engine (`@czap/audit`'s structure/integrity/surface passes) is INJECTED via * `context.runAuditFloor`, never imported here, so `@czap/command` (and the MCP * server that re-uses it) stays free of the TypeScript-compiler/fast-glob audit * engine. Unlike `plumb`/`check-invariants` (whose scans are pure `node:fs` and * are provisioned in the shared host factory), this gate rides the HEAVY * `@czap/audit` engine — exactly like `audit` — so it is CLI-only and NOT * MCP-exposed: only `@czap/cli` injects `runAuditFloor`, and over MCP the command * degrades to a structured `capabilityUnavailable` failure. * * @module */ import { Schema } from 'effect'; import { type HandledCommand } from '../registry.js'; /** * Structured payload returned by `audit-floor` — ONE Effect Schema is the source * of both {@link AuditFloorPayload} and the descriptor's `outputSchema`. `delta` * is now a modelled nested struct (the validator recurses into it), tighter than * the old bare `{type:'object'}`. */ export declare const AuditFloorPayloadSchema: Schema.Struct<{ readonly ok: Schema.Boolean; /** Number of pinned floor warnings (`AUDIT_WARNING_FLOOR.length`). */ readonly expectedWarnings: Schema.Number; /** Number of `rule@file` warning keys the engine actually surfaced. */ readonly actualWarnings: Schema.Number; /** Error-severity findings across all three passes — any error fails the gate. */ readonly errorCount: Schema.Number; /** Warning-inventory drift against the floor: `added` are new, `removed` are gone. */ readonly delta: Schema.Struct<{ readonly added: Schema.$Array; readonly removed: Schema.$Array; }>; /** The sorted `rule@file` warning inventory the engine surfaced. */ readonly inventory: Schema.$Array; }>; /** Structured payload returned by `audit-floor`. */ export type AuditFloorPayload = Schema.Schema.Type; /** `audit-floor` — run the three-pass engine, diff the warning inventory against the floor; emit a verdict. */ export declare const auditFloorCommand: HandledCommand; //# sourceMappingURL=audit-floor.d.ts.map