Skip to content

Commit 644b61b

Browse files
committed
docs: run service projects in Docker and plan catalog labels and AI review (ADR 0019, 0020, 0021)
1 parent 2ce25e8 commit 644b61b

18 files changed

Lines changed: 899 additions & 297 deletions

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ cstudy serve --open # Ctrl-C stops it
8888

8989
![The attempt view of cstudy serve: the file tree, the editor, a run's results and the statement](docs/images/web-ui-attempt-light.png)
9090

91-
The editor can also show errors as you type, documentation on hover, go to definition and, behind a second setting, completion and signature help, for Python and TypeScript now, with Java and Kotlin, then Go and Rust, to follow. Both settings are off by default, and with autocomplete off the editor offers no completion at all, so you can practise recall; `cstudy doctor --fix` installs the language servers once (about 46 MB), and practice works offline after that.
91+
The editor can also show errors as you type, documentation on hover, go to definition and, behind a second setting, completion and signature help, for Python and TypeScript now, with Java and Kotlin, then Go and Rust, to follow. Both settings are off by default, and with autocomplete off the editor offers no completion at all, so you can practise recall; `cstudy doctor --fix` installs the language servers once (about 46 MB), and practice needs no internet after that.
9292

9393
![Code intelligence in the editor: an undefined name is underlined and fixed, hovering shows documentation, and a Cmd-click opens a read-only library tab](docs/images/code-intelligence-demo.gif)
9494

‎docs/README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ coding-study is a local, IDE-first interview-prep system: original problems stor
2121
| [performance-analysis](specs/performance-analysis.md) | Optional time limits, size ladder, measurement, complexity classification, verdicts and confidence | Building `cstudy bench` or time limits |
2222
| [content](specs/content.md) | Tracks, pattern taxonomy and targets, batches, non-autograded items, copyright policy | Planning content |
2323
| [catalog](specs/catalog.md) | Binding manifest of every item: ids, slugs, titles, patterns, difficulty, kind, batch, owner stream | Writing content in a stream, or adding to the catalog |
24-
| [service-projects](specs/service-projects.md) | Planned, not built: problems that run a real local app with lifecycle commands, built-in mock servers, Docker services, HTTP grading and a dependency list shown before starting | Working on ADR 0019's phases |
24+
| [service-projects](specs/service-projects.md) | Planned, not built: problems that run a real app in a Docker sandbox with lifecycle commands, built-in mock servers, backing services, HTTP grading and a dependency list shown before starting | Working on ADR 0019's phases |
2525
| [versioning](specs/versioning.md) | Commit types and version bumps, the version workflow, `CHANGELOG.md`, `cstudy --version`, the GitHub release and the Homebrew tap | Committing, or changing how releases are versioned or published |
2626
| [authoring](specs/authoring.md) | Authoring workflow, `problem.md` and `explanation.md` formats, ready criteria, every `cstudy verify` check | Writing or reviewing a problem |
2727
| [web-ui](specs/web-ui.md) | `cstudy serve`: the local page, its API v1, runs and jobs as server-sent events, the security model, file API rules, code intelligence sessions with language servers, page behaviour, mocks, solutions, preferences and assets | Building or changing the web UI |
@@ -56,7 +56,9 @@ coding-study is a local, IDE-first interview-prep system: original problems stor
5656
| [0016](decisions/0016-jdk-range.md) | Java and Kotlin run on JDK 21 to 26, within the range each problem declares |
5757
| [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 |
5858
| [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-
| [0019](decisions/0019-service-projects.md) | Planned, not built: service projects run a real local app against mock servers and optional Docker services, and are graded over HTTP |
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) | Planned, not built: problems and items gain three independent labels, domain, role and scope, and the first security and AI/LLM problems follow |
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" |
6062

6163
## Conventions
6264

‎docs/decisions/0014-project-problems.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
| Amends | [ADR 0001](0001-data-driven-tests.md) (native test files generated from the data), [ADR 0012](0012-go-and-rust.md) (a fourth exception to the six-language rule) |
1010
| Amended by | [ADR 0016](0016-jdk-range.md): `cs.project` no longer pins JDK 21; a project folder builds on the selected JDK, 21 to 26 |
1111
| Amended by | [ADR 0017](0017-async-project-problems.md): a project may declare asynchronous methods and a virtual clock, grade them with harness operations, and have stress cases and broken overlays |
12-
| Superseded in part by | [ADR 0019](0019-service-projects.md), planned and not built: for service projects only, a project may have its own dependencies, so the rejection of a venv or `node_modules` per project and of Vitest and Jest for needing a network install no longer holds for that kind of problem. Existing problems do not change |
12+
| Superseded in part by | [ADR 0019](0019-service-projects.md), planned and not built: for service projects only, which run in Docker, a project may have its own dependencies, so the rejection of a venv or `node_modules` per project and of Vitest and Jest for needing a network install no longer holds for that kind of problem. Existing problems do not change |
1313

1414
## Context
1515

0 commit comments

Comments
 (0)