Skip to content
Roadmap0/111
not startedstudy day 1 of 6 · covers original day 16

Implement request rate limits

P1 AssistantM5
not started0/5 blocks
0/5
Jump & context

Week 3: Memory Security, Trajectory Ledger Contract, Supply-Chain SBOM & Vector Foundations

The five hours

  1. 01

    Concepts & system design

    60 min

    R03 — API resource limits

    R25 — Docker resource & process boundaries

    Read the assigned sections; map the mechanism, threat model and trade-offs.

  2. 02

    Project implementation

    120 min

    Implement per-user request rate limits, concurrency limits, and maximum tool-call budgets per turn.

    Build, integrate, debug and improve the increment in the active project.

  3. 03

    Security lab

    60 min

    Simulate a recursive tool-calling loop and a provider retry storm; verify deterministic stop conditions halt execution.

    Test the abuse case, failure path, authorization bypass or resource limit.

  4. 04

    Verification & evidence

    30 min

    Rate/concurrency limiter tests and loop-termination load observations.

    Add or run regression tests; record the 9-point evidence record.

  5. 05

    Deliberate practice & Socratic review

    30 min

    Answer the 8 Socratic questions without notes: What? Why? How? What if? Why not? How can I prove it? Where can it break? What have I learned?

    Re-explain the hardest concept aloud, inspect one edge case, update the gap log.

  6. total5 h

Read today · inside the concepts block

R03 R25

Read only the named sections needed for today's task. Reading sits inside the 60-minute concepts block; it is not extra time.

Free resources for this day

5 curated
  • docsDocker
    Docker Engine security | Docker Docs

    Covers the daemon socket as a root-equivalent surface, namespaces/capabilities, and non-root or rootless operation, which is the containment boundary for a tool-executing app.

    R25S3checked 2026-11-11
  • videoByteByteGo · 7:46
    Rate Limiter System Design: Token Bucket, Leaky Bucket, Scaling

    Compares token bucket against leaky bucket and fixed window, which determines whether your per-user limit allows a burst or enforces a smooth rate.

    R03M5checked 2026-11-11
  • videoTechWorld with Nana · 18:27
    Top 8 Docker Best Practices for using Docker in Production

    Shows non-root users, minimal base images, read-only filesystems, and secret handling, which are the concrete settings that stop a compromised tool from escalating to the host.

    R25checked 2026-11-11
  • articlesmudge.ai
    Visualizing algorithms for rate limiting

    Animated comparisons of token bucket, leaky bucket, fixed and sliding windows, making the burst-versus-smoothness tradeoff visible before you pick a limiter for per-user concurrency and tool-call budgets.

    M5R03checked 2026-11-11
  • repoGitHub
    laurentS/slowapi: A rate limiter for Starlette and FastAPI

    Decorator-based limits keyed by user, route, or custom function, which is the direct implementation path for per-user request limits in a FastAPI app.

    R03M5checked 2026-11-11

Evidence record · 9-point standard

0/9

A lab is complete only when it produces evidence. Installing PyRIT, Garak, Presidio or TransformerLens is not completion. Saved on this device only.

Day notes

empty

The two source formulations

verbatim · nothing summarised

Project & Stage Target

P1 | M5

Core Implementation

Implement per-user request rate limits, concurrency limits, and maximum tool-call budgets per turn.

Security Lab

Simulate a recursive tool-calling loop and a provider retry storm; verify deterministic stop conditions halt execution.

Verification & Evidence

Rate/concurrency limiter tests and loop-termination load observations.

Read Today (60m Concepts Block)

R03 (API resource limits), R25 (Docker resource & process boundaries).

---