This workspace has two linked goals: build a real tokenizer with substantial AI assistance, and turn that implementation journey into a rough CodeCrafters-style challenge whose stages remain small, observable, testable, and teachable.
The learner does not need to type every line. The non-negotiable requirement is conscious ownership: they should understand what each stage adds, trace the important algorithms, inspect the code that AI writes, interpret the evidence, and explain the relevant trade-offs and failure modes.
The repository has completed the workspace, source-orientation, foundations, stack/harness decisions, and all twelve revised implementation stages. Revised Stage 12 keeps source Stage 16 intact: it validates every external boundary and emits one structured error contract. All revised stages are engineering-verified, learner-reviewed, accepted, and checkpointed.
The standalone Markdown challenge is drafted. The next step is learner review for length, clarity, and teaching value, followed by integrated validation and any resulting documentation revision.
- plan.md defines the outcomes, phases, and explicit non-goals.
- docs/README.md explains what each document is for, who contributes to it, and when it is used.
- docs/build-your-own-tokenizer.md is the standalone final 12-stage challenge specification.
- docs/source-orientation.md gives the high-level reading of the supplied challenge.
- docs/tokenizer-foundations.md begins the plain-language tokenizer lesson and gives a curated learning sequence.
- docs/stage-workflow.md defines how every later challenge stage moves from prediction to engineering evidence to learning sign-off.
- docs/challenge-audit.md is the future stage-by-stage review surface.
- docs/research-plan.md defines the questions the tokenizer foundations phase must answer.
- docs/harness-architecture.md defines the Go starter, isolated challenge CLI, manifest contract, and verification boundary.
- docs/version-control.md defines the
mainandstagesbranch roles and stage-commit convention. - challenge-cli/README.md documents the local tester commands and limitations.
- learning/mental-model.md is the learner's place for drawings and evolving models.
- MEMORY.md is the compact recovery point for another AI model.
Before completing a file-changing task, run:
python3 scripts/check_metadata.pyThe starter and local challenge interface are:
./your_program.sh
./challenge list
./challenge help