1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Contract kinds — declare which validation rules apply to a YAML file.
use ;
/// The kind of contract artifact. Determines which validation rules apply.
///
/// - `Kernel` (default): a mathematical kernel contract — the provability
/// invariant applies (must have `proof_obligations`, `falsification_tests`,
/// `kani_harnesses`).
/// - `Registry`: a data registry (lookup tables, enum definitions, config
/// bounds) — exempt from provability, validated for `metadata` + entries.
/// - `ModelFamily`: architecture metadata (`HuggingFace` family descriptors,
/// size variants, vendor) — exempt from provability, validated for
/// `metadata` fields. Custom top-level fields are preserved but not
/// enforced by the kernel schema.
/// - `Pattern`: a cross-cutting verification pattern (threading safety,
/// async safety, compute parity) that applies across multiple kernels.
/// Exempt from the kernel provability invariant but still validated for
/// metadata and any proof/falsification data present.
/// - `Schema`: a generic reference/schema document — exempt from provability,
/// validated only for `metadata.id`, `metadata.version`, `metadata.description`,
/// and `metadata.references`.