@slicedearth/whoisleuth-cli 1.47.4 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/README.md +74 -177
  2. package/SECURITY.md +6 -3
  3. package/bin/whoisleuth.mjs +2 -1
  4. package/cli/archive-inspect.mjs +28 -10
  5. package/cli/arguments.mjs +204 -174
  6. package/cli/artifact-structure.mjs +837 -163
  7. package/cli/artifact-verify.mjs +90 -61
  8. package/cli/bounded-json.mjs +1 -1
  9. package/cli/bulk-checkpoint.mjs +33 -20
  10. package/cli/bulk.mjs +9 -2
  11. package/cli/case-pack.mjs +180 -576
  12. package/cli/ci-report.mjs +6 -1
  13. package/cli/collection-preflight.mjs +2 -2
  14. package/cli/command-catalogue.mjs +12 -3
  15. package/cli/command-reference.mjs +910 -92
  16. package/cli/completion.mjs +504 -226
  17. package/cli/config-profile.mjs +13 -3
  18. package/cli/discover.mjs +7 -1
  19. package/cli/discovery-observation-snapshot.mjs +24 -28
  20. package/cli/discovery-scan-command-runner.mjs +9 -9
  21. package/cli/discovery-scan.mjs +17 -3
  22. package/cli/discovery-snapshot.mjs +15 -7
  23. package/cli/domain-control-monitor.mjs +203 -30
  24. package/cli/domain-control-observations.mjs +15 -21
  25. package/cli/errors.mjs +8 -3
  26. package/cli/evidence-signing.mjs +10 -20
  27. package/cli/external-observation-mapping.mjs +3 -3
  28. package/cli/formatters/json.mjs +20 -32
  29. package/cli/formatters/terminal.mjs +583 -22
  30. package/cli/input.mjs +7 -2
  31. package/cli/interactive-launcher.mjs +226 -0
  32. package/cli/interchange-report.mjs +19 -19
  33. package/cli/investigation-manifest.mjs +1 -1
  34. package/cli/investigation-plan.mjs +167 -16
  35. package/cli/investigation-run.mjs +9 -1
  36. package/cli/lookalike-calibration.mjs +3 -1
  37. package/cli/lookup-brief.mjs +13 -8
  38. package/cli/lookup-browser.mjs +844 -0
  39. package/cli/lookup-command-runner.mjs +94 -31
  40. package/cli/lookup-diff.mjs +2 -2
  41. package/cli/lookup-plan.mjs +1 -0
  42. package/cli/mail-review.mjs +206 -94
  43. package/cli/manual.mjs +5 -5
  44. package/cli/offline-evidence-review.mjs +18 -7
  45. package/cli/open-asset-model-bridge.mjs +1 -1
  46. package/cli/output-file.mjs +70 -14
  47. package/cli/page-compare.mjs +11 -6
  48. package/cli/progress-events.mjs +2 -1
  49. package/cli/progress.mjs +3 -3
  50. package/cli/registry-cohort.mjs +9 -51
  51. package/cli/registry-doctor.mjs +67 -28
  52. package/cli/retained-artifact-diff.mjs +7 -8
  53. package/cli/risk-calibration.mjs +85 -38
  54. package/cli/runner.mjs +189 -75
  55. package/cli/saved-lookup.mjs +424 -57
  56. package/cli/sharing-review.mjs +6 -1
  57. package/cli/source-reliability.mjs +75 -36
  58. package/cli/terminal-presentation.mjs +43 -18
  59. package/docs/cli-reference.md +125 -1708
  60. package/docs/cli.md +86 -254
  61. package/frontend/src/lib/analysis/domain-control-manifest-core.js +3 -145
  62. package/frontend/src/lib/analysis/domain-control-records.js +3 -88
  63. package/lib/availability.mjs +58 -40
  64. package/lib/bounded-contract-normalizers.mjs +2 -4
  65. package/lib/bounded-file.mjs +78 -4
  66. package/lib/bounded-json.mjs +51 -13
  67. package/lib/browser-library-profile.mjs +1 -1
  68. package/lib/classify.mjs +56 -5
  69. package/lib/client-behavior-profile.mjs +1 -1
  70. package/lib/credential-surface-profile.mjs +1 -1
  71. package/lib/cryptographic-assurance.mjs +35 -17
  72. package/lib/ct-query.mjs +3 -3
  73. package/lib/ct-search.mjs +37 -21
  74. package/lib/distributed-operation-budget.mjs +4 -2
  75. package/lib/dns-delegation-health.mjs +9 -6
  76. package/lib/dns-intelligence.mjs +1 -1
  77. package/lib/dnssec-chain-validation.mjs +2 -3
  78. package/lib/dnssec-evidence-validation.mjs +13 -7
  79. package/lib/domain-assurance.mjs +12 -12
  80. package/lib/domain-change-packet.mjs +1 -1
  81. package/lib/domain-control-flight-recorder.mjs +442 -78
  82. package/lib/domain-control-manifest.mjs +314 -59
  83. package/lib/domain-posture-analysis.mjs +5 -2
  84. package/lib/encrypted-dns-contract.mjs +2 -3
  85. package/lib/evidence-export.mjs +518 -36
  86. package/lib/external-intelligence-risk.mjs +26 -10
  87. package/lib/feature-policy.mjs +1 -1
  88. package/lib/homepage-metadata-contract.mjs +290 -0
  89. package/lib/hostname.mjs +1 -1
  90. package/lib/html-signals.mjs +89 -5
  91. package/lib/http-intelligence.mjs +331 -2
  92. package/lib/interchange-fidelity-registry.mjs +28 -26
  93. package/lib/lookup-cache.mjs +6 -4
  94. package/lib/lookup.mjs +25 -2
  95. package/lib/observed-network-context.mjs +1 -1
  96. package/lib/page-fingerprints.mjs +2 -2
  97. package/lib/page-role-profile.mjs +1 -1
  98. package/lib/portable-generator.mjs +8 -0
  99. package/lib/provider-policy-admission.mjs +3 -1
  100. package/lib/rdap-bootstrap.mjs +76 -16
  101. package/lib/rdap-client.mjs +20 -12
  102. package/lib/rdap-normalization.mjs +306 -75
  103. package/lib/rdap-transport.mjs +2 -2
  104. package/lib/rdap-validation.mjs +65 -14
  105. package/lib/rdap.mjs +2 -2
  106. package/lib/registrable-domain.mjs +36 -0
  107. package/lib/registry-insights.mjs +7 -0
  108. package/lib/response-policy.mjs +27 -4
  109. package/lib/risk-calibration-summary.mjs +35 -33
  110. package/lib/risk-scoring.mjs +4 -3
  111. package/lib/safe-fetch.mjs +62 -40
  112. package/lib/security-txt.mjs +1 -1
  113. package/lib/smtp-transport-review.mjs +8 -5
  114. package/lib/sslbl-intelligence.mjs +6 -8
  115. package/lib/static-html-analysis.mjs +301 -4
  116. package/lib/structured-data-identity.mjs +51 -19
  117. package/lib/threat-intelligence-fixtures.mjs +2 -4
  118. package/lib/threat-intelligence-manifests.mjs +2 -7
  119. package/lib/threat-intelligence-runtime.mjs +3 -5
  120. package/lib/threat-intelligence-types.mjs +3 -0
  121. package/lib/threatfox-intelligence.mjs +7 -3
  122. package/lib/tls-intelligence.mjs +4 -4
  123. package/lib/urlhaus-intelligence.mjs +4 -2
  124. package/lib/urlscan-intelligence.mjs +6 -5
  125. package/lib/website-security-posture.mjs +1 -1
  126. package/lib/website-technology.mjs +1 -1
  127. package/lib/whois-authority.mjs +43 -8
  128. package/lib/whois-chain.mjs +25 -3
  129. package/lib/whois-normalization.mjs +3 -1
  130. package/lib/whois-transport.mjs +12 -3
  131. package/lib/zone-intent-review.mjs +1 -1
  132. package/package.json +12 -4
  133. package/{frontend/src/lib/analysis/case-brand-profile-references.js → packages/cases/case-brand-profile-references.mjs} +2 -2
  134. package/{frontend/src/lib/analysis/case-evidence-model.js → packages/cases/case-evidence-model.mjs} +35 -14
  135. package/{frontend/src/lib/analysis/case-investigation-branch-model.js → packages/cases/case-investigation-branch-model.mjs} +10 -12
  136. package/packages/cases/case-migration-model.mjs +476 -0
  137. package/{frontend/src/lib/analysis/case-model.js → packages/cases/case-model.mjs} +3 -3
  138. package/{frontend/src/lib/analysis/case-record-contracts.js → packages/cases/case-record-contracts.mjs} +3 -21
  139. package/{frontend/src/lib/analysis/case-record-core.js → packages/cases/case-record-core.mjs} +58 -31
  140. package/packages/cases/case-record-model.mjs +9 -0
  141. package/{frontend/src/lib/analysis/case-record-operations.js → packages/cases/case-record-operations.mjs} +72 -29
  142. package/{frontend/src/lib/analysis/case-report.js → packages/cases/case-report.mjs} +108 -14
  143. package/packages/cases/case-response-model.mjs +1604 -0
  144. package/packages/cases/case-response-packet.mjs +1312 -0
  145. package/{frontend/src/lib/analysis/case-storage-model.js → packages/cases/case-storage-model.mjs} +2 -2
  146. package/{frontend/src/lib/analysis/http-summary.js → packages/cases/http-summary.mjs} +1 -1
  147. package/{frontend/src/lib/analysis/comparison-ledger-bulk.js → packages/comparison/comparison-ledger-bulk.mjs} +2 -2
  148. package/{frontend/src/lib/analysis/comparison-ledger-contract.js → packages/comparison/comparison-ledger-contract.mjs} +4 -4
  149. package/{frontend/src/lib/analysis/comparison-ledger-json.js → packages/comparison/comparison-ledger-json.mjs} +1 -0
  150. package/{frontend/src/lib/analysis/comparison-ledger-serialization.js → packages/comparison/comparison-ledger-serialization.mjs} +1 -0
  151. package/packages/comparison/favicon-similarity.mjs +78 -0
  152. package/{frontend/src/lib/analysis/page-similarity.js → packages/comparison/page-similarity.mjs} +4 -3
  153. package/{frontend/src/lib/analysis/relationship-evidence.js → packages/comparison/relationship-evidence.mjs} +6 -7
  154. package/packages/contracts/analyst-review-state-contract.mjs +61 -0
  155. package/packages/contracts/analyst-review-state.mjs +50 -0
  156. package/packages/contracts/case-portability.mjs +1310 -0
  157. package/packages/contracts/cli-command-catalogue.mjs +2 -0
  158. package/packages/contracts/cli-lookup.mjs +394 -0
  159. package/packages/contracts/domain-control-flight-recorder.mjs +461 -0
  160. package/packages/contracts/domain-control-manifest.mjs +1027 -0
  161. package/packages/contracts/domain-control-monitor.mjs +310 -0
  162. package/packages/contracts/domain-control-review.mjs +828 -0
  163. package/packages/contracts/domain-name.mjs +4 -0
  164. package/packages/contracts/external-observation-interchange.mjs +224 -0
  165. package/packages/contracts/extracted-domain-lifecycle.mjs +218 -0
  166. package/packages/contracts/investigation-portability.mjs +331 -0
  167. package/packages/contracts/offline-comparison.mjs +160 -0
  168. package/packages/contracts/risk-calibration.mjs +1288 -0
  169. package/packages/contracts/schema-compatibility.mjs +71 -0
  170. package/packages/contracts/schema-lifecycle.mjs +1702 -0
  171. package/packages/contracts/sslbl-snapshot.mjs +17 -0
  172. package/packages/contracts/workspace-portability.mjs +1347 -0
  173. package/{frontend/src/lib/analysis/artifact-integrity.js → packages/evidence/artifact-integrity.mjs} +13 -11
  174. package/packages/evidence/decision-fact.mjs +735 -0
  175. package/packages/evidence/domain-control-runtime.mjs +547 -0
  176. package/packages/evidence/domain-name.mjs +41 -0
  177. package/packages/evidence/observation.mjs +384 -0
  178. package/{frontend/src/lib/analysis/external-findings-import.js → packages/interchange/external-findings-import.mjs} +24 -22
  179. package/packages/interchange/retained-text.mjs +8 -0
  180. package/{frontend/src/lib/analysis/acquisition-decision-packet.js → packages/investigation/acquisition-decision-packet.mjs} +9 -6
  181. package/{frontend/src/lib/analysis/bulk-domain-comparison.js → packages/investigation/bulk-domain-comparison.mjs} +5 -6
  182. package/{frontend/src/lib/analysis/bulk-mail-exposure.js → packages/investigation/bulk-mail-exposure.mjs} +4 -6
  183. package/{frontend/src/lib/analysis/bulk-review-export.js → packages/investigation/bulk-review-export.mjs} +5 -5
  184. package/packages/investigation/bulk-review-policy.mjs +1 -0
  185. package/{frontend/src/lib/analysis/investigation-capsule.js → packages/investigation/investigation-capsule.mjs} +30 -32
  186. package/packages/investigation/lookup-artefact-inputs.mjs +1 -0
  187. package/{frontend/src/lib/analysis/lookup-asset-graph.js → packages/investigation/lookup-asset-graph.mjs} +4 -2
  188. package/{frontend/src/lib/analysis/lookup-claim-passport.js → packages/investigation/lookup-claim-passport.mjs} +6 -10
  189. package/{frontend/src/lib/analysis/lookup-claim-readiness.js → packages/investigation/lookup-claim-readiness.mjs} +9 -2
  190. package/packages/investigation/lookup-investigation-brief.mjs +172 -0
  191. package/packages/monitoring/analyst-review-state.mjs +680 -0
  192. package/{frontend/src/lib/analysis/brand-profile-model.js → packages/workspace/brand-profile-model.mjs} +70 -47
  193. package/{frontend/src/lib/analysis/bulk-review-model.js → packages/workspace/bulk-review-model.mjs} +13 -14
  194. package/{frontend/src/lib/analysis/bulk-session-model.js → packages/workspace/bulk-session-model.mjs} +33 -59
  195. package/{frontend/src/lib/analysis/bulk-sort.js → packages/workspace/bulk-sort.mjs} +8 -5
  196. package/{frontend/src/lib/analysis/campaign-model.js → packages/workspace/campaign-model.mjs} +20 -22
  197. package/{frontend/src/lib/analysis/detection-rule-model.js → packages/workspace/detection-rule-model.mjs} +15 -17
  198. package/packages/workspace/hostile-input.mjs +172 -0
  199. package/{frontend/src/lib/analysis/investigation-guide.js → packages/workspace/investigation-guide.mjs} +8 -45
  200. package/{frontend/src/lib/analysis/investigation-template-model.js → packages/workspace/investigation-template-model.mjs} +18 -21
  201. package/{frontend/src/lib/analysis/page-baseline.js → packages/workspace/page-baseline.mjs} +6 -13
  202. package/{frontend/src/lib/analysis/relationship-observation-model.js → packages/workspace/relationship-observation-model.mjs} +13 -17
  203. package/{frontend/src/lib/analysis/shortlist-model.js → packages/workspace/shortlist-model.mjs} +20 -18
  204. package/{frontend/src/lib/analysis/watchlist-history.js → packages/workspace/watchlist-history.mjs} +9 -16
  205. package/{frontend/src/lib/analysis/watchlist-store.js → packages/workspace/watchlist-store.mjs} +24 -17
  206. package/{frontend/src/lib/analysis/website-snapshot-model.js → packages/workspace/website-snapshot-model.mjs} +13 -13
  207. package/{frontend/src/lib/analysis/workspace-archive-crypto.js → packages/workspace/workspace-archive-crypto.mjs} +49 -19
  208. package/{frontend/src/lib/analysis/workspace-archive.js → packages/workspace/workspace-archive.mjs} +110 -89
  209. package/third-party-notices.txt +14 -14
  210. package/frontend/src/lib/analysis/bulk-retry-plan.js +0 -79
  211. package/frontend/src/lib/analysis/bulk-source-coverage.js +0 -76
  212. package/frontend/src/lib/analysis/case-migration-model.js +0 -305
  213. package/frontend/src/lib/analysis/case-record-model.js +0 -9
  214. package/frontend/src/lib/analysis/case-response-model.js +0 -728
  215. package/frontend/src/lib/analysis/case-response-packet.js +0 -583
  216. package/frontend/src/lib/analysis/lookup-decision-support.js +0 -542
  217. package/frontend/src/lib/analysis/lookup-investigation-brief.js +0 -153
  218. package/frontend/src/lib/analysis/lookup-presentation.js +0 -120
  219. package/frontend/src/lib/analysis/lookup-response.js +0 -2
  220. package/frontend/src/lib/analysis/lookup-source-refresh.js +0 -277
  221. package/frontend/src/lib/analysis/lookup-summary-model.js +0 -398
  222. package/frontend/src/lib/analysis/scoring.js +0 -55
  223. package/frontend/src/lib/analysis/utils.js +0 -255
  224. package/frontend/src/lib/analysis/visualization-bounds.js +0 -26
  225. package/frontend/src/lib/analysis/visualization-force-graph.js +0 -352
  226. package/frontend/src/lib/analysis/visualization-matrix.js +0 -131
  227. package/frontend/src/lib/analysis/visualization-models.js +0 -338
  228. package/frontend/src/lib/analysis/visualization-time-series.js +0 -185
  229. package/lib/bounded-json-response.mjs +0 -170
  230. package/lib/lookup-response-contract.mjs +0 -1034
  231. package/lib/observation.mjs +0 -115
  232. /package/{frontend/src/lib/analysis/opaque-reference-id.js → packages/cases/opaque-reference-id.mjs} +0 -0
  233. /package/{frontend/src/lib/analysis/acquisition-due-diligence.js → packages/investigation/acquisition-due-diligence.mjs} +0 -0
  234. /package/{frontend/src/lib/analysis/evidence-coverage-ledger.js → packages/investigation/evidence-coverage-ledger.mjs} +0 -0
  235. /package/{frontend/src/lib/analysis/dns-record-normalization.js → packages/workspace/dns-record-normalization.mjs} +0 -0
