{
 "name": "coaching",
 "what": "Coaching at Alpha this school year (from 2026-08-12; session counts cover every coaching session, student measures academic coaching only): every booked session joined to how it really ended (Google Meet attendance over the coaching platform's marks), what blocked the student (the coach's description, classified by AI into four blockers), whether the student did better on their own afterwards (first-try pass rate and minutes per XP from TimeBack), and per student, subject and school day whether coaching failed the student and who owns it (eight failure categories, including struggling students who were never offered a session). The read API (how.api) serves counts and ids; answers may name students and coaches (ruling 2026-10-23), resolved through TimeBack and the coaching platform.",
 "when": "Reach for this source for questions about which struggling students were offered a session (the ledger's \"not reached\") or coached by the next school day, completed sessions against the target, no-shows and coach no-shows, waiting, blockers, whether sessions work, whether coaching adds value, and heavy users. Before any query read DICTIONARY.md (§0 says what it cannot answer; §§1–8 the terms; §10 the stores); BRAINLIFT.md is the opinion layer, read it before disagreeing with a definition. Route away: open slots, booking demand and lead time → the coaching platform's own metrics (alpha-video-analysis, coaching.alpha.school); a student's learning-risk categories → the Academic Support skill; lesson-level and question-level detail → the TimeBack skill; coach performance rankings → nowhere (not served, by design).",
 "why": {
  "relevance": "The only place a struggling student who never booked is counted beside the ones who did, and the only place a session's ending is settled by who actually joined the meeting.",
  "contract": "https://data-source-skills.vercel.app/contract",
  "metric": "the coaching dashboard's four headlines (GET /headlines): completed sessions a school day against 200 (every coaching session); Better after coaching (the share of judged academic sessions whose student passed more new lessons on the first try afterwards); the share of returning students who needed fewer sessions; Next-day coaching (of the students who asked for academic coaching, the share with a session scheduled for the same or the next school day; DICTIONARY §2) — window: from 2026-08-12, the first school day; Meet attendance from 2026-09-08",
  "registry": "https://data-source-skills.vercel.app/",
  "sha256": "a3c77832675f31f92bed0c3b728e76ac276deb716c86f1ca70c9e054fb21c76d",
  "sha256_of": "the data-source-skills contract text at why.contract, as read on pinnedAt",
  "pinnedAt": "2026-09-17"
 },
 "how": {
  "api": {
   "base": "the production read API (COACHING_API_URL in ~/.claude/coaching-api.env, ending in /prod); GET /health needs no key",
   "auth": "either header x-api-key = COACHING_API_KEY, issued per person (a reader key serves ids and counts), or, for someone with TimeBack admin access, their TimeBack client ID and secret on the same routes under /timeback (<base>/timeback/<route>): Authorization: Basic base64(client_id:client_secret) (TIMEBACK_CLIENT_ID and TIMEBACK_CLIENT_SECRET; the API gets and refreshes the TimeBack token) or Authorization: Bearer <a TimeBack access token> (TIMEBACK_TOKEN; the reader refreshes it, 401 once expired). The credentials need TimeBack admin access (the scope https://purl.imsglobal.org/spec/or/v1p1/scope/admin, 403 otherwise); that path also serves the routes that name students and coaches (/people, /sessions/{id}, …) and records each login and call. Names are allowed in answers (ruling 2026-10-23): a key reader resolves them from TimeBack (students) and the coaching platform (coaches)",
   "routes": "GET /runs (every load, its reference commit and each nightly step) · /headlines · /sessions?from=&to= · /ledger?day= · /outcomes?from=&to= · /datasets/{name} (the dashboard datasets of DICTIONARY §10.7, and outcome_matched, §10.5); with TimeBack admin credentials every route under /timeback, the routes that name people included (/people, /sessions/{id}) — every route, parameter, shape and error: DICTIONARY §10.10",
   "paging": "lists come in pages: {rows, total, next_cursor}; pass cursor=<next_cursor> until it is null (limit up to 2000 rows on /sessions and /outcomes, 10000 on /datasets)",
   "freshness": "GET /runs: full_run_at (the last full nightly rebuild) and steps.<name>.{result, at}; quote them with every figure (DICTIONARY §17)",
   "reference": "DICTIONARY §10.10 (the read API as served); ENABLEMENT Composition 0 (reading the source through it)"
  },
  "native": {
   "stores": {
    "sessions": "datasources/sessions/data/sessions.sqlite, table sessions (DICTIONARY §10.1)",
    "ledger": "truthfinder/data/ledger.sqlite, table ledger (DICTIONARY §10.2)",
    "meet": "datasources/meet/data/meet.sqlite (DICTIONARY §10.3)",
    "outcomes": "truthfinder/data/outcome.sqlite, table outcomes; lesson store truthfinder/data/lessons.sqlite (DICTIONARY §10.4)",
    "matched": "truthfinder/data/outcome_matched.json (DICTIONARY §10.5)",
    "qc": "datasources/meet/data/qc_results.json, a 39-session prototype (DICTIONARY §10.6)",
    "dashboard": "truthfinder/data/dashboard/*.json, counts only (DICTIONARY §10.7)",
    "platform": "datasources/coaching_platform/data/platform.sqlite, tables rows and no_slot; not shipped (names), read through the requests_* datasets (DICTIONARY §10.9)"
   },
   "entry": "sqlite3 <store> \"<sql>\"; rebuild: python truthfinder/nightly.py [--only step,...]; checks: python datasource/checks.py {drift|spec|claims|probe|all}",
   "auth": "read-only: Google domain-wide delegation for the tracker, DS and Meet (service-account key in ~/.claude, never in the repo); the coaching platform key in ~/.claude/coaching-avc.env (admin rows, audit-logged); the Academic Support read API key in ~/.claude/academic-support-api.env; TimeBack through its skill's read-only SQL access",
   "pii": "names may appear in answers (ruling 2026-10-23). Student names, emails, Meet display names and transcripts live in the stores on the machine that builds them; the API serves them only to the signed-in dashboard and to TimeBack admins (/timeback), so a key reader resolves names from TimeBack or the platform; AI classification and QC receive text with names removed",
   "status": "The maintainer's reference build, for conformance only; a reader can't reach these stores and uses how.api. truthfinder/data/nightly_status.json: full_run_at (last full rebuild), last_run_at (last run of any kind), steps.<name>.{result,at}"
  },
  "brainlift": "BRAINLIFT.md — what we believe about coaching and why; mirrored from its Workflowy source",
  "dictionary": "DICTIONARY.md",
  "enablement": "ENABLEMENT.md",
  "dashboard": "Coaching Insights (a private claude.ai dashboard over truthfinder/data/dashboard/*.json; shared by its owner)"
 },
 "feedback": {
  "report": "POST https://4cnfu40x26.execute-api.us-east-1.amazonaws.com/prod/feedback with JSON {title, body, reporter, kind?, source: \"coaching\"} -> 201 {number, url}; no credential required. source must be \"coaching\" (the tracker holds every data source skill's reports; without it a report is filed under academic-support). reporter is a required free-text attribution (who or what files it); kind = report | ask (default report). Shape the body From: / Problem (dated evidence, counts or structure, never a person): / Ask: / Acceptance (a falsifiable test): — a priority and an area on the title ('P2 [data] …') triage faster. A report carrying an email address or a student's name is refused (422): the tracker is public. The same title and body again within a day returns the first report (200).",
  "open": "GET https://4cnfu40x26.execute-api.us-east-1.amazonaws.com/prod/feedback?source=coaching&state=open — this skill's open reports, newest first (?state=open|closed|all, default all)",
  "resolved": "GET https://4cnfu40x26.execute-api.us-east-1.amazonaws.com/prod/feedback?source=coaching&state=closed — each closed report carries its resolution in prose; GET https://4cnfu40x26.execute-api.us-east-1.amazonaws.com/prod/feedback/{number} for one report with its body",
  "caps": {
   "title": 200,
   "body": 65536
  },
  "loop": "python datasource/checks.py all: drift (stores still have the columns the dictionary defines), spec (the pack agrees with itself and the contract), claims (every recomputable DOK1 number re-measured; drift flagged), probe (each source reachable read-only); the nightly runs drift, spec and claims; a finding seen on three nights is a root cause"
 },
 "version": "2026-10-22",
 "source": "coaching",
 "documents": {
  "skill_md": "SKILL.md — the skill's own instructions for Claude Code (setup, reading order, how to answer)",
  "dictionary": "DICTIONARY.md — served at https://insights.alpha.school/skill/coaching/dictionary (raw markdown: …/dictionary/ai); §10.10 is the read API as served",
  "enablement": "ENABLEMENT.md — served at https://insights.alpha.school/skill/coaching/enablement (raw: …/enablement/ai)",
  "brainlift": "BRAINLIFT.md — served at https://insights.alpha.school/skill/coaching/brainlift (raw: …/brainlift/ai)",
  "claims": "datasource/claims.json (dated measurements of the brainlift's recomputable DOK1 figures, the query beside each; re-run: python datasource/checks.py claims)",
  "data_requests": "docs/data_requests.md — the reports filed before the feedback wire existed; new reports go to the wire (feedback)"
 },
 "residence": "served origin: https://insights.alpha.school/skill/coaching — the install page; the front door as JSON at …/skill.json and for agents at …/ai; the documents at …/dictionary, …/enablement, …/brainlift (each with an /ai raw version); the pack at …/download/coaching.tar.gz and .zip; the installers at …/install.sh and …/install.bat; the read API is the production build's (GET /skill on it redirects here); not registered",
 "front_door": "https://insights.alpha.school/skill/coaching/skill.json (GET /skill on the read API redirects here); this file"
}
