1 Commits
Author SHA1 Message Date
poli0981andClaude Opus 5 79bac59e69 feat: P1 scaffold + spikes S1 and S2
Astro 7 static scaffold with the full integration set, plus the two spikes
that could be run without external provisioning. Both passed; four findings
changed the spec and are folded into docs/ in this commit (docs/10 §7).

Toolchain (all verified building together): astro 7.1.3, svelte 5.56.8,
tailwindcss 4.3.3, minisearch 7.2.0, nanostores 1.4.1, vitest 4.1.10,
wrangler 4.114.0, Node 24, pnpm 11.15.1. The pre-approved astro@6.5.x
fallback was not needed.

S1 findings:
- @nanostores/svelte DOES NOT EXIST (registry 404). D15 named it as a locked
  dependency. No binding is needed - a nanostores atom already satisfies
  Svelte's store contract, which is why bindings exist for React/Vue/Solid
  but not Svelte. D15 amended.
- D18 ("ship nothing inline, use plain script-src 'self'") is unachievable.
  ClientRouter is fine - it compiles to an external script, so View
  Transitions are NOT at risk. The real source of inline script is Astro's
  island hydration: any page with a client:* directive gets bootstrap
  scripts inlined, and we have six islands. Replaced by D20: Astro's
  security.csp emits a per-page <meta> with generated hashes, and _headers
  carries only frame-ancestors. Both policies are enforced independently, so
  _headers must NOT also declare script-src or the intersection drops the
  hashes and breaks every island. Verified by recomputing the SHA-256 of
  every inline script/style in dist/ against the emitted policy.
- TypeScript 7's native compiler does not expose the API astro check needs;
  pnpm check fails outright. Held at 6.x (D21), matching the sibling project.
- ignore-scripts=true does not "break nothing" as docs/09 §7 assumed: pnpm
  >=10 already blocks dependency scripts by default, and the flag also
  suppresses the allowlist, so esbuild never links its binary and the build
  cannot run. Replaced with an explicit allowBuilds gate in
  pnpm-workspace.yaml (esbuild/lefthook yes, workerd no). pnpm line
  corrected 10.x -> 11.x.

S2 findings:
- normalizeViet passes the full docs/05 §A1 vector table incl. NFC/NFD
  convergence, d-stroke folding, and idempotency.
- FUZZY set to 0.25 by measurement (D22). The declared gmip -> GIMP vector
  needs 2 edits on 4 characters (fuzzy >= 0.375), and at that setting the
  correctly spelled query `gimp` stops being an exact match. Precision on
  correct spellings beats one contrived typo, so the vector was retired in
  favour of gimo -> GIMP and fierfox -> Firefox. Tests pin both directions
  so a future fuzzy miss cannot be "fixed" by raising the constant.

Gate: pnpm lint, pnpm test (21/21), pnpm check (0 errors), pnpm build - all
green.

Not done, blocked on provisioning rather than code: S3 needs the GitHub repo
(H1), S5 needs the zone and a deploy (H2/H3), and S1's trailingSlash x
html_handling probe needs a real origin. S4 is doable locally and is next.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 22:11:33 +07:00