Skip to content

Commit 496d52c

Browse files
committed
docs: catalog at 324 with 0305 to 0309, P12 and PP14 ticked, cstudy new target noted
1 parent 2478eef commit 496d52c

7 files changed

Lines changed: 37 additions & 19 deletions

File tree

‎CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ One build wants an exact JDK: `tools/ide-launcher/build.sh`, which rebuilds the
6868

6969
Problem statements, tests, hints and solutions must be original ([ADR 0004](docs/decisions/0004-original-problem-wording.md)); a LeetCode problem appears only as a link in `references.leetcode`.
7070

71-
1. Scaffold the problem in the checkout: `uv run cstudy new <slug> --from-template array|tree|design|progressive|concurrent`.
71+
1. Scaffold the problem in the checkout: `uv run cstudy new <slug> --from-template array|tree|design|progressive|concurrent`. Run from a development checkout, `cstudy new` writes into the repository's `problems/`, not into the workspace named by `CSTUDY_WORKSPACE` (a follow-up to know about when you test with a scratch workspace).
7272
2. Follow the [authoring workflow](docs/specs/authoring.md#workflow): the statement in `problem.md`, the signature in `meta.yaml`, the cases in `tests.json`, a brute-force Python oracle, `generator.py`, the optimal approaches in Python, TypeScript, Java, and Kotlin, and `solutions/explanation.md`. The [problem format](docs/specs/problem-format.md) defines every file.
7373
3. Set `status: ready` once the problem passes the ready gate:
7474

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ All problem statements, tests and solutions are original ([ADR 0004](docs/decisi
135135

136136
| Track | Items | Graded by | Format |
137137
|-------|------:|-----------|--------|
138-
| `dsa` | 196 | Tests, in all 6 languages | Functions and data-structure designs across 23 patterns |
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 |
138+
| `dsa` | 198 | Tests, in all 6 languages | Functions and data-structure designs across 23 patterns |
139+
| `practical` | 73 | 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-70-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-73-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-70-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-73-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: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ The pilots are written with the next project problems.
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
- [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.
203-
- [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.
203+
- [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 built as `0307`, below.
204204
- [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.
205205
- [x] P12: Kotlin and Java. Built: one Gradle image with JDK 25 for both, Gradle's user home in the project's install cache with every build after `install` offline, Gradle's verification file as the lock, the `project-java-service` and `project-kotlin-service` templates, a Java fixture on a real engine, and `0305-coworking-availability-java` and `0306-coworking-availability-kotlin`, graded by the same cases and mock servers as `0277` ([spec](specs/service-projects.md#templates-per-language)).
206-
- [ ] P13 and P14: Go, Rust (maybe).
206+
- [ ] P13 and P14: Go, then Rust (maybe), the next Phase 12 steps.
207207

208208
## Phase 13: Catalog labels and new catalogs
209209

@@ -219,6 +219,7 @@ The pilots are written with the next project problems.
219219
- [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.
220220
- [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.
221221
- [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.
222+
- [x] P12 problems and two DSA additions: `0305` and `0306`, the Java and Kotlin versions of `0277`, `0307`, the built PP14, and `0308` and `0309`, two DSA problems (all grid paths on backtracking, and finding every missing and duplicate number, with a cyclic-sort optimum) that take the next free ids outside the stream plan, listed under [later DSA additions](specs/catalog.md#later-dsa-additions). The catalog then had 324 entries.
222223
- [ ] Step 3: later waves: project-size problems need Phase 12, and system-size ones need later design.
223224

224225
### Planned project problems
@@ -257,7 +258,7 @@ PP3 waited for P10's backing services and grader reach and for P11's multi-step
257258
| 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 |
258259
| PP15 | Secure file upload | security, backend · backend, security-engineer | Size limits, content sniffing, path traversal, a mock malware-scan vendor that fails | medium |
259260

260-
Suggested order: PP1 to PP13 and PP15 are built, and PP14 is on hold. P9, code intelligence and the Web UI, is built. P12 brought the service problems to the JVM, Kotlin and Java, and P13 and P14 are next: Go, and Rust (maybe). D7 and contract tables (R9) come in when a problem needs them.
261+
Suggested order: PP1 to PP15 are built. P9, code intelligence and the Web UI, is built. P12 brought the service problems to the JVM, Kotlin and Java. Next is P13, Go, then P14, Rust (maybe), then Phase 16, the frontend problems. D7 and contract tables (R9) come in when a problem needs them.
261262

262263
- [x] PP1: `0278-coworking-availability-python` (P8).
263264
- [x] PP2: `0279-payment-webhook-receiver-typescript`.
@@ -273,7 +274,7 @@ Suggested order: PP1 to PP13 and PP15 are built, and PP14 is on hold. P9, code i
273274
- [x] PP11: `0290-llm-gateway-typescript`, on two mock LLM providers, with a hidden case that times the first byte of a slow stream.
274275
- [x] PP12: `0291-rag-citations-typescript`, on pgvector with mock embeddings and chat APIs.
275276
- [x] PP13: `0292-tool-calling-agent-loop-typescript`, on a mock model and mock tool APIs. The catalog now has 307 entries.
276-
- [ ] PP14: on hold: deliberately vulnerable starter content was stopped by a safety check; the owner decides whether to drop it.
277+
- [x] PP14: `0307-fix-the-flaws-typescript`, in four levels: notes that belong to someone else, names and fields taken from the request, text that becomes a query, and logs and errors. The learner receives a working service with the flaws described as review findings and closes them, graded by attack cases that must fail and normal cases that must keep passing.
277278

278279
## Phase 14: AI-reviewed problems
279280

0 commit comments

Comments
 (0)