Commit 1cd2da6
feat(redis-worker,webapp): mollifier buffer extensions + snapshot type
Adds the buffer-side data layer used by phase-3 work:
- buffer.ts gains entry inspection (getEntry), idempotency lookup
(lookupIdempotency), in-place snapshot mutation (mutateSnapshot),
and dwell tracking — all atomic via Lua.
- snapshot.server.ts: shared MollifierSnapshot type + (de)serialise.
- Drops the entry-TTL config — the drainer is the recovery mechanism.
Adds methods to the buffer interface; nothing consumes them yet.
Subsequent PRs in the stack wire trigger-time mollify, read-fallback,
and mutation paths against this surface.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5ba1b32 commit 1cd2da6
8 files changed
Lines changed: 1786 additions & 138 deletions
File tree
- .changeset
- apps/webapp/app
- v3/mollifier
- packages/redis-worker/src/mollifier
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1095 | 1095 | | |
1096 | 1096 | | |
1097 | 1097 | | |
1098 | | - | |
1099 | 1098 | | |
1100 | 1099 | | |
1101 | 1100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments