/** * Post-apply diagnostics: a protocol-independent runner that aggregates * independent providers (L2 structural, optional L3 security) over the touched * skills of a committed refinement. Diagnostics only diagnose: they never * roll back, never block an already-produced commit status, never write files, * and never scan untouched entries (spec §1/§2/§4). * @module dsh-continual-harness */ import type { DiagnosticProvider, DiagnosticReport, DiagnosticRequest, SecurityIssue, SkillBundleIssue } from './types.ts'; /** A post-apply diagnostics runner injected into the coordinator hook. */ export interface DiagnosticRunner { run(request: DiagnosticRequest): Promise; } /** Construction options for the aggregating runner. */ export interface DiagnosticRunnerOptions { /** L2 structural provider over touched skills only. */ structural?: DiagnosticProvider; /** Optional L3 security provider; runs only when enableSecurity is true. */ security?: DiagnosticProvider; /** Whether the security provider is enabled for this runner. */ enableSecurity: boolean; } /** * Create the aggregating runner. Enabled providers run with * `Promise.allSettled` so one failure never discards another provider's * findings. Successful findings are preserved, failures become * `{ provider, code, message }` errors, and the report is `partial` when at * least one enabled provider failed or the signal was aborted. With no enabled * provider the report is `disabled` rather than an empty success. */ export declare function createDiagnosticRunner(options: DiagnosticRunnerOptions): DiagnosticRunner; /** * The L2 structural provider (spec §2/§4): pure validation over * `request.entries` and `request.touchedSkillIds` only. For each touched id it * reports an issue when the effective entry is absent, its bundle `files` map * violates the L1 bundle limits, or its content fails the existing L2 skill * checks (via `validateBundleFiles`/`validateSkillBundle`). It never writes * files, never re-reads Store state or the filesystem, and a request with no * touched ids completes with empty findings without any full-store scan. */ export declare const structuralProvider: DiagnosticProvider; //# sourceMappingURL=diagnostics.d.ts.map