A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
chore: keep internal agent docs local
Amruth Pillai46707657b631
diff --git a/.agents/docs/adr/0001-server-rendered-web-pages.md b/.agents/docs/adr/0001-server-rendered-web-pages.mddeleted file mode 100644index 8740e0dd4..000000000--- a/.agents/docs/adr/0001-server-rendered-web-pages.md+++ /dev/null@@ -1,11 +0,0 @@-# Web pages are rendered on the server--Status: accepted (2026-10-26)--The app is a client-rendered SPA, but a resume's **Web page** is built as complete HTML on the server for each request (cached until the resume or its Share settings change) and ships almost no JavaScript. Search engines read it without running scripts, recruiters see it immediately, and custom domains only ever serve HTML and CSS: no app shell, API routes or sign-in paths on hosts the app doesn't own. The builder's Share preview renders the same output in the browser, so preview and published page can't drift.--## Consequences--- This is the server's first request-time page render; until now only marketing pages were prerendered at build time.-- Code that produces a web page must run on the server: no browser-only APIs in templates or their web conversion.-- The public resume route no longer depends on `/api/rpc` being crawlable, so `robots.txt` keeps blocking it.diff --git a/.agents/docs/adr/0002-web-page-reuses-resume-template.md b/.agents/docs/adr/0002-web-page-reuses-resume-template.mddeleted file mode 100644index 8dd15a946..000000000--- a/.agents/docs/adr/0002-web-page-reuses-resume-template.md+++ /dev/null@@ -1,18 +0,0 @@-# The web page is the resume's template, converted to responsive HTML--Status: accepted (2026-10-26)--A resume has one **Template** for both its PDF and its **Web page**; there is no separate web template to choose. Instead of hand-building a second design per template, the existing templates are rendered once more through an HTML converter that sits beside the PDF one: both read the same host tree (`View`, `Text`, `Image`, `Svg`, `Link`) the templates already produce. The converter makes the page fluid and folds the sidebar into one column on phones; a template folder may add small web-only adjustments for its absolute-positioned decorations. Every template works on the web at once, and template fixes and the author's Design settings reach the web page without a second implementation.--## Considered options--- Hand-built responsive web template per PDF template: full control, but two designs to keep in step for each of 18 templates.-- A few generic web layouts styled by Design: cheap, but rejected because the web page must look like the chosen template.-- A web-only template choice: dropped to keep one design per resume; the PDF and the web page always match.-- HTML copies of the PDF pages at fixed page size: rejected because fixed widths, sidebars and page breaks don't fit phones.--## Consequences--- The web page draws the template once: header, then every page's main sections, then every page's sidebar sections. Print-only settings (page size, margins, page breaks, keep together, start on new page, free-form height) are ignored.-- On wide screens the page is a centred sheet at about the template's page width; on phones it is full width, ordered header, main, sidebar.-- Template changes must be checked in both outputs.diff --git a/.agents/docs/adr/0003-both-domains-serve-public-pages.md b/.agents/docs/adr/0003-both-domains-serve-public-pages.mddeleted file mode 100644index 67d1cc958..000000000--- a/.agents/docs/adr/0003-both-domains-serve-public-pages.md+++ /dev/null@@ -1,19 +0,0 @@-# Both app domains serve the public pages--Status: accepted (2026-10-26)--Reactive Resume answers on `APP_URL` (`rxresu.me`) and an optional alias, `APP_ALIAS_URL` (`rx.cv`). Every public page works on both without a redirect: resume web pages, the short link `/<username>`, the home page and marketing pages, and the API they call. A link that works on one domain works on the other, so people never meet "works here but not there". Share shows and copies the alias, the shorter address.--Sign-in and the editor (`/auth`, `/dashboard`, `/builder`, `/agent`) live on `APP_URL` only. On the alias, the server answers them with a 301 and the web app does the same for links followed inside it. Login cookies, passkeys and social sign-in callbacks belong to one domain.--## Considered options--- Alias redirects everything except `/<username>`: one address per page, but `rxresu.me/<username>` and `rx.cv/<username>/<slug>` would behave differently.-- Alias as the primary domain with 308s from `rxresu.me`: backlinks survive a 308, but `.cv` is a country-code domain search engines don't treat as generic, while `.me` is.-- Full app on both domains: two sets of login cookies and passkey relying parties.--## Consequences--- Canonical addresses always use `APP_URL`, so search engines index one copy of each page.-- The alias host must point at the same server; no data or settings are per domain.-- Custom domains are separate: they show only the owner's primary resume.diff --git a/.agents/docs/changelog-custom-application-stages-screenshots.md b/.agents/docs/changelog-custom-application-stages-screenshots.mddeleted file mode 100644index 1b1ec9ad8..000000000--- a/.agents/docs/changelog-custom-application-stages-screenshots.md+++ /dev/null@@ -1,14 +0,0 @@-# Custom application stages: changelog screenshots--Captured from the production web build with a disposable local database and fictional account/company data. Original PNGs, light theme, English, 2× pixel density. No image edits or overlays.--Assets under `docs/images/changelog/custom-application-stages/`:--| File | Suggested caption |-| ------------------------------- | ----------------------------------------------------------------------------------------------- |-| `custom-stages-board.png` | Organize applications with your own stages, including Take-home assignment and Ghosted. |-| `manage-stages.png` | Rename, recolor and reorder stages while keeping their meaning for reminders and Insights. |-| `custom-stage-detail.png` | Custom stages appear in application details, next-stage actions and activity history. |-| `prior-no-response-warning.png` | See when a previous application to the same company received no response before applying again. |--Recommended lead image: `custom-stages-board.png`. All companies, roles and account information are fictional. These are reusable changelog assets; no changelog entry or release was published.diff --git a/.agents/docs/ci-performance.md b/.agents/docs/ci-performance.mddeleted file mode 100644index 08fa79ed6..000000000--- a/.agents/docs/ci-performance.md+++ /dev/null@@ -1,121 +0,0 @@-# CI performance audit — 2026-10-27--Scope: all six checked-in workflows plus GitHub-managed CodeQL. Baseline checkout:-`79f51c1c21d819a9f49a1f35dd74a93ff80fdfa6`. This is a focused cost/ownership audit, not a whole-repository test purge.--## Changes in this PR--- Run unit and browser suites in independent matrix jobs, each with its own PostgreSQL service and Turbo cache namespace.-- On 32-vCPU Blacksmith runners, run four package test processes (two Vitest workers each) and four Playwright workers.- GitHub-hosted runners and local unit scripts retain their serial limits; Vitest isolation and package-local module caches stay enabled.-- Use fixed public credentials exclusively for disposable CI services. Turbo still hashes runtime secrets; previously,- freshly generated credentials invalidated every cacheable unit task on every run. API, database, server, and tooling- integration tasks retain their explicit cache opt-outs. Browser tests always execute against a migrated database.-- Preserve all 21 browser tests. Consolidate repeated deployment-probe rejection loops while retaining every guard.--## Measurements--Hosted baseline: [E2E run 40416118497](https://github.com/reactive-resume/reactive-resume/actions/runs/40416118497),-commit `f77121efee0dfa65eb9b70229342bae7356dc3d8`, immediately before the baseline checkout's documentation-only change.-The combined job used a 32-vCPU Blacksmith runner: unit tests 130s, build 28s, browser tests 68s; 20 unit tasks and-21 browser tests passed. Unit tasks had 0/20 cache hits even though the outer Actions cache restored successfully.-Vercel artifact build took 97s; Cloudflare build/check 40s plus smoke 15s. Step durations exclude queue time.--Local benchmark: macOS arm64, 10 logical CPUs, 32 GiB RAM, Node 24.22.1, pnpm 12.15.0, PostgreSQL 16 in Docker.-Two dedicated databases, isolated local storage, and one unchanged environment were reused between commands.-No other benchmark ran concurrently. Forced unit measurements bypass Turbo task results with `--force`; dependency-and filesystem caches were not cleared between runs. Browser runs use the same production build, zero retries,-and no skipped tests. These are local measurements, not promises of hosted-runner elapsed time.--| Measurement | Before | After | Result |-| ---------------------------------------------------- | ------: | ---------: | -------------------------------------------------------------------- |-| Full unit task execution (`--force`, 1 → 4 packages) | 149.27s | 57.51s | 61.5% faster; all 20 tasks passed, 2,393 → 2,391 tests, zero skipped |-| Warm unit run (4 packages, unchanged inputs) | — | 24.08s | 16/20 task cache hits; all four uncached integration tasks still ran |-| Browser execution (1 → 4 workers) | 61.28s | 21.42s | 65.0% faster; all 21 tests passed on both runs |-| Production build for both browser runs | 28.33s | Same build | Build succeeded; no application runtime change |--A same-code serial control after consolidation also passed all 2,391 tests in **139.31s**; four-package execution-was **58.7% faster** even against that warmed control. The first baseline includes the two consolidated cases.--Reproduce with the disposable-service environment from `tests/e2e/README.md`, also setting-`COVER_LETTER_TEST_DATABASE_URL`, `INTEGRATIONS_TEST_DATABASE_URL`, and a separately migrated `OAUTH_TEST_DATABASE_URL`:--```sh-pnpm exec turbo run test:ci --concurrency=1 --force-pnpm exec turbo run test:ci --concurrency=4 --force-pnpm exec turbo run test:ci --concurrency=4-pnpm build-CI=true pnpm exec playwright test --workers=1-CI=true pnpm exec playwright test --workers=4-```--The matrix also overlaps unit work with browser build/testing. That structural benefit is not added to the local-numbers as though it were a measured end-to-end hosted result. A second runner adds service/setup overhead and-can increase runner minutes; compare Actions duration and billed usage after merging. New check names are-`Unit tests` and `Browser tests`; external branch protection that requires the old combined name must be updated.-The repository currently exposes no required-status-check protection; exact-commit promotion checks the whole-E2E workflow conclusion, so both matrix legs remain required for promotion.--## Test audit and preservation--`tooling/mobile-updates.test.ts` executes the real production OTA shell guard from `mobile-ota-update.yml` with local-HTTP-command fixtures. Previously, unhealthy status and unrelated service each repeated the same failing loop-60 times. One rolling sequence now inserts each invalid response after two healthy matches, then requires three-fresh matches. It asserts success at exactly 12 probes. Immediate success at 3 and permanent mismatch failure at-60 remain. Total fixture probes: 190 → 75, removing 115 redundant shell/curl/jq invocations, with two fewer table-cases. No production runtime code or test-only production seam changed. Test LOC increases because the combined-sequence explicitly spells out the independent reset controls; deletion count was not the objective.--Mutation proof: removing revision, status or service validation makes the rolling keeper fail with 3, 6 or 9-probes instead of 12. Removing the reset makes it fail at 4. All four mutations failed at the intended exact-count-assertion, and the production workflow was restored byte for byte. Full owner/sibling suites passed before and-after consolidation. Full-suite test declarations decrease by two; runtime production LOC change is zero,-test LOC is +16 (19 added, 3 removed), and no support files/exports are orphaned.--All browser cases retain distinct transport/persistence/security/lifecycle proof: auth and guest ownership;-failed-save navigation for separate resume/letter stores; import/export; sharing/password/redirect/statistics;-OAuth consent and PKCE; private AI report deletion; assistant proposals/cancellation; career evidence and-job-document snapshots; browser font loading and PDF ActualText; optional web-provider persistence. Per-test-accounts, browser contexts and scoped cleanup, ephemeral stub ports, and intercepted OAuth callbacks permit parallelism.--Inspected tooling release, cache, lint, generated-language/documentation and recovery tests also remain: they-protect independent executable/configuration/public contracts. Preview cancellation/pixel-budget, cached auth-fallback, and WebMCP adapter tests remain. Static or small tests were not deleted merely for looking menial.-Independent preservation review found no lost contract or new cache/database isolation issue.--## Workflow-wide recommendations--| Workflow | Current evidence / caching | Next improvement |-| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `ci.yml` | Serial 130s unit + 28s build + 68s browser baseline; pnpm and Turbo caches already restored. | This PR fixes secret-induced cache misses and adds bounded parallelism. Profile new hosted runs before adding shards. Cloudflare currently calls web build directly without Turbo; a follow-up can route that build through Turbo with declared build inputs and its own cache namespace. Keep real runtime smoke and Vercel artifact proof. |-| `autofix.yml` | Recent successful job: dependency install 1s, setup/cache restore 19s, Knip 3s, lint/format 7s. | Keep mutating Knip/lint/format uncached: a cached success would not reproduce edits. If setup remains dominant, benchmark a Blacksmith sticky disk for the pnpm store rather than adding more task caching. |-| `docker-publish.yml` | Native AMD64/ARM64 builds already parallel; Blacksmith persists BuildKit layers and pnpm mounts per architecture. Sample build steps 76s/144s, anonymous pulls 48s, Docker Hub mirror 273s, OTA publish 353s. | Largest follow-ups: move best-effort Docker Hub mirroring off the deployment/OTA critical path while preserving digest/signature evidence; profile OTA bundling on a larger runner or use an unsigned Metro transform cache keyed by toolchain/lockfile. GitHub fallback currently has no cross-run Docker layer cache: benchmark `type=gha` per architecture there only, without stacking it onto the Blacksmith builder. Preserve every SHA image, exact-commit CI, signing, and backend-revision gates. |-| `mobile-release.yml` | Platforms already matrixed; pnpm and Ruby/Bundler dependencies cached. Latest Android build step 411s; store submission 72s, excluding approval waits. No explicit Gradle or CocoaPods download cache. | Benchmark dependency-only Gradle/CocoaPods caches or Blacksmith sticky disks keyed by OS/toolchain/lockfiles. Avoid signing files, generated signed output, keychains, and broad workspace caches. Keep approval boundaries and exact-commit CI; build-number/fingerprint evidence cannot be reused from another release. |-| `mobile-forme-build.yml` | Manual macOS job installs pinned Rust toolchain, cbindgen/cargo-ndk, then builds five targets serially with four jobs each; no explicit Cargo cache. No recent hosted run available for timing. | Cache Cargo registry/git downloads and pinned installed tools first; then benchmark target build caching keyed by Rust/NDK/Xcode/Cargo.lock. Preserve clean header/notices comparison, artifact checksum verification and immutable publishing. Do not introduce five simultaneous four-thread compiles without a memory benchmark. |-| `issue-maintenance.yml` | Already lightweight 2-vCPU jobs; no dependency installation. Stale job needs no checkout. | No build/test cache needed. Label job could use sparse checkout of its single imported script, but expected saving is small; retain form-derived labels and stale policy. |-| GitHub-managed `CodeQL` | Default setup scans `actions`, on standard runners; recent runs about 50s including scheduling. Not a checked-in workflow. | Keep independent security analysis. No Turbo task output or dependency cache applies to its current Actions-only analysis. |--Blacksmith documentation confirms `actions/cache` and `actions/setup-node` dependency caching are accelerated-transparently on its runners; replacing working actions with extra wrappers is unnecessary. Existing observed-pnpm archive is approximately 684 MB, while Turbo archives are about 40–79 MB. Sticky disks are an experiment-for transfer/extraction cost, not a substitute for correct Turbo hashes. A remote Turbo service would require-credential/trust design for fork PRs; current cache transport already works and needs no new credentials.-Keep Vercel, browser, unit, and any future Cloudflare artifact namespaces separate until build-environment inputs-are deliberately audited. Browser binaries are not cached here: Playwright installation was 12s including OS-dependencies, and another archive restore may not improve that.--Sources: [Blacksmith dependency caching](https://docs.blacksmith.sh/blacksmith-caching/dependencies-actions),-[sticky disks](https://docs.blacksmith.sh/blacksmith-caching/dependencies-sticky-disks),-[Docker caching](https://docs.blacksmith.sh/blacksmith-caching/docker-builds), installed Turbo 2.11.10 docs,-and Playwright's current parallelism/isolation documentation. Timing samples:-[Docker 40416118446](https://github.com/reactive-resume/reactive-resume/actions/runs/40416118446),-[autofix 40417598213](https://github.com/reactive-resume/reactive-resume/actions/runs/40417598213),-[mobile 40206816901](https://github.com/reactive-resume/reactive-resume/actions/runs/40206816901).--## Validation--Passed: production build; complete unit suites at one and four package concurrency; warm-cache run; all 21-browser tests at one and four workers; four targeted guard mutations; tooling typecheck; repository-wide-`pnpm lint:agent`, `pnpm format:check`, `pnpm knip`, `pnpm exec turbo boundaries`; `git diff --check`; and-all-workflow actionlint with existing Blacksmith runner labels declared in a temporary actionlint config.-No native release/store submission or new hosted speedup has been measured by this local validation.diff --git a/.agents/docs/container-publishing.md b/.agents/docs/container-publishing.mddeleted file mode 100644index 1f9abd162..000000000--- a/.agents/docs/container-publishing.md+++ /dev/null@@ -1,229 +0,0 @@-# Container publishing--The repository is `reactive-resume/reactive-resume`. Docker Hub remains-`docker.io/amruthpillai/reactive-resume`; GHCR follows the repository as-`ghcr.io/reactive-resume/reactive-resume`. Do not derive Docker Hub's image name from `github.repository`.--## Builds and release safety--`.github/workflows/docker-publish.yml` builds AMD64 and ARM64 on matching native runners.-All workflows run on GitHub-hosted runners (`ubuntu-latest`, `ubuntu-24.04-arm`) by default,-so forks work without setup. Setting the repository variable `USE_BLACKSMITH=true` switches-every job to Blacksmith runners (32 vCPU for build/test jobs, 2 vCPU for lightweight jobs) and-swaps in `useblacksmith/checkout`, `useblacksmith/setup-docker-builder`, and-`useblacksmith/build-push-action`. Because `uses:` cannot be an expression, each swapped-action is a pair of steps gated on the variable; keep both halves in sync when editing.--On GitHub-hosted runners, Docker Buildx shares its local cache between steps within a job and-no cache is persisted between workflow runs. On Blacksmith, the builder persists layers and the-Dockerfile's pnpm cache mounts between runs, keyed per architecture (`Dockerfile-amd64`,-`Dockerfile-arm64`).--| Trigger | Action | Published aliases | Production deployment |-| ----------------------------------------------- | -------------------------- | ------------------------------------------------------ | -------------------------------------------------- |-| Push to `main` | Build AMD64 and ARM64 | `sha-<full-commit>`, `nightly`, timestamped nightly | No |-| Manual dispatch, default `release=false` | Build AMD64 and ARM64 | `sha-<full-commit>`, `canary-<run-id>-<attempt>` | No |-| Push of a stable `v*` tag | Promote existing SHA image | `latest`, version/major/minor (`v6.0.0`, `v6.0`, `v6`) | When configured: SSH redeploy and Cloudflare purge |-| Push of a prerelease `v*` tag | Promote existing SHA image | Prerelease version only (for example, `v6.0.0-rc.1`) | No |-| Manual dispatch, `release=true`, branch | Promote existing SHA image | `latest`, version/major/minor from `package.json` | When configured: SSH redeploy and Cloudflare purge |-| Manual dispatch, `release=true`, stable tag | Promote existing SHA image | `latest`, version/major/minor (`v6.0.0`, `v6.0`, `v6`) | When configured: SSH redeploy and Cloudflare purge |-| Manual dispatch, `release=true`, prerelease tag | Promote existing SHA image | Prerelease version only | No |--Each main push builds its own full commit-SHA image; newer pushes do not cancel earlier-builds. An older build still publishes its SHA and timestamped nightly aliases, but only-the current main HEAD updates the moving `nightly` alias. Architecture-specific build-outputs use `sha-<full-commit>-amd64` and `sha-<full-commit>-arm64`.--### Explicit product releases and manual APKs--A push to `main` publishes container images only. OTA updates ship with stable production releases.-It never builds Android APKs, creates Git tags, or creates GitHub Releases. Product-GitHub Releases and `v*` tags are created only by an explicit versioned release operation.-Docker promotion consumes an existing tag or commit; it does not create either.--For a sideloadable APK, dispatch **Mobile release** on `main` with `platform=android`,-`format=apk`, the desired `abi`, and `upload=false`. Signing requires approval through-`mobile-signing`. The preview APK is a downloadable Actions artifact for 14 days;-release evidence is retained for 90 days. No GitHub tag or release is created.-See [manual Android downloads](./mobile-release-handoff.md#manual-android-downloads).--Forme's manually published, checksum-pinned binary assets remain available at their-existing URLs. Moving those rare artifacts to dedicated storage is deferred; never-remove an asset still referenced by `packages/forme-native/scripts/prebuilt.json`.--### Stable promotions--Before moving any container aliases or deploying production, the latest `ci.yml`-CI run from a `main` push must have completed successfully for the exact full commit-SHA being promoted. Missing, failed, cancelled, or pending CI blocks promotion;-PR checks and manual smoke-only runs cannot authorize it. If historical CI was-removed, that commit is no longer eligible for this promotion path. This check runs-before registry mutations and does not rebuild the source image.--Release tags must be `vMAJOR.MINOR.PATCH`, optionally with a prerelease suffix, and match-`package.json` at the tagged commit. Promotion resolves that commit's GHCR-`sha-<full-commit>` image, validates both architectures, and copies the complete image index-within GHCR. It adds no annotations and checks that each resulting alias has the source digest.-Embedded SBOM/provenance manifests and existing digest-addressed signatures stay intact; the-workflow also signs the promoted digest.--If the main build is still running, promotion waits up to 35 minutes for the source images.-Missing images or incomplete indexes fail before aliases move; promotion never falls back to-a rebuild. For an unpublished commit on a ref containing this workflow version, run a-manual `release=false` build at that ref first, then rerun promotion. Historical refs with-older workflow files still run their original workflow; their short SHA tags are not promotion-sources. Keep full SHA images in registry retention policies so commits remain promotable.--Manual `release=true` on main or another branch promotes the branch head to `latest` and to-the full/minor/major aliases of its `package.json` version (a prerelease version updates only-its own alias and skips production integrations). Use it to republish a release with a fix-that landed after its Git tag, without rebuilding:--```bash-gh workflow run docker-publish.yml --repo reactive-resume/reactive-resume --ref main -f release=true-```--To re-promote an existing stable release, select its Git tag. This updates `latest` and-that release's full/minor/major semver aliases. The tag must match the built `package.json`-version. Prerelease tags update only their prerelease alias and skip production integrations.--```bash-gh workflow run docker-publish.yml --repo reactive-resume/reactive-resume --ref v6.0.1 -f release=true-```--SSH redeployment requires `SSH_KEY`, `SSH_HOST`, and `SSH_USER`; Cloudflare purging requires-`CLOUDFLARE_ZONE_ID` and `CLOUDFLARE_API_TOKEN`. Each integration is skipped if any required-secret is missing. Dispatch does not create a Git tag, GitHub release, or version bump.--## Native mobile updates--After a successful stable Docker promotion and SSH redeploy, `docker-publish.yml` calls-`.github/workflows/mobile-ota-update.yml`. This reusable workflow checks out the image's-exact full source commit and publishes an EAS Update to the `production` channel using-the `production` EAS environment. Nightlies, manual canaries, and prereleases skip OTA.--The workflow uses the `EXPO_TOKEN` Actions secret, which must have access to Expo account-`reactive-resume` and project `5830280e-e1ba-45b7-b9c9-ba048fa3bd4d`. Missing credentials-fail the mobile job without undoing the published Docker image.--Before publishing, three consecutive probes of `https://rxresu.me/api/health` must identify-this service, report healthy, and match the full source commit. Official Docker builds-embed `APP_REVISION` for that check. A successful container publish alone cannot authorize OTA.--New production OTA jobs cancel superseded OTA jobs; Docker image builds remain unaffected.-Publishing and deployment are separate operations, so a failed mobile job can leave the-backend ahead. Fix the failure and rerun failed jobs in the Docker release run. The reusable-workflow runs within that release's dependency chain; it has no independent push or-`workflow_run` trigger and receives only the source SHA and Expo secret from its caller.--The app uses `expo-updates` with fingerprint runtime compatibility. Generated native-projects and local Forme build output are excluded; the Rust sources and reviewed-prebuilt pin are included. Native changes need a new compatible store build; publishing-an OTA update alone cannot upgrade native code. JavaScript and asset changes are checked-at launch, downloaded in the background, and applied on the next restart.--Before first use, add `EXPO_TOKEN`, create the production EAS channel, and distribute-new production builds with that channel and update configuration. Existing binaries without-`expo-updates` cannot receive OTA updates. See [mobile release handoff](./mobile-release-handoff.md#over-the-air-updates)-for setup, rollback, and remaining verification. Keep APIs compatible with older clients-and self-hosted servers; runtime fingerprints only protect the JavaScript/native boundary.--Manual canaries build, publish, merge, and sign images in enabled registries without-running production integrations:--```bash-gh workflow run docker-publish.yml --repo reactive-resume/reactive-resume --ref main -f release=false-```--Published images retain SBOMs, maximum provenance, and Cosign signatures. GHCR always uses-the destination repository's `GITHUB_TOKEN` with `packages: write`. GHCR is the primary-registry: builds, indexes, promotion, signing, anonymous-pull verification, and production-deployment depend on it alone. Docker Hub is a best-effort mirror, enabled only when both-`DOCKER_USERNAME` and `DOCKER_PASSWORD` secrets are present. After GHCR is published and-verified, the workflow copies the GHCR index to Docker Hub under the same tags (same digest)-and signs it there; Docker Hub login or mirror failures show as failed steps but never fail-the run. Rerun the workflow to retry a missed mirror. Image references are normalized to-lowercase. New GHCR packages need public visibility, repository linkage,-and Actions access before consumers can pull anonymously.--## Verification and historical images--The September 12, 2026 rename rebuild used commit `f89acb436865cf536fffed2b23d4d72a7ecff0db`-in [workflow run 34685606073](https://github.com/reactive-resume/reactive-resume/actions/runs/34685606073).-Both registries' `latest`, `v5`, `v5.3`, and `v5.3.0` aliases were verified at:--```text-sha256:7c7b7824785d1386fa6e0e6132c1abe43e3c281f90dbf3b1474b60bffb64d89e-```--The workflow built both architectures, generated SBOMs and provenance, signed the images,-passed anonymous AMD64/ARM64 pulls from both registries, redeployed production, and purged-Cloudflare. The live health endpoint reported healthy version `5.3.0`, and the homepage-served the new repository URL. No new GitHub release or version bump was made.--Check the manifest for `linux/amd64` and `linux/arm64`, then pull both using an empty-Docker configuration with explicit empty registry credentials to prove anonymous access-(a completely empty directory can still discover a system credential helper):--```bash-docker buildx imagetools inspect ghcr.io/reactive-resume/reactive-resume:v5.3.0-registry_config=$(mktemp -d)-printf '%s\n' '{"auths":{"ghcr.io":{}}}' > "$registry_config/config.json"-docker --config "$registry_config" pull --platform linux/amd64 ghcr.io/reactive-resume/reactive-resume:v5.3.0-docker --config "$registry_config" pull --platform linux/arm64 ghcr.io/reactive-resume/reactive-resume:v5.3.0-rm -r "$registry_config"-```--On September 11, 2026, `latest`, `v5`, `v5.3`, and `v5.3.0` were copied to the then-current-public GHCR package, `ghcr.io/reactive-resume/app`. Both architectures were pulled anonymously; the original Cosign signature,-SBOMs, provenance, and image digest were verified. The signed canary-[`canary-34582818410-1`](https://github.com/reactive-resume/reactive-resume/actions/runs/34582818410)-also passed on both registries without deploying production.--The original v5.3.0 at the previous GHCR address has digest-`sha256:c487ec5edcfe054bcb312fcd498f868e56f274756d0046b01c83f210855017ab`.-Copy complete image indexes rather than rebuilding historical releases or using a-single-platform pull/tag/push. Preserve embedded attestation manifests and copy attached-signatures separately. Verify the resulting digest before moving aliases. Retain the old-GHCR packages for historical pulls; future updates publish under the new namespace.-The repository rename does not rename registry packages. Rebuilt images use the new-repository source label and signing identity; historical digests and signatures do not change.-Release aliases are mutable: pin the original digest above if you need the pre-rename artifact.--New signatures identify-`https://github.com/reactive-resume/reactive-resume/.github/workflows/docker-publish.yml@<ref>`.-Images signed before the workflow rename retain-`https://github.com/reactive-resume/reactive-resume/.github/workflows/docker-build.yml@<ref>`.-Use the workflow identity from the image's signing record when verifying older images.-Signatures and image source labels from before the repository rename retain the old repository identity. Verify-historical v5.3.0 with its original workflow identity, even at its new registry address:--```bash-cosign verify \- --certificate-identity https://github.com/amruthpillai/reactive-resume/.github/workflows/docker-build.yml@refs/heads/main \- --certificate-oidc-issuer https://token.actions.githubusercontent.com \- ghcr.io/reactive-resume/app@sha256:c487ec5edcfe054bcb312fcd498f868e56f274756d0046b01c83f210855017ab-```--After the rename, GitHub reports `use_immutable_subject: true` and subject prefix-`repo:reactive-resume@245328954/reactive-resume@249995750`. Inspect actual claims when updating external-OIDC trust policies; the repository URL alone does not describe the subject.--## Independent migration items--- GitHub Sponsors stays `AmruthPillai`; Open Collective stays `reactive-resume`.-- `server.json` keeps MCP registry identifier `io.github.amruthpillai/reactive-resume`.- Changing that identifier creates a separate registry identity and requires its own migration.-- The old GitHub repository redirects to the new repository. Never recreate the old repository.-- The old Pages address `https://amruthpillai.github.io/reactive-resume/` returned 404 on- September 11, 2026. GitHub now reports `https://reactive-resume.github.io/reactive-resume/`; repository- redirects do not redirect Pages traffic. No active repository references use the old Pages URL.-- Confirm documentation hosting, Crowdin, Docker Hub source metadata, sponsorship access- rewards, and any external OIDC policies in their owning accounts. Repository transfer alone- does not verify those integrations.--Track availability and supported copied tags in [migration issue #3503](https://github.com/reactive-resume/reactive-resume/issues/3503).-No database reset, volume deletion, or resume-data migration is required.--References: [GitHub package permissions](https://docs.github.com/en/packages/learn-github-packages/about-permissions-for-github-packages),-[Cosign verification](https://docs.sigstore.dev/cosign/verifying/verify/).diff --git a/.agents/docs/custom-application-lanes-implementation.md b/.agents/docs/custom-application-lanes-implementation.mddeleted file mode 100644index 441083b08..000000000--- a/.agents/docs/custom-application-lanes-implementation.md+++ /dev/null@@ -1,108 +0,0 @@-# Custom application lanes implementation contract--Issue: https://github.com/reactive-resume/reactive-resume/issues/3518. Accepted research: `.agents/docs/research/custom-application-stages-2026-10-29.md`. Implement locally on the existing branch; no commits, pushes, PRs or deployments in this implementation stage.--## Ownership--- Backend worker: schema and DB packages/migrations; API application DTO/service/router; Career application writers and schedules; account export API and auth guest linking. Own backend-focused tests. Do not edit client or MCP files.-- Web worker: `apps/web` application UI/routes, linked document labels, web account ZIP export, client-focused tests and product guide updates/screenshots. Do not edit shared contracts or mobile/backend files. Do not run Lingui extraction while other workers are editing; coordinator owns generated catalogs.-- Mobile worker: `apps/mobile` application/detail/board/workspace/linked-document surfaces and tests. Do not edit shared contracts, web/backend, or generated catalogs.-- Coordinator: MCP, generated OpenAPI/catalogs, integration checks, migration rehearsal, final reviews and fixes. Preserve the research note.--## Contract shared by all workers--Preserve canonical `ApplicationStatus` and `application.status` values: saved, applied, screening, interview, offer, closed. User-facing lanes map to one canonical category. Analytics and submission effects use canonical meaning, never display order.--New shared module `@reactive-resume/schema/applications/lanes` exports:--```ts-type ApplicationLane = {- id: string;- category: ApplicationStatus;- label: string | null; // null: translated category default; custom label: literal user content- color: string; // validated #RRGGBB- position: number;- systemKey: ApplicationStatus | null;- closedReason: ApplicationClosedReason | null; // preset only for Closed-category lane- retiredAt: Date | null;-};-type ApplicationPipeline = { revision: number; lanes: ApplicationLane[] };-```--Also export matching Zod `applicationLaneSchema`, `applicationPipelineSchema`, `createDefaultApplicationLanes(): ApplicationLane[]` for safe old-server fallback (synthetic IDs equal canonical category), `getApplicationLane(lanes, application)` resolving a nullable/missing `laneId` to its category default, and `getActiveApplicationLanes(lanes)` in configured order. Backend owns these exports. Inputs remain bounded (label 80 chars, at most 40 active lanes; hex colors); avoid arbitrary CSS input. Default labels retain Lingui localization on clients.--New nested `orpc.applications.lanes` / `client.applications.lanes` procedures (backend implements with REST routes and documented operation IDs):--- `get`: no required input; returns `ApplicationPipeline`, all lanes including retired for history.-- `create`: `{ expectedRevision: number; label: string; category: ApplicationStatus; color: string; closedReason?: ApplicationClosedReason | null }`; returns `ApplicationPipeline`.-- `update`: `{ id: string; expectedRevision: number; label?: string; color?: string }`; returns `ApplicationPipeline`. Category and closure preset immutable after creation. System default labels/colors may be renamed; default mapping remains fixed.-- `reorder`: `{ expectedRevision: number; ids: string[] }` (every active lane exactly once); returns `ApplicationPipeline`.-- `retire`: `{ id: string; replacementId: string; expectedRevision: number }`; returns `ApplicationPipeline`. System defaults cannot retire. Replacement must be active and have the same category and closure preset; preserve app/event identity and snapshot data. Retired history remains resolvable. Replacement selection is explicit in UI.--Read first before mutation. Stale settings revision returns CONFLICT with refreshable UI, with no partial mutation. Serialize against application transitions using established per-user locking. No settings read should update application timestamps or create sent snapshots. New clients detect unsupported lane API on old self-hosted backends and keep fixed-stage behavior; do not send unknown lane-only payloads to old servers. Do not treat every network/auth failure as an old server.--Application additions:--- Optional/nullable `laneId` on full and summary output, optional `laneId` input on create/import/update/bulkUpdate and list filters. Missing fields from older servers remain safe for clients. New server validates ownership/active lane and derives canonical status and preset outcome. Contradictory explicit category/outcome fails. Legacy unchanged-status echoes/metadata edits preserve custom lane; explicit change to another category picks that category's default. Outcome changes incompatible with a preset lane select neutral default Closed for legacy writes.-- Add optional lane ID, lane-label snapshot, closed-reason snapshot, and `canonicalTransition?: boolean` to existing `type: stage` timeline entries. The canonical `stage` stays unchanged. Same-category lane moves append one event with `canonicalTransition: false`; exact no-op moves append nothing. True canonical changes remain canonical transitions. Outcome changes within Closed record durable outcome history too.-- Canonical submission/date/Insights helpers ignore lane-only events for semantic milestones, while current-lane anchor and time-in-lane use lane identity. Legacy events without new fields retain existing semantics. No historical JSON rewrite required for backfill.-- Backend retains current per-application `closedReason`; new historical snapshots permit durable prior-no-response warnings even after reopening. No attempt to reconstruct cleared historical outcomes.-- `orpc.applications.priorNoResponse` input `{ company: string; excludeId?: string }`, output array `{ id: string; company: string; role: string; at: Date }`, bounded to 10, same owner only, conservative case/whitespace company matching. Includes currently no-response applications and recorded historical no-response outcomes. UI presents advisory prior applications at create and mark-as-applied; never blocks submission. No fuzzy company identity service.--## Required behavior--Manage lanes access from Applications on web and native. Add, rename, choose color, reorder via accessible controls, retire custom lanes with explicit compatible replacement. Closing presets permit a Ghosted lane (closed + no-response). Every lane can be targeted by board drag/menu, detail selection and bulk move; creation/import where applicable. Maintain current native long-press gesture/tap behavior, rollback and keyboard/menu alternatives on web. Arbitrary lane count/labels must not break five-column detail layout.--Canonical category still governs Closed visibility, next steps/reminders, source/document linking, sent-version snapshots and existing Insights. Render selected lane label/color throughout. Next-lane navigation uses active configured order, skipping terminal Closed lanes; explicit Close/preset selection retains outcome flow. Preserve current semantic no-reply clock across same-category Applied lane moves. Client same-category pending-move state and summary/detail hydration compare lane IDs as well as status/reason.--CSV: retain canonical Stage, add lane label/category/preset metadata, require explicit lane mapping when importing unknown/cross-account lanes (no foreign ID trust; no silent downgrade to Saved). Preserve formula safety and existing legacy CSV support. Account export includes lane definitions; web ZIP includes metadata; native full-account JSON naturally includes additive response fields.--Every application writer, including Career applyReply/submitApplication/trackOpportunity, must maintain lane/category/history through one transaction-aware owner operation while preserving submission idempotency/snapshots and ownership. Guest linking transfers/remaps lane ownership and references without collisions. Closed applications suppress queued Career follow-up/briefing work and delivery; do not delete user schedules/history merely for closure. API exports, REST/MCP discovery and calls, and AI prompt context must retain canonical categories plus lane labels when useful.--## Verification and stop condition--Add meaningful regression tests at owner seams for migration preservation/backfill, tenant isolation, legacy writes, same-category transitions, timeline date stability, retirement races/settings revisions, snapshots/submission retries, guest transfer, native cancellation, client rollback/hydration, CSV mapping and semantic analytics stability. No production data in fixtures. Run scoped checks while workers edit; coordinator owns full lint/format, boundaries, affected typechecks/tests, production build, disposable DB migration rehearsal, and browser workflow proof. Read relevant skills before Drizzle/migration/test work; Drizzle skills revision check already ran from `@reactive-resume/db` and returned revision 12. Use Context7 CLI for library-specific API/config changes; no need for business logic-only work.--After implementation, independent Claude and Codex reviews must assess runtime correctness and compatibility; coordinator fixes findings. Report local vs CI/device/deployed proof separately. Stop with complete local implementation and reviewable diff, no automatic publication.--## Integration and review evidence--All implementation workers completed and verified the change locally on `3518-need-custom-or-additional-stages-in-application-kanban-view`, based on `aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9`. The subsequent commit/PR delivery is authorized separately; see repository history for its current state. No production migration or deployment was performed during local verification.--Independent Codex web/MCP and Claude mobile reviews are recorded under `.agents/docs/reviews/`. Coordinator fixed their findings:--- Named CSV import waits for stage discovery; retry keeps the CSV. Confirmed older servers retain canonical category and preset outcome without foreign lane IDs.-- Confirmed stage creations persist across import failures. An uncertain create reply requires metadata refresh and explicit reconciliation before another create. Two distinct lanes of one category receive distinct IDs. Browser proof covers a second-create failure, an import failure before commit, and a committed stage with a lost response.-- Explicit ordinary Close, including bulk Close, targets the default Closed lane even when the outcome stays unchanged.-- Reply metrics use recorded rejection outcomes and their dates, including outcome-only changes and reopening. Canonical progression and submission calculations still ignore lane-only events.-- Fast failed board moves clear their pending override and roll back visibly.-- Native prior-application navigation asks before discarding a draft and cannot interrupt saving. Confirmed closes/deletes cancel device reminders after an account switch. Complete bulk receipts to immutable Closed targets cancel without a follow-up read; partial receipts require authoritative results.-- List keeps category priority (Interview, Offer, Screening, Applied, Saved, Closed), then configured lane order within each category, on web and native. Board, detail and next-lane navigation use configured global order.-- A native metadata outage permits safe canonical default writes while retaining the retry notice.-- Legacy owner-only guest transfers now reconcile to the target's category defaults without changing other stored application data. Explicit foreign lane writes remain rejected. New-code transfers retain custom lane definitions and remap references.-- Career email keeps its existing claim/retry behavior but releases owner/application locks before SMTP. Slow delivery cannot block closing or moving applications.-- A failed over-capacity guest merge restores the guest cookie/cache and revokes the target's newly created session. The real auth-flow regression failed before this fix, then passed; retiring the extra guest stage permits a successful retry with the application intact.--### Local checks actually run--- Backend worker: 143 tests in nine files, no skips; schema/DB/API/auth typechecks; scoped lint/format. Full disposable migration chain, repeat application and generated snapshot comparison (`no_changes`) passed. No production data used.-- Coordinator: MCP suite, five files / 22 tests, plus MCP typecheck; web suite, 89 files / 399 tests after review fixes; final CSV suite, 19 tests; native host suite, 22 tests. Web/mobile/server typechecks passed.-- Production server build and web client/marketing prerender build passed. Web used installed Vite+ `createBuilder` with `envDir: false`; root `.env.local` and `.env.production` are FIFOs and were not read. Context7 quota prevented online documentation lookup; installed API/types supplied build-option evidence.-- Initial affected browser gate: 11 tests across custom lanes, submission snapshots, guest linking and Career. Expanded custom-lane browser gate: seven tests passed, followed by successful focused reruns for pending/failed metadata recovery and bulk default-Closed selection with an unchanged outcome.-- Repository lint, format, Turbo boundaries and diff whitespace checks passed. OpenAPI and PDF translations regenerated. Two fictional screenshots were captured from the real UI, inspected and copied into the new product guide.-- Web/mobile Lingui extraction completed after review fixes. It reports 64 missing web messages and 51 missing native messages per non-source catalog; source English is available. Translation completeness is not claimed.-- Android and iOS bundle exports passed again after review fixes.-- Pre-fix negative controls were run for the two-new-lanes CSV defect and native no-reply clock. Independent reviews reproduced their reported defects. Separate pre-fix negative controls were not rerun for every coordinator regression added after those reviews.-- Backend-review fixes received their own negative controls: both legacy guest transfer variants and the slow-SMTP write test failed before remediation, then all 24 lane integration tests passed. Actual over-capacity email/password sign-in switched away from the guest before the recovery fix and retains access afterward.-- Fresh API rerun: 130 tests passed across five files; six account tests initially skipped because `OAUTH_TEST_DATABASE_URL` was absent, then passed when supplied. Final lane/account rerun passed 30 tests. Full auth suite passed 49 tests; schema lane suite passed three; MCP suite passed 22. API/auth/MCP/server typechecks and server production build passed after backend remediation.-- Final disposable database `rr_lanes_3518_review_fixes`: complete migration chain, repeat migration and generated snapshot comparison (`no_changes`) passed. No reset of an existing database or production migration performed.--### Remaining gates and limits--All three independent reviews completed; coordinator remediation and the intentional remaining product constraints are recorded in their reports. Final affected browser rerun passed all 16 tests, including capacity-error recovery and successful retry, old-server fallback, submission snapshots and Career flows. Deployment remains outside this task; deploy the compatible backend before native updates.--Not verified: hosted CI, deployed behavior, physical-device gestures, VoiceOver/TalkBack, OTA against a deployed old server, store delivery, native fingerprint comparison and native/OAuth callback failure recovery. A lost application-import response still requires checking Applications before retrying, as with existing create/import behavior; stage-creation recovery does not make application import idempotent. No claim of full account restore: exports retain lane definitions, but existing import workflows do not restore all account history.--## Hosted CI follow-up--The first PR head (`285b441`) exposed two checks omitted from local scope: Knip found an unused lane helper and two unnecessary hook-helper exports; the DB suite's explicit v6-to-v5 downgrade restored old status values while the new trigger still required v6 categories. Removed the unused surface, and updated the manual v5 rollback script to remove the trigger/function while preserving additive stage data. Extended the existing migration test to preserve lane references and exercise a v5 writer after downgrade. This full v5 schema downgrade is separate from rolling back application code to the preceding v6 image, which keeps the lane trigger.diff --git a/.agents/docs/dependency-upgrades.md b/.agents/docs/dependency-upgrades.mddeleted file mode 100644index 36fdedea6..000000000--- a/.agents/docs/dependency-upgrades.md+++ /dev/null@@ -1,21 +0,0 @@-# Dependency compatibility--Registry audit: October 18, 2026. Workspace npm dependencies, pnpm, EAS CLI, Docker build pins and GitHub Actions were checked against current releases, including major versions. Rust crates and the generated Android/iOS build stack were checked separately. Compatible npm and CI upgrades are applied; the following versions remain intentional holds.--| Dependency | Current | Newer available | Reason |-| --------------------------------------- | ---------------------- | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| React / React DOM | 19.3.0 | 19.3.1 | Expo 58 specifies React 19.3.0 and React Native 0.88 embeds that renderer. Shared source packages use one React version. |-| React Native Gesture Handler | 3.3.0 | 3.4.0 | Expo 58's native dependency matrix specifies `~3.3.0`. |-| Babel core | 7.29.7 | 8.0.7 | Babel 8 still silently skips React Compiler 1.0 for props with destructuring defaults. `apps/web/src/react-compiler.test.ts` guards this behavior; a comparison against 8.0.7 reproduced it. |-| Node.js | 24.22.0 LTS | 26.12.0 Current | Deployment/runtime contract remains Node 24 LTS. |-| Gradle / Android Gradle Plugin / Kotlin | 9.4.1 / 9.2.1 / 2.2.0 | 9.8.1 / 9.4.1 / 2.4.21 | Owned by the installed Expo/React Native build stack. Upgrade through a supported SDK/template change, then build both platforms. Generated projects are not independently patched. |-| Forme Rust toolchain / Android NDK | 1.95.0 / 28.2.13676358 | 1.99.1 / 30.0.16248370 | Inputs of the published checksum-pinned native archive. Changing them requires rebuilt device/simulator/Android binaries, native PDF parity checks, publication and a reviewed replacement manifest together. Those binaries were not rebuilt or published in this update. |-| Rust `libc` (transitive) | 0.2.190 | 0.2.191 | Changing `Cargo.lock` also invalidates the native archive's source hash. Include with the next native artifact rebuild. |--Expo 58.0.14, React Native 0.88.0, Forme 0.28.0, `harfbuzz-sys` 0.8.0 and all direct Rust library dependencies were already current. Drizzle ORM/Kit remain on the latest normal `rc` tag, `1.0.0-rc.4`; their older npm `latest` tags are not upgrades.--The native HTML editor pins Tiptap 3.27.1. Scoped overrides keep its optional React menus at 3.27.1, fixing their mismatch with its exact core/ProseMirror peers. Web Tiptap remains at 3.32.0.--Cosign CLI is updated to 3.1.3. Explicit legacy signing flags preserve the existing container signature format for Cosign 2 verifiers.--Local verification: frozen install, all workspace typechecks, 1,913 passing tests (76 skipped), production builds, Android/iOS JavaScript exports, Expo dependency validation and Doctor (20/20), peer checks, Knip, lint, formatting, boundaries and Actionlint. No new native build, physical-device check, GitHub CI run or deployment is claimed. Existing database-dependent test skips remain.diff --git a/.agents/docs/issue-tracker.md b/.agents/docs/issue-tracker.mddeleted file mode 100644index 18971ae21..000000000--- a/.agents/docs/issue-tracker.md+++ /dev/null@@ -1,45 +0,0 @@-# Issue tracker: GitHub--Issues and specs for this repo live as GitHub issues. Use the `gh` CLI for all operations.--## Conventions--- **Create an issue**: `gh issue create --title "..." --body "..."`. Use a heredoc for multi-line bodies.-- **Read an issue**: `gh issue view <number> --comments`, filtering comments by `jq` and also fetching labels.-- **List issues**: `gh issue list --state open --json number,title,body,labels,comments --jq '[.[] | {number, title, body, labels: [.labels[].name], comments: [.comments[].body]}]'` with appropriate `--label` and `--state` filters.-- **Comment on an issue**: `gh issue comment <number> --body "..."`-- **Apply / remove labels**: `gh issue edit <number> --add-label "..."` / `--remove-label "..."`-- **Close**: `gh issue close <number> --comment "..."`--Infer the repo from `git remote -v`; `gh` does this automatically when run inside a clone.--## Pull requests as a triage surface--**PRs as a request surface: no.** _(Set to `yes` if this repo treats external PRs as feature requests; `/triage` reads this flag.)_--When set to `yes`, PRs run through the same labels and states as issues, using the `gh pr` equivalents:--- **Read a PR**: `gh pr view <number> --comments` and `gh pr diff <number>` for the diff.-- **List external PRs for triage**: `gh pr list --state open --json number,title,body,labels,author,authorAssociation,comments` then keep only `authorAssociation` of `CONTRIBUTOR`, `FIRST_TIME_CONTRIBUTOR`, or `NONE`.-- **Comment / label / close**: `gh pr comment`, `gh pr edit --add-label`/`--remove-label`, `gh pr close`.--GitHub shares one number space across issues and PRs. Resolve bare `#42` with `gh pr view 42`, then fall back to `gh issue view 42`.--## When a skill says "publish to the issue tracker"--Create a GitHub issue.--## When a skill says "fetch the relevant ticket"--Run `gh issue view <number> --comments`.--## Wayfinding operations--Used by `/wayfinder`. Map is one issue with child issues as tickets.--- **Map**: issue labelled `wayfinder:map`, holding Notes / Decisions-so-far / Fog. Create with `gh issue create --label wayfinder:map`.-- **Child ticket**: issue linked as a GitHub sub-issue. Where sub-issues are unavailable, add it to a task list in map body and put `Part of #<map>` atop child body. Labels: `wayfinder:<type>` (`research`, `prototype`, `grilling`, or `task`). Assign ticket to driving developer once claimed.-- **Blocking**: use GitHub native issue dependencies. Add with `gh api --method POST repos/<owner>/<repo>/issues/<child>/dependencies/blocked_by -F issue_id=<blocker-db-id>`, where database ID comes from `gh api repos/<owner>/<repo>/issues/<n> --jq .id`. Where unavailable, use `Blocked by: #<n>, #<n>` atop child body.-- **Frontier query**: list map’s open children, drop assigned tickets and tickets with open blockers, then select first in map order.-- **Claim**: `gh issue edit <n> --add-assignee @me`.-- **Resolve**: comment with answer, close child, then append context pointer to map’s Decisions-so-far.diff --git a/.agents/docs/mcp-tool-annotations.md b/.agents/docs/mcp-tool-annotations.mddeleted file mode 100644index 8db246a0c..000000000--- a/.agents/docs/mcp-tool-annotations.md+++ /dev/null@@ -1,185 +0,0 @@-# MCP tool annotation review--Audit date: 2026-10-24. This is the reviewer justification for every registered tool, including API aliases and browser handoffs. Annotations describe the tool call itself and every supported input branch, including indirect cleanup and scheduled effects. The server uses the same metadata for SDK registration, `tools/list` and the public server card.--All four hints are explicitly `true` or `false`; none is omitted or `null`. Adding an API tool requires a classification in `PARITY_PROCEDURES`. Regression tests check the complete inventory, these documented values, and SDK/server-card agreement.--## Meaning of each hint--Definitions follow the [MCP ToolAnnotations specification](https://modelcontextprotocol.io/specification/2025-11-25/schema#toolannotations).--- `readOnlyHint`: `true` means the operation reads/returns data without changing account state; `false` covers any supported branch that writes, deletes, cleans up or schedules work. Incidental caching, rate-limit accounting and request logging are not document mutations.-- `destructiveHint`: `true` covers replacement/removal of existing data or state, including reversible updates and Trash. `false` means no mutation or only additive changes. It is explicitly false for read-only tools even though MCP only interprets it for writes.-- `idempotentHint`: `true` means repeated identical calls have no additional environmental effect. It does not promise identical response bytes: live reads and signed URLs can change. `false` avoids promising safe retries for new records, revisions/history, fresh timestamps, notifications, external provider requests or time-dependent cleanup. It remains explicit for read-only tools even though MCP only interprets it for writes.-- `openWorldHint`: `true` means the tool can interact with external AI/search/public pages, public viewers/files, or schedule future external work. `false` means interaction stays within Reactive Resume and its account-owned database/storage/stream infrastructure. Merely returning a URL does not fetch it or execute the later browser workflow. Reading a saved URL or configuring an internal provider reference is not a call to that service.--In the tables, **R**, **D**, **I**, **O** mean `readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`. Each row explains the writes, retry effects and interaction boundary that justify its four values. For closed-world writes with I=false, no general retry guarantee is advertised; updates may touch timestamps, revisions, linked data or notifications, or fail on stale state.--## Behavior evidence--- Primary tools: `packages/mcp/src/tools.ts`, `packages/mcp/src/tool-meta.ts` and the resume, cover-letter and application services/AI handlers in `packages/api/src/features/`.-- API aliases: `packages/mcp/src/parity.ts` (including the export-URL interception), the allowlisted handlers in `packages/api/src/features/`, and `packages/api/src/routers/rest.ts`.-- Important conditional effects: `documents/service.ts` (`list` calls `purgeExpired` for Trash; `copyForJob` can replace the working resume); `ai-providers/service.ts` (`list` can synchronize a managed record; `test` replaces status); `agent/service.ts` and `agent/streams.ts` (send persists/generates, resume only reconnects); `career/service.ts` and `career/jobs.ts` (tracking is deduplicated under a lock; schedules can cause later external work).-- All tools: `packages/mcp/src/annotations.ts` defines complete boolean profiles; `tool-annotations.test.ts` checks inventory and this review table; `parity.test.ts` checks wire discovery against the server card.--## Primary tools--| Tool | R | D | I | O | Behavior justification |-| ----------------------------------- | ----- | ----- | ----- | ----- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `list_resumes` | true | false | true | false | Reads owned resume records without changing them or contacting external services. |-| `list_resume_tags` | true | false | true | false | Reads account resume tags without writes or external calls. |-| `read_resume` | true | false | true | false | Reads owned resume data and metadata without writes or external calls. |-| `download_resume_pdf` | true | false | true | false | Checks ownership and creates a time-limited signed URL without rendering, uploading or changing the resume. A different token on repeat is not an additional environmental effect. |-| `create_resume` | false | false | false | false | Creates a private account resume; repeats can add resumes; no external publication or provider call. |-| `import_resume` | false | false | false | false | Creates a private resume from supplied JSON; repeats add records; no remote import source or AI call. |-| `duplicate_resume` | false | false | false | false | Creates a separate private resume; repeats add copies without replacing the original or publishing them. |-| `apply_resume_patch` | false | true | false | true | Can remove/replace existing resume content and writes edit history; a public resume changes for external viewers; repeats may append items/history or conflict. |-| `update_resume` | false | true | false | true | Replaces resume content/metadata and writes history; can publish or change a public share link. |-| `delete_resume` | false | true | false | true | Moves a resume to Trash, disabling its public share link and updating Trash state. |-| `lock_resume` | false | true | false | false | Replaces the lock state and emits a document update on every call; stays within the account. |-| `unlock_resume` | false | true | false | false | Replaces the lock state and emits a document update on every call; stays within the account. |-| `get_resume_statistics` | true | false | true | false | Reads owned view/download counters without incrementing them or contacting external services. |-| `list_cover_letters` | true | false | true | false | Reads the private letter library without writes or external calls. |-| `read_cover_letter` | true | false | true | false | Reads an owned letter without writes or external calls. |-| `create_cover_letter` | false | false | false | false | Creates an owned letter and optionally fills an empty application link; does not replace an existing letter link; repeats can add letters; no external calls. |-| `update_cover_letter` | false | true | false | false | Replaces owned letter fields/links, increments revision and writes history; stale repeated writes can conflict; no public publication or provider call. |-| `refresh_cover_letter_style` | false | true | false | false | Replaces owned letter styling/source link and increments revision; stale repeats can conflict; no external calls. |-| `duplicate_cover_letter` | false | false | false | false | Creates a separate private letter; repeats add copies without replacing the original. |-| `delete_cover_letter` | false | true | false | false | Moves a private letter to Trash and increments its revision; stale repeats can conflict; no public link or external call. |-| `export_cover_letter` | true | false | true | false | Returns owned letter JSON without saving, publishing or contacting another service. |-| `import_cover_letter` | false | false | false | false | Creates a private letter from supplied JSON; repeats add letters; no remote source or provider call. |-| `list_applications` | true | false | true | false | Reads account applications without writes, employer contact or external requests. |-| `read_application` | true | false | true | false | Reads an owned application without writes or external requests. |-| `list_application_tags` | true | false | true | false | Reads account application tags without writes or external requests. |-| `get_application_stats` | true | false | true | false | Reads account application totals without writes or external requests. |-| `create_application` | false | false | false | false | Creates an account application/timeline entry; repeats add applications; does not submit to an employer. |-| `update_application` | false | true | false | false | Replaces owned application fields and can append timeline/history or delete replaced owned attachments; no employer contact or public publication. |-| `add_application_note` | false | false | false | false | Appends an account timeline note; repeats add notes; no external calls. |-| `add_application_interview` | false | false | false | false | Appends an account interview entry; repeats add interviews; does not send calendar invitations. |-| `update_application_interview` | false | true | false | false | Replaces owned interview fields and may adjust internal preparation schedules; no invitations or external calls. |-| `update_application_timeline_entry` | false | true | false | false | Replaces an account timeline entry; no employer contact or external calls. |-| `delete_application_timeline_entry` | false | true | false | false | Deletes an account timeline entry and associated internal coaching/schedule data where applicable. |-| `delete_application` | false | true | false | false | Deletes an owned application and associated private account data/files; does not contact employers or remove a public resume. |-| `bulk_update_applications` | false | true | false | false | Replaces fields across owned applications and can append activity or remove replaced private attachments; no employer contact. |-| `bulk_delete_applications` | false | true | false | false | Deletes owned applications and associated private account data/files; does not contact employers or delete public resumes. |-| `import_applications` | false | false | false | false | Adds applications from supplied records; repeats add records; no remote source or employer submission. |-| `attach_application_document` | false | true | false | false | Replaces a private PDF attachment and deletes its unreferenced owned file; repeats can upload another file; does not send documents to employers. |-| `remove_application_document` | false | true | false | false | Clears a private attachment and deletes its unreferenced owned file; does not affect publicly shared resumes or call employers. |-| `autofill_application_from_job` | false | true | false | true | Calls configured AI with supplied posting text; returns fields without saving an application; repeats issue new requests. Server-managed AI can upsert/replace the account provider record, so this is conservatively classified as a destructive write even without saving generated document content. |-| `score_application_match` | false | true | false | true | Sends resume/posting context to configured AI and replaces saved match score/metadata; repeats call AI again. |-| `tailor_resume_for_application` | false | true | false | true | Calls configured AI, creates a resume and replaces the application’s linked resume with timeline activity; repeats create more work. |-| `draft_application_message` | false | false | false | true | Calls configured AI; cover-letter mode creates a private letter, follow-up mode returns text only; repeats can create letters; sends nothing to an employer. |--## API tools--| Tool | R | D | I | O | Behavior justification |-| --------------------------------------- | ----- | ----- | ----- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `api_resume_list_versions` | true | false | true | false | Reads owned resume history without writes or external calls. |-| `api_resume_get_version` | true | false | true | false | Reads an owned resume snapshot without writes or external calls. |-| `api_resume_create_version` | false | false | false | false | Adds a named snapshot; repeated calls can add snapshots within the account. |-| `api_resume_rename_version` | false | true | false | false | Replaces an existing snapshot name within the account. |-| `api_resume_delete_version` | false | true | false | false | Deletes a named snapshot from account history. |-| `api_resume_restore_version` | false | true | false | true | Replaces resume data and adds restore history; public viewers can see changed content; repeats can add history. |-| `api_resume_remove_password` | false | true | false | true | Removes protection and emits a document update; public viewers gain access without a password. |-| `api_resume_get_by_slug` | false | false | false | true | Reads a public resume, possibly another account’s, and can increment view statistics; later visits can count again. |-| `api_resume_check_slug` | true | false | true | false | Checks account slug availability without reserving it or changing data. |-| `api_resume_update` | false | true | false | true | Replaces resume fields/content and adds history; can publish or change a public resume. |-| `api_resume_statistics_get_daily_by_id` | true | false | true | false | Reads owned daily statistics without writes or external calls. |-| `api_resume_statistics_record_download` | false | false | false | false | Records internal download statistics; repeats outside the deduplication window can increment again. |-| `api_cover_letters_list_versions` | true | false | true | false | Reads owned letter history without writes or external calls. |-| `api_cover_letters_get_version` | true | false | true | false | Reads an owned letter snapshot without writes or external calls. |-| `api_cover_letters_create_version` | false | false | false | false | Adds a letter snapshot; repeated calls can add snapshots within the account. |-| `api_cover_letters_rename_version` | false | true | false | false | Replaces an existing letter snapshot name within the account. |-| `api_cover_letters_delete_version` | false | true | false | false | Deletes an owned named letter snapshot from account history. |-| `api_cover_letters_restore_version` | false | true | false | false | Replaces letter content and saves restore points in the account; repeats can add history. |-| `api_cover_letters_draft` | false | true | false | true | Calls configured AI with letter/resume/posting context; saves no draft; repeats issue new provider requests. Server-managed AI can upsert/replace the account provider record, so this is conservatively classified as a destructive write even without saving generated document content. |-| `api_documents_list` | false | true | false | false | Listing Trash can permanently purge expired documents and owned files; time passing can make more documents eligible. |-| `api_documents_counts` | true | false | true | false | Counts account documents and Trash without purging or modifying them. |-| `api_documents_rename` | false | true | false | false | Replaces an owned document name and updates its metadata. |-| `api_documents_set_tags` | false | true | false | false | Replaces an owned document’s complete tag list and updates its metadata. |-| `api_documents_set_locked` | false | true | false | false | Replaces document lock state; resume calls emit update notifications on each call. |-| `api_documents_link_application` | false | true | false | false | Replaces or clears account document/application links and can replace an application’s working document. |-| `api_documents_trash` | false | true | false | true | Writes a new Trash timestamp, hides the document and disables a resume’s public link. |-| `api_documents_restore` | false | true | false | true | Replaces Trash state and updates metadata; restoring a public resume makes its link accessible again. |-| `api_documents_purge` | false | true | false | false | Permanently deletes a trashed document and associated account data/files. |-| `api_documents_purge_expired` | false | true | false | false | Permanently deletes expired Trash and associated owned data/files; eligibility changes with time. |-| `api_documents_copy_for_job` | false | true | false | false | Creates a resume copy and can replace an application’s working resume link; repeats create more copies within the account. |-| `api_applications_ai_search_postings` | false | true | false | true | Queries external search services for public jobs without saving applications; repeats issue new requests. Can initialize/replace saved career search-region preferences from the device timezone. |-| `api_applications_lanes_get` | false | false | true | false | Reads owned stage metadata and may idempotently seed missing default stages; no application transition or external request. |-| `api_applications_lanes_create` | false | false | false | false | Adds owned stage metadata using an expected settings revision; repeats with stale revision conflict. |-| `api_applications_lanes_update` | false | true | false | false | Replaces an owned stage label/color using an expected revision; leaves category and historical semantics intact. |-| `api_applications_lanes_reorder` | false | true | false | false | Replaces active stage display order using an expected revision; does not change application workflow milestones. |-| `api_applications_lanes_retire` | false | true | false | false | Retires custom metadata and moves applications to an explicit compatible replacement; preserves historical stage identities and submitted documents. |-| `api_applications_prior_no_response` | true | false | true | false | Reads at most ten owned prior no-response applications at a conservatively matched company; no external request or submission. |-| `api_applications_ai_parse_posting` | false | true | false | true | Can fetch a public posting and call configured AI; returns fields without saving applications; repeats issue new requests. Server-managed AI can upsert/replace the account provider record, so this is conservatively classified as a destructive write even without saving generated document content. |-| `api_ai_parse_pdf` | false | true | false | true | Sends PDF content to configured AI; returns data without saving a resume; repeats issue new requests. Server-managed AI can upsert/replace the account provider record, so this is conservatively classified as a destructive write even without saving generated document content. |-| `api_ai_parse_docx` | false | true | false | true | Sends Word content to configured AI; returns data without saving a resume; repeats issue new requests. Server-managed AI can upsert/replace the account provider record, so this is conservatively classified as a destructive write even without saving generated document content. |-| `api_ai_ats_review` | false | true | false | true | Sends resume text/posting to configured AI; returns feedback without saving edits; repeats issue new requests. Server-managed AI can upsert/replace the account provider record, so this is conservatively classified as a destructive write even without saving generated document content. |-| `api_ai_improve` | false | true | false | true | Sends supplied text to configured AI; returns a suggestion without saving edits; repeats issue new requests. Server-managed AI can upsert/replace the account provider record, so this is conservatively classified as a destructive write even without saving generated document content. |-| `api_ai_providers_list` | false | true | false | false | Lists redacted settings and can upsert/replace a server-managed provider record; no external provider call. |-| `api_ai_providers_delete` | false | true | false | false | Deletes account provider configuration and may affect linked assistant records; does not contact the provider. |-| `api_ai_providers_test` | false | true | false | true | Calls configured AI and overwrites enabled/test status with a fresh timestamp; repeats run another test. |-| `api_ai_providers_set_default` | false | true | false | false | Replaces account provider defaults and updates existing records without contacting the provider. |-| `api_web_access_status` | true | false | true | false | Reads configured web availability without probing external search or pages. |-| `api_web_access_delete` | false | true | false | false | Deletes the account’s saved web connection without contacting the external service. |-| `api_web_access_test` | false | true | false | true | Probes external search/reading services without saving documents; repeats issue new requests. Can initialize/replace saved career search-region preferences from the device timezone. |-| `api_agent_threads_list` | true | false | true | false | Reads account conversation summaries without model calls or writes. |-| `api_agent_threads_start` | false | true | false | false | Creates an account conversation/provider reference without generating a reply; repeats can add conversations. Server-managed AI can upsert/replace the account provider record, so this is conservatively classified as a destructive write even without saving generated document content. |-| `api_agent_threads_get` | false | true | false | false | Reads conversation data but can reap a stale run, clearing its claim and settling persisted message state; time-dependent cleanup stays within the account and calls no AI provider. |-| `api_agent_threads_update` | false | true | false | false | Replaces owned conversation settings/title without a model call. |-| `api_agent_threads_delete` | false | true | false | false | Deletes an owned conversation and associated data/files without a model call. |-| `api_agent_messages_send` | false | true | false | true | Persists messages/run state and can update career memory or existing messages; sends selected context to AI and may search public pages; repeats can generate more work. |-| `api_agent_messages_stop` | false | true | false | false | Cancels a run and can persist partial content or reap stale state within the account; starts no model call. |-| `api_agent_messages_resume` | true | false | true | false | Reconnects to an existing server-side stream; does not restart generation or call a provider. |-| `api_agent_messages_set_edit_status` | false | true | false | false | Replaces edit statuses and conversation acceptance counts within the account; does not apply document edits or call AI. |-| `api_agent_attachments_create` | false | false | false | false | Creates a private attachment record/file; sends nothing to AI until a later message; repeats can add attachments. |-| `api_agent_attachments_delete` | false | true | false | false | Deletes a private account attachment/file without a provider call or publication. |-| `api_career_profile` | true | false | true | false | Reads account career preferences without writes or external calls. |-| `api_career_save_profile` | false | true | false | false | Replaces account career preferences and updates their timestamp; runs no coaching/search. |-| `api_career_facts` | true | false | true | false | Reads owned facts and usage metadata without writes or external calls. |-| `api_career_save_fact` | false | false | false | false | Adds an evidence-backed account fact with source deduplication; no general retry guarantee is advertised. |-| `api_career_update_fact` | false | true | false | false | Replaces fact fields, can append correction history and invalidates dependent account work. |-| `api_career_forget_fact` | false | true | false | false | Erases fact text, quotation/history and unlinks dependent account data. |-| `api_career_stories` | true | false | true | false | Reads owned stories and supporting facts without writes or external calls. |-| `api_career_save_story` | false | true | false | false | Creates or replaces an owned story; repeats without an id can add stories. |-| `api_career_delete_story` | false | true | false | false | Deletes an owned story while keeping supporting facts; no external calls. |-| `api_career_saved_items` | true | false | true | false | Reads saved account coaching work without regenerating it or calling AI. |-| `api_career_delete_saved_item` | false | true | false | false | Deletes owned saved coaching work without external calls. |-| `api_career_apply_reply` | false | true | false | false | Applies saved suggestions to application fields or offer records and can add history; sends no employer message. |-| `api_career_workspace` | true | false | true | false | Reads an owned application workspace without writes or external calls. |-| `api_career_save_workspace` | false | true | false | false | Replaces workspace keys with concurrency checks within the account; stale repeats can conflict. |-| `api_career_schedules` | true | false | true | false | Reads account schedules without running jobs or sending notifications. |-| `api_career_save_schedule` | false | true | false | true | Creates/replaces a schedule; enabled jobs can later call AI/search and send owner email; repeats without an id can add schedules. |-| `api_career_delete_schedule` | false | true | false | false | Deletes an owned schedule and prevents future runs; performs no research or email sending. |-| `api_career_opportunities` | true | false | true | false | Reads already-discovered account opportunities without new external searches. |-| `api_career_dismiss_opportunity` | false | true | false | false | Updates dismissal state of an owned opportunity without external calls. |-| `api_career_track_opportunity` | false | false | true | false | Creates one account application under a row lock; repeats return the same application id without another creation; no external calls. |-| `api_career_notifications` | true | false | true | false | Reads account notifications without sending them or marking them read. |-| `api_career_mark_notification_read` | false | true | false | false | Replaces a notification’s read timestamp on each call within the account; sends nothing. |-| `api_auth_providers_list` | true | false | true | false | Reads configured sign-in provider availability without authenticating with external providers. |-| `api_auth_export_data` | true | false | true | false | Returns account export data without changing it or sending it to another service. |-| `api_flags_get` | true | false | true | false | Reads server feature flags without writes or external calls. |-| `api_statistics_get_totals` | true | false | true | false | Reads aggregate Reactive Resume statistics without writes or external calls. |-| `api_statistics_github_get_star_count` | true | false | false | true | Reads public repository star count from GitHub with caching; may issue new external requests; changes no user data. |-| `api_storage_delete_file` | false | true | false | true | Deletes an owned stored file, possibly a public profile picture, removing access through its URL. |-| `api_rest_document_exports_resume` | true | false | true | false | Checks ownership and returns an authenticated download URL only; does not render, upload, record downloads or fetch external assets during this tool call. |-| `api_rest_document_exports_letter` | true | false | true | false | Checks ownership and returns an authenticated download URL only; does not render, upload or fetch external assets during this tool call. |-| `api_rest_check_resume` | true | false | true | false | Runs deterministic checks on an owned resume without saving edits, AI or external search. |-| `api_rest_check_pdf` | true | false | true | false | Extracts/analyzes supplied PDF locally without saving it, AI or external services. |-| `api_rest_match_resume` | true | false | true | false | Matches supplied posting terms to an owned resume locally without saving edits, AI or external search. |-| `api_rest_import_resume_file` | false | false | false | false | Parses supplied file locally and creates a private resume; repeats add resumes; no AI or remote import source. |-| `api_rest_file_upload` | false | false | false | true | Stores a new owned file; images become public profile pictures, other files stay private; repeats can add files. |--## Browser handoffs--| Tool | R | D | I | O | Behavior justification |-| ---------------------------- | ---- | ----- | ---- | ----- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `api_ai_providers_create` | true | false | true | false | Returns an app settings URL for adding a provider; stores no credentials or configuration. Repeating only returns a URL; no external request is made. |-| `api_ai_providers_update` | true | false | true | false | Returns an app settings URL for editing a provider; stores no credentials or configuration. Repeating only returns a URL; no external request is made. |-| `api_web_access_save` | true | false | true | false | Returns an app settings URL for web setup; saves no web connection. Repeating only returns a URL; no external request is made. |-| `api_resume_get_root` | true | false | true | false | Returns a dashboard URL; does not create or modify the root resume. Repeating only returns a URL; no external request is made. |-| `api_auth_create_api_key` | true | false | true | false | Returns an API-key settings URL; creates no API key. Repeating only returns a URL; no external request is made. |-| `api_auth_delete_account` | true | false | true | false | Returns an account settings URL; deletes no account or data. Repeating only returns a URL; no external request is made. |-| `api_resume_set_password` | true | false | true | false | Returns an editor URL; sets no password and changes no sharing state. Repeating only returns a URL; no external request is made. |-| `api_resume_verify_password` | true | false | true | false | Returns a public resume URL; verifies no password and grants no access. Repeating only returns a URL; no external request is made. |-| `open_account_settings` | true | false | true | false | Returns the selected account settings URL only; authentication/security actions require later browser interaction. Repeating only returns a URL; no external request is made. |diff --git a/.agents/docs/microsoft-store-handoff.md b/.agents/docs/microsoft-store-handoff.mddeleted file mode 100644index acb8d0974..000000000--- a/.agents/docs/microsoft-store-handoff.md+++ /dev/null@@ -1,53 +0,0 @@-# Microsoft Store handoff--Last updated: **2026-10-20**. Not submitted yet.--The Microsoft Store app is the web app at `https://rxresu.me`, wrapped by [PWABuilder](https://www.pwabuilder.com/) into an MSIX package. Windows runs it in Edge's app host, so every web deploy updates it without a new Store submission.--The PWA is manifest-only by decision (May 2026): no service worker and no offline support. PWABuilder lists the missing service worker as a warning, not a blocker. The Store listing must not claim offline use.--## Before packaging--- [ ] Deploy the current web build. PWABuilder reads the live manifest, and the live manifest still declares `favicon.ico`, PWABuilder's only blocking item.-- [ ] Re-run the [report card](https://www.pwabuilder.com/reportcard?site=https://rxresu.me) and confirm **Package For Stores** is enabled.--## One-time Partner Center setup--1. Sign in to [Partner Center](https://partner.microsoft.com/dashboard/home) with a **personal** Microsoft account. Registration is free for individual developers.-2. **Apps and games → New product → MSIX or PWA app**. Reserve **Reactive Resume**.-3. **Product management → Product identity**: copy **Package ID**, **Publisher ID** and **Publisher display name**.--## Package--1. On the report card, select **Package For Stores → Windows → Generate Package**.-2. Paste the three Product identity values. Keep the other defaults.-3. Download the ZIP. It contains an `.msixbundle` (Windows 10 and 11) and a `.classic.appxbundle` (older Windows 10). Upload both.--Before submitting, install the test package on Windows. Check sign-in with email, Apple and GitHub. OAuth pages are on other origins, so they show an address bar inside the app; that is expected. Also check resume import, PDF and DOCX downloads, and the taskbar jump list (Documents, Applications, Career from manifest `shortcuts`).--## Submission--| Field | Value |-| ------------------- | ----------------------------------------------------------------------------------------------------------- |-| Pricing | Free, all markets |-| Category | Productivity |-| Age rating | IARC questionnaire; answer as for Google Play (user-generated public resumes, optional AI features) |-| Privacy policy | `https://docs.rxresu.me/legal/privacy-policy` |-| Support / website | `https://docs.rxresu.me` / `https://rxresu.me` |-| Description | Reuse `apps/mobile/store/metadata.json` (English and ten translations) |-| Screenshots | PNG, 1366 × 768 or larger. Convert `apps/web/public/screenshots/web/*.webp` (1920 × 1080) to PNG |-| Certification notes | The app needs sign-in. Give the reviewer account from the mobile handoff in Partner Center only, never here |--Review usually takes 24–48 hours.--## Updates--- Web code, styling and copy changes reach Store users on their next launch. No resubmission is needed.-- Manifest changes need a new package and submission: name, icons, colors, `start_url`, `shortcuts`, or new members such as `share_target` or `file_handlers`. The package copies the manifest at build time.-- Keep manifest `id` at `/?source=pwa`. Changing it makes browsers treat the app as a different app.-- Store installs send `Referer: app-info://platform/microsoft-store` on the first navigation, which can separate Store traffic in analytics.--## Later manifest additions--- `related_applications` (Play `me.rxresu`, App Store `6823975835`) with `prefer_related_applications: false`, once the native apps are public.-- `share_target` (receive a job posting URL) or `file_handlers` (open resume files). Both need app code and the matching native-app feature.diff --git a/.agents/docs/mobile-ci.md b/.agents/docs/mobile-ci.mddeleted file mode 100644index 0050781a3..000000000--- a/.agents/docs/mobile-ci.md+++ /dev/null@@ -1,198 +0,0 @@-# Native releases on Blacksmith--The **Mobile release** GitHub Actions workflow builds Android on Blacksmith Linux and-iOS on Blacksmith Apple Silicon macOS. Expo Prebuild generates native projects; Gradle-and Xcode compile them; Fastlane signs and optionally uploads them. It does not call-EAS Build or EAS Submit. EAS Update still delivers compatible OTA updates through the-existing Docker release workflow.--Setup verified on **2026-10-21**: all eleven signing/upload secrets were copied from-existing EAS credentials into repository Actions secrets; the existing `EXPO_TOKEN`-was retained. The initial `MOBILE_BUILD_NUMBER_BASE` was **100**. Live store counters were iOS **6**-and Android **8**; workflow run 1, attempt 1 will allocate **100**. Environment-`mobile-store` requires approval from `amruthpillai`, allows self-review, disallows admin-bypass, and accepts only branch `main`. The workflow is manually dispatched after its-changes reach `main`; no Blacksmith app build or store upload was run during setup.--## One-time migration--Enable Blacksmith for this repository and confirm your plan covers macOS runners.-The workflows use `blacksmith-12vcpu-macos-latest` for iOS and Forme native prebuilds,-and `blacksmith-32vcpu-ubuntu-2404` for all their Linux jobs. Android builds cross-compile-device ABIs on the x64 Linux host; an ARM runner is not required. The latest macOS image-and its default Xcode can change; each iOS artifact records the Xcode version. Check-Apple's current minimum SDK requirements before uploading. Ruby, Fastlane and CocoaPods-dependencies are locked under `tooling/mobile`.--Download the **existing** Android upload keystore and iOS distribution certificate-(including its private key) and App Store provisioning profile using `eas credentials`-from `apps/mobile`. Do not generate replacement signing identities for this migration.-If using that CLI for iOS, set `EXPO_NO_CAPABILITY_SYNC=1`: Apple capabilities remain-managed manually. Native Apple sign-in uses the web Services ID `me.rxresu.web`;-neither this workflow nor Fastlane changes capabilities in Apple's portal.--Save these as **repository Actions secrets**, using GitHub's settings or a secure local-file as input to `gh secret set`. Never paste credentials into chat, source, logs or-workflow artifacts. Base64 is encoding, not encryption.--- `EXPO_TOKEN`: existing token, retained for production environment variables and OTA tooling.-- `ANDROID_KEYSTORE_BASE64`: base64 of the existing Android upload `.jks`.-- `ANDROID_KEYSTORE_PASSWORD`, `ANDROID_KEY_ALIAS`, `ANDROID_KEY_PASSWORD`:- existing upload-keystore values.-- `IOS_DISTRIBUTION_P12_BASE64`: base64 of an Apple Distribution `.p12` containing- the certificate and private key.-- `IOS_DISTRIBUTION_P12_PASSWORD`: password for that `.p12`.-- `IOS_PROVISION_PROFILE_BASE64`: base64 of the App Store profile for `me.rxresu`,- team `654ASRW868`, covering the current app entitlements and certificate.-- `GOOGLE_PLAY_SERVICE_ACCOUNT_JSON`: raw service-account JSON with release-to-production- permission for this app. Required only for Android uploads.-- `ASC_KEY_ID`, `ASC_ISSUER_ID`, `ASC_PRIVATE_KEY`: App Store Connect team API key ID,- issuer UUID, and raw `.p8` private key with App Manager or Admin access.- Required only for iOS uploads and App Review submission.--Play App Signing retains its existing app-signing certificate. Do not replace-`MOBILE_ANDROID_CERT_SHA256` with the upload-keystore fingerprint. Keep bundle/package-ID `me.rxresu`, Apple team, keychain groups, and associated domains unchanged.--Set repository Actions variable `MOBILE_BUILD_NUMBER_BASE` so the next workflow run-allocates a number **greater than every build number/version code already allocated-in EAS or uploaded to either store**. For next run number N and desired build B,-set the base to `B - (N - 1)`. Read current counters; do not use the historical 4/5-values in the handoff as live data.-The workflow allocates both platforms' versions as:--```text-MOBILE_BUILD_NUMBER_BASE + (GITHUB_RUN_NUMBER - 1)-```--Each new workflow run, including a manual APK request, increments by one. Retries reuse the same build number;-if an upload already used that number, dispatch a fresh run instead of rebuilding-and uploading it again. The October 21 migration from the old 100-number stride-uses base **298**: run 3 already allocated 300, so run 4 allocates 301, then run 5-allocates 302. Change the base only while no release is running, and never reset-the workflow counter. Missing/invalid configuration and Android's 2,100,000,000-limit fail before compilation. Rerunning an older run after a newer upload can-produce an older version; dispatch a fresh run instead. Stop EAS store builds after migration so two-systems do not allocate competing versions. `eas.json` remains legacy configuration;-its remote counters and auto-increment do not govern this workflow.--Create separate GitHub environments **`mobile-signing`** and **`mobile-store`**.-Restrict both to branch `main`, require approval from `amruthpillai`, allow self-review,-and disallow admin bypass. The signing environment gates every job that reads signing-credentials; the store environment separately gates jobs that read upload credentials.-The preparation job validates inputs and allocates versions without any secrets.-Merely naming an environment does not configure these protection rules.--## Build and upload--1. Deploy backward-compatible backend changes first. Complete device QA and store- declarations before enabling uploads. Prepare listing/reviewer details and release- notes in the consoles; the workflow retains existing listings and screenshots.- Update app `version` in- `apps/mobile/app.config.ts` when needed; iOS requires a new version string after a- version has been released. CI supplies the build number automatically.-2. Dispatch **Mobile release** on `main`, choose `all`, `android`, or `ios`, set- **format=store**, and enable **upload** for production submission. Leave **upload**- disabled for a build-only signing check. Production requests require successful- latest main-push CI at the exact source commit before uploading. Approve the- `mobile-signing` gate. The workflow validates signing credentials after approval,- runs mobile source checks, fetches checksum-pinned Forme binaries, loads the EAS- `production` environment, and generates fresh native projects.-3. Inspect the signed artifacts, embedded production update channel, signing identities,- versions, entitlements and native runtime. Store binaries are retained for 90 days.- A separate `-evidence` artifact retains `release.json`, `fingerprint.json`, available- JavaScript source maps, iOS dSYMs, Android obfuscation mappings and native debug- symbols for 90 days. Mapping/symbol files are included when produced by the- toolchain; the Android build lane enables R8 and resource shrinking, while the- workflow preserves the resulting mappings and available native symbols.- Raw build logs are not uploaded because toolchains can include environment values.- Actions retention is capped at 90 days for this public repository and deleting a run- still deletes its artifacts: export evidence to your permanent release records- before expiry. This is longer retention, not permanent off-site storage.-4. If **upload** is enabled, approve `mobile-store` after inspecting artifacts from this- run. Upload jobs start only after every selected platform built successfully and- submit those exact signed artifacts. Android uploads directly to **production**- with a completed, full rollout and sends changes for review; it fails rather than- silently falling back to changes requiring manual review submission. iOS creates- or updates the IPA's app version, waits for that exact build to finish processing,- submits it for **App Review**, and sets **automatic release after approval**.- No Play testing tracks or TestFlight groups are used.-5. Check each store's processing/review status and verify the published versions.- Workflow success means submission, not store approval or public availability.- Google Managed Publishing, if enabled, still requires publishing approved changes- in Play Console; disable it there if automatic publication after review is desired.- Incomplete listing/reviewer details, declarations, release notes, pending reviews,- agreements, or insufficient API permissions can block submission. Follow the- [release handoff](./mobile-release-handoff.md#signed-device-test-matrix).--CI creates temporary signing files with restrictive permissions, imports the Apple-certificate into a temporary keychain, and removes the profile, keychain and temporary-files after the build. It never invokes capability synchronization or provisions new-Apple resources. Renew certificates/profiles before expiry and update Actions secrets.--## Android Play Console optimization warnings--The Android build lane in `tooling/mobile/fastlane/Fastfile` passes-`android.enableMinifyInReleaseBuilds=true` and-`android.enableShrinkResourcesInReleaseBuilds=true` to Gradle after Expo Prebuild. Both store-AABs and manual release APKs use these settings. Resource shrinking requires R8;-do not disable minification independently. Verify a release build, then test photo-selection/cropping, navigation, notifications, and PDF previews before submitting a-new binary. This cannot ship through OTA. These build-only optimization flags do-not change the app's native interfaces or shared Expo configuration/fingerprints;-no iOS rebuild is needed for this Android fix.--The 1.0.0 Play Console recommendations also report deprecated window APIs and manual-network bitmap decoding in bundled libraries. Current `expo-image-picker` 58.0.10-uses `WindowCompat.enableEdgeToEdge` and window insets in `ExpoCropImageActivity`.-React Native 0.88.0 still contains deprecated status/navigation color setters and-legacy cutout modes in `WindowUtil.kt`. App screens do not set those colors or modes;-keep safe-area handling and cropping intact rather than removing framework-compatibility code to silence a static warning.--App image views already use `expo-image` (Glide on Android). Manual download paths-remain in dependencies, including `expo-notifications`'s notification image helper-and `react-native-enriched-html`'s inline-image drawable. The PDF renderer separately-needs original image bytes; its download enforces a byte limit and timeout. Do not-replace that with a downsampled display image. Match Play's obfuscated class names-against the **same release's** archived `mapping.txt` before attributing each report;-current source alone cannot identify them. Recheck remaining recommendations after-uploading the new AAB; configuration/source checks do not prove Play cleared them.--## Manual Android APKs--Dispatch **Mobile release** on `main` with `platform=android`, `format=apk`,-`abi=arm64-v8a` (or `armeabi-v7a` / `x86_64`), and `upload=false`. One requested-architecture is built per dispatch. Approve `mobile-signing`, then download the-`mobile-android-<build-number>` Actions artifact within 14 days. The build uses the-preview EAS environment and preview update channel, verifies its APK signature,-checks that it contains only the requested native ABI and includes Forme, and never-uploads to either store or creates a GitHub Release/tag. APK uploads and iOS/all-platform selections are rejected before credentials are accessed.--## OTA compatibility and observability--The update URL, EAS project and fingerprint policy remain unchanged. The production-channel is explicitly embedded through `updates.requestHeaders`; manual APK builds-select `preview` with `MOBILE_UPDATE_CHANNEL`. Setting a channel in-`eas.json` alone does not configure a build produced outside EAS Build. Build numbers-are excluded from Expo's normalized config fingerprint. Native project output and-generated Forme binaries remain excluded through `fingerprint.config.js`; reviewed-native sources and binary pins still determine compatibility.--After the first store-installed Blacksmith build, publish a matching OTA update through-the normal Docker release path, download it, restart the app and verify saved drafts on-both platforms. A native change requires a new store binary. Existing binaries keep-receiving updates for their compatible runtime; never force a runtime match.--EAS Observe instrumentation remains bundled. However, Expo currently supports native-embedded-bundle source-map uploads only for builds on EAS Build servers, so the new-embedded bundles do not have that managed symbolication/build-dashboard linkage.-Keep the generated maps/symbols for debugging. The Docker workflow still uses-`eas update --upload-source-maps`, preserving source-map uploads for OTA bundles.-No new monitoring service is introduced.--References: [Expo local production builds](https://docs.expo.dev/guides/local-app-production/),-[standalone EAS Update](https://docs.expo.dev/eas-update/standalone-service/),-[Observe error reporting](https://docs.expo.dev/eas/observe/errors/),-[Blacksmith runner images](https://docs.blacksmith.sh/blacksmith-runners/overview).diff --git a/.agents/docs/mobile-foldable-ui-audit-2026-10-28.md b/.agents/docs/mobile-foldable-ui-audit-2026-10-28.mddeleted file mode 100644index 78cc32580..000000000--- a/.agents/docs/mobile-foldable-ui-audit-2026-10-28.md+++ /dev/null@@ -1,98 +0,0 @@-# Native UI audit — 28 October 2026--Tested and repaired the React Native app on T3 Code's Pixel 10 Pro Fold emulator in folded and unfolded postures, with supplementary iPhone testing. The tablet editor now has compact mode pills, space between the title, modes and Download, and a separate centred mode row when enlarged text needs it. Concrete defects found in the exercised workflows were fixed and retested. This is simulator and local-source evidence, not a claim that every device, integration or rendering combination is perfect.--## Environment and evidence--| Target | Coverage |-| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |-| Pixel 10 Pro Fold, Android 17 | Folded 1080 × 2364 px, approximately 443 dp wide; unfolded 2076 × 2152 px, approximately 852 dp wide; density 2.4375 |-| Postures | Closed/open transitions during editing and sheets; half-open and landscape inspected during the audit |-| Android typography/appearance | Font scales 1.0, 1.35 and 2.0; light/dark; selected German, Portuguese and Polish layouts |-| iPhone 18 Pro, iOS 27 | 402 pt viewport; real software keyboard; default and accessibility text, including scale 3.12 |-| App | Development native builds running the current local Metro source; production Hermes bundles exported separately for Android and iOS |-| Backend/data | Local backend on port 18400, disposable database `rr_fold_ui_20261028`, fictional documents and career/application data |--Screenshots, measured node trees, assertions, exports and check logs are in `/tmp/rr-fold-ui-20261028/`. `ledger.json` indexes results. These local artifacts are outside Git and are temporary. `01-folded-sign-in.png` shows the browser login page, not the native sign-in landing; native landing evidence is in 41/42 and the iOS captures.--Nine focused design reviews used Claude Opus 5.5 with Extra High effort through T3 Code Orchestrator V2. Reviews covered onboarding, editor/navigation, applications and responsive layouts, keyboard behavior, and final alignment. The ninth review confirmed the requested header spacing and toolbar alignment, and identified the final letter-card, Share inset and row accessibility refinements. The subsequent iPhone accessibility-text check caught and verified the company/stage wrapping refinement.--## Repairs--- **Authentication:** bounded the server form and footer to the existing panel width, made the sticky footer opaque, removed extra keyboard spacing, stacked footer actions at large text, and retained the configured host when changing servers.-- **Editor chrome:** removed Android's duplicate top inset in nested tablet headers; gave Saving/Saved a stable glyph box; removed the preview's extra bottom inset while the keyboard is visible.-- **Tablet/phablet header:** mode pills use their intrinsic width, with horizontal breathing room and a centred second row at large text. Download aligns vertically with Assistant and the title/status block. Phone navigation retains its compact layout.-- **Rich text:** put borders and focus rings on native wrapper views for resume, letter and note inputs; pinned Improve and enabled it on first focus of a nonempty line; kept Underline and Strikethrough available through Text style. Focused tools clear the gesture area with the software keyboard hidden, and align with the preview zoom bar.-- **Keyboard/scrolling:** shared `KeyboardFrame` and `useKeyboardScrollSpace` prevent duplicate keyboard padding inside resized viewports while preserving focus scrolling. Letter body focus scrolls into view. Actual animated keyboard height now drives visibility, fixing missing bottom navigation after Android text-size changes recreate the activity with stale keyboard-event caches.-- **Responsive content:** bounded application detail and Knowledge content; retained the full-width Facts list viewport for refresh gestures; grouped application Stage controls and omitted an empty What you sent card. The linked-application card in the letter editor reflows role, company, stage and Change at accessibility sizes.-- **Navigation/accessibility:** improved long/localized bottom-navigation labels, stacked appearance choices at large text, preserved library search across remounts, removed a forced grid remount, and removed duplicate calendar weekday announcements. Passive rows use a View so native switches remain reachable; informational rows retain grouped announcements. Full screen-reader traversal remains unverified.-- **Sharing/exports:** replaced an unregistered Share icon that crashed the screen, grouped Public link consistently with other settings, and encoded letter-export localization parameters using bracketed query keys, fixing non-PDF export requests that returned 400.-- **Application history:** metadata and bulk tag edits no longer mark newly linked draft documents as submitted. Explicit stage/link actions still record submission snapshots. This shared API fix benefits both web and native consumers.--No native dependencies, native source, permissions or app configuration were changed. No release, OTA publication, store submission, commit or push was performed.--## Executed workflows--“Passed” below describes the stated checks, not exhaustive coverage of the whole feature.--| Area | Result and evidence |-| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| Authentication | Native browser sign-in, cancellation, retry, consent and local token return passed. Invalid/mismatched issuers were rejected. Final native server footer checked with keyboards/default and large text on Android/iOS (66–69). |-| Resume editing | Created a resume; edited basics, summary formatting, experience dates/present state, template, accent and font; confirmed persistence through API assertions and cold restart. Native selected-word underline/strikethrough persisted as HTML (`selected-format.json`). |-| Fold continuity | Drafts and current routes retained across closed/open changes in basics, summary, private notes, application/interview forms, letter body and workspace answer. Password sheet retained both masked fields and focus. Letter application selection sheet retained its selected application through a fold. |-| Offline recovery | Stopped the owned backend, edited and folded, cold-restarted before recovery, observed the local draft, resumed backend and verified retry synchronization (`offline-regression.json`, 43/44). This tests backend outage, not OS airplane mode. |-| Save feedback | Measured identical title and status origins in Saving/Saved states; only status text width changed (45/46 and `offline-regression.json`). |-| History | Saved named checkpoints, selected preview, restored a checkpoint and compared the complete ResumeData object (`history-restore-result.json`). |-| Applications | Created fictional applications, moved stage, linked resume/letter, checked submitted snapshots, edited notes, and saved a note draft after folding. An application without linked documents shows preparation actions without an empty sent card (62). Metadata/tag edits and explicit submission were checked separately (`submission-regression.json`). |-| Calendar | Previous/next month and This month worked; the selected interview agenda showed the expected Berlin time for the stored UTC event (25). |-| Cover letters | Created from an application, retained linked sender/design, typed/formatted body with live preview, and verified export share sheets. Final linked-application readability checked at Android 2.0 and iOS 3.12 text scales (82–84). |-| Career/workspace | Saved fact, story and salary/remote/notice preferences; rejected invalid salary; retained an Apply answer and emoji input across folds; retained selected Messages tab across posture changes. Facts refresh triggered from outside the bounded content column while the backend was paused, then recovered (75/76). |-| Check/AI setup | Local resume check reported 22/22; Job match and Writing review opened. Coach/Prepare/Writing review setup guards and Connect form were exercised; blank API key kept Save disabled. No live AI generation was run. |-| Sharing/privacy | Share opened without a crash. Publishing, QR sheet, password sheet and hide-contact controls worked. Protected public page returned 401 without resume content; hidden-contact page omitted email/phone. Original private/no-password/contact-visible settings restored; public endpoint then returned 404 (`share-privacy-validation.json`). |-| Library | Search remained visible and clearable after remount. A 24-resume stress fixture retained the same visible items through folding/unfolding (`anchor-validation.json`). Both measured postures used two columns; this is not proof of a column-count transition. |-| iPhone keyboard | Summary formatting/Improve/Done and return to bottom navigation passed with the real keyboard; profile and letter focus scrolling checked (34/35, 50, 74). |--The 24 extra stress resumes and the JSON re-import were moved to Trash using their owned fixture IDs. The active library returned to four fictional documents. No production data was used or deleted.--## Export evidence--All five native iPhone resume exports were recovered from the simulator and inspected. Expected fictional name and employer were present in every format. ZIP containers passed integrity checks, JSON parsed, and the PDF was one page with extractable text.--| Native iPhone file | Bytes | Inspection |-| ------------------ | -----: | ------------------------------------------------------- |-| PDF | 27,847 | One page; `pdfinfo` and `pdftotext` |-| DOCX | 10,557 | ZIP integrity and `word/document.xml` |-| JSON | 6,016 | Parse; full ResumeData equality after OpenAPI re-import |-| ODT | 3,025 | ZIP integrity and `content.xml` |-| Markdown | 469 | Expected text |--Android reached native share sheets for all five cover-letter formats and resume export/print surfaces; PDF preview survived unfolding. Authenticated local API exports for DOCX, ODT, Markdown and JSON returned 200 with expected content for both resume and letter. `export-validation.json` records the distinct native-file and API proofs. The JSON roundtrip used OpenAPI, not the native document picker (`json-roundtrip.json`).--## Source validation--| Check | Result |-| -------------------------------------------------------------------------------- | ------------------------------------------------------------ |-| `pnpm --filter mobile test` | 19 passed; 0 failed, skipped or cancelled |-| `pnpm --filter mobile typecheck` | Passed |-| Application service focused tests | 31 passed |-| API typecheck and server production build | Passed during the API repair; API source unchanged afterward |-| `pnpm lint:agent` | Passed on final tree |-| `pnpm format:check` | Passed on final tree |-| `pnpm exec turbo boundaries` | Passed |-| `git diff --check` | Passed |-| `EXPO_MOBILE_WEB_PREVIEW=0 pnpm --filter mobile exec expo export --platform all` | Android and iOS production Hermes bundles exported |--Meaningful regressions execute shipped components/client behavior: native inset/keyboard geometry, first-focus Improve and formatting actions, letter-export query encoding, stale keyboard-cache navigation, row accessibility semantics, and literal icon registration. Intended assertions were observed failing before their corresponding fixes. Device measurements supplement these boundary fixtures; they do not turn them into native end-to-end tests.--Representative final captures: 48/51/59/80 for editor header spacing, 66–69 for auth footer, 70 for navigation after activity recreation, 72 for aligned letter/preview bars, 74 for iPhone keyboard, 75/76 for Facts width/refresh, 78 for iPhone Share, and 82–84 for final large-text letter readability.--## Not verified--- Physical foldables, iPad, ordinary Android hardware/AVD, physical keyboard or hinge occlusion, haptics, and measured frame rate/performance.-- Full TalkBack/VoiceOver traversal. Native accessibility snapshots confirm control labels/states and the passive-row repair; iOS exposes some duplicate internal SwiftUI switch nodes.-- Live AI, voice, search-provider and offer generation, or production identity-provider accounts.-- OS airplane-mode/network switching and native document-picker import roundtrip.-- Every template/font, multipage/non-Latin export, RTL locale, or viewer application's rendering of DOCX/ODT.-- Signed release binaries, hosted CI, production deployment, OTA/runtime-fingerprint compatibility, or store/publication state.--Expo's floating development-menu gear appears in some screenshots and can overlap top-right chrome. It is development tooling, not a production UI element. Source checks and production bundling do not substitute for the unverified gates above.diff --git a/.agents/docs/mobile-release-handoff.md b/.agents/docs/mobile-release-handoff.mddeleted file mode 100644index 8cebd964a..000000000--- a/.agents/docs/mobile-release-handoff.md+++ /dev/null@@ -1,279 +0,0 @@-# Mobile release handoff--Release workflow updated: **2026-10-21**. Store observations below remain historical unless dated otherwise. **Not ready for store submission yet.** Uploaded binaries, saved listing drafts, passing source checks, production deployment, device verification, and store approval are separate states.--This is the operational handoff. See [mobile-store-review.md](./mobile-store-review.md) for policy sources, detailed verification history, report-queue SQL, and issue triage; see [store metadata](../../apps/mobile/store/README.md) for localization mappings.--## Finish these gates before submission--- [ ] Build and distribute fresh iOS/Android binaries with OTA configuration below; previously uploaded builds 4/5 do not contain the update client. Verify an actual downloaded update on both platforms.-- [ ] Owner merges and deploys matching server/web changes and database migration to the Frankfurt Docker Swarm installation. Publish the updated privacy policy and acceptable-use terms on the documentation site too.-- [ ] Configure production association and Apple sign-in environment below. Verify actual association JSON, browser-to-native callbacks, clean Apple/GitHub login, and reviewer sign-in after deployment.-- [ ] Configure testers, distribute iOS build 4 through TestFlight and Android version code 5 through Play internal testing, and install both from the stores. Android tester Google-account email and iPhone/iPad TestFlight device confirmation were requested but remain outstanding.-- [ ] Complete the signed-device matrix below. Record device/OS, build, result, and any remaining failure. A successful upload or simulator run does not close this gate.-- [ ] Replace reconstructed phone/tablet screen portions in listing designs with matching release-build captures. Export and upload screenshots for every supported device slot and requested locale. Review translations with native-language readers, especially RTL and script shaping.-- [ ] Test real AI/provider behavior with fictional data and adversarial prompts. Verify disclosure/decline, output reporting, moderation receipt, and chosen providers' retention/data-use practices. Keep reviewer AI access usable without personal API keys or honestly resolve the review-access limitation before submission.-- [ ] Recheck Apple/Google declarations against the deployed behavior, selected providers, and final screenshots. Retest private reviewer credentials immediately before submitting.-- [ ] Resolve actual console validation errors and pre-launch/device failures. Only then send for review. No App Review or production Play submission was sent during this work.--## Already prepared--| Area | Recorded state |-| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| Safety/account flows | Per-operation AI consent at transport boundary; private AI/public-resume reports; local shared-author blocking; direct browser account-deletion confirmation; bounded Apple token-revocation attempt |-| Branding | New native icons/splash and PWA icons; iOS Donate row hidden as a conservative first-release choice |-| Native artifacts | iOS 1.0.0 (4) processed VALID and attached to App Store version; Android 1.0.0 version code 5 processed in internal-track draft |-| Localization | Titles/descriptions saved and reread in both stores for English, Spanish, French, German, Brazilian Portuguese, Simplified Chinese, Japanese, Korean, Hindi, Arabic, and Indonesian |-| Artwork | Play icon and all 11 localized feature graphics saved; full reload confirmed distinct persisted graphics. No phone/tablet screenshot panels uploaded |-| Apple forms | Privacy responses published, Content Rights saved with owner affirmation, age 13+ override, free price, 175 regions on manual release; private reviewer credentials saved per owner |-| Google forms | Sign-in access, no ads, category/support details, target ages 13–15/16–17/18+, IARC, Advertising ID No, and Data safety saved. App content page reported no outstanding declarations; changes still await submission |-| Reviewer account | Owner created account; browser login succeeded; fictional resume, cover letter, and saved job application seeded. Owner confirms credentials saved privately in both stores |--Brand is **Reactive Resume**, `rxresume`, or `reactive-resume`. The official domain `rxresu.me`, scheme/package `me.rxresu`, and registered Apple Services ID are existing technical identifiers; do not rename them casually.--## Production deployment and quirks--Owner controls merge/deployment. Backend runs on a VPS in Frankfurt, Germany, using Docker Swarm. Do not infer deployment from a Git push or a successful image build.--### Image publishing is not automatic Swarm deployment--The checked-in `.github/workflows/docker-publish.yml` currently behaves as follows:--- Push to `main`: builds native AMD64/ARM64 images and publishes SHA/nightly aliases; **does not run the SSH redeploy step**.-- Manual dispatch with `release=false`: builds a canary/SHA image; no production deployment.-- Stable release tag or dispatch with `release=true`: promotes an existing full-SHA image; stable release mode can run SSH redeploy and cache purge when their secrets are configured.-- SSH requires `SSH_KEY`, `SSH_HOST`, and `SSH_USER`; cache purge requires its Cloudflare secrets. Missing integration secrets cause those integrations to be skipped.-- Current SSH command runs `cd docker` then `./manage_stack.sh up reactive_resume`. Verify the actual VPS script pulls the intended image and updates every replica.-- GHCR is primary; Docker Hub is a best-effort mirror. A successful workflow may still have failed mirror steps. Confirm the registry/tag/digest consumed by Swarm.--Before invoking a promotion, follow [container publishing](./container-publishing.md). Pushing this feature branch alone does not build or deploy the production Docker image. Do not assume an unrelated external pull trigger follows the same rules; verify its actual execution and the running image digest.--### Over-the-air updates--`apps/mobile/app.config.ts` enables EAS Update for the existing Expo project. Preview-and production build profiles use separate channels. Fingerprint runtime versions keep-updates compatible with the installed native modules, including the Forme Rust sources-and reviewed prebuilt checksum. JavaScript-only changes can use OTA; native dependencies,-permissions, SDK upgrades, and native Forme changes still require fresh store binaries.--The mobile UI now uses Legend List for documents and conversations, Expo UI for native-switches, and TrueSheet for shared sheets. Expo UI and TrueSheet require fresh iOS and-Android binaries; this integration cannot reach existing binaries through OTA alone.-Before release, verify keyboard avoidance, nested sheets, dirty-form dismissal, pending-saves, screen readers, reduced motion, and long-list scrolling on both platforms.--For local visual review, `pnpm --filter mobile preview:web` opens the development UI-gallery with the app's shared primitives, light/dark themes, and a 300-item list. This-gallery excludes native PDF and authenticated routes. Browser checks supplement native-device QA; Expo UI switches use the web preview implementation in the browser.--One-time activation:--1. Create an Expo access token with access to the `reactive-resume` project and save it as- GitHub Actions secret `EXPO_TOKEN`. Never commit the token or put it in release notes.-2. From `apps/mobile`, create `preview` and `production` channels with- `eas channel:create preview --non-interactive` and- `eas channel:create production --non-interactive` if they do not already exist.-3. Configure [Blacksmith native releases](./mobile-ci.md), then build store binaries on- both platforms. These builds explicitly embed the `production` update channel;- complete the store/device gates in this document before production release.-4. Publish a production update through the Docker release workflow, install the matching- store build, open it to download, then restart to apply. Verify startup offline and- saved drafts. Repeat on iOS and Android. Existing preview binaries keep their channel.--The Docker workflow calls `mobile-ota-update.yml` only for stable production releases,-using the image's exact source commit after successful SSH deployment. Nightlies, canaries,-and prereleases skip OTA. The OTA workflow requires three matching healthy commit probes. Production deployment must expose `/api/health` from-the application without caching or substituting a proxy's `OK` response. A missing-`APP_REVISION`, old replica, or unhealthy backend withholds the mobile update. A timeout-or missing `EXPO_TOKEN` fails the mobile job; Docker publishing is not rolled back.--Updates download on launch and normally apply on the next restart. Never reload an-active editor to force an update; let the existing draft lifecycle finish. A matching-fingerprint is required, so an update targeting new native code waits for users to-install the new binary. Older native runtimes retain their last compatible update.-Clients and self-hosted servers can remain older; keep API changes backward compatible.--For rollback, run `eas update:rollback <LATEST_UPDATE_GROUP_ID>` from `apps/mobile`.-It republishes the previous update for that branch/runtime, or rolls back to the embedded-update if none exists. This changes the mobile app only. Coordinate backend rollback-separately and preserve API compatibility in both-directions. Do not bump runtime versions just to force an incompatible update through.--### Native review prompts--The `expo-store-review` integration requires fresh iOS and Android binaries. It requests-the platform review UI after five minutes of signed-in foreground use, waiting for a-main tab and a hidden keyboard. Background time does not count; a new account or app-launch starts a new five-minute wait. A device-local three-day cooldown survives app-restarts and account changes. Store quotas may suppress the UI; ratings, dismissals,-and completed reviews are not observable. No rating filtering or automatic store-redirect is used. Settings → Support → Report an issue independently opens GitHub's-new-issue chooser.--Before release, verify foreground/background timing, sign-out, keyboard/editor-deferral, and cooldown persistence on both platforms. TestFlight does not show the-production review prompt; use Apple's development behavior and Play's internal test-track as appropriate, and record actual store-build results separately.--### Database and web release--- Include migration `migrations/20261017135047_clammy_the_enforcers/` for `ai_content_report`; normal server startup applies migrations. Back up production before deployment and inspect migration logs. Do not reset the database or delete volumes.-- Deploy server and web together. New native report calls need the new backend; the direct account-deletion query parameter needs the new web code. During a rolling update, old replicas can still serve old behavior; verify after rollout completes.-- Keep `APP_URL=https://rxresu.me`. Preserve existing `AUTH_SECRET` and `ENCRYPTION_SECRET`; rotating these casually can invalidate sessions or make saved provider credentials unreadable.-- Swarm service environment/secrets must be updated separately from pulling a new image. The application expects actual environment values, not an assumed `*_FILE` convention.-- Documentation hosting may have an independent deployment. Source changes to `docs/legal/privacy-policy.mdx` and `docs/legal/terms-of-service.mdx` are not proof that public policies changed.-- PWA icon changes need the web deployment and browser/service-worker cache refresh. An installed PWA may retain old artwork until refreshed or reinstalled.--### Required mobile environment--```dotenv-MOBILE_IOS_APP_IDS=654ASRW868.me.rxresu-MOBILE_ANDROID_PACKAGES=me.rxresu-MOBILE_ANDROID_CERT_SHA256=3E:8A:8B:56:BB:3D:B6:55:C6:04:F3:85:99:A8:4B:B0:4F:B7:E1:72:60:0A:95:8C:41:CD:59:D7:04:82:25:81-APPLE_CLIENT_ID=me.rxresu.web-APPLE_CLIENT_SECRET=<supply protected deployment value; never commit it>-```--The Android fingerprint was read from **Play App Signing → Digital Asset Links JSON**, not EAS's upload certificate. Never use the local inspection APK's debug certificate in production. If Play rotates signing keys, update the supported fingerprint list from Play Console and retest links on affected Android versions.--Apple setup is registered for domain `rxresu.me` and callback `https://rxresu.me/api/auth/callback/apple`, associated with primary app `654ASRW868.me.rxresu`. Associated Domains and Sign in with Apple capabilities were enabled. These settings do not replace the runtime client ID/secret.--Protected Apple deployment values are local at `/Users/amruth/.config/rxresu/apple-sign-in.env`, mode 600; the authentication `.p8` key is outside the repository. **Client-secret JWT expires 2027-04-15T15:13:47Z; rotate before expiry.** Upload/signing API keys and the Sign in with Apple authentication key have different purposes. Do not copy any private key, JWT, reviewer password, or service-account JSON into this branch, logs, screenshots, or issue comments.--### Post-deploy acceptance--- [ ] `/api/health` reports healthy and the running image matches the intended commit/digest.-- [ ] `/.well-known/apple-app-site-association` returns valid JSON with the expected team/app association.-- [ ] `/.well-known/assetlinks.json` returns valid JSON containing package and Play signing fingerprint above. At the last live check on 2026-10-17, **both association URLs returned plain `OK`**, so HTTP 200 alone is insufficient.-- [ ] A fresh store-installed app completes browser login and opens `/auth/native-callback` in the app; test cancellation and an expired session too.-- [ ] Repeat Android browser login with **Open supported links** disabled. The callback page targets package `me.rxresu` through an Android intent while retaining the registered HTTPS callback and its OAuth query. If the browser blocks automatic opening, **Try opening the app again** must finish the handoff with a tap. This web fallback also supports existing store binaries; native sign-in still validates state, issuer and PKCE.-- [ ] Private reports persist in production and are visible to the authorized operator. Verify export includes the account's reports.-- [ ] Test erasure with a separately created disposable account, including attachments/provider tokens and report cascade. Keep the primary reviewer account available.-- [ ] Public support/privacy/deletion URLs show the final instructions, retention details, contact information, and shared-content policy.--## Releasing a new version--Decide first whether the change needs a store build. Compare the saved platform hash-from the installed Blacksmith build's `fingerprint.json` with the current production-fingerprint, from `apps/mobile`:--```sh-eas fingerprint:compare <INSTALLED_NATIVE_FINGERPRINT_HASH> --environment production-```--**Fingerprint unchanged (JavaScript-only change):** no store work. A stable Docker release publishes the update to the `production` channel after the deployment health probes pass (see [Over-the-air updates](#over-the-air-updates)). Apps download it on launch and apply it on the next restart. OTA updates must not change the app's primary purpose or add features that need new store declarations; ship those through review.--For an older EAS-built binary, `--build-id <EAS build ID>` remains supported instead-of the hash. Compare both platforms. Keep API changes backward compatible with older-binaries and deploy the backend first.--## Security remediation native gate (2026-10-28)--The native bridge now validates page geometry, repeated content, fixed-height expansion and grid placements before entering Forme. These Rust changes require fresh iOS/Android Forme artifacts. The current `packages/forme-native/scripts/prebuilt.json` still identifies the previous source; its hash guard intentionally refuses these changed sources. Run `mobile-forme-build.yml` for the reviewed commit, verify both platform artifacts and checksums, and update the manifest from its real output before building the store binaries. Do not bypass the source hash or reuse the old library. No artifact publication or store rollout was performed as part of the local remediation.--Existing installed binaries retain the old native bridge until a new store build is installed. The accompanying JavaScript limits can ship by OTA, but do not replace the native fix. Recheck exported PDFs on signed devices, including repeating sidebar backgrounds and multi-page documents.--**Fingerprint changed (native change):** build and upload new binaries.--1. Deploy the backend first. Keep the API backward compatible: older binaries and OTA bundles remain in use.-2. Optionally bump `version` in `apps/mobile/app.config.ts` (for example `1.0.0` to `1.1.0`). CI supplies increasing iOS build numbers and Android version codes. iOS needs a new version string after a version is released; Play needs only a higher `versionCode`.-3. Complete the [signed-device test matrix](#signed-device-test-matrix), store declarations, listing/reviewer details, and release notes before submission. The workflow retains saved listings and screenshots. Ensure Play credentials permit production releases and the App Store Connect key has App Manager or Admin access. No testing tracks or TestFlight groups are required.-4. Dispatch **Mobile release** on `main`, platform `all`, **format=store**, and **upload** enabled. Approve `mobile-signing`, inspect this run's signed artifacts, then approve `mobile-store` to submit them. Latest main-push CI must have passed for the exact source commit before upload begins. Leave **upload** disabled if only checking a build. The [Blacksmith setup guide](./mobile-ci.md) covers credentials, build numbering, and approval environments. No EAS Build credits are used. Fastlane does not synchronize Apple capabilities. If exporting credentials through `eas credentials`, keep `EXPO_NO_CAPABILITY_SYNC=1`; Apple sign-in uses web Services ID `me.rxresu.web`, so turning off its primary App ID's Sign in with Apple capability would break sign-in.-5. **App Store Connect:** the workflow uploads the IPA, creates or updates its app version, waits for its matching processed build, submits for App Review, and sets automatic release after approval. Missing metadata or a pending review can block submission; review status and public availability must be checked separately.-6. **Play Console:** the workflow uploads directly to production with a completed, full rollout and sends changes for review. It does not publish to testing tracks. Review and Managed Publishing still control public availability; if Managed Publishing is enabled, publish approved changes in the console, or disable it there for automatic publication after review.-7. Verify both public store versions and smoke-test store-installed builds. Workflow success proves submission, not approval or publication. Confirm that a later OTA update reaches each new binary, because its fingerprint and runtime version changed.--Stable distribution uses the App Store and Play Store. IPA and AAB files are not attached to GitHub Releases. Manual Android APKs are available through Actions artifacts as described below; they do not replace store builds or store review.--### Manual Android downloads--Dispatch **Mobile release** on `main` with `platform=android`, `format=apk`, the desired-`abi` (`arm64-v8a` by default), and `upload=false`. Approve the `mobile-signing` gate.-The selected ABI is built with Expo Prebuild, Gradle and the existing Fastlane lane,-using the existing Android upload keystore and preview EAS environment/channel.-The normal increasing workflow build number is used; retries reuse that number.--Download the signed APK from the run's `mobile-android-<build-number>` Actions-artifact within 14 days. A separate evidence artifact retains the source SHA,-fingerprint and available debugging files for 90 days. Neither a Git tag nor a-GitHub Release is created, and pushes to `main` no longer build APKs.--The APKs retain package `me.rxresu`. Their upload signing certificate may differ from-Play App Signing, so they cannot necessarily upgrade a Play installation or be-upgraded by one. Back up local drafts before uninstalling to switch distributions.-Retain the same upload signing key for future APK updates. For verified App Links,-add its certificate fingerprint to the backend's `MOBILE_ANDROID_CERT_SHA256` list-alongside the Play fingerprint; do not replace the Play fingerprint. Test native-sign-in on an actual sideloaded build before advertising it as verified.--See [mobile CI](./mobile-ci.md#manual-android-apks) for signing approvals and retention.-Export production release evidence to permanent records before Actions retention-expires; the maximum 90-day retention is not permanent archival storage.--## Native artifacts and signing--| Field | iOS | Android |-| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |-| Version | 1.0.0 (4) | 1.0.0, version code 5 |-| EAS build | `afe7e122-ebf2-44fa-906d-dbcada3a8b20` | `1bd29d31-4d2c-4bc7-9e3f-2bbe5a5ff061` |-| Build URL | [EAS iOS](https://expo.dev/accounts/reactive-resume/projects/reactive-resume/builds/afe7e122-ebf2-44fa-906d-dbcada3a8b20) | [EAS Android](https://expo.dev/accounts/reactive-resume/projects/reactive-resume/builds/1bd29d31-4d2c-4bc7-9e3f-2bbe5a5ff061) |-| SHA-256 | `455a1e71eda35aa21e5be644802c61f5ad46ff6d484632b0a3bef1abac1bdbcd` | `da8a204762e7173d0cc43ee4f58f344ed08c010304bf86aeb96cbc801c8ce4fb` |-| Validation | Strict deep code signing; iOS SDK 27.1; matching entitlements; 14 non-tracking privacy manifests; no development Bonjour/local-network entries | Bundletool and upload signature valid; target API 36, min API 24; non-debuggable; all 68 64-bit ELF LOAD and inspection APK ZIP alignments pass 16 KB checks |-| Store state | App `6823975835`; build resource `dbaa48a2-520f-4109-9756-aa1c1dc036ca`; attached to 1.0.0 | App `4975481521325019096`; internal track `4701728381949252022`; draft release 1; no testers/rollout yet |--Earlier builds are superseded. Local IPA/AAB/inspection outputs and evidence are under `/tmp/rxresu-store-artifacts`; listing verification is under `/tmp/reactive-resume-listing-audit`. These are temporary local evidence, not durable build storage. Retrieve store artifacts through EAS links if local files disappear. The inspection APK is debug-signed solely for inspection; it does not prove Play-installed identity or behavior.--EAS project is `reactive-resume/reactive-resume`, ID `5830280e-e1ba-45b7-b9c9-ba048fa3bd4d`, retained for OTA updates and Observe. The historical EAS builds used remote version counters; Blacksmith uses the GitHub counter and migration offset described in [mobile-ci.md](./mobile-ci.md). Never reset versions to 4/5. Apple capabilities remain manually configured; `EXPO_NO_CAPABILITY_SYNC=1` is still required when using `eas credentials`.--Historically, submission keys lived in EAS credentials and `apps/mobile/eas.json` held no credential paths. Blacksmith requires exporting those existing signing credentials and storing upload keys in Actions secrets. iOS upload used an existing developer API key, while distribution signing required an approved Admin team key. Android's first AAB upload was manual. Never commit credential files. Historical Expo Doctor result: 20/20 after adding direct `expo-asset` dependency.--Forme native artifacts are published and checksum-pinned in `packages/forme-native/scripts/prebuilt.json`; the Blacksmith build explicitly fetches them before prebuild. A source/ABI change needs matching published prebuilts and checksum updates. Do not replace the pin with an unverified download or assume package version alone identifies native content.--## Signed-device test matrix--Test through TestFlight/Play internal testing with fictional documents, not Metro or only a development client:--- iPhone/iPad and Android phone/tablet; minimum supported and current OS; Android 16 KB environment; cold launch, background/restore, rotation and safe areas.-- Clean reviewer login; Apple and GitHub OAuth; canceled login, callback reopening, session expiry, account/server switching, sign-out, and cross-account cache isolation.-- Create/import/edit resume and cover letter; save, force-close/relaunch, preview PDF, export/share, offline/interrupted saves and conflict recovery. Inspect actual exported files.-- Deny/revoke camera, photo, microphone, and notification permissions. Unrelated workflows must remain usable.-- Large text, font/density changes, VoiceOver/TalkBack focus/labels, keyboard, light/dark themes, RTL and Arabic/CJK/Devanagari fonts.-- AI consent with accept/decline/cancel and changed provider/account; ensure declined operations never transmit. Report generated content and a shared resume; test block/relaunch/unblock and report receipt.-- Account deletion via Settings → Account opens a browser confirmation; it does not silently erase on navigation. Test separately with disposable credentials and Apple-linked account revocation/fallback where applicable.--Known limit: Android font/density changes can recreate the activity, resetting navigation and unsent transient forms. Persisted document drafts survive; do not claim every form survives. The earlier in-place scaling workaround was reverted because it clipped text. Device performance and full screen-reader/permission-denial coverage remain unclosed.--## Listings, screenshots, and review access--Design sources live in [Figma](https://www.figma.com/design/paEvXcSQes7pnrGtnLS73a?node-id=16-1958) and the owner's Penpot workspace. ZIP archives, editable `.fig` source, and exported listing directories are deliberately excluded from Git. Only seven runtime native icon/splash PNGs under `apps/mobile/assets` and required PWA icons are committed. Runtime copies are byte-identical to the artwork used in uploaded builds 4/5; builds no longer depend on ignored launch-kit folders.--All 264 supplied listing PNGs passed decoding/dimension/no-alpha checks: per language, 5 large iPhone (1320×2868), 5 medium iPhone (1206×2622), 5 Android phone (1080×1920), 4 iPad (2064×2752), 4 Android tablet (1920×1080), and 1 Play feature graphic (1024×500). Check active store slots again before upload. Dimension checks do not prove screenshot fidelity. Original READMEs explicitly identify phone/tablet panels, template thumbnails, and tablet navigation as illustrative reconstructions.--Metadata source is `apps/mobile/store/metadata.json`. Name remains **Reactive Resume** (30-character store limit); the longer free/open-source phrase belongs in descriptions. All 11 locales are saved in both stores, but native-language review is not established. Newly added safety messages also have untranslated mobile catalog entries with English fallback; do not promise fully localized runtime UI without checking.--Reviewer account has fictional resume, letter, and saved application; email/username and password are in private store review-access fields. Owner confirms both stores saved them. No 2FA, QR code, membership, location, or biometric restriction is required. Default server is `https://rxresu.me`. Do not delete this primary account or paste its password into chat/source. A real provider is not configured for this account yet; resolve how reviewers exercise advertised AI tools without exposing personal keys.--Apple access fields: App Store Connect → Reactive Resume → Distribution → iOS App 1.0.0 → App Review Information → Sign-in required. Google: App content → Sign in details. Retest access immediately before review and keep backend/sample content available throughout review.--Apple Silicon Mac and Vision Pro availability defaults remain enabled but untested. Test these targets or explicitly choose supported availability before submission; do not click compatibility verification without testing. Play Data safety's no-sharing answer relies on explicit user-initiated/consented transfers and service-provider exemptions; review actual providers before final submission. IARC Everyone/PEGI 3 is a content rating, distinct from the intended audience of ages 13+.--## Safety operations and unresolved issues--Owner committed to daily monitoring and prompt action. Reports share `ai_content_report`; query `reviewed_at IS NULL` through restricted DB access and mark reviewed only after actual triage. There are **no email alerts or operator dashboard**. Public-resume blocking is device-local, account/server-scoped, and username-based; changing username bypasses that address block. It is not a server-wide ban. Operators must disable abusive public sharing/remove offending content when warranted; live operational verification remains necessary.--Do not close these five issues based only on source checks:--| Issue | Remaining evidence |-| ----------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |-| [#2897 GitHub OAuth](https://github.com/reactive-resume/reactive-resume/issues/2897) | Clean production account/login round trip; capture sanitized server errors if it fails |-| [#3275 RTL resumes](https://github.com/reactive-resume/reactive-resume/issues/3275) | Final signed-build Arabic/Hebrew/Persian preview/export fixtures |-| [#3147 keyword clipping](https://github.com/reactive-resume/reactive-resume/issues/3147) | Exact sanitized reporter fixture still absent; test narrow sidebar/wrapped keywords |-| [#2812 Onyx header](https://github.com/reactive-resume/reactive-resume/issues/2812) | Current renderer/header/profile placement against reported layout |-| [#2794 square-image crop](https://github.com/reactive-resume/reactive-resume/issues/2794) | Original fixture absent; square image with edge markers in preview and exported PDF |--Prior local checks recorded in the audit passed: API 399 unit and 71 isolated real-DB integration cases; auth 33; PDF 361; AI 7; web account 4; real report/export/deletion browser E2E; mobile consent/public-safety harnesses; relevant typechecks, boundaries, production builds, lint/format. These results do not establish production migration, provider behavior, device coverage, or store approval. Do not run destructive smoke fixtures against personal production accounts.--## Feature parity exceptions--- Applications CSV import/export is web-only on mobile by owner decision, 2026-10-19.diff --git a/.agents/docs/mobile-store-review.md b/.agents/docs/mobile-store-review.mddeleted file mode 100644index 20989069d..000000000--- a/.agents/docs/mobile-store-review.md+++ /dev/null@@ -1,198 +0,0 @@-# Mobile store review checklist--Official policy checked **2026-10-17**. Recheck dated submission requirements before each release. This is a risk checklist, not a rejection-frequency ranking: the sources below establish requirements, not comparable prevalence statistics.--## Highest-risk review failures--| Risk | Requirement and practical check | Source |-| --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |-| Reviewer cannot sign in | Supply working review credentials or an approved full-featured demo, exact server URL, and instructions for account restrictions/2FA. Keep backend and sample documents available throughout review. Test from a clean installation without developer credentials. | Apple §2.1; Google app access [1][2] |-| Incomplete, crashing, or unusable app | Release binary must work on supported devices and OS versions. No placeholder screens or broken URLs. Apple requires adequate native utility beyond a repackaged website. Exercise the actual signed build, not only a development client. | Apple §§2.1, 4.2; Google functionality [1][3] |-| Missing account deletion | Apps supporting account creation need a discoverable in-app deletion path; Google also requires an external deletion-request resource linked in Play Console. Deactivation is insufficient. Apple allows a website completion step when the app links directly to the deletion page. Explain legitimate retention. Apple sign-in tokens must be revoked when applicable. | Apple §5.1.1(v), deletion guidance; Google deletion [1][4][5] |-| AI sends personal data without consent | Apple explicitly requires disclosure and permission before sharing personal data with third-party AI. Identify the destination provider and actual data sent, including resume, letter, career context, attachments, and voice where applicable. Google requires prominent disclosure and affirmative consent for unexpected sensitive-data processing. Declining must prevent transmission. | Apple §5.1.2(i); Google user data [1][6] |-| AI output cannot be reported | Google requires in-app reporting/flagging of offensive AI-generated content without leaving the app. Assess every generative assistant/writing surface and ensure a real developer reporting destination and handling process. This does not mean adding a public social feed. | Google AI-generated content [7] |-| Privacy declarations disagree with app | Accessible privacy policy in app and listing; accurate Apple privacy labels and Play Data safety answers covering app, backend, and SDK processing. Describe retention, deletion, providers, and contact details. User-configured servers/providers do not remove disclosure obligations. | Apple §5.1.1(i), privacy details; Google user data [1][6][8] |-| Overbroad permissions | Ask in context, use accurate iOS purpose strings, handle denial/revocation gracefully, and request minimum permissions. Prefer system photo/document pickers over broad media access. Inspect merged native manifests: transitive SDK permissions count. | Apple §5.1.1; Google permissions [1][9] |-| Social login lacks compliant equivalent | If primary-account authentication offers third-party/social login, Apple §4.8 requires an equivalent privacy-preserving service unless an exception applies. Sign in with Apple is one implementation. Browser-based OAuth alone does not establish an exception. Test the actual production server configuration. | Apple §4.8 [1] |-| Payments bypass store rules | Digital features/content generally require store billing, subject to current regional/program exceptions. Audit upgrade, tip, subscription, donation, website, and account-settings links against the actual business model and storefront. Do not assume all external payment links are prohibited or universally allowed. | Apple §3.1; Google payments [1][10] |-| Binary fails submission checks | Confirm current SDK/toolchain requirements, signing, identifiers, entitlements, bundled SDK privacy manifests/signatures where required, and Android native-library compatibility. TypeScript checks cannot prove these. | Apple requirements/SDKs; Google target API; Android page sizes [11][12][13][14] |-| Listing misrepresents app | Screenshots, description, support/privacy URLs, age/content ratings, declarations, and review notes must reflect shipped features. Do not advertise unfinished workflows or imply unavailable purchases. | Apple §2.3; Google app preparation [1][2] |--## Donation and tip nuance--An external donation link is not automatically a policy violation. Apple §3.2.1(vi) permits approved nonprofit fundraising under specific conditions; §3.2.2(iv) permits other charitable/fundraising collection outside a free app, such as through Safari. Apple §3.2.1(vii) separately permits certain optional person-to-person monetary gifts, with 100% going to the recipient, but requires in-app purchase when the gift is associated with digital content/services. Apple §3.1.1 explicitly allows in-app-purchase tips to the developer. These are distinct cases: an open-source project donation is not automatically approved-nonprofit fundraising or a qualifying person-to-person gift. Removing an optional donation link from an initial iOS release is a conservative scope choice, not proof the link was necessarily prohibited. [1]--## Open release gates from this audit--Consent and reporting implementations now have local boundary coverage. Signed iOS/Android binaries are uploaded and artifact checks passed. Remaining release gates are native installation checks, production deployment and login, reviewer access, store declarations, screenshots, and actual provider safety evaluation. Local checks do not establish these external gates.--## Current binary requirements--- **iOS:** Apple currently requires Xcode 26 or later and iOS 26 SDK or later for uploads (since April 28, 2026). Minimum deployment target and build SDK are different settings. Apple also requires iOS/iPadOS deployment target 13 or later since September 9, 2026; the mobile plan's iOS 17.4 minimum exceeds this. [11]-- **Android:** New apps and updates currently must target Android 16 / API 36 or higher (since August 31, 2026), subject to Google's stated extension process. An older app's continued availability is a different rule from update acceptance. [12]-- **Android native libraries:** Check every packaged `.so`, including Forme, Hermes, and SDK libraries, for 16 KB support and test on a 16 KB device/emulator. The official page currently states that incompatible app updates cannot release starting **February 1, 2027**. Recheck the page and Play Console before submission; do not rely on older deadline summaries. [13]-- **iOS SDK privacy:** Validate the archive's combined privacy report, required-reason API declarations, and applicable third-party SDK signatures/manifests. App privacy labels are a separate declaration. [8][14]--## Pre-submission test pass--Use a dedicated installation with fictional documents and disposable accounts. Account-deletion tests are destructive; never run them with personal or production test fixtures.--### Automatable checks--- Validate resolved application identifiers, version/build numbers, release URLs, permission descriptions, native permission lists, and current target SDK settings.-- Exercise consent gates: fresh install, accept, decline, relaunch, different account, different server/provider, and newly added data scopes. Verify requests are blocked before consent; checking dialog text alone is insufficient.-- Verify authenticated API ownership, session expiry/revocation handling, cancellation, and logout cleanup using existing package tests.-- Check deletion endpoint behavior and storage cleanup with a disposable account, including documents/attachments and provider tokens. Retention exceptions must match policy text.-- Test core workflows with permission denied, offline/network failure, empty content, malformed imports, and large supported documents. Confirm failed saves cannot silently discard edits.-- Run existing typechecks, lint, formatting, focused tests, and release bundle checks. Inspect signed artifact manifests separately from source configuration.--### Manual checks on signed builds--- [ ] Install through TestFlight and Play internal testing; cold-launch without development server or Metro.-- [ ] Sign in through the exact reviewer server/account; cancel browser login; reopen callback; expire session; sign out; sign in as another user.-- [ ] Create/import/edit/save a resume and letter; restart; verify persistence; render PDF; export/share; verify downloaded content.-- [ ] Navigate every visible tab/action; no stubs, dead buttons, inaccessible error states, or broken links.-- [ ] Deny/revoke photos, microphone, notifications, and other requested permissions; core unrelated workflows remain usable.-- [ ] Before AI/voice transmission, verify provider/data disclosure and affirmative consent; decline and confirm no transmission. Verify in-app AI reporting works where policy applies.-- [ ] Trigger offline and interrupted-save cases; reconnect; verify conflict recovery and no data loss.-- [ ] Test keyboard, safe areas, rotation, large text, screen-reader labels/focus, light/dark mode, iPhone/iPad, Android phone/tablet, minimum supported OS, and current OS.-- [ ] Complete deletion from inside app using a disposable account; verify account and associated data are removed. Open external deletion resource without the app installed.-- [ ] Confirm support/privacy/deletion URLs are public, correct, and point to the selected service where relevant.-- [ ] Upload archive/AAB and resolve App Store Connect/Play Console validation warnings, privacy/permission declarations, and pre-launch report failures.--### Store-console checks--- [ ] Reviewer instructions include server URL, credentials, sample content, login steps, and any intentionally unavailable configuration-dependent features. Store credentials only in private review fields.-- [ ] Privacy policy, Apple privacy labels, Play Data safety, account-deletion URL, content ratings, encryption/export declarations, and permission declarations match the binary and backend.-- [ ] Screenshots show the released UI on supported device types. App name, description, URLs, age/content ratings, and support contact are complete.-- [ ] Billing/account links satisfy the applicable storefront/program rules. For a free build, verify no hidden upgrade flow creates an undeclared payment path.-- [ ] Retest reviewer credentials and backend reachability immediately before submitting.--Automated tests reduce avoidable failures; they cannot guarantee review approval. Store-console answers, actual provider contracts/data practices, signed native binaries, and reviewer access need release-owner verification.--## Worktree audit: 2026-10-17--Implemented in this worktree:--- Privacy-policy access from authentication screens and Settings. The existing public URL returned HTTP 200; mobile-specific policy changes are source changes and still need publication.-- Account deletion opens `/dashboard/settings/account?deleteAccount=true`, which displays the existing typed confirmation immediately. Navigation never deletes an account. Browser-session-only authorization stays intact. Deploy the web change with the app; older self-hosted servers may ignore the new query parameter.-- Removed the external Donate row on iOS as a conservative review choice while fundraising eligibility is unverified. This is not a claim that every external donation link is prohibited. Android retains its existing row.-- Expanded privacy-policy source with native storage, server selection, camera, voice-provider processing, local reminders, and deletion instructions.--Regression coverage verifies that direct deletion entry opens confirmation, requires typed confirmation, and cancels without sending a deletion request. It failed before the repair and passed afterward. Existing API tests separately verify browser-session authorization and denial of account deletion through OAuth/API keys.--Additional corrections in this worktree:--- Central API interceptor requires explicit, per-operation consent before AI transmission, including attachments, import, writing, career schedules, and voice. Disclosures identify server/provider and data categories. Declining, aborting, or changing account blocks transmission. Real oRPC-client harness exercises these boundaries.-- Private in-app AI reporting from assistant messages, writing, letters, career notices, and Settings. Reports persist before success is shown; account export includes reports and account deletion removes them by database cascade. Real HTTP/database/browser E2E covers report, export, anonymous denial, cancellation, and confirmed deletion.-- Shared AI safety policy applies to generation prompts. This is not proof of actual model refusal behavior; no live provider evaluation has run.-- Apple-linked deletion attempts token revocation with a bounded timeout. Failure never blocks erasure; deletion dialog explains Apple's manual authorization-removal fallback.-- Forme native prebuilts were published and checksum-pinned. EAS project owner and real Apple app ID are configured.--**Release verification outstanding:** signed TestFlight/Play installation, production Apple login and app links, live policy publication, reviewer credentials, actual provider practices, store declarations, and native accessibility/device gates. Android font/density changes can reset navigation and lose unsent transient forms; the earlier in-place scaling workaround was reverted because it clipped text.--## Production deployment handoff--Owner deploys through existing GitHub Actions → Docker Swarm workflow. Merge server/web changes and migration `20261017135047_clammy_the_enforcers`; normal server startup applies migrations. Publish privacy-policy documentation separately if its hosting does not follow this workflow.--Configure Swarm service environment:--```dotenv-MOBILE_IOS_APP_IDS=654ASRW868.me.rxresu-MOBILE_ANDROID_PACKAGES=me.rxresu-MOBILE_ANDROID_CERT_SHA256=3E:8A:8B:56:BB:3D:B6:55:C6:04:F3:85:99:A8:4B:B0:4F:B7:E1:72:60:0A:95:8C:41:CD:59:D7:04:82:25:81-```--Use Play Console's **app signing certificate**, not merely EAS's upload certificate. Comma-separated supported fingerprints can include the direct-build upload certificate when required. Never include debug certificates on production.--Apple browser sign-in uses approved Services ID `me.rxresu.web` for `APPLE_CLIENT_ID` and a valid Apple client-secret JWT for `APPLE_CLIENT_SECRET`. Protected deployment values are in the owner's local credential directory, outside this repository; current JWT expires 2027-04-15T15:13:47Z. Rotate before expiration. App ID capabilities and App Store Connect upload keys do not supply these. Register production callback `https://rxresu.me/api/auth/callback/apple` against the Services ID and test clean-account login after deployment. Keep secrets in deployment configuration.--Live recheck on 2026-10-17 still returned plain `OK` at both association URLs; production deployment gate remains open.--Post-deploy: `/api/health` must be healthy; `/.well-known/apple-app-site-association` and `/.well-known/assetlinks.json` must return actual association JSON. Exercise native browser callback, private reporting receipt, account export, and deletion on an explicitly disposable review account. Do not run destructive deployment smoke tests against personal accounts.--## Private AI report review--The same private queue also accepts `source = 'public-resume'` reports from the native shared-resume viewer. Public-resume reports default to the reported URL; operators must inspect the report, restrict abusive public sharing or remove offending content when warranted, and act promptly. Native blocking hides all shared resumes under that public username on the reporting device, scoped to account/server. There is no public social feed or user-to-user chat. Blocking is not a server-wide ban, and a changed public username is a new address. Publish the updated acceptable-use terms and privacy policy before release. A prompt report-review/removal process still needs an actual operator.--Owner confirmed on 2026-10-17 that they will monitor reports daily and promptly act on abusive public sharing or offending content. Use the restricted queue below; there are no email alerts. Triage urgent child-safety/violence reports immediately when noticed, reproduce with fictional data, and correct prompts/providers or disable affected generation when necessary. This commitment does not establish that production reporting is deployed or that a live report has been reviewed.--Use a restricted database session; report contents contain personal data. Do not copy contents into logs, public issues, or analytics. Queue query:--```sql-SELECT id, source, reason, content, note, created_at-FROM ai_content_report-WHERE reviewed_at IS NULL-ORDER BY created_at-LIMIT 100;-```--After actual review, update the selected report with a parameterized statement:--```sql-UPDATE ai_content_report SET reviewed_at = now() WHERE id = $1;-```--`reviewed_at` records review, not deletion. Reports remain private, exportable by their author, and cascade-delete with their account. No automatic email or public feed exists.--## Listing asset gate--`apps/mobile/assets/launch-kit/README.md` explicitly identifies its phone/tablet panels as editable reconstructions. Do not upload those panels as verified screenshots. Capture the actual app at the store's required device dimensions, using fictional accounts/documents, before replacing the screen instances. Existing simulator smoke captures are evidence with their recorded development/release limitations; their presence alone does not close this gate. Icon and feature artwork are branding assets and can be assessed separately.--## Release artifact verification: 2026-10-17--Current iOS build `afe7e122-ebf2-44fa-906d-dbcada3a8b20`, version 1.0.0 (4), includes launch-kit icons/splash and shared-resume reporting/blocking. Deep strict code-signature verification passed; SDK is iOS 27.1, associated domains and team/bundle entitlements match, development Bonjour/local-network strings are absent, and all 14 privacy manifests declare no tracking. SHA-256: `455a1e71eda35aa21e5be644802c61f5ad46ff6d484632b0a3bef1abac1bdbcd`. App Store Connect processed build as VALID and attached it to version 1.0.0 (build resource `dbaa48a2-520f-4109-9756-aa1c1dc036ca`; EAS submission `1e5b261a-4200-4bdf-9ff4-9f9abcbb3a0d`). TestFlight installation remains outstanding.--Current Android build `1bd29d31-4d2c-4bc7-9e3f-2bbe5a5ff061`, version code 5, includes the same branding/safety updates. Bundletool and upload-signature checks passed; targets API 36, minimum API 24, non-debuggable. All 68 packaged 64-bit ELF libraries and all 68 uncompressed library ZIP entries in the generated inspection APK pass 16 KB alignment checks. Inspection APK is locally debug-signed, not Play-signed. AAB SHA-256: `da8a204762e7173d0cc43ee4f58f344ed08c010304bf86aeb96cbc801c8ce4fb`. Uploaded and processed in Play internal-track draft release 1, track `4701728381949252022`; preview reports only missing testers. No internal rollout or store installation yet. Play app signing fingerprint above was read from Play Console's Digital Asset Links JSON on 2026-10-17; it differs from EAS upload identity.--Local source verification: API unit run passed 399 tests; all 71 database-gated integration cases subsequently passed against the dedicated migrated test database (five suites). Auth package passed 33, PDF passed 361, AI passed 7, focused web account tests passed 4, and real report/export/deletion browser E2E passed. These are separate from native runtime verification.--Expo Doctor initially identified missing direct expo-asset peer dependency. Added SDK-compatible expo-asset and config plugin; doctor passes 20/20. Earlier iOS/Android builds are superseded by versions 4/5 above. Local artifacts and machine-readable checks are in `/tmp/rxresu-store-artifacts`, outside source control.--## Store preparation status: 2026-10-17--- All 11 requested Apple/Google listing locales saved and reread: English, Spanish, French, German, Brazilian Portuguese, Simplified Chinese, Japanese, Korean, Hindi, Arabic, and Indonesian. Source: `apps/mobile/store/metadata.json`. Native-language editorial review remains unverified.-- Apple privacy responses published; Content Rights saved with owner affirmation. iOS 13+ override selected. Free pricing and availability in 175 regions on manual release configured. Final screenshots and signed installation remain open; owner confirms private reviewer credentials saved. Apple Silicon Mac/Vision Pro defaults remain enabled; compatibility has not been tested.-- Google icon and all 11 localized feature graphics saved; full listing reload confirmed distinct persisted graphics per locale. Supplied launch ZIP contains 264 listing PNGs; decoding, dimensions, and no-alpha checks passed. Real screenshots pending: archive READMEs identify screen panels as marketing reconstructions. IARC questionnaire completed with user sharing, blocking/reporting and online content disclosed; generated ratings include Everyone/PEGI 3 with Users Interact. Intended target audience remains ages 13+; content rating does not set target audience. No intended violent/sexual/offensive/drug content is supplied by the app. Actual AI-provider safety evaluation remains a release gate.-- Google Advertising ID declaration saved as No, consistent with merged final manifest lacking AD_ID permission. Target audience saved as 13–15, 16–17, and 18+. Sign-in declaration saved by owner; Data safety saved to Publishing overview, not sent for review. Its no-sharing response uses Google exemptions for explicit user-initiated/consented transfers and service providers; validate selected production providers and consent behavior before final submission.-- Owner created reviewer account `reactive-resume-store-review`, email `[email protected]`. Browser login succeeded; fictional resume, cover letter and saved job application were created and verified. Owner confirms reviewer credentials saved in both stores' private review fields. Google's audience setup is unlocked, confirming its sign-in declaration completion; Apple save confirmed by owner; credentials were not read or copied. No password belongs in source, chat, screenshots, or public notes.-- Production deployment remains owner's responsibility. Publish server/web/migration, policy changes, association environment and Apple web sign-in configuration before reviewing production behavior.--## Store review notes draft--Use these notes only after production and signed-build verification. Put credentials in the stores' private sign-in fields, never this file.--> Reactive Resume is a free resume and cover-letter builder with job-application tracking and optional AI career tools. Choose the default server, https://rxresu.me, then sign in with the supplied review account. Sample fictional documents are available in Documents. Open a resume to edit, preview, and export PDF using the native renderer. Applications and Career demonstrate tracking and preparation. AI features require a tested provider; data sharing requires explicit consent for each operation. Offensive AI output can be reported inside the app, including Settings → AI → Report AI content. Account deletion is available in Settings → Account and opens the direct browser confirmation page. Do not delete the primary review account; create a separate disposable account to test erasure. No paid digital features or subscriptions are sold in this build.--Intended audience confirmed by owner: ages 13–17 and adults; not under 13. Content ratings must still reflect the questionnaire and actual AI functionality. Support email `[email protected]` and review contact Raja Rajan Ashokan, `+4917680468274`, were supplied by owner and entered in store forms.--## Open GitHub bugs reviewed--Live issue sweep on 2026-10-17 found five open bug-labelled reports. Enhancement requests are not silently converted into release requirements.--| Issue | Evidence and release check still needed |-| ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| #2897 GitHub OAuth cannot create user | Production-specific report with no diagnostic server logs. Current auth unit suite passes 33 tests; clean production social-login round trip remains required and cannot be inferred from tests. |-| #3275 RTL resumes | Owner previously requested confirmation; no reporter confirmation. Existing native parity reports cover all 17 templates plus free-form, but exact Arabic/Hebrew/Persian fixture must be checked in final signed build before declaring this issue fixed. |-| #3147 sidebar keyword clipping | Prior maintainer reconstruction could not reproduce; exact sanitized resume/font/style fixture still missing. Leave issue open; exercise wrapped skills in narrow sidebar in release export. |-| #2812 Onyx profile header placement | Historical screenshot-only report, no fixture. Verify current Onyx profile/header in final renderer; do not assume every layout difference is clipping. |-| #2794 square image preview cropping | Prior production investigation matched 72 controlled preview/PDF comparisons, but original image/resume missing. Leave issue open; include square-image edge-marker check in final preview/export pass. |--These are triage results, not claims that all five reports are fixed. No issue was closed or commented on during this sweep.--## Official sources--1. [Apple App Review Guidelines](https://developer.apple.com/app-store/review/guidelines/) — §§2.1, 2.3, 3.1, 4.2, 4.8, 5.1.1, 5.1.2.-2. [Google: Prepare your app for review](https://support.google.com/googleplay/android-developer/answer/9859455?hl=en).-3. [Google: Functionality, content, and user experience](https://support.google.com/googleplay/android-developer/answer/9898783?hl=en).-4. [Apple: Offering account deletion in your app](https://developer.apple.com/support/offering-account-deletion-in-your-app/).-5. [Google: Understanding account deletion requirements](https://support.google.com/googleplay/android-developer/answer/13327111?hl=en).-6. [Google: User Data policy](https://support.google.com/googleplay/android-developer/answer/10144311?hl=en).-7. [Google: AI-Generated Content](https://support.google.com/googleplay/android-developer/answer/13985936?hl=en).-8. [Apple: App privacy details](https://developer.apple.com/app-store/app-privacy-details/).-9. [Google: Permissions and APIs that Access Sensitive Information](https://support.google.com/googleplay/android-developer/answer/9888170?hl=en).-10. [Google: Payments](https://support.google.com/googleplay/android-developer/answer/9858738?hl=en).-11. [Apple: Upcoming requirements](https://developer.apple.com/news/upcoming-requirements/).-12. [Google: Target API level requirements](https://support.google.com/googleplay/android-developer/answer/11926878?hl=en).-13. [Android: Support 16 KB page sizes](https://developer.android.com/guide/practices/page-sizes).-14. [Apple: Third-party SDK requirements](https://developer.apple.com/support/third-party-SDK-requirements/).diff --git a/.agents/docs/plans/job-saving-release.md b/.agents/docs/plans/job-saving-release.mddeleted file mode 100644index 54258aaf8..000000000--- a/.agents/docs/plans/job-saving-release.md+++ /dev/null@@ -1,233 +0,0 @@-# Reliable job saving and application preparation--Status: implemented; local verification complete. Commercial-provider and native-model live checks await maintainer-supplied test credentials. Release has not been published.-Date: September 30, 2026.--Delivery decision: implement and release the full scope together, including three external search/read providers and AI SDK integration. The work order below describes dependencies within one implementation effort, not incremental releases. This supersedes the earlier proposal to add providers later.--## Product promise--Bring a job you found elsewhere into Reactive Resume, prepare your documents, and keep track of what happened. The complete manual workflow requires no new API account. Optional services improve it without interrupting it with setup.--Reactive Resume is a free, open-source, self-hostable application. Release scope must fit limited maintenance capacity and cannot depend on subsidizing unlimited search, scraping, or model usage.--## User experience--### Save a job--Keep the entry point in Applications. Accept a job link or pasted description, fill available details, and let the user correct the role and company before saving. Default a newly discovered job to **Saved**. Make recording an already-submitted application an explicit choice, with its date and documents.--Offer **Save job** and **Save and prepare resume**. Users can collect opportunities before deciding which deserve preparation. Saving does not require an AI provider or a web-service connection.--When a link cannot be read, preserve the draft and offer pasted text immediately. Explain incomplete or clipped descriptions before using them for preparation. Missing details stay unknown and editable.--### Prepare and track--Use the existing application details, document library, resume copies, assistant proposals, sent versions, contacts, and next-step features. A saved job holds:--- The saved posting and original source link.-- A selected resume or a copy made for this job.-- An optional cover letter.-- The next action and the employer's application link, when known.--Keep manual preparation complete. Offer AI assistance when an existing usable AI connection is available. Preserve the base resume and let the user review proposed edits.--**Open application** opens the external site. **Mark as applied** records the user's confirmation and the documents actually submitted. Opening a site or exporting a document does not advance the application stage.--### One optional web connection--Present a small **Web access** area in Integrations:--- **Built-in reader — Active:** reads supported public pages.-- **Search and enhanced reading — Optional:** searches the web and helps with pages the built-in reader cannot read.-- **Connect a service:** reveals provider and credential fields only when requested.--Ship Firecrawl, Tavily, and Exa together. Users choose one provider and enter one key; the same connection supplies search and reading. A server administrator can configure one connection for everyone; existing policy controls personal credentials. When server-managed, show that web access is provided by the server. Provider details belong in connection management, outside the save-job form.--No separate search, scraping, extraction, and research setup is required. AI continues to use the existing AI connection. Ordinary users need zero new accounts for the core workflow; external web access needs at most one optional connection. With no external connection, compatible AI providers can supply native assistant search through the existing AI account. Native search does not become a prerequisite for importing a link.--## Next-release scope--1. Correct Saved/Applied intent and defaults without disrupting users recording past applications.-2. Improve URL and pasted-text import: editable extracted details, retained input on failure, immediate paste recovery, and visible truncation or incomplete content.-3. Preserve the source link and saved description used for preparation; show retrieval information for fetched content. Refreshing a posting must not silently replace the evidence behind existing documents.-4. Connect saving to existing resume selection, copy-for-job, manual editing, and assistant review flows. Keep letters optional.-5. Make external application handoff and confirmed submission distinct, using existing sent-document history.-6. Support Firecrawl, Tavily, and Exa for both search and page reading through shared application-owned functions. Preserve custom server endpoints, URL protections, and built-in fallback.-7. Connect those same functions to the existing AI SDK assistant and support verified native-search configurations for OpenAI, Anthropic, and Gemini. Complete capability selection, source display, cancellation, and error handling in the same release.-8. Replace Firecrawl-specific settings and feature gates with one optional web connection and capability-based availability. Retain optional search without promoting broad job discovery as a new product promise.--These changes should reuse existing application records and pipeline stages. Preparation can be represented within Saved; additional stages and a new jobs subsystem are unnecessary for this release.--## Final technical design--### Provider choice--| External provider | Search | Read a supplied URL | Reason to include |-| ----------------- | ---------- | ------------------- | --------------------------------------------------------------------------------- |-| Firecrawl | Search API | Scrape API | Support custom endpoints and self-hosted deployments. |-| Tavily | Search API | Extract API | One alternative connection covers both operations. |-| Exa | Search API | Contents API | A third independent backend covers both operations without another setup concept. |--These are three actual external search providers; native LLM search is additional support and does not substitute for the three-provider requirement. Each can be used independently. Supporting all three does not mean configuring or calling all three.--Implement all three HTTP adapters with the existing bounded JSON transport and Zod response validation. The application needs their search/read endpoints, not their entire SDKs. Use the installed AI SDK's `tool()` to expose shared functions to the assistant; adding provider-specific AI SDK tool packages would duplicate the configuration and normalization needed by ordinary UI requests.--For Tavily imports, request Markdown extraction without query-based chunk reranking and inspect per-URL failures even on HTTP 200. For Exa imports, request page text rather than highlights or summaries and use the documented freshness controls; the older `livecrawl` option is deprecated. Search requests should avoid full-page extraction and generated answers. Fetch a selected result only when it is needed. [Tavily Search](https://docs.tavily.com/documentation/api-reference/endpoint/search), [Tavily Extract](https://docs.tavily.com/documentation/api-reference/endpoint/extract), [Exa Search](https://exa.ai/docs/reference/search), [Exa Contents](https://exa.ai/docs/reference/get-contents).--### Shared retrieval and job-specific parsing--Keep implementation in `packages/api/src/features/web-access/`, with configuration/service code, shared contracts, and one adapter file per external provider. Move the existing safe direct reader there. No new workspace package or general plugin system is needed.--Expose two server functions: `searchWeb` and `readPage`. They receive a server-resolved connection and an AbortSignal. Search returns normalized URL, title, and optional snippet; reading returns requested/resolved URL where known, content, format, retrieval time, method, truncation information, and optional HTML for the server-side JobPosting parser. A retrieval timestamp must not imply the provider fetched the origin at that moment. Retain a provider fetch timestamp when available.--Use small function adapters selected by the provider discriminant. No class hierarchy, dependency injection container, per-provider public router, or user-defined adapter code.--`applications/posting.ts` continues to own JobPosting parsing and job-specific behavior. Move the existing `job posting` query suffix out of generic search. Company research must receive the original company query. Keep the existing Applications API routes and map normalized search results back to their existing output contract where possible.--For reading, use the selected external provider when configured, then the built-in reader on a recoverable failure; with no connection, use the built-in reader directly. Preserve this existing Firecrawl behavior. Unsafe URLs and cancellation stop immediately. A successful response containing an empty page or obvious access challenge must not be treated as a successful posting import. Distinguish detected incompleteness from unknown completeness; do not claim that HTTP 200 proves a complete description.--Keep the existing 20,000-character application limit initially, but return and display truncation information. Do not create a separate raw-page storage system. Preserve the bounded posting snapshot used by the application and identify how it was obtained. Add nullable posting-source metadata to the existing application record, with corresponding DTO/export handling, rather than creating a new Job entity.--Optional AI extraction must not discard a successfully retrieved posting when the model fails. Return page-derived fields, saved text, and an enrichment warning so the user can complete the fields manually. Preserve truthful source fields and user corrections.--### Execution paths and selection rules--```mermaid-flowchart LR- Applications[Applications search and import] --> Retrieval[Shared searchWeb and readPage]- Assistant[Existing AI SDK assistant] --> Custom[search_web and read_page tools]- Custom --> Retrieval- Retrieval --> External[Selected Firecrawl, Tavily, or Exa connection]- Retrieval --> Builtin[Built-in reader fallback]- Assistant --> Native[Compatible model-native search]-```--| Request | Selection rule |-| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |-| Applications keyword search | Use the configured external connection directly; no model call. Without one, offer URL/text import. |-| Applications URL import | Use `readPage`, then job parsing and optional AI enrichment. Native search is not an import dependency. |-| Assistant search with an external connection | Use that explicit connection through `search_web`, regardless of LLM vendor. |-| Assistant search without an external connection | Use verified native search from the selected AI connection; otherwise report that search is unavailable. |-| Assistant reads a URL | Use `read_page` with the selected reader or built-in reader. Requires a model capable of custom tool calling. |--An explicitly configured web connection wins over native search, so choosing a provider has predictable effects. Register one search mechanism per assistant run. Do not offer several competing search tools to the model or silently change paid providers after a failure. Native search failure should retain the conversation and explain the unavailable capability.--### AI SDK integration--Reuse the installed `ToolLoopAgent`, tool handlers, streaming, message persistence, and proposal review. The cookbook describes a wrapper around a service call, not a unified credentials service or automatic source adapter. [AI SDK tool model](https://ai-sdk.dev/docs/foundations/tools), [web-search cookbook](https://ai-sdk.dev/cookbook/node/web-search-agent).--- Add `search_web` and `read_page` function tools using server-injected handlers. Tool inputs never accept a user ID, API key, provider URL, or arbitrary request headers.-- Keep native `web_search` and `google_search` names distinct from the custom tool names. Existing stored OpenAI tool messages must remain readable.-- Replace the boolean `hasProviderNativeSearch` and hardcoded `web_search` prompt text with actual search/read capability information and the selected tool name. A reader-only configuration must not claim it cannot access URLs.-- Extend the current capability checks to documented direct OpenAI, Anthropic, and Gemini configurations. Verify the endpoint, model, and combination of native search with existing document tools. Unknown models and custom gateways must not inherit capabilities merely from a provider label.-- Keep OpenAI's Responses API selection where required. Test Anthropic's search enablement requirements and Gemini's native/custom tool compatibility. Use the external function tool when a model supports custom tools but the native combination is unsupported; do not add a second research agent to work around incompatibilities.-- Pass the agent run's cancellation signal into tool execution and provider requests. Reuse the existing 240-second run limit and bounded steps rather than creating another agent loop.-- Normalize custom tool source URLs for the UI and preserve native source parts. Custom tool results do not automatically become AI SDK `source-url` parts: explicitly derive and deduplicate the Sources list from typed search/read outputs as well as existing native parts. Only display validated public HTTP(S) links, and distinguish retrieved sources from unsupported generated citations.-- Update the shared `AgentTools` contracts, web tool statuses, error rendering, transcript export where applicable, and message replay when the selected AI/web provider changes. A failed search must not render as “Searched the web” success.--Native-search support is limited to verified model/endpoint combinations and documented clearly. At least one compatible configuration for each of OpenAI, Anthropic, and Gemini must be covered in the release checks. Native provider tool charges still apply; no additional search account is required. [Anthropic search](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic#web-search-tool), [Google search](https://ai-sdk.dev/providers/ai-sdk-providers/google#google-search).--### One connection, one credentials service--Store one selected external connection per user: provider plus encrypted API key. Reuse existing credential encryption. Do not create a table or settings card per provider, store several inactive keys, or require separate defaults for search and reading.--Use the generic `web_access_credentials` table as the sole credential source. The pre-release Firecrawl API has no users or compatibility promise; remove its handlers, environment aliases and retired credential table. Keep historical migrations and generate a migration that drops the obsolete table. Review SQL and verify backup/restore before deployment.--Expose status, save, delete, and test procedures under `/integrations/web-access`. Keep all server-managed and encryption-precondition checks.--Server configuration uses `WEB_ACCESS_PROVIDER`, `WEB_ACCESS_API_KEY`, and an optional `WEB_ACCESS_API_URL` for a custom Firecrawl service. Tavily and Exa use their official fixed endpoints. Partial or inconsistent configuration fails validation. A self-hosted Firecrawl endpoint may be keyless. Personal connections use cloud endpoints and do not expose arbitrary base URLs.--Resolver order is server configuration, personal connection, then built-in reading only. Server-managed configuration disables personal credential changes. Resolve credentials for each request/run; never keep a singleton client containing a user's key.--Status should communicate available capabilities, selected provider, managed/personal ownership, and whether keys can be changed, without returning secrets. A user-triggered connection test probes search and reading independently and reports actual results, including unsupported self-hosted search or quota failures. The test must bypass reader fallback so a successful built-in fetch cannot falsely validate a broken provider. Do not retest or incur external calls every time settings renders.--### UI and operational behavior--Use a single provider selector inside the optional connection form: Firecrawl, Tavily, Exa. Use generic availability to gate Applications search. New users see a working built-in reader and an optional connection action.--Complete the Save/Applied, source review, truncation recovery, preparation, and submission changes from the product scope in the same release. Every provider must pass through the same workflow and receive the same error treatment.--Apply retrieval limits to direct API requests and assistant tools at the shared boundary, using existing rate-limit infrastructure. Avoid counting the same call twice. Bound external response sizes and text passed to the model; use one end-to-end deadline including fallback and retries. Cancellation must not trigger another fetch. Add a bounded per-run custom web-tool allowance and use native provider search limits where supported; do not claim to count native provider internal queries that the API does not expose.--Log provider, operation, duration, safe failure category, and fallback outcome. Never log credentials, raw fetched pages, or private resume content. Quota/auth errors should explain that enhanced access is unavailable while leaving saved data and manual work intact. Read/search tools treat remote content as untrusted data, and all adapters retain existing public-target validation. A remote reader also needs its own redirect/DNS protections; the application's initial URL check cannot enforce its internal network behavior.--## One implementation effort--Work in the following dependency order and release only when the complete end state passes. These are implementation tasks, not separate product increments.--| Order | Work | Main existing owners |-| ----- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |-| 1 | Fix the shared contracts, selection rules, and final provider set before editing consumers. | `packages/api/src/features/web-access/`, `packages/ai/src/tools/agent-tool-contracts.ts` |-| 2 | Build all three adapters and move the safe built-in reader; keep job normalization in Applications. | `packages/api/src/features/applications/posting.ts`, new web-access feature |-| 3 | Use one credential table, resolver and generic integration router; retire pre-release compatibility code. | `packages/db/src/schema/web-access.ts`, `migrations/`, `packages/api/src/features/web-access/`, `packages/api/src/routers/index.ts` |-| 4 | Wire Applications and the assistant to the shared service, including native search, tool contracts, source rendering, cancellation, and errors. | `applications/ai.ts`, `agent/tools.ts`, `agent/service.ts`, `ai/capabilities.ts`, `ai/service.ts`, web assistant feature |-| 5 | Finish the one-connection settings UI and agreed job-saving/preparation workflow against the final contracts. | Web settings, Applications, document-copy/detail features, application schema/DTOs |-| 6 | Update environment validation, docs, API spec, translations, and deployment checks; run the whole acceptance matrix. | `packages/env/src/server.ts`, `.env.example`, `turbo.json`, self-hosting/AI guides, `docs/spec.json`, Lingui catalogs |--This order avoids rewriting the UI or assistant once per provider. Keep all runtime-specific code in its current owning packages. Check server bundling and package export boundaries; the bounded native transport needs no vendor SDK bundles.--## Acceptance conditions--- With no AI or web-service credentials, a user can paste a description, save a job, prepare a resume manually, and track an application.-- Supported public links can use the built-in reader without a commercial account. Unsupported links lead directly to pasted-text recovery.-- Import failure preserves entered information. Clipped content is identified before preparation.-- Newly discovered jobs stay Saved until the user confirms submission. Recording a past application remains straightforward.-- Preparing a job-specific copy preserves the base resume; edits remain reviewable.-- Provider setup never blocks basic saving, manual editing, or tracking.-- Shared server credentials require no additional user setup; existing personal-key and server-managed policies remain enforced.-- Existing Firecrawl search, rendered reading, custom server URL support, and direct-reader fallback keep working.-- Firecrawl, Tavily, and Exa each work independently for Applications search/import and assistant search/read. Users need only the selected provider's credentials.-- Native assistant search works for verified OpenAI, Anthropic, and Gemini configurations without an external web connection. Unsupported combinations fail clearly or use an explicitly configured external connection.-- Explicit provider selection is respected; each account has one encrypted connection, with changes disabled under server configuration.-- All web tools show correct progress, errors, and validated sources after streaming and after reloading a conversation. Cancellation stops outstanding retrieval.-- Core behavior works on Docker and Vercel without adding required services or containers.--## Verification for the complete release--Use the existing Vitest and Playwright setup. Add focused behavior checks; no new testing framework or copied suite per provider.--| Area | Required evidence |-| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| Adapter contract | Table-driven mocked HTTP checks for all three providers: result mapping, per-URL errors, auth/quota failures, malformed/empty results, timeout, response limit, and abort. |-| URL safety and fallback | Existing private-host/DNS/redirect checks remain effective; failure falls back within budget, while unsafe URLs and abort do not. |-| Credentials and migration | The retired table is removed; users cannot access each other's keys; server precedence, partial env errors, connection replacement and deletion behave as specified. |-| AI SDK and history | Tool selection, compatible native/custom combinations, capability-aware instructions, sources, stop behavior, and old conversation rendering/replay. |-| Product journey | Save/paste/manual preparation without services; all three provider choices through the same UI; failed enrichment retains the posting; Saved stays distinct from Applied; submitted document versions remain correct. |-| Deployment | Affected typechecks/tests, non-mutating lint, package boundaries, production build, and existing serverless artifact checks. Verify Docker and Vercel environment handling. |--Run `pnpm db:generate` for the schema change and inspect its SQL, `pnpm lingui:extract` for new UI strings, and `pnpm docs:gen` for changed public API surfaces. Inspect generated diffs. Use package-scoped tests/typechecks before the production build and boundary check.--Provide a small opt-in live smoke command for one public search and one public URL per configured provider, using maintainer-supplied test credentials. Verify native model combinations with a similarly bounded check. Mocked checks validate application behavior; report live checks that could not run and do not label them as verified. No paid secrets belong in fixtures or committed artifacts.--## Operating limits--Run retrieval on explicit user actions. External usage uses configured credentials and existing rate limits, with explicit limits for any shared allowance. Do not silently fan one request out to several paid providers.--Keep public-URL validation, redirect and network protections, credential encryption, and safe error handling at the shared boundary. Search and reading requests use public URLs or narrow queries; candidate resume data is reserved for the chosen AI workflow.--## Outside this release--- Providers beyond Firecrawl, Tavily, and Exa; a second reading connection; provider fan-out or automatic paid fallback chains.-- Broad job discovery, dedicated job feeds, scheduled crawling, and search alerts.-- Followed-company feeds and board-specific adapters beyond imports that demonstrably need them.-- Browser capture and application autofill.-- Email/calendar synchronization and automatic submission.-- A general plugin platform or custom connector protocol.--Document the adapter contract and contribution checks as part of this release. Evaluate completeness, reliability, latency, deployment behavior, and cost per usable import; published feature lists alone do not establish a best hosted default. New installs start with the built-in reader and no commercial connection.--## Implementation verification--Verified September 30, 2026, with installed AI SDK 7.0.124 and Firecrawl 4.42.1:--- 204 focused retrieval, credential/environment, assistant, application/document, and web UI unit tests passed. Server suite added 83 passing tests; four optional PostgreSQL OAuth integration cases skipped because `OAUTH_TEST_DATABASE_URL` was not supplied.-- Five Chromium journeys passed: fresh-account manual preparation, a job-specific copy with intact base and submitted snapshot, unreadable-link recovery, clipping disclosure, and replacing/removing each of the three optional providers.-- Workspace typechecks, focused non-mutating Oxlint/Oxfmt checks, package boundaries, and production build passed. Lingui catalogs and public OpenAPI spec regenerated and inspected.-- Generated migration reviewed and applied only to disposable PostgreSQL. Ciphertext backfill, credential ownership/legacy conflicts, and disposable database backup/restore passed.-- Offline Vercel CLI 61.0.0 build and copied Function loading outside the checkout passed: Node 24, 300-second budget, expected handler, anonymous storage rejection, and homepage metadata. Environment tests cover generic configuration, legacy aliases, and Vercel normalization.-- Built-in reader fetched a public page without credentials. External-provider and native-model live checks were not run; bounded opt-in commands live in `tooling/web-access/smoke.mjs` and `tooling/web-access/native-smoke.mjs`. Mocked SDK checks do not establish live service availability.--## Related research--[Provider capabilities and ATS boundaries](../research/job-integrations-2026-09-30.md) supplies background. The three-provider and AI SDK work above is part of this release; broader job-discovery and submission-automation possibilities remain outside scope. Installed packages inspected for this plan: AI SDK 7.0.122 and Firecrawl 4.42.0. Verify model-specific capabilities against current docs during implementation rather than copying the cookbook's model IDs or older Firecrawl API calls.diff --git a/.agents/docs/research/custom-application-stages-2026-10-29.md b/.agents/docs/research/custom-application-stages-2026-10-29.mddeleted file mode 100644index 2e39983c7..000000000--- a/.agents/docs/research/custom-application-stages-2026-10-29.md+++ /dev/null@@ -1,168 +0,0 @@-# Custom application stages: feasibility and migration--Research date: 2026-10-29. Request: [#3518](https://github.com/reactive-resume/reactive-resume/issues/3518), including linked [#3234](https://github.com/reactive-resume/reactive-resume/issues/3234). Source baseline: `aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9`, matching remote `main` when checked. This is a feasibility assessment, not an implementation or migration rehearsal.--**Verdict:** feasible, with an additive migration and preserved behavior, provided custom lanes have stable identities and explicit workflow categories. Existing components will not support arbitrary new status strings unchanged. This is a coordinated schema/API/web/mobile feature, not a board-only setting.--## What already exists--The issue describes the older Saved / Applied / Screening / Interview / Offer / Rejected pipeline. Current code has Saved / Applied / Screening / Interview / Offer / Closed. Closed has reasons including `no-response`, so the underlying outcome requested as “Ghosted” already exists as **Closed → No response**. A distinct, reorderable Ghosted lane and a warning about applying to that company again do not follow from that existing outcome. The schema explicitly anticipates promoting stages to a table if per-user stages become necessary. [S1]--The database stores status as text, with a TypeScript type, rather than a PostgreSQL enum. This simplifies an additive migration, but application DTOs, timeline schemas and both clients still assume the six fixed values. The existing v6 migration already translates older `rejected` / `archived` records and timeline entries; a new migration should build on that normalized state rather than invent another interpretation. [S2] [S3] [S4]--## Recommended model--Keep two concepts:--- **Lane:** user-owned identity, label, color, display order and retirement state. Add a persisted lane reference to each application.-- **Workflow category:** the existing `saved | applied | screening | interview | offer | closed` meaning. Each lane maps to exactly one category. Retain `application.status` as the compatibility field, maintained by the server from the selected lane.--Examples:--| Lane | Workflow category | Effect |-| -------------------- | ------------------------------------- | --------------------------------------------------------------------- |-| Wishlist | `saved` | Still a draft; no sent-document snapshot |-| Take-home assignment | `interview` | Sent application; contributes to interview-stage metrics |-| Negotiation | `offer` | Offer-stage application |-| Ghosted | `closed`, preset reason `no-response` | Closed visibility and reminder behavior; no fabricated employer reply |--These are proposed classifications, not classifications the server can reliably infer from arbitrary labels. A take-home that happens earlier could instead belong to screening. The UI should ask which category a new lane belongs to using plain product language.--The server must validate lane ownership and synchronize category, closure reason and timeline in one transaction. A request containing a lane and contradictory category or outcome should be rejected. Keep an active default lane for every canonical category so legacy writers always have a deterministic destination, independent of display order. Never use a user-editable label as a key or infer business behavior from its spelling.--Keep category assignment stable after a lane has been used, or make reclassification a separate explicit operation with historical semantics preserved. Renaming or reordering a lane must not change whether an application was sent, received a reply, reached an offer, or closed. No configurable automation engine is needed for this request.--Own lane resolution and the category/lane/timeline transition invariant in the application service, callable within existing transactions. Reuse that operation from CRUD, bulk/import and Career writers instead of maintaining parallel rules. Career-specific submission snapshots and retry checks should remain with their current workflow owner.--## Component and side-effect assessment--| Surface | Current dependency | Required adaptation |-| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| Board and list | Fixed pipeline arrays; grouping, drag targets and pending moves use status | Read ordered lanes; group and move by lane ID. Keep existing drag interactions, keyboard/menu alternatives and rollback behavior. Unknown or retired metadata must not make cards disappear. [S5] [S6] [S7] |-| Add, edit, bulk actions and detail | Creation offers a small fixed stage subset; detail has a five-column stepper and fixed next-stage lookup | Resolve lane choices consistently, including creation/import/bulk paths. Replace the fixed-width stepper with a layout that supports many and long labels; next-lane navigation uses configured active-lane order. Preserve the UI's outcome selection and Ghosted preset, while accepting legacy reasonless Closed records/API writes. [S8] [S9] [S3] [S26] |-| Timeline and time in lane | Events store canonical stage only; current-stage anchors compare stage strings | Add lane identity to new events and distinguish same-category lane moves. Preserve canonical category for historical analytics and older clients. Anchor editing/deletion safeguards and lane-duration calculations must use the correct identity. [S1] [S10] [S11] |-| Sent resume and letter versions | Server snapshots only at `applied`, `screening`, `interview`, `offer`; protects recorded submissions from replacement | Preserve category-based snapshot and ownership checks, including direct creation/import into a sent lane. Moving between interview lanes must not duplicate or replace sent versions. Lane settings changes must never submit documents. [S10] |-| Follow-ups and next step | Saved is “not applied”; Applied triggers the ten-day no-reply nudge; Closed suppresses next steps | Keep category meaning. Decide separately whether “days in lane” resets on a move and whether the no-reply clock should continue across two Applied-category lanes. Do not accidentally reset application/sent dates on each lane move. [S11] |-| Calendar and native notifications | Calendar follows interviews/follow-ups; native reminder targets and cancellation depend on Closed | Ghosted must behave as Closed in these existing paths. Native cancellation currently checks mutation input status, so a lane-only mutation needs category-aware success handling. Moving a lane does not itself create an interview appointment. Career schedules are a separate case below. [S12] [S13] [S14] |-| Insights | Fixed semantic ranks infer stages reached; reply calculations recognize Screening / Interview / Offer and Not selected | Keep workflow milestones separate from display order. Aggregate canonical categories and preserve historical category on events. Add lane counts for custom labels without treating drag order as evidence of a reply or offer. Apply equivalent logic on both clients. [S15] [S16] |-| Cache and initial detail | Optimistic state and initial-detail matching compare status and closed reason | Include lane ID in optimistic updates, pending-move reconciliation and summary/detail agreement checks; invalidate lane metadata and affected application/document views after changes. Otherwise same-category moves can rehydrate stale detail. [S7] [S13] [S17] [S18] |-| CSV | Import validates six statuses; export emits canonical status and readable stage history | Preserve the legacy status column; add lane metadata and an explicit mapping/recreation flow for cross-account imports. Arbitrary lane labels cannot become valid canonical statuses. Preserve formula-injection protection. Current CSV is an interchange format, not a lossless history restore: rendered timeline/closed-reason columns are not all mapped back on import. [S19] |-| Linked documents and workspace | Document associations use application IDs, with status-specific draft/closed decisions | Preserve IDs and sent-version links; resolve lane labels wherever stage is displayed. Keeping category semantics avoids changing document-selection rules just because a label changes. [S20] |-| REST, OpenAPI and MCP | Shared DTOs expose canonical status; MCP also has explicit tool metadata and an API allowlist | Add lane discovery/selection, list filters and summary fields explicitly; preserve canonical `byStage` statistics. Regenerate public schemas and verify MCP discovery/call parity. Details below. [S3] [S22] [S23] [S24] [S25] |-| Career, AI and schedules | Career commits also write applications directly; prompts and scheduled work read existing application state | Extend every writer, not only application CRUD. Preserve submission retry/snapshot rules and make scheduled Closed behavior explicit. Details below. [S26] [S27] [S28] [S30] |-| Account export, linking and deletion | Export contains application records; guest linking changes application owner | Export lane definitions as well as references, transfer/remap lanes when linking accounts, and cascade lane ownership cleanup on account deletion without deleting applications during lane retirement. Details below. [S31] [S32] [S33] [S34] [S35] |--The migration does not require changes to the PDF rendering engine or resume data model merely to customize lanes. Application identity, linked document IDs, interview IDs and timestamps should survive unchanged. This is an ownership-based architectural conclusion, not proof of every export/workspace path.--### Two easy-to-miss invariants--**Same-category moves:** the current SQL appends a stage event only when `application.status` changes. Interview → Take-home, both classified as Interview, would otherwise produce no event. Both boards also track pending moves by status, and detail hydration only checks status/reason. A lane table alone would leave history, duration and optimistic rendering incorrect. Extend existing `type: "stage"` events additively with lane identity and immutable canonical context; do not replace their canonical stage or require old consumers to understand a new event type. The summary DTO and SQL projection both need the new lane field. [S46] [S47] [S7] [S17] [S18] [S38] [S41]--Timeline date edits/deletions need special attention: `appliedAtFromTimeline` currently selects the latest Applied event. Logging an Applied → Applied-category lane move without adapting that helper could later change `appliedAt` merely by editing a timeline date. Distinguish lane-visit anchors from actual canonical transitions/submission anchors. [S39] [S40]--**Display order is not historical progression:** Insights currently uses a fixed semantic pipeline and assumes later categories imply earlier progress. Using a user's arbitrary column order in that calculation could make reordering columns change response rates, sent dates or offers without any application action. Retain canonical milestone calculations; if exact custom-stage conversion is later required, derive it from recorded visits rather than column positions. The existing inferred milestone metrics should not be represented as proof that every intermediate stage was actually visited. [S15] [S16]--## Integration review--- **Public contracts are shared, but not automatic end to end.** REST application routes bind the same DTOs and service as RPC; OpenAPI spreads that router. The summary DTO uses an explicit field pick and its service uses an explicit SQL projection, so adding a database column alone will not return it everywhere. MCP create/update/import/bulk tools derive much of their input/output from DTOs, but List Applications declares its filter fields separately. Expose new lane tools intentionally through direct metadata/handlers or the parity allowlist, with behavior annotations; adding API procedures does not grant MCP access automatically. Keep existing canonical status filters, `byStage` output and create's string ID response; add separate lane filters/counts when needed. Regenerate OpenAPI and verify live tools, static discovery, and actual calls agree. [S3] [S22] [S23] [S24] [S25] [S41] [S48]-- **Three Career writers bypass application CRUD.** `applyReply` directly changes status and appends events; `submitApplication` directly changes Saved → Applied with sent-document/answer snapshots and strict retry checks; `trackOpportunity` directly inserts a Saved application. All need the same transaction-aware lane resolution as standard create/import/update/bulk paths. A nullable lane field plus read fallback can hide missing writes but cannot maintain canonical/lane consistency. Preserve opportunity deduplication and submission idempotency. Employer-message proposals currently allow only Screening / Interview / Offer / Closed, cannot select a custom lane, and may close without supplying a reason. Preserve legacy behavior; new explicit lane proposals must validate ownership, category, outcome and metadata revision. [S26] [S27] [S28] [S29]-- **AI must see labels deliberately.** Structured Career generation sends `stage: application.status`; the cross-application coaching tool selects canonical status without lane metadata. Add lane identity/label alongside category if the coach should distinguish Interview from Take-home; treat custom labels as user data under existing sharing consent. Career proposal staleness currently includes application `updatedAt`, not a separate lane-definition revision. If lane metadata enters a prompt or proposal, validate its revision too; rename/retirement must not leave a stale proposal selecting a now-invalid lane. Background discovery stores opportunities; tracking them creates applications only through the explicit tracking action above. No separate autonomous application-status writer was found in the reviewed job/tool paths. [S36] [S37] [S42] [S28] [S30]-- **Closed does not currently stop every schedule.** `requireCareerApplication` checks ownership/interview existence, not status. Career job execution validates schedule/lease/ownership, then can generate a briefing or create a follow-up notice; the email path checks enabled schedules without checking application category. Therefore Ghosted → Closed preserves current native reminder behavior but does not prove scheduled Career coaching/email will stop. If closure should suppress those jobs, add category guards at execution, result publication and email delivery, with concurrent close/reopen tests. This is a product decision and implementation requirement, not existing behavior. [S30] [S43]-- **Exports need lane definitions, not dangling IDs.** Account export queries application rows and validates them through the application DTO, but a new lane table will not be exported automatically. Add owner-scoped definitions, including retired lanes needed by history, to the service and output schema. Web ZIP packaging explicitly chooses files and must include that metadata; native exports the whole account response as JSON. Existing ZIPs are records plus individually importable documents, not a whole-account restore protocol. Do not promise lossless application/lane/history restoration through CSV or document import. Full database backups must include the new table and constraints; restore/rollback remains a separate untested gate. [S31] [S32] [S33] [S34] [S44]-- **Ownership transfer is a migration path too.** Guest-to-account linking updates application `userId` in a transaction, then the guest is removed. A same-owner `(laneId, userId)` constraint requires coordinated transfer/remapping of lane definitions, application references and historical lane IDs; default system keys may already exist in the destination account. Without it, linking could fail its constraint or guest cleanup could remove referenced metadata. Keep account deletion cascading to owned lanes; lane retirement must never cascade to applications. [S35] [S45] [S2]--## Clean migration and mixed-version rollout--1. **Expand schema and read behavior.** Add user-owned lane definitions and a nullable application lane reference. Seed the six existing lanes for existing owners and new accounts. Use unique system keys per owner so seeding is repeatable. Default label keys retain localization; custom labels remain user content. Index ownership and lane lookups; enforce same-owner relationships in both database design and service validation.-2. **Preserve existing rows.** Backfill each application to the lane matching its canonical status. Preserve all row IDs, dates, closure reasons, documents and timeline event IDs. Historical events can display a canonical/default label when lane identity is absent, without claiming that a user visited a later-created lane. Do not manufacture events or sent snapshots. Consider a separate Ghosted lane only for records with `closedReason = no-response`; other closed applications do not establish ghosting. Preserve null outcomes, which existing APIs allow.-3. **Support concurrent old writes.** Until backfill and rollout complete, absent lane references resolve to the appropriate default. Legacy creates/status transitions must maintain the lane mapping too, so concurrent writes cannot leave drift. The backfill must be repeatable and must not overwrite a custom lane already chosen by a newer client.-4. **Add compatible APIs.** Keep existing status fields and endpoint behavior. New clients send lane ID; the server resolves its category. Legacy clients see the canonical stage, so Take-home appears as Interview. A legacy metadata edit or unchanged-status echo must preserve the current custom lane. A deliberate legacy change to another category chooses that category's default lane. An explicit legacy outcome change conflicting with a Ghosted preset should choose the neutral Closed default, rather than leave the label and outcome contradictory. Existing clients cannot express a choice among multiple lanes in the same category.-5. **Ship web and mobile together at feature level.** Load metadata alongside applications; fall back safely while metadata is loading or unavailable. Key native metadata caches by account/server. New clients must detect lane support on an older self-hosted backend and fall back to fixed stages before writing; do not assume an old endpoint will reject an unknown lane-only payload. Keep new response fields optional/defaulted where older servers omit them. Deploy backend compatibility before the mobile update. The proposed feature can plausibly use existing JavaScript/UI dependencies; native fingerprint/build requirements remain to be verified against the actual implementation. [S21] [S3]-6. **Retire lanes safely.** Prefer retirement over hard deletion. Require a replacement for applications currently using a retired lane, with an explicit rule for any category/outcome changes. Keep historical lane identity and display context. Serialize moves against retire/reorder operations and use an expected revision for concurrent settings edits. Do not cascade-delete applications or rewrite their history.-7. **Keep rollback additive.** Roll back application code while leaving new columns/table intact. Old code can operate on canonical statuses, but it will not maintain lane metadata; re-enable compatible writes and reconcile lane/category drift before restoring the feature. Dropping custom metadata after users start using it would lose information, even if canonical statuses survive.--This model permits a data-preserving migration. Execution characteristics and mixed-version correctness need explicit tests; neither is guaranteed merely because the database migration only adds fields. Rollback reconciliation must inspect all write paths above, not just rerun a null-only backfill: old code can change canonical status while leaving a non-null lane pointing to the previous category.--## Ghosted company warning--Treat the optional warning as a separate, user-scoped lookup against `no-response` outcomes, not a match on the lane label. **Current data only reliably identifies applications still marked Closed → No response:** reopening clears `closedReason`, and stage events do not store it. A durable “previously ghosted” warning therefore needs outcome history going forward, including explicit reason changes within Closed; past cleared outcomes cannot be reconstructed reliably. Preserve canonical category and outcome on historical events instead of resolving historical meaning through mutable lane settings. [S38] [S10]--A renamed lane must not erase the warning, and a lane named “Ghosted” with a different category must not create false history. Normalize company spelling conservatively and show matching prior applications; avoid claiming differently named subsidiaries or similarly named employers are definitely the same company. Trigger an advisory warning when saving/submitting another application, not an automatic block or an automatic transition of old applications. No new company-identity service is necessary for a first version. These are design recommendations; the issue does not specify normalization, warning timing, or whether reopened applications should continue to warn.--## Required implementation proof--- Migration fixtures: all six statuses; all closure reasons and null reason; normalized legacy rejected/archived data; empty accounts; repeated/concurrent seeding and backfill; preserved IDs, dates, events and sent versions.-- Service paths: create, direct creation at a later stage, update, bulk update, CSV import, Career apply-reply/submit/track and MCP calls; same-category lane moves log once; repeated no-op moves log nothing; foreign-owner and retired lane IDs are rejected; guest linking handles existing destination defaults.-- Side effects: no duplicate sent versions; submitted-document protections and submit retries survive; Ghosted closes and native reminder cancellation works; agreed scheduled coaching/email behavior holds during concurrent closure; reopen clears current outcome while preserving any recorded historical outcome; same-category Applied events and timeline edits do not falsify sent dates or semantic analytics.-- Compatibility: old client/new server, new client/old self-hosted server, optional new output fields, unchanged-status legacy echoes, null closure reasons, contradictory lane/category/outcome, stale metadata, rename/retirement during drag, concurrent note plus lane move, lost response and optimistic rollback, summary/detail hydration, rollback writes leaving non-null mismatched lanes.-- Contracts and portability: REST/OpenAPI input/output, MCP List/Create/Update/Import/Bulk and lane-tool discovery/annotations, AI context and stale proposals, account JSON and web ZIP lane metadata, account deletion; cross-account import explicitly remaps foreign IDs and does not claim to restore unavailable history.-- UI: web and native board/list/detail/calendar/Insights, bulk actions, accessible lane management/reordering, many columns, long and international names, default label translations and CSV mapping.--## Evidence and limits--Existing focused baseline suites, run before this integration review:--```sh-pnpm --filter web test src/features/applications/insights.test.ts src/features/applications/next-step.test.ts src/features/applications/csv.test.ts src/features/applications/csv-export.test.ts src/features/applications/use-application-actions.test.tsx src/features/applications/queries.test.ts-```--Result: **6 files, 37 tests passed**. These establish current behavior only; custom-lane behavior is not implemented.--Integration review completed against pinned source: traced REST/OpenAPI/MCP contracts and metadata, Career writers/AI context/scheduled jobs, account exports and guest ownership transfer; searched application inserts and status updates for bypasses. This pass added no tests and made no runtime or database changes.--Repository checks passed: `pnpm lint:agent` and `pnpm format:check`. The research note also passed a focused formatting check after source-link corrections.--**Not verified:** migration execution or rollback against a disposable database; production data distribution, backfill duration or locking; custom-lane prototype; browser/device behavior; mixed-version clients; generated OpenAPI/MCP schema execution; export/restore rehearsal; native fingerprint; hosted CI/deployment. No runtime code, database, GitHub issue, commit, PR or deployment was changed for this assessment.--## Sources--All source links pin the reviewed commit.--[S1]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/schema/src/applications/data.ts#L4-L60-[S2]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/db/src/schema/applications.ts#L18-L82-[S3]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/dto/application.ts#L39-L208-[S4]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/migrations/20261001042749_v6_release/migration.sql#L116-L130-[S5]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/web/src/features/applications/stages.ts#L5-L51-[S6]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/mobile/src/features/applications/list.ts#L24-L61-[S7]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/web/src/features/applications/components/board.tsx#L49-L100-[S8]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/web/src/features/applications/components/add-application-dialog.tsx#L29-L32-[S9]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/web/src/features/applications/components/application-detail-sheet.tsx#L121-L257-[S10]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/applications/service.ts#L53-L216-[S11]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/web/src/features/applications/next-step.ts#L27-L62-[S12]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/mobile/src/features/application-detail/hooks.ts#L82-L91-[S13]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/mobile/src/features/applications/queries.ts#L110-L166-[S14]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/web/src/routes/dashboard/applications/index.tsx#L344-L355-[S15]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/web/src/features/applications/insights.ts#L18-L173-[S16]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/mobile/src/features/applications-board/insights.ts#L19-L137-[S17]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/web/src/features/applications/queries.ts#L17-L32-[S18]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/mobile/src/features/applications/queries.ts#L22-L46-[S19]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/web/src/features/applications/csv.ts#L98-L384-[S20]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/documents/service.ts#L260-L329-[S21]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/AGENTS.md-[S22]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/applications/crud.ts#L8-L136-[S23]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/server/src/openapi/generator.ts#L1-L19-[S24]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/mcp/src/tool-meta.ts#L515-L680-[S25]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/mcp/src/parity.ts#L25-L108-[S26]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/career/service.ts#L748-L828-[S27]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/career/service.ts#L880-L981-[S28]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/career/service.ts#L1034-L1065-[S29]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/schema/src/career.ts#L186-L211-[S30]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/career/jobs.ts#L349-L516-[S31]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/auth/service.ts#L52-L105-[S32]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/auth/router.ts#L209-L262-[S33]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/web/src/features/settings/account/export.ts#L12-L31-[S34]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/apps/mobile/src/features/settings/export.tsx#L8-L25-[S35]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/auth/src/config.ts#L173-L248-[S36]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/career/generate.ts#L196-L218-[S37]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/career/tools.ts#L167-L185-[S38]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/schema/src/applications/data.ts#L149-L163-[S39]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/applications/service.ts#L80-L104-[S40]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/applications/service.ts#L848-L929-[S41]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/applications/service.ts#L405-L429-[S42]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/career/service.ts#L625-L644-[S43]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/career/service.ts#L45-L60-[S44]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/docs/guides/exporting-your-data.mdx#L29-L46-[S45]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/auth/src/config.ts#L673-L683-[S46]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/applications/service.ts#L614-L720-[S47]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/features/applications/service.ts#L948-L1004-[S48]: https://github.com/reactive-resume/reactive-resume/blob/aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9/packages/api/src/dto/application.ts#L283-L307diff --git a/.agents/docs/research/job-integrations-2026-09-30.md b/.agents/docs/research/job-integrations-2026-09-30.mddeleted file mode 100644index cea627469..000000000--- a/.agents/docs/research/job-integrations-2026-09-30.md+++ /dev/null@@ -1,61 +0,0 @@-# Job discovery, page reading, and application integrations--Research date: September 30, 2026. Sources are official API documentation and provider-owned repositories. API behavior is documented capability, not a measured success rate on Reactive Resume users' URLs. No paid-provider benchmark or pricing comparison was performed.--## Verified capabilities--### Search and supplied-URL reading overlap, but differ--| Provider | Documented capability | Consequence for job importing |-| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |-| Firecrawl | Search returns titles, descriptions, and URLs; optional `scrapeOptions` adds full-page Markdown, HTML, links, or screenshots. A separate search-then-scrape flow is supported. | Firecrawl already covers both research and page reading. It need not be the only reader, and a search response alone need not contain the description. [Search documentation](https://docs.firecrawl.dev/features/search) |-| Tavily | Search is distinct from Extract. Extract reads supplied URLs in Markdown or text. Supplying `query` reranks content into a bounded set of short chunks. Per-URL failures can accompany an HTTP 200 response. | For a job description, omit query-focused chunk extraction and inspect successful and failed results. [Extract API](https://docs.tavily.com/documentation/api-reference/endpoint/extract), [Extract best practices](https://docs.tavily.com/documentation/best-practices/best-practices-extract) |-| Parallel | Search returns objective-relevant excerpts. Extract reads supplied public URLs, including JavaScript-heavy pages and PDFs; it offers focused excerpts or requested full-page Markdown. | Full content must be requested for importing a job. Focused excerpts fit research better. [Search quickstart](https://docs.parallel.ai/search/search-quickstart), [Extract quickstart](https://docs.parallel.ai/extract/extract-quickstart) |-| Exa | Search can request content. Contents separately reads supplied URLs with text, highlights, or summaries. Cached content is used unless freshness options call for fetching. Text output can have a character limit. | Explicitly select text and freshness appropriate to a live posting; highlights and summaries are not a complete description. [Contents API](https://exa.ai/docs/reference/get-contents), [Contents retrieval](https://exa.ai/docs/reference/contents-retrieval) |-| Jina Reader | `r.jina.ai` reads a supplied URL. `s.jina.ai` performs search and can fetch the top results' content. Reader supports browser and lightweight fetching. | Suitable as an independent reader candidate; source completeness still needs evaluation. [Provider-owned Reader documentation](https://github.com/jina-ai/reader) |--**Inference:** None of these capability lists establishes the best default for Reactive Resume. Benchmark completion of the actual task: a usable, sufficiently complete job description, acceptable latency, source freshness, language coverage, and cost per successful import. Measure company-research quality separately.--### Structured ATS reads improve known-board coverage--| ATS | Verified read capability | Verified submission boundary |-| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| Greenhouse | Job Board GET endpoints require no authentication. Company-board job lists can include full descriptions with `content=true`; individual jobs expose posting-specific questions. | Application POST requires Basic Auth with a Job Board API key. This is separate from public reading. [Job Board API](https://docs.greenhouse.io/job-board.html) |-| Ashby | Public postings API returns an organization's published jobs with HTML/plain descriptions, locations, workplace type, published timestamp, job URL, application URL, and optional compensation. Missing source fields remain missing. `isListed=false` denotes a posting intended to be available only by direct link. | `applicationForm.submit` requires `candidatesWrite` permission. [Public postings API](https://developers.ashbyhq.com/docs/public-job-posting-api), [Application submission API](https://developers.ashbyhq.com/reference/applicationformsubmit) |-| Lever | Public postings are scoped by company site. Responses include plain/HTML description fields, additional sections, categories, hosted URL, and application URL. It does not offer full-text search across all open jobs or expose custom application questions. | Submission POST requires an API key generated by the employer account's Super Admin. Lever recommends its hosted form for handling custom forms, availability, queues, and retries. [Provider-owned Postings API](https://github.com/lever/postings-api) |--**Inference:** These APIs can resolve a supported job link reliably and can power a followed-company jobs list. They are not a global job index. Broad discovery needs separately evaluated search coverage or a licensed job feed; presenting general web search as a complete jobs database would overstate coverage. Do not list unlisted postings discovered through a board feed in broad discovery.--**Inference:** Public ATS reading does not authorize universal candidate submission or provide employer credentials. Start with an employer-hosted application link and an explicit user-confirmed application record. Only add direct submission where an authorized integration provides the necessary access and reliable confirmation.--### A jobs database is a separate integration--Adzuna's search endpoint queries its job-ad database through country-scoped routes. Its examples support role keywords, location, salary minimum, full-time/permanent filters, and sorting. Returned fields include employer, title, location, salary, date, and a redirect URL. The documentation explicitly says the description is a snippet. [Search ads API](https://developer.adzuna.com/docs/search), [API overview](https://developer.adzuna.com/overview)--Adzuna's API terms require listing attribution, give it discretion over access, and place conditions on commercial/research uses. They also restrict contacting third-party content providers. Integration evaluation must cover these terms as well as API fields. [API terms](https://developer.adzuna.com/docs/terms_of_service)--**Inference:** A dedicated job-search backend can support useful applicant filters that generic web results do not reliably carry. A discovery snippet is insufficient for tailoring; obtain complete content through a permitted path or the applicant. Adzuna is an example to evaluate by target country and access terms, not a verified universal recommendation; its redirect URL should not be represented as a confirmed direct employer application URL.--## Recommended product direction--These recommendations are product judgments derived from the capabilities above, not provider promises:--Scope: extend the existing job-import and application-management flow. The repository audit already identified direct HTML/JSON-LD reading with pasted-text recovery, Firecrawl rendering, saved/applied stages, and submitted-document snapshots; these recommendations should preserve and connect those foundations rather than introduce a parallel product.--1. Make “Save a job” the core action. Accept a link or pasted text without forcing the applicant to understand scraping services. Resolve recognized ATS URLs through their documented public APIs; use the configured reader for other public URLs; preserve pasted-text recovery.-2. Save an immutable source snapshot with canonical job URL, application URL, retrieval time, and extraction method. Distinguish source facts from inferred fields and missing fields. Let users correct the draft before creating application documents.-3. Treat research, page reading, and job discovery as three capabilities. Credentials can be one connection offering several capabilities. General settings need not expose several vendor selectors during the applicant's first job import; advanced settings can select defaults and test a connection.-4. Keep the applicant's resume out of web search and reading requests. Public URLs and narrow company queries are enough; combine retrieved content with applicant evidence inside the existing authorized AI workflow.-5. Make tailoring reviewable. Show requirements beside resume evidence, identify gaps, and propose edits with a diff. Do not convert unknown experience or qualifications into confident claims. Preserve the base resume and bind the final submitted document version to the application record.-6. “Prepare application” can create the resume, cover letter, and reusable answers. “Open employer application” hands off to the canonical form. Only mark submitted after user confirmation or a trustworthy submission receipt; opening a URL is not an application.-7. Build provider openness incrementally: retain Firecrawl, add one complementary reader after a small benchmark, then expose community adapters with a documented contract. A custom endpoint should be a deployment-owner feature with the existing network protections, not arbitrary tenant access to internal services.--## Small benchmark before choosing a default--Use a fixed, public corpus covering Greenhouse, Ashby, Lever, custom career sites, JavaScript-heavy postings, non-English descriptions, closed jobs, redirects, and inaccessible pages. Record description completeness, preserved requirements and compensation, wrong-page detection, freshness, latency, failure recovery, and cost per usable import. Record provider modes and output limits so a summary is not compared with full text. Never use private resumes in this corpus.--For discovery, evaluate location and remote eligibility, relevant role coverage, stale listings, duplicate resolution, and direct application URLs. Review actual candidate correction and preparation time. Application count alone rewards low-quality automation.--## Research limitations--No requests were made with paid credentials; no applications were submitted. Pricing, quotas, and vendor performance were not benchmarked. Pricing and vendor marketing performance claims are intentionally excluded. Context7 resolution and current documentation were used for Firecrawl, Tavily, Parallel, Exa, Jina, Greenhouse, and Ashby. Context7 returned no relevant Lever or Adzuna library after two resolutions each; official repository or website documentation supplied their API evidence instead. Deployment-specific reliability, storage terms, quotas, and language success rates need validation before selecting a hosted default.diff --git a/.agents/docs/research/reactive-resume-v6-launch-media-2026-10-02.md b/.agents/docs/research/reactive-resume-v6-launch-media-2026-10-02.mddeleted file mode 100644index 5027af87d..000000000--- a/.agents/docs/research/reactive-resume-v6-launch-media-2026-10-02.md+++ /dev/null@@ -1,93 +0,0 @@-# Reactive Resume v6 launch media research--Research date: 2026-10-02. Question: which media should accompany a founder's organic launch announcement on LinkedIn, X, and Show HN?--Recommended launch package: **single product image or short PDF document carousel on LinkedIn; product image on the first X post and native demo video as a follow-up; working app/demo link on Show HN, with optional media on the destination.** These are editorial recommendations informed by the evidence, not guaranteed reach rankings. Most observations are from 2025 or early 2026.--## LinkedIn: evidence and recommendation--**For a personal founder account, a strong product image or document carousel is the better supported reach default. Native video remains useful for demonstrating the product; there is no reliable evidence here that GIFs win reach.** This is a judgment from the studies below, not a guaranteed algorithm rule.--### Metricool: personal profiles, with actual impression data--Released April 14, 2026; 673,658 posts from 63,108 accounts worldwide, comparing January–February 2025 with January–February 2026. First edition including both personal profiles and company pages. [Metricool release and sample](https://metricool.com/press-release-linkedin-study-2026/).--The personal-profile table on printed page 28 gives these **averages per post**, visually checked against the PDF chart:--| Format | Impressions | Interactions | Engagement rate |-| ----------------- | ----------: | -----------: | --------------: |-| Document carousel | 1,451.19 | 20.86 | 1.44% |-| Single image | 1,186.74 | 21.51 | 1.81% |-| Text | 1,045.15 | 12.20 | 1.06% |-| Poll | 717.71 | 2.82 | 0.39% |-| Video | 605.57 | 10.87 | 1.80% |-| Multi-image | 338.42 | 12.56 | 3.71% |--Carousel/image impressions were approximately 2.40×/1.96× video. Multi-image's highest engagement rate coincided with the lowest impressions: engagement does not equal distribution. Impressions count displays, including repeats. Outliers stayed in; zero-impression/zero-interaction posts were excluded. Personal-profile engagement excludes clicks. Means do not isolate format from audience, content, or creator differences. The methodology does not clearly document exclusion of all promoted content. [Metricool study, pp. 28 and 41](https://metricool.com/wp-content/uploads/Linkedin-Study-2026-EN.pdf).--Personal analytics are restricted to posts published through Metricool, creating selection bias. [Metricool analytics scope](https://help.metricool.com/linkedin-personal-profile-metrics-h3usk).--### Buffer: engagement evidence, not a LinkedIn reach comparison--March 2026 report, 52M+ Buffer posts; latest data December 3, 2025. LinkedIn median engagement: carousel **21.77%**, video **7.35%**, image **6.52%**. No LinkedIn format reach table; video-for-reach is explicitly speculation. Profile/page split undisclosed; metrics differ from Metricool. [Buffer report](https://buffer.com/resources/state-of-social-media-engagement-2026/). Companion methodology inconsistently specifies followers as denominator. [Companion page](https://buffer.com/social-media-benchmarks/state-of-social-media-engagement-2026).--### Socialinsider: company pages only--Published March 16, 2026, with quarterly updates. Sample: **1.3M posts, 16,645 business pages, January 2024–December 2025**. Main “2026” benchmarks are actually 2025 observations; Q2 2026 engagement is a separate update.--2025 average engagement by impressions: document **7.00%**, multi-image **6.45%**, video **6.00%**, image **5.30%**. Average impressions for pages with 1–5K followers: document **525**, multi-image **490**, video **355**, image **315**; 5–10K: **550 / 1,210 / 590 / 430** respectively. These support documents or images as plausible alternatives, but cannot establish founder-profile behavior. The prose says multi-image wins for all pages below 50K; its own 1–5K table instead puts documents first. Claimed 36% decline concerns video views, not every format's reach. [Socialinsider original benchmarks and methodology](https://www.socialinsider.io/social-media-benchmarks/linkedin).--### AuthoredUp: corroborating profile data, with weaker methodological disclosure--Updated September 2, 2026; **3M+ personal-profile posts, March 2025–February 2026**. Reported reach multipliers relative to each profile's median: document **1.39×**, image **1.20×**, video **0.86×**; engagement multipliers **1.30× / 1.33× / 0.93×**. Images lead below 5K followers; documents lead at 20K–50K and 50K+. This makes a single image especially reasonable for a smaller founder audience.--Caveats: no account count, uncertainty intervals, fully reproducible aggregation method, or clear reach-field definition. Some prose contradicts tables: polls have higher reach than documents; image engagement multiplier exceeds document. Use reported tables as corroboration, not its universal algorithm explanations. [AuthoredUp format analysis](https://authoredup.com/blog/best-performing-content-on-linkedin).--The **36,946-video** duration subset reports >3-minute videos at **1.21×** typical video reach, versus 30–60 seconds at **0.95×**. However, its video guide dates the sample March 2025–February 2026, while its format article dates it October 2025–March 2026. This is insufficient justification to lengthen a launch trailer. Length also covaries with topic and creator. [AuthoredUp video analysis](https://authoredup.com/blog/linkedin-video-posts), [conflicting sample window](https://authoredup.com/blog/best-performing-content-on-linkedin).--### What official LinkedIn guidance establishes--LinkedIn reported **36% year-over-year growth in video watching** in February 2025. Platform-wide growth does not establish greater reach per launch post. [LinkedIn product announcement](https://www.linkedin.com/pulse/up-36-over-last-year-video-linkedin-booming-time-now-somasundaram-yqbzc/).--Its March 12, 2026 engineering article describes ranking using professional relevance and historical reading, skips, dwell, likes, comments, and shares. It does not publish a universal media-format multiplier. [LinkedIn feed engineering](https://www.linkedin.com/blog/engineering/feed/engineering-the-next-generation-of-linkedins-feed).--GIF uploads are supported, but none of the studies above isolates GIF performance. Support is not evidence of superior reach. [LinkedIn supported media](https://www.linkedin.com/help/linkedin/answer/a564109).--### Practical LinkedIn choice for this launch--- **Main anniversary post:** use a sharp image showing the actual v6 editor and finished resume. If a carousel is easy to reuse, make a short PDF with a launch cover, editor, templates, and two or three substantial features. Keep the personal six-year story in the caption. Single image is the simplest defensible option; carousel helps readers explore multiple changes.-- **Follow-up demonstration:** upload the existing showreel natively, with a readable cover, captions/on-screen explanation, and useful product action immediately. A suggested 30–60-second cut is an editorial choice for this launch, not a proven LinkedIn optimum. Do not pad it to match a duration benchmark.-- **GIF:** use only if one brief loop explains a feature more clearly. No evidence warrants choosing it for a reach boost.-- **Measure:** impressions/reach, outbound visits, and new signups. Engagement and video views are supporting metrics. A sequential launch and follow-up cannot isolate format effects because timing and audience fatigue differ.--All quantitative format studies here are observational. They describe their own user samples and dates; none randomly assigns the same Reactive Resume post to video, GIF, and image.--## X: evidence and recommendation--Buffer's March 5, 2026 report gives median engagement rates of **3.56% text, 3.40% images, 2.96% video, 2.25% links**. Its primary windows cover 2025, with latest observations through December 3. These are Buffer users' posts and engagement rates, not format-specific reach rankings. The evidence supports images as an engagement default, without proving greater distribution. [Original Buffer report](https://buffer.com/resources/state-of-social-media-engagement-2026/).--Metricool's 2026 cross-platform study covers **1,123,528 X posts from 15,116 accounts** in 2025. Video average interactions rose from **81.15 to 110.01**. Its X section does not supply a comparable video/image/GIF impression table. Absolute interaction averages cannot settle the reach question or contradict a median engagement-rate comparison by themselves. [Metricool report, pp. 4 and 58–59](https://metricool.com/wp-content/uploads/Social-Media-Study-2026-EN.pdf).--An older official X Business article reports **55% more engagements for GIF posts versus posts without GIFs**, from an internal study of 3.7M users. It uses 2019 examples, lacks a study window and detailed methodology, and does not compare GIFs against images or videos or measure reach. Treat it as historical marketing evidence, not a 2026 format ranking. [Original X Business article](https://business.x.com/de/blog/6-ways-gifs-twitter-strategy).--Official X Help says native videos and GIFs both autoplay, subject to viewers' settings; autoplay is not a GIF-only advantage. [X Help](https://help.x.com/en/using-x/x-videos).--**Practical choice:** attach a readable screenshot or product launch image to the first post. Use a native MP4 demonstration in a follow-up or thread reply. A 15–30-second cut, showing a useful action immediately and understandable without sound, is an editorial suggestion, not a proven optimal duration. GIF is reasonable for one short repeating action; no current primary comparison found establishes it as the reach winner.--## Show HN: product access matters more than attachment format--The standard Show HN listing displays titles and links, without native image/video/GIF feed attachments. This is a direct observation of the current first-party interface, not an engagement study. A thumbnail on the destination does not create a thumbnail in this list. [Current Show HN listing](https://news.ycombinator.com/show).--Show HN's official guidance prioritizes something readers can actually try, preferably without signup/email barriers, and rejects landing-page-only submissions. Major overhauls can qualify; small version updates generally do not. [Show HN guidelines](https://news.ycombinator.com/showhn.html).--**Practical choice:** submit the working app or accessible demo. Show a clear screenshot and optional short demo video on that destination. Keep the real product easy to reach. No credible controlled media-format reach comparison found for Show HN.--If the submission links directly to a video, HN asks for **[video]** in the title. Current general guidelines also prohibit generated or AI-edited submissions/comments, so the previous AI-written HN draft should be treated as planning notes; the author should write the final HN text themselves. [HN guidelines](https://news.ycombinator.com/newsguidelines.html).--## Creative and measurement choices for this launch--- Make the static asset useful by itself: readable v6 editor and finished resume, product name/version, and a short free/open-source message. These are creative recommendations, not measured guarantees.-- For LinkedIn, distinguish a PDF document carousel from a post containing several separate images; the studies report materially different impression results.-- If using video, upload the file natively on LinkedIn/X, add a cover and captions/on-screen text, and start with the product's useful behavior. Do not require watching a long intro before seeing the app. LinkedIn supports custom thumbnails and captions. [LinkedIn video help](https://www.linkedin.com/help/linkedin/answer/a7174587).-- Compare post impressions, visits to the app, and useful downstream actions such as starting/exporting a resume. Do not treat autoplay video views as equivalent to visitors or unique people reached.-- An image announcement followed by a video demo is a distribution plan, not an A/B experiment: content, time, exposure, and audience differ.diff --git a/.agents/docs/research/redact-results.json b/.agents/docs/research/redact-results.jsondeleted file mode 100644index 82563f6aa..000000000--- a/.agents/docs/research/redact-results.json+++ /dev/null@@ -1,556 +0,0 @@-{- "date": "2026-10-27T01:36:51.018Z",- "node": "v24.22.1",- "browser": "156.0.8078.4",- "cpuThrottle": 4,- "network": "Loopback, gzip, no simulated network latency; public APIs stubbed; external requests blocked",- "sizes": {- "react": {- "eager": {- "raw": 1066294,- "gzip": 340880,- "files": 45- },- "all": {- "raw": 23765623,- "gzip": 7266329,- "files": 322- }- },- "redact": {- "eager": {- "raw": 888845,- "gzip": 294793,- "files": 45- },- "all": {- "raw": 23503047,- "gzip": 7216429,- "files": 322- }- }- },- "summary": [- {- "path": "/",- "react": {- "entryEvaluatedMs": 391.0500000715256,- "fcpMs": 308,- "scriptMs": 379.846- },- "redact": {- "entryEvaluatedMs": 362.25,- "fcpMs": 298,- "scriptMs": 239.5- }- },- {- "path": "/ats-checker",- "react": {- "entryEvaluatedMs": 241.94999992847443,- "fcpMs": 112,- "scriptMs": 285.236- },- "redact": {- "entryEvaluatedMs": 226.75000005960464,- "fcpMs": 110,- "scriptMs": 199.8295- }- },- {- "path": "/auth/login",- "react": {- "entryEvaluatedMs": 233.0999999642372,- "fcpMs": 116,- "scriptMs": 262.2835- },- "redact": {- "entryEvaluatedMs": 219.44999998807907,- "fcpMs": 114,- "scriptMs": 224.4445- }- }- ],- "samples": [- {- "name": "react",- "path": "/",- "round": 0,- "entryEvaluatedMs": 383.2000000476837,- "fcpMs": 312,- "scriptMs": 375.517- },- {- "name": "react",- "path": "/ats-checker",- "round": 0,- "entryEvaluatedMs": 236.19999992847443,- "fcpMs": 104,- "scriptMs": 279.899- },- {- "name": "react",- "path": "/auth/login",- "round": 0,- "entryEvaluatedMs": 230.79999995231628,- "fcpMs": 116,- "scriptMs": 255.04700000000003- },- {- "name": "redact",- "path": "/",- "round": 0,- "entryEvaluatedMs": 356.39999997615814,- "fcpMs": 296,- "scriptMs": 238.309- },- {- "name": "redact",- "path": "/ats-checker",- "round": 0,- "entryEvaluatedMs": 226.70000004768372,- "fcpMs": 112,- "scriptMs": 203.964- },- {- "name": "redact",- "path": "/auth/login",- "round": 0,- "entryEvaluatedMs": 223.10000002384186,- "fcpMs": 116,- "scriptMs": 226.016- },- {- "name": "redact",- "path": "/",- "round": 1,- "entryEvaluatedMs": 367,- "fcpMs": 304,- "scriptMs": 238.364- },- {- "name": "redact",- "path": "/ats-checker",- "round": 1,- "entryEvaluatedMs": 232.40000009536743,- "fcpMs": 108,- "scriptMs": 200.509- },- {- "name": "redact",- "path": "/auth/login",- "round": 1,- "entryEvaluatedMs": 218.10000002384186,- "fcpMs": 112,- "scriptMs": 225.48000000000002- },- {- "name": "react",- "path": "/",- "round": 1,- "entryEvaluatedMs": 375.7999999523163,- "fcpMs": 304,- "scriptMs": 380.627- },- {- "name": "react",- "path": "/ats-checker",- "round": 1,- "entryEvaluatedMs": 244,- "fcpMs": 112,- "scriptMs": 291.626- },- {- "name": "react",- "path": "/auth/login",- "round": 1,- "entryEvaluatedMs": 231.79999995231628,- "fcpMs": 116,- "scriptMs": 260- },- {- "name": "react",- "path": "/",- "round": 2,- "entryEvaluatedMs": 382,- "fcpMs": 308,- "scriptMs": 379.065- },- {- "name": "react",- "path": "/ats-checker",- "round": 2,- "entryEvaluatedMs": 241.69999992847443,- "fcpMs": 112,- "scriptMs": 285.714- },- {- "name": "react",- "path": "/auth/login",- "round": 2,- "entryEvaluatedMs": 234.60000002384186,- "fcpMs": 116,- "scriptMs": 262.606- },- {- "name": "redact",- "path": "/",- "round": 2,- "entryEvaluatedMs": 380.89999997615814,- "fcpMs": 316,- "scriptMs": 245.578- },- {- "name": "redact",- "path": "/ats-checker",- "round": 2,- "entryEvaluatedMs": 223.80000007152557,- "fcpMs": 112,- "scriptMs": 191.399- },- {- "name": "redact",- "path": "/auth/login",- "round": 2,- "entryEvaluatedMs": 222,- "fcpMs": 116,- "scriptMs": 223.409- },- {- "name": "redact",- "path": "/",- "round": 3,- "entryEvaluatedMs": 357,- "fcpMs": 296,- "scriptMs": 238.125- },- {- "name": "redact",- "path": "/ats-checker",- "round": 3,- "entryEvaluatedMs": 226.80000007152557,- "fcpMs": 112,- "scriptMs": 199.15- },- {- "name": "redact",- "path": "/auth/login",- "round": 3,- "entryEvaluatedMs": 220.69999992847443,- "fcpMs": 112,- "scriptMs": 238.596- },- {- "name": "react",- "path": "/",- "round": 3,- "entryEvaluatedMs": 426.89999997615814,- "fcpMs": 344,- "scriptMs": 402.381- },- {- "name": "react",- "path": "/ats-checker",- "round": 3,- "entryEvaluatedMs": 242.70000004768372,- "fcpMs": 112,- "scriptMs": 284.75800000000004- },- {- "name": "react",- "path": "/auth/login",- "round": 3,- "entryEvaluatedMs": 236.10000002384186,- "fcpMs": 116,- "scriptMs": 262.44800000000004- },- {- "name": "react",- "path": "/",- "round": 4,- "entryEvaluatedMs": 398.90000009536743,- "fcpMs": 308,- "scriptMs": 396.482- },- {- "name": "react",- "path": "/ats-checker",- "round": 4,- "entryEvaluatedMs": 242.19999992847443,- "fcpMs": 116,- "scriptMs": 293.17199999999997- },- {- "name": "react",- "path": "/auth/login",- "round": 4,- "entryEvaluatedMs": 227.10000002384186,- "fcpMs": 112,- "scriptMs": 253.991- },- {- "name": "redact",- "path": "/",- "round": 4,- "entryEvaluatedMs": 366.2999999523163,- "fcpMs": 304,- "scriptMs": 244.886- },- {- "name": "redact",- "path": "/ats-checker",- "round": 4,- "entryEvaluatedMs": 242.5,- "fcpMs": 132,- "scriptMs": 210.238- },- {- "name": "redact",- "path": "/auth/login",- "round": 4,- "entryEvaluatedMs": 213.29999995231628,- "fcpMs": 112,- "scriptMs": 220.20100000000002- },- {- "name": "redact",- "path": "/",- "round": 5,- "entryEvaluatedMs": 352.40000009536743,- "fcpMs": 296,- "scriptMs": 241.154- },- {- "name": "redact",- "path": "/ats-checker",- "round": 5,- "entryEvaluatedMs": 225.10000002384186,- "fcpMs": 112,- "scriptMs": 196.79399999999998- },- {- "name": "redact",- "path": "/auth/login",- "round": 5,- "entryEvaluatedMs": 208.89999997615814,- "fcpMs": 108,- "scriptMs": 218.272- },- {- "name": "react",- "path": "/",- "round": 5,- "entryEvaluatedMs": 377.7999999523163,- "fcpMs": 304,- "scriptMs": 372.544- },- {- "name": "react",- "path": "/ats-checker",- "round": 5,- "entryEvaluatedMs": 236.80000007152557,- "fcpMs": 112,- "scriptMs": 271.18199999999996- },- {- "name": "react",- "path": "/auth/login",- "round": 5,- "entryEvaluatedMs": 225.60000002384186,- "fcpMs": 112,- "scriptMs": 260.978- },- {- "name": "react",- "path": "/",- "round": 6,- "entryEvaluatedMs": 406.89999997615814,- "fcpMs": 304,- "scriptMs": 377.5- },- {- "name": "react",- "path": "/ats-checker",- "round": 6,- "entryEvaluatedMs": 238.19999992847443,- "fcpMs": 128,- "scriptMs": 281.209- },- {- "name": "react",- "path": "/auth/login",- "round": 6,- "entryEvaluatedMs": 235.30000007152557,- "fcpMs": 116,- "scriptMs": 262.11899999999997- },- {- "name": "redact",- "path": "/",- "round": 6,- "entryEvaluatedMs": 364,- "fcpMs": 300,- "scriptMs": 240.636- },- {- "name": "redact",- "path": "/ats-checker",- "round": 6,- "entryEvaluatedMs": 224.29999995231628,- "fcpMs": 108,- "scriptMs": 194.596- },- {- "name": "redact",- "path": "/auth/login",- "round": 6,- "entryEvaluatedMs": 218.20000004768372,- "fcpMs": 116,- "scriptMs": 218.487- },- {- "name": "redact",- "path": "/",- "round": 7,- "entryEvaluatedMs": 360.5,- "fcpMs": 300,- "scriptMs": 231.94699999999997- },- {- "name": "redact",- "path": "/ats-checker",- "round": 7,- "entryEvaluatedMs": 226.39999997615814,- "fcpMs": 108,- "scriptMs": 191.915- },- {- "name": "redact",- "path": "/auth/login",- "round": 7,- "entryEvaluatedMs": 212.5,- "fcpMs": 112,- "scriptMs": 221.98000000000002- },- {- "name": "react",- "path": "/",- "round": 7,- "entryEvaluatedMs": 372,- "fcpMs": 300,- "scriptMs": 375.669- },- {- "name": "react",- "path": "/ats-checker",- "round": 7,- "entryEvaluatedMs": 238.10000002384186,- "fcpMs": 112,- "scriptMs": 281.82099999999997- },- {- "name": "react",- "path": "/auth/login",- "round": 7,- "entryEvaluatedMs": 234.39999997615814,- "fcpMs": 120,- "scriptMs": 267.317- },- {- "name": "react",- "path": "/",- "round": 8,- "entryEvaluatedMs": 432.7999999523163,- "fcpMs": 312,- "scriptMs": 396.61899999999997- },- {- "name": "react",- "path": "/ats-checker",- "round": 8,- "entryEvaluatedMs": 258.1999999284744,- "fcpMs": 116,- "scriptMs": 297.413- },- {- "name": "react",- "path": "/auth/login",- "round": 8,- "entryEvaluatedMs": 223.30000007152557,- "fcpMs": 112,- "scriptMs": 289.008- },- {- "name": "redact",- "path": "/",- "round": 8,- "entryEvaluatedMs": 350.5,- "fcpMs": 296,- "scriptMs": 231.838- },- {- "name": "redact",- "path": "/ats-checker",- "round": 8,- "entryEvaluatedMs": 231,- "fcpMs": 108,- "scriptMs": 213.564- },- {- "name": "redact",- "path": "/auth/login",- "round": 8,- "entryEvaluatedMs": 232.10000002384186,- "fcpMs": 124,- "scriptMs": 252.639- },- {- "name": "redact",- "path": "/",- "round": 9,- "entryEvaluatedMs": 404.89999997615814,- "fcpMs": 292,- "scriptMs": 242.971- },- {- "name": "redact",- "path": "/ats-checker",- "round": 9,- "entryEvaluatedMs": 252.80000007152557,- "fcpMs": 108,- "scriptMs": 231.222- },- {- "name": "redact",- "path": "/auth/login",- "round": 9,- "entryEvaluatedMs": 241.09999990463257,- "fcpMs": 124,- "scriptMs": 244.67600000000002- },- {- "name": "react",- "path": "/",- "round": 9,- "entryEvaluatedMs": 422.1999999284744,- "fcpMs": 312,- "scriptMs": 395.98499999999996- },- {- "name": "react",- "path": "/ats-checker",- "round": 9,- "entryEvaluatedMs": 244.30000007152557,- "fcpMs": 112,- "scriptMs": 301.85699999999997- },- {- "name": "react",- "path": "/auth/login",- "round": 9,- "entryEvaluatedMs": 238.69999992847443,- "fcpMs": 120,- "scriptMs": 292.03200000000004- }- ]-}diff --git a/.agents/docs/research/redact.md b/.agents/docs/research/redact.mddeleted file mode 100644index 21685b921..000000000--- a/.agents/docs/research/redact.md+++ /dev/null@@ -1,136 +0,0 @@-# TanStack Redact evaluation--Measured October 27, 2026 against source `b700ed9d7309dfc9fba0c33e0bf5429811f0b610`, React 19.3.1,-Redact 0.2.0, Vite+ 1.3.0, Node 24.22.1, Chromium 156.0.8078.4. Dependency is pinned for reproducibility.--## Decision--**Removed on October 27, 2026; native React is the only runtime.** The gain (13.5% less eager JavaScript, about 6–7%-faster entry evaluation, small first-paint differences) is not worth carrying a second runtime: an existing-keyboard-focus browser test fails with Redact, Redact 0.2.1 still doesn't focus `autoFocus` controls on mount, and-the interaction risks below are unmeasured. The rest of this page records the evaluation as it ran.--The opt-in build mode (`pnpm --filter web build --mode redact`), its resolver test (`apps/web/src/redact.test.ts`) and-the benchmark script (`tooling/redact/benchmark.mjs`) live in commit `a23bbd068`. Restore them from there to-re-evaluate, after upstream fixes mount-time focus.--In that mode, no application React imports, shared package APIs, mobile runtime, or backend runtime changed. React-Compiler stayed enabled. Redact's default `full` preset was retained; no optional compatibility features were removed-to improve results.--## Integration boundaries--- Redact's Vite plugin aliases the web DOM runtime and its server prerenderer.-- `packages/pdf`, `@formepdf/react`, `react-reconciler`, and React's own internal imports retain native React, JSX,- compiler runtime, and scheduler resolution. Our Forme/template renderer uses `react-reconciler`'s private dispatcher;- Redact's ordinary React entry does not expose the internals it expects. Aliasing that graph wholesale is unsafe.-- PDF workers retain their existing native React build. The main-thread PDF fallback and resume web-page preview- also reach the native template graph through the importer-based resolver.-- The same resolver runs in Vite's dependency optimizer. Without it, development prebundles imported native React- inside TanStack Router and failed with an invalid-hook-call/null dispatcher, even though production builds worked.-- Redact-mode prerendering bundles dependencies (`ssr.noExternal: true`). The unmodified plugin integration failed- prerendering with `Cannot read properties of undefined (reading '_currentValue')`: external dependencies were- still constructing native React contexts while the bundled renderer used Redact.-- Config tests cover native production defaults and resolution of both runtime graphs, including compiler runtime- and scheduler. They are complemented by real browser PDF export coverage; they do not prove every third-party- component compatible.--## Measured bundle difference--Sizes are bytes compressed with Node's default gzip, summed **per file**. Decimal KB below means 1,000 bytes.-Eager JavaScript is the browser entry, HTML module preloads, and recursively followed static JavaScript imports;-it excludes lazy route imports. All JavaScript includes emitted locale chunks and workers; it is not a page download.--| Output | Native React | Redact | Difference |-| ------------------------------ | -----------: | ----------: | -------------------: |-| Eager JavaScript, gzip | 340,880 B | 294,793 B | -46,087 B (-13.52%) |-| Eager JavaScript, uncompressed | 1,066,294 B | 888,845 B | -177,449 B (-16.64%) |-| All emitted `.js`, gzip | 7,266,329 B | 7,216,429 B | -49,900 B (-0.69%) |--Both builds emitted 322 `.js` assets, with 45 in the eager graph. `.mjs`, CSS, fonts, images, and WASM are outside-these JavaScript totals. Keeping native React for custom renderers is included in the Redact result.--## Measured public-page startup--One discarded warm-up per page/runtime, then ten fresh browser contexts per page/runtime, alternating renderer order.-Three routes, 60 retained samples. Chromium uses 4x CPU throttling, light color scheme, English locale, and reduced-motion. Both snapshots use the same loopback gzip static server, deterministic signed-out public API fixtures,-no browser cache, and blocked external requests. No network latency or bandwidth throttling is simulated.--| Route | Entry module evaluated: React / Redact | First contentful paint: React / Redact | Script execution: React / Redact |-| -------------- | -------------------------------------: | -------------------------------------: | -------------------------------: |-| `/` | 391.1 / 362.3 ms | 308 / 298 ms | 379.8 / 239.5 ms |-| `/ats-checker` | 241.9 / 226.8 ms | 112 / 110 ms | 285.2 / 199.8 ms |-| `/auth/login` | 233.1 / 219.4 ms | 116 / 114 ms | 262.3 / 224.4 ms |--Values are medians, not confidence intervals. Entry evaluation is measured by the entry module script's `load`-event, including its top-level awaits; it is not time to interactive. Script duration is Chromium's accumulated-`ScriptDuration`, sampled after a successful theme toggle or login-input fill, not a pure renderer microbenchmark.-The benchmark asserts those interactions succeed and that no page exceptions or HTTP error responses occur.--Local entry evaluation improved about 6–7%; script execution was lower in this workload. First-paint differences-were small. These results do not establish field INP, LCP, typing latency, authenticated builder performance,-hydration performance, mobile-device performance, or behavior on a real network. Marketing HTML is prerendered and-then replaced with `createRoot`, so the app does not hydrate those pages. Raw samples: [redact-results.json](./redact-results.json).--## Compatibility findings--Sources: [compatibility chart](https://tanstack.com/redact/latest/docs/compatibility),-[Vite integration](https://tanstack.com/redact/latest/docs/vite-plugin),-[integration verification](https://tanstack.com/redact/latest/docs/verification),-[upstream performance evidence](https://tanstack.com/redact/latest/docs/performance).-The published package source was also inspected; documentation claims are not substitutes for our app's tests.--| Area | Consequence for this app |-| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| **Confirmed: autofocus** | `section-editing.spec.ts:16` fails after Add experience: Position exists but is not focused. Same test passes on native React. Redact's DOM setter emits `autofocus` but has no React-style commit-time focus handling; the app clears its one-time focus request in an effect. Do not weaken the accessibility assertion or change app behavior to mask this. |-| **Confirmed: custom renderer** | Native dispatcher isolation is required for PDF/template rendering. A global React alias is insufficient. Keep isolation when upgrading; retest PDF worker, main-thread fallback, and web-page preview. |-| **Confirmed: prerendering** | Plain `redact()` failed the existing production prerender build. Bundling SSR dependencies consistently fixes the observed mixed-context failure. This changes the prerender bundle graph and can affect build cost. |-| Scheduling | Rendering stays synchronous; no time slicing or interruptible renders. `useDeferredValue` in resume checks, application search, and career knowledge search loses React's concurrent scheduling guarantees. Large resumes/lists and slower devices need responsiveness testing. |-| Suspense and transitions | APIs exist, with different scheduling. Dialogs, lazy editors, PDF.js preview, Query suspense, and router transitions warrant app-level regression tests. Upstream measurements include slower Suspense retries and passive effects; its microbenchmark ratios are not our app's timings. |-| React Compiler | Compiler entry is implemented and aliased, but upstream explicitly does not validate every compiler output pattern. Existing compiler test passes; that is not exhaustive behavioral proof. |-| DOM/forms/portals | Upstream reports shared React tests. Our auth, rich-text keyboard controls, guest flow, JSON import/export, sharing, and shaped-script PDF download tests pass in Redact mode. Autofocus is a concrete exception. Drag-and-drop, cropper, virtual lists, all dialogs, and streaming assistant behavior remain outside this focused gate. |-| Debugging | StrictMode avoids React's double invocation. `<Profiler>` callback is a no-op. Development DevTools support does not restore those diagnostics; no Profiler-based speed claim is made. |-| SSR/cache | String/static rendering and streams exist, but full Fizz prerender/resume APIs do not. `cache` is an identity wrapper, `cacheSignal` is null, and client cache refresh is a no-op. Our current build-time string prerender works; backend/public resume rendering retains native React. |-| Animation/browser differences | Redact's native ViewTransition animation feature stays disabled by default. Router use of browser view transitions is separate. Upstream lists unresolved native-animation, hidden-tab/resource/navigation, and Safari/Firefox verification gaps; do not infer unsupported browsers, or claim our app verified in them. |-| Release maturity | This is a 0.2.0 alternative runtime. React API coverage and upstream test counts do not guarantee compatibility with all current/future dependencies. Keep the pin and native control when evaluating upgrades. |--## Validation--- Both native and Redact production web builds pass; all three marketing pages prerender for the configured locales.-- Server production build passes; server stays on native React.-- Web unit suite: 86 files, 370 tests passed. Vitest uses its normal native-React config, so this is a regression- check for our source/config changes, **not** a claim that 370 tests ran against Redact.-- Web and tooling typechecks, repository lint/format checks, and package boundaries pass.-- Redact production Chromium gate: 6 passed, 1 failed across auth, guest conversion, JSON import/export,- section editing, PDF downloads, and sharing. The failure is the focus assertion above.-- Native production control: all seven tests in the same focused gate passed, including that same focus assertion.-- Redact development smoke: homepage theme toggle and login-input fill passed without page exceptions, with public- APIs stubbed. This verifies the optimizer integration, not authentication or PDF rendering in development.-- Final native and Redact client output each matched their benchmark snapshot byte for byte. Normal native React- build output was restored after evaluation.--No hosted CI, deployment, complete cross-browser suite, or real-device benchmark is claimed. Before enabling by-default, resolve the upstream focus behavior, repeat the browser gate, and measure large-resume typing/search,-PDF fallback/preview, assistant streaming, drag-and-drop, and Safari/Firefox behavior.--## Reproduce the benchmark--Check out commit `a23bbd068` (or restore its files) first; the build mode and script were removed afterwards.-Run from repository root with installed dependencies and Playwright Chromium available. No database or production-credentials are used by the benchmark server. Build snapshots are outside the checkout, so later builds do not alter-the control. Run the browser benchmark after other build/test processes have finished.--```sh-bench_dir="$(mktemp -d)"-pnpm --filter web build-mkdir -p "$bench_dir/react"-cp -R apps/web/dist apps/web/dist-prerender "$bench_dir/react/"-pnpm --filter web build --mode redact-mkdir -p "$bench_dir/redact"-cp -R apps/web/dist apps/web/dist-prerender "$bench_dir/redact/"-node tooling/redact/benchmark.mjs "$bench_dir/react" "$bench_dir/redact" "$bench_dir/results.json"-```--For the real browser compatibility gate, use the disposable-database setup in `tests/e2e/README.md`, build with-`--mode redact`, build the server, then run the existing specs. Never point those tests at production data.diff --git a/.agents/docs/research/web-performance.md b/.agents/docs/research/web-performance.mddeleted file mode 100644index e6a04596f..000000000--- a/.agents/docs/research/web-performance.md+++ /dev/null@@ -1,180 +0,0 @@-# Web performance audit--Audited October 27, 2026 against `b700ed9d7` (production then ran v6.0.7, `19770b17b`, with byte-identical app-payloads). Nine independent auditors covered JavaScript bundles, served images, HTTP delivery, CSS and fonts, runtime-loading, public resume pages, TanStack Start, TanStack Redact and production field data. This page keeps their-conclusions, numbers and the ranked backlog. Their raw reports and scripts were written to `/tmp/rr-perf-audit/`-(not kept). Related: [redact.md](./redact.md).--Numbers are bytes unless stated. **gzip** is Node's default level 6, which is what `hono/compress` serves; **brotli**-is quality 11. Timings came from a shared, loaded machine (Chromium, 4× CPU, DevTools Fast 4G): trust their direction-and the request structure more than the absolute milliseconds.--## Answers--- **Move to TanStack Start? No, not now.** Marketing pages already ship prerendered HTML per locale, public resume- pages are already server-rendered by Hono without the SPA, and the builder must stay a client app around the PDF- engine. Start 1.169 became stable on October 12, 2026. In a controlled minimal app (same React, Router and Vite),- Start with SSR shipped **+12.8 KB gzip (+13%)** more client JavaScript than a Router-only SPA. A migration touches- about 43 files across rendering, request state, Hono, three deploy targets and CI, and needs request-isolated Lingui,- deterministic theme/locale hydration and a CSP for streamed inline scripts. The visible startup delay comes from the- root context waterfall and preview bytes, which Start does not remove. Revisit only if a measured pilot on the- optimized baseline wins (see "Decision rule").-- **Redact: not worth it now; the opt-in build mode was removed** (evaluation in [redact.md](./redact.md)). The- autofocus failure is a runtime gap: React DOM calls `.focus()` at commit for a newly- mounted control with `autoFocus`; Redact only sets the `autofocus` attribute. Redact 0.2.1 (published October 27)- still has it. Its feature flags can cut a further ~5 KB gzip, but two open upstream issues match this app's stack- (Base UI submenus closing before a link click; large rerenders reported ~2× slower). Startup bytes are not- interaction speed.-- **Images: done in this change** (below). The template previews were 300 dpi renders shown as small cards.--## Changed in this branch: served images--| What | Before | After |-| ----------------------------------------------------------------------------------------------------- | ---------: | ---------------------: |-| `templates/jpg/*.jpg` — 18 previews, 2481×3508 q94 → 600×848 mozjpeg q75, same URLs and format | 22,736,185 | 1,206,549 (−94.7%) |-| `templates/thumb/*.webp` — 596×843, WebP q75 | 1,272,398 | 1,007,394 (−21%) |-| `templates/thumb/*-small.webp` — new 300×424, used by the gallery's `srcSet` | — | 288,876 |-| `illustrations/footer-desk-*-{1600,2400}.webp` — new `srcSet` siblings | — | 514,634 |-| OG banner (q100 → q85), ATS card, sample photo (800 → 512 px), PWA icons, unreferenced `features.jpg` | 693,094 | 261,161 |-| **All of `apps/web/public`** (also the Docker image's copy) | 30,656,516 | **9,233,453 (−69.9%)** |--- The builder's Design panel, the cover letter design panel and the mobile picker mount all 18 previews:- **22.7 MB → 1.2 MB** when opened on a self-hosted server. rxresu.me's Cloudflare Polish converted them to WebP but- did not resize them (gengar: 566,638 B). Mean SSIM 0.990 against a lossless 600 px render; 600 px covers every- consumer at 3× (web cards up to 178 CSS px, mobile cards 112–178 dp, README 150 px).-- Old mobile builds and the README keep working: same URL, still JPEG, same aspect ratio.-- `srcSet`/`sizes` now let browsers pick smaller files. Checked in Chromium: the gallery at 1× loads the 300 px thumb- (2× keeps 596 px); the footer at 1440@1× loads 1600 px and at 390@3× 2400 px instead of 3200 px; doodles at 1440@2×- load the 400 px file instead of 800 px (hero first paint 248 → 88 KB measured by the auditor). Curve and globe- upscale up to 1.15× on 2× screens (marked `ponytail:` in `ui.tsx`).-- The homepage contact sheet still loads the 596 px thumbs. Using the `-small` files there saves ~63% of the scene,- but on 2× screens the sheet is visibly softer while it zooms out; that is a design call.-- `apps/web/DESIGN.md` (Template previews) holds the regeneration command; AGENTS.md's "New template" line points to- it. The command reproduces the committed files byte for byte.-- **After deploying, purge the replaced URLs in Cloudflare** (`/templates/*`, `/opengraph/*`, `/photos/*`, the PWA- icons). Public files carry no `Cache-Control`, so edge and Polish copies otherwise linger.--## Where the bytes and time go--- **Every page** loads 45 eager JS files: 340,880 gzip / 292,873 brotli (React DOM 63 KB, Base UI + floating-ui- 49 KB, zod 33 KB, Phosphor icon registry 33 KB, router 26 KB, Better Auth client 20 KB), plus a render-blocking- stylesheet of 57.9 KB gzip of which a page uses about 15% (the homepage 33%).-- **Builder cold load** (HTTP/2): 7.7 MB, of which 6.2 MB is the preview — Forme WASM 3.2 MB gzip, the PDF worker,- HarfBuzz, the pdf.js worker and nine fonts (1.76 MB, 1.1 MB of it Noto fallbacks requested whether or not any glyph- needs them). First preview 10.4 s cold, 2.35 s warm. WASM compile is not the problem; bytes and serial chains are.-- **Serial chains:** session + flags + catalog start only after the whole JS graph evaluates; the dashboard's data- request starts after its page renders; the pdf.js worker starts only after the first PDF exists; signed-out pages- check the session twice in series.-- **Production delivery:** Cloudflare caches by file extension and its default list excludes `.wasm` and `.mjs`, so- the 7 MB Forme WASM, HarfBuzz and the pdf.js worker are `cf-cache-status: DYNAMIC` despite `immutable` — every first- builder or ATS visit pulls ~3.9 MB gzip from origin (~183 ms origin CPU). The zone serves gzip only, even to clients- accepting brotli or zstd. Marketing HTML is never edge-cached (TTFB 156 ms vs 55 ms for a hit).-- **Public resume pages:** 425 KB first visit, 80% of it full TTF fonts from fonts.gstatic.com (14.9 MB for a Chinese- resume); late fonts cause CLS 0.04–0.11. Server render is fast (~5 ms cached, 18–20 ms after an edit).-- **Self-hosters on HTTP/1.1** pay about double on a cold builder load (editor 5.7 s vs 2.4 s on HTTP/2).--## Ranked backlog--**Done since the audit (October 27, 2026):** the Cloudflare Cache Rule for `/assets/*` (owner; the WASM and `.mjs`-worker now return `HIT`), and four code changes: brotli copies written by the Docker build and served with-`precompressed: true`; preload `Link` headers for each page's stylesheet and fonts, for Early Hints; `Cache-Tag`-headers (`html` on pages, `public` on fixed-name files) so the release purge leaves hashed assets cached; and the-Cloudflare Web Analytics beacon allowed in `script-src`. The zone settings that make the last three take effect-(Early Hints, Web Analytics, a brotli Compression Rule) are owner actions.--### Owner actions in Cloudflare (no code)--1. Cache Rule: cache everything under `/assets/*` (honour origin TTL). Edge-caches the WASM and `.mjs` worker.-2. Compression Rule: offer brotli (and zstd) to visitors. Needed for item 1 of the next list to reach production;- −15.6% on the shared JS/CSS (355,935 → 300,391 gzip vs brotli) and −27% on the homepage HTML.-3. Purge the replaced image URLs after this change deploys.-4. Optional: turn off Email Obfuscation (forces HTML recompression, injects a parser-blocking script twice on `/`).- Edge-caching marketing HTML is possible but must bypass requests with a `locale` cookie (Cloudflare ignores- `Vary: Cookie`) and depends on the release purge; keep its TTL at an hour or less.--### Small code changes--| # | Change | Expected effect | Where |-| --- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |-| 1 | Precompress text assets with brotli at build time; `precompressed: true` in `serveWebDistStatic` | Docker without a CDN: −15% first-load JS/CSS, −26% WASM, origin CPU per first load ~58 → 21 ms | build script, `apps/server/src/static/web.ts` |-| 2 | `Cache-Control: public, max-age=86400, stale-while-revalidate=604800` for non-hashed public files, plus 304s | Returning visitors stop re-downloading up to ~2.6 MB of homepage images per release | `web.ts` `onFound` |-| 3 | `headers` for the Vercel frontend and a `_headers` file for Workers: immutable `/assets/*` | Removes ~46 revalidations per repeat load on those targets | `vercel.json`, `tooling/cloudflare/build.mjs` |-| 4 | Start the pdf.js worker with the preview, not after the first PDF | Cold PDF-to-visible 0.90 → 0.34 s | `features/resume/preview` |-| 5 | Stop the second signed-out session check on startup and on hover preloads, keeping the "signing in elsewhere shows on next navigation" contract | ~0.2 s per signed-out load | `libs/root-context.ts:23` |-| 6 | Dashboard route `loader` prefetching its existing query; start root context earlier (preload hints or inline flags) | Dashboard warm 1.23 → 0.89 s, cold 2.28 → 1.92 s (both, measured what-if) | `routes/dashboard/index.tsx`, `main.tsx`, server shell |-| 7 | Phosphor icon-font CSS only in the 3 builder components that use it | −10.9 KB gzip render-blocking CSS on every page | `packages/ui/src/styles/globals.css:10` |-| 8 | Session check with plain `fetch` instead of the Better Auth client in the eager graph | −19.9 KB gzip eager JS | `libs/auth/session.ts` |-| 9 | `getRouteApi()` in 16 route components that import their route file back | −15.4 KB gzip, 15 fewer eager files | `routes/**` |-| 10 | Motion `domAnimation` by default, `domMax` only where `layoutId` is used; `DonationToast` loaded when its timer fires; Phosphor `fill` weight only for the ~20 icons that use it | −14 KB, −3–8 KB, −10.4 KB gzip | `__root.tsx`, `vite.config.ts` |-| 11 | Dashboard: stop importing the builder's `draft.ts` and the tags editor eagerly; builder: defer `node-html-parser` | −34 KB dashboard, −47 KB builder gzip | dashboard and builder features |-| 12 | Compress custom-domain resume pages, `/schema.json` and RPC batch responses; cache `/openapi.json` | 89 → 16 KB per custom-domain page; 103 → 8 KB; ~3× on RPC batches; 2.18 MB regenerated per request | `apps/server/src/http` |-| 13 | Sitemap query partial index; count resume views after responding | Production sitemaps take 3.1–4.2 s per crawler fetch (393 → 3.3 ms on 1.2M test rows); ~8 ms per view | `packages/db`, `static/seo.ts`, `static/resume-page.ts` |--### Medium--- **Noto fallback fonts on demand.** Fetch the punctuation/CJK fallbacks only when a character is missing from the- chosen fonts: default first-preview fonts 794 → 286 KB, a Korean first preview 29 → 11.8 MB (the always-added Noto SC- "safety net" is 17.35 MB). Helps thumbnails, server PDFs and the mobile app too. Risk: a coverage bug prints "?"- (the existing lost-characters warning makes it visible). `packages/pdf/src/hooks/use-register-fonts.ts`.-- **Public resume page fonts.** Self-hosted WOFF2 subsets of the used characters: 343.6 → 47.7 KB (−86%), Chinese- 14.9 MB → 792 KB, and visitors' IPs stop going to Google. Downscale profile pictures for the page (800 px shown at- 133 px; a 400 px WebP is 13.4 vs 70.8 KB). Switch `no-store` to `private, no-cache` with an ETag; make the render- cache an LRU of compressed pages; stop the OG card loading every resume font (a Chinese card took 5.7 s, 207 MB).-- **Startup UI on first use.** Load toasts, dialogs, the confirm dialog, tooltips and hotkeys when first needed:- −62 KB gzip eager (toasts fired before the container mounts must be buffered). Take zod out of eager code:- −34.6 KB (`zod/mini` alone saves only 6 KB).-- **Homepage CSS.** Split homepage-only CSS (~16 KB gzip) and add metric-matched fallback fonts, which inlining- critical CSS later needs: once paint gets earlier, font-swap CLS reaches 0.167 on the hero without them.-- **Dashboard thumbnails** download the whole PDF engine (~4.1 MB gzip) and their cache key changes on most deploys;- re-key them, or render thumbnails on the server.--### Large or later--- Hydrating the prerendered marketing pages instead of replacing them with `createRoot`. Inlining critical CSS on- those pages cut first paint from ~1.7 s to ~0.4–0.6 s locally, but the re-render pushed LCP to 5–7.6 s; hydration- (Router SSR utilities, or a Start pilot limited to marketing) has to come first.-- Common-character CJK subsets for the PDF engine (978 KB vs 8.6 MB per weight).-- Redact, only after upstream focuses `autoFocus` controls on mount: restore the build mode from commit `a23bbd068`- and pass the gate in [redact.md](./redact.md).--### Considered, not worth it--AVIF thumbnails (−25% vs WebP, but needs `<picture>` and decodes slower during the scroll zoom); WebP at the-`/templates/jpg` URL (old mobile builds expect JPEG); WOFF2 for PDF fonts (Forme reads TTF/OTF only); Google's-`text=` font subsetting (sends resume text to Google); zstd (never beat brotli here); `wasm-opt` on Forme (−0.9%);-the modern pdf.js build (−36 KB, breaks older Safari); removing the `framework`/`vendor` chunk groups (+34.5 KB and-113 files without them); native React size tricks (`createRoot` alone vs with `hydrateRoot` differs by 29 B).--## Bugs found along the way--- **Pictures blocked on rx.cv and custom domains.** Uploads send `Cross-Origin-Resource-Policy: same-site`- (`apps/server/src/static/uploads.ts:56`), so Chromium blocks them on other sites (`ERR_BLOCKED_BY_RESPONSE`).- Reproduced locally by the auditor; not checked live. Public pictures need `cross-origin`.-- **Vercel: OG cards and resume sitemaps 404.** `/cards/*.png` and `/sitemaps/*.xml` match the file-extension rewrite- to the static `frontend` service in `vercel.json`. From reading the config; not tested on a deployment.-- The welcome email's logo is an SVG, which Gmail and Outlook do not render.-- Unreferenced: `public/fonts/{fira-sans-condensed-500,ibm-plex-serif-400,ibm-plex-serif-600}.ttf` (613 KB),- `public/opengraph/logo.svg` and `features.jpg` (recompressed here, not deleted, in case of external links), the- Phosphor SVG/TTF/WOFF font fallbacks in `dist/assets` (2.9 MB, never fetched), and the `/videos/*-vN` cache rule in- `web.ts` (no videos exist).--## Decision rule for TanStack Start--Revisit when all of these hold: a concrete need beyond static marketing HTML and Hono's resume pages (many dynamic-public pages, or data-rich views that benefit from server reads); a native-React pilot beats the optimized current-baseline on `/`, an RTL locale, the dashboard, a large resume in the builder and a public resume (p75 FCP/LCP,-interaction readiness, transferred JS and serialized data, server CPU and cold starts); Docker, Vercel Services and-Cloudflare Workers pass runtime gates; hydration, locale, theme, CSP and auth are proven; and the custom prerender and-SEO code is deleted rather than kept beside Start. Keep oRPC, Better Auth, MCP and the mobile API contracts either way;-Start server functions must not become a mobile protocol. Router's own SSR utilities are a smaller path if only the-marketing pages need hydration.--## Not verified--- **No field data.** PageSpeed Insights' keyless quota returned HTTP 429 (`quota_limit_value: 0`) for every request.- Rerun with an API key before ranking by real-user impact.-- Safari/WebKit (image `srcset` choice, hidden lazy footer image), real devices and Firefox interaction timings.-- Cloudflare zone settings were inferred from response headers; the zone configuration itself was not inspected.-- Vercel and Workers behaviour came from documentation and the installed preset source, not a live deployment.-- Builder and mobile picker image bytes come from code reading plus the browser cache model, not a captured session.diff --git a/.agents/docs/reviews/custom-application-lanes-backend-claude.md b/.agents/docs/reviews/custom-application-lanes-backend-claude.mddeleted file mode 100644index 1ba4261a7..000000000--- a/.agents/docs/reviews/custom-application-lanes-backend-claude.md+++ /dev/null@@ -1,102 +0,0 @@-# Custom application lanes (#3518): backend and migration review (Claude)--Scope: backend and migration only. The review covered the local working tree on branch `3518-need-custom-or-additional-stages-in-application-kanban-view` against baseline `aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9`. No source files were changed. All database work used disposable database `rr_lanes_3518_codex` on local PostgreSQL. Every SQL reproduction ran inside a transaction that was rolled back.--## Proof run in this review--- `packages/api/src/features/applications/lanes.integration.test.ts`, run with `/tmp/rr-lanes-api-vitest.mts` and `INTEGRATIONS_TEST_DATABASE_URL=…/rr_lanes_3518_codex`: 1 file, 21 tests passed.-- `/tmp/rr-lanes-review/old-linker.sql`: reproduces the baseline guest linker against the migrated schema (finding 1).-- `/tmp/rr-lanes-review/trigger-fix.sql`: applies the proposed trigger change in a rolled-back transaction and reruns the baseline linker statement (finding 1).-- Not rerun here: the full API/auth suites, typechecks, and the migration chain/repeat/snapshot checks. Those results come from the earlier backend worker report.--## Findings, most severe first--### 1. High (reproduced): baseline guest linking fails once the migration is applied--Location: `migrations/20261029063845_nappy_thor/migration.sql`, `application_assign_lane()`.--Baseline `linkAnonymousAccount` (`aeb82c68b:packages/auth/src/config.ts`) runs `UPDATE application SET user_id = <target> … WHERE user_id = <guest>` and leaves `lane_id` unchanged. The migration assigns every guest application a lane owned by the guest (`application-lane:<guest>:<status>`). The trigger therefore does this:--- `lane_id` is not null and is unchanged, and `status` is unchanged, so the trigger skips the reassignment branch.-- The `chosen` lookup uses `id = NEW.lane_id AND user_id = NEW.user_id`. That lane belongs to the guest, not the target, so the lookup finds nothing and `chosen.id IS NULL`.-- The trigger raises `23514 Application lane must be active, owned and compatible…`. Without the trigger, the composite FK `application_lane_owner_fk (user_id, lane_id)` would reject the row anyway.--Reproduction (`old-linker.sql`): both forms of the baseline statement fail, whether or not the target account already has lanes:--```-ERROR: Application lane must be active, owned and compatible with its category and outcome-CONTEXT: PL/pgSQL function application_assign_lane() line 23 at RAISE-```--Impact: the whole link transaction rolls back. This happens during a rolling deployment, when an old instance handles a guest's sign-up or sign-in, and after any rollback to the previous image while the expand-only migration stays applied. On every such link, the guest's resumes, cover letters and applications do not transfer. Not verified: whether Better Auth still finishes the sign-in and deletes or strands the guest after `onLinkAccount` throws. Either outcome loses the transfer.--Smallest correct fix: in the trigger, treat an unchanged lane that no longer belongs to the row's owner like a missing lane. Add `chosen.id IS NULL` to the UPDATE reassignment condition:--```sql-IF NEW.lane_id IS NULL OR- (TG_OP = 'UPDATE' AND NEW.lane_id IS NOT DISTINCT FROM OLD.lane_id AND- (chosen.id IS NULL OR NEW.status IS DISTINCT FROM OLD.status OR- (chosen.closed_reason IS NOT NULL AND NEW.closed_reason IS DISTINCT FROM chosen.closed_reason))) THEN-```--`chosen.id IS NULL` can only happen when the stored lane does not belong to `NEW.user_id`, which in practice means the owner changed. The change:--- Keeps the new owner, the canonical `status` and the current `closed_reason`. The default Closed lane has no preset, so a Ghosted application with `no-response` stays valid.-- Leaves `activity` untouched, so lane-label and outcome snapshots stay intact, and so does the no-response evidence used for prior-application warnings.-- Puts the application in the target's default lane for its category. An old server cannot copy custom lanes, so this is the correct way for it to degrade. History events keep the guest's lane IDs; their `laneLabel` snapshots still render.-- Still rejects any explicit foreign lane, because a changed `lane_id` does not reach this branch.-- Does not change the new linker: it writes an explicit target-owned `lane_id`, so it goes through the existing path.--Proof of the fix (`trigger-fix.sql`, rolled back): the baseline `UPDATE application SET user_id=…` moved 3 rows. The rows were a default Applied lane, a custom Interview lane, and a Ghosted lane holding `no-response` plus a history snapshot. They now sit in `application-lane:rv-target:{applied,interview,closed}`. `closed_reason = no-response` and the history `laneLabel = Ghosted` are kept. An explicit foreign `lane_id` on UPDATE and on INSERT still raises 23514.--The migration has not been released, so edit it in place. `snapshot.json` does not track functions and needs no change. Recommended regression test in `lanes.integration.test.ts`, next to "rolling old-server writes…": seed a guest with default, custom and preset lanes, then run the raw baseline statement `getDb().update(tables.application).set({ userId: target }).where(eq(tables.application.userId, guest))`. Assert owner, status, closedReason and activity, and assert that `laneId` is the target's category default. Not run: the existing suite against the edited migration.--### 2. Medium (from code reading, not reproduced): career email now holds the owner lock during SMTP--Location: `packages/api/src/features/career/jobs.ts`, `sendPendingEmail`.--Each notification now runs `sendCareerNotification` inside `db.transaction`. That transaction holds `user FOR NO KEY UPDATE`, which is the same lock `lockUser` takes, plus the application row `FOR UPDATE`. The SMTP transport sets connection, greeting and socket timeouts of 10 seconds each (`packages/email/src/transport.ts:22-24`). A slow or unreachable relay can therefore block every `lockUser` writer for that user for tens of seconds. The blocked writers include application create/update/bulk, lane settings, the Career writers and lane `get`. Each email also holds a pooled connection for that time. Notifications with no application also take the user lock.--The Closed check only needs to be a compare-and-claim, not a lock held across network I/O. Suggested fix: inside a short transaction, lock, check the application is not Closed, and mark the notification claimed. Send the email after the commit. This matches the existing at-least-once behavior. A second option: re-check the application status without locks right before sending.--### 3. Low (from code reading): bulk outcome-only updates now reject mixed selections--Location: `packages/api/src/features/applications/lanes.ts:63`, reached through `bulkUpdate`.--Baseline `bulkUpdate({ ids, closedReason })` with no `status` set the reason on every selected row (`stageFields(undefined, reason)`). The new code resolves each row's transition separately. One non-Closed row in the selection throws `BAD_REQUEST "Only closed applications have a closure outcome."` for the whole batch. The web and mobile bulk menus send lane or status moves, so this is not verified for them. REST, MCP and API-key callers that relied on the old behavior will now fail. The new behavior is arguably more correct. If it is intended, document it in the OpenAPI description or the changelog. Otherwise, skip non-Closed rows for outcome-only bulk updates.--### 4. Low (from code reading): overdue schedules fire right away when an application is reopened--Location: `packages/api/src/features/career/jobs.ts`, the `enqueue` filter.--Closed applications are excluded from `enqueue`, and their schedule's `nextRunAt` is not advanced. When the application is reopened, any schedule whose `nextRunAt` passed while it was Closed qualifies on the next tick. A follow-up or briefing for a stale time then runs immediately. This keeps the user's schedules, as the contract requires. Confirm that running a stale due time once on reopen is the intended product behavior. Not tested.--### 5. Low (not verified): a guest link over the lane cap fails with CONFLICT--Location: `packages/auth/src/config.ts`, `linkAnonymousAccount`.--When the combined active lanes would exceed 40, the link throws `APIError("CONFLICT")` before anything transfers. The test "guest linking rejects over-capacity merges atomically" covers this, and the throw is atomic. However, the conflict surfaces inside the sign-in flow, and the user cannot act on the message until they return to the guest session. This needs about 35 or more combined custom lanes, so it is rare. Consider transferring over-cap guest custom lanes as retired with their applications remapped to category defaults, or confirm that the error is acceptable.--## Areas checked with no defect found--- **Migration backfill.** It is expand-only and seeds deterministic IDs. It leaves `status`, `closed_reason`, `activity`, the submission snapshots and the timestamps untouched. Lazy seeding through the trigger and `ensureApplicationPipeline` is idempotent under `ON CONFLICT DO NOTHING`. The test "supports concurrent lazy seeding" passed here.-- **Old-server writes other than linking.** Legacy echo, status change, outcome change on a preset lane, a new insert with no lane, and account deletion all behave correctly. Account deletion cascades both tables and `application_lane_owner_fk` is checked at end of statement. Verified with SQL (deletion) and with the existing test (writes).-- **Owner validation.** Explicit `laneId` resolves only among the owner's active lanes, on create, import, update, bulk and the Career writers. The trigger and the composite FK enforce the same rule at the database level.-- **Contradictions.** A lane/status mismatch, a lane/outcome mismatch, and an outcome on a non-Closed lane are all rejected.-- **Retirement.** Revision check and `lockUser` serialization. Moving applications preserves `updatedAt` and adds no events or snapshots. System lanes cannot retire. The replacement must be active and have the same category and preset.-- **Retirement race.** Old-server writers never set `lane_id`. New-code writers hold `lockUser`, so an application cannot land in a retired lane.-- **Submission idempotency.** `submitApplication` retry detection ignores lane-only `applied` events (`canonicalTransition !== false`). `recordSentResume` runs only on canonical transitions or document changes, so lane moves and metadata edits do not create snapshots.-- **Lock order.** The new `lockUser` calls in `execute`, `trackOpportunity` and email all take the user lock before the application lock, which matches the existing writers. The interview and timeline paths lock only the application, never the user afterwards. No new lock cycle found.-- **Closed suppression.** Covers `enqueue`, `execute` (before and inside the transaction) and email delivery. Schedules and notification history are not deleted.-- **Export and Career context.** Account export includes `applicationPipeline`. Career prompt and tool context includes `laneId`, `laneLabel` and `closedReason`, with a pipeline-revision CONFLICT guard.-- **New guest linker.** Locks both users in sorted order, maps system lanes to the target's system lanes, copies custom and retired lanes under new IDs, rewrites only mapped history lane IDs, and bumps the target revision.--## Coordinator resolution (after review)--Findings 1 and 2 fixed locally. The unshipped trigger now reconciles owner-only legacy guest transfers to the target's category defaults, preserving all other stored fields. SMTP delivery runs after the existing claim and short owner/application checks have committed. New regressions failed before these fixes for both seeded/unseeded legacy targets and a blocked application close during a held SMTP promise; all 24 lane integration tests then passed.--Finding 3 retains the intentional category/outcome validation. REST/OpenAPI and MCP descriptions now explain that an outcome-only update requires every selected application to be Closed, or an explicit Closed destination; contradictions fail atomically. Finding 4 retains schedules while Closed and resumes overdue work after reopening; the product guide now explains this and the limit that already-sending email cannot be recalled.--Finding 5 received a real authentication-flow reproduction. Although the merge rolled back, Better Auth had already sent the target's new session cookie. A 409 therefore switched the browser away from the guest and stranded its data in the current session. Coordinator now clears the pending credential cookies, restores the existing guest cookie/cache and revokes the new session before propagating the merge error. The browser regression failed before this fix and passed afterward; it also retires the extra guest lane and retries the sign-in successfully, preserving the application. Email/password recovery is verified; native/OAuth callback failure recovery has not been exercised end to end.--Fresh proof after remediation: disposable full migration chain and repeat migration passed; generated snapshot comparison returned `no_changes`. API lane/account integration tests passed (30 tests), full auth suite passed (49), MCP passed (22), API/auth/MCP/server typechecks and server production build passed. The larger affected API rerun passed 130 tests and initially skipped six account tests because its separate OAuth DB variable was absent; those six subsequently ran and passed with that variable supplied. This records coordinator remediation, not an independent reviewer re-review.diff --git a/.agents/docs/reviews/custom-application-lanes-mobile-claude.md b/.agents/docs/reviews/custom-application-lanes-mobile-claude.mddeleted file mode 100644index ecd05e5fe..000000000--- a/.agents/docs/reviews/custom-application-lanes-mobile-claude.md+++ /dev/null@@ -1,55 +0,0 @@-# Custom application lanes (#3518): native mobile review (Claude)--Scope: changed and untracked `apps/mobile` source/scripts plus `packages/schema/src/applications/{data,lanes}.ts`, against baseline `aeb82c68b`. Backend correctness out of scope. Re-ran `pnpm --filter mobile test` (node --test, 22/22 pass). No device, store or deployed proof.--## Findings--### 1. Medium: prior-application link in Save a job discards the draft without confirmation--`apps/mobile/src/features/applications/add-sheet.tsx:420` passes the sheet's own `onClose` as `PriorNoResponse`'s `onOpen`. The callback runs before `router.push` (`prior-no-response.tsx:57`). `onClose` unmounts `AddApplicationSheet` (`views.tsx` `adding &&`, list screen likewise) and bypasses the `EditorSheet` `dirty` guard. The warning only renders after a company name is typed, so the form is always dirty when the link is visible.--Scenario: the user pastes a posting, reviews the parsed fields and picks resume/letter/tags. The "previous application closed with No response" notice appears, and the user taps the earlier application to check it. All entered and parsed data is lost. If the user taps it during `busy === "save"`, the sheet unmounts mid-save. The job may still be created, but the user is never navigated to it.--Fix: route this through the same `ConfirmDialog` discard pattern as `openSearchSettings` (`add-sheet.tsx:233,543`). Alternatively, open the prior application without closing the draft. Disable the link while `busy`.--### 2. Medium: list section order changes on lane-capable servers (regression and web parity)--`list.ts:52` groups by `visibleLanes(lanes, …)`, which sorts by pipeline `position`. `list-screen.tsx:94` passes real lanes whenever `lanes.supported`. After a server upgrade, every user's list therefore reorders to Saved, Applied, Screening, Interview, Offer, Closed. This happens even with no custom lanes. Before, the order was `LIST_ORDER` ("what needs you first": Interview, Offer, Screening, Applied, Saved, Closed). On old servers, the default-argument path still uses `LIST_ORDER`, so one app behaves differently by server version. Web keeps `LIST_ORDER` by category and then lane position within each category (`apps/web/src/features/applications/components/list-view.tsx:96`).--Fix: order groups by `LIST_ORDER.indexOf(lane.category)` first and lane position second. Keep the retired/unknown lanes that `visibleLanes` appends. Proof: a `groupApplications` assertion with supported default lanes expecting Interview before Saved.--### 3. Low: reminder cancellation is gated on the current account, but reminders are device-global--`queries.ts:187-231`: `update.onSuccess`, `remove.onSuccess`, `bulkDelete.onSuccess` and `bulkUpdate.onSuccess` skip `cancelReminders` when `scope !== getAccountScope()`. Reminders in `features/reminders/index.ts` are keyed by application UUID and are never cleared on sign-out or account switch. A late success for account A's delete or close is still a fact, and cancelling that application's notification cannot affect account B. The gate only leaves a stale reminder that fires for a deleted or closed application. The baseline cancelled unconditionally. The `bulkUpdate` gate is legitimate only for the authoritative re-read, because that call needs the old scope.--The bulk lost-read path (`queries.ts:220-225`) also cancels nothing. Rows the server owns all receive the requested category (`service.ts` bulkUpdate). For `status: "closed"`, or a `laneId` whose cached lane category is `closed`, input-derived cancellation would be exact. The test at `applications-summary.test.mjs:665` deliberately forbids this, so it is a design choice. Note it: the toast's recovery depends on the user opening each application.--Fix: drop the scope gate on cancellation for update, delete and bulkDelete, where the IDs are explicit. Optionally fall back to input-derived cancellation when the bulk re-read fails.--### 4. Low: a lanes outage blocks every write, including canonical default-lane writes--`ready = query.isSuccess` (`lane-queries.ts:36`) gates create (`add-sheet.tsx:176`), bulk actions, board moves, the stepper, Close and Mark applied. A transient `lanes.get` failure therefore prevents saving a job into the default Saved lane. A canonical `{ status }` write is safe on both server generations, so `laneInput(lane, false)` would work. `LaneNotice` offers retry, so this is a degraded state rather than data loss. Consider allowing system-lane writes as canonical `status` while metadata is errored.--## Checked, no finding--- Old-server detection: oRPC 1.16 maps the bare 404 body to code `NOT_FOUND` (`getMalformedResponseErrorCode`). The fallback keeps synthetic category IDs. `laneInput` sends canonical status. `ensureLaneWrite` refuses `laneId` writes to unsupported servers. `priorNoResponse` is gated on `supported`. The mobile check is looser than web's (any `NOT_FOUND` or `METHOD_NOT_SUPPORTED` counts), but a misdetection only downgrades the client to safe canonical writes.-- Scoped metadata: lanes and prior-no-response keys include server and scope. The list and detail key omits scope but is cleared on identity change (`session-gate.tsx`). Calls carry `context.scope`, so a stale closure fails with `SessionChangedError` instead of writing to another account.-- Writers: detail stepper and next button, board drag and Move sheet, list bulk move and close, add sheet, Close and Mark applied sheets all route through `laneInput`. A neutral Closed lane opens the outcome sheet. A preset (Ghosted) lane writes directly, with the optimistic `closedReason` taken from the preset. Saved to an Applied-category lane always goes through Mark applied with the chosen lane.-- `nextActiveLane` follows the active configured order, skips Closed lanes, and returns null for closed or unresolved lanes.-- Optimistic and pending state: same-category moves compare `laneId` (`keepPending`, `getInitialApplicationDetail`). Rollback restores the list snapshot and is scope-guarded.-- History: the time in a lane comes from `currentLaneEntry`, which keeps the retired anchor. The no-reply clock for Applied uses only canonical entries. `sentOn` and Insights ignore lane-only events. Timeline labels use the `laneLabel` snapshot, and a null snapshot uses the localized default.-- Lane settings: revision passed on every write, a CONFLICT error message plus refetch, retirement offers only compatible replacements, and a system label is sent only when it changed (localized defaults are preserved). Long labels wrap (`flexShrink`/`flex: 1`), and reorder uses labelled up/down buttons.--## Residual verification gaps--- No device run: board long-press drag across many or long-labelled columns, Move sheet, lane settings sheet at 0.9 detent, and VoiceOver/TalkBack for the new controls are unverified.-- Host tests stub oRPC and TanStack callbacks. They do not cover how TanStack v5 swaps in-flight mutation callbacks on re-render after an account switch, or a real old-server 404 through `RPCLink`.-- Non-source mobile catalogs: translation completeness unverified.--## Coordinator resolution (after review)--All four findings corrected locally. Prior-application navigation asks before discarding a draft and is disabled during save. List retains category priority on lane-capable servers. Confirmed single close/delete and bulk delete cancel their device-global reminders after an account switch; complete bulk receipts with immutable Closed targets also cancel directly. A no-data metadata error permits canonical default writes while retaining the retry notice.--Coordinator reran all 22 mobile host tests successfully, with new draft-confirmation/save-lock, default-lane List order, recorded-outcome, metadata-outage and reminder-cancellation regressions. Mobile typecheck passed. Device/accessibility and translation limits above remain. This records coordinator remediation, not an independent reviewer re-review.--- An OTA client against a deployed old self-hosted server is untested end to end.diff --git a/.agents/docs/reviews/custom-application-lanes-web-codex.md b/.agents/docs/reviews/custom-application-lanes-web-codex.mddeleted file mode 100644index cbd2293d7..000000000--- a/.agents/docs/reviews/custom-application-lanes-web-codex.md+++ /dev/null@@ -1,49 +0,0 @@-# Custom application lanes: web and MCP review--Reviewed working-tree changes, including untracked feature files, against `aeb82c68b6840ef1e6c45e99de40bd960c4f8fb9` on `3518-need-custom-or-additional-stages-in-application-kanban-view`, 2026-10-29. Read implementation contract and accepted research; traced connected query/cache, transition, export and MCP owners. Backend/mobile remain outside final review scope. No runtime edits, commits, pushes or publication.--## Findings--1. **P2 — Pending/failed lane discovery permits lossy legacy imports.** `apps/web/src/features/applications/use-application-lanes.ts:32`, `apps/web/src/features/applications/components/import-applications-sheet.tsx:97`, `:140`, `:403`.-- Without cached data, both loading and an ordinary network failure return `mode: "legacy"` even with `unsupported: false`. The importer then has no lane mappings, considers all named stages matched, and enables import. `applyLaneMapping` removes the lane metadata. A Ghosted CSV row becomes `{ status: "closed" }`, losing both its selected lane and no-response preset on a server that supports lanes. Isolated execution of the current hook/mapping confirmed this for pending and network-error states. The page alert does not prevent the import sheet from doing this.-- **Fix:** distinguish unresolved/error discovery from confirmed unsupported servers; prevent named-lane import until metadata loads or unsupported capability is established. Keep fixed-stage fallback for confirmed old servers. **Missing proof:** delay/reject only `lanes.get` while import remains reachable; verify import cannot discard metadata, then verify genuine old-server fallback still works.--2. **P2 — Import retry recreates already committed stages.** `apps/web/src/features/applications/components/import-applications-sheet.tsx:120`, `:137`, `:153`.-- Created IDs survive only in the mutation-local map; the corresponding `laneChoices` entries stay `"new"`. If a later create or the application import fails, retry creates the successful stages again using the refreshed revision. This consumes the 40-stage allowance and leaves duplicate stages even when no application imported. Executing the actual mutation body with a mocked failed import, then retrying, produced two `Assessment` stages and assigned the application to the second.-- **Fix:** persist each confirmed new stage as that CSV stage's selected ID and resume from confirmed mappings. After an uncertain create response, refresh and require reconciliation before creating again. **Missing proof:** failure on the second create, failure before application import commits, and a committed create whose response is lost; retry must reuse successful stages.--3. **P2 — Explicit default-Closed actions do not select the default lane.** `apps/web/src/features/applications/use-application-actions.ts:114`, `apps/web/src/features/applications/components/list-view.tsx:452`.-- `ClosedLaneItems` defines its ordinary outcome choices as targeting the default Closed lane, but these paths send only `status: "closed"`. The new server deliberately preserves a custom lane for unchanged-status legacy writes. From Ghosted, choosing the ordinary No response outcome therefore leaves the application in Ghosted despite the requested default destination. Bulk closing compatible custom Closed lanes has the same problem. Executing the connected resolver with this payload returned `laneId: "ghosted", changed: false`.-- **Fix:** use `laneMoveInput(getCategoryLane(lanes, "closed"), mode, reason)` for explicit default-Closed actions, including bulk; retain status-only payloads in confirmed legacy mode. **Missing proof:** menu/bulk moves from custom neutral and preset Closed lanes into the default Closed lane with an unchanged outcome, plus old-server payload compatibility.--4. **P2 — Reply metrics ignore recorded closure outcomes and their dates.** `apps/web/src/features/applications/insights.ts:95`, `:123`.-- The updated event projection discards outcome snapshots and excludes every `canonicalTransition: false` event, including durable outcome changes within Closed. `firstReply` still applies the application's current reason to earlier Closed events. For Applied Jan 1 → No response Jan 5 → Not selected Jan 10, actual `computeOutcomes` returned four days to reply instead of nine. Reopening then changed heard-back count from one to zero despite the recorded rejection. This is a gap in consuming the newly introduced outcome history; legacy events never had these snapshots.-- **Fix:** retain canonical-only events for progression/submission calculations, but derive rejection replies from recorded event outcomes/dates, including outcome-only changes. Use existing current-reason fallback only for legacy events lacking snapshots. **Missing proof:** no-response followed by rejection within Closed, rejection followed by reopening, and same-category lane moves leaving semantic dates unchanged.--5. **P3 — List-order guide contradicts the implemented grouping.** `docs/guides/tracking-job-applications.mdx:48`; connected implementation `apps/web/src/features/applications/components/list-view.tsx:96`.-- The changed guide promises configured stage order. List still orders categories by `LIST_ORDER` and applies configured order only within a category. Moving Applied before Interview changes Board/detail order but leaves List unchanged. **Fix:** describe the actual category-priority grouping and custom order within categories; if global List ordering is intended by the accepted contract, instead build groups directly from ordered active lanes. **Missing proof:** inspect List after reordering lanes across categories and align the documented contract with that result.--## Proof and remaining limits--- Independently passed web checks: four focused files / 32 tests (`csv-export`, `queries`, `next-step`, `use-application-actions`).-- Independently passed MCP checks: two files / seven tests (`parity`, `discovery`). SDK live/static schema and annotation parity and invalid-color rejection passed; no MCP finding.-- Isolated, in-memory reproductions used actual current function/mutation bodies, fake records and mocked clients; no live services or production data.-- Another worker corrected the initially observed two-new-lanes/same-category CSV mapping defect during this review. Current code includes that correction and a third Playwright spec; it is excluded from outstanding findings.-- Existing coordinator build, migration and browser evidence was supplied, not rerun here. The new third CSV Playwright spec was inspected but not executed by this review.-- **Not verified:** fast-failure board override rollback, overlapping optimistic moves, retirement during an open edit/drag, stale settings conflict recovery in a rendered browser, committed application-import response loss/retry safety, keyboard/screen-reader behavior with many long labels, and mobile behavior. No broad checks, device checks, hosted CI or deployment checks were run.-- Global web `MutationCache.onSettled` invalidates ordinary queries. Missing local detail/advisory invalidation alone is therefore not an outstanding finding.--## Coordinator resolution (after review)--All five findings corrected locally. Named imports wait for discovery and retain input through failure/retry. Confirmed created stages persist; uncertain responses require refresh and explicit matching. Ordinary single/bulk Close targets the default Closed lane. Reply metrics consume recorded outcome dates/history. List-order documentation describes category priority plus lane order within category. Fast board-error override cleanup was also added.--Coordinator proof: full web suite (89 files / 399 tests), focused CSV suite (19 tests), web/mobile typechecks and production web build passed. Seven expanded custom-lane browser cases passed, covering distinct same-category CSV stages, partial creation, import failure before commit, committed creation with lost reply, failed drag rollback, retirement, Ghosted history and old-server fallback. A further focused browser run passed with pending then failed discovery and successful recovery. This records coordinator remediation, not an independent reviewer re-review.diff --git a/.agents/docs/security-remediation-2026-10-28.md b/.agents/docs/security-remediation-2026-10-28.mddeleted file mode 100644index a97770f28..000000000--- a/.agents/docs/security-remediation-2026-10-28.md+++ /dev/null@@ -1,122 +0,0 @@-# Security remediation — 2026-10-28--Scope: `security-findings-reactive-resume-2026-10-28.pdf` and `reactive-resume-reactive-resume-agent-findings.sarif`: 59 findings (1 high, 27 medium, 31 low). SARIF scan revision: `702e33d5f5e22904575da103d18db66c28cdab39`; checkout baseline: `70c231edf294d01d156f5776aa4f5b4adea1a73b`. Locations were reconciled against this checkout. S01–S59 are one-based SARIF result indices; GUIDs below are the report finding IDs.--All listed fixes are source changes in this branch. This is a remediation ledger, not a fresh independent scan or proof of deployed protection. S01/S20 additionally require rebuilt native artifacts and new store binaries; the existing prebuilt manifest deliberately does not match the changed Rust source.--## Verification--Tests used fictional data and the disposable local database `rr_security_remediation_20261028`; no production database was used.--| Check | Result |-| --------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `pnpm test` | 21 workspace tasks passed: 2,471 Vitest tests and 21 mobile Node tests. Four integration tests initially skipped because their optional database variable was absent. |-| Optional integration suite | All four skipped credential integration tests subsequently passed with `INTEGRATIONS_TEST_DATABASE_URL` set to the disposable database. |-| Additional final regressions | Deep write validation, custom-reference redaction, extreme PDF geometry, ZIP header count, CSV formulas and late-save cleanup passed in targeted runs after they were added. Counts overlap the workspace run and are not summed. |-| `pnpm typecheck` | All 22 workspace tasks passed, including a rerun after the dependency changes (11 unchanged tasks reused cache in that run). |-| `cargo test --manifest-path packages/forme-native/rust/Cargo.toml --locked` | Five tests passed, including real bridge rejection and ordinary text PDF rendering on macOS. |-| Production `pnpm build` | All three build tasks passed. |-| `pnpm exec turbo boundaries` | Final check covered 1,586 files in 23 packages with no issues. |-| `pnpm lint:agent`, `pnpm format:check`, `git diff --check` | Passed. |-| Browser flows | Existing assistant edit/question/stop flow and two career workflows passed. New story approve/skip and failed/successful settings sign-out flows passed in Chromium against the production build. |-| Localization | Web and mobile extraction passed. New messages fall back to English in untranslated catalogs. |-| Documentation screenshot | Actual fictional story approval card captured through the passing browser flow and visually inspected. |--Native artifact identity is `f7a5ce86fcfafb330e8f8b0b05a9403e132f0185bf7b74ef8ff411dedf05ceb9`; the committed manifest contains zero matching pins. This is an explicit native release blocker, not a passed native distribution check. The username migration was applied only to the disposable local database and tested on fresh/upgrade schemas.--Local command logs are under `/tmp/rr-security-2026-10-28/` for this session; they are transient and are not release evidence.--## Dependency follow-up--The full dependency audit, including development dependencies, identified three additional advisory families beyond the attached reports:--- **node-forge — [GHSA-86w9-cpqp-85rv](https://github.com/advisories/GHSA-86w9-cpqp-85rv):** override affected versions to 1.4.2, which includes the RSA signature verification fix.-- **Zod — [GHSA-mrhx-c7xc-m3w5](https://github.com/advisories/GHSA-mrhx-c7xc-m3w5):** update older transitive v4 copies to 4.6.7. Expo CLI 58.1.17's two developer-plugin schemas also move from v3 to 4.6.7 through an exact-parent override after checking their callers. Regression tests exercise actual installed plugin/output validation, strict MCP input schemas and JSON-schema conversion, and prove oversized arrays stop before parsing their elements. The main application already used 4.6.7.-- **deepmerge — [GHSA-gcqx-w48m-w2h4](https://github.com/advisories/GHSA-gcqx-w48m-w2h4):** no fixed release exists. [The pnpm patch](../../patches/[email protected]) removes `__proto__`, `constructor` and `prototype` keys before either merge loop can copy them. Source, CommonJS and UMD distributions are patched. Regressions cover null-prototype targets, malicious target keys, primitive/null placeholders, nested array copies, and normal array/object/symbol merging. Replace the patch when upstream publishes a verified fix.--Final `pnpm audit --json`: **zero critical, high or moderate advisories; one low deepmerge advisory remains version-flagged despite the local patch**. No advisory was suppressed. The malicious-merge and oversized-array regressions failed before these changes and passed afterward.--Follow-up checks passed: frozen workspace install; all 76 tooling tests, including four dependency regressions; three email tests; all workspace typechecks; production build; production iOS/Android JavaScript exports; and the two new Chromium approval/sign-out flows against that rebuilt app. JavaScript exports do not validate the rebuilt native renderer. Turbo's pruned build/runtime manifests both retain the patch. A separate pruned production install with `--frozen-lockfile --ignore-scripts` passed the actual prototype-poisoning regression and ordinary HTML-to-email-text conversion. This verifies the installed JavaScript patch, not a built Docker image. Peer checking reports the existing Vite+ package-version alias mismatch; no new Zod/node-forge/deepmerge peer conflict was reported.--## Finding map--| SARIF | Finding ID | Issue and fix | Verification |-| ----- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |-| S01 | `febd3807-177f-4ba1-9050-e2fef477e22d` | **Native grid placement loops.** Bound columns, spans, row indices, aggregate grid cells and node depth before rendering. | Rust bridge/validation tests; new native artifacts required. |-| S02 | `f63579ff-a90f-480e-9607-1f454441c326` | **ATS tag stripping.** Use shared delimiter-bounded tag removal. | Resume/utils suites. |-| S03 | `e5c3bde2-c4ac-4431-8d9f-655ad2c88354` | **Nested-list Markdown work.** Bound markup depth, intermediate output and shared recursive conversion work. | Markdown and schema complexity regressions. |-| S04 | `e45b0f62-7b4c-4349-b64e-b5762afeac90` | **Repeated Markdown content.** Preflight expanded layout cost before rendering repeated sections. | Schema limits and Markdown suites. |-| S05 | `dbe6caa2-b2bf-4473-90e4-690745dbc734` | **Proposal block scanning.** Advance list-depth scan incrementally instead of rescanning every prefix. | Proposal suite. |-| S06 | `d6ab2088-8f6b-47a5-94f7-fa81ef069984` | **Rich-text semantic keys.** Cache sibling element indices per parent. | PDF semantic/rich-text suites. |-| S07 | `cf4b792a-50de-4c72-83b0-676051df7691` | **General-sibling selectors.** Memoize compound matches and sibling-prefix results. | 200-sibling, 12-combinator regression; selector suite. |-| S08 | `b3eb12aa-055b-489f-a140-b3da53b7f55a` | **Auth fallback counter resets.** Retain live counters; deny new keys at capacity; throttle expiry sweeps. | Auth saturation regression. |-| S09 | `afa73948-0750-4511-a47c-af10017de46a` | **SMTP plaintext downgrade.** Require STARTTLS unless direct TLS is selected. | SMTP transport configuration assertion. |-| S10 | `abec8737-6c41-48ae-a1f3-b3c182d73d84` | **Password aliases.** Resolve resume before limiting attempts; share resume ID/client key across API and page forms. | Canonical identity/case/alias and limiter regressions. |-| S11 | `aa819d6e-323d-4612-b10b-f21e160a9cd8` | **Blob path interpretation.** Reject encoded traversal, query, fragment and control characters before SDK access. | Blob transport regressions. |-| S12 | `9c34b98f-c93f-417d-99ef-5aabd2f18323` | **Semantic rich-text expansion.** Check expanded resume cost before tree construction. | Schema expansion limits and PDF suites. |-| S13 | `9248737b-9540-4236-b1e8-d6e20240c04f` | **Attachment delete scope.** Require delete permission for replacement/removal before upload and again under row lock. | Application permission/upload-order regressions. |-| S14 | `8b9c0db6-77a2-4af9-9a82-43c4c34cea3b` | **Disabled username passwords.** Enforce disabled password authentication on username route. | Auth lifecycle hook regression. |-| S15 | `7cab7313-e225-4717-a347-9c4f238c3127` | **Nested JSON-LD openers.** Advance scanner past the consumed script body. | Posting parser suite. |-| S16 | `7872baa8-5616-49e9-b870-c16edf48e68a` | **Legacy custom-section lookup.** Precompute custom-section type map for legacy conversion. | Schema/PDF stylesheet suites. |-| S17 | `7768d784-ebe6-46a1-b4ab-b1321b74a2b3` | **WOFF expansion.** Validate directories, ranges, duplicates and output sizes; stream inflation within 32 MiB. | Valid, overlapping, dishonest-size and oversized WOFF regressions. |-| S18 | `75d09fe2-8ec0-4dc3-a316-3992daa3a460` | **Historical schedules.** Jump to recent recurrence and require strictly future next run. | Decades-old daily/weekly and DST regressions. |-| S19 | `6ce20412-732f-4bb2-a2c1-e3953d62ae7a` | **ODT/DOCX repeated layout.** Apply shared expanded-content preflight to both exporters. | Schema limits; DOCX and ODT suites. |-| S20 | `6b2b74e9-4fa1-45af-b651-f1ed530148cb` | **Native pagination loops.** Reject nonpositive usable pages; reserve bounded repeated content/padding and cap declared-height expansion. | Rust bridge/validation tests; new native artifacts required. |-| S21 | `674ef354-34f4-4ba6-81d2-42f51ce018ed` | **Malformed color regex.** Reject oversized input before color parsing. | Color regressions. |-| S22 | `66c88d58-cc25-40ce-b768-76e26030127c` | **Recursive write validation.** Use push/pop traversal paths, a depth cap, and string-only URL exemption. | Deep extension and URL-key object regressions. |-| S23 | `65182170-3921-46c8-ab9a-2650f23555f2` | **Repeated URL stripping.** Remove URLs once per contact line. | Plain-text import suite. |-| S24 | `60d1739d-f941-454c-aa9d-4eb321bef72d` | **Shared HTML tag regex.** Prevent matching across opening delimiters. | Utils and import suites. |-| S25 | `60809385-c889-4fc9-a138-b2a72f48d05e` | **Public-view map churn.** Use bounded insertion-order eviction instead of full hot-path sweeps. | View-dedup suite. |-| S26 | `5753d58d-17f6-44c1-98ab-92fcf36ae5d7` | **Domain claim race.** Lock and recheck exact hostname/token after DNS; compare-and-set background checks. | Domain replacement-race regression. |-| S27 | `4d88e627-8642-4890-b379-1dbbf757d235` | **Recovery leaves passkeys.** Revoke all existing passkeys on password recovery. | Verified and unverified mailbox recovery regressions. |-| S28 | `42f4ce15-148c-4c46-bc22-72d2c8a5e37f` | **Model saves stories.** Require signed user approval of stored exact story arguments; show approval on web/mobile. | SDK approval/merge tests; real browser approve/skip flow. |-| S29 | `3fff77b0-a857-4bcf-a9bd-e0921ec75242` | **Embedded-letter expansion.** Preflight aggregate letter/history design cost before mutations; index duplicate content. | Real-DB oversized adoption regression. |-| S30 | `3bac366e-8f2b-47c7-aff2-63b2e31e7ea0` | **Username reservation race.** Serialize normalized username claims/releases with advisory transaction locks and a database trigger. | Real-DB concurrent rename/delete/claim regressions; migration suite. |-| S31 | `3a79ada9-1985-41bc-b22b-c8a088e31149` | **Public web layout expansion.** Shared document tree preflight also protects public HTML rendering. | Schema limits and PDF web-page suite. |-| S32 | `3094c91b-e5b8-4a94-9b57-8a6b3b7646c3` | **Custom reference phones.** Redact phone numbers from custom References sections. | Built-in/custom redaction regression. |-| S33 | `2711a060-6eba-4b27-b31a-958045dfbf9e` | **AI fenced JSON regex.** Locate code fences with bounded index scans. | AI JSON generation suite. |-| S34 | `24d501ca-c2f8-4c38-82a1-58420e20bdfa` | **Manual domain grace bypass.** Expire failed proof after seven days even on repeated manual checks. | Domain expiry regression. |-| S35 | `238e6bdc-e2c1-4170-b129-02eb10113a10` | **Semantic item multiplication.** Reject expanded layout cost before semantic nodes allocate. | Schema expansion limits and semantic tree suites. |-| S36 | `1f40ec70-dd93-41f2-9dcf-a8f3f00288a8` | **Sparse LinkedIn CSV.** Iterate existing row cells instead of every header. | LinkedIn import suite. |-| S37 | `1d024eef-6e66-4251-b1fc-de9d0a6826f4` | **ZIP rejected-entry work.** Cap all encountered headers at 2,000, including rejected entries. | Rejected-header and inflated-byte ZIP regressions. |-| S38 | `0e915ef7-8540-4fbc-9d36-351134a4eafb` | **ATS geometry allocation.** Skip dense gutter analysis for non-finite or over-200-inch geometry. | Huge/Infinity/NaN geometry regressions. |-| S39 | `0d9f77e8-d80d-494e-80b6-ce73e5293787` | **Native API-key freshness.** Apply recent-sign-in requirement to direct HTTP API-key creation. | Stale/fresh HTTP issuance lifecycle regressions. |-| S40 | `064ac9d4-80b5-4261-b8e4-ab868b06698e` | **SVG script injection / CSP.** Parse colors strictly; construct numeric-only SVG paint; hash only fixed application script. | Color/icon payload tests and server CSP regression. |-| S41 | `c298c034-a622-4e11-949e-05efb082ad3a` | **Sparse application CSV.** Traverse present cells using the header mapping. | Ragged wide-header CSV regression. |-| S42 | `bd1ecc41-c879-4960-92d4-78aec22e62e7` | **Mobile malformed Markdown.** Exclude nested opening brackets from link labels. | Mobile suite and source review. |-| S43 | `ba84ef81-f8b0-497f-8df1-493f987d2540` | **Private upload reads before auth.** Authorize stored file/picture access before fetching object bytes. | S3 request-order/unauthorized-read regressions. |-| S44 | `a81520bf-1ee4-430a-8eaf-d25afd351edd` | **Career search disclosure.** Require exact-query approval before executing model-generated searches. | Actual SDK approval/denial and signed merge regressions. |-| S45 | `9f5ae7d9-93c3-49a8-b67a-afd145f2d3d5` | **Skipped-row CSV formulas.** Neutralize formula-prefixed headers and cells on export. | Formula/quote/newline CSV regression. |-| S46 | `9c97ae26-f9de-4afd-bdf1-63d815f754a8` | **Development preview credentials.** Install fixtures only on loopback with no existing account; update disk and memory together. | Mobile real-session/remote-origin/production regressions. |-| S47 | `788ee5a9-cd6d-447f-b75f-9fc0f3954488` | **Import summary regex.** Use bounded shared tag stripping. | Web import and utils suites. |-| S48 | `73e62630-a953-4efc-9f82-8181ef26d6d2` | **Cloudflare banned-user pictures.** Check public-picture owner eligibility before storage access. | Cloudflare banned-owner read regression. |-| S49 | `6e80f973-60c2-4790-8bb4-52b2cf15b6d4` | **Allowed URL differs from fetch.** Fetch canonical allowlisted URL; preserve trailing slash; ignore incoming assistant prose. | Canonical URL/trailing-slash and forged assistant URL regressions. |-| S50 | `66d330f3-5288-4033-ad7e-399c1289f42d` | **Imported utility classes.** Strip imported link classes before preview/editor rendering. | Rich-text class-injection regression. |-| S51 | `5f586035-cede-48ec-8fb9-5a1ba422752d` | **Browser account remnants.** Clear private contact/career/recovery storage and in-memory document queues on account cleanup. | Browser-storage unit regression and successful-sign-out E2E. |-| S52 | `583d71ef-8cd1-4258-81fb-b47d48c600f0` | **Dense table-span validation.** Bound spans and cells before materializing table geometry; flatten unsupported grids. | Huge-span/dense-grid editor regressions. |-| S53 | `334f807a-6f93-4c9f-be22-042d7ac838fb` | **Resolved sign-out errors.** Check SDK error result; retain session/drafts and report failure. | Failed settings sign-out browser regression. |-| S54 | `2a188f28-f645-47b1-9ac3-f42d60006d0c` | **Provider destination race.** Compare-and-set all credential/destination/test-state fields used by validation. | Snapshot-predicate and stale-write conflict regressions. |-| S55 | `24af44a4-ccfc-49fd-8818-8ccab0fddf89` | **Persistent recovery copies.** Expire after seven days; clear on sign-out/deletion; prevent late failed saves restoring them. | Expiry/late-save cleanup regressions. |-| S56 | `24321d50-617f-4872-a949-925178f1c1f4` | **Rejected tables still enter editor.** Normalize unsafe markup before editor initialization/paste and bound inherited attributes. | Rich-text editor/table regressions. |-| S57 | `21a7c521-5f49-4c7c-bc7d-800419739229` | **Cross-account mobile imports.** Retain selecting account scope through parse, RPC, REST and response awaits. | Account-switch-during-AI-import mobile regression. |-| S58 | `1f2168b6-60b2-4b57-be1f-7d8a487d85a4` | **Document search disclosure.** Use same signed exact-query approval as career chat. | Actual SDK search approval/denial and fresh-context replay regressions. |-| S59 | `1596445c-9460-4f7d-9056-2f21329c5d54` | **Filename trailing-space regex.** Clip sanitized filename before suffix matching. | Mobile suite and source review. |--## Product and operational changes--- Every assistant-generated search query and saved career story needs explicit approval of its exact content on web and mobile. Older clients without approval controls cannot complete these pending tools until updated.-- Removing document/posting context excludes earlier history from that reply. An approval from different context choices must be replaced by a new message.-- Passkey enrollment requires a verified mailbox and a sign-in within 24 hours. Password recovery revokes every passkey. Direct HTTP API-key creation also requires recent sign-in. Disabling password authentication now covers usernames.-- Replacing/removing stored application attachments requires delete permission. Write-only integrations can still attach an initial file.-- SMTP must negotiate STARTTLS or use direct TLS. Plaintext-only SMTP configurations fail.-- Oversized/deep/repeated documents, unsafe table spans and oversized fonts are rejected or flattened before expensive work. Existing pathological documents can fail export until simplified. Raw native repeated flow headers need explicit bounded heights; ordinary absolute sidebar backgrounds remain supported.-- Browser recovery copies expire after seven days and are removed on successful sign-out/deletion with other private drafts. Failed sign-out keeps the session and drafts, with an error notice.-- Username reservations now use a database migration. DNS proof expires after seven days of failure even with manual retries; stale domain/provider edits conflict instead of silently replacing newer state.-- Overdue recurring schedules coalesce missed runs and schedule a future occurrence.-- New UI strings were extracted into web/mobile catalogs; untranslated locales use their existing English fallback until translated.--## Release gates and limits--Apply the username-reservation migration through normal deployment. Deploy compatible backend changes and updated web/mobile JavaScript together where possible; update old clients to use new approval controls. Rebuild and verify Forme artifacts from this reviewed source, commit their real manifest/checksum, then produce new signed iOS/Android store binaries. Follow [mobile release handoff](./mobile-release-handoff.md#security-remediation-native-gate-2026-10-28). Never bypass the native source hash.--Not verified here: hosted CI, production migration/deployment, production SMTP/DNS/provider behavior, signed iOS/Android rendering, new native artifact publication/store rollout, or a fresh external security scan. Source/local tests cannot establish that the whole app has no vulnerabilities.diff --git a/.agents/docs/template-showcase-sources.json b/.agents/docs/template-showcase-sources.jsondeleted file mode 100644index 16ba8ed86..000000000--- a/.agents/docs/template-showcase-sources.json+++ /dev/null@@ -1,128 +0,0 @@-[- {- "template": "azurill",- "fictionalName": "Maya Bennett",- "imageUrl": "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "bronzor",- "fictionalName": "Daniel Brooks",- "imageUrl": "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "chikorita",- "fictionalName": "Leila Morgan",- "imageUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "ditgar",- "fictionalName": "Adrian Cole",- "imageUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "ditto",- "fictionalName": "Nina Patel",- "imageUrl": "https://images.unsplash.com/photo-1531123897727-8f129e1688ce?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "gengar",- "fictionalName": "Sofia Reyes",- "imageUrl": "https://images.unsplash.com/photo-1580489944761-15a19d654956?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "glalie",- "fictionalName": "Amelia Hart",- "imageUrl": "https://images.unsplash.com/photo-1589156280159-27698a70f29e?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "kakuna",- "fictionalName": "Marcus Evans",- "imageUrl": "https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "lapras",- "fictionalName": "Ethan Park",- "imageUrl": "https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "leafish",- "fictionalName": "Oliver Chen",- "imageUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "meowth",- "fictionalName": "Alex Robinson",- "imageUrl": "https://images.unsplash.com/photo-1521119989659-a83eee488004?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "onyx",- "fictionalName": "Charlotte Wilson",- "imageUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "persian",- "fictionalName": "Lucas Martins",- "imageUrl": "https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "pikachu",- "fictionalName": "Grace Okafor",- "imageUrl": "https://images.unsplash.com/photo-1517365830460-955ce3ccd263?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "porygon",- "fictionalName": "Isabella Rossi",- "imageUrl": "https://images.unsplash.com/photo-1548142813-c348350df52b?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "rhyhorn",- "fictionalName": "Gabriel Santos",- "imageUrl": "https://images.unsplash.com/photo-1519345182560-3f2917c472ef?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "scizor",- "fictionalName": "Noah Williams",- "imageUrl": "https://images.unsplash.com/photo-1527980965255-d3b416303d12?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- },- {- "template": "smeargle",- "fictionalName": "James Walker",- "imageUrl": "https://images.unsplash.com/photo-1552058544-f2b08422138a?w=640&h=640&fit=crop&crop=faces&q=92",- "source": "Unsplash image CDN",- "license": "https://unsplash.com/license"- }-]diff --git a/.agents/docs/turbo-remote-cache.md b/.agents/docs/turbo-remote-cache.mddeleted file mode 100644index 7377dcb29..000000000--- a/.agents/docs/turbo-remote-cache.md+++ /dev/null@@ -1,38 +0,0 @@-# Turbo remote cache--Main-branch CI and Docker builds share Turbo task results through Vercel Remote Cache. Vercel deployments-of the same team use it automatically. Pull requests keep only the Actions cache, which restores main's latest-results, so nothing they build reaches a published image or a Vercel deployment.--## Setup--1. In the Vercel team that owns the deployment: Settings → Build and Deployment → OIDC Policies for CLI Access →- add a Turborepo CLI policy with a custom issuer and claims. A GitHub-preset policy rejected this repository's- tokens with `Not authorized.`: the repository uses GitHub's immutable OIDC subject, so `sub` carries owner and- repository IDs instead of names.- - Issuer: `https://token.actions.githubusercontent.com`- - Audience: `https://github.com/reactive-resume` (GitHub's default; the action requests none)- - Claim `sub`: `repo:reactive-resume@245328954/reactive-resume@249995750:ref:refs/heads/main`, which also limits- tokens to main-branch runs-2. Add the repository variable `TURBO_TEAM` with the team slug (`gh variable set TURBO_TEAM --body <slug>`).--No secret is stored: `vercel/setup-turborepo-remote-cache-action` exchanges each job's GitHub OIDC token for a-short-lived Turbo token and revokes it when the job ends. Without `TURBO_TEAM`, or on a ref the policy doesn't-match, the step is skipped or fails softly and builds run as before.--## Where it applies--- `ci.yml` test job, push events only (main): unit `test:ci`, typecheck and the browser suite's build.-- `docker-publish.yml` build job: the token reaches the image build as the `TURBO_TOKEN` BuildKit secret, never a- build arg, because published provenance records build args. `TURBO_TEAM` is an ordinary build arg.--## Keeping hashes equal--A Docker build only reuses checkout results when Turbo computes the same task hashes in both places. The-Dockerfile restores what `turbo prune` changes or drops: the original root `package.json`, `.gitignore` (without-it, Turbo hashes `node_modules/.bin` links), and the `globalDependencies` files. Check after changing `turbo.json`-globals or the Dockerfile's builder stage: compare `pnpm exec turbo run build --filter=web --filter=server---dry=json` task hashes from a checkout with the same command run in the builder stage.--The build task hashes the root `package.json` because web and server embed its version; without it, a release-commit that only bumps the version would restore the previous build.diff --git a/.gitignore b/.gitignoreindex aff7e831c..0f29ef3e9 100644--- a/.gitignore+++ b/.gitignore@@ -50,7 +50,6 @@ temp# AI.codex.agents/*-!.agents/docs/.claude.cursor.mcp.json