Resolution

All pages

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

PartPath
Content (JSON, served as static files)web/academy/
Merge and validationtools/academy-check.ts, run as npm run academy:check
Links, progress, catalog, search, the textbook pickerweb/lib/academy.js
Glossary loading, aliases, Term hrefsweb/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 dayweb/views/learn.js
Stylesweb/academy.css
Stringsweb/i18n/<locale>.academy.json
Server: progress, recall schedule, tutorsrc/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 into tracks.json and sorted by order. The track art comes from the TRACK_ART map in the tool; an unknown key simply shows no art.
  • glossary.<author>.json: terms, merged into glossary.json. Overlaps are resolved by PREFER in the tool, or the first fragment wins.
  • catalog.json is 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 (with tone: note, warn, myth or lesson) and source take {en, nl} strings.
  • list takes {en: [..], nl: [..]}, with arrays of equal length.
  • formula takes {tex, en, nl}, where en and nl hold the formula read aloud.
  • sim takes {id, params}, where id is a key of SIMS.
  • live takes {id}, where id is a key of LIVE.
  • case takes {id} and renders a case card.
  • try takes {page, en, nl}, where page is a dashboard path from the NAV in app.js.
  • quiz takes {q, choices[], answer, why}, where answer is 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, costs and cooling. Each is labelled "Illustration, not your money". params set 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, seats and box3. 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]], terms or see reference;
  • an unknown sim, live panel, case, kernel rule id or try page;
  • a missing en or nl text;
  • 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.