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/src/lib/trust-kernel.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { verifyStrictGateResult } from './gate-result.js';
|
|
2
|
+
|
|
1
3
|
export const TRUTH_STATUSES = Object.freeze([
|
|
2
4
|
'verified',
|
|
3
5
|
'proven',
|
|
@@ -1395,7 +1397,24 @@ function missionCompletionCap(value: unknown = ''): TruthStatus {
|
|
|
1395
1397
|
const parsed = parseStructuredValue(item);
|
|
1396
1398
|
if (!parsed || typeof parsed !== 'object') return weakestTruth(weakest, 'blocked');
|
|
1397
1399
|
const gate = buildMissionCompletionGate(parsed as Record<string, unknown>);
|
|
1398
|
-
|
|
1400
|
+
const record = parsed as Record<string, unknown>;
|
|
1401
|
+
const strictGate = record.gate_result && typeof record.gate_result === 'object'
|
|
1402
|
+
? record.gate_result as Record<string, unknown>
|
|
1403
|
+
: null;
|
|
1404
|
+
const reportedContract = record.gate_contract && typeof record.gate_contract === 'object'
|
|
1405
|
+
? record.gate_contract as Record<string, unknown>
|
|
1406
|
+
: null;
|
|
1407
|
+
const strictVerification = verifyStrictGateResult(strictGate);
|
|
1408
|
+
const strictReady = Boolean(
|
|
1409
|
+
strictGate
|
|
1410
|
+
&& strictGate.boundary === 'mission'
|
|
1411
|
+
&& strictGate.gate_id === 'mission-completion'
|
|
1412
|
+
&& strictGate.status === 'passed'
|
|
1413
|
+
&& strictVerification.valid
|
|
1414
|
+
&& reportedContract?.valid === true
|
|
1415
|
+
&& reportedContract?.truth_status === 'verified'
|
|
1416
|
+
);
|
|
1417
|
+
return weakestTruth(weakest, strictReady ? gate.truth_status : 'blocked');
|
|
1399
1418
|
}, 'proven');
|
|
1400
1419
|
}
|
|
1401
1420
|
|