diff --git a/modules/gitea/kept.ts b/modules/gitea/kept.ts index 5f83f73a..a591b88f 100644 --- a/modules/gitea/kept.ts +++ b/modules/gitea/kept.ts @@ -1,11 +1,12 @@ // The states this module keeps on the bus and whether other modules may read them (novox/hq ADR 0495 clause 2; issue // 1790): the module says it itself, from its code, as it starts (index.ts calls keeps with this list), and a reader is // granted what it said (clause 3). A state is readable when another module's manifest reads it: mesh-provisioner reads -// `bound` (the forge accounts it binds). test/kept.test.ts holds the list to the manifest's `state`, and the catalogue's +// `bound` (the forge accounts it binds), the condition keeper (mesh-conditions) reads `findings`. test/kept.test.ts holds the list to the manifest's `state`, and the catalogue's // checks/readable every state another manifest reads to a readable announcement. export const KEPT: readonly { readonly name: string; readonly readable?: boolean }[] = [ { name: "announced" }, { name: "bound", readable: true }, + { name: "findings", readable: true }, ]; /** The announcement of these states, in the layout mesh-sdk's go/announce reads (novox/hq ADR 0495 clause 2): version 1, diff --git a/modules/gitea/test/kept.test.ts b/modules/gitea/test/kept.test.ts index f0ca9ec9..a526eb10 100644 --- a/modules/gitea/test/kept.test.ts +++ b/modules/gitea/test/kept.test.ts @@ -10,13 +10,14 @@ test("the states the module announces are the states its manifest declares", asy const manifest = JSON.parse(readFileSync(new URL("../module.json", import.meta.url), "utf8")); const declared = (manifest.state as (string | { name: string })[]).map((s) => (typeof s === "string" ? s : s.name)).sort(); assert.deepEqual(KEPT.map((k) => k.name).sort(), declared); - assert.deepEqual(KEPT.filter((k) => k.readable).map((k) => k.name), ["bound"], "bound alone is readable: mesh-provisioner reads it"); + assert.deepEqual(KEPT.filter((k) => k.readable).map((k) => k.name), ["bound", "findings"], + "bound and findings alone are readable: mesh-provisioner reads bound, the condition keeper findings"); }); test("the announcement has the layout mesh-sdk's go/announce reads: version 1, the module, the node, the states sorted by name", async () => { const { statesAnnouncement } = await import("../kept.ts"); - assert.deepEqual(statesAnnouncement("gitea", "ace"), { v: 1, module: "gitea", node: "ace", states: [{ name: "announced" }, { name: "bound", readable: true }] }); - assert.deepEqual(statesAnnouncement("gitea", undefined), { v: 1, module: "gitea", states: [{ name: "announced" }, { name: "bound", readable: true }] }); + assert.deepEqual(statesAnnouncement("gitea", "ace"), { v: 1, module: "gitea", node: "ace", states: [{ name: "announced" }, { name: "bound", readable: true }, { name: "findings", readable: true }] }); + assert.deepEqual(statesAnnouncement("gitea", undefined), { v: 1, module: "gitea", states: [{ name: "announced" }, { name: "bound", readable: true }, { name: "findings", readable: true }] }); }); test("index.ts says the announcement as the event `states` before the tools are served", () => { diff --git a/modules/mesh-conditions/mesh-conditions b/modules/mesh-conditions/mesh-conditions deleted file mode 100755 index 36d5a3bc..00000000 Binary files a/modules/mesh-conditions/mesh-conditions and /dev/null differ diff --git a/modules/minio/object-store b/modules/minio/object-store deleted file mode 100755 index 94048c5f..00000000 Binary files a/modules/minio/object-store and /dev/null differ