/** * Tier A storage-contract static checks (ADR-0042). * * The enforceable-now tier of the tool storage contract: a tool package must * not carry schema-mutation capability against the host-owned SQLite store — * no DDL, no migration runners, no direct datastore-file paths, no imports of * the datastore package's private schema/migration modules. Scans the staged * package's OWN source files (not its node_modules) with string patterns; * a guardrail, not the only lock — the stronger guarantee is that the Tool * runtime context never exposes raw schema-mutation capabilities. * * Pattern-family note: the DDL list deliberately mirrors the * `restrict-raw-db-access` fitness check's vocabulary (checks-universal, * `src/checks/architecture/restrict-raw-db-access.ts`). The two lists are kept * from drifting by a parity test (`tools-validate.test.ts`), NOT by a cli → * check-pack production import (which would couple the host to a tool's pack). */ /** One Tier A violation: where, what matched, and which contract clause. */ export interface StorageFinding { /** Path relative to the scanned package dir. */ readonly file: string; /** 1-based line of the first match. */ readonly line: number; readonly matched: string; readonly clause: string; } /** The Tier A pattern families (exported for the drift-parity test). */ export declare const TIER_A_PATTERNS: readonly { readonly pattern: RegExp; readonly clause: string; }[]; /** * Scan one staged package dir for Tier A storage-contract violations. * Returns findings (empty = section passes). Pure file reads; runs no code. */ export declare function runStorageContractChecks(stagedDir: string): readonly StorageFinding[]; //# sourceMappingURL=storage-contract-checks.d.ts.map