Files
rea/src/domain/relationshipCoverage.ts
T
morluto 9c8511409c fix(analysis): preserve relationship coverage across evidence and replay
Separate observed relationship coverage from general provider caveats. Authenticate and replay coverage without changing legacy Evidence IDs; expose unknown and capped relationship sets through CLI/MCP graphs and traces.

Validated focused domain, snapshot, IDA/Ghidra boundary, MCP, schema, package and static checks. Provider fixtures establish contract behavior; licensed engine behavior was not reverified.
2026-10-12 05:57:35 +08:00

17 lines
515 B
TypeScript

import { z } from "zod";
/** Explicit coverage state for a provider's observed caller/callee set. */
export const relationshipCoverageSchema = z.discriminatedUnion("status", [
z.strictObject({ status: z.literal("complete") }),
z.strictObject({
status: z.literal("partial"),
limitations: z.array(z.string().min(1)).min(1),
}),
z.strictObject({
status: z.literal("unknown"),
reason: z.string().min(1),
}),
]);
export type RelationshipCoverage = z.infer<typeof relationshipCoverageSchema>;