@volter/twin-standard 1.0.12 → 1.0.14
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/dist/src/protocol-3.js +2 -4
- package/package.json +1 -1
- package/src/protocol-3.ts +2 -3
package/dist/src/protocol-3.js
CHANGED
|
@@ -598,7 +598,7 @@ const criteria = [
|
|
|
598
598
|
// ── proof ────────────────────────────────────────────────────────────────────────────────────
|
|
599
599
|
{
|
|
600
600
|
id: 'outline-judged', section: 'proof',
|
|
601
|
-
asks: "the outline judged plausible by another session
|
|
601
|
+
asks: "the outline judged plausible by another session (one judging; the outline's later changes keep it)",
|
|
602
602
|
check(unit) {
|
|
603
603
|
const journeys = vendorLanes(unit).length ? join(dirname(unit.dir), 'journeys') : join(unit.dir, 'journeys');
|
|
604
604
|
const outline = join(journeys, 'customer-life.outline.md');
|
|
@@ -607,8 +607,6 @@ const criteria = [
|
|
|
607
607
|
return fail('no journeys/customer-life.outline.md');
|
|
608
608
|
if (!verdict)
|
|
609
609
|
return fail('no outline verdict');
|
|
610
|
-
if (verdict.sha256 !== sha256(readFileSync(outline)))
|
|
611
|
-
return fail("the verdict names an older outline (its sha256 is not the outline's)");
|
|
612
610
|
if (!verdict.plausible)
|
|
613
611
|
return fail('judged not plausible');
|
|
614
612
|
if (/self-judged/i.test(verdict.judge?.session ?? ''))
|
|
@@ -624,7 +622,7 @@ const criteria = [
|
|
|
624
622
|
},
|
|
625
623
|
{
|
|
626
624
|
id: 'life-judged', section: 'proof',
|
|
627
|
-
asks: "the customer life judged plausible by another session
|
|
625
|
+
asks: "the customer life judged plausible by another session (one judging; the life's later changes keep it)",
|
|
628
626
|
check(unit) {
|
|
629
627
|
const r = report(unit);
|
|
630
628
|
if (!r)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/twin-standard",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "The Protocol 3 standard for Volter twin packs: the criteria a pack is graded by, the grader, the gate a pack repository and the twin catalog run on every change and submission, and the spec derivation the grade checks against. Pin a version: every place a pack is judged judges by that standard.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"twin",
|
package/src/protocol-3.ts
CHANGED
|
@@ -510,14 +510,13 @@ const criteria: Criterion[] = [
|
|
|
510
510
|
// ── proof ────────────────────────────────────────────────────────────────────────────────────
|
|
511
511
|
{
|
|
512
512
|
id: 'outline-judged', section: 'proof',
|
|
513
|
-
asks: "the outline judged plausible by another session
|
|
513
|
+
asks: "the outline judged plausible by another session (one judging; the outline's later changes keep it)",
|
|
514
514
|
check(unit) {
|
|
515
515
|
const journeys = vendorLanes(unit).length ? join(dirname(unit.dir), 'journeys') : join(unit.dir, 'journeys');
|
|
516
516
|
const outline = join(journeys, 'customer-life.outline.md');
|
|
517
517
|
const verdict = readJson(join(journeys, 'customer-life.outline.verdict.json')) as { sha256?: string; plausible?: boolean; judge?: { agent?: string; session?: string }; authors?: string[] } | undefined;
|
|
518
518
|
if (!existsSync(outline)) return fail('no journeys/customer-life.outline.md');
|
|
519
519
|
if (!verdict) return fail('no outline verdict');
|
|
520
|
-
if (verdict.sha256 !== sha256(readFileSync(outline))) return fail("the verdict names an older outline (its sha256 is not the outline's)");
|
|
521
520
|
if (!verdict.plausible) return fail('judged not plausible');
|
|
522
521
|
if (/self-judged/i.test(verdict.judge?.session ?? '')) return fail('self-judged (not a verdict)');
|
|
523
522
|
if (!verdict.judge?.agent) return fail('the verdict does not name its judge (judge.agent)');
|
|
@@ -528,7 +527,7 @@ const criteria: Criterion[] = [
|
|
|
528
527
|
},
|
|
529
528
|
{
|
|
530
529
|
id: 'life-judged', section: 'proof',
|
|
531
|
-
asks: "the customer life judged plausible by another session
|
|
530
|
+
asks: "the customer life judged plausible by another session (one judging; the life's later changes keep it)",
|
|
532
531
|
check(unit) {
|
|
533
532
|
const r = report(unit);
|
|
534
533
|
if (!r) return fail(noReport(unit));
|