Repository navigation
feat(primitives): stage browser uploads for tier 2 actions - #448
Conversation
Astra reviewReviewed StandardsNo merge-blocking method or YAGNI findings. SpecNo merge-blocking intent findings. The reviewed paths cover viewer/patch/version binding, authoritative upload metadata, single-use adoption, discard races, expiry and sweep protection, quotas, and the documented partial outcome when a later mutation fails. Verification
Standards: 0 blocking findings. Spec: 0 blocking findings. No merge blockers found in this pass. |
Opus reviewReviewed 1. Correctness/method: the sweep deletes blobs while holding the company-wide object lock and a company lease
This breaks the company-resources rule in CLAUDE.md ("blob I/O outside leases"). It also contradicts the ADR-0009 text this PR adds ( 2. YAGNI: ordinary byte puts now take reservations and leave permanent
|
|
Addressed the review feedback in Fixed
Kept, with reasons
Astra reported no blockers. Conversation comments, Reviews-tab bodies and inline comments were rechecked after the final push and CI completion; no new feedback or Grok review was present. Both focused Standards and Spec re-reviews finished without remaining findings. Verification
Company-resource semantics, retained inventory initialization, development verification docs, product docs and ADR-0009 were updated. Wire/CLI contracts, numbered platform migrations, served pages, reverse-state APIs and package layout are unchanged. No unresolved review blockers. PR remains open and unmerged. |
cb2283e to
4c3a86f
Compare
e528ba8 to
fc5197d
Compare
Tier 2 pages need to upload files without sending their bytes through the isolate.
Add
patchy.files.stageanddiscard, plus single-use adoption through action arguments declared witht.upload(). Adoption uses stored metadata and writes a file pointer without copying bytes. Quotas, expiry, and sweep locking cover abandoned uploads and concurrent adoption or discard. Hosted and local dev paths share the implementation; docs and SDK skills describe partial outcomes when a later mutation fails.Stacked on
tier2/408-file-handles. File handles and the download UI come from that base branch; this PR adds staged uploads for #409.Closes #409.
Verification
pnpm build,pnpm typecheck, andpnpm lintpassed.pnpm test: 134 files, 1,525 tests passed.Implemented with OpenAI GPT-6 Astra using the omp harness.