refactor(captures)!: require canonical producer metadata
Require process retention accounting, browser network transaction identity, and all web comparison dimensions. Remove obsolete omission repairs and derive completeness from the owning producer facts. BREAKING CHANGE: Historical captures without current producer accounting or transaction identity, and web diffs missing accessibility or storage dimensions, are rejected.
This commit is contained in:
@@ -58,13 +58,6 @@ const dimensionSchema = z.union([
|
||||
reason: z.string(),
|
||||
}),
|
||||
]);
|
||||
const legacyUnknownDimension: z.input<typeof dimensionSchema> = {
|
||||
status: "unknown",
|
||||
total_changes: 0,
|
||||
changes: [],
|
||||
reason: "Dimension was not recorded by this version 1 capture diff.",
|
||||
};
|
||||
|
||||
/** Completeness-aware changes across stable browser evidence dimensions. */
|
||||
export const webCaptureDiffSchema = z
|
||||
.object({
|
||||
@@ -78,8 +71,8 @@ export const webCaptureDiffSchema = z
|
||||
network: dimensionSchema,
|
||||
metadata: dimensionSchema,
|
||||
webmcp: dimensionSchema,
|
||||
accessibility: dimensionSchema.default(legacyUnknownDimension),
|
||||
storage: dimensionSchema.default(legacyUnknownDimension),
|
||||
accessibility: dimensionSchema,
|
||||
storage: dimensionSchema,
|
||||
}),
|
||||
limitations: z.array(z.string()),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user