build: add canonical product catalog and docs drift checks
Derive package, tool-family, provider, setup-client, schema-version, and CLI facts from the runtime contract sources into a deterministic checked-in catalog. Add non-mutating generated-file checks, exact TypeDoc regenerate-and-compare validation, caller-visible documentation fact checks, and CI enforcement through docs:check. Cover command-router parity, source-derived catalog values, deliberate documentation drift, and stale generated artifacts while preserving runtime behavior.
This commit is contained in:
@@ -76,7 +76,7 @@ const entrySchema = z.object({
|
||||
});
|
||||
|
||||
/** Provider-neutral, deterministic cache of successful immutable analysis calls. */
|
||||
const analysisSnapshotSchema = z.object({
|
||||
export const analysisSnapshotSchema = z.object({
|
||||
snapshot_version: z.literal(1),
|
||||
target: targetSchema,
|
||||
entries: z.array(entrySchema).max(10_000),
|
||||
|
||||
@@ -161,7 +161,8 @@ export const investigationRunSummarySchema = z.object({
|
||||
limitations: z.array(z.string().max(4_096)).max(100),
|
||||
});
|
||||
|
||||
const investigationWorkspaceSchema = z.object({
|
||||
/** Durable schema for one revisioned cross-version investigation workspace. */
|
||||
export const investigationWorkspaceSchema = z.object({
|
||||
workspace_version: z.literal(1),
|
||||
workspace_id: z.string().regex(/^ws_[a-f0-9]{64}$/u),
|
||||
name: z.string().trim().min(1).max(200),
|
||||
|
||||
Reference in New Issue
Block a user