@nervur.org/floor 0.37.10 → 0.37.12
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 +245 -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([
|
|
@@ -4493,27 +4428,8 @@ holds
|
|
|
4493
4428
|
tick([], false)
|
|
4494
4429
|
],
|
|
4495
4430
|
yields: [
|
|
4431
|
+
...endedKept(OWNER2, "run-1"),
|
|
4496
4432
|
{ 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
4433
|
scannedAt(NEXT2),
|
|
4518
4434
|
{
|
|
4519
4435
|
key: ["repo"],
|
|
@@ -4529,7 +4445,7 @@ holds
|
|
|
4529
4445
|
cells: [{ key: ["repo"], value: repo() }],
|
|
4530
4446
|
asks: [
|
|
4531
4447
|
asked3(OWNER2, "rebuild", {}, [ran2("init", {}, "run-1")], begun2("run-1")),
|
|
4532
|
-
endedThen("run-1", "init", 0, "", "", [
|
|
4448
|
+
endedThen("run-1", "init", 0, "", "", [ends2(OCCUPANT_PUSHER, OCCUPANT_READER)]),
|
|
4533
4449
|
asked3(PUSHER, "head", null, [], { result: { head: null } }),
|
|
4534
4450
|
asked3(READER, "give", { since: null }, [], refused2),
|
|
4535
4451
|
asked3(
|
|
@@ -4537,7 +4453,7 @@ holds
|
|
|
4537
4453
|
"take",
|
|
4538
4454
|
{ push: PUSH, at: 0, pieces: 1, bytes: ONE5, tells: BACK_INVITATION },
|
|
4539
4455
|
[
|
|
4540
|
-
|
|
4456
|
+
ends2(),
|
|
4541
4457
|
takenBack(),
|
|
4542
4458
|
jailer("put", { at: 0, pieces: 1, bytes: ONE5, as: `in-${PUSHER}` }, done2),
|
|
4543
4459
|
ran2("bring", { as: `in-${PUSHER}`, pieces: 1 }, "run-2")
|
|
@@ -4567,33 +4483,11 @@ holds
|
|
|
4567
4483
|
key: ["in", PUSHER],
|
|
4568
4484
|
value: taken(1, ONE5, { run: "run-2", check: GREEN, landing: "run-4", landed: true })
|
|
4569
4485
|
},
|
|
4486
|
+
...endedKept(OWNER2, "run-1"),
|
|
4570
4487
|
{
|
|
4571
4488
|
key: ["job", "run-1"],
|
|
4572
4489
|
value: job2("run-1", "init", OWNER2, end2("run-1", 0, ""), { step: { rebuild: true } })
|
|
4573
4490
|
},
|
|
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
4491
|
{ key: ["repo"], value: repo({ head: NEXT2 }) },
|
|
4598
4492
|
scannedAt(NEXT2)
|
|
4599
4493
|
]
|
|
@@ -4611,7 +4505,7 @@ holds
|
|
|
4611
4505
|
}
|
|
4612
4506
|
],
|
|
4613
4507
|
asks: [
|
|
4614
|
-
asked3(OWNER2, "remove", {}, [
|
|
4508
|
+
asked3(OWNER2, "remove", {}, [ends2(OCCUPANT_READER)], refused2),
|
|
4615
4509
|
asked3(
|
|
4616
4510
|
OWNER2,
|
|
4617
4511
|
"drop",
|
|
@@ -4623,7 +4517,7 @@ holds
|
|
|
4623
4517
|
done2
|
|
4624
4518
|
),
|
|
4625
4519
|
asked3(NEAR2, "remove", {}, [], refused2),
|
|
4626
|
-
asked3(OWNER2, "remove", {}, [
|
|
4520
|
+
asked3(OWNER2, "remove", {}, [ends2()], done2),
|
|
4627
4521
|
asked3(OWNER2, "state", {}, [], done2)
|
|
4628
4522
|
],
|
|
4629
4523
|
yields: []
|
|
@@ -4661,8 +4555,8 @@ var RELINKED = [
|
|
|
4661
4555
|
"relink",
|
|
4662
4556
|
{ invitation: "nervur:x", instead: "x" },
|
|
4663
4557
|
[
|
|
4664
|
-
|
|
4665
|
-
|
|
4558
|
+
ends2(HELD_X),
|
|
4559
|
+
ends2(),
|
|
4666
4560
|
{ placeholder: "mouth", method: "drop", args: { far: STOOD }, answer: done2 },
|
|
4667
4561
|
{ placeholder: "nerves", method: "unwire", args: { placeholder: "x" }, answer: done2 },
|
|
4668
4562
|
accepted2("nervur:x", "x")
|
|
@@ -4693,7 +4587,7 @@ var RELINKED = [
|
|
|
4693
4587
|
OWNER2,
|
|
4694
4588
|
"relink",
|
|
4695
4589
|
{ invitation: "nervur:z", instead: "x", placeholder: "z" },
|
|
4696
|
-
[
|
|
4590
|
+
[ends2(HELD_X, HELD_Z), read2("x", "z")],
|
|
4697
4591
|
{ error: { code: "refused", message: "this lobe holds z already" } }
|
|
4698
4592
|
)
|
|
4699
4593
|
],
|
|
@@ -4741,7 +4635,6 @@ ${LOST2}`, CHECK_LOST)
|
|
|
4741
4635
|
yields: [
|
|
4742
4636
|
pushed({ check: CHECK_LOST, failed: `its check is red:
|
|
4743
4637
|
${LOST2}`, told: true }),
|
|
4744
|
-
{ key: ["job", "run-1"], value: { ...CHECKING, ended: end2("run-1", -1, "", LOST2) } },
|
|
4745
4638
|
{ key: ["repo"], value: repo() }
|
|
4746
4639
|
]
|
|
4747
4640
|
},
|
|
@@ -4780,12 +4673,6 @@ ${LOST2}`, told: true }),
|
|
|
4780
4673
|
],
|
|
4781
4674
|
yields: [
|
|
4782
4675
|
{ 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
4676
|
{
|
|
4790
4677
|
key: ["repo"],
|
|
4791
4678
|
value: { ...AHEAD5, synced: { job: PUSH2, kind: "push", asker: NEAR2, code: -1, err: LOST2 } }
|
|
@@ -4857,7 +4744,7 @@ var ACME_GET = { kind: "faculty", label: "acme.look", version: "0.1.0" };
|
|
|
4857
4744
|
var NOTES_GET = { kind: "faculty", label: "notes", version: "0.1.0" };
|
|
4858
4745
|
var RAISE = "version 0.1.0 was told with other bytes: raise its version";
|
|
4859
4746
|
var MOVED_ACME = { ...ACME, why: RAISE };
|
|
4860
|
-
var
|
|
4747
|
+
var SCAN = lines(
|
|
4861
4748
|
"t faculties/bare/faculty.js",
|
|
4862
4749
|
"t faculties/draft/faculty.js",
|
|
4863
4750
|
"t faculties/draft/versions.json",
|
|
@@ -4904,12 +4791,11 @@ var SCANNING = [
|
|
|
4904
4791
|
`) },
|
|
4905
4792
|
{ key: ["repo"], value: repo({ doing: "run-1" }) }
|
|
4906
4793
|
];
|
|
4907
|
-
var
|
|
4794
|
+
var SCAN_ENDED = [
|
|
4908
4795
|
{ key: ["by", OWNER2, "run-0"], value: null },
|
|
4909
4796
|
{ key: ["job", "run-0"], value: job2("run-0", "commit", OWNER2, endScanned("run-0", 0, `${HEAD2}
|
|
4910
4797
|
`)) },
|
|
4911
|
-
|
|
4912
|
-
`, end2("run-1", 0, out)) }
|
|
4798
|
+
...endedKept(OWNER2, "run-0")
|
|
4913
4799
|
];
|
|
4914
4800
|
var notesTold = (heard, digest = DIGEST) => ({
|
|
4915
4801
|
key: ["told", "faculty", "notes", "0.1.0"],
|
|
@@ -4970,10 +4856,10 @@ var SCANNED3 = [
|
|
|
4970
4856
|
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
4857
|
cells: SCANNING,
|
|
4972
4858
|
asks: [
|
|
4973
|
-
endedThen("run-1", "scan", 0,
|
|
4859
|
+
endedThen("run-1", "scan", 0, SCAN, "", [
|
|
4974
4860
|
...notesRead,
|
|
4975
4861
|
...designRead,
|
|
4976
|
-
|
|
4862
|
+
ends2(),
|
|
4977
4863
|
library(true),
|
|
4978
4864
|
changed({ kind: "faculty", label: "notes", version: "0.1.0", digest: DIGEST }),
|
|
4979
4865
|
changed({ ...ACME_GET, digest: LOOK2 })
|
|
@@ -5015,17 +4901,20 @@ var SCANNED3 = [
|
|
|
5015
4901
|
asked3(NEAR2, "get", { ...ACME_GET, version: null }, [read("faculties/acme.look/faculty.js", null)], absent2),
|
|
5016
4902
|
asked3(LIBRARY, "get", { ...ACME_GET, label: "bare" }, [], absent2),
|
|
5017
4903
|
asked3(LIBRARY, "told", {}, [], {
|
|
5018
|
-
result:
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
4904
|
+
result: {
|
|
4905
|
+
told: [
|
|
4906
|
+
{
|
|
4907
|
+
kind: "faculty",
|
|
4908
|
+
label: "notes",
|
|
4909
|
+
version: "0.1.0",
|
|
4910
|
+
digest: DIGEST,
|
|
4911
|
+
heard: true,
|
|
4912
|
+
at: TIME4
|
|
4913
|
+
},
|
|
4914
|
+
{ ...ACME_GET, digest: LOOK2, assets: PARTS3, heard: true, at: TIME4 }
|
|
4915
|
+
],
|
|
4916
|
+
cursor: null
|
|
4917
|
+
}
|
|
5029
4918
|
}),
|
|
5030
4919
|
asked3(LIBRARY, "told", { tells: "nervur:hears" }, [], refused2),
|
|
5031
4920
|
asked3(FAR_LIBRARY, "get", { kind: "faculty", label: "notes", version: "0.1.0" }, [], {
|
|
@@ -5062,9 +4951,11 @@ var SCANNED3 = [
|
|
|
5062
4951
|
built: { design: "acme", version: "0.1.0" }
|
|
5063
4952
|
})
|
|
5064
4953
|
},
|
|
4954
|
+
...endedKept(NEAR2, "run-2"),
|
|
5065
4955
|
{ key: ["look", "acme", "0.1.0"], value: { source: LOOK_SOURCE } },
|
|
5066
4956
|
...STILL,
|
|
5067
|
-
...
|
|
4957
|
+
...SCAN_ENDED,
|
|
4958
|
+
...toldInOrder(["faculty", "notes", "0.1.0"], ["faculty", "acme.look", "0.1.0"]),
|
|
5068
4959
|
acmeTold(true),
|
|
5069
4960
|
notesTold(true),
|
|
5070
4961
|
notesText,
|
|
@@ -5086,7 +4977,7 @@ var SCANNED3 = [
|
|
|
5086
4977
|
endedThen("run-1", "scan", 0, CARRYING, "", [
|
|
5087
4978
|
read("faculties/reminders/faculty.js", REMINDERS),
|
|
5088
4979
|
read("faculties/reminders/versions.json", `{ "0.1.0": "${REMINDERS_DIGEST}" }`),
|
|
5089
|
-
|
|
4980
|
+
ends2(),
|
|
5090
4981
|
library(true),
|
|
5091
4982
|
changed({ ...REMINDERS_GET, digest: REMINDERS_DIGEST })
|
|
5092
4983
|
]),
|
|
@@ -5114,7 +5005,8 @@ var SCANNED3 = [
|
|
|
5114
5005
|
],
|
|
5115
5006
|
yields: [
|
|
5116
5007
|
...STILL,
|
|
5117
|
-
...
|
|
5008
|
+
...SCAN_ENDED,
|
|
5009
|
+
...toldInOrder(["faculty", "reminders", "0.1.0"]),
|
|
5118
5010
|
{
|
|
5119
5011
|
key: ["told", "faculty", "reminders", "0.1.0"],
|
|
5120
5012
|
value: { digest: REMINDERS_DIGEST, assets: REMINDERS_ASSETS, heard: true, at: TIME4 }
|
|
@@ -5155,11 +5047,7 @@ var SCANNED3 = [
|
|
|
5155
5047
|
var ONE6 = new Uint8Array([1, 2, 3]);
|
|
5156
5048
|
var TWO2 = new Uint8Array([4, 5]);
|
|
5157
5049
|
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
|
-
`));
|
|
5050
|
+
var forFar = (run, kind, far) => job2(run, kind, far, null, { step: { for: far } });
|
|
5163
5051
|
var CONFLICT = "it meets a conflict with main: merge it where it is authored, and send it again";
|
|
5164
5052
|
var REFUSED2 = `its check is red:
|
|
5165
5053
|
${BROKEN.trim()}`;
|
|
@@ -5183,7 +5071,7 @@ var PUSHED = [
|
|
|
5183
5071
|
"take",
|
|
5184
5072
|
{ push: PUSH, at: 0, pieces: 2, bytes: ONE6, tells: "nervur:spent" },
|
|
5185
5073
|
[
|
|
5186
|
-
|
|
5074
|
+
ends2(),
|
|
5187
5075
|
{
|
|
5188
5076
|
placeholder: "mouth",
|
|
5189
5077
|
method: "accept",
|
|
@@ -5201,7 +5089,7 @@ var PUSHED = [
|
|
|
5201
5089
|
PUSHER,
|
|
5202
5090
|
"take",
|
|
5203
5091
|
{ push: PUSH, at: 0, pieces: 2, bytes: ONE6, tells: BACK_INVITATION },
|
|
5204
|
-
[
|
|
5092
|
+
[ends2(), takenBack(), put(0, 2, ONE6)],
|
|
5205
5093
|
done2
|
|
5206
5094
|
),
|
|
5207
5095
|
asked3(PUSHER, "take", { push: PUSH, at: 0, pieces: 2, bytes: ONE6, tells: BACK_INVITATION }, [], done2),
|
|
@@ -5232,19 +5120,6 @@ forward
|
|
|
5232
5120
|
key: ["in", PUSHER],
|
|
5233
5121
|
value: taken(2, TWO2, { check: GREEN, landing: "run-3", landed: true })
|
|
5234
5122
|
},
|
|
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
5123
|
{ key: ["repo"], value: repo({ head: NEXT2 }) },
|
|
5249
5124
|
scannedAt(NEXT2)
|
|
5250
5125
|
]
|
|
@@ -5258,7 +5133,7 @@ forward
|
|
|
5258
5133
|
PUSHER,
|
|
5259
5134
|
"take",
|
|
5260
5135
|
{ push: PUSH, at: 0, pieces: 1, bytes: ONE6 },
|
|
5261
|
-
[
|
|
5136
|
+
[ends2(), put(0, 1, ONE6), ran2("bring", { as: `in-${PUSHER}`, pieces: 1 }, "run-1")],
|
|
5262
5137
|
done2
|
|
5263
5138
|
),
|
|
5264
5139
|
asked3(PUSHER, "taken", {}, [checked3("run-1")], { result: { ready: false } }),
|
|
@@ -5278,13 +5153,6 @@ forward
|
|
|
5278
5153
|
],
|
|
5279
5154
|
yields: [
|
|
5280
5155
|
{ 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
5156
|
{ key: ["repo"], value: repo({ head: NEXT2 }) },
|
|
5289
5157
|
scannedAt(NEXT2)
|
|
5290
5158
|
]
|
|
@@ -5332,24 +5200,6 @@ held
|
|
|
5332
5200
|
yields: [
|
|
5333
5201
|
{ key: ["conform"], value: HEAD2 },
|
|
5334
5202
|
{ 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
5203
|
{ key: ["repo"], value: repo() }
|
|
5354
5204
|
]
|
|
5355
5205
|
},
|
|
@@ -5389,16 +5239,6 @@ forward
|
|
|
5389
5239
|
],
|
|
5390
5240
|
yields: [
|
|
5391
5241
|
{ 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
5242
|
{ key: ["repo"], value: repo({ head: NEXT2 }) },
|
|
5403
5243
|
scannedAt(NEXT2)
|
|
5404
5244
|
]
|
|
@@ -5454,16 +5294,6 @@ forward
|
|
|
5454
5294
|
failed: GATE_REFUSED
|
|
5455
5295
|
})
|
|
5456
5296
|
},
|
|
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
5297
|
{ key: ["gate"], value: "check" },
|
|
5468
5298
|
{ key: ["gates"], value: { commit: "mandatory", push: "on" } },
|
|
5469
5299
|
{ key: ["repo"], value: repo() }
|
|
@@ -5531,7 +5361,7 @@ var SERVED = [
|
|
|
5531
5361
|
[invited2(null, FAR_LIBRARY, { ...OWNED, ...noteOf("library") })],
|
|
5532
5362
|
{ result: { invitation: `nervur:${FAR_LIBRARY}`, far: FAR_LIBRARY } }
|
|
5533
5363
|
),
|
|
5534
|
-
asked3(OWNER2, "occupants", null, [
|
|
5364
|
+
asked3(OWNER2, "occupants", null, [ends2(OCCUPANT_READER, OCCUPANT_PUSHER, OCCUPANT_LIBRARY)], {
|
|
5535
5365
|
result: [
|
|
5536
5366
|
{ far: READER, role: "reader" },
|
|
5537
5367
|
{ far: PUSHER, role: "writer" },
|
|
@@ -5546,7 +5376,7 @@ var SERVED = [
|
|
|
5546
5376
|
[
|
|
5547
5377
|
endOfFar(FAR_LIBRARY, OCCUPANT_LIBRARY),
|
|
5548
5378
|
{ placeholder: "ear", method: "drop", args: { far: FAR_LIBRARY }, answer: done2 },
|
|
5549
|
-
|
|
5379
|
+
ends2()
|
|
5550
5380
|
],
|
|
5551
5381
|
done2
|
|
5552
5382
|
),
|
|
@@ -5565,7 +5395,7 @@ var SERVED = [
|
|
|
5565
5395
|
done2
|
|
5566
5396
|
),
|
|
5567
5397
|
asked3(OWNER2, "state", { name: "spec" }, [], refused2),
|
|
5568
|
-
asked3(OWNER2, "state", { name: NAME }, [FOLDER_STATE,
|
|
5398
|
+
asked3(OWNER2, "state", { name: NAME }, [FOLDER_STATE, ends2(OCCUPANT_READER, OCCUPANT_PUSHER)], {
|
|
5569
5399
|
result: {
|
|
5570
5400
|
...repo(),
|
|
5571
5401
|
on: [],
|
|
@@ -5604,16 +5434,6 @@ ${HEAD2}
|
|
|
5604
5434
|
asked3(READER, "give", { since: HEAD2 }, [bundled("run-3")], { result: { ready: false } })
|
|
5605
5435
|
],
|
|
5606
5436
|
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
5437
|
{ key: ["job", "run-3"], value: forFar2("run-3", "bundle", READER) },
|
|
5618
5438
|
{
|
|
5619
5439
|
key: ["out", READER],
|
|
@@ -5631,7 +5451,7 @@ var CONFLICT2 = "it meets a conflict with main: merge it where it is authored, a
|
|
|
5631
5451
|
var REFUSED3 = `its check is red:
|
|
5632
5452
|
${BROKEN.trim()}`;
|
|
5633
5453
|
var cleared2 = (as, run) => jailer("clear", { as }, begun2(run));
|
|
5634
|
-
var
|
|
5454
|
+
var checking = (run, asker, finished) => job2(run, "check", asker, finished, { step: { check: "pull" } });
|
|
5635
5455
|
var pulling = (stage, more = {}) => ({
|
|
5636
5456
|
key: ["sync"],
|
|
5637
5457
|
value: {
|
|
@@ -5649,7 +5469,7 @@ var pulling = (stage, more = {}) => ({
|
|
|
5649
5469
|
});
|
|
5650
5470
|
var HELD_TWO = relation("L2", "standing", "lobe-2", null);
|
|
5651
5471
|
var plainly = (bytes, bundle) => [
|
|
5652
|
-
asked3(NEAR2, "push", {}, [
|
|
5472
|
+
asked3(NEAR2, "push", {}, [ends2(HELD), CAPPED, ordered2(NEAR2), tickSet], { result: { job: PUSH } }),
|
|
5653
5473
|
tickMoved([overLobe("head", {}, { result: { head: HEAD2 } })]),
|
|
5654
5474
|
tickMoved([ran2("bundle", { since: HEAD2, as: "push" }, bundle)]),
|
|
5655
5475
|
endedThen(bundle, "bundle", 0, `1
|
|
@@ -5665,7 +5485,7 @@ var SYNCED = [
|
|
|
5665
5485
|
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
5486
|
cells: [{ key: ["repo"], value: AHEAD6 }],
|
|
5667
5487
|
asks: [
|
|
5668
|
-
asked3(NEAR2, "push", { piece: 8388608, still: 6e4 }, [
|
|
5488
|
+
asked3(NEAR2, "push", { piece: 8388608, still: 6e4 }, [ends2(HELD), CAPPED, ordered2(NEAR2), tickSet], {
|
|
5669
5489
|
result: { job: PUSH }
|
|
5670
5490
|
}),
|
|
5671
5491
|
tickMoved([overLobe("head", {}, { result: { head: HEAD2 } })]),
|
|
@@ -5709,7 +5529,7 @@ var SYNCED = [
|
|
|
5709
5529
|
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
5530
|
cells: [{ key: ["repo"], value: AHEAD6 }],
|
|
5711
5531
|
asks: [
|
|
5712
|
-
asked3(NEAR2, "push", {}, [
|
|
5532
|
+
asked3(NEAR2, "push", {}, [ends2(HELD), CAPPED, ordered2(NEAR2), tickSet], { result: { job: PUSH } }),
|
|
5713
5533
|
tickMoved([overLobe("head", {}, { result: { head: HEAD2 } })]),
|
|
5714
5534
|
tick([
|
|
5715
5535
|
jailer(
|
|
@@ -5756,7 +5576,7 @@ var SYNCED = [
|
|
|
5756
5576
|
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
5577
|
cells: [{ key: ["repo"], value: AHEAD6 }],
|
|
5758
5578
|
asks: [
|
|
5759
|
-
asked3(NEAR2, "push", { tells: true }, [
|
|
5579
|
+
asked3(NEAR2, "push", { tells: true }, [ends2(HELD), CAPPED, ordered2(NEAR2), tickSet], {
|
|
5760
5580
|
result: { job: PUSH }
|
|
5761
5581
|
}),
|
|
5762
5582
|
asked3(NEAR2, "push", {}, [], refused2),
|
|
@@ -5766,7 +5586,7 @@ var SYNCED = [
|
|
|
5766
5586
|
${NEXT2}
|
|
5767
5587
|
`, "", [tickSet]),
|
|
5768
5588
|
tickMoved([
|
|
5769
|
-
|
|
5589
|
+
ends2(),
|
|
5770
5590
|
drawnBack(),
|
|
5771
5591
|
jailer("piece", { at: 0, as: "push" }, { result: { bytes: ONE8 } }),
|
|
5772
5592
|
overLobe("take", { push: PUSH, at: 0, pieces: 1, bytes: ONE8, tells: BACK_INVITATION }, done2)
|
|
@@ -5792,7 +5612,7 @@ ${NEXT2}
|
|
|
5792
5612
|
),
|
|
5793
5613
|
asked3(TELLER, "done", { job: PUSH, kind: "push", code: 0, out: `${NEXT2}
|
|
5794
5614
|
`, err: "", check: GREEN }, [], refused2),
|
|
5795
|
-
asked3(OWNER2, "relink", { invitation: "nervur:again", instead: "lobe-9" }, [
|
|
5615
|
+
asked3(OWNER2, "relink", { invitation: "nervur:again", instead: "lobe-9" }, [ends2(HELD)], {
|
|
5796
5616
|
error: { code: "absent" }
|
|
5797
5617
|
}),
|
|
5798
5618
|
asked3(
|
|
@@ -5800,8 +5620,8 @@ ${NEXT2}
|
|
|
5800
5620
|
"relink",
|
|
5801
5621
|
{ invitation: "nervur:again", instead: "lobe-1" },
|
|
5802
5622
|
[
|
|
5803
|
-
|
|
5804
|
-
|
|
5623
|
+
ends2(HELD),
|
|
5624
|
+
ends2(OCCUPANT_TELLER),
|
|
5805
5625
|
droppedBack,
|
|
5806
5626
|
{ placeholder: "mouth", method: "drop", args: { far: STOOD }, answer: done2 },
|
|
5807
5627
|
{
|
|
@@ -5824,14 +5644,6 @@ ${NEXT2}
|
|
|
5824
5644
|
],
|
|
5825
5645
|
yields: [
|
|
5826
5646
|
{ 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
5647
|
{
|
|
5836
5648
|
key: ["repo"],
|
|
5837
5649
|
value: { ...AHEAD6, synced: { job: PUSH, kind: "push", asker: NEAR2, code: 0, err: "", check: GREEN } }
|
|
@@ -5846,7 +5658,7 @@ ${NEXT2}
|
|
|
5846
5658
|
OWNER2,
|
|
5847
5659
|
"left",
|
|
5848
5660
|
{ far: STOOD, note: { repo: NAME, on: "lobe-1" } },
|
|
5849
|
-
[
|
|
5661
|
+
[ends2(), ends2(OCCUPANT_TELLER), droppedBack],
|
|
5850
5662
|
done2
|
|
5851
5663
|
)
|
|
5852
5664
|
],
|
|
@@ -5856,7 +5668,7 @@ ${NEXT2}
|
|
|
5856
5668
|
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
5669
|
cells: [{ key: ["repo"], value: AHEAD6 }],
|
|
5858
5670
|
asks: [
|
|
5859
|
-
asked3(OWNER2, "pull", {}, [
|
|
5671
|
+
asked3(OWNER2, "pull", {}, [ends2(HELD), CAPPED, tickSet], { result: { job: PULL4 } }),
|
|
5860
5672
|
tickMoved([overLobe("give", { since: NEXT2 }, { result: { pieces: 1, head: OTHER } })]),
|
|
5861
5673
|
tickMoved([
|
|
5862
5674
|
overLobe("piece", { at: 0 }, { result: { bytes: ONE8 } }),
|
|
@@ -5871,15 +5683,6 @@ merge
|
|
|
5871
5683
|
tick([], false)
|
|
5872
5684
|
],
|
|
5873
5685
|
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
5686
|
{
|
|
5884
5687
|
key: ["repo"],
|
|
5885
5688
|
value: { ...AHEAD6, synced: { job: PULL4, kind: "pull", asker: "brain", code: 1, err: REFUSED3, check: RED } }
|
|
@@ -5890,7 +5693,7 @@ merge
|
|
|
5890
5693
|
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
5694
|
cells: [
|
|
5892
5695
|
{ key: ["back", NEAR2], value: true },
|
|
5893
|
-
{ key: ["job", "run-2"], value:
|
|
5696
|
+
{ key: ["job", "run-2"], value: checking("run-2", NEAR2, null) },
|
|
5894
5697
|
{ key: ["repo"], value: { ...AHEAD6, doing: "run-2" } },
|
|
5895
5698
|
pulling("checking", { asker: NEAR2, check: { job: "run-2" } })
|
|
5896
5699
|
],
|
|
@@ -5909,7 +5712,7 @@ merge
|
|
|
5909
5712
|
letter: { lives: LETTER_LIVES }
|
|
5910
5713
|
}
|
|
5911
5714
|
]),
|
|
5912
|
-
asked3(NEAR2, "pull", {}, [
|
|
5715
|
+
asked3(NEAR2, "pull", {}, [ends2(HELD), CAPPED, tickSet], { result: { job: PULL4 } }),
|
|
5913
5716
|
tickMoved([overLobe("give", { since: OTHER }, { result: { pieces: 1, head: NEXT2 } })]),
|
|
5914
5717
|
tickMoved([
|
|
5915
5718
|
overLobe("piece", { at: 0 }, { result: { bytes: ONE8 } }),
|
|
@@ -5922,24 +5725,6 @@ merge
|
|
|
5922
5725
|
],
|
|
5923
5726
|
yields: [
|
|
5924
5727
|
{ 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
5728
|
{
|
|
5944
5729
|
key: ["repo"],
|
|
5945
5730
|
value: repo({ head: OTHER, synced: { job: PULL4, kind: "pull", asker: NEAR2, code: 1, err: CONFLICT2 } })
|
|
@@ -5996,9 +5781,9 @@ merge
|
|
|
5996
5781
|
done2
|
|
5997
5782
|
),
|
|
5998
5783
|
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" }, [
|
|
5784
|
+
asked3(OWNER2, "pull", { name: NAME }, [ends2(HELD, HELD_TWO)], refused2),
|
|
5785
|
+
asked3(OWNER2, "pull", { on: "lobe-9" }, [ends2(HELD, HELD_TWO)], { error: { code: "absent" } }),
|
|
5786
|
+
asked3(OWNER2, "pull", { name: NAME, on: "lobe-2" }, [ends2(HELD, HELD_TWO), CAPPED, tickSet], {
|
|
6002
5787
|
result: { job: PULL4 }
|
|
6003
5788
|
}),
|
|
6004
5789
|
tick([overLobe("give", { since: NEXT2 }, { result: { pieces: 0, head: NEXT2 } }, "lobe-2")], false)
|
|
@@ -6039,12 +5824,6 @@ merge
|
|
|
6039
5824
|
],
|
|
6040
5825
|
yields: [
|
|
6041
5826
|
{ 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
5827
|
{
|
|
6049
5828
|
key: ["repo"],
|
|
6050
5829
|
value: { ...AHEAD6, synced: { job: PUSH, kind: "push", asker: NEAR2, code: 0, err: "", check: GREEN } }
|
|
@@ -6074,12 +5853,6 @@ ${NEXT2}
|
|
|
6074
5853
|
],
|
|
6075
5854
|
yields: [
|
|
6076
5855
|
{ 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
5856
|
{
|
|
6084
5857
|
key: ["repo"],
|
|
6085
5858
|
value: { ...AHEAD6, synced: { job: PUSH, kind: "push", asker: NEAR2, code: 1, err: CONFLICT2 } }
|
|
@@ -6122,6 +5895,15 @@ var toFar = (args) => ({
|
|
|
6122
5895
|
args,
|
|
6123
5896
|
answer: done2
|
|
6124
5897
|
});
|
|
5898
|
+
var FIRST_BACK = `library-${FAR_LIBRARY.toLowerCase()}`;
|
|
5899
|
+
var SECOND_BACK = relation("B4", "standing", "library-g2", { repo: NAME, library: "G2" });
|
|
5900
|
+
var toSecond = (args, answer = done2) => ({
|
|
5901
|
+
placeholder: "library-g2",
|
|
5902
|
+
method: "changed",
|
|
5903
|
+
args,
|
|
5904
|
+
answer
|
|
5905
|
+
});
|
|
5906
|
+
var GONE = { error: { code: "unavailable", message: "the far organism answers not" } };
|
|
6125
5907
|
var farToo = (row) => isFields4(row) && isFields4(row["value"]) ? { ...row, value: { ...row["value"], far: true } } : row;
|
|
6126
5908
|
var TOLD = [
|
|
6127
5909
|
{
|
|
@@ -6130,7 +5912,7 @@ var TOLD = [
|
|
|
6130
5912
|
asks: [
|
|
6131
5913
|
endedThen("run-1", "scan", 0, BOTH2, "", [
|
|
6132
5914
|
...bothRead,
|
|
6133
|
-
|
|
5915
|
+
ends2(),
|
|
6134
5916
|
library(true),
|
|
6135
5917
|
changed({ kind: "faculty", label: "notes", version: "0.1.0", digest: DIGEST }),
|
|
6136
5918
|
changed({ ...ACME_GET, digest: LOOK2 })
|
|
@@ -6138,7 +5920,8 @@ var TOLD = [
|
|
|
6138
5920
|
],
|
|
6139
5921
|
yields: [
|
|
6140
5922
|
...STILL,
|
|
6141
|
-
...
|
|
5923
|
+
...SCAN_ENDED,
|
|
5924
|
+
...toldInOrder(["faculty", "notes", "0.1.0"], ["faculty", "acme.look", "0.1.0"]),
|
|
6142
5925
|
acmeTold(true),
|
|
6143
5926
|
notesTold(true),
|
|
6144
5927
|
notesText,
|
|
@@ -6157,12 +5940,12 @@ var TOLD = [
|
|
|
6157
5940
|
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
5941
|
cells: SCANNING,
|
|
6159
5942
|
asks: [
|
|
6160
|
-
asked3(FAR_LIBRARY, "told", {}, [], { result: [] }),
|
|
5943
|
+
asked3(FAR_LIBRARY, "told", {}, [], { result: { told: [], cursor: null } }),
|
|
6161
5944
|
asked3(OWNER2, "told", { tells: HEARS }, [], refused2),
|
|
6162
|
-
asked3(FAR_LIBRARY, "told", { tells: HEARS }, [
|
|
5945
|
+
asked3(FAR_LIBRARY, "told", { tells: HEARS }, [ends2(), ACCEPTED_BACK], { result: { told: [], cursor: null } }),
|
|
6163
5946
|
endedThen("run-1", "scan", 0, BOTH2, "", [
|
|
6164
5947
|
...bothRead,
|
|
6165
|
-
|
|
5948
|
+
ends2(HEARD_BACK),
|
|
6166
5949
|
toFar({ kind: "faculty", label: "notes", version: "0.1.0", digest: DIGEST }),
|
|
6167
5950
|
toFar({ ...ACME_GET, digest: LOOK2 }),
|
|
6168
5951
|
library(true),
|
|
@@ -6172,7 +5955,8 @@ var TOLD = [
|
|
|
6172
5955
|
],
|
|
6173
5956
|
yields: [
|
|
6174
5957
|
...STILL,
|
|
6175
|
-
...
|
|
5958
|
+
...SCAN_ENDED,
|
|
5959
|
+
...toldInOrder(["faculty", "notes", "0.1.0"], ["faculty", "acme.look", "0.1.0"]),
|
|
6176
5960
|
farToo(acmeTold(true)),
|
|
6177
5961
|
farToo(notesTold(true)),
|
|
6178
5962
|
notesText,
|
|
@@ -6182,13 +5966,45 @@ var TOLD = [
|
|
|
6182
5966
|
}
|
|
6183
5967
|
]
|
|
6184
5968
|
},
|
|
5969
|
+
{
|
|
5970
|
+
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.",
|
|
5971
|
+
cells: SCANNING,
|
|
5972
|
+
asks: [
|
|
5973
|
+
endedThen("run-1", "scan", 0, BOTH2, "", [
|
|
5974
|
+
...bothRead,
|
|
5975
|
+
ends2(HEARD_BACK, SECOND_BACK),
|
|
5976
|
+
toFar({ kind: "faculty", label: "notes", version: "0.1.0", digest: DIGEST }),
|
|
5977
|
+
toSecond({ kind: "faculty", label: "notes", version: "0.1.0", digest: DIGEST }, GONE),
|
|
5978
|
+
toFar({ ...ACME_GET, digest: LOOK2 }),
|
|
5979
|
+
toSecond({ ...ACME_GET, digest: LOOK2 }),
|
|
5980
|
+
library(true),
|
|
5981
|
+
changed({ kind: "faculty", label: "notes", version: "0.1.0", digest: DIGEST }),
|
|
5982
|
+
changed({ ...ACME_GET, digest: LOOK2 })
|
|
5983
|
+
])
|
|
5984
|
+
],
|
|
5985
|
+
yields: [
|
|
5986
|
+
...STILL,
|
|
5987
|
+
...SCAN_ENDED,
|
|
5988
|
+
...toldInOrder(["faculty", "notes", "0.1.0"], ["faculty", "acme.look", "0.1.0"]),
|
|
5989
|
+
farToo(acmeTold(true)),
|
|
5990
|
+
{
|
|
5991
|
+
key: ["told", "faculty", "notes", "0.1.0"],
|
|
5992
|
+
value: { digest: DIGEST, heard: true, at: TIME4, farHeard: [FIRST_BACK] }
|
|
5993
|
+
},
|
|
5994
|
+
notesText,
|
|
5995
|
+
{
|
|
5996
|
+
key: ["scanned"],
|
|
5997
|
+
value: { head: HEAD2, faculties: [NOTES3], organs: [], designs: [ACME] }
|
|
5998
|
+
}
|
|
5999
|
+
]
|
|
6000
|
+
},
|
|
6185
6001
|
{
|
|
6186
6002
|
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
6003
|
cells: SCANNING,
|
|
6188
6004
|
asks: [endedThen("run-1", "scan", 0, BOTH_UNTAGGED, "", bothRead)],
|
|
6189
6005
|
yields: [
|
|
6190
6006
|
...STILL,
|
|
6191
|
-
...
|
|
6007
|
+
...SCAN_ENDED,
|
|
6192
6008
|
{
|
|
6193
6009
|
key: ["scanned"],
|
|
6194
6010
|
value: {
|
|
@@ -6219,7 +6035,7 @@ var TOLD = [
|
|
|
6219
6035
|
],
|
|
6220
6036
|
yields: [
|
|
6221
6037
|
...STILL,
|
|
6222
|
-
...
|
|
6038
|
+
...SCAN_ENDED,
|
|
6223
6039
|
acmeTold(true, "e".repeat(64)),
|
|
6224
6040
|
notesTold(true, "f".repeat(64)),
|
|
6225
6041
|
{
|
|
@@ -6239,7 +6055,7 @@ var TOLD = [
|
|
|
6239
6055
|
asks: [
|
|
6240
6056
|
endedThen("run-1", "scan", 0, ORGAN, "", [
|
|
6241
6057
|
read("organs/printer/graph.json", BLUEPRINT),
|
|
6242
|
-
|
|
6058
|
+
ends2(),
|
|
6243
6059
|
library(true),
|
|
6244
6060
|
changed({ kind: "organ", label: "printer", version: "0.1.0", digest: digestOf(BLUEPRINT) })
|
|
6245
6061
|
]),
|
|
@@ -6281,7 +6097,9 @@ var TOLD = [
|
|
|
6281
6097
|
{ key: ["built", "printer", "0.1.0"], value: HALF },
|
|
6282
6098
|
{ key: ["by", NEAR2, "run-2"], value: null },
|
|
6283
6099
|
{ key: ["by", NEAR2, "run-3"], value: null },
|
|
6284
|
-
...
|
|
6100
|
+
...SCAN_ENDED,
|
|
6101
|
+
...toldInOrder(["organ", "printer", "0.1.0"]),
|
|
6102
|
+
...endedKept(NEAR2, "run-2", "run-3"),
|
|
6285
6103
|
{
|
|
6286
6104
|
key: ["job", "run-2"],
|
|
6287
6105
|
value: job2("run-2", "build", NEAR2, end2("run-2", 0, `${HALF}
|
|
@@ -6320,7 +6138,7 @@ var TOLD_BELOW = [
|
|
|
6320
6138
|
asks: [
|
|
6321
6139
|
endedThen("run-1", "scan", 0, BELOW, "", [
|
|
6322
6140
|
read("faculties/notes/versions.json", VERSIONS),
|
|
6323
|
-
|
|
6141
|
+
ends2(),
|
|
6324
6142
|
library(true),
|
|
6325
6143
|
changed({ kind: "faculty", label: "notes", version: "0.1.0", digest: DIGEST })
|
|
6326
6144
|
]),
|
|
@@ -6328,7 +6146,8 @@ var TOLD_BELOW = [
|
|
|
6328
6146
|
],
|
|
6329
6147
|
yields: [
|
|
6330
6148
|
...STILL,
|
|
6331
|
-
...
|
|
6149
|
+
...SCAN_ENDED,
|
|
6150
|
+
...toldInOrder(["faculty", "notes", "0.1.0"]),
|
|
6332
6151
|
{
|
|
6333
6152
|
key: ["scanned"],
|
|
6334
6153
|
value: { head: HEAD2, faculties: [], organs: [], designs: [] }
|
|
@@ -6343,7 +6162,7 @@ var TOLD_BELOW = [
|
|
|
6343
6162
|
asks: [
|
|
6344
6163
|
endedThen("run-1", "scan", 0, BELOW_CARRYING, "", [
|
|
6345
6164
|
read("faculties/notes/versions.json", VERSIONS),
|
|
6346
|
-
|
|
6165
|
+
ends2(),
|
|
6347
6166
|
library(true),
|
|
6348
6167
|
changed({ kind: "faculty", label: "notes", version: "0.1.0", digest: DIGEST })
|
|
6349
6168
|
]),
|
|
@@ -6353,7 +6172,8 @@ var TOLD_BELOW = [
|
|
|
6353
6172
|
],
|
|
6354
6173
|
yields: [
|
|
6355
6174
|
...STILL,
|
|
6356
|
-
...
|
|
6175
|
+
...SCAN_ENDED,
|
|
6176
|
+
...toldInOrder(["faculty", "notes", "0.1.0"]),
|
|
6357
6177
|
{
|
|
6358
6178
|
key: ["scanned"],
|
|
6359
6179
|
value: { head: HEAD2, faculties: [], organs: [], designs: [] }
|