yam-flow 2.6.0 → 2.7.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.
@@ -0,0 +1,97 @@
1
+ export type VerificationScope = 'affected' | 'release';
2
+ export interface SelectedVerificationCommand {
3
+ id: string;
4
+ command: string;
5
+ scope: VerificationScope;
6
+ required: boolean;
7
+ }
8
+ export interface ExecutedVerificationCommand {
9
+ id: string;
10
+ command: string;
11
+ exit_code: number;
12
+ evidence: string;
13
+ }
14
+ export interface VerificationCommandException {
15
+ check_id: string;
16
+ reason: string;
17
+ }
18
+ export interface VerificationClosureReceipt {
19
+ schema: 'yam.verification-closure.v1';
20
+ created_at: string;
21
+ planned_scope: VerificationScope;
22
+ final_scope: VerificationScope;
23
+ scope_derivation: {
24
+ source: 'git_status_porcelain_v1';
25
+ availability: 'observed' | 'unavailable';
26
+ promoted: boolean;
27
+ release_sensitive_files: string[];
28
+ reason: string;
29
+ };
30
+ declared_changed_files: string[];
31
+ scope_observation: {
32
+ command: 'git status --porcelain=v1 -z --untracked-files=all';
33
+ availability: 'observed' | 'unavailable';
34
+ changed_files: string[];
35
+ unplanned_files: string[];
36
+ declared_not_observed: string[];
37
+ reason: string;
38
+ };
39
+ changed_files: string[];
40
+ selected_commands: SelectedVerificationCommand[];
41
+ executed_commands: ExecutedVerificationCommand[];
42
+ skipped: VerificationCommandException[];
43
+ truncated: VerificationCommandException[];
44
+ execution_boundary: {
45
+ command_execution_by_yam: false;
46
+ execution_evidence: 'operator_declared';
47
+ };
48
+ status: 'passed' | 'failed';
49
+ blockers: string[];
50
+ truth_status: 'partial' | 'blocked';
51
+ digest: string;
52
+ }
53
+ export declare function createVerificationClosureReceipt(input: {
54
+ root: string;
55
+ receipt_path: string;
56
+ planned_scope: VerificationScope;
57
+ changed_files: string[];
58
+ selected_commands: SelectedVerificationCommand[];
59
+ executed_commands: ExecutedVerificationCommand[];
60
+ skipped: VerificationCommandException[];
61
+ truncated: VerificationCommandException[];
62
+ }): Promise<{
63
+ schema: "yam.verification-closure-write.v1";
64
+ receipt_path: string;
65
+ receipt: VerificationClosureReceipt;
66
+ truth_status: "blocked" | "partial";
67
+ next_action: string;
68
+ }>;
69
+ export declare function verifyVerificationClosureReceipt(value: unknown): {
70
+ schema: "yam.verification-closure-verification.v1";
71
+ valid: boolean;
72
+ errors: string[];
73
+ receipt_truth_status: unknown;
74
+ truth_status: "verified" | "blocked";
75
+ next_action: string;
76
+ };
77
+ export declare function verifyVerificationClosureReceiptFile(input: {
78
+ root: string;
79
+ receipt_path: string;
80
+ }): Promise<{
81
+ receipt_path: string;
82
+ current_scope: {
83
+ command: "git status --porcelain=v1 -z --untracked-files=all";
84
+ availability: "observed" | "unavailable";
85
+ changed_files: string[];
86
+ unplanned_files: string[];
87
+ declared_not_observed: string[];
88
+ reason: string;
89
+ };
90
+ valid: boolean;
91
+ errors: string[];
92
+ truth_status: "verified" | "blocked";
93
+ next_action: string;
94
+ schema: "yam.verification-closure-verification.v1";
95
+ receipt_truth_status: unknown;
96
+ }>;
97
+ export declare function isReleaseSensitivePath(file: string): boolean;