/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 <noreply@anthropic.com>
This commit is contained in:
igneum-labs 2026-10-08 20:31:20 +00:00
parent ee64b8b8c0
commit 00481a7dba
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -427,7 +427,7 @@ for (const [file, active] of PAGES) {
if (file === 'acceptance.html' && html.includes('<!-- acceptance:start -->')) {
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);