@nervur.org/floor 0.37.11 → 0.37.13
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 +1 -1
- package/evidence.js +87 -28
- package/index.js +7 -7
- package/package.json +1 -1
package/design.js
CHANGED
|
@@ -720,7 +720,7 @@ var namesTwice = (text) => {
|
|
|
720
720
|
}
|
|
721
721
|
const end = closing(text, at);
|
|
722
722
|
let after = end;
|
|
723
|
-
while (
|
|
723
|
+
while (/\s/u.test(text.charAt(after))) after += 1;
|
|
724
724
|
const keys = open.at(-1);
|
|
725
725
|
if (text[after] === ":" && keys !== null && keys !== void 0) {
|
|
726
726
|
const key = JSON.parse(text.slice(at, end));
|
package/evidence.js
CHANGED
|
@@ -842,6 +842,8 @@ var SCREEN_EVIDENCE = [
|
|
|
842
842
|
];
|
|
843
843
|
|
|
844
844
|
var LETTER_LIVES = 864e5;
|
|
845
|
+
var CELLS_RANGE = 1e3;
|
|
846
|
+
var ARGS_MOST = 64;
|
|
845
847
|
|
|
846
848
|
import { BOX_SIZE } from "@nervur.org/genome/seams";
|
|
847
849
|
import { isFields } from "@nervur.org/genome/standard";
|
|
@@ -870,7 +872,7 @@ git init --quiet -b main`,
|
|
|
870
872
|
stand: [
|
|
871
873
|
"sh",
|
|
872
874
|
"-c",
|
|
873
|
-
'{ [ -d "$1" ] && [ ! -L "$1" ] && ls -1A "${1%/*}" | grep -qxF -- "${1##*/}"; } || { echo "the folder ${1##*/} stands not as named under repos" >&2; exit 1; }\ncd "$1" || exit 1\nexport GIT_CEILING_DIRECTORIES="${1%/*}"\nexport GIT_AUTHOR_NAME=Nervur GIT_AUTHOR_EMAIL=nervur@invalid GIT_COMMITTER_NAME=Nervur GIT_COMMITTER_EMAIL=nervur@invalid\n[ -d .git ] && [ ! -L .git ] && [ "$(git rev-parse --show-toplevel 2>/dev/null)" = "$(pwd -P)" ] || { echo "the folder holds no repo to stand on" >&2; exit 1; }\n[ "$(git branch --show-current)" = main ] || { echo "the repo is not on main" >&2; exit 1; }\nc=$(git rev-parse -q --verify refs/heads/main) || { echo "main holds no commit: a repo with none is born by init alone" >&2; exit 1; }\nt=$(mktemp -d) || exit 1\ntrap \'git -C "$1" worktree remove --force "$t/w" 2>/dev/null; rm -rf "$t"; git -C "$1" worktree prune\' EXIT\nnode -e \'const fs = require("node:fs");
|
|
875
|
+
'{ [ -d "$1" ] && [ ! -L "$1" ] && ls -1A "${1%/*}" | grep -qxF -- "${1##*/}"; } || { echo "the folder ${1##*/} stands not as named under repos" >&2; exit 1; }\ncd "$1" || exit 1\nexport GIT_CEILING_DIRECTORIES="${1%/*}"\nexport GIT_AUTHOR_NAME=Nervur GIT_AUTHOR_EMAIL=nervur@invalid GIT_COMMITTER_NAME=Nervur GIT_COMMITTER_EMAIL=nervur@invalid\n[ -d .git ] && [ ! -L .git ] && [ "$(git rev-parse --show-toplevel 2>/dev/null)" = "$(pwd -P)" ] || { echo "the folder holds no repo to stand on" >&2; exit 1; }\n[ "$(git branch --show-current)" = main ] || { echo "the repo is not on main" >&2; exit 1; }\nc=$(git rev-parse -q --verify refs/heads/main) || { echo "main holds no commit: a repo with none is born by init alone" >&2; exit 1; }\nt=$(mktemp -d) || exit 1\ntrap \'git -C "$1" worktree remove --force "$t/w" 2>/dev/null; rm -rf "$t"; git -C "$1" worktree prune\' EXIT\nnode -e \'const fs = require("node:fs"); const { execFileSync } = require("node:child_process");\nconst held = (args) => { try { return execFileSync("git", args, { stdio: ["ignore", "pipe", "ignore"], maxBuffer: 268435456 }).toString("utf8"); } catch { return null; } };\nconst at = (file) => process.argv[1] + "/" + file;\nlet s = ""; process.stdin.setEncoding("utf8"); process.stdin.on("data", (d) => { s += d; }); process.stdin.on("end", () => {\nconst given = JSON.parse(s);\nfor (const [name, file] of [["parts", "parts.mjs"], ["message", "message"], ["conform", "chosen"]]) if (typeof given[name] === "string") fs.writeFileSync(at(file), given[name]);\nif (Array.isArray(given.executable)) fs.writeFileSync(at("executable"), given.executable.map((path) => path + "\\0").join(""));\nif (Array.isArray(given.paths)) fs.writeFileSync(at("paths"), given.paths.map((path) => path + "\\0").join(""));\nif (given.scoped === true) fs.writeFileSync(at("scoped"), "");\nif (!fs.existsSync(at("parts.mjs"))) { process.stderr.write("no check of the parts was given\\n"); process.exit(1); }\nconst tag = held(["describe", "--tags", "--abbrev=0", "--match", "v*", "HEAD"]);\nif (tag === null) return;\nconst told = {};\nfor (const path of (held(["ls-tree", "-r", "--name-only", tag.trim()]) ?? "").split("\\n")) {\nif (!/^(faculties|designs)\\/[^/]+\\/versions\\.json$/.test(path)) continue;\nconst text = held(["show", tag.trim() + ":" + path]); if (text !== null) told[path] = text;\n}\nfs.writeFileSync(at("told.json"), JSON.stringify(told));\n});\' -- "$t" || exit 1\ngit worktree add --quiet --detach "$t/w" "$c" >/dev/null 2>&1 || exit 1\nw="$t/w"\nprintf %s "$c" > "$t/chosen"\n{\nif [ -n "${NERVUR_GENOME+x}" ]; then { [ -d "$NERVUR_GENOME" ] && [ -r "$NERVUR_GENOME" ] && [ -x "$NERVUR_GENOME" ]; } || { echo "NERVUR_GENOME $NERVUR_GENOME is no folder this account can read" >&2; exit 1; }; mkdir -p "$t/node_modules/@nervur.org" && ln -sfn "$NERVUR_GENOME" "$t/node_modules/@nervur.org/genome" || exit 1; fi\ntold=\n[ ! -f "$t/told.json" ] || told="$t/told.json"\nnode "$t/parts.mjs" "$w" ${told:+"$told"} || exit 1\nif [ -f "$t/scoped" ]; then echo "conform: skipped: a lobe holding a scope is checked by the lobe it pushes to"\nelif [ ! -f "$t/chosen" ]; then echo "conform: skipped: no conform is chosen: the check of the parts alone"\nelse k=$(cat "$t/chosen")\ngit cat-file -e "$k^{commit}" 2>/dev/null || { echo "the commit whose conform is chosen, $k, the repo holds not"; exit 1; }\nif git show "$k:tools/conform.mjs" > "$t/conform.mjs" 2>/dev/null; then node "$t/conform.mjs" "$w" || exit 1; else echo "conform: skipped: the commit chosen, $k, holds no tools/conform.mjs"; fi\nfi\n} >&2\necho "conform $c"\necho "$c"',
|
|
874
876
|
"stand"
|
|
875
877
|
],
|
|
876
878
|
head: [
|
|
@@ -895,7 +897,25 @@ export GIT_AUTHOR_NAME=Nervur GIT_AUTHOR_EMAIL=nervur@invalid GIT_COMMITTER_NAME
|
|
|
895
897
|
[ "$(git branch --show-current)" = main ] || { echo "the repo is not on main" >&2; exit 1; }
|
|
896
898
|
t=$(mktemp -d) || exit 1
|
|
897
899
|
trap 'rm -rf "$t"' EXIT
|
|
898
|
-
node -e 'const fs = require("node:fs");
|
|
900
|
+
node -e 'const fs = require("node:fs"); const { execFileSync } = require("node:child_process");
|
|
901
|
+
const held = (args) => { try { return execFileSync("git", args, { stdio: ["ignore", "pipe", "ignore"], maxBuffer: 268435456 }).toString("utf8"); } catch { return null; } };
|
|
902
|
+
const at = (file) => process.argv[1] + "/" + file;
|
|
903
|
+
let s = ""; process.stdin.setEncoding("utf8"); process.stdin.on("data", (d) => { s += d; }); process.stdin.on("end", () => {
|
|
904
|
+
const given = JSON.parse(s);
|
|
905
|
+
for (const [name, file] of [["parts", "parts.mjs"], ["message", "message"], ["conform", "chosen"]]) if (typeof given[name] === "string") fs.writeFileSync(at(file), given[name]);
|
|
906
|
+
if (Array.isArray(given.executable)) fs.writeFileSync(at("executable"), given.executable.map((path) => path + "\\0").join(""));
|
|
907
|
+
if (Array.isArray(given.paths)) fs.writeFileSync(at("paths"), given.paths.map((path) => path + "\\0").join(""));
|
|
908
|
+
if (given.scoped === true) fs.writeFileSync(at("scoped"), "");
|
|
909
|
+
if (!fs.existsSync(at("parts.mjs"))) { process.stderr.write("no check of the parts was given\\n"); process.exit(1); }
|
|
910
|
+
const tag = held(["describe", "--tags", "--abbrev=0", "--match", "v*", "HEAD"]);
|
|
911
|
+
if (tag === null) return;
|
|
912
|
+
const told = {};
|
|
913
|
+
for (const path of (held(["ls-tree", "-r", "--name-only", tag.trim()]) ?? "").split("\\n")) {
|
|
914
|
+
if (!/^(faculties|designs)\\/[^/]+\\/versions\\.json$/.test(path)) continue;
|
|
915
|
+
const text = held(["show", tag.trim() + ":" + path]); if (text !== null) told[path] = text;
|
|
916
|
+
}
|
|
917
|
+
fs.writeFileSync(at("told.json"), JSON.stringify(told));
|
|
918
|
+
});' -- "$t" || exit 1
|
|
899
919
|
{
|
|
900
920
|
if [ -e .env ] && ! git check-ignore -q -- .env; then echo ".env is a secret file .gitignore keeps not out: no commit holds it"; exit 1; fi
|
|
901
921
|
if [ -f "$t/paths" ]; then
|
|
@@ -912,16 +932,8 @@ GIT_INDEX_FILE="$t/index" git add --all || exit 1
|
|
|
912
932
|
fi
|
|
913
933
|
mkdir "$t/w" && GIT_INDEX_FILE="$t/index" git checkout-index --all --prefix="$t/w/" || exit 1
|
|
914
934
|
w="$t/w"
|
|
915
|
-
told
|
|
916
|
-
|
|
917
|
-
const tag = held(["describe", "--tags", "--abbrev=0", "--match", "v*", "HEAD"]);
|
|
918
|
-
if (tag === null) process.exit(0);
|
|
919
|
-
const told = {};
|
|
920
|
-
for (const path of (held(["ls-tree", "-r", "--name-only", tag.trim()]) ?? "").split("\\n")) {
|
|
921
|
-
if (!/^(faculties|designs)\\/[^/]+\\/versions\\.json$/.test(path)) continue;
|
|
922
|
-
const text = held(["show", tag.trim() + ":" + path]); if (text !== null) told[path] = text;
|
|
923
|
-
}
|
|
924
|
-
fs.writeFileSync(process.argv[1], JSON.stringify(told)); process.stdout.write(process.argv[1] + "\\n");' -- "$t/told.json") || exit 1
|
|
935
|
+
told=
|
|
936
|
+
[ ! -f "$t/told.json" ] || told="$t/told.json"
|
|
925
937
|
node "$t/parts.mjs" "$w" \${told:+"$told"} || exit 1
|
|
926
938
|
if [ -f "$t/scoped" ]; then echo "conform: skipped: a lobe holding a scope is checked by the lobe it pushes to"
|
|
927
939
|
elif [ ! -f "$t/chosen" ]; then echo "conform: skipped: no conform is chosen: the check of the parts alone"
|
|
@@ -1106,20 +1118,30 @@ c=$(git rev-parse -q --verify "refs/nervur/$2-main") || { echo "nothing waits as
|
|
|
1106
1118
|
[ "$c" = "$3" ] || { echo "what waits as $2 is $c, not $3" >&2; exit 1; }
|
|
1107
1119
|
t=$(mktemp -d) || exit 1
|
|
1108
1120
|
trap 'git -C "$1" worktree remove --force "$t/w" 2>/dev/null; rm -rf "$t"; git -C "$1" worktree prune' EXIT
|
|
1109
|
-
node -e 'const fs = require("node:fs");
|
|
1110
|
-
git worktree add --quiet --detach "$t/w" "$c" >/dev/null 2>&1 || exit 1
|
|
1111
|
-
w="$t/w"
|
|
1112
|
-
if [ -n "\${NERVUR_GENOME+x}" ]; then { [ -d "$NERVUR_GENOME" ] && [ -r "$NERVUR_GENOME" ] && [ -x "$NERVUR_GENOME" ]; } || { echo "NERVUR_GENOME $NERVUR_GENOME is no folder this account can read" >&2; exit 1; }; mkdir -p "$t/node_modules/@nervur.org" && ln -sfn "$NERVUR_GENOME" "$t/node_modules/@nervur.org/genome" || exit 1; fi
|
|
1113
|
-
told=$(node -e 'const fs = require("node:fs"); const { execFileSync } = require("node:child_process");
|
|
1121
|
+
node -e 'const fs = require("node:fs"); const { execFileSync } = require("node:child_process");
|
|
1114
1122
|
const held = (args) => { try { return execFileSync("git", args, { stdio: ["ignore", "pipe", "ignore"], maxBuffer: 268435456 }).toString("utf8"); } catch { return null; } };
|
|
1123
|
+
const at = (file) => process.argv[1] + "/" + file;
|
|
1124
|
+
let s = ""; process.stdin.setEncoding("utf8"); process.stdin.on("data", (d) => { s += d; }); process.stdin.on("end", () => {
|
|
1125
|
+
const given = JSON.parse(s);
|
|
1126
|
+
for (const [name, file] of [["parts", "parts.mjs"], ["message", "message"], ["conform", "chosen"]]) if (typeof given[name] === "string") fs.writeFileSync(at(file), given[name]);
|
|
1127
|
+
if (Array.isArray(given.executable)) fs.writeFileSync(at("executable"), given.executable.map((path) => path + "\\0").join(""));
|
|
1128
|
+
if (Array.isArray(given.paths)) fs.writeFileSync(at("paths"), given.paths.map((path) => path + "\\0").join(""));
|
|
1129
|
+
if (given.scoped === true) fs.writeFileSync(at("scoped"), "");
|
|
1130
|
+
if (!fs.existsSync(at("parts.mjs"))) { process.stderr.write("no check of the parts was given\\n"); process.exit(1); }
|
|
1115
1131
|
const tag = held(["describe", "--tags", "--abbrev=0", "--match", "v*", "HEAD"]);
|
|
1116
|
-
if (tag === null)
|
|
1132
|
+
if (tag === null) return;
|
|
1117
1133
|
const told = {};
|
|
1118
1134
|
for (const path of (held(["ls-tree", "-r", "--name-only", tag.trim()]) ?? "").split("\\n")) {
|
|
1119
1135
|
if (!/^(faculties|designs)\\/[^/]+\\/versions\\.json$/.test(path)) continue;
|
|
1120
1136
|
const text = held(["show", tag.trim() + ":" + path]); if (text !== null) told[path] = text;
|
|
1121
1137
|
}
|
|
1122
|
-
fs.writeFileSync(
|
|
1138
|
+
fs.writeFileSync(at("told.json"), JSON.stringify(told));
|
|
1139
|
+
});' -- "$t" || exit 1
|
|
1140
|
+
git worktree add --quiet --detach "$t/w" "$c" >/dev/null 2>&1 || exit 1
|
|
1141
|
+
w="$t/w"
|
|
1142
|
+
if [ -n "\${NERVUR_GENOME+x}" ]; then { [ -d "$NERVUR_GENOME" ] && [ -r "$NERVUR_GENOME" ] && [ -x "$NERVUR_GENOME" ]; } || { echo "NERVUR_GENOME $NERVUR_GENOME is no folder this account can read" >&2; exit 1; }; mkdir -p "$t/node_modules/@nervur.org" && ln -sfn "$NERVUR_GENOME" "$t/node_modules/@nervur.org/genome" || exit 1; fi
|
|
1143
|
+
told=
|
|
1144
|
+
[ ! -f "$t/told.json" ] || told="$t/told.json"
|
|
1123
1145
|
node "$t/parts.mjs" "$w" \${told:+"$told"} || exit 1
|
|
1124
1146
|
if [ -f "$t/scoped" ]; then echo "conform: skipped: a lobe holding a scope is checked by the lobe it pushes to"
|
|
1125
1147
|
elif [ ! -f "$t/chosen" ]; then echo "conform: skipped: no conform is chosen: the check of the parts alone"
|
|
@@ -2022,6 +2044,7 @@ forward
|
|
|
2022
2044
|
asked2(SPEC, "put", { at: 0, pieces: 1, bytes: ONE2, as: "pull" }, [piece("write", "pull", 0, done, ONE2)], done),
|
|
2023
2045
|
asked2(SPEC, "bring", { as: "pull", pieces: 0 }, [], refused),
|
|
2024
2046
|
asked2(SPEC, "conform", { as: "in-F1", head: "main", parts: PARTS }, [], refused),
|
|
2047
|
+
asked2(SPEC, "conform", { as: "../x", head: NEXT, parts: PARTS }, [], refused),
|
|
2025
2048
|
asked2(SPEC, "conform", { as: "in-F1", head: NEXT }, [], refused),
|
|
2026
2049
|
asked2(
|
|
2027
2050
|
SPEC,
|
|
@@ -2231,6 +2254,7 @@ ${NEXT}
|
|
|
2231
2254
|
|
|
2232
2255
|
import { utf8Bytes as utf8Bytes2 } from "@nervur.org/genome/standard";
|
|
2233
2256
|
var NOTES2 = "Ünïcødé ✓ 🌱\nsecond line";
|
|
2257
|
+
var WORDS = ["--only", "a; b", ...Array.from({ length: ARGS_MOST - 2 }, (_, at2) => `w${String(at2)}`)];
|
|
2234
2258
|
var MESSAGE3 = "The whitepaper at 020";
|
|
2235
2259
|
var STATUS = "## main\n M whitepaper.md\n";
|
|
2236
2260
|
var TOKEN = "npm_t0k=en";
|
|
@@ -2454,11 +2478,12 @@ lacks
|
|
|
2454
2478
|
asked2(
|
|
2455
2479
|
GENOME,
|
|
2456
2480
|
"run",
|
|
2457
|
-
{ script: "gate", args:
|
|
2458
|
-
[WIRED2, ran("run", [`${AT}/repos/genome`, "gate", "install", "gate",
|
|
2481
|
+
{ script: "gate", args: WORDS, install: true, gate: true },
|
|
2482
|
+
[WIRED2, ran("run", [`${AT}/repos/genome`, "gate", "install", "gate", ...WORDS], "", "run-5")],
|
|
2459
2483
|
begun("run-5")
|
|
2460
2484
|
),
|
|
2461
2485
|
asked2(SPEC, "run", { script: "gate", args: ["a\0b"] }, [], refused),
|
|
2486
|
+
asked2(SPEC, "run", { script: "gate", args: [...WORDS, "one more"] }, [], refused),
|
|
2462
2487
|
asked2(SPEC, "secrets", { set: { "npm-token": TOKEN } }, [], refused),
|
|
2463
2488
|
asked2(SPEC, "secrets", { set: { CI: "a\nb" } }, [], refused),
|
|
2464
2489
|
asked2(
|
|
@@ -3027,6 +3052,7 @@ var RED2 = "the commit is refused: the gate is red\nFAILED\n";
|
|
|
3027
3052
|
var UNIGNORED2 = ".env is a secret file .gitignore keeps not out: no commit holds it\n";
|
|
3028
3053
|
var PROPOSAL = { "proposals/021-a-proposal.md": "# A proposal\n" };
|
|
3029
3054
|
var PATH = "proposals/021-a-proposal.md";
|
|
3055
|
+
var MOST = Array.from({ length: CELLS_RANGE }, (_, at2) => at2 === 0 ? PATH : `docs/${String(at2)}.md`);
|
|
3030
3056
|
var MISSING = { error: { code: "absent", message: "no such file" } };
|
|
3031
3057
|
var BEFORE_NEW = [jailer("read", { path: PATH }, MISSING), jailer("list", { path: "proposals" }, MISSING)];
|
|
3032
3058
|
var BEFORE_BOTH = [...BEFORE_NEW, jailer("read", { path: "README.md" }, { result: { text: "old\n", lines: 2 } })];
|
|
@@ -3098,9 +3124,19 @@ var COMMITTED2 = [
|
|
|
3098
3124
|
says: "A commit naming `paths` takes those alone: each a file or a folder of the repo, relative, none climbing out of it nor reaching `.git`, not beside `files`, refused else with nothing asked; its gate runs as it does for any, and the paths are carried past it to the commit, which writes and puts back no file, a red gate refusing it with the tail alone.",
|
|
3099
3125
|
cells: [{ key: ["repo"], value: AHEAD }],
|
|
3100
3126
|
asks: [
|
|
3101
|
-
...[
|
|
3102
|
-
|
|
3103
|
-
|
|
3127
|
+
...[
|
|
3128
|
+
[],
|
|
3129
|
+
["../x.md"],
|
|
3130
|
+
["/x.md"],
|
|
3131
|
+
["a/../b"],
|
|
3132
|
+
[".git/config"],
|
|
3133
|
+
["a//b"],
|
|
3134
|
+
["a/"],
|
|
3135
|
+
[""],
|
|
3136
|
+
[1],
|
|
3137
|
+
"a",
|
|
3138
|
+
[...MOST, "x.md"]
|
|
3139
|
+
].map((paths) => asked3(OWNER2, "commit", { message: MESSAGE4, paths }, [], refused2)),
|
|
3104
3140
|
asked3(OWNER2, "commit", { message: MESSAGE4, paths: [PATH], files: PROPOSAL }, [], refused2),
|
|
3105
3141
|
asked3(OWNER2, "commit", { message: MESSAGE4, paths: ["docs", PATH] }, [ends2(), ran2("run", GATE, "run-1")], {
|
|
3106
3142
|
result: { job: "run-1" }
|
|
@@ -3117,8 +3153,8 @@ var COMMITTED2 = [
|
|
|
3117
3153
|
asked3(
|
|
3118
3154
|
OWNER2,
|
|
3119
3155
|
"commit",
|
|
3120
|
-
{ message: MESSAGE4, paths:
|
|
3121
|
-
[ends2(), ran2("commit", { ...COMMIT, paths:
|
|
3156
|
+
{ message: MESSAGE4, paths: MOST, gate: false },
|
|
3157
|
+
[ends2(), ran2("commit", { ...COMMIT, paths: MOST }, "run-5")],
|
|
3122
3158
|
{
|
|
3123
3159
|
result: { job: "run-5" }
|
|
3124
3160
|
}
|
|
@@ -3902,7 +3938,13 @@ var OWNERS_ALONE = [
|
|
|
3902
3938
|
["run", { script: "ship" }],
|
|
3903
3939
|
["setToken", { name: "API_KEY", value: TOKEN2 }],
|
|
3904
3940
|
["credential", { invitation: "nervur:issuer", secret: SECRET }],
|
|
3905
|
-
["invite", { standing: "runner", scripts: ["ship"] }]
|
|
3941
|
+
["invite", { standing: "runner", scripts: ["ship"] }],
|
|
3942
|
+
["drop", { far: "F9" }],
|
|
3943
|
+
["commit", { message: "A change" }],
|
|
3944
|
+
["read", { path: "README.md" }],
|
|
3945
|
+
["list", {}],
|
|
3946
|
+
["build", { organ: "printer", version: "0.1.0" }],
|
|
3947
|
+
["build", { design: "acme", version: "0.1.0" }]
|
|
3906
3948
|
];
|
|
3907
3949
|
var KEYED = [
|
|
3908
3950
|
{
|
|
@@ -4029,6 +4071,12 @@ var KEYED = [
|
|
|
4029
4071
|
{ key: ["repo"], value: { ...AHEAD4, doing: "run-3" } }
|
|
4030
4072
|
]
|
|
4031
4073
|
},
|
|
4074
|
+
{
|
|
4075
|
+
says: "A credential its issuer makes later is asked again at the time it named: a ring before it asks nothing and rings again then.",
|
|
4076
|
+
cells: [READY, waiting(HOUR)],
|
|
4077
|
+
asks: [at(TIME4, "scheduler", "renew", {}, [], { result: { again: MADE4 } })],
|
|
4078
|
+
yields: [READY, waiting(HOUR)]
|
|
4079
|
+
},
|
|
4032
4080
|
{
|
|
4033
4081
|
says: "A credential of a short life is renewed a tenth of that life ahead, and a renewal that failed is asked again at half what is left, each read from its own life.",
|
|
4034
4082
|
cells: [READY],
|
|
@@ -4093,7 +4141,7 @@ var KEYED = [
|
|
|
4093
4141
|
yields: [READY, waiting(LIFTED_CAP)]
|
|
4094
4142
|
},
|
|
4095
4143
|
{
|
|
4096
|
-
says: "A reader, a writer and a library are each refused `run`, `setToken`, `credential` and `
|
|
4144
|
+
says: "A reader, a writer and a library are each refused `run`, `setToken`, `credential`, `invite`, `drop`, `commit`, `read`, `list` and `build`, with nothing moved.",
|
|
4097
4145
|
cells: [READY, KEY],
|
|
4098
4146
|
asks: [READER, PUSHER, FAR_LIBRARY].flatMap(
|
|
4099
4147
|
(far) => OWNERS_ALONE.map(([method, args]) => asked3(far, method, args, [], refused2))
|
|
@@ -4428,6 +4476,7 @@ holds
|
|
|
4428
4476
|
tick([], false)
|
|
4429
4477
|
],
|
|
4430
4478
|
yields: [
|
|
4479
|
+
...endedKept(OWNER2, "run-1"),
|
|
4431
4480
|
{ key: ["job", "run-1"], value: REBUILDING(PULLED_WHOLE) },
|
|
4432
4481
|
scannedAt(NEXT2),
|
|
4433
4482
|
{
|
|
@@ -4482,6 +4531,7 @@ holds
|
|
|
4482
4531
|
key: ["in", PUSHER],
|
|
4483
4532
|
value: taken(1, ONE5, { run: "run-2", check: GREEN, landing: "run-4", landed: true })
|
|
4484
4533
|
},
|
|
4534
|
+
...endedKept(OWNER2, "run-1"),
|
|
4485
4535
|
{
|
|
4486
4536
|
key: ["job", "run-1"],
|
|
4487
4537
|
value: job2("run-1", "init", OWNER2, end2("run-1", 0, ""), { step: { rebuild: true } })
|
|
@@ -5064,6 +5114,9 @@ var PUSHED = [
|
|
|
5064
5114
|
cells: [{ key: ["repo"], value: repo() }],
|
|
5065
5115
|
asks: [
|
|
5066
5116
|
asked3(PUSHER, "take", { push: PUSH, at: 1, pieces: 2, bytes: TWO2 }, [], refused2),
|
|
5117
|
+
...[{ push: "" }, { at: "0" }, { pieces: "2" }, { bytes: "AQID" }].map(
|
|
5118
|
+
(wrong) => asked3(PUSHER, "take", { push: PUSH, at: 0, pieces: 2, bytes: ONE6, ...wrong }, [], refused2)
|
|
5119
|
+
),
|
|
5067
5120
|
asked3(
|
|
5068
5121
|
PUSHER,
|
|
5069
5122
|
"take",
|
|
@@ -5265,6 +5318,7 @@ forward
|
|
|
5265
5318
|
asks: [
|
|
5266
5319
|
asked3(NEAR2, "gates", { push: "on" }, [], refused2),
|
|
5267
5320
|
asked3(OWNER2, "gates", { push: "sideways" }, [], refused2),
|
|
5321
|
+
asked3(OWNER2, "gates", { commit: "sometimes" }, [], refused2),
|
|
5268
5322
|
asked3(OWNER2, "gates", { push: "on" }, [], { result: { commit: "on", push: "on" } }),
|
|
5269
5323
|
asked3(OWNER2, "gate", { script: "-rf" }, [], refused2),
|
|
5270
5324
|
asked3(OWNER2, "gate", { script: "check" }, [], done2),
|
|
@@ -5413,6 +5467,7 @@ var SERVED = [
|
|
|
5413
5467
|
asked3(FAR_LIBRARY, "head", null, [], refused2),
|
|
5414
5468
|
asked3("F9", "head", null, [], refused2),
|
|
5415
5469
|
asked3(READER, "head", null, [], { result: { head: HEAD2 } }),
|
|
5470
|
+
asked3(READER, "piece", { at: 0 }, [], refused2),
|
|
5416
5471
|
asked3(READER, "give", { since: null }, [ran2("bundle", { since: null, as: `out-${READER}` }, "run-1")], {
|
|
5417
5472
|
result: { ready: false }
|
|
5418
5473
|
}),
|
|
@@ -5424,7 +5479,11 @@ ${HEAD2}
|
|
|
5424
5479
|
asked3(READER, "piece", { at: 0 }, [jailer("piece", { at: 0, as: `out-${READER}` }, { result: { bytes: ONE7 } })], {
|
|
5425
5480
|
result: { bytes: ONE7 }
|
|
5426
5481
|
}),
|
|
5482
|
+
asked3(READER, "piece", { at: 1 }, [jailer("piece", { at: 1, as: `out-${READER}` }, { result: { bytes: ONE7 } })], {
|
|
5483
|
+
result: { bytes: ONE7 }
|
|
5484
|
+
}),
|
|
5427
5485
|
asked3(READER, "piece", { at: 2 }, [], refused2),
|
|
5486
|
+
...[-1, 0.5, "0"].map((at2) => asked3(READER, "piece", { at: at2 }, [], refused2)),
|
|
5428
5487
|
asked3(READER, "take", { push: PUSH, at: 0, pieces: 1, bytes: ONE7 }, [], refused2),
|
|
5429
5488
|
asked3(READER, "give", { since: HEAD2 }, [bundled("run-2")], { result: { ready: false } }),
|
|
5430
5489
|
ended("run-2", "bundle", 1, "", LOST3),
|