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:
morluto
2026-10-09 23:35:19 +08:00
parent dea3498b2b
commit 3283a45d09
33 changed files with 624 additions and 303 deletions
@@ -59,6 +59,49 @@ export const EMPTY_PROCESS_CAPTURE_EXAMPLE = {
files_after: [],
filesystem_effects: [],
truncated: false,
truncation_details: {
raw_terminal: {
budget_bytes: 1_000_000,
observed_bytes: 0,
retained_bytes: 0,
observed_frames: 0,
retained_frames: 0,
},
rendered_terminal: {
budget_bytes: 1_000_000,
observed_bytes: 0,
retained_bytes: 0,
observed_frames: 0,
retained_frames: 0,
},
filesystem_before: {
files_limit: 10_000,
depth_limit: 16,
enumeration_truncated: false,
enumeration_reasons: [],
hash_budget_bytes: 10_000_000,
hashed_bytes: 0,
hash_omissions: [],
},
filesystem_after: {
files_limit: 10_000,
depth_limit: 16,
enumeration_truncated: false,
enumeration_reasons: [],
hash_budget_bytes: 10_000_000,
hashed_bytes: 0,
hash_omissions: [],
},
process: {
sample_limit: 1_000,
sampling_partial: false,
retained_samples: 0,
sample_limit_reached: false,
sampling_failures: 0,
first_sampling_failure: null,
coverage: "sampled",
},
},
limitations: [],
residual_unknowns: [],
cleanup: {