You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a52914b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Upgrade with `uv tool upgrade coding-study` (or `pipx upgrade coding-study`). Ke
34
34
35
35
## Install the language toolchains
36
36
37
-
`cstudy` runs your solutions with the real toolchain of each language, which you install yourself. uv and Python are required; Node.js, the JDK, Go and Rust are needed only for the languages that use them. Problems have reference solutions in all six languages, except where a language cannot express one or a bug exists in some languages only ([catalog](docs/specs/catalog.md)), so you can practice in any of them. The recommended install on macOS:
37
+
`cstudy` runs your solutions with the real toolchain of each language, which you install yourself. uv and Python are required; Node.js, the JDK, Go and Rust are needed only for the languages that use them. Problems have reference solutions in all six languages, except where a language cannot express one, a bug exists in some languages only, or a security or AI/LLM problem starts in Python and TypeScript ([catalog](docs/specs/catalog.md)), so you can practice in any of them. The recommended install on macOS:
38
38
39
39
| Tool | Version | Needed for | Install on macOS |
@@ -129,7 +129,7 @@ All problem statements, tests and solutions are original ([ADR 0004](docs/decisi
129
129
| Track | Items | Graded by | Format |
130
130
|-------|------:|-----------|--------|
131
131
|`dsa`| 196 | Tests, in all 6 languages | Functions and data-structure designs across 23 patterns |
132
-
|`practical`|28| Tests, level by level where a problem has levels | One class whose API grows over 4 levels, or a business task with money and dates |
132
+
|`practical`|35| Tests, level by level where a problem has levels | One class whose API grows over 4 levels, a business task with money and dates, or a security or AI/LLM task, in Python and TypeScript|
133
133
|`lld`| 8 | Tests, then a design rubric | Object-oriented design |
Copy file name to clipboardExpand all lines: docs/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ coding-study is a local, IDE-first interview-prep system: original problems stor
57
57
|[0017](decisions/0017-async-project-problems.md)| Project problems grade asynchronous code on a virtual clock and concurrent code under stress: `async` methods, harness operations, stress cases with broken overlays, and Go 1.25 |
58
58
|[0018](decisions/0018-editor-code-intelligence.md)| The page's editor gets code intelligence from local language servers behind a setting, and completion behind a second one: live diagnostics, hover documentation and go to definition over one WebSocket per tab and root |
59
59
|[0019](decisions/0019-service-projects.md)| Planned, not built: service projects always run in a Docker sandbox, a real app against mock servers and optional backing services, graded over HTTP |
60
-
|[0020](decisions/0020-catalog-labels.md)| Problems and items have three independent labels, domain, role and scope, with filters in `cstudy list`, `cstudy next` and the Problems view; the first security and AI/LLM problems are planned|
60
+
|[0020](decisions/0020-catalog-labels.md)| Problems and items have three independent labels, domain, role and scope, with filters in `cstudy list`, `cstudy next` and the Problems view; the first seven security and AI/LLM problems, in Python and TypeScript|
61
61
|[0021](decisions/0021-ai-reviewed-problems.md)| Planned, not built: an opt-in class of problems reviewed by a live LLM with your own key; "works on your own machine" replaces "works offline" |
Copy file name to clipboardExpand all lines: docs/decisions/0020-catalog-labels.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,10 @@
2
2
3
3
| Field | Value |
4
4
|-------|-------|
5
-
| Status |Phase 1 implemented. Phases 2 and 3 are planned, and nothing of them is built. The owner took R1 to R7 under [Open to confirm](#open-to-confirm) as recommended on 2026-11-06 |
5
+
| 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 |
6
6
| 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. The rule changes of phase 2 in [authoring](../specs/authoring.md#static)carry a forward pointer until they land|
8
-
|Will amend |[PRD](../prd.md) (FR-3, its description and persona, when the first new problems ship), [ADR 0012](0012-go-and-rust.md) (every language on every problem, by the [language rule](#rule-changes)) |
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-35-problems) lists the first wave, and [S13](../specs/authoring.md#static)holds the language rule of phase 2|
8
+
|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)) |
9
9
| 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)|
10
10
11
11
## Context
@@ -109,7 +109,7 @@ One pass over the 270, in one commit: a throwaway script writes the three fields
0214 to 0228 are insurance tasks: [catalog](../specs/catalog.md#practical-28-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-35-problems) calls them that, and their titles agree (premium rating, unearned premium, coverage gaps, loss ratio).
113
113
114
114
Proposed overrides, to confirm in R3:
115
115
@@ -195,7 +195,7 @@ Recommended by the assistant. The owner took all seven as recommended when phase
195
195
| Phase | Scope |
196
196
|-------|-------|
197
197
| 1 | Labels and backfill: the schemas, `domain/taxonomy.py`, S24 and its test; the one-pass backfill; `cstudy list`, `cstudy next`, the Problems view filters; catalog columns, with `scope` renamed `covers`; specs and guides (built) |
198
-
| 2 | The [first wave](#the-first-wave) of function-size problems, with the [rule changes](#rule-changes), in Python and TypeScript |
198
+
| 2 | The [first wave](#the-first-wave) of function-size problems, with the [rule changes](#rule-changes), in Python and TypeScript (built: `0255` to `0261`). A problem with any one of `security`, `identity` or `ai-llm` among its `domains` may list any subset of the languages that can express it; S13 is the only check this changes |
199
199
| 3 | Later waves. Project-size problems depend on [ADR 0019](0019-service-projects.md) (its P11); system-size ones need later design |
200
200
201
201
Phases 1 and 2 need no Docker and can run before ADR 0019 unless the owner orders otherwise. Each phase gets its docs and, at release, a website message.
Copy file name to clipboardExpand all lines: docs/prd.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
# Product Requirements: coding-study
2
2
3
-
A local, IDE-first interview-prep system for senior and staff engineer loops. You solve problems in your own editor, and a CLI (`cstudy`) does everything a practice website would: it picks the next problem, scaffolds a stub, runs tests, reveals solutions, analyzes performance and tracks progress. `cstudy serve` also serves the same loop as a page in your browser, on your own machine ([ADR 0015](decisions/0015-local-web-ui.md)).
3
+
A local, IDE-first study system for engineers, with many problems categorized by domain and role at a range of complexity levels. It began as interview preparation for senior and staff engineer loops, which stays at its core. You solve problems in your own editor, and a CLI (`cstudy`) does everything a practice website would: it picks the next problem, scaffolds a stub, runs tests, reveals solutions, analyzes performance and tracks progress. `cstudy serve` also serves the same loop as a page in your browser, on your own machine ([ADR 0015](decisions/0015-local-web-ui.md)).
4
4
5
5
| Field | Value |
6
6
|-------|-------|
7
7
| Status | Implemented through Phase 7; open validation items in the [roadmap](roadmap.md#status)|
8
8
| Users | One engineer per installation, practicing on their own machine |
9
9
| Platform | macOS and Linux, local only |
10
-
| Languages practiced | Python, TypeScript, Java, Kotlin, Go and Rust ([ADR 0012](decisions/0012-go-and-rust.md)); a project problem is in one language ([ADR 0014](decisions/0014-project-problems.md)) |
10
+
| Languages practiced | Python, TypeScript, Java, Kotlin, Go and Rust ([ADR 0012](decisions/0012-go-and-rust.md)); a project problem is in one language ([ADR 0014](decisions/0014-project-problems.md)), and the first security and AI/LLM problems are in Python and TypeScript ([ADR 0020](decisions/0020-catalog-labels.md))|
11
11
| Related |[Architecture](architecture.md), [Roadmap](roadmap.md), [Specs](README.md#specs)|
12
12
13
13
## 1. Executive summary
14
14
15
15
**Problem.** Browser-based practice sites force a foreign editor, give no control over content, cover DSA only, and treat each language as a separate silo. Senior and staff loops also test practical multi-level coding, object-oriented design, concurrency, system design, code review and behavioral skills, which those sites do not cover.
16
16
17
-
**Solution.** A CLI that ships with a catalog of original, data-defined problems. You write code in your editor, such as LazyVim or IntelliJ, inside real per-language projects in a workspace of your own (LSP and debugger work). The CLI executes that code against language-neutral test data, compares behavior, measures performance against a ladder of reference approaches, and schedules reviews with spaced repetition weighted toward weak patterns.
17
+
**Solution.** A CLI that ships with a catalog of original, data-defined problems. You write code in your editor, such as LazyVim or IntelliJ, inside real per-language projects in a workspace of your own (LSP and debugger work). The CLI executes that code against language-neutral test data, compares behavior, measures performance against a ladder of reference approaches, and schedules reviews with spaced repetition weighted toward weak patterns. Each problem says what it is about, who it is for and how big it is ([ADR 0020](decisions/0020-catalog-labels.md)), so you can study a domain such as security or AI/LLM engineering, or the problems for your role.
18
18
19
19
**Success criteria.**
20
20
@@ -30,7 +30,7 @@ A local, IDE-first interview-prep system for senior and staff engineer loops. Yo
30
30
31
31
### Persona
32
32
33
-
A senior or staff engineer preparing for interviews, practicing alone. Works in a terminal editor such as Neovim (LazyVim) inside a terminal multiplexer, or in IntelliJ for JVM code, and prefers keyboard-driven tools.
33
+
An engineer practicing alone, either preparing for senior or staff interviews or building skill in a domain such as security or AI/LLM engineering. Works in a terminal editor such as Neovim (LazyVim) inside a terminal multiplexer, or in IntelliJ for JVM code, and prefers keyboard-driven tools.
34
34
35
35
### Core loop
36
36
@@ -98,8 +98,8 @@ Not applicable. The product contains no AI features. Planned, not built: opt-in
98
98
| ID | Requirement | Measure |
99
99
|----|-------------|---------|
100
100
| NFR-1 | Fast feedback |`cstudy test` warm p50: Python and TypeScript 1.0 s, Java 3 s, Kotlin 5 s, and, once their runners exist, Go 1.0 s and Rust 2 s, for at most 50 cases of an O(n log n) solution; for a Python or TypeScript project problem, `cstudy test` and `cstudy submit` each within 1.0 s, for a Go project problem each within 2 s, since `go test` builds and runs a test binary per package (measured 1.6 to 1.7 s on an Apple Silicon Mac for 0.8.0 and 0.9.0) ([ADR 0014](decisions/0014-project-problems.md#go-spike-k5)), and for a Rust one each within 2 s, since each test runs as a process of its own ([ADR 0014](decisions/0014-project-problems.md#rust-spike-k6)). JVM cold start (first build after daemon stop) up to 60 s is accepted and printed as "warming Gradle daemon". |
101
-
| NFR-2 | Fast CLI |`cstudy list`, `cstudy next`, `cstudy stats` complete in at most 500 ms with 250 problems (index cache). |
102
-
| NFR-3 | Verify throughput | Full `cstudy verify --require-ready` (no oracle, no ladder) over the whole catalog in all six languages (270 items) in at most 30 min, measured at about 25 min for v0.8.0 and 21 min for the 263 items of v0.6.0, the first release with Go and Rust; the budget grew from 10 min for 200 problems in the four core languages because Go adds roughly 0.5 to 1.5 s per problem and Rust 1.5 to 4 s ([ADR 0012](decisions/0012-go-and-rust.md)). `cstudy verify <slug>` in at most 30 s warm: the mean over ten sample problems with `--lang` was 4.2 s for Python, 1.3 s for TypeScript, 4.9 s for Java, 5.5 s for Kotlin, 1.7 s for Go and 2.5 s for Rust, each including the 0.4 s start of `cstudy`, with the machine loaded (load average 23 to 40). |
101
+
| NFR-2 | Fast CLI |`cstudy list`, `cstudy next`, `cstudy stats` complete in at most 500 ms with 261 problems (index cache). |
102
+
| NFR-3 | Verify throughput | Full `cstudy verify --require-ready` (no oracle, no ladder) over the whole catalog, each problem in the languages it lists (277 items), in at most 30 min, measured at about 25 min for v0.8.0 and 21 min for the 263 items of v0.6.0, the first release with Go and Rust; the budget grew from 10 min for 200 problems in the four core languages because Go adds roughly 0.5 to 1.5 s per problem and Rust 1.5 to 4 s ([ADR 0012](decisions/0012-go-and-rust.md)). `cstudy verify <slug>` in at most 30 s warm: the mean over ten sample problems with `--lang` was 4.2 s for Python, 1.3 s for TypeScript, 4.9 s for Java, 5.5 s for Kotlin, 1.7 s for Go and 2.5 s for Rust, each including the 0.4 s start of `cstudy`, with the machine loaded (load average 23 to 40). |
103
103
| NFR-4 | Determinism | Same inputs, database and seed produce the same `cstudy next` choice, generated cases and oracle cases. |
104
104
| NFR-5 | Isolation | A crash, infinite loop or `System.exit` in user code never crashes the CLI; it is reported as a case or runner error. |
105
105
| NFR-6 | Works on your own machine | cstudy works on your own machine, with no account and no cstudy server. It needs the internet only to install the app and its dependencies, such as the toolchains and language servers that `cstudy doctor --fix` sets up, and, once built, for opt-in AI review with your own key ([ADR 0021](decisions/0021-ai-reviewed-problems.md)). Today, after those installs, every command works with no internet. Installing a dependency does not break this rule ([ADR 0019](decisions/0019-service-projects.md)). |
Copy file name to clipboardExpand all lines: docs/roadmap.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,14 +204,14 @@ The pilots are written with the next project problems.
204
204
205
205
## Phase 13: Catalog labels and new catalogs
206
206
207
-
**Status.**Step 1 is built; steps 2 and 3 are planned, not started. The first two steps need no Docker, so the owner may order them before Phase 12.
207
+
**Status.**Steps 1 and 2 are built; step 3 is planned, not started. Step 3's project-size problems need Phase 12.
208
208
209
209
**Scope.**[ADR 0020](decisions/0020-catalog-labels.md): `domains`, `job_roles` and `scope` on problems and items, in closed lists; a one-pass backfill of the 270 existing entries; filters in `cstudy list`, `cstudy next` and the Problems view; then a first wave of function-size security and AI/LLM problems in Python and TypeScript.
210
210
211
211
**Exit criteria.** Every catalog entry passes the new static check, the filters give the same rows in the CLI and the page, and each new problem passes `cstudy verify <slug> --require-ready`.
212
212
213
213
-[x] Step 1: labels, backfill and filters: the vocabularies and schemas, S24, the backfill of the 270 entries, `--domain`, `--role` and `--scope` in `cstudy list` and `cstudy next`, and the web API parameters, with the Problems view's filters and Scope column.
214
-
-[] Step 2: the first wave of function-size problems.
214
+
-[x] Step 2: the first wave of function-size problems: seven in Python and TypeScript, `0255` to `0261`, with the language rule that lets the security, identity and AI/LLM domains list a subset. The catalog now has 277 entries.
215
215
-[ ] Step 3: later waves: project-size problems need Phase 12, and system-size ones need later design.
Copy file name to clipboardExpand all lines: docs/specs/authoring.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -221,6 +221,8 @@ What a content stream writes for the `practical` and `lld` tracks, beyond what e
221
221
| References | Every approach, implementing every level, in every language the problem lists (all six by default) | Every approach in every language the problem lists |
222
222
| Optional |`generator.py` (then `generate` cases at the last level, one at the largest ladder size), `patterns`, more approaches | Same |
223
223
224
+
A `function` or `design` problem on the `practical` track, such as the business tasks from `0214` and the security and AI/LLM problems from `0255`, has no levels and uses the usual sections with `## Examples`, and the ready criteria for its kind. `solutions/broken/` is for concurrent problems and projects with stress cases, and every approach must pass every case, so a wrong answer cannot be stored with such a problem: name it under `### Pitfalls and edge cases`, with the hidden case that catches it.
225
+
224
226
### Project problems
225
227
226
228
A [project problem](problem-format.md#project-problems) (`kind: project`, track `practical`) is a seeded folder in one language ([ADR 0014](../decisions/0014-project-problems.md)). A version in another language is a new problem, authored from scratch: only the statement wording may be reused, with that language's names, and both problems list each other in `related`.
0 commit comments