/** * Invariant companion of the plugin: audits every committed refinement * result, so a corrupt record cannot silently poison the refinement history. * The audit rides the plugin's own scoped `harness/refined` emit (which fires * on every commit regardless of whether the optional `harness/refinement` * session event was written), so it works whether or not the running harness * recognizes the plugin's out-of-repo event type. * @module dsh-continual-harness */ import type { Context } from '@deepseek-ai/cordis'; import type { InvariantInstaller } from '@deepseek-ai/dsh-invariants'; /** Cordis companion plugin name. */ export declare const name = "continual-harness-invariant"; /** Service required before the companion can reserve package ownership. */ export declare const inject: string[]; /** * Install the companion: defer a validation check until the commit feed * settles, then fail the invariant when any committed refinement result is * malformed. The scoped `harness/refined` event is emitted by the store on * every commit (session event write or not), so `global: true` listens across * all agents; on-disk state is self-healing (storage.ts degrades corrupt * files to empty), so the live result is the audit target. */ export declare const install: InvariantInstaller; /** * Register the continual-harness invariant companion. * @param ctx - Cordis context carrying the invariant service. * @returns the installed registration's disposer after setup succeeds. */ export declare const apply: (ctx: Context) => Promise<() => void>; //# sourceMappingURL=invariant.d.ts.map