@@ -0,0 +1,461 @@
1
+ import { defineSchemaCompatibility } from "./schema-compatibility.mjs";
2
+ import { defineSchemaLifecycleFamily } from "./schema-lifecycle.mjs";
3
+ import { MAX_DOMAIN_CONTROL_MANIFEST_BYTES, } from "./domain-control-manifest.mjs";
4
+ import { MAX_DOMAIN_CONTROL_MONITOR_CONCURRENCY, MAX_DOMAIN_CONTROL_MONITOR_DOMAINS, MIN_DOMAIN_CONTROL_MONITOR_CONCURRENCY, MIN_DOMAIN_CONTROL_MONITOR_DOMAINS, } from "./domain-control-monitor.mjs";
5
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_SCHEMA = 'whoisleuth.domain-control-flight-recorder.input';
6
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_SCHEMA = 'whoisleuth.domain-control-flight-recorder';
7
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION = 1;
8
+ export const MIN_FLIGHT_RECORDER_OBSERVATIONS = 1;
9
+ export const MAX_FLIGHT_RECORDER_OBSERVATIONS = 200;
10
+ export const MAX_FLIGHT_RECORDER_WINDOWS = 40;
11
+ export const MAX_FLIGHT_RECORDER_FIELDS = 24;
12
+ export const MAX_FLIGHT_RECORDER_VALUES = 32;
13
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_VALUE_INPUT_FACTOR = 2;
14
+ export const MAX_FLIGHT_RECORDER_INPUT_VALUES = MAX_FLIGHT_RECORDER_VALUES
15
+ * DOMAIN_CONTROL_FLIGHT_RECORDER_VALUE_INPUT_FACTOR;
16
+ export const MAX_FLIGHT_RECORDER_SOURCE_LENGTH = 120;
17
+ export const MAX_FLIGHT_RECORDER_VALUE_LENGTH = 500;
18
+ export const MAX_FLIGHT_RECORDER_WINDOW_ID_LENGTH = 64;
19
+ export const MAX_FLIGHT_RECORDER_WINDOW_REASON_LENGTH = 400;
20
+ export const MAX_FLIGHT_RECORDER_JSON_DEPTH = 8;
21
+ export const MAX_FLIGHT_RECORDER_JSON_VALUES = 400_000;
22
+ export const MAX_FLIGHT_RECORDER_EVENTS = MAX_FLIGHT_RECORDER_OBSERVATIONS
23
+ * MAX_FLIGHT_RECORDER_FIELDS;
24
+ export const MAX_DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_BYTES = MAX_DOMAIN_CONTROL_MANIFEST_BYTES;
25
+ export const MAX_DOMAIN_CONTROL_FLIGHT_RECORDER_OUTPUT_BYTES = 32 * 1024 * 1024;
26
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_FIELDS = Object.freeze([
27
+ 'registrar',
28
+ 'registrar_lock',
29
+ 'registry_dnssec',
30
+ 'registry_nameservers',
31
+ 'whois_nameservers',
32
+ 'delegated_nameservers',
33
+ 'delegation_ds',
34
+ 'mail_exchangers',
35
+ 'caa_policy',
36
+ 'tls_certificate',
37
+ 'tls_public_key',
38
+ 'http_origin',
39
+ 'page_identity',
40
+ ]);
41
+ export const MAX_FLIGHT_RECORDER_UNIQUE_FIELDS = DOMAIN_CONTROL_FLIGHT_RECORDER_FIELDS.length;
42
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_KEYS = Object.freeze([
43
+ 'schema',
44
+ 'version',
45
+ 'observations',
46
+ 'approvedWindows',
47
+ ]);
48
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_OBSERVATION_KEYS = Object.freeze([
49
+ 'domain',
50
+ 'observedAt',
51
+ 'collectionDepth',
52
+ 'fields',
53
+ ]);
54
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_FIELD_KEYS = Object.freeze([
55
+ 'id',
56
+ 'source',
57
+ 'state',
58
+ 'values',
59
+ ]);
60
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_WINDOW_KEYS = Object.freeze([
61
+ 'id',
62
+ 'domain',
63
+ 'startsAt',
64
+ 'endsAt',
65
+ 'fields',
66
+ 'reason',
67
+ ]);
68
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_ROOT_KEYS = Object.freeze([
69
+ 'schema',
70
+ 'version',
71
+ 'generatedAt',
72
+ 'domains',
73
+ 'observationCount',
74
+ 'events',
75
+ 'summary',
76
+ 'limitations',
77
+ ]);
78
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_EVENT_KEYS = Object.freeze([
79
+ 'id',
80
+ 'domain',
81
+ 'field',
82
+ 'observedAt',
83
+ 'kind',
84
+ 'state',
85
+ 'before',
86
+ 'after',
87
+ 'source',
88
+ 'approvedWindow',
89
+ 'explanation',
90
+ ]);
91
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_APPROVED_WINDOW_KEYS = Object.freeze([
92
+ 'id',
93
+ 'reason',
94
+ ]);
95
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_SUMMARY_KEYS = Object.freeze([
96
+ 'firstObservations',
97
+ 'observedChanges',
98
+ 'approvedChanges',
99
+ 'unexpectedChanges',
100
+ 'collectionChanges',
101
+ 'recoveredSources',
102
+ ]);
103
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_LIMITATIONS = Object.freeze([
104
+ 'The flight recorder compares only supplied bounded observations and performs no collection or configuration change.',
105
+ 'Source fields remain separate. A collection failure, partial result, unsupported source, or missing field never becomes evidence that a prior value disappeared.',
106
+ 'Approved windows label expected timing but do not delete evidence or establish that a change was authorised, successful, safe, or complete.',
107
+ 'Observed changes can reflect publication lag or different collection conditions and require analyst review.',
108
+ ]);
109
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_COMPATIBILITY = defineSchemaCompatibility({
110
+ id: 'cli.domain-control-flight-recorder-input',
111
+ kind: 'cli_document',
112
+ schema: DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_SCHEMA,
113
+ currentVersion: DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION,
114
+ supportedVersions: [DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION],
115
+ acceptsUnversionedLegacy: false,
116
+ futureVersionBehavior: 'reject',
117
+ migration: 'exact_current_only',
118
+ writeSemantics: 'read_only',
119
+ byteBudget: MAX_DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_BYTES,
120
+ owner: 'packages/contracts/domain-control-flight-recorder.mts',
121
+ note: 'Bounded source-qualified control observations and approved change windows.',
122
+ });
123
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_COMPATIBILITY = defineSchemaCompatibility({
124
+ id: 'cli.domain-control-flight-recorder',
125
+ kind: 'cli_document',
126
+ schema: DOMAIN_CONTROL_FLIGHT_RECORDER_SCHEMA,
127
+ currentVersion: DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION,
128
+ supportedVersions: [DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION],
129
+ acceptsUnversionedLegacy: false,
130
+ futureVersionBehavior: 'reject',
131
+ migration: 'exact_current_only',
132
+ writeSemantics: 'read_only',
133
+ byteBudget: MAX_DOMAIN_CONTROL_FLIGHT_RECORDER_OUTPUT_BYTES,
134
+ owner: 'packages/contracts/domain-control-flight-recorder.mts',
135
+ note: 'Offline first and last observed control history that preserves expected and unexpected changes.',
136
+ });
137
+ export const DOMAIN_CONTROL_FLIGHT_RECORDER_SCHEMA_LIFECYCLE = defineSchemaLifecycleFamily({
138
+ id: 'domain-control-flight-recorder',
139
+ owner: 'packages/contracts/domain-control-flight-recorder.mts',
140
+ privacy: 'analyst_authored_sensitive',
141
+ compatibility: [
142
+ DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_COMPATIBILITY,
143
+ DOMAIN_CONTROL_FLIGHT_RECORDER_COMPATIBILITY,
144
+ ],
145
+ contracts: [
146
+ {
147
+ compatibilityId: DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_COMPATIBILITY.id,
148
+ schema: DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_SCHEMA,
149
+ version: DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION,
150
+ role: 'input',
151
+ lifecycle: 'current',
152
+ readable: true,
153
+ emitted: false,
154
+ exactKeys: true,
155
+ extensionPolicy: 'reject',
156
+ futureVersionBehaviour: 'reject',
157
+ migrationTarget: null,
158
+ canonicalisation: null,
159
+ byteBudget: MAX_DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_BYTES,
160
+ fixtureIds: ['domain-control-flight-recorder-input-v1'],
161
+ },
162
+ {
163
+ compatibilityId: DOMAIN_CONTROL_FLIGHT_RECORDER_COMPATIBILITY.id,
164
+ schema: DOMAIN_CONTROL_FLIGHT_RECORDER_SCHEMA,
165
+ version: DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION,
166
+ role: 'document',
167
+ lifecycle: 'current',
168
+ readable: true,
169
+ emitted: true,
170
+ exactKeys: true,
171
+ extensionPolicy: 'reject',
172
+ futureVersionBehaviour: 'reject',
173
+ migrationTarget: null,
174
+ canonicalisation: null,
175
+ byteBudget: MAX_DOMAIN_CONTROL_FLIGHT_RECORDER_OUTPUT_BYTES,
176
+ fixtureIds: ['domain-control-flight-recorder-v1'],
177
+ },
178
+ ],
179
+ fixtures: [
180
+ {
181
+ id: 'domain-control-flight-recorder-input-v1',
182
+ path: 'test/fixtures/domain-control-flight-recorder-input-v1.json',
183
+ bytes: 1_796,
184
+ sha256: '1fc4127a5885409d2ba76d40c1835a496767c6fe6d87f0545d8367d5f394a628',
185
+ contentDigestSha256: null,
186
+ schema: DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_SCHEMA,
187
+ version: DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION,
188
+ role: 'input',
189
+ expectation: 'normalises_to_current_output',
190
+ expectedOutputFixtureId: 'domain-control-flight-recorder-v1',
191
+ scope: 'repository',
192
+ },
193
+ {
194
+ id: 'domain-control-flight-recorder-v1',
195
+ path: 'test/fixtures/domain-control-flight-recorder-v1.json',
196
+ bytes: 3_691,
197
+ sha256: 'c35d43907bba7a7912f3151bc1a2ba37bb8f774c56a3bd5f690be262e842cf4c',
198
+ contentDigestSha256: null,
199
+ schema: DOMAIN_CONTROL_FLIGHT_RECORDER_SCHEMA,
200
+ version: DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION,
201
+ role: 'current',
202
+ expectation: 'accepted_exact',
203
+ expectedOutputFixtureId: null,
204
+ scope: 'repository',
205
+ },
206
+ ],
207
+ metadata: {
208
+ metadataVersion: 2,
209
+ enforcement: 'declarative_only',
210
+ shapes: [
211
+ {
212
+ id: 'domain-control-flight-recorder.input.v1',
213
+ schema: DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_SCHEMA,
214
+ versions: [DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION],
215
+ objects: [
216
+ { path: '$', requiredKeys: DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_KEYS, optionalKeys: [], unknownKeys: 'reject' },
217
+ { path: '$.observations[]', requiredKeys: DOMAIN_CONTROL_FLIGHT_RECORDER_OBSERVATION_KEYS, optionalKeys: [], unknownKeys: 'reject' },
218
+ { path: '$.observations[].fields[]', requiredKeys: DOMAIN_CONTROL_FLIGHT_RECORDER_FIELD_KEYS, optionalKeys: [], unknownKeys: 'reject' },
219
+ { path: '$.approvedWindows[]', requiredKeys: DOMAIN_CONTROL_FLIGHT_RECORDER_WINDOW_KEYS, optionalKeys: [], unknownKeys: 'reject' },
220
+ ],
221
+ fixedArrays: [],
222
+ normalisation: 'input_to_current',
223
+ target: { schema: DOMAIN_CONTROL_FLIGHT_RECORDER_SCHEMA, version: DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION },
224
+ },
225
+ {
226
+ id: 'domain-control-flight-recorder.document.v1',
227
+ schema: DOMAIN_CONTROL_FLIGHT_RECORDER_SCHEMA,
228
+ versions: [DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION],
229
+ objects: [
230
+ { path: '$', requiredKeys: DOMAIN_CONTROL_FLIGHT_RECORDER_ROOT_KEYS, optionalKeys: [], unknownKeys: 'reject' },
231
+ { path: '$.events[]', requiredKeys: DOMAIN_CONTROL_FLIGHT_RECORDER_EVENT_KEYS, optionalKeys: [], unknownKeys: 'reject' },
232
+ { path: '$.events[].approvedWindow', requiredKeys: DOMAIN_CONTROL_FLIGHT_RECORDER_APPROVED_WINDOW_KEYS, optionalKeys: [], unknownKeys: 'reject' },
233
+ { path: '$.summary', requiredKeys: DOMAIN_CONTROL_FLIGHT_RECORDER_SUMMARY_KEYS, optionalKeys: [], unknownKeys: 'reject' },
234
+ ],
235
+ fixedArrays: [{ path: '$.limitations', values: DOMAIN_CONTROL_FLIGHT_RECORDER_LIMITATIONS }],
236
+ normalisation: 'preserve_document',
237
+ target: null,
238
+ },
239
+ ],
240
+ boundProfiles: [
241
+ {
242
+ id: 'domain-control-flight-recorder.input-wire.v1',
243
+ bounds: [
244
+ { id: 'serialised-bytes', path: '$', phase: 'serialised', unit: 'bytes', minimum: 1, maximum: MAX_DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_BYTES, handling: 'reject' },
245
+ { id: 'json-depth', path: '$', phase: 'pre_accumulation', unit: 'depth', minimum: 0, maximum: MAX_FLIGHT_RECORDER_JSON_DEPTH, handling: 'reject' },
246
+ { id: 'json-values', path: '$', phase: 'pre_accumulation', unit: 'values', minimum: 1, maximum: MAX_FLIGHT_RECORDER_JSON_VALUES, handling: 'reject' },
247
+ { id: 'observations', path: '$.observations', phase: 'pre_accumulation', unit: 'items', minimum: MIN_FLIGHT_RECORDER_OBSERVATIONS, maximum: MAX_FLIGHT_RECORDER_OBSERVATIONS, handling: 'reject' },
248
+ { id: 'observation-fields', path: '$.observations[].fields', phase: 'pre_accumulation', unit: 'items', minimum: 0, maximum: MAX_FLIGHT_RECORDER_FIELDS, handling: 'reject' },
249
+ { id: 'observation-unique-fields', path: '$.observations[].fields', phase: 'normalised', unit: 'items', minimum: 0, maximum: MAX_FLIGHT_RECORDER_UNIQUE_FIELDS, handling: 'reject' },
250
+ { id: 'field-input-values', path: '$.observations[].fields[].values', phase: 'pre_accumulation', unit: 'items', minimum: 0, maximum: MAX_FLIGHT_RECORDER_INPUT_VALUES, handling: 'reject' },
251
+ { id: 'field-values', path: '$.observations[].fields[].values', phase: 'normalised', unit: 'items', minimum: 0, maximum: MAX_FLIGHT_RECORDER_VALUES, handling: 'truncate' },
252
+ { id: 'field-source', path: '$.observations[].fields[].source', phase: 'pre_accumulation', unit: 'characters', minimum: 1, maximum: MAX_FLIGHT_RECORDER_SOURCE_LENGTH, handling: 'reject' },
253
+ { id: 'field-value-text', path: '$.observations[].fields[].values[]', phase: 'pre_accumulation', unit: 'characters', minimum: 1, maximum: MAX_FLIGHT_RECORDER_VALUE_LENGTH, handling: 'reject' },
254
+ { id: 'approved-windows', path: '$.approvedWindows', phase: 'pre_accumulation', unit: 'items', minimum: 0, maximum: MAX_FLIGHT_RECORDER_WINDOWS, handling: 'reject' },
255
+ { id: 'window-fields', path: '$.approvedWindows[].fields', phase: 'pre_accumulation', unit: 'items', minimum: 1, maximum: MAX_FLIGHT_RECORDER_FIELDS, handling: 'reject' },
256
+ { id: 'window-id', path: '$.approvedWindows[].id', phase: 'pre_accumulation', unit: 'characters', minimum: 1, maximum: MAX_FLIGHT_RECORDER_WINDOW_ID_LENGTH, handling: 'reject' },
257
+ { id: 'window-reason', path: '$.approvedWindows[].reason', phase: 'pre_accumulation', unit: 'characters', minimum: 1, maximum: MAX_FLIGHT_RECORDER_WINDOW_REASON_LENGTH, handling: 'reject' },
258
+ ],
259
+ },
260
+ {
261
+ id: 'domain-control-flight-recorder.output-wire.v1',
262
+ bounds: [
263
+ { id: 'serialised-bytes', path: '$', phase: 'serialised', unit: 'bytes', minimum: 1, maximum: MAX_DOMAIN_CONTROL_FLIGHT_RECORDER_OUTPUT_BYTES, handling: 'reject' },
264
+ { id: 'json-depth', path: '$', phase: 'pre_accumulation', unit: 'depth', minimum: 0, maximum: MAX_FLIGHT_RECORDER_JSON_DEPTH, handling: 'reject' },
265
+ { id: 'json-values', path: '$', phase: 'pre_accumulation', unit: 'values', minimum: 1, maximum: MAX_FLIGHT_RECORDER_JSON_VALUES, handling: 'reject' },
266
+ { id: 'domains', path: '$.domains', phase: 'normalised', unit: 'items', minimum: 1, maximum: MAX_FLIGHT_RECORDER_OBSERVATIONS, handling: 'reject' },
267
+ { id: 'events', path: '$.events', phase: 'normalised', unit: 'items', minimum: 0, maximum: MAX_FLIGHT_RECORDER_EVENTS, handling: 'reject' },
268
+ { id: 'event-before-values', path: '$.events[].before', phase: 'normalised', unit: 'items', minimum: 0, maximum: MAX_FLIGHT_RECORDER_VALUES, handling: 'reject' },
269
+ { id: 'event-after-values', path: '$.events[].after', phase: 'normalised', unit: 'items', minimum: 0, maximum: MAX_FLIGHT_RECORDER_VALUES, handling: 'reject' },
270
+ ],
271
+ },
272
+ {
273
+ id: 'domain-control-flight-recorder.cli-command.v1',
274
+ bounds: [
275
+ { id: 'raw-input-bytes', path: '$', phase: 'raw_intake', unit: 'bytes', minimum: 1, maximum: MAX_DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_BYTES, handling: 'reject' },
276
+ ],
277
+ },
278
+ {
279
+ id: 'domain-control-flight-recorder.monitor-action.v1',
280
+ bounds: [
281
+ { id: 'limit', path: '$.options.limit', phase: 'action', unit: 'entries', minimum: MIN_DOMAIN_CONTROL_MONITOR_DOMAINS, maximum: MAX_DOMAIN_CONTROL_MONITOR_DOMAINS, handling: 'reject' },
282
+ { id: 'concurrency', path: '$.options.concurrency', phase: 'action', unit: 'concurrency', minimum: MIN_DOMAIN_CONTROL_MONITOR_CONCURRENCY, maximum: MAX_DOMAIN_CONTROL_MONITOR_CONCURRENCY, handling: 'reject' },
283
+ ],
284
+ },
285
+ ],
286
+ hooks: [
287
+ { id: 'domain-control-flight-recorder.node.build', role: 'reviewer', runtime: 'node', module: 'lib/domain-control-flight-recorder.mts', exportName: 'buildDomainControlFlightRecorder' },
288
+ { id: 'domain-control-flight-recorder.node.validate-document', role: 'structure_validator', runtime: 'node', module: 'lib/domain-control-flight-recorder.mts', exportName: 'validateDomainControlFlightRecorderDocument' },
289
+ { id: 'domain-control-flight-recorder.node.format-terminal', role: 'serialiser', runtime: 'node', module: 'lib/domain-control-flight-recorder.mts', exportName: 'formatDomainControlFlightRecorder' },
290
+ { id: 'domain-control-flight-recorder.node.serialise-json', role: 'serialiser', runtime: 'node', module: 'lib/domain-control-flight-recorder.mts', exportName: 'serializeDomainControlFlightRecorder' },
291
+ { id: 'domain-control-flight-recorder.cli.monitor', role: 'monitor', runtime: 'cli', module: 'cli/domain-control-monitor.mts', exportName: 'runDomainControlMonitor' },
292
+ ],
293
+ serialisationProfiles: [
294
+ {
295
+ id: 'domain-control-flight-recorder.json.v1',
296
+ schema: DOMAIN_CONTROL_FLIGHT_RECORDER_SCHEMA,
297
+ versions: [DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION],
298
+ mediaType: 'application/json',
299
+ encoding: 'utf-8',
300
+ bom: false,
301
+ indentSpaces: 2,
302
+ terminalLf: true,
303
+ propertyOrder: 'normalised_fixed',
304
+ canonicalisation: null,
305
+ integrity: 'none',
306
+ serializerHookId: 'domain-control-flight-recorder.node.serialise-json',
307
+ verifierHookIds: [],
308
+ },
309
+ ],
310
+ privacyProfiles: [
311
+ {
312
+ id: 'domain-control-flight-recorder.sensitive.v1',
313
+ classification: 'analyst_authored_sensitive',
314
+ projection: 'review_output',
315
+ includedCategories: ['domain-identifiers', 'observed-control-values', 'observation-provenance', 'observation-times', 'approved-change-windows', 'analyst-authored-window-reasons', 'change-history'],
316
+ excludedCategories: ['raw-upstream-payloads', 'contacts', 'credentials', 'cookies', 'sessions'],
317
+ notePolicy: 'allowed_bounded',
318
+ retention: 'transient_report',
319
+ network: 'none',
320
+ sharingReview: 'not_applicable',
321
+ },
322
+ {
323
+ id: 'domain-control-flight-recorder.sensitive-output.v1',
324
+ classification: 'analyst_authored_sensitive',
325
+ projection: 'review_output',
326
+ includedCategories: ['domain-identifiers', 'observed-control-values', 'observation-provenance', 'observation-times', 'approved-change-windows', 'analyst-authored-window-reasons', 'change-history'],
327
+ excludedCategories: ['raw-upstream-payloads', 'contacts', 'credentials', 'cookies', 'sessions'],
328
+ notePolicy: 'allowed_bounded',
329
+ retention: 'operator_controlled_output',
330
+ network: 'none',
331
+ sharingReview: 'required',
332
+ },
333
+ {
334
+ id: 'domain-control-flight-recorder.monitor-output.v1',
335
+ classification: 'analyst_authored_sensitive',
336
+ projection: 'bounded_passive_monitor',
337
+ includedCategories: ['domain-identifiers', 'observed-control-values', 'observation-provenance', 'observation-times', 'approved-change-windows', 'analyst-authored-window-reasons', 'change-history', 'request-metadata', 'bounded-errors'],
338
+ excludedCategories: ['raw-upstream-payloads', 'contacts', 'credentials', 'cookies', 'sessions'],
339
+ notePolicy: 'allowed_bounded',
340
+ retention: 'operator_controlled_output',
341
+ network: 'explicit_bounded_passive_deep',
342
+ sharingReview: 'required',
343
+ },
344
+ ],
345
+ expiryProfiles: [
346
+ {
347
+ id: 'domain-control-flight-recorder.expiry-not-applicable.v1',
348
+ field: null,
349
+ anchor: null,
350
+ handling: 'not_applicable',
351
+ phase: 'not_applicable',
352
+ maximumLifetimeDays: null,
353
+ },
354
+ ],
355
+ consumerEdges: [
356
+ {
357
+ id: 'domain-control-flight-recorder.node-build',
358
+ plane: 'node',
359
+ operation: 'review',
360
+ acceptedContracts: [{ schema: DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_SCHEMA, versions: [DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION], mode: 'direct' }],
361
+ emittedContract: { schema: DOMAIN_CONTROL_FLIGHT_RECORDER_SCHEMA, version: DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION },
362
+ shapeIds: ['domain-control-flight-recorder.input.v1', 'domain-control-flight-recorder.document.v1'],
363
+ boundProfileIds: ['domain-control-flight-recorder.input-wire.v1', 'domain-control-flight-recorder.output-wire.v1'],
364
+ hookIds: ['domain-control-flight-recorder.node.build'],
365
+ serialisationProfileId: null,
366
+ privacyProfileId: 'domain-control-flight-recorder.sensitive.v1',
367
+ expiryPolicyId: 'domain-control-flight-recorder.expiry-not-applicable.v1',
368
+ requestMode: 'none',
369
+ retentionEffect: 'transient_report',
370
+ bindingState: 'declared_unenforced',
371
+ policyState: 'current',
372
+ },
373
+ {
374
+ id: 'domain-control-flight-recorder.cli-json-stdout',
375
+ plane: 'cli',
376
+ operation: 'review-json-stdout',
377
+ acceptedContracts: [{ schema: DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_SCHEMA, versions: [DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION], mode: 'direct' }],
378
+ emittedContract: { schema: DOMAIN_CONTROL_FLIGHT_RECORDER_SCHEMA, version: DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION },
379
+ shapeIds: ['domain-control-flight-recorder.input.v1', 'domain-control-flight-recorder.document.v1'],
380
+ boundProfileIds: ['domain-control-flight-recorder.input-wire.v1', 'domain-control-flight-recorder.output-wire.v1', 'domain-control-flight-recorder.cli-command.v1'],
381
+ hookIds: ['domain-control-flight-recorder.node.build', 'domain-control-flight-recorder.node.serialise-json'],
382
+ serialisationProfileId: 'domain-control-flight-recorder.json.v1',
383
+ privacyProfileId: 'domain-control-flight-recorder.sensitive.v1',
384
+ expiryPolicyId: 'domain-control-flight-recorder.expiry-not-applicable.v1',
385
+ requestMode: 'none',
386
+ retentionEffect: 'transient_report',
387
+ bindingState: 'declared_unenforced',
388
+ policyState: 'current',
389
+ },
390
+ {
391
+ id: 'domain-control-flight-recorder.cli-terminal-stdout',
392
+ plane: 'cli',
393
+ operation: 'review-terminal-stdout',
394
+ acceptedContracts: [{ schema: DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_SCHEMA, versions: [DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION], mode: 'direct' }],
395
+ emittedContract: { schema: DOMAIN_CONTROL_FLIGHT_RECORDER_SCHEMA, version: DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION },
396
+ shapeIds: ['domain-control-flight-recorder.input.v1', 'domain-control-flight-recorder.document.v1'],
397
+ boundProfileIds: ['domain-control-flight-recorder.input-wire.v1', 'domain-control-flight-recorder.output-wire.v1', 'domain-control-flight-recorder.cli-command.v1'],
398
+ hookIds: ['domain-control-flight-recorder.node.build', 'domain-control-flight-recorder.node.format-terminal'],
399
+ serialisationProfileId: null,
400
+ privacyProfileId: 'domain-control-flight-recorder.sensitive.v1',
401
+ expiryPolicyId: 'domain-control-flight-recorder.expiry-not-applicable.v1',
402
+ requestMode: 'none',
403
+ retentionEffect: 'transient_report',
404
+ bindingState: 'declared_unenforced',
405
+ policyState: 'current',
406
+ },
407
+ {
408
+ id: 'domain-control-flight-recorder.cli-json-file',
409
+ plane: 'cli',
410
+ operation: 'review-json-file',
411
+ acceptedContracts: [{ schema: DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_SCHEMA, versions: [DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION], mode: 'direct' }],
412
+ emittedContract: { schema: DOMAIN_CONTROL_FLIGHT_RECORDER_SCHEMA, version: DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION },
413
+ shapeIds: ['domain-control-flight-recorder.input.v1', 'domain-control-flight-recorder.document.v1'],
414
+ boundProfileIds: ['domain-control-flight-recorder.input-wire.v1', 'domain-control-flight-recorder.output-wire.v1', 'domain-control-flight-recorder.cli-command.v1'],
415
+ hookIds: ['domain-control-flight-recorder.node.build', 'domain-control-flight-recorder.node.serialise-json'],
416
+ serialisationProfileId: 'domain-control-flight-recorder.json.v1',
417
+ privacyProfileId: 'domain-control-flight-recorder.sensitive-output.v1',
418
+ expiryPolicyId: 'domain-control-flight-recorder.expiry-not-applicable.v1',
419
+ requestMode: 'none',
420
+ retentionEffect: 'operator_controlled_output',
421
+ bindingState: 'declared_unenforced',
422
+ policyState: 'current',
423
+ },
424
+ {
425
+ id: 'domain-control-flight-recorder.cli-terminal-file',
426
+ plane: 'cli',
427
+ operation: 'review-terminal-file',
428
+ acceptedContracts: [{ schema: DOMAIN_CONTROL_FLIGHT_RECORDER_INPUT_SCHEMA, versions: [DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION], mode: 'direct' }],
429
+ emittedContract: { schema: DOMAIN_CONTROL_FLIGHT_RECORDER_SCHEMA, version: DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION },
430
+ shapeIds: ['domain-control-flight-recorder.input.v1', 'domain-control-flight-recorder.document.v1'],
431
+ boundProfileIds: ['domain-control-flight-recorder.input-wire.v1', 'domain-control-flight-recorder.output-wire.v1', 'domain-control-flight-recorder.cli-command.v1'],
432
+ hookIds: ['domain-control-flight-recorder.node.build', 'domain-control-flight-recorder.node.format-terminal'],
433
+ serialisationProfileId: null,
434
+ privacyProfileId: 'domain-control-flight-recorder.sensitive-output.v1',
435
+ expiryPolicyId: 'domain-control-flight-recorder.expiry-not-applicable.v1',
436
+ requestMode: 'none',
437
+ retentionEffect: 'operator_controlled_output',
438
+ bindingState: 'declared_unenforced',
439
+ policyState: 'current',
440
+ },
441
+ {
442
+ id: 'domain-control-flight-recorder.cli-monitor-embedding',
443
+ plane: 'cli',
444
+ operation: 'embed-after-current-manifest-bounded-passive-monitor',
445
+ acceptedContracts: [],
446
+ emittedContract: { schema: DOMAIN_CONTROL_FLIGHT_RECORDER_SCHEMA, version: DOMAIN_CONTROL_FLIGHT_RECORDER_VERSION },
447
+ shapeIds: ['domain-control-flight-recorder.document.v1'],
448
+ boundProfileIds: ['domain-control-flight-recorder.output-wire.v1', 'domain-control-flight-recorder.monitor-action.v1'],
449
+ hookIds: ['domain-control-flight-recorder.node.validate-document', 'domain-control-flight-recorder.cli.monitor'],
450
+ serialisationProfileId: null,
451
+ privacyProfileId: 'domain-control-flight-recorder.monitor-output.v1',
452
+ expiryPolicyId: 'domain-control-flight-recorder.expiry-not-applicable.v1',
453
+ requestMode: 'explicit_bounded_passive_deep',
454
+ retentionEffect: 'operator_controlled_output',
455
+ bindingState: 'declared_unenforced',
456
+ policyState: 'current',
457
+ },
458
+ ],
459
+ consumerRelationships: [],
460
+ },
461
+ });