Repository navigation
Description
This tracks the findings and follow-up work from the October 27, 2026 codebase review of the Vercel application on sveltekit at 4ee52f0f76ec9cda349bba2258af235ca847fb23.
The review used local browser checks and API-handler probes with dummy database fixtures. No production claims or deployments were modified. The 11 Discord tests pass. With placeholder environment configuration, the checked installation reports 860 type-check errors and 92 warnings; a build without Mongo configuration fails at its static environment imports.
The individual issues distinguish reproduced failures from architectural improvements and include source permalinks and acceptance criteria. Related overall migration: #161.
Prioritize unsafe content handling, claim-secret exposure, render bounds, and the XSLT export dependency. Follow with correctness fixes and regression coverage, then restore CI/type checking and upgrade the framework in small steps.
Security and export compatibility
- Return safe API errors instead of interpolating COA data into HTML #222 — Return safe API errors instead of interpolating COA data into HTML (merged in Prevent markup injection in API errors and generated SVG #239)
- Sanitize uploaded SVG content before previewing or storing it #223 — Sanitize uploaded SVG content before previewing or storing it (merged in Sanitize uploaded SVG previews and stored custom charges #240)
- Remove claim passwords from logs and URLs and harden claim mutations #224 — Remove claim passwords from logs and URLs and harden claim mutations (merged in Harden claim mutations and migrate plaintext passwords #241)
- Validate image dimensions and COA complexity before rendering #225 — Validate image dimensions and COA complexity before rendering (merged in Validate image dimensions and bound COA rendering complexity #242)
- Remove the XSLTProcessor dependency from image downloads #226 — Remove the XSLTProcessor dependency from image downloads (merged in Remove browser XSLT dependency from image exports #243)
Editor and rendering correctness
- Encode copied COA links as query values so ampersands and plus signs survive #227 — Encode copied COA links as query values so ampersands and plus signs survive (merged in Preserve special characters in copied COA links #244)
- Validate COA structure before loading URL parameters and JSON imports #228 — Validate COA structure before loading URL parameters and JSON imports (merged in Validate COA imports and preserve editor undo history #245)
- Fix API inescutcheon resolution and include all pattern dependencies #229 — Fix API inescutcheon resolution and include all pattern dependencies (merged in Fix inescutcheon rendering and SVG pattern dependencies #246)
- Recover from malformed saved settings and preserve valid zero values #230 — Recover from malformed saved settings and preserve valid zero values (merged in Recover malformed saved settings and preserve zero values #247; public deployment verified)
- Preserve query overrides and px sizes when redirecting legacy API routes #231 — Preserve query overrides and px sizes when redirecting legacy API routes (merged in Preserve legacy API query overrides and normalize image sizes #248; public deployment verified)
Validation, architecture, and modernization
- Establish a passing Svelte/TypeScript check baseline #232 — Establish a passing Svelte/TypeScript check baseline (commit bb6bcc5; CI, local check and public deployment verified 2026-11-03)
- Decouple builds and procedural image generation from MongoDB startup #233 — Decouple builds and procedural image generation from MongoDB startup (merged in Decouple builds and image generation from MongoDB startup #249; upstream CI and public deployment verified 2026-11-03)
- Add pull-request validation for the SvelteKit/Vercel application #234 — Add pull-request validation for the SvelteKit/Vercel application (merged in Run full SvelteKit regression and build validation in CI #250; full upstream CI and public deployment verified 2026-11-03)
- Make generation and server rendering independent of global mutable state #235 — Make generation and server rendering independent of global mutable state (merged in Isolate generation randomness and server rendering settings #251; upstream CI and public deployment verified 2026-11-03)
- Add image API and editor regression coverage beyond the Discord handler #236 — Add image API and editor regression coverage beyond the Discord handler (merged in Complete regression coverage and prevent stale FMG exports #252; upstream CI and public deployment verified 2026-11-03)
- Track remaining dependency and Svelte component modernization #237 — Track remaining dependency and Svelte component modernization (framework upgrades Upgrade Svelte 5 and Vite 8 with validated server rendering #253/Migrate the Vercel application to SvelteKit 3 #254 merged and publicly verified; remaining work split into Modernize the raster browser/converter stack and retire its workaround patch #255–Complete BiDi/Zod remediation with a compatible server browser release #262)
Completed items above were verified merged into sveltekit. This repository still uses master as its default branch, so PR closing keywords do not close issues merged into sveltekit; close each completed issue and update this checklist after confirming its PR has merged.
Verified deployment status — 2026-10-28
Latest verified public deployment: upstream sveltekit merge 5291e7 from #248, containing the fixes for #222–#231. Vercel reports success, and https://armoria.vercel.app has byte-identical HTML and matching hashed entry assets to this deployment. Live GET checks followed legacy redirects and verified final SVG dimensions, palette overrides, shield geometry, COA text, path/query precedence and optional path seeds. The original /api/svg/200px/123?gules=123456 reproduction produces the same SVG as its canonical request. Invalid sizes, unsupported formats, duplicate core parameters and unknown shields return safe 400 JSON responses without redirects. #231 was explicitly closed after verification; no claim mutations or Discord messages were sent.
Previous verified public deployment: upstream sveltekit merge 7806364 from #247, containing the fixes for #222–#230. Vercel reports success, and the public domain’s HTML and hashed entry assets match this deployment. Live Chromium checks on https://armoria.vercel.app passed for malformed settings recovery, retained/rendered custom uploads, unchanged raw saved entries, border width 0 set through the UI and preserved after reload, denied storage, and quota/removal failures. There were no uncaught browser errors; non-GET/HEAD requests were blocked during these checks. #230 was explicitly closed after verification.
Earlier deployment audit (before #247):
The public site https://armoria.vercel.app is serving the build associated with upstream sveltekit merge commit 73ca00e, which contains all fixes for #222–#229. Its HTML and hashed entry assets match the successful Vercel deployment. Read-only checks on the public API verified invalid-COA and image-size rejection, retired legacy claim URLs, generic/camel-case inescutcheons, and resolved semy/secondary-pattern references. Live Chromium checks also passed for malformed URL recovery, copied-link encoding, invalid-import state preservation and SVG export with XSLT disabled, with no uncaught browser errors. The Discord route is present and rejects GET with 405; no Discord message was sent.
Branch responsibilities: master builds the older Rollup application and publishes public to gh-pages; sveltekit contains the Vercel application and API. Migration PR #188 remains open. GitHub labels the current Vercel deployment Preview, even though the public domain serves it. Vercel's private domain/branch assignment was not inspected because Vercel account access was unavailable. No deployment or branch configuration was changed during this audit.
For future fixes: after merge, check the upstream merge commit's Vercel result and verify the public domain against that deployment. A fork PR's "Authorization required to deploy" status does not establish the status of the subsequent upstream deployment. Then close the completed issue and update this checklist.
Baseline and deployment verification — 2026-11-03
Upstream sveltekit is now at bb6bcc5, restoring the type-check baseline. A fresh local npm run check passes with 0 errors and 92 accessibility warnings. The upstream GitHub Actions check passes. Vercel reports a successful deployment at https://armoria-o4jo0ecsn-azgaars-projects.vercel.app; public-domain HTML matches that deployment apart from its injected Vercel preview feedback script. #232 has been explicitly closed. The 92 accessibility warnings remain documented in the README.
#234 and #236 remain open: a PR/push workflow now runs type checking and generation/file regressions, and the earlier fixes added API/browser coverage, but complete suite/build integration and the remaining acceptance criteria still need verification. #233, #235 and #237 remain outstanding.
Post-merge verification for #249 and #250 — 2026-11-03
Both PRs are merged into sveltekit: #249 at 8f96d782c0412644546778b6bcba887d29817e7a, followed by #250 at a7f77e942bb6583ce7ea0d241a661f22e8be8506 (current upstream head). The full upstream validation run passes, including service/browser regressions, type checking and the production build without service credentials. Vercel reports success for the merged head at https://armoria-l972ibm97-azgaars-projects.vercel.app. The public domain's HTML matches that deployment after removing the deployment-only Vercel feedback script, and both hashed entry assets match exactly. Read-only public API checks pass for 200×200 procedural numeric-seed SVG rendering and explicit-COA rendering with a nonnumeric seed (bypassing claim lookup). No claim mutations or Discord messages were sent.
#233 and #234 are explicitly closed following verification. Remaining review tasks: #235 (request-local generation/render state), #236 (remaining regression coverage acceptance criteria), and #237 (incremental framework/toolchain modernization). Earlier historical status sections above describe their verification dates; this is the latest deployment audit.
Post-merge verification for #251 — 2026-11-03
PR #251 is merged into sveltekit at 639c4e50c5b82d85d69a38a0e1a9edcfc49123df. The full upstream CI run passes: type checking, service/browser regressions and the production build without service credentials. Vercel reports a successful deployment at https://armoria-pxnzizqgj-azgaars-projects.vercel.app. Public-domain HTML matches that deployment after removing its Vercel feedback script, and both hashed entry assets match exactly. Read-only public image checks verify separate custom palettes on patterned/charged SVGs and identical numeric-seed SVG output before/after those requests. No claim mutations or Discord messages were sent.
#235 is explicitly closed following verification. 14 of the 16 review tasks (#222–#237) are complete. Remaining: #236 (remaining regression coverage criteria) and #237 (incremental framework/toolchain modernization). This is the latest deployment audit; earlier status sections are historical.
Post-merge verification for #252 — 2026-11-03
PR #252 is merged at 9b56b66856c7d6540912963e9024efef3c9b6e0e. Full upstream CI and Vercel deployment pass. Public HTML and both hashed entry assets match https://armoria-ocagfsad3-azgaars-projects.vercel.app after removing the deployment-only feedback script; read-only procedural SVG rendering also passes. The 118-test suite includes controlled FMG export races, edit/share/reload and seeded pixel comparisons. #236 is explicitly closed. No claim mutations or Discord messages were sent. 15/16 review tasks are complete; #237 remains.
Post-merge verification for #253 — 2026-11-03
The first #237 modernization step is merged into sveltekit at 36976fd58d9679fe0d01634666a5ac782c9c2936. Full upstream CI passes, including 122 regressions and the production service-worker update/offline test. Vercel reports success at https://armoria-mh2kx0mnn-azgaars-projects.vercel.app. Public HTML and hashed entry assets match that deployment after removing its feedback script. Live API checks pass for SVG with palette overrides and real 200×200 PNG/JPEG images, confirming the upgraded Chromium/converter path works on Vercel. An isolated live Chromium check passes editor load, name edit, address updates and keyboard undo/redo with no uncaught errors; non-GET/HEAD requests were blocked. No claims or Discord messages were modified.
#237 remains open. Next review boundary: SvelteKit 3/adapter 7 API and configuration migration, followed by the remaining browser/converter/tooling dependency advisories and incremental component migration. This deployment verification completes #253, not the whole modernization task. The review remains at 15/16 completed issues.
Post-merge verification for #254 — 2026-11-05
PR #254 is merged into sveltekit at 6684236. The full upstream validation run passes, including 122 regressions, strict application/service-worker type checks and the credential-free Vercel build. Vercel reports success at https://armoria-74voym1op-azgaars-projects.vercel.app. Public-domain HTML matches that deployment after removing its feedback script, and all 12 referenced hashed entry assets match exactly.
Read-only live checks pass for procedural numeric-seed SVG output, explicit COA/palette SVG output, and real 200×200 PNG/JPEG output with SVG pixel parity and changed palette pixels. An isolated browser passes editor load, name editing, address updates and keyboard undo/redo without uncaught errors. Non-GET/HEAD requests were blocked; no claims or Discord messages were modified.
This verifies the SvelteKit 3.1.1 / adapter-vercel 7.0.2 migration, maintained lint toolchain, first runes component migration and stable development dependency optimization. #237 remains open for the documented browser/converter and other dependency advisory remediation, retained patch review, and further incremental component migration. The audit remains at 31 advisories (3 low, 15 moderate, 13 high). The review remains at 15/16 completed issues. This completes deployment verification for #254, not the entire modernization task.
Modernization work split — 2026-11-05
#237 now serves as the parent checklist for focused follow-ups. The verified #253/#254 framework upgrades remain complete; the parent remains open for these remaining groups:
- Modernize the raster browser/converter stack and retire its workaround patch #255 — Modernize the raster browser/converter stack and retire its workaround patch (merged in Replace patched SVG converters with a matched Puppeteer raster stack #263; upstream CI and public deployment verified)
- Remediate shared deepmerge and localization dependency advisories #256 — Remediate shared deepmerge and localization dependency advisories
- Remediate glob/minimatch advisories in build and lint dependencies #257 — Remediate glob/minimatch advisories in build and lint dependencies
- Remove the path-data-polyfill SSR guard patch when an equivalent fix is verified #258 — Remove the path-data-polyfill SSR guard patch when an equivalent fix is verified
- Migrate shared and navigation UI components to Svelte 5 runes in small batches #259 — Migrate shared and navigation UI components to Svelte 5 runes in small batches
- Migrate editor components to Svelte 5 runes while preserving edit history #260 — Migrate editor components to Svelte 5 runes while preserving edit history
- Migrate SVG rendering components to Svelte 5 runes with API/browser parity #261 — Migrate SVG rendering components to Svelte 5 runes with API/browser parity
Each follow-up includes its scope, acceptance criteria and validation/deployment checks. Dependency remediation and patch removal are separate from the three optional incremental component-migration groups, so they can be implemented and reviewed independently. The review remains at 15/16 completed original review issues while #237 is open.
Raster stack implementation — 2026-11-05
#255 has implementation PR #263: direct Puppeteer/CDP rasterization with a matched Puppeteer 25.11.0 / Chromium 153.0.0 stack, converter packages/patch removed, and 133 regressions passing locally and in the CI run (including strict checks, production build and update/offline). Post-merge upstream CI/Vercel and live raster verification are still required before closing #255. The candidate audit drops from 31 to 22 findings; #262 tracks the remaining BiDi/Zod advisory path, including reachability and supported upgrade criteria. Other dependency groups remain #256/#257; the polyfill patch remains #258.
Post-merge verification for #263 — 2026-11-05
PR #263 is merged into sveltekit at 132245b. The complete upstream CI run passes: 133 regressions, strict application/service-worker checks, the credential-free Vercel build and production update/offline test. Vercel reports a successful deployment at https://armoria-g7z9xpgwa-azgaars-projects.vercel.app. Public-domain HTML matches that deployment after removing its feedback script, and all 12 referenced hashed entry assets match exactly.
Read-only live checks pass for procedural SVG generation, explicit-COA SVG with palette overrides, and real 200×200 PNG/JPEG/JPG images with SVG pixel parity and changed palette pixels. An isolated browser passes editor load, name editing, address updates and keyboard undo/redo without uncaught errors. Non-GET/HEAD browser requests were blocked; no production claims or Discord messages were modified.
#255 is complete following this verification: the direct CDP rasterizer, supported Puppeteer 25.11 / Chromium 153 pairing, converter removal and patch retirement are deployed and verified. #262 remains open for the recorded BiDi/Zod residual advisory; the audit remains at 22 findings (3 low, 15 moderate, 4 high), with the four high entries propagating from one Zod advisory through the unused BiDi path. Other scoped work remains under #256–#261. Parent #237 remains open; this does not complete all modernization work.
Final editor batch verified after #275 — 2026-11-20
PR #275 merged into sveltekit at f72fb1e, with exactly the tested PR tree. The upstream CI passes all 215 tests (211 service/browser and 4 production/deployment tests), strict application/service-worker checks and the credential-free Vercel build. Vercel reports a successful deployment.
Public HTML, service worker and all 12 referenced hashed entry assets match that deployment. Isolated public-browser checks pass enabling an inscription shadow then changing X without intervening undo/redo, both separate undo/redo steps, shared URL and reload, without page errors. Public SVG/PNG/JPEG/JPG requests succeed. Browser verification allowed only same-origin GET/HEAD requests; no production claims were changed or Discord messages sent.
All 29/29 editor components use runes. Three new regressions fail on unchanged fddc0c8 and pass here: uninterrupted shadow edits with replacement history branches, consecutive edits across layers, and restored legacy defaults followed by fresh edits. The existing eleven geometry cases pass on both trees. Nine representative exports preserve identical metadata and PNG bytes, with SVG equality after normalizing only random instance IDs. Strict checks retain the existing 92 accessibility warnings; coordinator ESLint and formatting pass.
#260 is complete after this verification. #237 remains open for #261, #262 and #264. Draft #276 prepares the separate master cutover, and FMG #2036 prepares the link/origin update. Hosting configuration and proposed follow-up acceptance remain release gates; neither draft changes production hosting. The existing Pages deployment stays available for old FMG sessions and browser-local saved resources.
Activity