chore(work): tick task in 02-rate-limit-implementations
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"updated_at": "2026-05-20T08:24:33.457Z",
|
"updated_at": "2026-05-20T08:32:32.756Z",
|
||||||
"epics": {
|
"epics": {
|
||||||
"binder-wrap-helper": {
|
"binder-wrap-helper": {
|
||||||
"status": "done",
|
"status": "done",
|
||||||
@@ -581,10 +581,10 @@
|
|||||||
"blocks": []
|
"blocks": []
|
||||||
},
|
},
|
||||||
"02-rate-limit-implementations": {
|
"02-rate-limit-implementations": {
|
||||||
"status": "todo",
|
"status": "in-progress",
|
||||||
"title": "Rate-limit implementations — Noop, InMemory, Recording",
|
"title": "Rate-limit implementations — Noop, InMemory, Recording",
|
||||||
"ac_total": 2,
|
"ac_total": 2,
|
||||||
"ac_completed": 0,
|
"ac_completed": 1,
|
||||||
"depends_on": [
|
"depends_on": [
|
||||||
"01-rate-limit-type-primitives"
|
"01-rate-limit-type-primitives"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ id: 02-rate-limit-implementations
|
|||||||
epic: security-headers-rate-limit-sbom
|
epic: security-headers-rate-limit-sbom
|
||||||
title: Rate-limit implementations — Noop, InMemory, Recording
|
title: Rate-limit implementations — Noop, InMemory, Recording
|
||||||
type: technical-story
|
type: technical-story
|
||||||
status: todo
|
status: in-progress
|
||||||
feature: core-shared
|
feature: core-shared
|
||||||
depends-on: [01-rate-limit-type-primitives]
|
depends-on: [01-rate-limit-type-primitives]
|
||||||
blocks:
|
blocks:
|
||||||
@@ -12,7 +12,7 @@ blocks:
|
|||||||
05-auth-signin-rate-limit-backfill,
|
05-auth-signin-rate-limit-backfill,
|
||||||
]
|
]
|
||||||
created: 2026-05-20T00:00:00Z
|
created: 2026-05-20T00:00:00Z
|
||||||
updated: 2026-05-20T08:14:55.907Z
|
updated: 2026-05-20T08:32:32.585Z
|
||||||
---
|
---
|
||||||
|
|
||||||
## Goal
|
## Goal
|
||||||
@@ -45,5 +45,5 @@ The `withRateLimit` wrapper (Story 04) and the `auth.signIn` backfill (Story 05)
|
|||||||
|
|
||||||
## Tasks
|
## Tasks
|
||||||
|
|
||||||
- [ ] Implement `NoopRateLimit` in `packages/core-shared/src/rate-limit/noop-rate-limit.ts` with sibling unit test (consume always allowed, reset no-op); implement `InMemoryRateLimit` in `packages/core-shared/src/rate-limit/in-memory-rate-limit.ts` with sibling unit test (per-bucket tracking, check-at-read expiry via injected clock, explicit reset restores budget); export both from `core-shared` barrel; all gates pass.
|
- [x] Implement `NoopRateLimit` in `packages/core-shared/src/rate-limit/noop-rate-limit.ts` with sibling unit test (consume always allowed, reset no-op); implement `InMemoryRateLimit` in `packages/core-shared/src/rate-limit/in-memory-rate-limit.ts` with sibling unit test (per-bucket tracking, check-at-read expiry via injected clock, explicit reset restores budget); export both from `core-shared` barrel; all gates pass.
|
||||||
- [ ] Implement `RecordingRateLimit` in `packages/core-testing/src/rate-limit/recording-rate-limit.ts` capturing `consume` + `reset` call arguments verbatim with `consumeCalls` + `resetCalls` accessors; sibling test verifies capture correctness; export from `core-testing` barrel; all gates pass.
|
- [ ] Implement `RecordingRateLimit` in `packages/core-testing/src/rate-limit/recording-rate-limit.ts` capturing `consume` + `reset` call arguments verbatim with `consumeCalls` + `resetCalls` accessors; sibling test verifies capture correctness; export from `core-testing` barrel; all gates pass.
|
||||||
|
|||||||
Reference in New Issue
Block a user