gitea, mesh-issues: no timer said for main's rules; the checker is no owner

Review round 1, notes: keep-main-rules acts at the token's mint alone since the
ten-minute step went (H-A-100), and the issue tracker's owners named the
checker's path, which a search for the checker must not find (§764).

Builds: design 47 H §764 (the forge module's ten-minute timer; the checker whole); H-A-100

Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
This commit is contained in:
2026-11-20 06:06:57 +01:00
parent df79ab8769
commit c775aab29a
7 changed files with 25 additions and 9 deletions
+9 -1
View File
@@ -2,7 +2,7 @@
// writes nothing at the forge, true puts main's rule right as before.
import { test } from "node:test";
import assert from "node:assert/strict";
import { mkdtempSync, writeFileSync } from "node:fs";
import { mkdtempSync, readFileSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";
@@ -15,6 +15,14 @@ function env(body?: string): NodeJS.ProcessEnv {
return { MESH_GITEA_CONFIG_FILE: f };
}
// No timer keeps main's rules (design 47 H §764, H-A-100): the setting's description says when it acts, and names none.
test("the setting's description names no timer", () => {
const manifest = JSON.parse(readFileSync(new URL("../module.json", import.meta.url), "utf8"));
const said: string = manifest.config["keep-main-rules"].description;
assert.match(said, /token is minted/);
assert.doesNotMatch(said, /every ten minutes|every \w+ minutes/);
});
test("the setting is false unless the config says true", () => {
assert.equal(keepMainRules(env()), false);
assert.equal(keepMainRules(env("{}")), false);