yam-flow 2.5.1 → 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.
- package/CHANGELOG.md +47 -0
- package/COMMANDS.md +57 -1
- package/README.md +28 -2
- package/ROADMAP.md +41 -7
- package/dist/bin/yam.js +567 -7
- package/dist/lib/benchmark-promotion.d.ts +53 -0
- package/dist/lib/benchmark-promotion.js +204 -0
- package/dist/lib/design-production.d.ts +306 -0
- package/dist/lib/design-production.js +1341 -0
- package/dist/lib/external-updates.d.ts +23 -0
- package/dist/lib/external-updates.js +286 -30
- package/dist/lib/gate-result.d.ts +44 -0
- package/dist/lib/gate-result.js +219 -0
- package/dist/lib/media-provider-receipt.d.ts +79 -0
- package/dist/lib/media-provider-receipt.js +498 -0
- package/dist/lib/skill-installation.js +337 -97
- package/dist/lib/trust-kernel.js +17 -1
- package/dist/lib/verification-closure.d.ts +97 -0
- package/dist/lib/verification-closure.js +728 -0
- package/package.json +5 -2
- package/references/ueye.md +14 -0
- package/skills/ueye/SKILL.md +11 -0
- package/src/bin/yam.ts +569 -7
- package/src/lib/benchmark-promotion.ts +249 -0
- package/src/lib/design-production.ts +1441 -0
- package/src/lib/external-updates.ts +331 -28
- package/src/lib/gate-result.ts +223 -0
- package/src/lib/media-provider-receipt.ts +548 -0
- package/src/lib/skill-installation.ts +462 -95
- package/src/lib/trust-kernel.ts +20 -1
- package/src/lib/verification-closure.ts +738 -0
- package/yam.manifest.json +2 -2
package/dist/lib/trust-kernel.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { verifyStrictGateResult } from './gate-result.js';
|
|
1
2
|
export const TRUTH_STATUSES = Object.freeze([
|
|
2
3
|
'verified',
|
|
3
4
|
'proven',
|
|
@@ -1023,7 +1024,22 @@ function missionCompletionCap(value = '') {
|
|
|
1023
1024
|
if (!parsed || typeof parsed !== 'object')
|
|
1024
1025
|
return weakestTruth(weakest, 'blocked');
|
|
1025
1026
|
const gate = buildMissionCompletionGate(parsed);
|
|
1026
|
-
|
|
1027
|
+
const record = parsed;
|
|
1028
|
+
const strictGate = record.gate_result && typeof record.gate_result === 'object'
|
|
1029
|
+
? record.gate_result
|
|
1030
|
+
: null;
|
|
1031
|
+
const reportedContract = record.gate_contract && typeof record.gate_contract === 'object'
|
|
1032
|
+
? record.gate_contract
|
|
1033
|
+
: null;
|
|
1034
|
+
const strictVerification = verifyStrictGateResult(strictGate);
|
|
1035
|
+
const strictReady = Boolean(strictGate
|
|
1036
|
+
&& strictGate.boundary === 'mission'
|
|
1037
|
+
&& strictGate.gate_id === 'mission-completion'
|
|
1038
|
+
&& strictGate.status === 'passed'
|
|
1039
|
+
&& strictVerification.valid
|
|
1040
|
+
&& reportedContract?.valid === true
|
|
1041
|
+
&& reportedContract?.truth_status === 'verified');
|
|
1042
|
+
return weakestTruth(weakest, strictReady ? gate.truth_status : 'blocked');
|
|
1027
1043
|
}, 'proven');
|
|
1028
1044
|
}
|
|
1029
1045
|
function strongestSupportedTruth(rows = []) {
|
|
@@ -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;
|