The Academy
The Academy is the fund's school, at /learn. It explains how a fund works, why each rule in the mandate exists and what
the figures on the other pages mean. It keeps no score: no streaks, no points, no badges. Progress is two quiet counts,
lessons read and quiz questions answered right again on a later day.
Where things live
| Part | Path |
|---|---|
| Content (JSON, served as static files) | web/academy/ |
| Merge and validation | tools/academy-check.ts, run as npm run academy:check |
| Links, progress, catalog, search, the textbook picker | web/lib/academy.js |
Glossary loading, aliases, Term hrefs | web/lib/glossary.js |
| Simulators (illustrations, never the owner's money) | web/lib/academy-sims.js |
| Live panels (the owner's own fund) | web/lib/academy-live.js |
| Pages: home, lesson, case, glossary, concept of the day | web/views/learn.js |
| Styles | web/academy.css |
| Strings | web/i18n/<locale>.academy.json |
| Server: progress, recall schedule, tutor | src/academy/store.ts, src/academy/routes.ts, test/academy.test.ts |
URL shapes are stable and other pages link to them: /learn, /learn/<lesson-id>, /learn/case/<case-id>,
/learn/glossary, /learn/glossary#<term-id>.
Content
Authors write fragments; academy:check merges them.
lessons/<id>.json: one lesson each.cases/<id>.json: one case each.tracks.<author>.json: tracks, merged intotracks.jsonand sorted byorder. The track art comes from theTRACK_ARTmap in the tool; an unknown key simply shows no art.glossary.<author>.json: terms, merged intoglossary.json. Overlaps are resolved byPREFERin the tool, or the first fragment wins.catalog.jsonis generated: the tracks, plus the metadata of every lesson and case, so that the home page never loads every lesson.
Files that start with _ are ignored.
As of this writing there are 50 lessons across 6 tracks, 12 cases and 209 glossary terms (211 entries
counting the 2 aliases), in English and Dutch. These numbers grow as authors add fragments; npm run
academy:check is the source of truth, not this page.
Lesson
{ "id": "drawdown", "track": "risk", "minutes": 6, "level": 1,
"title": {"en": "…", "nl": "…"}, "summary": {"en": "…", "nl": "…"},
"terms": ["drawdown"], "rules": ["L-LOSS-DD"], "blocks": [ … ] }
Block types:
p,h,callout(withtone:note,warn,mythorlesson) andsourcetake{en, nl}strings.listtakes{en: [..], nl: [..]}, with arrays of equal length.formulatakes{tex, en, nl}, whereenandnlhold the formula read aloud.simtakes{id, params}, whereidis a key ofSIMS.livetakes{id}, whereidis a key ofLIVE.casetakes{id}and renders a case card.trytakes{page, en, nl}, wherepageis a dashboard path from the NAV inapp.js.quiztakes{q, choices[], answer, why}, whereansweris the index of the right choice.
In any string, [[term-id]] or [[term-id|shown text]] links to the glossary with a hover card.
Case
{ "id": "ltcm", "year": 1998, "title": {…}, "oneLine": {…}, "story": [{…}], "lesson": {…},
"rules": ["L-LEV"], "ruleWhy": {"L-LEV": {…}}, "sources": ["…"] }
Glossary term
A term has {short, long, lesson?, see[]}, and every text in both languages. {"alias": "<id>"} makes a term another
name for an existing one: links and hover cards resolve to the canonical entry, and aliases are left out of the list,
search and the palette. Current aliases: adv for average-daily-volume, and crowding for crowded-trade.
Simulators and live panels
- Simulator ids:
diversify,luck-skill,drawdown,kelly,fees,compounding,multiple-testing,var,leverage,rebalance,costsandcooling. Each is labelled "Illustration, not your money".paramsset the starting position of the controls; unknown params are ignored. - Live panel ids:
nav,sharpe,drawdown,vol,beta,concentration,correlation,var,stress,nulls,tstat,costs,cooling,rules,ladder,attribution,seatsandbox3. Each reads figures the server already computed and links to the page they come from. The Academy computes no money figure of its own.
Checking
npm run academy:check fails on:
- a broken
[[term]],termsorseereference; - an unknown sim, live panel, case, kernel rule id or
trypage; - a missing
enornltext; - a quiz answer out of range;
- a banned word.
An exclamation mark is a warning. --no-write checks without writing the merged files.
Linking into the Academy from other pages
import { LearnLink, Why } from '../lib/academy.js';
html`<${LearnLink} lesson="drawdown">…</${LearnLink}>`; // also term= or case=
html`<${Why} rule=${ruleId} />`; // "why" to the lesson that explains a kernel rule, or nothing
Term in web/lib/ui.js renders an inline glossary term with its hover card. ConceptOfDay from web/views/learn.js
is the one-line card on Today.
Recall
Answering a quiz question right schedules it again after 1, 3, 7 and then 21 days. A question counts as remembered after two right answers on separate days. Wrong answers bring it back the next day. Progress is kept per owner on the server; the browser keeps a copy and merges it back when the server was unreachable.
Tutor
"Explain it another way" answers from the glossary and lessons first. With a model connected, it makes one call whose only context is the lesson or term text. The model never sees the fund's figures. Replies that quote money or tell the reader to trade are refused, and each call is recorded as a seat call with its cost.