Repository navigation
feat(patches): publish tier 2 server artifacts - #434
Conversation
Astra reviewReviewed StandardsNo merge-blocking method or YAGNI findings. The change reuses the existing inspection process, retained-version storage, pending-object reclamation, runtime admission and lifecycle checks. I found no abstraction or future-only behavior that warrants blocking this merge. SpecNo merge-blocking intent findings. The diff covers two-artifact publication, stored-byte descriptor inspection, the served-tier gate and rollback, public-sharing refusals, artifact metadata, publish-event fields, and the development/test execution boundary. Production tier 2 publication remains refused. Verification during this review used disposable local fixtures and the real Vite/workerd path:
I did not rerun the full suite or the hosted-browser acceptance flow reported in the PR. Summary: Standards 0 blockers, worst issue none; Spec 0 blockers, worst issue none. |
Opus reviewOne blocking finding. It is small. 1.
|
|
Resolved the review in commit Fixed
Kept as is
Verification
No unresolved review or CI blockers. The PR remains stacked on |
027bf0d to
5224203
Compare
246580f to
9d2f17e
Compare
…435) Tier 2 patches can publish, but agents still need a working starter and a reliable way to move existing repos between tiers. Adds `patchy init --tier 2` with a Preact page and typed server handlers. Init takes the exact workerd pin from the installed release. Refresh manages both tier transitions, including pins, generated server types and the tier-specific skill, while preserving authored files. Updates the global and project skills, skill-lock hash and CLI/product documentation. Stacked on `tier2/401-publish-tier2` / #434. This PR targets that branch and contains only the #402 changes. Implements #402 from spec #384. ## Verification - Typecheck and lint passed. - Full suite passed: 1,394 tests across 124 files. After the final init pin-source correction, package typecheck, targeted lint and both init tests passed. - Isolated smoke covered init, two-artifact publish, both tier transitions, stale module-list and pin refusals, context cleanup and public-sharing recovery. - The hosted starter saved a note and retained it after reload. A separate release-drift smoke selected the installed release's engine and typechecked in 0.83 seconds. Tier 2 query subscriptions and the patch-repo dev engine remain #403 and #404; the starter uses one-shot server calls on this stack. Implemented with OpenAI GPT-6 Astra through omp.
Tier 2 repos could not publish their server code, so hosted pages could not call their handlers.
Publish now builds HTML and a closed server bundle. The instance re-derives handler descriptors from the stored bytes before admitting the version. Dev and test instances serve it through the local executor; production remains gated. Tier 2 cannot be public, and older tier 1 documents lose direct operations while tier 2 is served. Rollback restores those operations.
Stacked on
tier2/400-mutations; merge that branch first. This PR targets that branch, notmain.Closes #401.
Verification
pnpm typecheckandpnpm lintpassed.pnpm test --maxWorkers=4: 124 files, 1,388 tests passed.Implemented with GPT-6 Astra using the omp harness.