Repository navigation
feat(patchy): run dev on the production handler engine - #437
Conversation
Astra reviewReviewed StandardsNo separate merge-blocking method or YAGNI findings. Spec[P1] Intent: keep local fixtures out of the production execution-task residency budget
This breaks #404's acceptance requirement that “handlers read shared-table and connection fixtures in dev.” The new fixture acceptance test failed during initial binding with I reproduced the same failure outside Vitest through Give the dev composition appropriate residency accounting/policy rather than treating its PGlite/Vite host as a production Fargate execution task. Preserve the fixed handler contract limits and watchdog. Verify a fixture-bearing dev session can start, call handlers and rebind; changing only the test's limit would leave the user path broken. Verification
Summary: Standards 0; Spec 1, worst issue P1: valid fixture-bearing dev execution returns |
Opus reviewReviewed 1. correctness/security: the loader's closed-module check can now be bypassed (
|
|
Addressed in aa88c7b, dbaaa48, 8ca5a33 and cc98e88. Fixed
The production loader introduced in #395 had the same fetch-only outbound configuration, but its Acorn check rejected this exact import. Opus demonstrated access to Kept, with reasons
Verification
|
6a6649b to
39a7c23
Compare
Implement issue #404's local engine, atomic server rebinding, colleague mounts, fixture callbacks and viewer-attributed logs. Preserve in-flight bindings and refresh trusted client handler metadata without reloading. Add TLS verify-full acceptance and update the development contracts.
Dispose each inspection Worker with its request, retain actionable build diagnostics, and make the shared subscription registry an explicit dependency. Use an import scanner instead of allocating a full AST during worker loading, and observe distinct watcher transitions in the regression tests.
Use pnpm 11 configuration variables and real archive integrity metadata. Cancel timed-out CLI children before removing their fixtures, and use the existing integration deadline for the cold-install refresh scenario.
Give every inspected and bound Worker null outbound authority, independent of static import detection. Keep trusted callback RPC intact and cover the exact socket-import bypass against real listeners. Count only supervised workerd RSS in local mode while preserving fleet host-inclusive accounting and genuine child residency enforcement.
Publish complete watcher fixture saves by rename rather than exposing truncated files between writes. Keep checking every distinct build or refusal. Accept colleagueUrl in the tier 1 dev JSON contract and verify its distinct loopback origin in the packed CLI smoke.
cc98e88 to
92dafe3
Compare
patchy devcould not exercise the full tier 2 handler loop through the production engine. It now uses the supervised local executor and callback gateway over PGlite and fixtures, with live server rebinding that preserves browser state and in-flight calls.Subscriptions rerun on the new binding, failed builds keep the last good version, and new server modules become callable without restarting. Both tiers expose a non-admin colleague mount, and local logs attribute calls to their viewer. The docs and skills explain the limits of local execution compared with production.
This PR is stacked on
tier2/403-query-subscriptionsand targets that branch, notmain.Closes #404. Part of #384.
Verification
pnpm typecheck,pnpm lint, andpnpm testpassed: 1,422 tests across 130 files.verify-fullTLS acceptance passed with a non-superuser role; handlers also read shared-table and connection fixtures.Implemented with
openai-codex/gpt-6-astrain theompharness.