Skip to content

Commit 7ff3ac0

Browse files
committed
docs: catalog at 303 with 0283 to 0287, PP6 to PP10 ticked, and service-project known limits and Valkey note
1 parent fc2ee4c commit 7ff3ac0

4 files changed

Lines changed: 38 additions & 10 deletions

File tree

‎docs/roadmap.md‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ The pilots are written with the next project problems.
199199
- [x] P7: the first problem in TypeScript, `0277-coworking-availability-typescript`.
200200
- [x] P8: the first problem in Python, `0278-coworking-availability-python`, graded by the same cases and mock servers as `0277`. The catalog then had 294 entries.
201201
- [ ] P9: code intelligence and Web UI.
202-
- [x] P10: data-driven problems. Built: [backing services](specs/service-projects.md#backing-services), with a Postgres and Redis fixture, `grade_setup` on them, Moto measured, and [grader reach](specs/service-projects.md#grader-reach) for PP3's identity provider. [Parallel cases](specs/service-projects.md#parallel-cases) are built too. Still planned: D7 for them, and contract tables (R9). The data-driven problems are PP5 to PP10 below; PP5 is built.
202+
- [x] P10: data-driven problems. Built: [backing services](specs/service-projects.md#backing-services), with a Postgres and Redis fixture, `grade_setup` on them, Moto measured, and [grader reach](specs/service-projects.md#grader-reach) for PP3's identity provider. [Parallel cases](specs/service-projects.md#parallel-cases) are built too. Still planned: D7 for them, and contract tables (R9). The data-driven problems are PP5 to PP10 below, and all six are built.
203203
- [ ] P11: mock server extensions, multi-step cases, project-size security and AI problems. Grader part built: [multi-step cases](specs/service-projects.md#multi-step-cases) with flows, cookie jars and captures, the app output check, log assertions on form fields and headers, and the mock server's [pass-through](specs/service-projects.md#pass-through) with token tampering, which reach P10's services through `grader_reach`. PP3 is built as `0280`. Still open: SSE streaming and the rest of R33, and the AI problems.
204204
- [ ] P12 to P14: Kotlin and Java, Go, Rust (maybe).
205205

@@ -232,7 +232,7 @@ The owner accepted this list on 2026-11-08. Each is original and new; none repla
232232

233233
PP3 waited for P10's backing services and grader reach and for P11's multi-step cases, because a mock server does not sign tokens per request ([ADR 0019](decisions/0019-service-projects.md), R34). It is built as `0280`, with Keycloak as the identity provider behind a mock server's pass-through.
234234

235-
**With backing services (P10: Postgres, Redis, AWS services through Moto):**
235+
**With backing services (P10: Postgres, Redis or Valkey, AWS services through Moto):**
236236

237237
| ID | Project | Domains · roles | What it teaches | Difficulty |
238238
|----|---------|-----------------|-----------------|------------|
@@ -253,14 +253,18 @@ PP3 waited for P10's backing services and grader reach and for P11's multi-step
253253
| PP14 | Fix the vulnerable service | security · security-engineer | A working app with broken authentication, IDOR, mass assignment and path traversal, graded by attack cases that must fail and normal cases that must keep passing | hard |
254254
| PP15 | Secure file upload | security, backend · backend, security-engineer | Size limits, content sniffing, path traversal, a mock malware-scan vendor that fails | medium |
255255

256-
Suggested order: PP1, PP2, PP4, PP3 and PP5 are built. Next PP6 to PP10 on the backing services, then D7 and contract tables (R9) where a problem needs them, then P11's SSE streaming and the rest of R33 with PP11 to PP15.
256+
Suggested order: PP1 to PP10 are built. What is left is PP11 to PP15, which need P11's SSE streaming and LLM provider mocks (the rest of R33); then P9, code intelligence and the Web UI; then P12 to P14, the Kotlin and Java, Go and Rust templates. D7 and contract tables (R9) come in when a problem needs them.
257257

258258
- [x] PP1: `0278-coworking-availability-python` (P8).
259259
- [x] PP2: `0279-payment-webhook-receiver-typescript`.
260260
- [x] PP4: `0281-ssrf-safe-webhook-dispatcher-typescript`. The catalog now has 296 entries.
261261
- [x] PP3: `0280-oauth-pkce-client-typescript`, with Keycloak as the identity provider.
262262
- [x] PP5: `0282-inventory-reservations-typescript`, on Postgres with node-pg-migrate. The catalog now has 298 entries.
263-
- [ ] PP6 to PP10, on the backing services.
263+
- [x] PP6: `0283-postgres-job-queue-typescript`, on Postgres.
264+
- [x] PP7: `0284-csv-upload-ingestion-typescript`, on Postgres and Moto. It is the first problem on Moto, with S3 and SQS.
265+
- [x] PP8: `0286-multi-tenant-api-typescript`, on Postgres with row-level security.
266+
- [x] PP9: `0285-price-cache-rate-limits-typescript`, on Valkey (BSD-licensed and Redis-compatible), not Redis, behind a mock pricing vendor.
267+
- [x] PP10: `0287-event-sourced-ledger-typescript`, on Postgres. The catalog now has 303 entries.
264268
- [ ] PP11 to PP15, after P11.
265269

266270
## Phase 14: AI-reviewed problems

‎docs/specs/catalog.md‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Spec: Catalog
22

3-
The binding manifest of every catalog item: 196 DSA problems and 102 non-DSA items (86 problems and 16 items in `tracks/`), each with its id, slug, title, patterns, difficulty, kind and [labels](content.md#labels), and for the planned rows their batch and owner stream.
3+
The binding manifest of every catalog item: 196 DSA problems and 107 non-DSA items (91 problems and 16 items in `tracks/`), each with its id, slug, title, patterns, difficulty, kind and [labels](content.md#labels), and for the planned rows their batch and owner stream.
44

55
| Track | Problems or items | Where |
66
|-------|-------------------|-------|
77
| `dsa` | 196 (185 planned, 11 added) | `problems/` |
8-
| `practical` | 49 (6 planned, 16 added, 6 project problems added, 7 security and AI/LLM problems added, 8 backend TypeScript projects added, 6 service projects added) | `problems/` |
8+
| `practical` | 54 (6 planned, 16 added, 6 project problems added, 7 security and AI/LLM problems added, 8 backend TypeScript projects added, 11 service projects added) | `problems/` |
99
| `lld` | 8 | `problems/` |
1010
| `concurrency` | 6 | `problems/` |
1111
| `debugging` | 23 (8 planned, 8 in Go and Rust, 7 JavaScript traps in TypeScript) | `problems/` |
1212
| `system-design` | 10 | `tracks/system-design/` |
1313
| `code-review` | 6 | `tracks/code-review/` |
14-
| **Total** | **298** (282 problems, 16 items) | | Targets, batches and the copyright policy come from [content](content.md); the file layout comes from [problem-format](problem-format.md); how to write an item is in [authoring](authoring.md).
14+
| **Total** | **303** (287 problems, 16 items) | | Targets, batches and the copyright policy come from [content](content.md); the file layout comes from [problem-format](problem-format.md); how to write an item is in [authoring](authoring.md).
1515

1616
Every row has three [labels](content.md#labels): `domains`, `job_roles` and `scope` ([S24](authoring.md#static), [ADR 0020](../decisions/0020-catalog-labels.md)). Their values repeat across hundreds of rows, so each section below states them once, with its exceptions, instead of in three columns; a table added later carries them as columns, which are binding as `kind` is. The prose column that says what a row covers is `covers`, since `scope` is a label.
1717

@@ -297,7 +297,7 @@ Each stream owns whole patterns, so one stream holds all problems of a pattern a
297297

298298
## Non-DSA catalog
299299

300-
### practical (49, `problems/`)
300+
### practical (54, `problems/`)
301301

302302
Labels: `0186` to `0191` and `0248` (the 7 `progressive` rows, `domains: [backend]`, `job_roles: [backend]`, `scope: function`); `0214` to `0228` (the 15 insurance rows, `domains: [fintech]`, `job_roles: [backend]`, `scope: function`); `0249` to `0254` (the 6 project problems, `domains: [backend, fintech]`, `job_roles: [backend]`, `scope: project`). Exceptions: `banking-system` and `scheduled-transfers-bank` also have `fintech`, and `api-gateway` also has the role `platform`. `0255` to `0261` carry their labels as columns.
303303

@@ -395,6 +395,16 @@ Four more service projects, in TypeScript. `0279` receives a payment provider's
395395
| 0281 | `ssrf-safe-webhook-dispatcher-typescript` | SSRF-Safe Webhook Dispatcher (TypeScript) | project | hard | `typescript` | `security` | `security-engineer`, `backend` | project |
396396
| 0282 | `inventory-reservations-typescript` | Inventory Reservations (TypeScript) | project | hard | `typescript` | `backend` | `backend` | project |
397397

398+
Five more service projects, in TypeScript, on the backing services. `0283` builds a job queue on Postgres, and `0284` loads CSV uploads from S3 and SQS on Moto into Postgres. `0285` caches prices and limits request rates on Valkey, the BSD-licensed fork of Redis, behind a mock pricing vendor. `0286` keeps tenants apart with row-level security, and `0287` keeps a ledger as append-only events with projections. Each has its own `tests.json`; only `0285` has a mock server.
399+
400+
| id | slug | title | kind | difficulty | languages | domains | job_roles | scope |
401+
|----|------|-------|------|------------|-----------|---------|-----------|-------|
402+
| 0283 | `postgres-job-queue-typescript` | Postgres Job Queue (TypeScript) | project | hard | `typescript` | `backend` | `backend`, `platform` | project |
403+
| 0284 | `csv-upload-ingestion-typescript` | CSV Upload Ingestion (TypeScript) | project | hard | `typescript` | `backend` | `backend`, `platform` | project |
404+
| 0285 | `price-cache-rate-limits-typescript` | Price Cache and Rate Limits (TypeScript) | project | medium | `typescript` | `backend` | `backend`, `platform` | project |
405+
| 0286 | `multi-tenant-api-typescript` | Multi-Tenant API (TypeScript) | project | hard | `typescript` | `backend`, `security` | `backend`, `security-engineer` | project |
406+
| 0287 | `event-sourced-ledger-typescript` | Event-Sourced Ledger (TypeScript) | project | hard | `typescript` | `fintech`, `backend` | `backend` | project |
407+
398408
### lld (8, owner L1, kind `design` plus `rubric.md`, `problems/`)
399409

400410
Labels: `domains: [backend]`, `job_roles: [backend]` and `scope: function` on all 8 rows, with no exceptions.
@@ -448,7 +458,7 @@ The eight planned rows (owner B1) port one bug to the languages it exists in; 02
448458
| 0246 | `debug-char-boundary` | Debug: Char Boundary | Truncation by byte index, which panics inside a multi-byte character | medium | rust |
449459
| 0247 | `debug-clone-mutation` | Debug: Clone Mutation | A clone added to satisfy the borrow checker takes the credit, so transfers credit nobody | medium | rust |
450460

451-
`0264` to `0271`, without `0267`, which is a project under [practical](#practical-49-problems), drill JavaScript traps in small backend code. Each lists TypeScript only, because the bug exists in JavaScript. The labels are columns here.
461+
`0264` to `0271`, without `0267`, which is a project under [practical](#practical-54-problems), drill JavaScript traps in small backend code. Each lists TypeScript only, because the bug exists in JavaScript. The labels are columns here.
452462

453463
| id | slug | title | covers | difficulty | languages | domains | job_roles | scope |
454464
|----|------|-------|-------|------------|-----------|---------|-----------|-------|

‎docs/specs/content.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ What the catalog contains: tracks, the DSA pattern taxonomy with Phase targets,
66

77
DSA is roughly a third of a senior or staff loop, so the catalog covers the other rounds too.
88

9-
Every problem and item also has three [labels](#labels) that are independent of the track: `domains`, `job_roles` and `scope`. The first security and AI/LLM problems use them: `0255` to `0261` in the [catalog](catalog.md#practical-49-problems), in Python and TypeScript ([ADR 0020](../decisions/0020-catalog-labels.md#the-first-wave)).
9+
Every problem and item also has three [labels](#labels) that are independent of the track: `domains`, `job_roles` and `scope`. The first security and AI/LLM problems use them: `0255` to `0261` in the [catalog](catalog.md#practical-54-problems), in Python and TypeScript ([ADR 0020](../decisions/0020-catalog-labels.md#the-first-wave)).
1010

1111
| Track id | Name | Autograded | Location | Format | Target |
1212
|----------|------|------------|----------|--------|--------|

‎docs/specs/service-projects.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,20 @@ The contract between the stack and the grader's multi-step cases (P11). Some ser
681681
| Grader | `StackEndpoints.origins` (`application/http_grading_ports.py`) maps each entry's origin, `idp:8080` as `http://idp:8080`, to `http://127.0.0.1:<port>`, and a case names it so ([Reaching an origin](#reaching-an-origin)). A client dials that URL and sends `idp:8080` as `Host`. The app's own origin, `http://app:<app.port>`, is `app_url`, and an origin in neither is refused, by S23 before a run and by the grader during one |
682682
| Host | The forwarder relays bytes, so the service sees the `Host` the client sent, measured with a service that echoes it. Any protocol passes, HTTP or not |
683683

684+
### Known limits
685+
686+
Engine gaps found while building `0283` to `0287`. None blocks a problem; each is worked around in the problem that met it.
687+
688+
- **Backing services cannot be stopped or paused by a case.** No case can stop or pause a service, and the mock server's pass-through only proxies HTTP, so a problem cannot grade "the store went down" by taking the store away.
689+
- **A kept restart needs a no-op reset.** With services, S23 requires `commands.reset` for any `fresh` case. Restarting the app while keeping its data therefore needs a `reset` that does nothing, as `0284` declares.
690+
- **There is no sleep step.** A case waits with a long poll or a slow mock route.
691+
- **Parallel cases judge status counts only.** They never compare bodies.
692+
- **The `unordered` comparator applies to every step of a multi-step case.**
693+
- **Moto holds a whole S3 object in memory.** A large object needs a bigger memory limit on the Moto service and a disk-backed `/tmp` for it.
694+
- **Moto allows `PurgeQueue` once every 60 s.**
695+
696+
**Valkey is the open store used.** `valkey/valkey:9.1.3-alpine`, the BSD-licensed fork of Redis that speaks its protocol, backs `0285` in place of Redis, so a Redis client reaches it unchanged and the problem carries no source-available license.
697+
684698
## Databases
685699

686700
Built at P10, and [parallel cases](#parallel-cases) after it, except their D7. [Contract tables](#contract-tables) are not built.

0 commit comments

Comments
 (0)