Repository navigation
feat(patchy): publish patches directly from repos - #222
Conversation
Astra reviewReviewed StandardsNo independent merge-blocking standards or YAGNI findings. The method concern below has an observable spec failure, rather than being a style preference. Spec
Verification: exercised the source CLI with real TypeScript/Vite tools and a disposable local HTTP stub. A baseline repo published successfully; both CSS cases and moved-repo recovery reproduced as described. No live instance/database or full-suite run. Summary: Standards: 0 blockers. Spec: 2 blockers; worst is stranded create recovery after moving the repo. |
Sol reviewStandards
Spec
VerificationAdditional verified defects:
Focused verification passed: 13 repo-publish/config tests, 3 server interruption/replay tests, and the tier-specific body-cap test. Summary: Standards: 3 findings; worst is recovered updates losing repo identity. Spec: 3 findings; worst is persisting a foreign instance/patch pair. Verification added 5 concrete edge defects; the managed-file symlink write and recovery-state races are the highest risk. |
|
Addressed the Astra review and Opus review in e9e7564. Opus replaces Sol as the cross-family pass. This disposition supersedes the earlier instance-rebinding advice. Opus disposition
Earlier fixes retainedMoved-repo replay uses the current root and the exact saved request/key; owner checks precede replay. CSS-tree handles escaped syntax and string-valued image candidates without rejecting harmless strings. Generated release/manifest stamps, safe managed-manifest paths, tier-zero noscript inspection, recovered-update binding checks, decoded definitive 413 handling, key-addressed atomic selection/clearing, repo/global-state independence and Evidence and merge readiness
Unresolved blockers: none. Ready to merge into |
Opus reviewReviewed Everything below was reproduced by running the real CLI through this package's own test harness (a scratch copy of Standards
Spec
MethodThe shape is right: recovery before any fresh work, one persisted attempt carrying the whole request, refusal before persistence, and a repo-mode discriminator rather than a path. The key-addressed slot ( Summary: Standards: 3 findings; worst is |
7d8ba8f to
6dfb17c
Compare
Implement #206: ordered repo build and owner-bound persisted publish recovery, repo share/delete targets, and interruption coverage. Keep the existing server transaction and replay path.
e9e7564 to
3d96fcc
Compare
Patch repos can be initialized and refreshed, but cannot yet be published without switching to a standalone HTML file.
Add repo publishing for tiers 0 and 1, with release and declaration checks, typechecking, single-file bundling, and recoverable publication. Creates save the returned patch ID; share and delete use that repo identity. Update the CLI contracts and skills, and cover interrupted publication and bundle refusal paths.
Stacked on
sdk/205-tier1-shell(#221). This PR targets that branch and contains the #206 changes, not the preceding stack.Closes #206.
Verification
pnpm test: 672 tests passed across 70 files.pnpm format:check,pnpm lint, andpnpm typecheckpassed.pnpm test:packed-cli-e2epassed against a real disposable server.Implemented with GPT-6 Astra in the Oh My Pi harness.
Merge preparation: three multi-process CLI scenarios exceeded Vitest's five-second default on Node 22. Backported #223's existing 30-second budgets for the credential-precedence sequence and two repo-build scenarios. Assertions and product code are unchanged. All 113 CLI tests passed locally on Node 22 with two CPUs; all four focused cases passed with one CPU. Formatting and lint passed.
CI correction and merge preparation: GPT-6 in Codex.