Skip to content

Repair Worker resume imports and dependency security gates - #69

Merged
sarthakagrawal927 merged 9 commits into
mainfrom
fix/resume-import-runtime
Sep 9, 2026
Merged

Repair Worker resume imports and dependency security gates#69
sarthakagrawal927 merged 9 commits into
mainfrom
fix/resume-import-runtime

Conversation

@sarthakagrawal927

@sarthakagrawal927 sarthakagrawal927 commented Sep 9, 2026

Copy link
Copy Markdown
Member

Resume file import failed on Workers because its module loader used string code generation and its PDF parser required browser-only APIs. PDF extraction now runs on the device with the existing parser and a bundled, same-origin worker; the existing server action structures and saves the extracted text. Expected parsing, AI and save failures return readable, retryable UI results. Legacy .doc uploads receive conversion guidance; supported extensions work when browsers omit MIME types.

The repair also updates vulnerable existing dependencies: Next.js 16.3.4, Mammoth 1.12.2, Astro 7.2.8, aligned Wrangler 4.114.0, and targeted transitive overrides. The security gate reports zero critical and zero unexpected findings; seven previously accepted high advisory IDs remain across eight paths. No acceptance exceptions were added. Astro's four static pages remain pixel-identical at 390px and 1440px after restoring two inline spaces.

Validation: full quality passes (483 tests) and the complete Cloudflare build passes. Real synthetic PDF/DOCX fixtures exercise the parsers. In Chromium at 390px against the built local Worker, PDF import preserved source facts in the AI request, opened the editor and persisted after reload using a local AI stub. A deliberately unavailable provider produced a readable message and enabled retry; the PDF worker asset returned HTTP 200. Local servers, browsers and temporary files were cleaned up. Evidence is under docs/operations/evidence/.

Hosted AI import and signed-in persistence are not yet qualified. This is not production release evidence. Refs #68; keep that acceptance issue open.

@sarthakagrawal927 sarthakagrawal927 changed the title Fix resume import module loading and test real parser extraction Repair Worker resume imports and dependency security gates Sep 9, 2026
@sarthakagrawal927
sarthakagrawal927 marked this pull request as ready for review September 9, 2026 12:50
@sarthakagrawal927
sarthakagrawal927 merged commit 985dfd1 into main Sep 9, 2026
6 checks passed
@sarthakagrawal927
sarthakagrawal927 deleted the fix/resume-import-runtime branch September 9, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant