[repo] Workspace: Review Phase 0 and record gaps, lessons and handover

Adversarial review with per-package counts and 13 reintroduced bugs, all
caught. Fixes from the review: the trace geocell is capped at 6 characters
(~1 km; 16 allowed centimetres), one forbidden-word hit per place, and an
e2e guard that meta charset stays within the first 1024 bytes.

CLAUDE.md §6.2 no longer contradicts itself about care acts; §2 and §3
say what Phase 0 actually built.
This commit is contained in:
2026-11-01 00:36:06 +01:00
parent 49c8def037
commit 6885a217cd
16 changed files with 417 additions and 27 deletions
+7
View File
@@ -68,6 +68,13 @@ test('the built page carries the CSP and no inline script, and nothing violates
);
expect(inline.map(([tag]) => tag)).toEqual([]);
expect(cspViolations).toEqual([]);
// The CSP is injected FIRST in <head>, ahead of <meta charset>, so it governs
// every script. The charset must still fall in the first 1024 bytes or the
// browser may guess the encoding; a CSP that grows can push it out.
const charsetAt = Buffer.from(html).indexOf('<meta charset');
expect(charsetAt, 'meta charset present').toBeGreaterThan(-1);
expect(charsetAt, 'meta charset within the first 1024 bytes').toBeLessThan(1024);
});
test('manifest scope, start_url and the service worker scope all equal the base path', async ({ page }) => {