@nervur.org/floor 0.37.10 → 0.37.11
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/design.js +2 -2
- package/evidence.js +243 -425
- package/index.js +8 -8
- package/package.json +1 -1
- package/types/faculties/repo/kit.d.ts +2 -0
- package/types/faculties/repo/scanning.d.ts +1 -1
- package/types/faculties/repos/kit.d.ts +1 -0
package/evidence.js
CHANGED
|
@@ -1286,6 +1286,10 @@ var end = (run, code, out = "", err = "") => ({
|
|
|
1286
1286
|
err
|
|
1287
1287
|
});
|
|
1288
1288
|
var job = (run, kind, asker, folder2, code = null) => ({ job: run, kind, asker, folder: folder2, ended: code === null ? null : { code } });
|
|
1289
|
+
var ends = (asker, ...runs) => [
|
|
1290
|
+
{ key: ["ended", asker], value: { first: 0, next: runs.length } },
|
|
1291
|
+
...runs.map((run, n) => ({ key: ["ended", asker, String(n)], value: run }))
|
|
1292
|
+
];
|
|
1289
1293
|
var told = (asker, run, kind, code = 0, out = "", err = "") => ({
|
|
1290
1294
|
placeholder: asker,
|
|
1291
1295
|
method: "done",
|
|
@@ -1385,13 +1389,12 @@ var RESTARTED = [
|
|
|
1385
1389
|
folder(SPEC, true, "run-4"),
|
|
1386
1390
|
[
|
|
1387
1391
|
{ key: ["by", GENOME, "run-2"], value: null },
|
|
1388
|
-
{ key: ["by", GENOME, "run-3"], value: null },
|
|
1389
1392
|
{ key: ["by", SPEC, "run-1"], value: null },
|
|
1390
1393
|
{ key: ["by", SPEC, "run-4"], value: null },
|
|
1391
1394
|
{ key: ["job", "run-1"], value: job("run-1", "run", SPEC, "spec", -1) },
|
|
1392
1395
|
{ key: ["job", "run-2"], value: job("run-2", "status", GENOME, "genome") },
|
|
1393
|
-
{ key: ["job", "run-3"], value: job("run-3", "clear", GENOME, "genome", -1) },
|
|
1394
1396
|
{ key: ["job", "run-4"], value: job("run-4", "status", SPEC, "spec") },
|
|
1397
|
+
...ends(SPEC, "run-1"),
|
|
1395
1398
|
lastOf(SPEC, "run-1", "run", -1, "", LOST)
|
|
1396
1399
|
],
|
|
1397
1400
|
folder(GENOME, true, "run-2")
|
|
@@ -1427,6 +1430,7 @@ var RESTARTED = [
|
|
|
1427
1430
|
{ key: ["by", SPEC, "run-1"], value: null },
|
|
1428
1431
|
{ key: ["job", "run-1"], value: job("run-1", "run", SPEC, "spec", -1) },
|
|
1429
1432
|
{ key: ["job", "run-2"], value: job("run-2", "status", GENOME, "genome") },
|
|
1433
|
+
...ends(SPEC, "run-1"),
|
|
1430
1434
|
lastOf(SPEC, "run-1", "run", -1, "", LOST)
|
|
1431
1435
|
],
|
|
1432
1436
|
folder(GENOME, true, "run-2")
|
|
@@ -1445,18 +1449,17 @@ var RESTARTED = [
|
|
|
1445
1449
|
asked2(SHELL, "ended", end("run-2", 0), [TORN, ran("clear", [AT, SPEC], "", "run-3")], done),
|
|
1446
1450
|
asked2(SHELL, "ended", end("run-1", 0), [TORN], done),
|
|
1447
1451
|
asked2(OWNER, "folders", null, [], {
|
|
1448
|
-
result: [listed("genome", folder(null)), listed("spec", folder(null))]
|
|
1452
|
+
result: { folders: [listed("genome", folder(null)), listed("spec", folder(null))], cursor: null }
|
|
1449
1453
|
})
|
|
1450
1454
|
],
|
|
1451
1455
|
yields: [
|
|
1452
|
-
{ key: ["by", OWNER, "run-2"], value: null },
|
|
1453
1456
|
{ key: ["by", SHELL, "run-3"], value: null },
|
|
1454
1457
|
{ key: ["by", SPEC, "run-1"], value: null },
|
|
1455
1458
|
{ key: ["clearing", SPEC, "*"], value: { run: "run-3" } },
|
|
1459
|
+
...ends(SPEC, "run-1"),
|
|
1456
1460
|
{ key: ["folder", "genome"], value: folder(null) },
|
|
1457
1461
|
{ key: ["folder", "spec"], value: folder(null) },
|
|
1458
1462
|
{ key: ["job", "run-1"], value: job("run-1", "status", SPEC, "spec", 0) },
|
|
1459
|
-
{ key: ["job", "run-2"], value: job("run-2", "clear", OWNER, "genome", 0) },
|
|
1460
1463
|
{ key: ["job", "run-3"], value: job("run-3", "clear", SHELL, "spec") },
|
|
1461
1464
|
{ key: ["setup"], value: SET_UP }
|
|
1462
1465
|
]
|
|
@@ -1536,6 +1539,7 @@ ${NEXT}
|
|
|
1536
1539
|
{ key: ["job", "run-2"], value: job("run-2", "bundle", SPEC, "spec", 0) },
|
|
1537
1540
|
{ key: ["job", "run-3"], value: job("run-3", "graft", SPEC, "spec", 0) },
|
|
1538
1541
|
{ key: ["job", "run-4"], value: job("run-4", "commit", SPEC, "spec") },
|
|
1542
|
+
...ends(SPEC, "run-1", "run-2", "run-3"),
|
|
1539
1543
|
lastOf(SPEC, "run-3", "graft", 0, GRAFTED)
|
|
1540
1544
|
])
|
|
1541
1545
|
}
|
|
@@ -1573,6 +1577,7 @@ var SECRETED = [
|
|
|
1573
1577
|
{ key: ["by", SPEC, "run-2"], value: null },
|
|
1574
1578
|
{ key: ["job", "run-1"], value: job("run-1", "commit", SPEC, "spec", 1) },
|
|
1575
1579
|
{ key: ["job", "run-2"], value: job("run-2", "secrets", SPEC, "spec", 0) },
|
|
1580
|
+
...ends(SPEC, "run-1", "run-2"),
|
|
1576
1581
|
lastOf(SPEC, "run-2", "secrets")
|
|
1577
1582
|
])
|
|
1578
1583
|
}
|
|
@@ -1601,6 +1606,7 @@ var TAKEN = [
|
|
|
1601
1606
|
yields: twoWith(spec3(null), [
|
|
1602
1607
|
{ key: ["by", SPEC, "run-1"], value: null },
|
|
1603
1608
|
{ key: ["job", "run-1"], value: job("run-1", "commit", SPEC, "spec", 0) },
|
|
1609
|
+
...ends(SPEC, "run-1"),
|
|
1604
1610
|
lastOf(SPEC, "run-1", "commit")
|
|
1605
1611
|
])
|
|
1606
1612
|
}
|
|
@@ -1627,6 +1633,7 @@ var MADE3 = [
|
|
|
1627
1633
|
{ key: ["by", SPEC, "run-2"], value: null },
|
|
1628
1634
|
{ key: ["job", "run-1"], value: job("run-1", "status", SPEC, "spec", 0) },
|
|
1629
1635
|
{ key: ["job", "run-2"], value: job("run-2", "status", SPEC, "spec", 0) },
|
|
1636
|
+
...ends(SPEC, "run-1", "run-2"),
|
|
1630
1637
|
lastOf(SPEC, "run-2", "status")
|
|
1631
1638
|
]
|
|
1632
1639
|
},
|
|
@@ -1645,6 +1652,7 @@ var MADE3 = [
|
|
|
1645
1652
|
{ key: ["folder", "spec"], value: folder(null) },
|
|
1646
1653
|
{ key: ["job", "run-1"], value: job("run-1", "status", SPEC, "spec", 0) },
|
|
1647
1654
|
{ key: ["job", "run-2"], value: job("run-2", "clear", SHELL, "spec") },
|
|
1655
|
+
...ends(SPEC, "run-1"),
|
|
1648
1656
|
{ key: ["lobe", GENOME], value: "genome" },
|
|
1649
1657
|
{ key: ["setup"], value: SET_UP }
|
|
1650
1658
|
]
|
|
@@ -1673,6 +1681,7 @@ var MADE3 = [
|
|
|
1673
1681
|
{ key: ["by", OWNER, "run-2"], value: null },
|
|
1674
1682
|
{ key: ["job", "run-1"], value: job("run-1", "setup", OWNER, null, 1) },
|
|
1675
1683
|
{ key: ["job", "run-2"], value: job("run-2", "setup", OWNER, null, 0) },
|
|
1684
|
+
...ends(OWNER, "run-1", "run-2"),
|
|
1676
1685
|
{ key: ["setup"], value: SET_UP }
|
|
1677
1686
|
]
|
|
1678
1687
|
},
|
|
@@ -1713,7 +1722,9 @@ var MADE3 = [
|
|
|
1713
1722
|
{ key: ["lobe", GENOME], value: "notes" }
|
|
1714
1723
|
],
|
|
1715
1724
|
asks: [
|
|
1716
|
-
asked2(HEIR, "folders", null, [], {
|
|
1725
|
+
asked2(HEIR, "folders", null, [], {
|
|
1726
|
+
result: { folders: [listed("spec", { ...folder(null), by: KEEPER })], cursor: null }
|
|
1727
|
+
}),
|
|
1717
1728
|
asked2(HEIR, "grant", { folder: "notes", lobe: SPEC }, [], refused),
|
|
1718
1729
|
asked2(HEIR, "grant", { folder: "spec", lobe: SPEC }, [], done),
|
|
1719
1730
|
asked2(SPEC, "stand", {}, [], refused),
|
|
@@ -1739,7 +1750,7 @@ var MADE3 = [
|
|
|
1739
1750
|
asked2(SPEC, "state", {}, [NONE2], { result: { folder: SPEC_AT, made: false, doing: null } }),
|
|
1740
1751
|
asked2(KEEPER, "remove", { folder: "spec" }, [], refused),
|
|
1741
1752
|
asked2(KEEPER, "folders", null, [], {
|
|
1742
|
-
result: [listed("notes", { ...folder(GENOME), by: KEEPER })]
|
|
1753
|
+
result: { folders: [listed("notes", { ...folder(GENOME), by: KEEPER })], cursor: null }
|
|
1743
1754
|
})
|
|
1744
1755
|
],
|
|
1745
1756
|
yields: [
|
|
@@ -1749,6 +1760,7 @@ var MADE3 = [
|
|
|
1749
1760
|
{ key: ["folder", "notes"], value: { ...folder(GENOME), by: KEEPER } },
|
|
1750
1761
|
{ key: ["folder", "spec"], value: { ...folder(SPEC), by: HEIR } },
|
|
1751
1762
|
{ key: ["job", "run-1"], value: job("run-1", "stand", SPEC, "spec", 0) },
|
|
1763
|
+
...ends(SPEC, "run-1"),
|
|
1752
1764
|
lastOf(SPEC, "run-1", "stand", 0, `${HEAD}
|
|
1753
1765
|
`),
|
|
1754
1766
|
{ key: ["lobe", GENOME], value: "notes" },
|
|
@@ -1774,7 +1786,10 @@ var MADE3 = [
|
|
|
1774
1786
|
asked2(OWNER, "grant", { folder: "lab", lobe: null }, [], absent),
|
|
1775
1787
|
asked2(SPEC, "folders", null, [], refused),
|
|
1776
1788
|
asked2(OWNER, "folders", null, [], {
|
|
1777
|
-
result:
|
|
1789
|
+
result: {
|
|
1790
|
+
folders: [listed("example.com", folder(GENOME, false)), listed("spec", folder(SPEC, false))],
|
|
1791
|
+
cursor: null
|
|
1792
|
+
}
|
|
1778
1793
|
}),
|
|
1779
1794
|
asked2(SPEC, "state", {}, [], {
|
|
1780
1795
|
result: { folder: `${AT}/repos/spec`, made: false, doing: null }
|
|
@@ -1804,7 +1819,7 @@ var MADE3 = [
|
|
|
1804
1819
|
asked2(NEAR, "run", { script: "gate" }, [], refused),
|
|
1805
1820
|
asked2(NEAR, "stop", {}, [], refused),
|
|
1806
1821
|
asked2(OWNER, "folders", null, [], {
|
|
1807
|
-
result: [listed("genome", folder(GENOME)), listed("spec", folder(SPEC))]
|
|
1822
|
+
result: { folders: [listed("genome", folder(GENOME)), listed("spec", folder(SPEC))], cursor: null }
|
|
1808
1823
|
})
|
|
1809
1824
|
],
|
|
1810
1825
|
yields: TWO
|
|
@@ -1825,7 +1840,7 @@ var MADE3 = [
|
|
|
1825
1840
|
asked2(OWNER, "remove", { folder: "spec" }, [], absent),
|
|
1826
1841
|
asked2(OWNER, "grant", { folder: "genome", lobe: null }, [ran("clear", [AT, GENOME], "", "run-3")], done),
|
|
1827
1842
|
asked2(OWNER, "remove", { folder: "genome" }, [], done),
|
|
1828
|
-
asked2(OWNER, "folders", null, [], { result: [] })
|
|
1843
|
+
asked2(OWNER, "folders", null, [], { result: { folders: [], cursor: null } })
|
|
1829
1844
|
],
|
|
1830
1845
|
yields: [
|
|
1831
1846
|
{ key: ["by", OWNER, "run-2"], value: null },
|
|
@@ -1836,6 +1851,7 @@ var MADE3 = [
|
|
|
1836
1851
|
{ key: ["job", "run-1"], value: job("run-1", "status", SPEC, "spec", 0) },
|
|
1837
1852
|
{ key: ["job", "run-2"], value: job("run-2", "clear", OWNER, "spec") },
|
|
1838
1853
|
{ key: ["job", "run-3"], value: job("run-3", "clear", OWNER, "genome") },
|
|
1854
|
+
...ends(SPEC, "run-1"),
|
|
1839
1855
|
lastOf(SPEC, "run-1", "status"),
|
|
1840
1856
|
{ key: ["setup"], value: SET_UP }
|
|
1841
1857
|
]
|
|
@@ -1855,7 +1871,10 @@ var MADE3 = [
|
|
|
1855
1871
|
asked2(SPEC, "state", {}, [], refused),
|
|
1856
1872
|
asked2(OWNER, "remove", { folder: "spec", erase: true }, [going(["run-1"])], refused),
|
|
1857
1873
|
asked2(OWNER, "folders", null, [], {
|
|
1858
|
-
result:
|
|
1874
|
+
result: {
|
|
1875
|
+
folders: [listed("genome", folder(GENOME)), listed("spec", folder(null, true, "run-1"))],
|
|
1876
|
+
cursor: null
|
|
1877
|
+
}
|
|
1859
1878
|
}),
|
|
1860
1879
|
asked2(SHELL, "ended", end("run-1", 0), [WIRED2], done),
|
|
1861
1880
|
asked2(OWNER, "job", { job: "run-1" }, [], { result: job("run-1", "remove", OWNER, "spec", 0) }),
|
|
@@ -1867,11 +1886,12 @@ var MADE3 = [
|
|
|
1867
1886
|
begun("run-2")
|
|
1868
1887
|
),
|
|
1869
1888
|
asked2(SHELL, "ended", end("run-2", 1, "", "the folder genome stands still"), [WIRED2], done),
|
|
1870
|
-
asked2(OWNER, "folders", null, [], { result: [listed("genome", folder(null))] })
|
|
1889
|
+
asked2(OWNER, "folders", null, [], { result: { folders: [listed("genome", folder(null))], cursor: null } })
|
|
1871
1890
|
],
|
|
1872
1891
|
yields: [
|
|
1873
1892
|
{ key: ["by", OWNER, "run-1"], value: null },
|
|
1874
1893
|
{ key: ["by", OWNER, "run-2"], value: null },
|
|
1894
|
+
...ends(OWNER, "run-1", "run-2"),
|
|
1875
1895
|
{ key: ["folder", "genome"], value: folder(null) },
|
|
1876
1896
|
{ key: ["job", "run-1"], value: job("run-1", "remove", OWNER, "spec", 0) },
|
|
1877
1897
|
{ key: ["job", "run-2"], value: job("run-2", "remove", OWNER, "genome", 1) },
|
|
@@ -1909,6 +1929,7 @@ var MADE3 = [
|
|
|
1909
1929
|
yields: twoWith(folder(SPEC, true, null), [
|
|
1910
1930
|
{ key: ["by", SPEC, "run-1"], value: null },
|
|
1911
1931
|
{ key: ["job", "run-1"], value: job("run-1", "run", SPEC, "spec", -1) },
|
|
1932
|
+
...ends(SPEC, "run-1"),
|
|
1912
1933
|
lastOf(SPEC, "run-1", "run", -1, "", LOST)
|
|
1913
1934
|
])
|
|
1914
1935
|
}
|
|
@@ -2028,6 +2049,7 @@ forward
|
|
|
2028
2049
|
{ key: ["job", "run-2"], value: job("run-2", "bring", SPEC, "spec", 0) },
|
|
2029
2050
|
{ key: ["job", "run-3"], value: job("run-3", "conform", SPEC, "spec", 1) },
|
|
2030
2051
|
{ key: ["job", "run-4"], value: job("run-4", "land", SPEC, "spec") },
|
|
2052
|
+
...ends(SPEC, "run-1", "run-2", "run-3"),
|
|
2031
2053
|
lastOf(SPEC, "run-3", "conform", 1, "notes.txt stands at the root\n")
|
|
2032
2054
|
])
|
|
2033
2055
|
},
|
|
@@ -2063,11 +2085,14 @@ forward
|
|
|
2063
2085
|
done
|
|
2064
2086
|
),
|
|
2065
2087
|
asked2(OWNER, "jobs", null, [], {
|
|
2066
|
-
result:
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2088
|
+
result: {
|
|
2089
|
+
jobs: [
|
|
2090
|
+
job("run-1", "scan", SPEC, "spec", 0),
|
|
2091
|
+
job("run-2", "build", SPEC, "spec", 0),
|
|
2092
|
+
job("run-4", "look", SPEC, "spec", 0)
|
|
2093
|
+
],
|
|
2094
|
+
cursor: null
|
|
2095
|
+
}
|
|
2071
2096
|
})
|
|
2072
2097
|
],
|
|
2073
2098
|
yields: twoWith(spec4(null), [
|
|
@@ -2077,6 +2102,7 @@ forward
|
|
|
2077
2102
|
{ key: ["job", "run-1"], value: job("run-1", "scan", SPEC, "spec", 0) },
|
|
2078
2103
|
{ key: ["job", "run-2"], value: job("run-2", "build", SPEC, "spec", 0) },
|
|
2079
2104
|
{ key: ["job", "run-4"], value: job("run-4", "look", SPEC, "spec", 0) },
|
|
2105
|
+
...ends(SPEC, "run-1", "run-2", "run-4"),
|
|
2080
2106
|
lastOf(SPEC, "run-4", "look", 0, LOOK, "building")
|
|
2081
2107
|
])
|
|
2082
2108
|
},
|
|
@@ -2109,12 +2135,11 @@ forward
|
|
|
2109
2135
|
[
|
|
2110
2136
|
{ key: ["by", GENOME, "run-4"], value: null },
|
|
2111
2137
|
{ key: ["by", SPEC, "run-1"], value: null },
|
|
2112
|
-
{ key: ["by", SPEC, "run-2"], value: null },
|
|
2113
2138
|
{ key: ["by", SPEC, "run-3"], value: null },
|
|
2114
2139
|
{ key: ["clearing", GENOME, "pull"], value: { run: "run-4" } },
|
|
2115
2140
|
{ key: ["job", "run-1"], value: job("run-1", "status", SPEC, "spec", 0) },
|
|
2116
|
-
{ key: ["job", "run-2"], value: job("run-2", "clear", SPEC, "spec", 0) },
|
|
2117
2141
|
{ key: ["job", "run-3"], value: job("run-3", "bundle", SPEC, "spec") },
|
|
2142
|
+
...ends(SPEC, "run-1"),
|
|
2118
2143
|
{ key: ["job", "run-4"], value: job("run-4", "clear", GENOME, "genome") },
|
|
2119
2144
|
lastOf(SPEC, "run-1", "status")
|
|
2120
2145
|
],
|
|
@@ -2137,10 +2162,7 @@ forward
|
|
|
2137
2162
|
done
|
|
2138
2163
|
)
|
|
2139
2164
|
],
|
|
2140
|
-
yields: twoWith(spec4(null)
|
|
2141
|
-
{ key: ["by", SPEC, "run-1"], value: null },
|
|
2142
|
-
{ key: ["job", "run-1"], value: job("run-1", "clear", SPEC, "spec", -1) }
|
|
2143
|
-
])
|
|
2165
|
+
yields: twoWith(spec4(null))
|
|
2144
2166
|
}
|
|
2145
2167
|
];
|
|
2146
2168
|
|
|
@@ -2175,6 +2197,7 @@ ${NEXT}
|
|
|
2175
2197
|
yields: twoWith(folder(SPEC), [
|
|
2176
2198
|
{ key: ["by", SPEC, "run-1"], value: null },
|
|
2177
2199
|
{ key: ["job", "run-1"], value: job("run-1", "bundle", SPEC, "spec", 0) },
|
|
2200
|
+
...ends(SPEC, "run-1"),
|
|
2178
2201
|
lastOf(SPEC, "run-1", "bundle", 0, `1
|
|
2179
2202
|
${NEXT}
|
|
2180
2203
|
`)
|
|
@@ -2199,6 +2222,7 @@ ${NEXT}
|
|
|
2199
2222
|
yields: twoWith(folder(SPEC), [
|
|
2200
2223
|
{ key: ["by", SPEC, "run-1"], value: null },
|
|
2201
2224
|
{ key: ["job", "run-1"], value: job("run-1", "cut", SPEC, "spec", 0) },
|
|
2225
|
+
...ends(SPEC, "run-1"),
|
|
2202
2226
|
lastOf(SPEC, "run-1", "cut", 0, `${NEXT}
|
|
2203
2227
|
`)
|
|
2204
2228
|
])
|
|
@@ -2377,6 +2401,7 @@ lacks
|
|
|
2377
2401
|
{ key: ["job", "run-3"], value: job("run-3", "discard", SPEC, "spec", 0) },
|
|
2378
2402
|
{ key: ["job", "run-1"], value: job("run-1", "init", SPEC, "spec", 0) },
|
|
2379
2403
|
{ key: ["job", "run-2"], value: job("run-2", "head", SPEC, "spec", 0) },
|
|
2404
|
+
...ends(SPEC, "run-1", "run-2", "run-3"),
|
|
2380
2405
|
lastOf(SPEC, "run-3", "discard")
|
|
2381
2406
|
])
|
|
2382
2407
|
},
|
|
@@ -2444,12 +2469,15 @@ lacks
|
|
|
2444
2469
|
begun("run-6")
|
|
2445
2470
|
),
|
|
2446
2471
|
asked2(SPEC, "jobs", null, [], {
|
|
2447
|
-
result:
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2472
|
+
result: {
|
|
2473
|
+
jobs: [
|
|
2474
|
+
job("run-1", "status", SPEC, "spec", 0),
|
|
2475
|
+
job("run-3", "commit", SPEC, "spec", 0),
|
|
2476
|
+
job("run-4", "run", SPEC, "spec", 1),
|
|
2477
|
+
job("run-6", "secrets", SPEC, "spec")
|
|
2478
|
+
],
|
|
2479
|
+
cursor: null
|
|
2480
|
+
}
|
|
2453
2481
|
}),
|
|
2454
2482
|
asked2(SPEC, "job", { job: "run-5" }, [], absent),
|
|
2455
2483
|
asked2(OWNER, "job", { job: "run-5" }, [], {
|
|
@@ -2472,6 +2500,8 @@ lacks
|
|
|
2472
2500
|
{ key: ["job", "run-4"], value: job("run-4", "run", SPEC, "spec", 1) },
|
|
2473
2501
|
{ key: ["job", "run-5"], value: job("run-5", "run", GENOME, "genome") },
|
|
2474
2502
|
{ key: ["job", "run-6"], value: job("run-6", "secrets", SPEC, "spec") },
|
|
2503
|
+
...ends(SPEC, "run-1", "run-3", "run-4"),
|
|
2504
|
+
...ends(GENOME, "run-2"),
|
|
2475
2505
|
lastOf(GENOME, "run-2", "log", 0, "log"),
|
|
2476
2506
|
lastOf(SPEC, "run-4", "run", 1, "", "npm warn [secret]")
|
|
2477
2507
|
],
|
|
@@ -2502,7 +2532,7 @@ var relation = (far, side, placeholder, note) => ({
|
|
|
2502
2532
|
note
|
|
2503
2533
|
});
|
|
2504
2534
|
var HELD = relation("L1", "standing", "lobe-1", null);
|
|
2505
|
-
var
|
|
2535
|
+
var ends2 = (...list2) => ({
|
|
2506
2536
|
placeholder: "nerves",
|
|
2507
2537
|
method: "relations",
|
|
2508
2538
|
args: {},
|
|
@@ -2859,7 +2889,7 @@ var takenBack = (writer = PUSHER) => ({
|
|
|
2859
2889
|
answer: { result: { far: TELLS } }
|
|
2860
2890
|
});
|
|
2861
2891
|
var untoldBack = (writer = PUSHER) => [
|
|
2862
|
-
|
|
2892
|
+
ends2(HELD_TELLS),
|
|
2863
2893
|
{ placeholder: "mouth", method: "drop", args: { far: TELLS }, answer: done2 },
|
|
2864
2894
|
{ placeholder: "nerves", method: "unwire", args: { placeholder: `tells-${writer.toLowerCase()}` }, answer: done2 }
|
|
2865
2895
|
];
|
|
@@ -2932,6 +2962,14 @@ var end2 = (run, code, out = "", err = "") => ({
|
|
|
2932
2962
|
err,
|
|
2933
2963
|
at: TIME4
|
|
2934
2964
|
});
|
|
2965
|
+
var endedKept = (asker, ...runs) => [
|
|
2966
|
+
{ key: ["ended", asker], value: { first: 0, next: runs.length } },
|
|
2967
|
+
...runs.map((run, n) => ({ key: ["ended", asker, String(n)], value: run }))
|
|
2968
|
+
];
|
|
2969
|
+
var toldInOrder = (...named2) => [
|
|
2970
|
+
...named2.map((one, n) => ({ key: ["toldAt", n], value: [...one] })),
|
|
2971
|
+
{ key: ["toldNext"], value: named2.length }
|
|
2972
|
+
];
|
|
2935
2973
|
var scanStep = (run, asker, of, out, finished = null) => job2(run, "scan", asker, finished, { step: { scan: of, code: 0, out, err: "" } });
|
|
2936
2974
|
var scannedAt = (head) => ({
|
|
2937
2975
|
key: ["scanned"],
|
|
@@ -2998,8 +3036,6 @@ var UNDO_NEW = [UNDO_FILE, UNDO_DIR];
|
|
|
2998
3036
|
var UNDO_BOTH = [UNDO_FILE, jailer("write", { path: "README.md", text: "old\n" }, done2), UNDO_DIR];
|
|
2999
3037
|
var BACK = "\nthe files it wrote are put back as they were before the ask";
|
|
3000
3038
|
var BOTH = { [PATH]: "# A proposal\n", "README.md": "new\n" };
|
|
3001
|
-
var STEP = (run, asker, first, out) => job2(run, "commit", asker, endScanned(run, 0, out), { step: { commit: first } });
|
|
3002
|
-
var SCAN = (run, asker, of, out) => scanStep(run, asker, of, out, end2(run, 0, out));
|
|
3003
3039
|
var GREEN_SCAN = { scan: { code: 0, err: "" } };
|
|
3004
3040
|
var OFF = { commit: "off", push: "off" };
|
|
3005
3041
|
var BROKE = "the scan broke\n";
|
|
@@ -3011,11 +3047,11 @@ var COMMITTED2 = [
|
|
|
3011
3047
|
{ key: ["repo"], value: AHEAD }
|
|
3012
3048
|
],
|
|
3013
3049
|
asks: [
|
|
3014
|
-
asked3(OWNER2, "commit", { message: MESSAGE4 }, [
|
|
3050
|
+
asked3(OWNER2, "commit", { message: MESSAGE4 }, [ends2(), ran2("commit", COMMIT, "run-1")], begun2("run-1")),
|
|
3015
3051
|
endedThen("run-1", "commit", 0, `${OTHER}
|
|
3016
3052
|
`, "", [ran2("scan", {}, "run-2")]),
|
|
3017
3053
|
asked3(OWNER2, "job", { job: "run-1" }, [], { result: job2("run-1", "commit", OWNER2) }),
|
|
3018
|
-
asked3(OWNER2, "commit", { message: MESSAGE4 }, [
|
|
3054
|
+
asked3(OWNER2, "commit", { message: MESSAGE4 }, [ends2(), checked("run-2")], refused2),
|
|
3019
3055
|
ended("run-2", "scan", 0, `${OTHER}
|
|
3020
3056
|
`),
|
|
3021
3057
|
asked3(OWNER2, "job", { job: "run-1" }, [], {
|
|
@@ -3026,7 +3062,7 @@ var COMMITTED2 = [
|
|
|
3026
3062
|
NEAR2,
|
|
3027
3063
|
"commit",
|
|
3028
3064
|
{ message: MESSAGE4 },
|
|
3029
|
-
[
|
|
3065
|
+
[ends2(), ordered2(NEAR2), ran2("commit", COMMIT, "run-3")],
|
|
3030
3066
|
begun2("run-3")
|
|
3031
3067
|
),
|
|
3032
3068
|
endedThen("run-3", "commit", 0, `${HEAD2}
|
|
@@ -3047,18 +3083,13 @@ var COMMITTED2 = [
|
|
|
3047
3083
|
{ key: ["gates"], value: OFF },
|
|
3048
3084
|
{ key: ["job", "run-1"], value: job2("run-1", "commit", OWNER2, endScanned("run-1", 0, `${OTHER}
|
|
3049
3085
|
`)) },
|
|
3050
|
-
{ key: ["job", "run-2"], value: SCAN("run-2", OWNER2, "run-1", `${OTHER}
|
|
3051
|
-
`) },
|
|
3052
3086
|
{
|
|
3053
3087
|
key: ["job", "run-3"],
|
|
3054
3088
|
value: job2("run-3", "commit", NEAR2, endScanned("run-3", 0, `${HEAD2}
|
|
3055
3089
|
`, "", { code: 1, err: BROKE }))
|
|
3056
3090
|
},
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
value: scanStep("run-4", NEAR2, "run-3", `${HEAD2}
|
|
3060
|
-
`, end2("run-4", 1, "", BROKE))
|
|
3061
|
-
},
|
|
3091
|
+
...endedKept(OWNER2, "run-1"),
|
|
3092
|
+
...endedKept(NEAR2, "run-3"),
|
|
3062
3093
|
{ key: ["repo"], value: { ...AHEAD, head: HEAD2 } },
|
|
3063
3094
|
scannedAt(OTHER)
|
|
3064
3095
|
]
|
|
@@ -3071,11 +3102,11 @@ var COMMITTED2 = [
|
|
|
3071
3102
|
(paths) => asked3(OWNER2, "commit", { message: MESSAGE4, paths }, [], refused2)
|
|
3072
3103
|
),
|
|
3073
3104
|
asked3(OWNER2, "commit", { message: MESSAGE4, paths: [PATH], files: PROPOSAL }, [], refused2),
|
|
3074
|
-
asked3(OWNER2, "commit", { message: MESSAGE4, paths: ["docs", PATH] }, [
|
|
3105
|
+
asked3(OWNER2, "commit", { message: MESSAGE4, paths: ["docs", PATH] }, [ends2(), ran2("run", GATE, "run-1")], {
|
|
3075
3106
|
result: { job: "run-1" }
|
|
3076
3107
|
}),
|
|
3077
3108
|
endedThen("run-1", "run", 1, "gate red\n", "FAILED\n", []),
|
|
3078
|
-
asked3(OWNER2, "commit", { message: MESSAGE4, paths: ["docs", PATH] }, [
|
|
3109
|
+
asked3(OWNER2, "commit", { message: MESSAGE4, paths: ["docs", PATH] }, [ends2(), ran2("run", GATE, "run-2")], {
|
|
3079
3110
|
result: { job: "run-2" }
|
|
3080
3111
|
}),
|
|
3081
3112
|
endedThen("run-2", "run", 0, "green\n", "", [ran2("commit", { ...COMMIT, paths: ["docs", PATH] }, "run-3")]),
|
|
@@ -3087,7 +3118,7 @@ var COMMITTED2 = [
|
|
|
3087
3118
|
OWNER2,
|
|
3088
3119
|
"commit",
|
|
3089
3120
|
{ message: MESSAGE4, paths: [PATH], gate: false },
|
|
3090
|
-
[
|
|
3121
|
+
[ends2(), ran2("commit", { ...COMMIT, paths: [PATH] }, "run-5")],
|
|
3091
3122
|
{
|
|
3092
3123
|
result: { job: "run-5" }
|
|
3093
3124
|
}
|
|
@@ -3101,14 +3132,11 @@ var COMMITTED2 = [
|
|
|
3101
3132
|
{ key: ["job", "run-1"], value: job2("run-1", "commit", OWNER2, end2("run-1", 1, "gate red\n", RED2)) },
|
|
3102
3133
|
{ key: ["job", "run-2"], value: job2("run-2", "commit", OWNER2, endScanned("run-2", 0, `${OTHER}
|
|
3103
3134
|
`)) },
|
|
3104
|
-
{ key: ["job", "run-3"], value: STEP("run-3", OWNER2, "run-2", `${OTHER}
|
|
3105
|
-
`) },
|
|
3106
|
-
{ key: ["job", "run-4"], value: SCAN("run-4", OWNER2, "run-3", `${OTHER}
|
|
3107
|
-
`) },
|
|
3108
3135
|
{
|
|
3109
3136
|
key: ["job", "run-5"],
|
|
3110
3137
|
value: job2("run-5", "commit", OWNER2, end2("run-5", 1, "", "none of the paths named holds a change\n"))
|
|
3111
3138
|
},
|
|
3139
|
+
...endedKept(OWNER2, "run-1", "run-2", "run-5"),
|
|
3112
3140
|
{ key: ["repo"], value: { ...AHEAD, head: OTHER } },
|
|
3113
3141
|
scannedAt(OTHER)
|
|
3114
3142
|
]
|
|
@@ -3123,7 +3151,7 @@ var COMMITTED2 = [
|
|
|
3123
3151
|
"commit",
|
|
3124
3152
|
{ message: MESSAGE4, files: PROPOSAL, executable: [PATH] },
|
|
3125
3153
|
[
|
|
3126
|
-
|
|
3154
|
+
ends2(),
|
|
3127
3155
|
...BEFORE_NEW,
|
|
3128
3156
|
jailer("write", { path: PATH, text: "# A proposal\n" }, done2),
|
|
3129
3157
|
ran2("run", GATE, "run-1")
|
|
@@ -3150,12 +3178,12 @@ var COMMITTED2 = [
|
|
|
3150
3178
|
asked3(LIBRARY, "commit", { message: MESSAGE4 }, [], refused2),
|
|
3151
3179
|
asked3(OWNER2, "commit", {}, [], refused2),
|
|
3152
3180
|
asked3(OWNER2, "commit", { message: MESSAGE4, files: { "a.md": 1 } }, [], refused2),
|
|
3153
|
-
asked3(OWNER2, "commit", { message: MESSAGE4 }, [
|
|
3181
|
+
asked3(OWNER2, "commit", { message: MESSAGE4 }, [ends2(), ran2("run", GATE, "run-1")], {
|
|
3154
3182
|
result: { job: "run-1" }
|
|
3155
3183
|
}),
|
|
3156
|
-
asked3(OWNER2, "commit", { message: MESSAGE4 }, [
|
|
3184
|
+
asked3(OWNER2, "commit", { message: MESSAGE4 }, [ends2(), checked("run-1")], refused2),
|
|
3157
3185
|
endedThen("run-1", "run", 1, "gate red\n", "FAILED\n", []),
|
|
3158
|
-
asked3(OWNER2, "commit", { message: MESSAGE4 }, [
|
|
3186
|
+
asked3(OWNER2, "commit", { message: MESSAGE4 }, [ends2(), ran2("run", GATE, "run-2")], {
|
|
3159
3187
|
result: { job: "run-2" }
|
|
3160
3188
|
}),
|
|
3161
3189
|
endedThen("run-2", "run", 0, "green\n", "", [ran2("commit", COMMIT, "run-3")]),
|
|
@@ -3176,10 +3204,7 @@ var COMMITTED2 = [
|
|
|
3176
3204
|
value: job2("run-2", "commit", OWNER2, endScanned("run-2", 0, `${OTHER}
|
|
3177
3205
|
`))
|
|
3178
3206
|
},
|
|
3179
|
-
|
|
3180
|
-
`) },
|
|
3181
|
-
{ key: ["job", "run-4"], value: SCAN("run-4", OWNER2, "run-3", `${OTHER}
|
|
3182
|
-
`) },
|
|
3207
|
+
...endedKept(OWNER2, "run-1", "run-2"),
|
|
3183
3208
|
{ key: ["repo"], value: { ...AHEAD, head: OTHER } },
|
|
3184
3209
|
scannedAt(OTHER)
|
|
3185
3210
|
]
|
|
@@ -3191,19 +3216,19 @@ var COMMITTED2 = [
|
|
|
3191
3216
|
{ key: ["gates"], value: { commit: "mandatory", push: "off" } }
|
|
3192
3217
|
],
|
|
3193
3218
|
asks: [
|
|
3194
|
-
asked3(NEAR2, "commit", { message: MESSAGE4, files: PROPOSAL }, [
|
|
3219
|
+
asked3(NEAR2, "commit", { message: MESSAGE4, files: PROPOSAL }, [ends2(OCCUPANT_PUSHER)], refused2),
|
|
3195
3220
|
asked3(OWNER2, "author", { lobe: OWNER2 }, [], refused2),
|
|
3196
3221
|
asked3(NEAR2, "author", { lobe: NEAR2 }, [], refused2),
|
|
3197
3222
|
asked3(OWNER2, "author", { lobe: NEAR2 }, [], done2),
|
|
3198
|
-
asked3(OWNER2, "commit", { message: MESSAGE4 }, [
|
|
3199
|
-
asked3(NEAR2, "commit", { message: MESSAGE4, gate: false }, [
|
|
3223
|
+
asked3(OWNER2, "commit", { message: MESSAGE4 }, [ends2(OCCUPANT_PUSHER)], refused2),
|
|
3224
|
+
asked3(NEAR2, "commit", { message: MESSAGE4, gate: false }, [ends2(OCCUPANT_PUSHER)], refused2),
|
|
3200
3225
|
asked3(OWNER2, "gates", { commit: "off" }, [], { result: { commit: "off", push: "off" } }),
|
|
3201
3226
|
asked3(
|
|
3202
3227
|
NEAR2,
|
|
3203
3228
|
"commit",
|
|
3204
3229
|
{ message: MESSAGE4, files: PROPOSAL },
|
|
3205
3230
|
[
|
|
3206
|
-
|
|
3231
|
+
ends2(OCCUPANT_PUSHER),
|
|
3207
3232
|
...BEFORE_NEW,
|
|
3208
3233
|
jailer("write", { path: "proposals/021-a-proposal.md", text: "# A proposal\n" }, done2),
|
|
3209
3234
|
ordered2(NEAR2),
|
|
@@ -3220,7 +3245,7 @@ var COMMITTED2 = [
|
|
|
3220
3245
|
"commit",
|
|
3221
3246
|
{ message: MESSAGE4, files: { "../x.md": "x" } },
|
|
3222
3247
|
[
|
|
3223
|
-
|
|
3248
|
+
ends2(OCCUPANT_PUSHER),
|
|
3224
3249
|
jailer(
|
|
3225
3250
|
"read",
|
|
3226
3251
|
{ path: "../x.md" },
|
|
@@ -3229,7 +3254,7 @@ var COMMITTED2 = [
|
|
|
3229
3254
|
],
|
|
3230
3255
|
refused2
|
|
3231
3256
|
),
|
|
3232
|
-
asked3(NEAR2, "commit", { message: MESSAGE4, gate: true }, [
|
|
3257
|
+
asked3(NEAR2, "commit", { message: MESSAGE4, gate: true }, [ends2(OCCUPANT_PUSHER), ran2("run", GATE, "run-2")], {
|
|
3233
3258
|
result: { job: "run-2" }
|
|
3234
3259
|
}),
|
|
3235
3260
|
endedThen("run-2", "run", 3, "", "the repo holds no script gate\n", [ran2("commit", COMMIT, "run-3")]),
|
|
@@ -3254,10 +3279,7 @@ var COMMITTED2 = [
|
|
|
3254
3279
|
value: job2("run-2", "commit", NEAR2, endScanned("run-2", 0, `${OTHER}
|
|
3255
3280
|
`))
|
|
3256
3281
|
},
|
|
3257
|
-
|
|
3258
|
-
`) },
|
|
3259
|
-
{ key: ["job", "run-4"], value: SCAN("run-4", NEAR2, "run-3", `${OTHER}
|
|
3260
|
-
`) },
|
|
3282
|
+
...endedKept(NEAR2, "run-1", "run-2"),
|
|
3261
3283
|
{ key: ["repo"], value: { ...AHEAD, head: OTHER } },
|
|
3262
3284
|
scannedAt(OTHER)
|
|
3263
3285
|
]
|
|
@@ -3269,7 +3291,7 @@ var COMMITTED2 = [
|
|
|
3269
3291
|
{ key: ["secret", "API_KEY"], value: TOKEN2 }
|
|
3270
3292
|
],
|
|
3271
3293
|
asks: [
|
|
3272
|
-
asked3(NEAR2, "commit", { message: MESSAGE4, gate: true }, [
|
|
3294
|
+
asked3(NEAR2, "commit", { message: MESSAGE4, gate: true }, [ends2(), ordered2(NEAR2), ran2("secrets", KEYS, "run-1")], {
|
|
3273
3295
|
result: { job: "run-1" }
|
|
3274
3296
|
}),
|
|
3275
3297
|
endedThen("run-1", "commit", 0, "", "", [ran2("run", GATE, "run-2")]),
|
|
@@ -3287,14 +3309,7 @@ var COMMITTED2 = [
|
|
|
3287
3309
|
{ key: ["env"], value: true },
|
|
3288
3310
|
{ key: ["job", "run-1"], value: job2("run-1", "commit", NEAR2, endScanned("run-1", 0, `${OTHER}
|
|
3289
3311
|
`)) },
|
|
3290
|
-
|
|
3291
|
-
key: ["job", "run-2"],
|
|
3292
|
-
value: job2("run-2", "commit", NEAR2, end2("run-2", 0, "gate saw [secret]\n"), { step: { ran: "run-1" } })
|
|
3293
|
-
},
|
|
3294
|
-
{ key: ["job", "run-3"], value: STEP("run-3", NEAR2, "run-1", `${OTHER}
|
|
3295
|
-
`) },
|
|
3296
|
-
{ key: ["job", "run-4"], value: SCAN("run-4", NEAR2, "run-3", `${OTHER}
|
|
3297
|
-
`) },
|
|
3312
|
+
...endedKept(NEAR2, "run-1"),
|
|
3298
3313
|
{ key: ["repo"], value: { ...AHEAD, head: OTHER } },
|
|
3299
3314
|
scannedAt(OTHER),
|
|
3300
3315
|
{ key: ["secret", "API_KEY"], value: TOKEN2 }
|
|
@@ -3307,13 +3322,13 @@ var COMMITTED2 = [
|
|
|
3307
3322
|
{ key: ["secret", "API_KEY"], value: TOKEN2 }
|
|
3308
3323
|
],
|
|
3309
3324
|
asks: [
|
|
3310
|
-
asked3(NEAR2, "commit", { message: MESSAGE4, gate: true }, [
|
|
3325
|
+
asked3(NEAR2, "commit", { message: MESSAGE4, gate: true }, [ends2(), ordered2(NEAR2), ran2("secrets", KEYS, "run-1")], {
|
|
3311
3326
|
result: { job: "run-1" }
|
|
3312
3327
|
}),
|
|
3313
3328
|
endedThen("run-1", "commit", 1, "", "no room", [
|
|
3314
3329
|
told2(NEAR2, "run-1", "commit", 1, "", "the commit is refused: its secret file was not written: no room")
|
|
3315
3330
|
]),
|
|
3316
|
-
asked3(NEAR2, "commit", { message: MESSAGE4, gate: true }, [
|
|
3331
|
+
asked3(NEAR2, "commit", { message: MESSAGE4, gate: true }, [ends2(), ran2("secrets", KEYS, "run-2")], {
|
|
3317
3332
|
result: { job: "run-2" }
|
|
3318
3333
|
}),
|
|
3319
3334
|
endedThen("run-2", "commit", 0, "", "", [ran2("run", GATE, "run-3")]),
|
|
@@ -3334,10 +3349,7 @@ var COMMITTED2 = [
|
|
|
3334
3349
|
)
|
|
3335
3350
|
},
|
|
3336
3351
|
{ key: ["job", "run-2"], value: job2("run-2", "commit", NEAR2, end2("run-2", 1, "", RED2)) },
|
|
3337
|
-
|
|
3338
|
-
key: ["job", "run-3"],
|
|
3339
|
-
value: job2("run-3", "commit", NEAR2, end2("run-3", 1, "", "FAILED\n"), { step: { ran: "run-2" } })
|
|
3340
|
-
},
|
|
3352
|
+
...endedKept(NEAR2, "run-1", "run-2"),
|
|
3341
3353
|
{ key: ["repo"], value: AHEAD },
|
|
3342
3354
|
{ key: ["secret", "API_KEY"], value: TOKEN2 }
|
|
3343
3355
|
]
|
|
@@ -3351,7 +3363,7 @@ var COMMITTED2 = [
|
|
|
3351
3363
|
"commit",
|
|
3352
3364
|
{ message: MESSAGE4, files: BOTH },
|
|
3353
3365
|
[
|
|
3354
|
-
|
|
3366
|
+
ends2(),
|
|
3355
3367
|
...BEFORE_BOTH,
|
|
3356
3368
|
jailer("write", { path: PATH, text: "# A proposal\n" }, done2),
|
|
3357
3369
|
jailer("write", { path: "README.md", text: "new\n" }, done2),
|
|
@@ -3370,7 +3382,7 @@ var COMMITTED2 = [
|
|
|
3370
3382
|
"commit",
|
|
3371
3383
|
{ message: MESSAGE4, files: BOTH },
|
|
3372
3384
|
[
|
|
3373
|
-
|
|
3385
|
+
ends2(),
|
|
3374
3386
|
...BEFORE_BOTH,
|
|
3375
3387
|
jailer("write", { path: PATH, text: "# A proposal\n" }, done2),
|
|
3376
3388
|
jailer("write", { path: "README.md", text: "new\n" }, done2),
|
|
@@ -3396,6 +3408,7 @@ var COMMITTED2 = [
|
|
|
3396
3408
|
key: ["job", "run-2"],
|
|
3397
3409
|
value: job2("run-2", "commit", NEAR2, end2("run-2", 1, "", `a page stands not${BACK}`))
|
|
3398
3410
|
},
|
|
3411
|
+
...endedKept(NEAR2, "run-1", "run-2"),
|
|
3399
3412
|
{ key: ["repo"], value: { ...AHEAD, doing: null } }
|
|
3400
3413
|
]
|
|
3401
3414
|
}
|
|
@@ -3413,14 +3426,13 @@ var accepted = {
|
|
|
3413
3426
|
answer: { result: { far: "L2" } }
|
|
3414
3427
|
};
|
|
3415
3428
|
var SCANNED2 = { head: NEXT2, faculties: [], organs: [], designs: [] };
|
|
3416
|
-
var forPusher = (run, kind, out) => job2(run, kind, PUSHER, end2(run, 0, out), { step: { for: PUSHER } });
|
|
3417
3429
|
var LANDED = [
|
|
3418
3430
|
asked3(
|
|
3419
3431
|
PUSHER,
|
|
3420
3432
|
"take",
|
|
3421
3433
|
{ push: PUSH, at: 0, pieces: 1, bytes: ONE3, tells: BACK_INVITATION },
|
|
3422
3434
|
[
|
|
3423
|
-
|
|
3435
|
+
ends2(),
|
|
3424
3436
|
takenBack(),
|
|
3425
3437
|
jailer("put", { at: 0, pieces: 1, bytes: ONE3, as: `in-${PUSHER}` }, done2),
|
|
3426
3438
|
ran2("bring", { as: `in-${PUSHER}`, pieces: 1 }, "run-1")
|
|
@@ -3445,11 +3457,11 @@ var GRAPHED = [
|
|
|
3445
3457
|
says: "A lobe stands on one that stands on it, no loop guarded; a push it takes lands there alone; its owner's push goes over its own standing.",
|
|
3446
3458
|
cells: [{ key: ["repo"], value: repo() }],
|
|
3447
3459
|
asks: [
|
|
3448
|
-
asked3(OWNER2, "relink", { invitation: "nervur:back" }, [
|
|
3460
|
+
asked3(OWNER2, "relink", { invitation: "nervur:back" }, [ends2(OCCUPANT_PUSHER), accepted], {
|
|
3449
3461
|
result: { on: "lobe-1", far: "L2" }
|
|
3450
3462
|
}),
|
|
3451
3463
|
...LANDED,
|
|
3452
|
-
asked3(OWNER2, "push", { tells: true }, [
|
|
3464
|
+
asked3(OWNER2, "push", { tells: true }, [ends2(OCCUPANT_PUSHER, BACK2), CAPPED, tickSet], { result: { job: PUSH } }),
|
|
3453
3465
|
tickMoved([overLobe("head", {}, { result: { head: HEAD2 } })]),
|
|
3454
3466
|
tickMoved([ran2("bundle", { since: HEAD2, as: "push" }, "run-5")]),
|
|
3455
3467
|
endedThen("run-5", "bundle", 0, `0
|
|
@@ -3464,31 +3476,6 @@ ${NEXT2}
|
|
|
3464
3476
|
key: ["in", PUSHER],
|
|
3465
3477
|
value: taken(1, ONE3, { check: GREEN, landing: "run-3", landed: true })
|
|
3466
3478
|
},
|
|
3467
|
-
{ key: ["job", "run-1"], value: forPusher("run-1", "bring", `${NEXT2}
|
|
3468
|
-
forward
|
|
3469
|
-
`) },
|
|
3470
|
-
{
|
|
3471
|
-
key: ["job", "run-2"],
|
|
3472
|
-
value: job2("run-2", "check", PUSHER, end2("run-2", 0, GREEN.out), {
|
|
3473
|
-
step: { check: `in-${PUSHER}` }
|
|
3474
|
-
})
|
|
3475
|
-
},
|
|
3476
|
-
{
|
|
3477
|
-
key: ["job", "run-3"],
|
|
3478
|
-
value: job2("run-3", "land", PUSHER, endScanned("run-3", 0, `${NEXT2}
|
|
3479
|
-
`), { step: { for: PUSHER } })
|
|
3480
|
-
},
|
|
3481
|
-
{ key: ["job", "run-4"], value: scanStep("run-4", PUSHER, "run-3", `${NEXT2}
|
|
3482
|
-
`, end2("run-4", 0, `${NEXT2}
|
|
3483
|
-
`)) },
|
|
3484
|
-
{
|
|
3485
|
-
key: ["job", "run-5"],
|
|
3486
|
-
value: job2("run-5", "bundle", OWNER2, end2("run-5", 0, `0
|
|
3487
|
-
${NEXT2}
|
|
3488
|
-
`), {
|
|
3489
|
-
step: { sync: true }
|
|
3490
|
-
})
|
|
3491
|
-
},
|
|
3492
3479
|
{
|
|
3493
3480
|
key: ["repo"],
|
|
3494
3481
|
value: repo({ head: NEXT2, synced: { job: PUSH, kind: "push", asker: "brain", code: 0, err: "" } })
|
|
@@ -3531,8 +3518,8 @@ ${NEXT2}
|
|
|
3531
3518
|
"drop",
|
|
3532
3519
|
{ on: "lobe-1" },
|
|
3533
3520
|
[
|
|
3534
|
-
|
|
3535
|
-
|
|
3521
|
+
ends2(HELD),
|
|
3522
|
+
ends2(),
|
|
3536
3523
|
{ placeholder: "mouth", method: "drop", args: { far: STOOD }, answer: done2 },
|
|
3537
3524
|
{
|
|
3538
3525
|
placeholder: "nerves",
|
|
@@ -3543,7 +3530,7 @@ ${NEXT2}
|
|
|
3543
3530
|
],
|
|
3544
3531
|
done2
|
|
3545
3532
|
),
|
|
3546
|
-
asked3(OWNER2, "push", {}, [
|
|
3533
|
+
asked3(OWNER2, "push", {}, [ends2()], refused2)
|
|
3547
3534
|
],
|
|
3548
3535
|
yields: [
|
|
3549
3536
|
{ key: ["back", NEAR2], value: true },
|
|
@@ -3587,7 +3574,7 @@ var REFUSED_PUSH = [
|
|
|
3587
3574
|
],
|
|
3588
3575
|
false
|
|
3589
3576
|
),
|
|
3590
|
-
asked3(OWNER2, "pull", {}, [
|
|
3577
|
+
asked3(OWNER2, "pull", {}, [ends2(HELD), CAPPED, tickSet], { result: { job: PULL } })
|
|
3591
3578
|
],
|
|
3592
3579
|
yields: [
|
|
3593
3580
|
{ key: ["back", NEAR2], value: true },
|
|
@@ -3638,7 +3625,7 @@ var STALLED_PUSH = [
|
|
|
3638
3625
|
],
|
|
3639
3626
|
asks: [
|
|
3640
3627
|
asked3(OWNER2, "pull", {}, [told2(NEAR2, PUSH, "push", 1, `${NEXT2}
|
|
3641
|
-
`, STALE),
|
|
3628
|
+
`, STALE), ends2(HELD), CAPPED, tickSet], {
|
|
3642
3629
|
result: { job: PULL }
|
|
3643
3630
|
})
|
|
3644
3631
|
],
|
|
@@ -3688,7 +3675,7 @@ var STALLED_PUSH = [
|
|
|
3688
3675
|
],
|
|
3689
3676
|
asks: [
|
|
3690
3677
|
asked3(OWNER2, "pull", {}, [told2(NEAR2, PUSH, "push", 1, `${NEXT2}
|
|
3691
|
-
`, STALE_HEADED),
|
|
3678
|
+
`, STALE_HEADED), ends2(HELD), CAPPED, tickSet], {
|
|
3692
3679
|
result: { job: PULL }
|
|
3693
3680
|
})
|
|
3694
3681
|
],
|
|
@@ -3779,7 +3766,7 @@ var HANDED = [
|
|
|
3779
3766
|
asked3(OWNER2, "status", {}, [ran2("status", {}, "run-4")], { result: { job: "run-4" } }),
|
|
3780
3767
|
asked3(NEAR2, "stop", {}, [], refused2),
|
|
3781
3768
|
asked3(NEAR2, "jobs", null, [], {
|
|
3782
|
-
result: [job2("run-1", "run", NEAR2, { run: "run-1", code: -1, at: TIME4 })]
|
|
3769
|
+
result: { jobs: [job2("run-1", "run", NEAR2, { run: "run-1", code: -1, at: TIME4 })], cursor: null }
|
|
3783
3770
|
})
|
|
3784
3771
|
],
|
|
3785
3772
|
yields: [
|
|
@@ -3787,6 +3774,7 @@ var HANDED = [
|
|
|
3787
3774
|
{ key: ["by", NEAR2, "run-1"], value: null },
|
|
3788
3775
|
{ key: ["by", OWNER2, "run-4"], value: null },
|
|
3789
3776
|
{ key: ["job", "run-1"], value: job2("run-1", "run", NEAR2, end2("run-1", -1, "", STOPPED)) },
|
|
3777
|
+
...endedKept(NEAR2, "run-1"),
|
|
3790
3778
|
{ key: ["job", "run-4"], value: job2("run-4", "status", OWNER2) },
|
|
3791
3779
|
{ key: ["repo"], value: { ...AHEAD3, doing: "run-4" } }
|
|
3792
3780
|
]
|
|
@@ -3823,10 +3811,7 @@ var HANDED = [
|
|
|
3823
3811
|
value: job2("run-1", "run", NEAR2, end2("run-1", 1, "", "its secret file was not written: no room"))
|
|
3824
3812
|
},
|
|
3825
3813
|
{ key: ["job", "run-2"], value: job2("run-2", "run", NEAR2, end2("run-2", 0, "Shipped with [secret]\n")) },
|
|
3826
|
-
|
|
3827
|
-
key: ["job", "run-3"],
|
|
3828
|
-
value: job2("run-3", "run", NEAR2, end2("run-3", 0, "Shipped with [secret]\n"), { step: { ran: "run-2" } })
|
|
3829
|
-
},
|
|
3814
|
+
...endedKept(NEAR2, "run-1", "run-2"),
|
|
3830
3815
|
{ key: ["repo"], value: AHEAD3 },
|
|
3831
3816
|
{ key: ["secret", "API_KEY"], value: TOKEN2 }
|
|
3832
3817
|
]
|
|
@@ -3879,7 +3864,7 @@ var accept = {
|
|
|
3879
3864
|
args: { invitation: "nervur:issuer", placeholder: HOLDING, note: { repo: NAME, credential: SECRET } },
|
|
3880
3865
|
answer: { result: { far: ISSUER } }
|
|
3881
3866
|
};
|
|
3882
|
-
var stands =
|
|
3867
|
+
var stands = ends2(issued);
|
|
3883
3868
|
var standingOfIssuer = {
|
|
3884
3869
|
placeholder: "nerves",
|
|
3885
3870
|
method: "relation",
|
|
@@ -3929,7 +3914,7 @@ var KEYED = [
|
|
|
3929
3914
|
endedThen("run-1", "run", 0, "", "", [ran2("run", SHIP2, "run-2")]),
|
|
3930
3915
|
endedThen("run-2", "run", 0, `shipped with ${TOKEN2}
|
|
3931
3916
|
`, "", []),
|
|
3932
|
-
asked3(OWNER2, "state", {}, [FOLDER_STATE,
|
|
3917
|
+
asked3(OWNER2, "state", {}, [FOLDER_STATE, ends2()], {
|
|
3933
3918
|
result: {
|
|
3934
3919
|
...AHEAD4,
|
|
3935
3920
|
on: [],
|
|
@@ -3944,7 +3929,7 @@ var KEYED = [
|
|
|
3944
3929
|
yields: [
|
|
3945
3930
|
by(OWNER2, "run-1"),
|
|
3946
3931
|
firstJob("run-1", end2("run-1", 0, "shipped with [secret]\n")),
|
|
3947
|
-
|
|
3932
|
+
...endedKept(OWNER2, "run-1"),
|
|
3948
3933
|
READY,
|
|
3949
3934
|
KEY,
|
|
3950
3935
|
WROTE
|
|
@@ -3963,6 +3948,7 @@ var KEYED = [
|
|
|
3963
3948
|
yields: [
|
|
3964
3949
|
by(OWNER2, "run-1"),
|
|
3965
3950
|
{ key: ["job", "run-1"], value: job2("run-1", "run", OWNER2, end2("run-1", 1, "", NO_KEY)) },
|
|
3951
|
+
...endedKept(OWNER2, "run-1"),
|
|
3966
3952
|
READY
|
|
3967
3953
|
]
|
|
3968
3954
|
},
|
|
@@ -3979,7 +3965,7 @@ var KEYED = [
|
|
|
3979
3965
|
endedThen("run-1", "run", 0, "", "", [ran2("run", SHIP2, "run-2")]),
|
|
3980
3966
|
endedThen("run-2", "run", 0, "", "", [])
|
|
3981
3967
|
],
|
|
3982
|
-
yields: [by(OWNER2, "run-1"), firstJob("run-1", end2("run-1", 0)),
|
|
3968
|
+
yields: [by(OWNER2, "run-1"), firstJob("run-1", end2("run-1", 0)), ...endedKept(OWNER2, "run-1"), READY]
|
|
3983
3969
|
},
|
|
3984
3970
|
{
|
|
3985
3971
|
says: "A key lives in the cells, which the self keeps, never in the files of the body: a restore with the disk lost holds it, and `.env` is written again before the next run; a file not written ends the run unrun, saying why.",
|
|
@@ -4002,6 +3988,7 @@ var KEYED = [
|
|
|
4002
3988
|
end2("run-1", 1, "", "its secret file was not written: .env is not kept out by .gitignore")
|
|
4003
3989
|
)
|
|
4004
3990
|
},
|
|
3991
|
+
...endedKept(OWNER2, "run-1"),
|
|
4005
3992
|
firstJob("run-3", null),
|
|
4006
3993
|
stepJob("run-4", "run-3", null),
|
|
4007
3994
|
{ key: ["repo"], value: { ...AHEAD4, doing: "run-4" } },
|
|
@@ -4036,7 +4023,7 @@ var KEYED = [
|
|
|
4036
4023
|
by(OWNER2, "run-3"),
|
|
4037
4024
|
WROTE,
|
|
4038
4025
|
firstJob("run-1", end2("run-1", 0)),
|
|
4039
|
-
|
|
4026
|
+
...endedKept(OWNER2, "run-1"),
|
|
4040
4027
|
firstJob("run-3", null),
|
|
4041
4028
|
{ key: ["renews"], value: RENEWS + 27 * DAY },
|
|
4042
4029
|
{ key: ["repo"], value: { ...AHEAD4, doing: "run-3" } }
|
|
@@ -4146,7 +4133,7 @@ var KEYED = [
|
|
|
4146
4133
|
yields: [
|
|
4147
4134
|
by(RUNNER, "run-1"),
|
|
4148
4135
|
firstJob("run-1", end2("run-1", 0, "shipped with [secret]\n"), RUNNER),
|
|
4149
|
-
|
|
4136
|
+
...endedKept(RUNNER, "run-1"),
|
|
4150
4137
|
READY,
|
|
4151
4138
|
KEY,
|
|
4152
4139
|
WROTE
|
|
@@ -4221,13 +4208,8 @@ var MADE5 = [
|
|
|
4221
4208
|
key: ["job", "run-1"],
|
|
4222
4209
|
value: job2("run-1", "init", OWNER2, endScanned("run-1", 0, STARTED), { starter: true })
|
|
4223
4210
|
},
|
|
4224
|
-
|
|
4225
|
-
key: ["job", "run-2"],
|
|
4226
|
-
value: job2("run-2", "commit", OWNER2, endScanned("run-2", 0, STARTED), { step: { commit: "run-1" } })
|
|
4227
|
-
},
|
|
4211
|
+
...endedKept(OWNER2, "run-1"),
|
|
4228
4212
|
{ key: ["conform"], value: HEAD2 },
|
|
4229
|
-
{ key: ["job", "run-3"], value: scanStep("run-3", OWNER2, "run-2", STARTED, end2("run-3", 0, `${HEAD2}
|
|
4230
|
-
`)) },
|
|
4231
4213
|
{ key: ["repo"], value: repo({ ready: true, head: HEAD2 }) },
|
|
4232
4214
|
scannedAt(HEAD2)
|
|
4233
4215
|
]
|
|
@@ -4253,7 +4235,7 @@ var MADE5 = [
|
|
|
4253
4235
|
"take",
|
|
4254
4236
|
{ push: PUSH, at: 0, pieces: 1, bytes: ONE4, tells: BACK_INVITATION },
|
|
4255
4237
|
[
|
|
4256
|
-
|
|
4238
|
+
ends2(),
|
|
4257
4239
|
takenBack(),
|
|
4258
4240
|
jailer("put", { at: 0, pieces: 1, bytes: ONE4, as: `in-${PUSHER}` }, done2),
|
|
4259
4241
|
ran2("bring", { as: `in-${PUSHER}`, pieces: 1 }, "run-2")
|
|
@@ -4281,30 +4263,7 @@ new
|
|
|
4281
4263
|
value: taken(1, ONE4, { run: "run-2", check: GREEN, landing: "run-4", landed: true })
|
|
4282
4264
|
},
|
|
4283
4265
|
{ key: ["job", "run-1"], value: job2("run-1", "init", OWNER2, end2("run-1", 0, "")) },
|
|
4284
|
-
|
|
4285
|
-
key: ["job", "run-2"],
|
|
4286
|
-
value: job2("run-2", "bring", PUSHER, end2("run-2", 0, `${NEXT2}
|
|
4287
|
-
new
|
|
4288
|
-
`), {
|
|
4289
|
-
step: { for: PUSHER }
|
|
4290
|
-
})
|
|
4291
|
-
},
|
|
4292
|
-
{
|
|
4293
|
-
key: ["job", "run-3"],
|
|
4294
|
-
value: job2("run-3", "check", PUSHER, end2("run-3", 0, GREEN.out), {
|
|
4295
|
-
step: { check: `in-${PUSHER}` }
|
|
4296
|
-
})
|
|
4297
|
-
},
|
|
4298
|
-
{
|
|
4299
|
-
key: ["job", "run-4"],
|
|
4300
|
-
value: job2("run-4", "land", PUSHER, endScanned("run-4", 0, `${NEXT2}
|
|
4301
|
-
`), {
|
|
4302
|
-
step: { for: PUSHER }
|
|
4303
|
-
})
|
|
4304
|
-
},
|
|
4305
|
-
{ key: ["job", "run-5"], value: scanStep("run-5", PUSHER, "run-4", `${NEXT2}
|
|
4306
|
-
`, end2("run-5", 0, `${NEXT2}
|
|
4307
|
-
`)) },
|
|
4266
|
+
...endedKept(OWNER2, "run-1"),
|
|
4308
4267
|
{ key: ["repo"], value: repo({ head: NEXT2 }) },
|
|
4309
4268
|
scannedAt(NEXT2)
|
|
4310
4269
|
]
|
|
@@ -4343,8 +4302,7 @@ new
|
|
|
4343
4302
|
value: job2("run-1", "init", OWNER2, end2("run-1", 1, "", "the folder holds no repo to stand on"))
|
|
4344
4303
|
},
|
|
4345
4304
|
{ key: ["job", "run-2"], value: job2("run-2", "init", OWNER2, endScanned("run-2", 0, STARTED)) },
|
|
4346
|
-
|
|
4347
|
-
`)) },
|
|
4305
|
+
...endedKept(OWNER2, "run-1", "run-2"),
|
|
4348
4306
|
{ key: ["repo"], value: repo() },
|
|
4349
4307
|
scannedAt(HEAD2)
|
|
4350
4308
|
]
|
|
@@ -4357,7 +4315,7 @@ new
|
|
|
4357
4315
|
OWNER2,
|
|
4358
4316
|
"accept",
|
|
4359
4317
|
{ name: NAME, invitation: INVITATION },
|
|
4360
|
-
[WIRED3,
|
|
4318
|
+
[WIRED3, ends2(), accept2, ran2("init", {}, "run-1")],
|
|
4361
4319
|
begun2("run-1")
|
|
4362
4320
|
),
|
|
4363
4321
|
endedThen("run-1", "init", 0, "", "", [CAPPED, tickSet]),
|
|
@@ -4385,7 +4343,7 @@ new
|
|
|
4385
4343
|
OWNER2,
|
|
4386
4344
|
"commit",
|
|
4387
4345
|
{ message: "mine", gate: false },
|
|
4388
|
-
[
|
|
4346
|
+
[ends2(), ran2("commit", { message: "mine", parts: PARTS2 }, "run-6")],
|
|
4389
4347
|
begun2("run-6")
|
|
4390
4348
|
)
|
|
4391
4349
|
],
|
|
@@ -4395,28 +4353,7 @@ new
|
|
|
4395
4353
|
key: ["job", "run-1"],
|
|
4396
4354
|
value: job2("run-1", "init", OWNER2, ACCEPTED, { pulls: "lobe-1" })
|
|
4397
4355
|
},
|
|
4398
|
-
|
|
4399
|
-
key: ["job", "run-2"],
|
|
4400
|
-
value: job2("run-2", "bring", OWNER2, end2("run-2", 0, `${HEAD2}
|
|
4401
|
-
new
|
|
4402
|
-
`), {
|
|
4403
|
-
step: { sync: true }
|
|
4404
|
-
})
|
|
4405
|
-
},
|
|
4406
|
-
{
|
|
4407
|
-
key: ["job", "run-3"],
|
|
4408
|
-
value: job2("run-3", "check", OWNER2, end2("run-3", 0, GREEN.out), {
|
|
4409
|
-
step: { check: "pull" }
|
|
4410
|
-
})
|
|
4411
|
-
},
|
|
4412
|
-
{
|
|
4413
|
-
key: ["job", "run-4"],
|
|
4414
|
-
value: job2("run-4", "land", OWNER2, endScanned("run-4", 0, `${HEAD2}
|
|
4415
|
-
`), { step: { sync: true } })
|
|
4416
|
-
},
|
|
4417
|
-
{ key: ["job", "run-5"], value: scanStep("run-5", OWNER2, "run-4", `${HEAD2}
|
|
4418
|
-
`, end2("run-5", 0, `${HEAD2}
|
|
4419
|
-
`)) },
|
|
4356
|
+
...endedKept(OWNER2, "run-1"),
|
|
4420
4357
|
{ key: ["by", OWNER2, "run-6"], value: null },
|
|
4421
4358
|
{ key: ["job", "run-6"], value: job2("run-6", "commit", OWNER2) },
|
|
4422
4359
|
scannedAt(HEAD2),
|
|
@@ -4433,11 +4370,9 @@ new
|
|
|
4433
4370
|
|
|
4434
4371
|
var ONE5 = new Uint8Array([1, 2, 3]);
|
|
4435
4372
|
var PULL3 = syncJob("pull");
|
|
4436
|
-
var forPusher2 = (run, kind, finished = null) => job2(run, kind, PUSHER, finished, { step: { for: PUSHER } });
|
|
4437
4373
|
var REBUILDING = (finished) => job2("run-1", "init", OWNER2, finished, { step: { rebuild: true } });
|
|
4438
4374
|
var PULLED_WHOLE = { ...end2("run-1", 0, `${NEXT2}
|
|
4439
4375
|
`), check: GREEN };
|
|
4440
|
-
var synced = (run, kind, finished = null) => job2(run, kind, OWNER2, finished, { step: { sync: true } });
|
|
4441
4376
|
var REBUILT = [
|
|
4442
4377
|
{
|
|
4443
4378
|
says: "After a restore, which carries the cells and no repo's bytes, a repo its cells keep ready whose folder the jailer finds holding none answers not ready, saying its folder holds no repo and that `rebuild` fills it again; its cells are left as they were.",
|
|
@@ -4447,7 +4382,7 @@ var REBUILT = [
|
|
|
4447
4382
|
OWNER2,
|
|
4448
4383
|
"state",
|
|
4449
4384
|
{},
|
|
4450
|
-
[jailer("state", {}, { result: { folder: FOLDER, made: false, doing: null } }),
|
|
4385
|
+
[jailer("state", {}, { result: { folder: FOLDER, made: false, doing: null } }), ends2()],
|
|
4451
4386
|
{
|
|
4452
4387
|
result: {
|
|
4453
4388
|
...repo(),
|
|
@@ -4470,7 +4405,7 @@ var REBUILT = [
|
|
|
4470
4405
|
asks: [
|
|
4471
4406
|
asked3(NEAR2, "rebuild", {}, [], refused2),
|
|
4472
4407
|
asked3(OWNER2, "rebuild", {}, [ran2("init", {}, "run-1")], begun2("run-1")),
|
|
4473
|
-
endedThen("run-1", "init", 0, "", "", [
|
|
4408
|
+
endedThen("run-1", "init", 0, "", "", [ends2(HELD), CAPPED, tickSet]),
|
|
4474
4409
|
asked3(OWNER2, "job", { job: "run-1" }, [], { result: REBUILDING(null) }),
|
|
4475
4410
|
tickMoved([overLobe("give", { since: null }, { result: { pieces: 1, head: NEXT2 } })]),
|
|
4476
4411
|
tickMoved([
|
|
@@ -4494,26 +4429,6 @@ holds
|
|
|
4494
4429
|
],
|
|
4495
4430
|
yields: [
|
|
4496
4431
|
{ key: ["job", "run-1"], value: REBUILDING(PULLED_WHOLE) },
|
|
4497
|
-
{ key: ["job", "run-2"], value: synced("run-2", "bring", end2("run-2", 0, `${NEXT2}
|
|
4498
|
-
new
|
|
4499
|
-
`)) },
|
|
4500
|
-
{
|
|
4501
|
-
key: ["job", "run-3"],
|
|
4502
|
-
value: job2("run-3", "check", OWNER2, end2("run-3", 0, GREEN.out), {
|
|
4503
|
-
step: { check: "pull" }
|
|
4504
|
-
})
|
|
4505
|
-
},
|
|
4506
|
-
{ key: ["job", "run-4"], value: synced("run-4", "land", endScanned("run-4", 0, `${NEXT2}
|
|
4507
|
-
`)) },
|
|
4508
|
-
{ key: ["job", "run-5"], value: scanStep("run-5", OWNER2, "run-4", `${NEXT2}
|
|
4509
|
-
`, end2("run-5", 0, `${NEXT2}
|
|
4510
|
-
`)) },
|
|
4511
|
-
{
|
|
4512
|
-
key: ["job", "run-6"],
|
|
4513
|
-
value: synced("run-6", "head", end2("run-6", 0, `${NEXT2}
|
|
4514
|
-
holds
|
|
4515
|
-
`))
|
|
4516
|
-
},
|
|
4517
4432
|
scannedAt(NEXT2),
|
|
4518
4433
|
{
|
|
4519
4434
|
key: ["repo"],
|
|
@@ -4529,7 +4444,7 @@ holds
|
|
|
4529
4444
|
cells: [{ key: ["repo"], value: repo() }],
|
|
4530
4445
|
asks: [
|
|
4531
4446
|
asked3(OWNER2, "rebuild", {}, [ran2("init", {}, "run-1")], begun2("run-1")),
|
|
4532
|
-
endedThen("run-1", "init", 0, "", "", [
|
|
4447
|
+
endedThen("run-1", "init", 0, "", "", [ends2(OCCUPANT_PUSHER, OCCUPANT_READER)]),
|
|
4533
4448
|
asked3(PUSHER, "head", null, [], { result: { head: null } }),
|
|
4534
4449
|
asked3(READER, "give", { since: null }, [], refused2),
|
|
4535
4450
|
asked3(
|
|
@@ -4537,7 +4452,7 @@ holds
|
|
|
4537
4452
|
"take",
|
|
4538
4453
|
{ push: PUSH, at: 0, pieces: 1, bytes: ONE5, tells: BACK_INVITATION },
|
|
4539
4454
|
[
|
|
4540
|
-
|
|
4455
|
+
ends2(),
|
|
4541
4456
|
takenBack(),
|
|
4542
4457
|
jailer("put", { at: 0, pieces: 1, bytes: ONE5, as: `in-${PUSHER}` }, done2),
|
|
4543
4458
|
ran2("bring", { as: `in-${PUSHER}`, pieces: 1 }, "run-2")
|
|
@@ -4571,29 +4486,6 @@ holds
|
|
|
4571
4486
|
key: ["job", "run-1"],
|
|
4572
4487
|
value: job2("run-1", "init", OWNER2, end2("run-1", 0, ""), { step: { rebuild: true } })
|
|
4573
4488
|
},
|
|
4574
|
-
{
|
|
4575
|
-
key: ["job", "run-2"],
|
|
4576
|
-
value: forPusher2("run-2", "bring", end2("run-2", 0, `${NEXT2}
|
|
4577
|
-
new
|
|
4578
|
-
`))
|
|
4579
|
-
},
|
|
4580
|
-
{
|
|
4581
|
-
key: ["job", "run-3"],
|
|
4582
|
-
value: job2("run-3", "check", PUSHER, end2("run-3", 0, GREEN.out), {
|
|
4583
|
-
step: { check: `in-${PUSHER}` }
|
|
4584
|
-
})
|
|
4585
|
-
},
|
|
4586
|
-
{ key: ["job", "run-4"], value: forPusher2("run-4", "land", endScanned("run-4", 0, `${NEXT2}
|
|
4587
|
-
`)) },
|
|
4588
|
-
{ key: ["job", "run-5"], value: scanStep("run-5", PUSHER, "run-4", `${NEXT2}
|
|
4589
|
-
`, end2("run-5", 0, `${NEXT2}
|
|
4590
|
-
`)) },
|
|
4591
|
-
{
|
|
4592
|
-
key: ["job", "run-6"],
|
|
4593
|
-
value: forPusher2("run-6", "head", end2("run-6", 0, `${NEXT2}
|
|
4594
|
-
holds
|
|
4595
|
-
`))
|
|
4596
|
-
},
|
|
4597
4489
|
{ key: ["repo"], value: repo({ head: NEXT2 }) },
|
|
4598
4490
|
scannedAt(NEXT2)
|
|
4599
4491
|
]
|
|
@@ -4611,7 +4503,7 @@ holds
|
|
|
4611
4503
|
}
|
|
4612
4504
|
],
|
|
4613
4505
|
asks: [
|
|
4614
|
-
asked3(OWNER2, "remove", {}, [
|
|
4506
|
+
asked3(OWNER2, "remove", {}, [ends2(OCCUPANT_READER)], refused2),
|
|
4615
4507
|
asked3(
|
|
4616
4508
|
OWNER2,
|
|
4617
4509
|
"drop",
|
|
@@ -4623,7 +4515,7 @@ holds
|
|
|
4623
4515
|
done2
|
|
4624
4516
|
),
|
|
4625
4517
|
asked3(NEAR2, "remove", {}, [], refused2),
|
|
4626
|
-
asked3(OWNER2, "remove", {}, [
|
|
4518
|
+
asked3(OWNER2, "remove", {}, [ends2()], done2),
|
|
4627
4519
|
asked3(OWNER2, "state", {}, [], done2)
|
|
4628
4520
|
],
|
|
4629
4521
|
yields: []
|
|
@@ -4661,8 +4553,8 @@ var RELINKED = [
|
|
|
4661
4553
|
"relink",
|
|
4662
4554
|
{ invitation: "nervur:x", instead: "x" },
|
|
4663
4555
|
[
|
|
4664
|
-
|
|
4665
|
-
|
|
4556
|
+
ends2(HELD_X),
|
|
4557
|
+
ends2(),
|
|
4666
4558
|
{ placeholder: "mouth", method: "drop", args: { far: STOOD }, answer: done2 },
|
|
4667
4559
|
{ placeholder: "nerves", method: "unwire", args: { placeholder: "x" }, answer: done2 },
|
|
4668
4560
|
accepted2("nervur:x", "x")
|
|
@@ -4693,7 +4585,7 @@ var RELINKED = [
|
|
|
4693
4585
|
OWNER2,
|
|
4694
4586
|
"relink",
|
|
4695
4587
|
{ invitation: "nervur:z", instead: "x", placeholder: "z" },
|
|
4696
|
-
[
|
|
4588
|
+
[ends2(HELD_X, HELD_Z), read2("x", "z")],
|
|
4697
4589
|
{ error: { code: "refused", message: "this lobe holds z already" } }
|
|
4698
4590
|
)
|
|
4699
4591
|
],
|
|
@@ -4741,7 +4633,6 @@ ${LOST2}`, CHECK_LOST)
|
|
|
4741
4633
|
yields: [
|
|
4742
4634
|
pushed({ check: CHECK_LOST, failed: `its check is red:
|
|
4743
4635
|
${LOST2}`, told: true }),
|
|
4744
|
-
{ key: ["job", "run-1"], value: { ...CHECKING, ended: end2("run-1", -1, "", LOST2) } },
|
|
4745
4636
|
{ key: ["repo"], value: repo() }
|
|
4746
4637
|
]
|
|
4747
4638
|
},
|
|
@@ -4780,12 +4671,6 @@ ${LOST2}`, told: true }),
|
|
|
4780
4671
|
],
|
|
4781
4672
|
yields: [
|
|
4782
4673
|
{ key: ["back", NEAR2], value: true },
|
|
4783
|
-
{
|
|
4784
|
-
key: ["job", "run-1"],
|
|
4785
|
-
value: job2("run-1", "bundle", NEAR2, end2("run-1", -1, "", LOST2), {
|
|
4786
|
-
step: { sync: true }
|
|
4787
|
-
})
|
|
4788
|
-
},
|
|
4789
4674
|
{
|
|
4790
4675
|
key: ["repo"],
|
|
4791
4676
|
value: { ...AHEAD5, synced: { job: PUSH2, kind: "push", asker: NEAR2, code: -1, err: LOST2 } }
|
|
@@ -4857,7 +4742,7 @@ var ACME_GET = { kind: "faculty", label: "acme.look", version: "0.1.0" };
|
|
|
4857
4742
|
var NOTES_GET = { kind: "faculty", label: "notes", version: "0.1.0" };
|
|
4858
4743
|
var RAISE = "version 0.1.0 was told with other bytes: raise its version";
|
|
4859
4744
|
var MOVED_ACME = { ...ACME, why: RAISE };
|
|
4860
|
-
var
|
|
4745
|
+
var SCAN = lines(
|
|
4861
4746
|
"t faculties/bare/faculty.js",
|
|
4862
4747
|
"t faculties/draft/faculty.js",
|
|
4863
4748
|
"t faculties/draft/versions.json",
|
|
@@ -4904,12 +4789,11 @@ var SCANNING = [
|
|
|
4904
4789
|
`) },
|
|
4905
4790
|
{ key: ["repo"], value: repo({ doing: "run-1" }) }
|
|
4906
4791
|
];
|
|
4907
|
-
var
|
|
4792
|
+
var SCAN_ENDED = [
|
|
4908
4793
|
{ key: ["by", OWNER2, "run-0"], value: null },
|
|
4909
4794
|
{ key: ["job", "run-0"], value: job2("run-0", "commit", OWNER2, endScanned("run-0", 0, `${HEAD2}
|
|
4910
4795
|
`)) },
|
|
4911
|
-
|
|
4912
|
-
`, end2("run-1", 0, out)) }
|
|
4796
|
+
...endedKept(OWNER2, "run-0")
|
|
4913
4797
|
];
|
|
4914
4798
|
var notesTold = (heard, digest = DIGEST) => ({
|
|
4915
4799
|
key: ["told", "faculty", "notes", "0.1.0"],
|
|
@@ -4970,10 +4854,10 @@ var SCANNED3 = [
|
|
|
4970
4854
|
says: "A scan tells each faculty and each design, as its look, committed and clean once, by the version versions.json holds, and the library `changed`; the rest are listed with why; a look is built by a job.",
|
|
4971
4855
|
cells: SCANNING,
|
|
4972
4856
|
asks: [
|
|
4973
|
-
endedThen("run-1", "scan", 0,
|
|
4857
|
+
endedThen("run-1", "scan", 0, SCAN, "", [
|
|
4974
4858
|
...notesRead,
|
|
4975
4859
|
...designRead,
|
|
4976
|
-
|
|
4860
|
+
ends2(),
|
|
4977
4861
|
library(true),
|
|
4978
4862
|
changed({ kind: "faculty", label: "notes", version: "0.1.0", digest: DIGEST }),
|
|
4979
4863
|
changed({ ...ACME_GET, digest: LOOK2 })
|
|
@@ -5015,17 +4899,20 @@ var SCANNED3 = [
|
|
|
5015
4899
|
asked3(NEAR2, "get", { ...ACME_GET, version: null }, [read("faculties/acme.look/faculty.js", null)], absent2),
|
|
5016
4900
|
asked3(LIBRARY, "get", { ...ACME_GET, label: "bare" }, [], absent2),
|
|
5017
4901
|
asked3(LIBRARY, "told", {}, [], {
|
|
5018
|
-
result:
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
4902
|
+
result: {
|
|
4903
|
+
told: [
|
|
4904
|
+
{
|
|
4905
|
+
kind: "faculty",
|
|
4906
|
+
label: "notes",
|
|
4907
|
+
version: "0.1.0",
|
|
4908
|
+
digest: DIGEST,
|
|
4909
|
+
heard: true,
|
|
4910
|
+
at: TIME4
|
|
4911
|
+
},
|
|
4912
|
+
{ ...ACME_GET, digest: LOOK2, assets: PARTS3, heard: true, at: TIME4 }
|
|
4913
|
+
],
|
|
4914
|
+
cursor: null
|
|
4915
|
+
}
|
|
5029
4916
|
}),
|
|
5030
4917
|
asked3(LIBRARY, "told", { tells: "nervur:hears" }, [], refused2),
|
|
5031
4918
|
asked3(FAR_LIBRARY, "get", { kind: "faculty", label: "notes", version: "0.1.0" }, [], {
|
|
@@ -5062,9 +4949,11 @@ var SCANNED3 = [
|
|
|
5062
4949
|
built: { design: "acme", version: "0.1.0" }
|
|
5063
4950
|
})
|
|
5064
4951
|
},
|
|
4952
|
+
...endedKept(NEAR2, "run-2"),
|
|
5065
4953
|
{ key: ["look", "acme", "0.1.0"], value: { source: LOOK_SOURCE } },
|
|
5066
4954
|
...STILL,
|
|
5067
|
-
...
|
|
4955
|
+
...SCAN_ENDED,
|
|
4956
|
+
...toldInOrder(["faculty", "notes", "0.1.0"], ["faculty", "acme.look", "0.1.0"]),
|
|
5068
4957
|
acmeTold(true),
|
|
5069
4958
|
notesTold(true),
|
|
5070
4959
|
notesText,
|
|
@@ -5086,7 +4975,7 @@ var SCANNED3 = [
|
|
|
5086
4975
|
endedThen("run-1", "scan", 0, CARRYING, "", [
|
|
5087
4976
|
read("faculties/reminders/faculty.js", REMINDERS),
|
|
5088
4977
|
read("faculties/reminders/versions.json", `{ "0.1.0": "${REMINDERS_DIGEST}" }`),
|
|
5089
|
-
|
|
4978
|
+
ends2(),
|
|
5090
4979
|
library(true),
|
|
5091
4980
|
changed({ ...REMINDERS_GET, digest: REMINDERS_DIGEST })
|
|
5092
4981
|
]),
|
|
@@ -5114,7 +5003,8 @@ var SCANNED3 = [
|
|
|
5114
5003
|
],
|
|
5115
5004
|
yields: [
|
|
5116
5005
|
...STILL,
|
|
5117
|
-
...
|
|
5006
|
+
...SCAN_ENDED,
|
|
5007
|
+
...toldInOrder(["faculty", "reminders", "0.1.0"]),
|
|
5118
5008
|
{
|
|
5119
5009
|
key: ["told", "faculty", "reminders", "0.1.0"],
|
|
5120
5010
|
value: { digest: REMINDERS_DIGEST, assets: REMINDERS_ASSETS, heard: true, at: TIME4 }
|
|
@@ -5155,11 +5045,7 @@ var SCANNED3 = [
|
|
|
5155
5045
|
var ONE6 = new Uint8Array([1, 2, 3]);
|
|
5156
5046
|
var TWO2 = new Uint8Array([4, 5]);
|
|
5157
5047
|
var put = (at2, pieces, bytes) => jailer("put", { at: at2, pieces, bytes, as: `in-${PUSHER}` }, done2);
|
|
5158
|
-
var forFar = (run, kind, far
|
|
5159
|
-
var checking = (run, finished = null) => job2(run, "check", PUSHER, finished, { step: { check: `in-${PUSHER}` } });
|
|
5160
|
-
var LANDED_SCAN = scanStep("run-4", PUSHER, "run-3", `${NEXT2}
|
|
5161
|
-
`, end2("run-4", 0, `${NEXT2}
|
|
5162
|
-
`));
|
|
5048
|
+
var forFar = (run, kind, far) => job2(run, kind, far, null, { step: { for: far } });
|
|
5163
5049
|
var CONFLICT = "it meets a conflict with main: merge it where it is authored, and send it again";
|
|
5164
5050
|
var REFUSED2 = `its check is red:
|
|
5165
5051
|
${BROKEN.trim()}`;
|
|
@@ -5183,7 +5069,7 @@ var PUSHED = [
|
|
|
5183
5069
|
"take",
|
|
5184
5070
|
{ push: PUSH, at: 0, pieces: 2, bytes: ONE6, tells: "nervur:spent" },
|
|
5185
5071
|
[
|
|
5186
|
-
|
|
5072
|
+
ends2(),
|
|
5187
5073
|
{
|
|
5188
5074
|
placeholder: "mouth",
|
|
5189
5075
|
method: "accept",
|
|
@@ -5201,7 +5087,7 @@ var PUSHED = [
|
|
|
5201
5087
|
PUSHER,
|
|
5202
5088
|
"take",
|
|
5203
5089
|
{ push: PUSH, at: 0, pieces: 2, bytes: ONE6, tells: BACK_INVITATION },
|
|
5204
|
-
[
|
|
5090
|
+
[ends2(), takenBack(), put(0, 2, ONE6)],
|
|
5205
5091
|
done2
|
|
5206
5092
|
),
|
|
5207
5093
|
asked3(PUSHER, "take", { push: PUSH, at: 0, pieces: 2, bytes: ONE6, tells: BACK_INVITATION }, [], done2),
|
|
@@ -5232,19 +5118,6 @@ forward
|
|
|
5232
5118
|
key: ["in", PUSHER],
|
|
5233
5119
|
value: taken(2, TWO2, { check: GREEN, landing: "run-3", landed: true })
|
|
5234
5120
|
},
|
|
5235
|
-
{
|
|
5236
|
-
key: ["job", "run-1"],
|
|
5237
|
-
value: forFar("run-1", "bring", PUSHER, end2("run-1", 0, `${NEXT2}
|
|
5238
|
-
forward
|
|
5239
|
-
`))
|
|
5240
|
-
},
|
|
5241
|
-
{ key: ["job", "run-2"], value: checking("run-2", end2("run-2", 0, GREEN.out)) },
|
|
5242
|
-
{
|
|
5243
|
-
key: ["job", "run-3"],
|
|
5244
|
-
value: forFar("run-3", "land", PUSHER, endScanned("run-3", 0, `${NEXT2}
|
|
5245
|
-
`))
|
|
5246
|
-
},
|
|
5247
|
-
{ key: ["job", "run-4"], value: LANDED_SCAN },
|
|
5248
5121
|
{ key: ["repo"], value: repo({ head: NEXT2 }) },
|
|
5249
5122
|
scannedAt(NEXT2)
|
|
5250
5123
|
]
|
|
@@ -5258,7 +5131,7 @@ forward
|
|
|
5258
5131
|
PUSHER,
|
|
5259
5132
|
"take",
|
|
5260
5133
|
{ push: PUSH, at: 0, pieces: 1, bytes: ONE6 },
|
|
5261
|
-
[
|
|
5134
|
+
[ends2(), put(0, 1, ONE6), ran2("bring", { as: `in-${PUSHER}`, pieces: 1 }, "run-1")],
|
|
5262
5135
|
done2
|
|
5263
5136
|
),
|
|
5264
5137
|
asked3(PUSHER, "taken", {}, [checked3("run-1")], { result: { ready: false } }),
|
|
@@ -5278,13 +5151,6 @@ forward
|
|
|
5278
5151
|
],
|
|
5279
5152
|
yields: [
|
|
5280
5153
|
{ key: ["in", PUSHER], value: taken(1, ONE6, { check: GREEN, landing: "run-3", landed: true }) },
|
|
5281
|
-
{ key: ["job", "run-1"], value: forFar("run-1", "bring", PUSHER, end2("run-1", 0, `${NEXT2}
|
|
5282
|
-
forward
|
|
5283
|
-
`)) },
|
|
5284
|
-
{ key: ["job", "run-2"], value: checking("run-2", end2("run-2", 0, GREEN.out)) },
|
|
5285
|
-
{ key: ["job", "run-3"], value: forFar("run-3", "land", PUSHER, endScanned("run-3", 0, `${NEXT2}
|
|
5286
|
-
`)) },
|
|
5287
|
-
{ key: ["job", "run-4"], value: LANDED_SCAN },
|
|
5288
5154
|
{ key: ["repo"], value: repo({ head: NEXT2 }) },
|
|
5289
5155
|
scannedAt(NEXT2)
|
|
5290
5156
|
]
|
|
@@ -5332,24 +5198,6 @@ held
|
|
|
5332
5198
|
yields: [
|
|
5333
5199
|
{ key: ["conform"], value: HEAD2 },
|
|
5334
5200
|
{ key: ["in", PUSHER], value: taken(1, TWO2, { push: ANEW, run: "run-3", head: HEAD2, landed: true }) },
|
|
5335
|
-
{ key: ["job", "run-1"], value: checking("run-1", end2("run-1", 1, BROKEN)) },
|
|
5336
|
-
{
|
|
5337
|
-
key: ["job", "run-2"],
|
|
5338
|
-
value: forFar("run-2", "bring", PUSHER, end2("run-2", 1, "", `${CONFLICT}
|
|
5339
|
-
`))
|
|
5340
|
-
},
|
|
5341
|
-
{
|
|
5342
|
-
key: ["job", "run-3"],
|
|
5343
|
-
value: forFar("run-3", "bring", PUSHER, end2("run-3", 0, `${HEAD2}
|
|
5344
|
-
held
|
|
5345
|
-
`))
|
|
5346
|
-
},
|
|
5347
|
-
{
|
|
5348
|
-
key: ["job", "run-9"],
|
|
5349
|
-
value: forFar("run-9", "bring", PUSHER, end2("run-9", 0, `${NEXT2}
|
|
5350
|
-
merge
|
|
5351
|
-
`))
|
|
5352
|
-
},
|
|
5353
5201
|
{ key: ["repo"], value: repo() }
|
|
5354
5202
|
]
|
|
5355
5203
|
},
|
|
@@ -5389,16 +5237,6 @@ forward
|
|
|
5389
5237
|
],
|
|
5390
5238
|
yields: [
|
|
5391
5239
|
{ key: ["in", PUSHER], value: taken(1, ONE6, { push: AGAIN, check: GREEN, landing: "run-3", landed: true }) },
|
|
5392
|
-
{
|
|
5393
|
-
key: ["job", "run-1"],
|
|
5394
|
-
value: forFar("run-1", "bring", PUSHER, end2("run-1", 0, `${NEXT2}
|
|
5395
|
-
forward
|
|
5396
|
-
`))
|
|
5397
|
-
},
|
|
5398
|
-
{ key: ["job", "run-2"], value: checking("run-2", end2("run-2", 0, GREEN.out)) },
|
|
5399
|
-
{ key: ["job", "run-3"], value: forFar("run-3", "land", PUSHER, endScanned("run-3", 0, `${NEXT2}
|
|
5400
|
-
`)) },
|
|
5401
|
-
{ key: ["job", "run-4"], value: LANDED_SCAN },
|
|
5402
5240
|
{ key: ["repo"], value: repo({ head: NEXT2 }) },
|
|
5403
5241
|
scannedAt(NEXT2)
|
|
5404
5242
|
]
|
|
@@ -5454,16 +5292,6 @@ forward
|
|
|
5454
5292
|
failed: GATE_REFUSED
|
|
5455
5293
|
})
|
|
5456
5294
|
},
|
|
5457
|
-
{
|
|
5458
|
-
key: ["job", "run-1"],
|
|
5459
|
-
value: checking("run-1", end2("run-1", 1, GATE_RED.out, GATE_RED.err))
|
|
5460
|
-
},
|
|
5461
|
-
{
|
|
5462
|
-
key: ["job", "run-9"],
|
|
5463
|
-
value: forFar("run-9", "bring", PUSHER, end2("run-9", 0, `${NEXT2}
|
|
5464
|
-
forward
|
|
5465
|
-
`))
|
|
5466
|
-
},
|
|
5467
5295
|
{ key: ["gate"], value: "check" },
|
|
5468
5296
|
{ key: ["gates"], value: { commit: "mandatory", push: "on" } },
|
|
5469
5297
|
{ key: ["repo"], value: repo() }
|
|
@@ -5531,7 +5359,7 @@ var SERVED = [
|
|
|
5531
5359
|
[invited2(null, FAR_LIBRARY, { ...OWNED, ...noteOf("library") })],
|
|
5532
5360
|
{ result: { invitation: `nervur:${FAR_LIBRARY}`, far: FAR_LIBRARY } }
|
|
5533
5361
|
),
|
|
5534
|
-
asked3(OWNER2, "occupants", null, [
|
|
5362
|
+
asked3(OWNER2, "occupants", null, [ends2(OCCUPANT_READER, OCCUPANT_PUSHER, OCCUPANT_LIBRARY)], {
|
|
5535
5363
|
result: [
|
|
5536
5364
|
{ far: READER, role: "reader" },
|
|
5537
5365
|
{ far: PUSHER, role: "writer" },
|
|
@@ -5546,7 +5374,7 @@ var SERVED = [
|
|
|
5546
5374
|
[
|
|
5547
5375
|
endOfFar(FAR_LIBRARY, OCCUPANT_LIBRARY),
|
|
5548
5376
|
{ placeholder: "ear", method: "drop", args: { far: FAR_LIBRARY }, answer: done2 },
|
|
5549
|
-
|
|
5377
|
+
ends2()
|
|
5550
5378
|
],
|
|
5551
5379
|
done2
|
|
5552
5380
|
),
|
|
@@ -5565,7 +5393,7 @@ var SERVED = [
|
|
|
5565
5393
|
done2
|
|
5566
5394
|
),
|
|
5567
5395
|
asked3(OWNER2, "state", { name: "spec" }, [], refused2),
|
|
5568
|
-
asked3(OWNER2, "state", { name: NAME }, [FOLDER_STATE,
|
|
5396
|
+
asked3(OWNER2, "state", { name: NAME }, [FOLDER_STATE, ends2(OCCUPANT_READER, OCCUPANT_PUSHER)], {
|
|
5569
5397
|
result: {
|
|
5570
5398
|
...repo(),
|
|
5571
5399
|
on: [],
|
|
@@ -5604,16 +5432,6 @@ ${HEAD2}
|
|
|
5604
5432
|
asked3(READER, "give", { since: HEAD2 }, [bundled("run-3")], { result: { ready: false } })
|
|
5605
5433
|
],
|
|
5606
5434
|
yields: [
|
|
5607
|
-
{
|
|
5608
|
-
key: ["job", "run-1"],
|
|
5609
|
-
value: forFar2("run-1", "bundle", READER, end2("run-1", 0, `2
|
|
5610
|
-
${HEAD2}
|
|
5611
|
-
`))
|
|
5612
|
-
},
|
|
5613
|
-
{
|
|
5614
|
-
key: ["job", "run-2"],
|
|
5615
|
-
value: forFar2("run-2", "bundle", READER, end2("run-2", 1, "", LOST3))
|
|
5616
|
-
},
|
|
5617
5435
|
{ key: ["job", "run-3"], value: forFar2("run-3", "bundle", READER) },
|
|
5618
5436
|
{
|
|
5619
5437
|
key: ["out", READER],
|
|
@@ -5631,7 +5449,7 @@ var CONFLICT2 = "it meets a conflict with main: merge it where it is authored, a
|
|
|
5631
5449
|
var REFUSED3 = `its check is red:
|
|
5632
5450
|
${BROKEN.trim()}`;
|
|
5633
5451
|
var cleared2 = (as, run) => jailer("clear", { as }, begun2(run));
|
|
5634
|
-
var
|
|
5452
|
+
var checking = (run, asker, finished) => job2(run, "check", asker, finished, { step: { check: "pull" } });
|
|
5635
5453
|
var pulling = (stage, more = {}) => ({
|
|
5636
5454
|
key: ["sync"],
|
|
5637
5455
|
value: {
|
|
@@ -5649,7 +5467,7 @@ var pulling = (stage, more = {}) => ({
|
|
|
5649
5467
|
});
|
|
5650
5468
|
var HELD_TWO = relation("L2", "standing", "lobe-2", null);
|
|
5651
5469
|
var plainly = (bytes, bundle) => [
|
|
5652
|
-
asked3(NEAR2, "push", {}, [
|
|
5470
|
+
asked3(NEAR2, "push", {}, [ends2(HELD), CAPPED, ordered2(NEAR2), tickSet], { result: { job: PUSH } }),
|
|
5653
5471
|
tickMoved([overLobe("head", {}, { result: { head: HEAD2 } })]),
|
|
5654
5472
|
tickMoved([ran2("bundle", { since: HEAD2, as: "push" }, bundle)]),
|
|
5655
5473
|
endedThen(bundle, "bundle", 0, `1
|
|
@@ -5665,7 +5483,7 @@ var SYNCED = [
|
|
|
5665
5483
|
says: "A push names the bytes of its bundle's pieces, and the jailer's bundle is made by them; and how long it may stand still, kept beside its work.",
|
|
5666
5484
|
cells: [{ key: ["repo"], value: AHEAD6 }],
|
|
5667
5485
|
asks: [
|
|
5668
|
-
asked3(NEAR2, "push", { piece: 8388608, still: 6e4 }, [
|
|
5486
|
+
asked3(NEAR2, "push", { piece: 8388608, still: 6e4 }, [ends2(HELD), CAPPED, ordered2(NEAR2), tickSet], {
|
|
5669
5487
|
result: { job: PUSH }
|
|
5670
5488
|
}),
|
|
5671
5489
|
tickMoved([overLobe("head", {}, { result: { head: HEAD2 } })]),
|
|
@@ -5709,7 +5527,7 @@ var SYNCED = [
|
|
|
5709
5527
|
says: "A push whose bundle the jailer refuses for a moment, the repo running another job, rings again a second on and begins it then: it never stands still unrung.",
|
|
5710
5528
|
cells: [{ key: ["repo"], value: AHEAD6 }],
|
|
5711
5529
|
asks: [
|
|
5712
|
-
asked3(NEAR2, "push", {}, [
|
|
5530
|
+
asked3(NEAR2, "push", {}, [ends2(HELD), CAPPED, ordered2(NEAR2), tickSet], { result: { job: PUSH } }),
|
|
5713
5531
|
tickMoved([overLobe("head", {}, { result: { head: HEAD2 } })]),
|
|
5714
5532
|
tick([
|
|
5715
5533
|
jailer(
|
|
@@ -5756,7 +5574,7 @@ var SYNCED = [
|
|
|
5756
5574
|
says: "A wired lobe pushes, told once the lobe pushed to brought it into its `main`, with its check; then its owner moves its standing to another lobe, the one before left through the mouth.",
|
|
5757
5575
|
cells: [{ key: ["repo"], value: AHEAD6 }],
|
|
5758
5576
|
asks: [
|
|
5759
|
-
asked3(NEAR2, "push", { tells: true }, [
|
|
5577
|
+
asked3(NEAR2, "push", { tells: true }, [ends2(HELD), CAPPED, ordered2(NEAR2), tickSet], {
|
|
5760
5578
|
result: { job: PUSH }
|
|
5761
5579
|
}),
|
|
5762
5580
|
asked3(NEAR2, "push", {}, [], refused2),
|
|
@@ -5766,7 +5584,7 @@ var SYNCED = [
|
|
|
5766
5584
|
${NEXT2}
|
|
5767
5585
|
`, "", [tickSet]),
|
|
5768
5586
|
tickMoved([
|
|
5769
|
-
|
|
5587
|
+
ends2(),
|
|
5770
5588
|
drawnBack(),
|
|
5771
5589
|
jailer("piece", { at: 0, as: "push" }, { result: { bytes: ONE8 } }),
|
|
5772
5590
|
overLobe("take", { push: PUSH, at: 0, pieces: 1, bytes: ONE8, tells: BACK_INVITATION }, done2)
|
|
@@ -5792,7 +5610,7 @@ ${NEXT2}
|
|
|
5792
5610
|
),
|
|
5793
5611
|
asked3(TELLER, "done", { job: PUSH, kind: "push", code: 0, out: `${NEXT2}
|
|
5794
5612
|
`, err: "", check: GREEN }, [], refused2),
|
|
5795
|
-
asked3(OWNER2, "relink", { invitation: "nervur:again", instead: "lobe-9" }, [
|
|
5613
|
+
asked3(OWNER2, "relink", { invitation: "nervur:again", instead: "lobe-9" }, [ends2(HELD)], {
|
|
5796
5614
|
error: { code: "absent" }
|
|
5797
5615
|
}),
|
|
5798
5616
|
asked3(
|
|
@@ -5800,8 +5618,8 @@ ${NEXT2}
|
|
|
5800
5618
|
"relink",
|
|
5801
5619
|
{ invitation: "nervur:again", instead: "lobe-1" },
|
|
5802
5620
|
[
|
|
5803
|
-
|
|
5804
|
-
|
|
5621
|
+
ends2(HELD),
|
|
5622
|
+
ends2(OCCUPANT_TELLER),
|
|
5805
5623
|
droppedBack,
|
|
5806
5624
|
{ placeholder: "mouth", method: "drop", args: { far: STOOD }, answer: done2 },
|
|
5807
5625
|
{
|
|
@@ -5824,14 +5642,6 @@ ${NEXT2}
|
|
|
5824
5642
|
],
|
|
5825
5643
|
yields: [
|
|
5826
5644
|
{ key: ["back", NEAR2], value: true },
|
|
5827
|
-
{
|
|
5828
|
-
key: ["job", "run-1"],
|
|
5829
|
-
value: job2("run-1", "bundle", NEAR2, end2("run-1", 0, `1
|
|
5830
|
-
${NEXT2}
|
|
5831
|
-
`), {
|
|
5832
|
-
step: { sync: true }
|
|
5833
|
-
})
|
|
5834
|
-
},
|
|
5835
5645
|
{
|
|
5836
5646
|
key: ["repo"],
|
|
5837
5647
|
value: { ...AHEAD6, synced: { job: PUSH, kind: "push", asker: NEAR2, code: 0, err: "", check: GREEN } }
|
|
@@ -5846,7 +5656,7 @@ ${NEXT2}
|
|
|
5846
5656
|
OWNER2,
|
|
5847
5657
|
"left",
|
|
5848
5658
|
{ far: STOOD, note: { repo: NAME, on: "lobe-1" } },
|
|
5849
|
-
[
|
|
5659
|
+
[ends2(), ends2(OCCUPANT_TELLER), droppedBack],
|
|
5850
5660
|
done2
|
|
5851
5661
|
)
|
|
5852
5662
|
],
|
|
@@ -5856,7 +5666,7 @@ ${NEXT2}
|
|
|
5856
5666
|
says: "A pull is brought apart and checked by the lobe itself, the check of the parts and `conform` as its owner chose it: one breaking a rule is refused, saying which, `main` unmoved.",
|
|
5857
5667
|
cells: [{ key: ["repo"], value: AHEAD6 }],
|
|
5858
5668
|
asks: [
|
|
5859
|
-
asked3(OWNER2, "pull", {}, [
|
|
5669
|
+
asked3(OWNER2, "pull", {}, [ends2(HELD), CAPPED, tickSet], { result: { job: PULL4 } }),
|
|
5860
5670
|
tickMoved([overLobe("give", { since: NEXT2 }, { result: { pieces: 1, head: OTHER } })]),
|
|
5861
5671
|
tickMoved([
|
|
5862
5672
|
overLobe("piece", { at: 0 }, { result: { bytes: ONE8 } }),
|
|
@@ -5871,15 +5681,6 @@ merge
|
|
|
5871
5681
|
tick([], false)
|
|
5872
5682
|
],
|
|
5873
5683
|
yields: [
|
|
5874
|
-
{
|
|
5875
|
-
key: ["job", "run-1"],
|
|
5876
|
-
value: job2("run-1", "bring", OWNER2, end2("run-1", 0, `${OTHER}
|
|
5877
|
-
merge
|
|
5878
|
-
`), {
|
|
5879
|
-
step: { sync: true }
|
|
5880
|
-
})
|
|
5881
|
-
},
|
|
5882
|
-
{ key: ["job", "run-2"], value: checking2("run-2", OWNER2, end2("run-2", 1, BROKEN)) },
|
|
5883
5684
|
{
|
|
5884
5685
|
key: ["repo"],
|
|
5885
5686
|
value: { ...AHEAD6, synced: { job: PULL4, kind: "pull", asker: "brain", code: 1, err: REFUSED3, check: RED } }
|
|
@@ -5890,7 +5691,7 @@ merge
|
|
|
5890
5691
|
says: "A pull its check finds green lands on `main`, its wired lobe told with the check; `main` scanned after it; a conflict ends a pull with why.",
|
|
5891
5692
|
cells: [
|
|
5892
5693
|
{ key: ["back", NEAR2], value: true },
|
|
5893
|
-
{ key: ["job", "run-2"], value:
|
|
5694
|
+
{ key: ["job", "run-2"], value: checking("run-2", NEAR2, null) },
|
|
5894
5695
|
{ key: ["repo"], value: { ...AHEAD6, doing: "run-2" } },
|
|
5895
5696
|
pulling("checking", { asker: NEAR2, check: { job: "run-2" } })
|
|
5896
5697
|
],
|
|
@@ -5909,7 +5710,7 @@ merge
|
|
|
5909
5710
|
letter: { lives: LETTER_LIVES }
|
|
5910
5711
|
}
|
|
5911
5712
|
]),
|
|
5912
|
-
asked3(NEAR2, "pull", {}, [
|
|
5713
|
+
asked3(NEAR2, "pull", {}, [ends2(HELD), CAPPED, tickSet], { result: { job: PULL4 } }),
|
|
5913
5714
|
tickMoved([overLobe("give", { since: OTHER }, { result: { pieces: 1, head: NEXT2 } })]),
|
|
5914
5715
|
tickMoved([
|
|
5915
5716
|
overLobe("piece", { at: 0 }, { result: { bytes: ONE8 } }),
|
|
@@ -5922,24 +5723,6 @@ merge
|
|
|
5922
5723
|
],
|
|
5923
5724
|
yields: [
|
|
5924
5725
|
{ key: ["back", NEAR2], value: true },
|
|
5925
|
-
{ key: ["job", "run-2"], value: checking2("run-2", NEAR2, end2("run-2", 0, GREEN.out)) },
|
|
5926
|
-
{
|
|
5927
|
-
key: ["job", "run-3"],
|
|
5928
|
-
value: job2("run-3", "land", NEAR2, endScanned("run-3", 0, `${OTHER}
|
|
5929
|
-
`), {
|
|
5930
|
-
step: { sync: true }
|
|
5931
|
-
})
|
|
5932
|
-
},
|
|
5933
|
-
{ key: ["job", "run-4"], value: scanStep("run-4", NEAR2, "run-3", `${OTHER}
|
|
5934
|
-
`, end2("run-4", 0, `${OTHER}
|
|
5935
|
-
`)) },
|
|
5936
|
-
{
|
|
5937
|
-
key: ["job", "run-5"],
|
|
5938
|
-
value: job2("run-5", "bring", NEAR2, end2("run-5", 1, "", `${CONFLICT2}
|
|
5939
|
-
`), {
|
|
5940
|
-
step: { sync: true }
|
|
5941
|
-
})
|
|
5942
|
-
},
|
|
5943
5726
|
{
|
|
5944
5727
|
key: ["repo"],
|
|
5945
5728
|
value: repo({ head: OTHER, synced: { job: PULL4, kind: "pull", asker: NEAR2, code: 1, err: CONFLICT2 } })
|
|
@@ -5996,9 +5779,9 @@ merge
|
|
|
5996
5779
|
done2
|
|
5997
5780
|
),
|
|
5998
5781
|
asked3(OWNER2, "pull", { name: "spec" }, [], refused2),
|
|
5999
|
-
asked3(OWNER2, "pull", { name: NAME }, [
|
|
6000
|
-
asked3(OWNER2, "pull", { on: "lobe-9" }, [
|
|
6001
|
-
asked3(OWNER2, "pull", { name: NAME, on: "lobe-2" }, [
|
|
5782
|
+
asked3(OWNER2, "pull", { name: NAME }, [ends2(HELD, HELD_TWO)], refused2),
|
|
5783
|
+
asked3(OWNER2, "pull", { on: "lobe-9" }, [ends2(HELD, HELD_TWO)], { error: { code: "absent" } }),
|
|
5784
|
+
asked3(OWNER2, "pull", { name: NAME, on: "lobe-2" }, [ends2(HELD, HELD_TWO), CAPPED, tickSet], {
|
|
6002
5785
|
result: { job: PULL4 }
|
|
6003
5786
|
}),
|
|
6004
5787
|
tick([overLobe("give", { since: NEXT2 }, { result: { pieces: 0, head: NEXT2 } }, "lobe-2")], false)
|
|
@@ -6039,12 +5822,6 @@ merge
|
|
|
6039
5822
|
],
|
|
6040
5823
|
yields: [
|
|
6041
5824
|
{ key: ["back", NEAR2], value: true },
|
|
6042
|
-
{
|
|
6043
|
-
key: ["job", "run-1"],
|
|
6044
|
-
value: job2("run-1", "bundle", NEAR2, end2("run-1", 0, `1
|
|
6045
|
-
${NEXT2}
|
|
6046
|
-
`), { step: { sync: true } })
|
|
6047
|
-
},
|
|
6048
5825
|
{
|
|
6049
5826
|
key: ["repo"],
|
|
6050
5827
|
value: { ...AHEAD6, synced: { job: PUSH, kind: "push", asker: NEAR2, code: 0, err: "", check: GREEN } }
|
|
@@ -6074,12 +5851,6 @@ ${NEXT2}
|
|
|
6074
5851
|
],
|
|
6075
5852
|
yields: [
|
|
6076
5853
|
{ key: ["back", NEAR2], value: true },
|
|
6077
|
-
{
|
|
6078
|
-
key: ["job", "run-1"],
|
|
6079
|
-
value: job2("run-1", "bundle", NEAR2, end2("run-1", 0, `1
|
|
6080
|
-
${NEXT2}
|
|
6081
|
-
`), { step: { sync: true } })
|
|
6082
|
-
},
|
|
6083
5854
|
{
|
|
6084
5855
|
key: ["repo"],
|
|
6085
5856
|
value: { ...AHEAD6, synced: { job: PUSH, kind: "push", asker: NEAR2, code: 1, err: CONFLICT2 } }
|
|
@@ -6122,6 +5893,15 @@ var toFar = (args) => ({
|
|
|
6122
5893
|
args,
|
|
6123
5894
|
answer: done2
|
|
6124
5895
|
});
|
|
5896
|
+
var FIRST_BACK = `library-${FAR_LIBRARY.toLowerCase()}`;
|
|
5897
|
+
var SECOND_BACK = relation("B4", "standing", "library-g2", { repo: NAME, library: "G2" });
|
|
5898
|
+
var toSecond = (args, answer = done2) => ({
|
|
5899
|
+
placeholder: "library-g2",
|
|
5900
|
+
method: "changed",
|
|
5901
|
+
args,
|
|
5902
|
+
answer
|
|
5903
|
+
});
|
|
5904
|
+
var GONE = { error: { code: "unavailable", message: "the far organism answers not" } };
|
|
6125
5905
|
var farToo = (row) => isFields4(row) && isFields4(row["value"]) ? { ...row, value: { ...row["value"], far: true } } : row;
|
|
6126
5906
|
var TOLD = [
|
|
6127
5907
|
{
|
|
@@ -6130,7 +5910,7 @@ var TOLD = [
|
|
|
6130
5910
|
asks: [
|
|
6131
5911
|
endedThen("run-1", "scan", 0, BOTH2, "", [
|
|
6132
5912
|
...bothRead,
|
|
6133
|
-
|
|
5913
|
+
ends2(),
|
|
6134
5914
|
library(true),
|
|
6135
5915
|
changed({ kind: "faculty", label: "notes", version: "0.1.0", digest: DIGEST }),
|
|
6136
5916
|
changed({ ...ACME_GET, digest: LOOK2 })
|
|
@@ -6138,7 +5918,8 @@ var TOLD = [
|
|
|
6138
5918
|
],
|
|
6139
5919
|
yields: [
|
|
6140
5920
|
...STILL,
|
|
6141
|
-
...
|
|
5921
|
+
...SCAN_ENDED,
|
|
5922
|
+
...toldInOrder(["faculty", "notes", "0.1.0"], ["faculty", "acme.look", "0.1.0"]),
|
|
6142
5923
|
acmeTold(true),
|
|
6143
5924
|
notesTold(true),
|
|
6144
5925
|
notesText,
|
|
@@ -6157,12 +5938,12 @@ var TOLD = [
|
|
|
6157
5938
|
says: "A far library may name at its `told` the standing back it is told over, `tells`, taken under `library-<far>`; one naming none is answered and takes none, and an owner naming one is refused. Each faculty a scan tells after goes to it as `changed` by an ask, over that standing back, once.",
|
|
6158
5939
|
cells: SCANNING,
|
|
6159
5940
|
asks: [
|
|
6160
|
-
asked3(FAR_LIBRARY, "told", {}, [], { result: [] }),
|
|
5941
|
+
asked3(FAR_LIBRARY, "told", {}, [], { result: { told: [], cursor: null } }),
|
|
6161
5942
|
asked3(OWNER2, "told", { tells: HEARS }, [], refused2),
|
|
6162
|
-
asked3(FAR_LIBRARY, "told", { tells: HEARS }, [
|
|
5943
|
+
asked3(FAR_LIBRARY, "told", { tells: HEARS }, [ends2(), ACCEPTED_BACK], { result: { told: [], cursor: null } }),
|
|
6163
5944
|
endedThen("run-1", "scan", 0, BOTH2, "", [
|
|
6164
5945
|
...bothRead,
|
|
6165
|
-
|
|
5946
|
+
ends2(HEARD_BACK),
|
|
6166
5947
|
toFar({ kind: "faculty", label: "notes", version: "0.1.0", digest: DIGEST }),
|
|
6167
5948
|
toFar({ ...ACME_GET, digest: LOOK2 }),
|
|
6168
5949
|
library(true),
|
|
@@ -6172,7 +5953,8 @@ var TOLD = [
|
|
|
6172
5953
|
],
|
|
6173
5954
|
yields: [
|
|
6174
5955
|
...STILL,
|
|
6175
|
-
...
|
|
5956
|
+
...SCAN_ENDED,
|
|
5957
|
+
...toldInOrder(["faculty", "notes", "0.1.0"], ["faculty", "acme.look", "0.1.0"]),
|
|
6176
5958
|
farToo(acmeTold(true)),
|
|
6177
5959
|
farToo(notesTold(true)),
|
|
6178
5960
|
notesText,
|
|
@@ -6182,13 +5964,45 @@ var TOLD = [
|
|
|
6182
5964
|
}
|
|
6183
5965
|
]
|
|
6184
5966
|
},
|
|
5967
|
+
{
|
|
5968
|
+
says: "Each far library is told apart: one that does not hear holds no other back, the version marked as heard by those that did and told again to it at the next scan, and marked `far` once every one standing heard it.",
|
|
5969
|
+
cells: SCANNING,
|
|
5970
|
+
asks: [
|
|
5971
|
+
endedThen("run-1", "scan", 0, BOTH2, "", [
|
|
5972
|
+
...bothRead,
|
|
5973
|
+
ends2(HEARD_BACK, SECOND_BACK),
|
|
5974
|
+
toFar({ kind: "faculty", label: "notes", version: "0.1.0", digest: DIGEST }),
|
|
5975
|
+
toSecond({ kind: "faculty", label: "notes", version: "0.1.0", digest: DIGEST }, GONE),
|
|
5976
|
+
toFar({ ...ACME_GET, digest: LOOK2 }),
|
|
5977
|
+
toSecond({ ...ACME_GET, digest: LOOK2 }),
|
|
5978
|
+
library(true),
|
|
5979
|
+
changed({ kind: "faculty", label: "notes", version: "0.1.0", digest: DIGEST }),
|
|
5980
|
+
changed({ ...ACME_GET, digest: LOOK2 })
|
|
5981
|
+
])
|
|
5982
|
+
],
|
|
5983
|
+
yields: [
|
|
5984
|
+
...STILL,
|
|
5985
|
+
...SCAN_ENDED,
|
|
5986
|
+
...toldInOrder(["faculty", "notes", "0.1.0"], ["faculty", "acme.look", "0.1.0"]),
|
|
5987
|
+
farToo(acmeTold(true)),
|
|
5988
|
+
{
|
|
5989
|
+
key: ["told", "faculty", "notes", "0.1.0"],
|
|
5990
|
+
value: { digest: DIGEST, heard: true, at: TIME4, farHeard: [FIRST_BACK] }
|
|
5991
|
+
},
|
|
5992
|
+
notesText,
|
|
5993
|
+
{
|
|
5994
|
+
key: ["scanned"],
|
|
5995
|
+
value: { head: HEAD2, faculties: [NOTES3], organs: [], designs: [ACME] }
|
|
5996
|
+
}
|
|
5997
|
+
]
|
|
5998
|
+
},
|
|
6185
5999
|
{
|
|
6186
6000
|
says: "A scan of a head no tag names tells nothing: its versions are in progress, kept in no cell and never told to the library, and still shown by the scan.",
|
|
6187
6001
|
cells: SCANNING,
|
|
6188
6002
|
asks: [endedThen("run-1", "scan", 0, BOTH_UNTAGGED, "", bothRead)],
|
|
6189
6003
|
yields: [
|
|
6190
6004
|
...STILL,
|
|
6191
|
-
...
|
|
6005
|
+
...SCAN_ENDED,
|
|
6192
6006
|
{
|
|
6193
6007
|
key: ["scanned"],
|
|
6194
6008
|
value: {
|
|
@@ -6219,7 +6033,7 @@ var TOLD = [
|
|
|
6219
6033
|
],
|
|
6220
6034
|
yields: [
|
|
6221
6035
|
...STILL,
|
|
6222
|
-
...
|
|
6036
|
+
...SCAN_ENDED,
|
|
6223
6037
|
acmeTold(true, "e".repeat(64)),
|
|
6224
6038
|
notesTold(true, "f".repeat(64)),
|
|
6225
6039
|
{
|
|
@@ -6239,7 +6053,7 @@ var TOLD = [
|
|
|
6239
6053
|
asks: [
|
|
6240
6054
|
endedThen("run-1", "scan", 0, ORGAN, "", [
|
|
6241
6055
|
read("organs/printer/graph.json", BLUEPRINT),
|
|
6242
|
-
|
|
6056
|
+
ends2(),
|
|
6243
6057
|
library(true),
|
|
6244
6058
|
changed({ kind: "organ", label: "printer", version: "0.1.0", digest: digestOf(BLUEPRINT) })
|
|
6245
6059
|
]),
|
|
@@ -6281,7 +6095,9 @@ var TOLD = [
|
|
|
6281
6095
|
{ key: ["built", "printer", "0.1.0"], value: HALF },
|
|
6282
6096
|
{ key: ["by", NEAR2, "run-2"], value: null },
|
|
6283
6097
|
{ key: ["by", NEAR2, "run-3"], value: null },
|
|
6284
|
-
...
|
|
6098
|
+
...SCAN_ENDED,
|
|
6099
|
+
...toldInOrder(["organ", "printer", "0.1.0"]),
|
|
6100
|
+
...endedKept(NEAR2, "run-2", "run-3"),
|
|
6285
6101
|
{
|
|
6286
6102
|
key: ["job", "run-2"],
|
|
6287
6103
|
value: job2("run-2", "build", NEAR2, end2("run-2", 0, `${HALF}
|
|
@@ -6320,7 +6136,7 @@ var TOLD_BELOW = [
|
|
|
6320
6136
|
asks: [
|
|
6321
6137
|
endedThen("run-1", "scan", 0, BELOW, "", [
|
|
6322
6138
|
read("faculties/notes/versions.json", VERSIONS),
|
|
6323
|
-
|
|
6139
|
+
ends2(),
|
|
6324
6140
|
library(true),
|
|
6325
6141
|
changed({ kind: "faculty", label: "notes", version: "0.1.0", digest: DIGEST })
|
|
6326
6142
|
]),
|
|
@@ -6328,7 +6144,8 @@ var TOLD_BELOW = [
|
|
|
6328
6144
|
],
|
|
6329
6145
|
yields: [
|
|
6330
6146
|
...STILL,
|
|
6331
|
-
...
|
|
6147
|
+
...SCAN_ENDED,
|
|
6148
|
+
...toldInOrder(["faculty", "notes", "0.1.0"]),
|
|
6332
6149
|
{
|
|
6333
6150
|
key: ["scanned"],
|
|
6334
6151
|
value: { head: HEAD2, faculties: [], organs: [], designs: [] }
|
|
@@ -6343,7 +6160,7 @@ var TOLD_BELOW = [
|
|
|
6343
6160
|
asks: [
|
|
6344
6161
|
endedThen("run-1", "scan", 0, BELOW_CARRYING, "", [
|
|
6345
6162
|
read("faculties/notes/versions.json", VERSIONS),
|
|
6346
|
-
|
|
6163
|
+
ends2(),
|
|
6347
6164
|
library(true),
|
|
6348
6165
|
changed({ kind: "faculty", label: "notes", version: "0.1.0", digest: DIGEST })
|
|
6349
6166
|
]),
|
|
@@ -6353,7 +6170,8 @@ var TOLD_BELOW = [
|
|
|
6353
6170
|
],
|
|
6354
6171
|
yields: [
|
|
6355
6172
|
...STILL,
|
|
6356
|
-
...
|
|
6173
|
+
...SCAN_ENDED,
|
|
6174
|
+
...toldInOrder(["faculty", "notes", "0.1.0"]),
|
|
6357
6175
|
{
|
|
6358
6176
|
key: ["scanned"],
|
|
6359
6177
|
value: { head: HEAD2, faculties: [], organs: [], designs: [] }
|