The module index is at the design stage: nothing described on this page has been built, and no
command, file or configuration key named here exists in StudyLoop today. It is stage 3 of the
module-contract proposal, §9
(openspec/changes/module-contract-v1/proposal.md in the repository), whose contract is summarised on
the optional modules proposal page.
Topic-specific practice (Kubernetes drills, a SQL lab) without topic-specific dependencies in core. A module would be a directory of data that core validates and runs through its own session, consent and verification machinery; the index would be a reviewed list of such modules. StudyLoop should not become a Kubernetes application, and the index should not become a loader.
- JSON practice decks validated by
PracticeDeckinpackages/studyloop/src/studyloop/content/schemas.py(extra: forbid). verification.kind: command, run only throughstudyloop practice verifywith the exact command printed and confirmed first, and re-read before it runs so a changed command cannot ride an earlier approval (packages/studyloop/src/studyloop/cli/_practice.py).- Per-command consent: without confirmation the CLI prints nothing executed and stops.
setupCommandon a verification is metadata: it is surfaced in results, never executed.
- An installer, a lock file, or any command that adds, lists or removes a module.
- An index, a catalogue repository, or any network fetch of one.
- Automatic execution of setup, check or cleanup phases, or any check triggered from the browser.
- A trust model: no signing, no review process, no revocation.
- A stable manifest: the
module.yamlshape is a draft open to change.
- Agree the contract and ship its schema fields, then prove one module end to end (kdrill, issue #53).
- A second, unrelated topic (a SQL lab is the candidate) is built against the contract; the council expects it not to fit unchanged, and finding that out is the point.
- Only then publish the contract as stable and open an index repository: a reviewed
index.jsonof manifests pointing at sha-pinned artefacts, with CI running the conformance check on every entry. - Lifecycle (installation from a URL, updates, revocation, removal) is designed after the index, not before.
No stage has a date. Each one starts when the previous one has shipped its evidence.
Every term here is proposed; none is accepted into a schema yet.
- manifest —
module.yaml: id,contractversion, module version, topic, licence, maintainers. - capabilities — the phases a module may ask core to run (
terminal,setup,check,cleanup); the runner would refuse anything undeclared. - prerequisites — ids from an enum core owns (
docker,kind,kubectlin v1); the probes live in core'sdoctor/, report only, and never create resources. - scaffolding levels —
guided/hinted/unaided/exam, kdrill's L0–L3 named for what the learner gets.
- Modules declare; core executes. A module ships no Python, no entry points, nothing core imports;
each phase is one executable under the module's
scripts/plus literal arguments, run without a shell in a clean environment, against a disposable target core created. - The learner sees the prompt and the success criteria only.
hint,solutionand the mentor brief reach the learner through the mentor, which asks before it tells. - Consent is per phase, per execution, bound to the script's content digest; a passing check records an observation on the attempt, never a learning record or a mastery claim.
- Open an issue describing the learner need and the smallest drill, using the template on the optional modules proposal page.
- Convert your content to
PracticeDeckJSON; it validates against the schema that exists now, and the six proposed fields are additive. - Read issue #53 and the proposal's §10 questions, and answer the ones that touch your topic.
Do not add a modules: section to your config.yaml expecting it to work: no code reads it. The
settings loader ignores a key it does not look for, and the doctor's unknown-key check
(unknown_top_level_keys in packages/studyloop/src/studyloop/settings.py) reports it as inert. Do not
write a loader, a registry client, or a browser terminal for your topic; propose the missing generic
seam instead.
The first slice is done when a new contributor, from a clean supported environment, can run one drill, consent to one check, see its result, and cancel safely — with the default tests passing without Docker, kind, cloud credentials or a paid model, and every core study flow unchanged when no module is present.
The proposal's §10 lists eleven questions, each with a recommended answer; they are decided on
issue #53 or as review comments on the pull
request that carries the proposal. The council review that amended the proposal is recorded in
openspec/changes/module-contract-v1/council/2026-10-04-arbitration.md. This page changes when they do.