/** * 5-View schemas for the qulib Confidence Layer (P3). * * View 1 — Release Confidence: ReleaseConfidenceSchema (defined in confidence.schema.ts). * View 2 — Delivery Traffic: time series of confidence summaries. * View 3 — Inbox: human-judgment items derived from blocking / unknown signals. * View 4 — Replay: provenance chain explaining how a verdict formed. * View 5 — Audit Trail: append-only tamper-evident ledger. * * P3: ships schemas + pure projection functions (buildReplay, deriveInbox, toAuditEntry, * diffConfidence). Persistence sinks (file/db) and accumulation are deferred to P4. * * All records carry tenantId (CLAUDE.md rule 17 — multi-tenant from day one). */ import { z } from 'zod'; export declare const DeliveryTrafficPointSchema: z.ZodObject<{ subjectRef: z.ZodString; tenantId: z.ZodDefault; computedAt: z.ZodString; confidenceScore: z.ZodNullable; verdict: z.ZodEnum<["ship", "caution", "hold", "block"]>; /** Change in confidenceScore vs the previous point (null when no prior exists). */ deltaFromPrev: z.ZodNullable; }, "strip", z.ZodTypeAny, { computedAt: string; verdict: "ship" | "caution" | "hold" | "block"; tenantId: string; confidenceScore: number | null; subjectRef: string; deltaFromPrev: number | null; }, { computedAt: string; verdict: "ship" | "caution" | "hold" | "block"; confidenceScore: number | null; subjectRef: string; deltaFromPrev: number | null; tenantId?: string | undefined; }>; export type DeliveryTrafficPoint = z.infer; export declare const InboxItemKindSchema: z.ZodEnum<["blocker", "unknown-signal", "approval-needed"]>; export type InboxItemKind = z.infer; export declare const InboxItemSchema: z.ZodObject<{ id: z.ZodString; subjectRef: z.ZodString; tenantId: z.ZodDefault; kind: z.ZodEnum<["blocker", "unknown-signal", "approval-needed"]>; source: z.ZodEnum<["live-app-quality", "accessibility", "crawl-coverage", "test-automation", "api-coverage", "ci-results", "deploy-metadata", "error-telemetry", "feature-flags", "doc-health", "human-approval", "agent-evidence", "decision-quality"]>; summary: z.ZodString; raisedAt: z.ZodString; resolvedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; source: "accessibility" | "live-app-quality" | "crawl-coverage" | "test-automation" | "api-coverage" | "ci-results" | "deploy-metadata" | "error-telemetry" | "feature-flags" | "doc-health" | "human-approval" | "agent-evidence" | "decision-quality"; summary: string; kind: "blocker" | "unknown-signal" | "approval-needed"; tenantId: string; subjectRef: string; raisedAt: string; resolvedAt?: string | undefined; }, { id: string; source: "accessibility" | "live-app-quality" | "crawl-coverage" | "test-automation" | "api-coverage" | "ci-results" | "deploy-metadata" | "error-telemetry" | "feature-flags" | "doc-health" | "human-approval" | "agent-evidence" | "decision-quality"; summary: string; kind: "blocker" | "unknown-signal" | "approval-needed"; subjectRef: string; raisedAt: string; tenantId?: string | undefined; resolvedAt?: string | undefined; }>; export type InboxItem = z.infer; export declare const ReplayStepSchema: z.ZodObject<{ source: z.ZodEnum<["live-app-quality", "accessibility", "crawl-coverage", "test-automation", "api-coverage", "ci-results", "deploy-metadata", "error-telemetry", "feature-flags", "doc-health", "human-approval", "agent-evidence", "decision-quality"]>; tool: z.ZodString; inputRef: z.ZodOptional; score: z.ZodNullable; weight: z.ZodNumber; effectiveWeight: z.ZodNumber; durationMs: z.ZodOptional; cost: z.ZodOptional>; }, "strip", z.ZodTypeAny, { source: "accessibility" | "live-app-quality" | "crawl-coverage" | "test-automation" | "api-coverage" | "ci-results" | "deploy-metadata" | "error-telemetry" | "feature-flags" | "doc-health" | "human-approval" | "agent-evidence" | "decision-quality"; score: number | null; weight: number; tool: string; effectiveWeight: number; durationMs?: number | undefined; inputRef?: string | undefined; cost?: { inputTokens: number; outputTokens: number; } | undefined; }, { source: "accessibility" | "live-app-quality" | "crawl-coverage" | "test-automation" | "api-coverage" | "ci-results" | "deploy-metadata" | "error-telemetry" | "feature-flags" | "doc-health" | "human-approval" | "agent-evidence" | "decision-quality"; score: number | null; weight: number; tool: string; effectiveWeight: number; durationMs?: number | undefined; inputRef?: string | undefined; cost?: { inputTokens: number; outputTokens: number; } | undefined; }>; export type ReplayStep = z.infer; export declare const ReplayTraceSchema: z.ZodObject<{ subjectRef: z.ZodString; computedAt: z.ZodString; steps: z.ZodArray; tool: z.ZodString; inputRef: z.ZodOptional; score: z.ZodNullable; weight: z.ZodNumber; effectiveWeight: z.ZodNumber; durationMs: z.ZodOptional; cost: z.ZodOptional>; }, "strip", z.ZodTypeAny, { source: "accessibility" | "live-app-quality" | "crawl-coverage" | "test-automation" | "api-coverage" | "ci-results" | "deploy-metadata" | "error-telemetry" | "feature-flags" | "doc-health" | "human-approval" | "agent-evidence" | "decision-quality"; score: number | null; weight: number; tool: string; effectiveWeight: number; durationMs?: number | undefined; inputRef?: string | undefined; cost?: { inputTokens: number; outputTokens: number; } | undefined; }, { source: "accessibility" | "live-app-quality" | "crawl-coverage" | "test-automation" | "api-coverage" | "ci-results" | "deploy-metadata" | "error-telemetry" | "feature-flags" | "doc-health" | "human-approval" | "agent-evidence" | "decision-quality"; score: number | null; weight: number; tool: string; effectiveWeight: number; durationMs?: number | undefined; inputRef?: string | undefined; cost?: { inputTokens: number; outputTokens: number; } | undefined; }>, "many">; formula: z.ZodString; finalVerdict: z.ZodEnum<["ship", "caution", "hold", "block"]>; }, "strip", z.ZodTypeAny, { steps: { source: "accessibility" | "live-app-quality" | "crawl-coverage" | "test-automation" | "api-coverage" | "ci-results" | "deploy-metadata" | "error-telemetry" | "feature-flags" | "doc-health" | "human-approval" | "agent-evidence" | "decision-quality"; score: number | null; weight: number; tool: string; effectiveWeight: number; durationMs?: number | undefined; inputRef?: string | undefined; cost?: { inputTokens: number; outputTokens: number; } | undefined; }[]; computedAt: string; formula: string; subjectRef: string; finalVerdict: "ship" | "caution" | "hold" | "block"; }, { steps: { source: "accessibility" | "live-app-quality" | "crawl-coverage" | "test-automation" | "api-coverage" | "ci-results" | "deploy-metadata" | "error-telemetry" | "feature-flags" | "doc-health" | "human-approval" | "agent-evidence" | "decision-quality"; score: number | null; weight: number; tool: string; effectiveWeight: number; durationMs?: number | undefined; inputRef?: string | undefined; cost?: { inputTokens: number; outputTokens: number; } | undefined; }[]; computedAt: string; formula: string; subjectRef: string; finalVerdict: "ship" | "caution" | "hold" | "block"; }>; export type ReplayTrace = z.infer; export declare const AuditEntrySchema: z.ZodObject<{ tenantId: z.ZodDefault; subjectRef: z.ZodString; computedAt: z.ZodString; confidenceScore: z.ZodNullable; verdict: z.ZodEnum<["ship", "caution", "hold", "block"]>; evidenceSourceCount: z.ZodNumber; blockers: z.ZodArray; schemaVersion: z.ZodLiteral<1>; /** SHA-256 hex digest over the canonical record — tamper-evident. */ recordHash: z.ZodString; }, "strip", z.ZodTypeAny, { computedAt: string; verdict: "ship" | "caution" | "hold" | "block"; schemaVersion: 1; tenantId: string; confidenceScore: number | null; blockers: string[]; subjectRef: string; evidenceSourceCount: number; recordHash: string; }, { computedAt: string; verdict: "ship" | "caution" | "hold" | "block"; schemaVersion: 1; confidenceScore: number | null; blockers: string[]; subjectRef: string; evidenceSourceCount: number; recordHash: string; tenantId?: string | undefined; }>; export type AuditEntry = z.infer; //# sourceMappingURL=views.schema.d.ts.map