22 Commits
Author SHA1 Message Date
poli0981andClaude Opus 5.5 20e312b851 chore(deps): upkeep 2026-12-05 — 16 non-major bumps, clear six dev-tooling advisories (#11)
CI / gates (push) Successful in 49s
Reusable / Security / Secrets (gitleaks) (push) Successful in 14s
Reusable / Security / Rust (cargo-deny) (push) Skipped
Reusable / Security / .NET (NuGetAudit) (push) Skipped
Reusable / Security / SAST (Opengrep) (push) Successful in 33s
Reusable / Security / Dependencies (osv-scanner) (push) Successful in 18s
Security / security (push) Successful in 1m7s
Reusable / Qodana / Qodana (push) Successful in 3m23s
Qodana / qodana (push) Successful in 3m23s
CI / build (push) Successful in 5m29s
CI / record (push) Skipped
CI / deploy (push) Successful in 1m9s
Dependency upkeep for 2026-12-05. Supersedes #10.

* fix(deps): update all non-major dependencies (Renovate: actions/setup-node 7.2.0, @vite-pwa/astro 2.0.5)
* chore(deps): upkeep 2026-12-05 — 16 non-major bumps, clear six dev-tooling advisories
  astro 7.4.14, svelte 5.60.1, wrangler 4.171.0, eslint 10.16.0, knip 6.51.0, prettier 3.10.2, @playwright/test 1.65.2, @astrojs/rss 4.0.20, @astrojs/sitemap 3.7.7, eslint-plugin-astro 3.2.3, svelte-eslint-parser 1.13.0, globals 17.15.0, sharp 0.35.6, @iconify-json/lucide 1.2.163, @iconify-json/simple-icons 1.2.105.
  pnpm audit / osv-scanner now clean: cross-spawn 7.1.1 (GHSA-ghv9-86vm-4v8m critical, GHSA-m6qr-m48x-3xhh, GHSA-w3gc-668g-rf8f), ws >= 8.23.0 (GHSA-37g9-w4hg-h9qr), minimatch 11.0.10 (GHSA-3924-r96c-gp9w), terser gone from the lockfile (GHSA-6jpm-p5cq-9q44). All build/dev tooling; no override added.
* fix(e2e): size the Playwright pool by the container's CPU quota
  The ubuntu jobs moved to runner anon-docker (2026-12-04, `--cpus=4`), but os.cpus() reports the host's 28 cores, so 14 workers shared four CPUs and the axe tests timed out — main failed the same way (dispatched run 1565). playwright.config.ts reads /sys/fs/cgroup/cpu.max; no quota keeps Playwright's default.

No release: routine upkeep (docs/13 §1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 03:36:07 +00:00
poli0981 be8ef93e3a chore(deps): upkeep 2026-11-28 — 13 non-major bumps, keep fast-uri on 3.x (#8)
CI / build (push) Successful in 3m11s
CI / gates (push) Successful in 57s
CI / record (push) Skipped
Reusable / Qodana / Qodana (push) Successful in 2m57s
Qodana / qodana (push) Successful in 2m57s
Reusable / Security / Secrets (gitleaks) (push) Successful in 18s
Reusable / Security / Rust (cargo-deny) (push) Skipped
Reusable / Security / .NET (NuGetAudit) (push) Skipped
Reusable / Security / SAST (Opengrep) (push) Successful in 30s
Reusable / Security / Dependencies (osv-scanner) (push) Successful in 20s
Security / security (push) Successful in 1m9s
CI / deploy (push) Successful in 1m9s
## What and why

Dependency upkeep for 2026-11-28. Supersedes #5.

Renovate's grouped non-major branch was never created (its artifact update failed, see #6), so the bumps are applied here: svelte 5.59.2, wrangler 4.168.0, typescript-eslint 8.74.0, vitest + @vitest/coverage-v8 5.1.2, rolldown 1.3.4, svelte-eslint-parser 1.12.0, eslint-plugin-astro 3.2.2, lefthook 2.2.4, @axe-core/playwright 4.14.1, @types/node 26.6.11, @iconify-json/lucide 1.2.160, @iconify-json/simple-icons 1.2.104. eslint 10.16.0 and knip 6.49.0 were published less than a day ago and wait for the next run (pnpm's minimum release age).

**#5 is not taken.** The `fast-uri` override in `pnpm-workspace.yaml` is a security floor inside the major that ajv@8 asks for (`^3.0.1`, still so in ajv 8.20); 3.1.9 is already the newest 3.x. Forcing `^4.0.0` would swap a major under ajv, and Renovate could not update the lockfile for it (`renovate/artifacts` failed, so `build` and `gates` failed). `renovate.json` now holds fast-uri majors back, the same way it holds typescript, node and pnpm.

## Checks

- [x] A fix, a data change or upkeep, not a new feature
- [x] `pnpm lint && pnpm check && pnpm coverage && pnpm build && pnpm knip && pnpm e2e` pass locally (e2e: 150 passed, 13 skipped)
- [x] Docs: no behaviour change
- [x] No UI strings changed

## Accessibility

No UI change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Reviewed-on: #8
2026-11-28 11:54:08 +00:00
poli0981andClaude Opus 5.5 7b197c702b chore(release): v1.5.0 — the move to Gitea (D38), suite 4.0 (#4)
CI / build (push) Successful in 3m17s
CI / gates (push) Successful in 58s
CI / record (push) Skipped
Reusable / Qodana / Qodana (push) Successful in 2m55s
Qodana / qodana (push) Successful in 2m55s
Reusable / Security / Secrets (gitleaks) (push) Successful in 11s
Reusable / Security / Rust (cargo-deny) (push) Skipped
Reusable / Security / .NET (NuGetAudit) (push) Skipped
Reusable / Security / SAST (Opengrep) (push) Successful in 25s
Reusable / Security / Dependencies (osv-scanner) (push) Successful in 16s
Security / security (push) Successful in 52s
CI / deploy (push) Successful in 1m5s
Reusable — Announce Release to Discord / announce (release) Successful in 9s
notify / announce (release) Successful in 9s
- chore(release): v1.5.0 — the move to Gitea (D38), suite 4.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 06:41:13 +00:00
poli0981andClaude Opus 5.5 b68fe2ef19 chore(deps): upkeep 2026-11-24 — 15 bumps, pnpm 11.29.0, deepmerge skip retired (#2)
CI / build (push) Successful in 3m9s
CI / gates (push) Successful in 1m8s
CI / record (push) Skipped
Reusable / Qodana / Qodana (push) Successful in 3m8s
Qodana / qodana (push) Successful in 3m8s
Reusable / Security / Secrets (gitleaks) (push) Successful in 11s
Reusable / Security / Rust (cargo-deny) (push) Skipped
Reusable / Security / .NET (NuGetAudit) (push) Skipped
Reusable / Security / SAST (Opengrep) (push) Successful in 23s
Reusable / Security / Dependencies (osv-scanner) (push) Successful in 17s
Security / security (push) Successful in 53s
CI / deploy (push) Successful in 1m10s
- chore(deps): upkeep 2026-11-24 — 15 bumps, pnpm 11.29.0, deepmerge skip retired
- docs(deps): the 2026-11-24 upkeep — retired override, extension and OSV skip

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 05:53:49 +00:00
ef4af06158 chore(deps): weekly upkeep — Dependabot #77 + #78, SonarScanner CLI 8.4.0, pnpm 11.28.12 (#79)
- fix(deps): bump the minor-and-patch group with 15 updates (Dependabot #78)
- ci: bump the actions group with 3 updates (Dependabot #77)
- ci: pin SonarScanner CLI 8.4.0.16527 — action v8.5.0's default had passed the old pin
- chore(deps): pnpm 11.28.12, minimatch override scoped to typescript-estree

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 07:36:11 +07:00
poli0981andClaude Opus 5.5 b5517f05c9 chore(release): v1.4.1 — maintenance mode (D36), qodana (D35), suite 3.2 (#76)
- docs: maintenance mode — scope, status, badges and a listing change form (D36)
- chore(release): v1.4.1 — changelog and version

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 09:07:20 +07:00
poli0981andClaude Opus 5.5 06b141c63c chore(release): v1.4.0 — changelog, version, ai disclosure, suite 3.1 (#72)
- chore(release): v1.4.0 — changelog, version, ai disclosure, suite 3.1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 21:58:52 +07:00
poli0981andClaude Opus 5.5 94c7e4ef47 fix(deps): astro 7.4.7 check fix, @vite-pwa/astro 2.0.1, minor and patch bumps (#69)
* fix(deps): minor and patch bumps; give astro2tsx a matching emnapi runtime
* fix(deps): move to @vite-pwa/astro 2.0.1; retire the glob and serialize-javascript overrides
* refactor(scripts): line-based ES-syntax check in check:sw (Sonar S8786)

Supersedes Dependabot #67 and #68.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 07:41:45 +07:00
poli0981andClaude Opus 5.5 802ba0fc35 fix(deps): patch glob and minimatch; minor and patch bumps, pnpm 11.28 (#66)
OSV-Scanner failed `gates` on both open Dependabot PRs (#63, #64) with
two advisories published 2026-10-30:

- glob GHSA-3g3m-2fjr-6pw4 (>=9 <14.0.2), via workbox-build 7.4.1
- minimatch GHSA-g3hv-75wg-m249 (<11.0.1), via eslint, typescript-eslint
  and filelist (ejs -> jake)

Neither upstream range reaches a fixed major, so both get override floors
(glob ^14.0.2, minimatch ^11.0.1). Every caller uses API the new majors
kept; the service worker's precache list is identical (16 entries) and
eslint lints the same 157 files with the same 151 rules. minimatch 11
requires brace-expansion ^5.0.12, which retires that floor; miniflare now
pins the fixed undici 7.30.1 itself, which retires `miniflare>undici`.

Bumps: #64's ten (astro 7.4.5, svelte 5.57.3, @astrojs/svelte 9.1.2,
eslint 10.14, typescript-eslint 8.72.1, knip 6.44.1, wrangler 4.156.2,
@types/node 26.6.6, iconify sets) plus tailwindcss 4.3.4, vitest and
coverage-v8 5.1.0, globals 17.14; pnpm 11.15.1 -> 11.28.9; #63's
sonarqube-scan-action (to 8.4.1, CLI 8.3.1.16491) and pnpm/action-setup
6.1.1.

Code: simple-icons' JSON now types as IconSet, so the assertion lint
flagged is gone; eslint.config.js uses ESLint's defineConfig in place of
the deprecated tseslint.config(); knip reads CSS, so the Fontsource and
tailwindcss ignoreDependencies are no longer needed.

@vite-pwa/astro 2.0.0 was tried and held back: under pnpm it emitted a
sw.js with bare @vite-pwa/workbox-swkit imports and an empty precache
(check:sw failed six ways). Reasoning in pnpm-workspace.yaml and docs/09 §7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 08:35:29 +07:00
poli0981andClaude Opus 5.5 0cdc730461 feat(worker): site-wide rate limit with the branded 429 page (D32) (#49)
* feat(worker): site-wide rate limit with the branded 429 page (D32)
* docs: record how the rate-limit binding really counts (measured on the preview)

Every page, feed and data request runs the Worker first and spends one
unit of SITE_LIMITER (60 per 10 s per IPv4 or IPv6 /64); over it, the
built /errors/429 page (status 429, Retry-After 10, no-store) or JSON
under /api/. What a page loads stays asset-first. Fails open. Measured on
the preview: holds a client on one connection; many-connection floods are
for the zone rule (docs/16 §9.1). Privacy #rate-limit, LEGAL_VERSION
2026-10-26, suite v3.0, v1.3.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 06:16:14 +07:00
poli0981andClaude Opus 5.5 05b3769386 fix(deps): patch undici and serialize-javascript; minor and patch bumps (#48)
fix(deps): patch undici and serialize-javascript; minor and patch bumps

OSV-Scanner failed `gates` on every open PR (#45, #46): undici 7.29.1
(GHSA-xjj6-f33q-929c high, GHSA-4qv8-2p9j-2685, GHSA-f72v-6w45-q472) and
serialize-javascript 7.0.7 (GHSA-m5mm-p8h7-m29v). miniflare
5.20261019.x-beta pins undici exactly, so no update reaches the fix;
`miniflare>undici: ^7.30.1` scopes the floor to that copy (astro's unifont
already uses a fixed undici 8). serialize-javascript ^7.1.3 sits inside
@rollup/plugin-terser's own range. Both are build/dev tooling only.

Takes the six bumps of Dependabot's #46 plus knip 6.43.0:
@astrojs/svelte 9.1.1, astro 7.4.2, @astrojs/check 0.9.12,
prettier-plugin-astro 1.1.2, svelte-eslint-parser 1.10.0,
wrangler 4.152.0, knip 6.43.0.

docs/09 §7 lists the new overrides and notes that an OSV finding blocks
every PR until it is handled there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 13:00:59 +07:00
poli0981andClaude Opus 5.5 eafb247ca7 v1.2.0: release — CHANGELOG, version; VirusTotal re-check fixes (#42)
- fix(vt-recheck): keep the URL fragment, as VirusTotal's API does
- test(vt-recheck): stop reading live security values
- chore(release): v1.2.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 22:30:29 +07:00
dependabot[bot] 18f517fe5e fix(deps): bump the minor-and-patch group with 2 updates (#30)
Bumps the minor-and-patch group with 2 updates: [@iconify-json/lucide](https://github.com/iconify/icon-sets) and [happy-dom](https://github.com/capricorn86/happy-dom).


Updates `@iconify-json/lucide` from 1.2.146 to 1.2.147
- [Commits](https://github.com/iconify/icon-sets/commits)

Updates `happy-dom` from 21.0.3 to 21.0.4
- [Release notes](https://github.com/capricorn86/happy-dom/releases)
- [Commits](https://github.com/capricorn86/happy-dom/compare/v21.0.3...v21.0.4)

---
updated-dependencies:
- dependency-name: "@iconify-json/lucide"
  dependency-version: 1.2.147
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: happy-dom
  dependency-version: 21.0.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-23 20:16:49 +07:00
poli0981andClaude Opus 5.5 32085564b1 v1.2: VirusTotal re-check automation (D30) (#29)
- feat(security): VirusTotal re-check — assisted, never decided (D30)
- fix(copy): say what the dated security note now rests on
- docs: VirusTotal re-check (docs/12 §4b, D30); checkedAt = latest scan

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 20:08:29 +07:00
poli0981andClaude Opus 5.5 4351fffaae v1.2: Node 26, TypeScript 6/7 side by side, SonarQube Cloud CI analysis with coverage (#28)
- chore(toolchain): Node 26 and TypeScript 6/7 side by side
- test: measure every analysed source; fix the date refinement crash
- ci: SonarQube Cloud CI-based analysis with coverage
- docs: Node 26, TypeScript 6/7, SonarQube Cloud CI analysis (D28, D29)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 20:03:58 +07:00
poli0981andClaude Opus 5.5 2c40baf5c0 v1.1: Harbor UI refresh, Contact page, feed guard, CHANGELOG 1.1.0 (#25)
- docs: CHANGELOG for 1.1.0; README and CLAUDE.md caught up
- fix(sonar): Number.NaN over the global NaN (S7773)
- feat(gate): an icon tile on each step of the legal gate
- feat(build): check-feed — assert the emitted RSS that notify.py trusts
- feat(contact): /contact and /vi/contact — one address per purpose (D27)
- feat(ui): "Harbor" refresh — tokens, header, home, cards, detail, footer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 23:13:40 +07:00
poli0981andClaude Opus 5.5 3743cfbfe0 v1.1: native view transitions, CSP-first head, PWA, search, i18n/a11y, display menu, data rules, e2e (#23)
- fix(check-csp): match end tags the way the HTML tokenizer does
- ci(deps): keep @types/node on the Node major in .nvmrc
- test: Playwright + axe e2e, script tests, island coverage, CI gates
- fix(sort): pin the category-page and API orders to the data
- fix(a11y): keep the visible EN/VI code in the switcher's accessible name
- fix(nav): reliable cross-document View Transitions opt-in
- feat(data): enforce the data rules CONTRIBUTING promised; fix quarantine flow
- feat(prefs): display menu with theme, custom scrollbar and motion choices
- fix(i18n,a11y): real small type, translated chips and errors, nav semantics
- fix(search): race-free search with URL state, stable sort and relevance
- fix(pwa): installable app, styled offline page, prompt SW updates, head fixes
- refactor(scripts): hashed pre-paint scripts, CSP meta first, richer error log
- refactor(nav): replace <ClientRouter /> with native cross-document view transitions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 22:22:48 +07:00
poli0981andClaude Opus 5.5 ff95578f48 fix: unblock CI — close every dependency advisory, pin actions, fix asset caching (#21)
Squashed from 8 signed commits:

- chore: normalise line endings to LF with .gitattributes
- fix(deps): refresh dependencies and close every open advisory
- style: adopt prettier-plugin-astro 1.x formatting
- fix: resolve the SonarCloud findings in scripts and issueUrl
- ci: pin actions to SHAs, fix notify/quarantine/link-check, add Dependabot config
- fix(headers): stop Cache-Control concatenation that disabled asset caching
- fix(theme): guard storage access in the pre-paint theme script
- chore(config): TS6-safe tsconfig, type-aware lint, gated build script

Each commit's full rationale is preserved on the PR (#21).
Verified on the Workers Builds preview: hashed assets now carry a single
`Cache-Control: public, max-age=31536000, immutable`, the JSON feeds a single
`max-age=300`, security.txt is utf-8, and preview hosts send noindex.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 21:10:17 +07:00
poli0981 cac82c39d1 docs: add README, CONTRIBUTING, CoC; fix the service worker's navigation route
Service worker: omitting `navigateFallback` does not disable it —
vite-plugin-pwa defaults it to index.html, so the SW registered
NavigationRoute(createHandlerBoundToURL('/')) and threw non-precached-url
on every SW-handled navigation. Had '/' been precached it would have
served the home page for every navigation instead, silently. Fixed with
navigateFallback: '' and a new `pnpm check:sw` gate that asserts the
emitted sw.js rather than the config.

Repo docs: README, CONTRIBUTING (inclusion criteria, gates, auto-close
list) and CODE_OF_CONDUCT (Contributor Covenant 2.1 by reference).
2026-07-30 16:53:36 +07:00
poli0981andClaude Opus 5 f46573c882 fix: CSP was silently dropping every inline style; repair CI workflows
The reported overlap - page content bleeding through the sticky header - was
not a layout bug. The header's computed background-color was rgba(0,0,0,0):
fully transparent, despite style="background: var(--sh-bg)" being present in
the emitted HTML.

Cause: CSP style-src governs inline style ATTRIBUTES, not just <style> blocks,
and hashes do not apply to attributes - only 'unsafe-hashes' or
'unsafe-inline' would permit them, and our policy (D20) has neither. So every
style="..." was being discarded by the browser. Nothing errored. The build
passed, the source read correctly, and the declaration simply was not applied.
49 of them had accumulated since P1, which is also why muted text was rendering
in --sh-ink and borders in the wrong token.

Verified by probe rather than inference: an element given
style="background: rgb(1,2,3)" computes to transparent in this page context.

Fix, not workaround: the design tokens are now Tailwind colours mapped to the
runtime custom properties, so every use is a utility (text-sh-muted,
bg-sh-surface, border-sh-border) and theming still switches on
html[data-theme]. Relaxing style-src to 'unsafe-inline' would have "fixed" the
symptom while giving up the policy.

Added scripts/check-no-inline-styles.mjs, run in CI after build: any style=
reaching dist/ fails. This class of bug is invisible - it deserves a permanent
check rather than vigilance. It immediately earned its place by catching a
dynamic style={`color: var(--sh-${...})`} that the literal-match conversion
could not see.

CI workflows, both of which failed at startup on every push:
- ci.yml is now self-contained. reusable-web-react.yml's Pages-deploy job
  declares pages: write and id-token: write; a caller cannot request less, so
  GitHub rejected the whole run before any step - even though that job is
  skipped by deploy-pages: false. Granting those would hand a Workers-deployed
  site the ability to mint OIDC tokens it never uses. Separately, that workflow
  runs lint/typecheck/test only "if the script exists", so a renamed script
  silently green-lights. This repo has already shipped four silent no-ops; a
  quietly-skipping CI is the wrong tool for it.
- codeql.yml passes languages as a JSON ARRAY STRING. The reusable workflow
  feeds it to fromJSON for its matrix, so a bare value throws at startup.

NOT fixed here, because it is not mine to fix: the deploy workflow fails with
Cloudflare "Authentication error [code: 10000]" on /workers/routes. The API
token needs Zone -> Workers Routes -> Edit and Zone -> DNS -> Edit. My local
deploys succeeded throughout because wrangler uses OAuth, which masked the gap
entirely.

Gate: lint, i18n:check, validate:data, 99 tests, astro check (0 errors), build,
check:styles, knip - all green.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 15:01:53 +07:00
poli0981andClaude Opus 5 83d6788b2d feat: spike S4 — legal gate across View Transitions
ShLegalGate.svelte (client:load + transition:persist) plus 32 assertions
across legal.test.ts and ShLegalGate.test.ts. S4 passes, and it caught two
design bugs that only appear once the island is persisted across navigations
- which is exactly what the spike existed to find.

1. A persisted <dialog> can come out of a ClientRouter swap with `open`
   cleared. transition:persist preserves the DOM node, not the top-layer
   state, so after the first navigation the gate would have stopped blocking
   while still looking correct in source. Fixed by re-asserting showModal()
   from an astro:after-swap handler. The test closes the dialog behind the
   component's back and then swaps, so the re-assert is provably load-bearing
   rather than defensive noise.

2. A persisted island keeps the `locale` prop it first rendered with, so
   navigating /apps -> /vi/apps left English gate copy on a Vietnamese page -
   a bilingual-parity break (hard rule 6) invisible to the parity CI check,
   which only compares dictionaries. Fixed by deriving locale from
   location.pathname on every swap instead of trusting the prop. Svelte's
   state_referenced_locally warning is what surfaced this.

Also verified: Esc intercepted pre-accept via cancel/preventDefault;
acceptance persists with no re-flash across swaps; exempt routes never gate
and transitions onto/off them update correctly; a stale OR newer stored
version both re-open (equality, not ordering); hostile localStorage fails
open for the session rather than dead-locking the site.

Supporting changes:
- vitest.config.ts: two projects - `unit` (node, src/lib) and `islands`
  (happy-dom, src/components). The islands project needs
  resolve.conditions: ['browser'] or Svelte resolves to its SSR build and
  mount() throws lifecycle_function_unavailable. This does NOT reopen the
  no-Playwright decision: it asserts island state machines only. Layout,
  top-layer stacking and "no visual flash" remain manual launch-checklist
  items - this environment has no working browser, and the docs say so
  rather than implying those were verified.
- legal.ts keeps its session fallback on a globalThis key instead of a
  module-local `let`. Its real scope is the browsing session, and a
  module-local survives vi.resetModules() for any statically-imported
  consumer, so one test's acceptance silently leaked into every later one.
- eslint: forward the TS parser into .svelte (`interface` was a parse
  error), add browser globals for src/**, and allow non-null assertions in
  tests per docs/10 §1. svelte-eslint-parser and globals promoted to direct
  devDeps - pnpm's strict layout does not expose transitives.
- svelte.config.js added so vite-plugin-svelte stops falling back to defaults.

Gate: lint, 58 tests, astro check (0 errors), build - all green. CSP hash
verification re-run with the new island: every inline script still hashed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 22:40:57 +07:00
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