Repository navigation
feat(patchy): initialize tier 2 repos and switch tiers with refresh - #435
Conversation
Astra reviewReviewed StandardsNo merge-blocking method or YAGNI findings. The change extends the existing generation and managed-file transaction paths rather than adding a separate tier-change mechanism. SpecNo merge-blocking intent findings. The implementation covers tier 2 initialization, both tier transitions, managed pins/files/skills, stale module-list refusal and the requested skill fixes. It keeps query subscriptions and the production-engine dev loop explicitly assigned to #403 and #404. Verification used a temporary repo, loopback-only metadata and package-registry fixtures, the real SDK generator, packed CLI and installed tools:
Reviewed the affected CLI/JSON, generation/dev preparation, starter, skills, ADR, product and glossary changes. No new wire schemas, migrations, company-resource locking or package-layout changes. Hosted publication, browser behavior and the full test suite were not rerun. Blocking findings: Standards 0; Spec 0. No merge blocker identified on either axis. |
Opus reviewReviewed Blocking, most severe first1. Internal tracker numbers ship to customer agents. This PR adds
The 2. Write-once 3. The Done-when behaviour has no test. #402's Done-when says: "flipping 4. A tier round trip rewrites builder-owned
The newline and indent that belonged to 5. The pin removal relies on an incorrect type ( Checked and fine
Reviewed by Claude Opus 5.5 via Claude Code. |
|
Addressed the review in I read the conversation comments, review bodies and inline review comments. Astra reported no blockers. Opus's five findings were valid; all five are fixed. No Grok review or inline findings were present.
Kept as is:
Verification on the pushed changes:
Latest-commit verification is complete for Rechecked conversation comments, review bodies and inline comments after CI: no new findings. GitHub reports |
246580f to
9d2f17e
Compare
7c3ffa9 to
fdb23ba
Compare
Tier 2 pages can call server queries, but their results do not stay in sync when a colleague changes the data. Enable generated query `.subscribe` and `useQuery` through the existing document stream and scheduler. The host tracks resources read by each query, preserves the last value through refusals, and recovers on reshare. Permanent failures end only the affected subscription; loss of document authority stops the document. The installed SDK uses one Preact runtime in optimized development and production builds. Stacked on #435, `tier2/402-init-tier2`. This PR targets that branch and adds only the query-subscription work for #403. Closes #403. ## Verification - Typecheck and lint passed. - 39 focused runtime tests and 27 Postgres concurrency tests passed. - Three published-browser scenarios passed, covering two-viewer updates, reconnect and hidden-tab recovery, unshare/reshare, handler removal, and argument limits. - Packed Preact checks passed in optimized development and production builds. Manual browser smoke used real published workerd patches. - Standards and spec reviews have no remaining findings. The full offline suite is not green: 123/125 files passed, with four timeout failures. Postgres mapping passed in isolation, and refresh passed with a longer diagnostic deadline. Both unchanged CLI-init cases still timed out. No diagnostic edits or timeout changes are included. Implemented with OpenAI GPT-6 Astra using the omp harness.
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 2with 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
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.