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-analytics.test.tsmodified+2-1
Changes to packages/registry/src/object-analytics.test.ts
@@ -8,6 +8,7 @@
88 * starts empty.
99 */
1010
11import { S3RequestError } from './storage/aws-client'
1112import { describe, expect, it } from 'bun:test'
1213import { ObjectAnalytics } from './storage/object-analytics'
1314
@@ -17,7 +18,7 @@ function mockBucket() {
1718 async getObjectBuffer(_bucket: string, key: string): Promise<Buffer> {
1819 const v = store.get(key)
1920 if (!v)
20 throw new Error('S3 GET failed: 404 Not Found')
21 throw new S3RequestError('GET', 404, 'NoSuchKey')
2122 return v
2223 },
2324 async putObject(o: { bucket: string, key: string, body: Buffer | string }): Promise<void> {