ReviewOS

also looking at this

pantry-pm/pantry

fix: hydrate durable registry snapshots before serving writes

#244
Merged chris wants to merge codex/wildloop-registry-rollout into main
11 files +202 -35
packages/registry/src/object-metadata.test.tsmodified+2-1
Changes to packages/registry/src/object-metadata.test.ts
@@ -7,6 +7,7 @@
77 * used to hold), and that a missing snapshot starts empty rather than throwing.
88 */
99
10import { S3RequestError } from './storage/aws-client'
1011import type { CommitPublish, PackageMetadata } from './types'
1112import { describe, expect, it } from 'bun:test'
1213import { ObjectMetadataStorage } from './storage/object-metadata'
@@ -18,7 +19,7 @@ function mockBucket() {
1819 async getObjectBuffer(_bucket: string, key: string): Promise<Buffer> {
1920 const v = store.get(key)
2021 if (!v)
21 throw new Error('S3 GET failed: 404 Not Found')
22 throw new S3RequestError('GET', 404, 'NoSuchKey')
2223 return v
2324 },
2425 async putObject(o: { bucket: string, key: string, body: Buffer | string }): Promise<void> {