Skip to content

Commit 86dfa80

Browse files
committed
docs: catalog at 319 with 0304, P9 leftovers and engine gaps ticked on the roadmap
1 parent 26bc7c3 commit 86dfa80

5 files changed

Lines changed: 20 additions & 12 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ All problem statements, tests and solutions are original ([ADR 0004](docs/decisi
136136
| Track | Items | Graded by | Format |
137137
|-------|------:|-----------|--------|
138138
| `dsa` | 196 | Tests, in all 6 languages | Functions and data-structure designs across 23 patterns |
139-
| `practical` | 69 | Tests, level by level where a problem has levels | One class whose API grows over 4 levels, a business task with money and dates, a security or AI/LLM task in Python and TypeScript, a small service to extend, or a service project in Docker with mock servers and backing services |
139+
| `practical` | 70 | Tests, level by level where a problem has levels | One class whose API grows over 4 levels, a business task with money and dates, a security or AI/LLM task in Python and TypeScript, a small service to extend, or a service project in Docker with mock servers and backing services |
140140
| `lld` | 8 | Tests, then a design rubric | Object-oriented design |
141141
| `concurrency` | 6 | Stress tests against invariants | Thread-safe classes, per-language models |
142142
| `debugging` | 23 | Tests | Buggy code to fix, including Go- and Rust-only bugs and JavaScript traps |

‎docs/decisions/0020-catalog-labels.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
|-------|-------|
55
| Status | Phases 1 and 2 implemented. Phase 3 is planned, and nothing of it is built. The owner took R1 to R7 under [Open to confirm](#open-to-confirm) as recommended on 2026-11-06 |
66
| Date | 2026-11-05 |
7-
| Spec | [content](../specs/content.md#labels), [catalog](../specs/catalog.md), [problem-format](../specs/problem-format.md#metayaml), [authoring](../specs/authoring.md#static) (S24), [cli](../specs/cli.md#cstudy-list) and [web-ui](../specs/web-ui.md#problems-view) describe phase 1. [catalog](../specs/catalog.md#practical-69-problems) lists the first wave, and [S13](../specs/authoring.md#static) holds the language rule of phase 2 |
7+
| Spec | [content](../specs/content.md#labels), [catalog](../specs/catalog.md), [problem-format](../specs/problem-format.md#metayaml), [authoring](../specs/authoring.md#static) (S24), [cli](../specs/cli.md#cstudy-list) and [web-ui](../specs/web-ui.md#problems-view) describe phase 1. [catalog](../specs/catalog.md#practical-70-problems) lists the first wave, and [S13](../specs/authoring.md#static) holds the language rule of phase 2 |
88
| Amends | [PRD](../prd.md) (FR-3, its description and persona), [ADR 0012](0012-go-and-rust.md) (every language on every problem, by the [language rule](#rule-changes)) |
99
| Builds on | [ADR 0001](0001-data-driven-tests.md), [ADR 0004](0004-original-problem-wording.md), [ADR 0014](0014-project-problems.md), [ADR 0019](0019-service-projects.md). Reviewed items are [ADR 0021](0021-ai-reviewed-problems.md) |
1010

@@ -109,7 +109,7 @@ One pass over the 270, in one commit: a throwaway script writes the three fields
109109
| Track `code-review` | 6 | `backend` | `backend` | `function` |
110110
| **Total** | **270** | | | |
111111

112-
0214 to 0228 are insurance tasks: [catalog](../specs/catalog.md#practical-69-problems) calls them that, and their titles agree (premium rating, unearned premium, coverage gaps, loss ratio).
112+
0214 to 0228 are insurance tasks: [catalog](../specs/catalog.md#practical-70-problems) calls them that, and their titles agree (premium rating, unearned premium, coverage gaps, loss ratio).
113113

114114
Proposed overrides, to confirm in R3:
115115

‎docs/roadmap.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,13 @@ The pilots are written with the next project problems.
195195

196196
- [x] P1: the spike, passed with changes on macOS; the sandbox is [measured on Linux](specs/service-projects.md#on-linux), with SELinux and rootless Docker unproven.
197197
- [x] P2: the environment allowlist, for every problem ([Process environment](specs/runners.md#process-environment)).
198-
- [x] P3 to P6: tooling: the sandbox, the lifecycle commands, the mock server, `cstudy dev` and the HTTP grader, with `verify` and a CI job on a real engine. P9 added `cstudy test --events` and `cstudy dev --events`; the other flags of `cstudy dev` are still planned.
198+
- [x] P3 to P6: tooling: the sandbox, the lifecycle commands, the mock server, `cstudy dev` and the HTTP grader, with `verify` and a CI job on a real engine. P9 added `cstudy test --events` and `cstudy dev --events`, and the leftovers added `--no-run`, `--debug`, `--reset-data` and `--exec`.
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.
201-
- [x] P9: code intelligence and Web UI. Built: TypeScript and Python [language servers](specs/service-projects.md#language-servers) in a sidecar, a calm state while Docker cannot run them, and on the page Run tests, Submit and Cancel, a dev stack panel with its scenario picker, the dependency list and Docker's states ([Web UI](specs/service-projects.md#web-ui)). Still planned: your own IDE's generated files (R29).
201+
- [x] P9: code intelligence and Web UI. Built: TypeScript and Python [language servers](specs/service-projects.md#language-servers) in a sidecar, a calm state while Docker cannot run them, and on the page Run tests, Submit and Cancel, a dev stack panel with its scenario picker, the dependency list and Docker's states ([Web UI](specs/service-projects.md#web-ui)). The leftovers are built too: your own IDE's generated files (R29), a `devcontainer.json` that `cstudy dev` writes, and the dev flags of P3 to P6.
202202
- [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
- [x] P11: mock server extensions, multi-step cases, project-size security and AI problems. 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`. R33 is done: SSE streaming with drops and stalls, matching on request bodies, log assertions on JSON bodies, run-time values and an example mock LLM provider, with a [first-byte check](specs/service-projects.md#hidden-http-case), `first_byte_ms_max`, added so that a case can tell a stream from an answer held back until it is whole. PP3 is built as `0280`, and the AI and security problems as PP11, PP12, PP13 and PP15 below; PP14 is on hold.
204+
- [x] Engine gaps closed after PP7: a binary request body (`body_base64`), a sleep step, pausing, stopping and starting one backing service mid-case, and `restart: "app"`, which keeps the app's data between cases. `0284` now restarts with it. The other [known limits](specs/service-projects.md#known-limits) still hold.
204205
- [ ] P12 to P14: Kotlin and Java, Go, Rust (maybe).
205206

206207
## Phase 13: Catalog labels and new catalogs
@@ -216,6 +217,7 @@ The pilots are written with the next project problems.
216217
- [x] TypeScript backend problems on today's engine: `0262` and `0263`, two small services to extend, then `0264` to `0271`, seven JavaScript traps on the debugging track and one asynchronous bug as a project on the virtual clock. The catalog then had 287 entries.
217218
- [x] Backend reliability on the same engine: `0272` to `0276`, five TypeScript projects on an idempotent at-least-once consumer, a transactional outbox, retries on the virtual clock, optimistic locking, and reviewing an AI extraction, where the model proposes, code validates and a person decides. The catalog then had 292 entries.
218219
- [x] Memory and retrieval practice: `0293` to `0303`, eleven function-size AI/LLM problems in Python and TypeScript, from memory stores and context packing to cosine top k, chunking and retrieval metrics. The catalog then had 318 entries.
220+
- [x] Search box practice: `0304`, a search box with keyboard navigation, matching, stale responses and selection, in all six languages, as a plain class on an explicit clock. A browser-graded version waits for Phase 16. The catalog then had 319 entries.
219221
- [ ] Step 3: later waves: project-size problems need Phase 12, and system-size ones need later design.
220222

221223
### Planned project problems

‎docs/specs/catalog.md‎

Lines changed: 11 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 122 non-DSA items (106 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 123 non-DSA items (107 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` | 69 (6 planned, 16 added, 6 project problems added, 7 security and AI/LLM problems added, 8 backend TypeScript projects added, 15 service projects added, 11 memory and retrieval problems added) | `problems/` |
8+
| `practical` | 70 (6 planned, 16 added, 6 project problems added, 7 security and AI/LLM problems added, 8 backend TypeScript projects added, 15 service projects added, 11 memory and retrieval problems added, 1 search box problem 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** | **318** (302 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** | **319** (303 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 (69, `problems/`)
300+
### practical (70, `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

@@ -430,6 +430,12 @@ Eleven function-size memory and retrieval problems, original and needing no serv
430430
| 0302 | `freshness-reranker` | Freshness Reranker | `arrays-hashing` | function | easy | `python`, `typescript` | `ai-llm` | `ai-engineer`, `backend` | function |
431431
| 0303 | `versioned-memory-store` | Versioned Memory Store | `arrays-hashing` | design | easy | `python`, `typescript` | `ai-llm`, `backend` | `ai-engineer`, `backend` | function |
432432

433+
One function-size, four-level progressive problem in all six languages: `0304` is the logic behind a search input with a list under it. It handles key presses, name matching, typing with stale responses, and selection with Enter. It runs as a plain class, not in a browser. A version graded in a headless browser waits for Phase 16 ([roadmap](../roadmap.md)). The labels are columns here and binding, as `kind` is:
434+
435+
| id | slug | title | patterns | kind | difficulty | languages | domains | job_roles | scope |
436+
|----|------|-------|----------|------|------------|-----------|---------|-----------|-------|
437+
| 0304 | `search-box-navigation` | Search Box with Keyboard Navigation | - | progressive | medium | all six | `backend` | `general` | function |
438+
433439
### lld (8, owner L1, kind `design` plus `rubric.md`, `problems/`)
434440

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

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

488494
| id | slug | title | covers | difficulty | languages | domains | job_roles | scope |
489495
|----|------|-------|-------|------------|-----------|---------|-----------|-------|

‎docs/specs/content.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ 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-69-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-70-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
|----------|------|------------|----------|--------|--------|
1313
| `dsa` | Data structures and algorithms | yes | `problems/` | `function` or `design` | 185 (Phases 1 and 3) |
14-
| `practical` | Practical multi-level | yes, level by level | `problems/` | `progressive`, `function` or `design`, or `project` (a seeded folder in one language) | 6 (Phase 4); one banking project problem per language (Phase 8); 7 security and AI/LLM problems, 8 backend TypeScript projects and 11 memory and retrieval problems in Python and TypeScript (Phase 13); 15 service projects, graded over HTTP in a Docker sandbox (Phase 12) |
14+
| `practical` | Practical multi-level | yes, level by level | `problems/` | `progressive`, `function` or `design`, or `project` (a seeded folder in one language) | 6 (Phase 4); one banking project problem per language (Phase 8); 7 security and AI/LLM problems, 8 backend TypeScript projects, 11 memory and retrieval problems in Python and TypeScript, and a search box with keyboard navigation in all six languages (Phase 13); 15 service projects, graded over HTTP in a Docker sandbox (Phase 12) |
1515
| `lld` | Object-oriented and low-level design | API by ops tests; design by rubric | `problems/` | `design` plus `rubric.md` | 8 (Phase 4) |
1616
| `concurrency` | Concurrency | yes, per language subset | `problems/` | `concurrent` | 6 (Phase 5) |
1717
| `debugging` | Debugging | yes | `problems/` | `function` or `design` with `stub: buggy` | 8 (Phase 6); 7 JavaScript traps (Phase 13) |

0 commit comments

Comments
 (0)