Skip to content

Inside the code — overview

Primary adaptive-engine source — web/lib/bkt.ts. Deliberately tiny: ~150 lines, zero runtime deps beyond TypeScript types.

This section walks it line by line — behavior, rejected alternatives, rationale.

  • Types & taxonomy — web/lib/microskills.ts.
  • Walk-through bkt.ts — bktUpdate, pSolve, applyAttempt, scoreTaskForStudent, recommend with code citations.

Every chapter quotes real project paths via startLine:endLine:filepath.