/acceptance: the registry's times read UK on the served page and in the runtime reply (the zone name is a forbidden string on a served page)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
igneum-labs 2026-10-08 17:52:23 +00:00
parent b375405613
commit 5f2cd8bf0c
3 changed files with 5 additions and 4 deletions

File diff suppressed because one or more lines are too long

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);
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
if (!registry || !Array.isArray(registry.suites)) throw new Error('the registry has no suites');
return registry;
}

View file

@ -426,7 +426,8 @@ for (const [file, active] of PAGES) {
// the public git host through /api/acceptance every 60 seconds); the gate builds a copy of site/ alone: the committed page stands
if (file === 'acceptance.html' && html.includes('<!-- acceptance:start -->')) {
const rp = join(docs, 'plans', 'igneum-2.0-test-registry.json');
if (existsSync(rp)) html = inject(html, 'acceptance', renderAcceptance(JSON.parse(readFileSync(rp, 'utf8'))), file);
// 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);
}
writeFileSync(p, html);
built.push(file);