From 00481a7dba9c9bcd34b6f337fe416adca15b5fa6 Mon Sep 17 00:00:00 2001 From: igneum-labs <337424239+igneum-labs@users.noreply.github.com> Date: Thu, 8 Oct 2026 20:31:20 +0000 Subject: [PATCH] /acceptance: the registry's rig and devnet names scrubbed on the served page and the runtime reply (the identity list; the INT suite's case text named a rig) Co-Authored-By: Claude Fable 5.1 --- site/api/acceptance.mjs | 2 +- site/build.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site/api/acceptance.mjs b/site/api/acceptance.mjs index 06c07d853..4d406550b 100644 --- a/site/api/acceptance.mjs +++ b/site/api/acceptance.mjs @@ -12,7 +12,7 @@ export function decode(reply) { if (!reply || typeof reply.content !== 'string') throw new Error('the git host reply has no content field'); const b64 = reply.encoding === 'base64' || !reply.encoding; const text = b64 ? Buffer.from(reply.content.replace(/\s+/g, ''), 'base64').toString('utf8') : reply.content; - const registry = JSON.parse(text.replace(/\bBST\b/g, 'UK')); // the zone name is a forbidden string on a served page: the times read UK + const registry = JSON.parse(text.replace(/\bBST\b/g, 'UK').replace(/\bPC [12]\b/g, 'the project’s own rig').replace(/Devnet 3\b/g, 'the earlier devnet')); // the zone name is a forbidden string on a served page: the times read UK if (!registry || !Array.isArray(registry.suites)) throw new Error('the registry has no suites'); return registry; } diff --git a/site/build.mjs b/site/build.mjs index 47735dc41..7c270dccb 100644 --- a/site/build.mjs +++ b/site/build.mjs @@ -427,7 +427,7 @@ for (const [file, active] of PAGES) { if (file === 'acceptance.html' && html.includes('')) { const rp = join(docs, 'plans', 'igneum-2.0-test-registry.json'); // the zone name is a forbidden string on a served page (the identity list): the registry's times read UK here - if (existsSync(rp)) html = inject(html, 'acceptance', renderAcceptance(JSON.parse(readFileSync(rp, 'utf8').replace(/\bBST\b/g, 'UK'))), file); + if (existsSync(rp)) html = inject(html, 'acceptance', renderAcceptance(JSON.parse(readFileSync(rp, 'utf8').replace(/\bBST\b/g, 'UK').replace(/\bPC [12]\b/g, 'the project’s own rig').replace(/Devnet 3\b/g, 'the earlier devnet'))) // the identity list: no zone name, no numbered rig, no numbered devnet on a served page, file); } writeFileSync(p, html); built.push(file);