From 4a0fb44b5b82cffeb2113bc17e8efacf8c8907b6 Mon Sep 17 00:00:00 2001 From: Heimdall Date: Tue, 17 Nov 2026 00:10:44 +0000 Subject: [PATCH] Recipe test: drop the exemption that exempted nothing, fail on a stale never-bound entry Soul's pass on PR #17 showed idunnOwned names are already declared, so the set could only hide a later gap; and a never-bound name nothing reads went unnoticed. Co-Authored-By: Claude Sonnet 5.5 --- tests/recipe-secrets.test.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/recipe-secrets.test.ts b/tests/recipe-secrets.test.ts index 76f1b7b..b6be578 100644 --- a/tests/recipe-secrets.test.ts +++ b/tests/recipe-secrets.test.ts @@ -229,11 +229,6 @@ describe("Idunn recipe secret declarations", () => { it("declares every other name loadConfig reads, or says why a binding never sets it", () => { // Idunn refuses a binding that sets an undeclared name, so an undeclared // name is a setting no Idunn-admitted generation can ever change. - const idunnOwned = new Set([ - "GAMECULT_IDUNN_RUNTIME_BUNDLE", - "GAMECULT_IDUNN_CANDIDATE_BIND", - "GAMECULT_IDUNN_PROCESS_WRITE_LEASE", - ]); const neverBound = new Set([ // The listen socket is the candidate bind under Idunn, and the command port follows it. "HOST", @@ -248,7 +243,9 @@ describe("Idunn recipe secret declarations", () => { const declared = new Set(everyDeclaredName); const unreachable = [...explored.names] .filter((name) => !secretNames.includes(name) && !name.endsWith("_FILE")) - .filter((name) => !declared.has(name) && !idunnOwned.has(name) && !neverBound.has(name)); + .filter((name) => !declared.has(name) && !neverBound.has(name)); expect(unreachable).toEqual([]); + // An exemption for a name nothing reads would hide the next real gap. + expect([...neverBound].filter((name) => !explored.names.has(name))).toEqual([]); }); });