Skip to content

GEN-2157: establish API/static frontend package foundation - #205

Closed
asselstine wants to merge 2 commits into
mainfrom
gen-2157-package-boundary
Closed

asselstine wants to merge 2 commits into
mainfrom
gen-2157-package-boundary

Conversation

@asselstine

@asselstine asselstine commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Superseded by PR #206, which includes every commit in this foundation and completes GEN-2157. No separate merge is needed. The rollback anchor is an intermediate ancestor of #206 and remains preserved.

GEN-2157 currently keeps backend code and server-generated UI together in packages/app. This PR establishes the package boundary while retaining all existing production routes and behavior. It is the first reviewable migration stage, not completion of GEN-2157.

Commits are separated for review:

  • Mechanical move of the existing Worker, tests, migrations and assets to packages/api, updating deployment/docs/generation paths. Wrangler configuration is unchanged byte-for-byte, preserving Worker name, bindings and Durable Object migration history. The npm name remains factorize for command compatibility.
  • Static Vite/React/TypeScript/Tailwind foundation with TanStack Router route splitting and TanStack Query; browser-safe OpenAPI-generated client; TypeScript-aware import boundary checks and adversarial tests; client drift checks in merge-group CI. Production continues to serve the existing UI. No static hosting cutover or deployment was performed.

The route inventory, native-auth/protocol overlaps, same-origin proxy setup, rollout/rollback gates and remaining acceptance work are documented in docs/package-migration.md. Landed #200–#204 functionality remains in the moved code. A fresh ten-job signed-cookie browser baseline is committed without claiming a migration speedup.

Validation: npm ci; npm run check (378 tests passed, five existing skips; 11 package-boundary tests; generated-client/OpenAPI drift checks; TypeScript; static production build; API and tail-relay Wrangler dry runs); docs validation; marketing build; signed-cookie Playwright loading baseline covering seven screens. PostgreSQL tests ran locally against disposable databases. The first queue-test run used an unmigrated database and failed; the corrected migrated database passed in the full final run.

Remaining work before this issue can be completed: public session/native-auth contracts and CSRF, consent/device support, complete public response schemas, bounded job summaries/concurrency, lightweight run/revision-aware trace polling, feature screen migration and parity, large-workspace measurements, hosting/routing/security/cache tests, and legacy HTML/CSS retirement. Keep this PR draft while that broader task remains incomplete; it can be reviewed as a standalone foundation.

@linear

linear Bot commented Oct 9, 2026

Copy link
Copy Markdown

GEN-2157

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant