Implementation status — ATLAS IA platform
Last updated: 2026-11-22 (second pass, with the slide viewer). Legend: done (built and verified, evidence in §4) · partial (works, with a stated gap) · not started · blocked (waiting on a decision or on something outside this repository).
Deployment. The lead deployed Phases 0–3 (commit c457cff + src/components/data/DataPanel.tsx) on 2026-11-22 to node m4mm (PM2 atlas-web, port 8840), as reported by the lead; not verified from this repository. Nothing of Phases 4–5 is deployed. This pass touched no server, DNS record, cluster node, remote PM2 or git remote; commits are local.
1. Phases
| Phase | Status | Note |
|---|---|---|
| 0 — Reconnaissance | done | docs/ARCHITECTURE.md §1. |
| 1 — Foundations | done | CI workflow written, never run. A .gitignore defect that kept src/components/data/ out of git was fixed in this pass, with a guard (pnpm clean-check). |
| 2 — Public flagship | done | Now rendered on demand from live publications (see ARCHITECTURE.md §4). |
| 3 — Learning engine | done, with the partial items of §3 | Unchanged. |
| 4 — Publishing studio | done locally, with the partial items of §3 (§12, §13) | Passkey studio, editorial model, publications, uploads, transcode worker, import/sync, tools. Tested with a virtual authenticator and synthetic media only. |
| 5 — Production hardening | partial | Built and tested: migrations, backup/restore drill, export, health, structured logs, security tests, threat model, PM2 file, env template, dependency audit. Not started: load tests, monitoring/alerting, scheduled and off-node backups, cost measurement, cross-browser checks of the studio, staging deployment. |
| 6 — Launch | not started | — |
2. What the site shows
- Public site, as built here: until a studio database exists, exactly what Phases 0–3 showed — the plan of the 24 sessions, all « À venir », nothing else. Once the studio is used, whatever was published through it, and only that. In this repository nothing real is published: the only publications ever made were made by tests, on throw-away databases, with synthetic media.
- Development preview (
ATLAS_PREVIEW=1): unchanged — S01 of the committed snapshot, the synthetic test capsule, the exercise bench, the 15 diagrams. It never reads the studio database. - Studio (
/admin): works on any data directory; a fresh one is seeded from the committed snapshot (S01 in « Aperçu », S02–S08 drafts, the rest planned).
3. Status by specification section
§2 Brand and design — done
Original vector mark and wordmark (brand/), favicon, Apple/PWA icons, social card, tokens (brand/tokens.json = CSS, tested), design system with light/dark themes and reduced motion, docs/DESIGN_SYSTEM.md. Screenshots at three widths and two themes for every major screen.
Gap: the wordmark SVG keeps live text (not outlined). No automated visual regression.
§3 Information architecture — done
/, /programme, /seances/[slug], /seances/[slug]/regarder, /ressources, /laboratoires, /parcours, /glossaire, /recherche, /a-propos, /accessibilite, /confidentialite, /conditions; plus /schemas and /schemas/[id] (diagram library, 404 until a diagram is published) and /apercu (preview only, 404 in production). /admin (sign-in, enrolment, eight studio screens, private preview). 404 page, empty states, not-yet-published states, permanent redirects (former slugs + editorial list, now resolved at request time). The loading skeleton of Phases 2–3 was removed: pages are now rendered on demand, and under a loading boundary a missing page would have answered 200 instead of 404.
- partial — offline: a banner tells the visitor the connection dropped (tested); there is no service worker and no offline page. Nothing is promised offline.
- partial — 500:
error.tsxandglobal-error.tsxexist; no test triggers them.
§5 Landing page — done
First screen states what, who, free, no account, where to begin; primary action is « Commencer gratuitement » when a session is open, « Parcourir le programme » when none is (the button does not pretend); fact sheet with counts computed from the manifest; six real outcomes quoted from the course plan; interactive prerequisite map built from the real depends_on data (keyboard-reachable, with a list alternative on small screens); entry points; prerequisites and equipment; availability table; instructor credit and non-endorsement notice; FAQ.
Not present because it does not exist: a course preview video.
§6 Video player — done, with gaps
| Feature | Status | Evidence / gap |
|---|---|---|
| HLS native (Safari) / hls.js elsewhere / MP4 fallback | done | engine asserted per browser; fallback test with playlists blocked |
| Adaptive renditions, manual quality (hls.js) | partial | 2 renditions, selector tested; adaptation under a throttled network not tested |
| Poster, buffering indicator, error state with retry | done | player.spec.ts |
| Play/pause, ±10 s, volume/mute, speed 0.5–2×, keyboard shortcuts + help overlay | done | player.spec.ts |
| Full screen, picture-in-picture | partial | implemented (with the iOS native-fullscreen path); not exercised by any test |
| French captions (WebVTT), toggle | done | journey test |
| Searchable, click-to-seek transcript, current segment highlight, export | done | journey + features tests |
| Chapters, bookmarks (local), deep links to a moment | done | journey + player tests |
| Resume position, completion at 90 % | done | journey test (reload) |
| Theater / focus mode | done | player test |
| Notes with Markdown export/import | done | features test (export); import path unit-tested |
| « Effacer mes données locales » | done | journey test |
| Next/previous session, prerequisites, resource links | done | — |
| Several capsules per session | partial | list and switching built; only ever exercised with one capsule |
| Slides synchronised or side by side | not started | no slide resource exists |
| Download when enabled and licensed | partial | rule implemented and unit-tested; no downloadable file exists to exercise it |
| Real iPhone / iPad Safari | not verified | only Playwright's desktop WebKit |
§7 Session hub — done for what exists
Title, part, number, level, publication state, outcomes, prerequisites and what the session unlocks, effort, capsule list with mandatory/optional and local progress, explicit completion rule, figures with captions and full descriptions, lab instructions, quiz, glossary, narration script (labelled « not a transcript »), references, outline, canonical-URL copy, print summary.
- partial: revision history (rendered from the editorial layer; none recorded, so never displayed); delayed release of solutions (
releaseAfterrule, unit-tested; solutions are not imported at all). - not started: slides PDF, LaTeX sources, datasets, code downloads (no licence; Phase 4). Instructor notes are deliberately never imported.
§8 Exercises — done
Nine types: single choice, multiple choice, true/false, ordering, matching, numeric with tolerance, fill-in-the-blank, debugging scenario, self-assessed reflection. Explanations, per-option feedback, retry per question, whole-quiz result with the course's suggested threshold, local-only attempts and history, export/import through the data panel, « quiz formatif » notice. The course repository's quiz YAML is rendered through the adapter (choix-unique, vrai-faux).
- not started: programming exercises with downloadable starters, automated local tests or a browser sandbox. No learner code is executed anywhere.
§9 Interactive diagrams — 15 of 15 built, none public
All are keyboard-operable and carry a text equivalent that reflects their state. Listed in preview only: none has been reviewed by the instructor.
| # | Diagram | Kind | Model unit-tested | E2E |
|---|---|---|---|---|
| 1 | Tokenisation | computed (3 teaching splitters; counts explicitly method-specific, no real tokenizer) | yes | yes |
| 2 | Attention | computed (scaled dot product, causal mask, softmax; hand-checked) — a calculation table, not a drawn schematic | yes | yes |
| 3 | Context budget | computed (overflow, truncation) | yes | render |
| 4 | Context / memory / retrieval | scripted scenario with toggles | no | render |
| 5 | RAG pipeline + failure modes | stepped flow | no | keyboard |
| 6 | Agent loop | scripted run with a step budget | no | yes |
| 7 | Tool call and permission boundary | policy simulation | no | render |
| 8 | Terminal / shell / process / files | in-browser simulator (8 commands, fictitious files) | yes | yes |
| 9 | Delegation, serial vs parallel | computed | yes | render |
| 10 | MCP roles | stepped flow + role explorer — wording not checked against the current MCP specification in this session | no | render |
| 11 | Git branches and review | state machine | yes | yes |
| 12 | Agent evaluation | computed | yes | render |
| 13 | Local vs API hosting | computed from the visitor's own figures (no real price shown) | yes | render |
| 14 | Prompt injection | stepped flow with defences | no | yes |
| 15 | Coding-agent lifecycle | branching path | no | render |
§10 Search — done
Local index built from the public view; accent-insensitive; typo-tolerant (Damerau–Levenshtein); prefix matching; AND semantics; facets (type, part, session, level) with counts; highlighted matches; timestamped transcript and chapter hits that open the player at that moment; « concepts associés » in the glossary. No draft, preview or solution content in the production index (tested three ways).
§11 Anonymous progress and privacy — done
No account, no cookie, no analytics, no third-party request (all asserted by tests). localStorage only; explained on /confidentialite; export, import (merge or replace), clear.
§12 Instructor studio — done locally, with gaps
| Capability | Status | Evidence / gap |
|---|---|---|
| Passkey-only sign-in, one-time enrolment token from a CLI, further editors, revocation of passkeys and sessions, roles (owner / publisher / author) | done | studio-auth.test.ts; e2e tests 1–4, 17–18. Virtual authenticator only — no real device tested. |
Server-side sessions, cookies scoped to /admin, CSRF, rate limits, server-side authorisation on every page and API, audit log with before/after references, noindex / no-store |
done | e2e tests 19–20 (39 routes × anonymous / foreign origin / missing or wrong CSRF; replay; traversal; rate limit), 16 (journal). |
| Learners stay cookie-free | done | every anonymous e2e journey asserts an empty cookie jar, including with published content. |
| Dashboard (states, jobs, broken files, schedule, storage, ffmpeg/worker/database health) | done | e2e 5, 15; screenshots. |
| Sessions: create, edit metadata, outcomes, prerequisites, order, archive; parts; glossary; bibliography; capsules; chapters | done | e2e 6–9, 14; bibliography and parts editors are built but not driven by an e2e test. |
| Markdown editor with live preview, sanitised, highlighted code, LaTeX, accessible tables | partial | Markdown (not MDX); no image or diagram embedding (images are dropped by design); math only from $$…$$. markdown.test.ts, e2e 7. |
| Quiz editor with explanations and preview through the public engine | partial | form editing for 4 of 9 types; the other 5 through validated JSON. Options are shuffled by the existing engine. |
| Chunked resumable uploads, progress, SHA-256, retry, duplicate detection, type by magic bytes, size limits, storage warning | done | studio-media.test.ts; e2e 8, 10, 20. Resume and retry are unit-tested at protocol level; the browser's « Reprendre » button is not exercised by an e2e test. Largest file tested: 12 MB. |
| Job queue in SQLite + separate worker; ffprobe validation; HLS ladder + MP4 + poster + thumbnails; never upscales; timeouts, bounded concurrency, progress, retry, failure states; masters preserved | done | studio-jobs.test.ts, studio-media.test.ts (real ffmpeg, synthetic 180p/480p sources), e2e 8 (real worker process). Waveforms: not built. Timeout path of a hung ffmpeg: implemented, not exercised by a test. |
| Captions (WebVTT validation, language), timing preview, transcript import (VTT/JSON), chapters editor | done | studio-captions.test.ts, e2e 9. |
| Resources: visibility, download permission, licence note, versions, replacement at a stable address, checksum | done | studio-media.test.ts, e2e 10, 13. « Rétablir une version » is built, not e2e-tested. |
| Draft → preview → scheduled → published → archived; private preview from the session; explicit confirmation; version history; rollback; withdrawal | done | studio-publication.test.ts, e2e 11–15. Archive is unit-tested only. A scheduled entry reaching its time on a running server: unit-tested with explicit dates, not waited for in e2e. |
| Publishing without a rebuild | done | e2e 12–14: a fresh anonymous context sees each change at the next request. |
| Slug change → permanent redirect | done | unit + e2e 14 (308, then 404 after rollback). |
| Import from the course repository: diff, conflict policy, drafts only, confirmation, idempotent; archive upload | done | studio-sync.test.ts, studio-archive.test.ts, e2e 6. Tested on fixture repositories, not on the live course repository in this pass. |
| Search-index rebuild, link checker, caption validation in the studio | done | e2e 16; external links are counted, never fetched (by design). |
| Backup/restore interface | partial | command line only (by design); the studio lists backups and offers the export. |
| Undo | partial | rollback of publications; resource versions; no general undo of edits in the working copy. |
Slides online (owner's request of 2026-11-22) — done locally, not deployed
| Item | Status | Evidence / gap |
|---|---|---|
Import of SXX-web.pdf / SXX-web-light.pdf into per-slide assets for both themes, with index, slide identifier, kind, title, section, text, figure descriptions; hashes, idempotent, path-safe, no execution |
done | studio-slides.test.ts (hand-made PDFs + the real S01); real S01–S10 built: 37–44 slides each, all content frames identified, no warning |
| Asset format | SVG per slide and theme + WebP thumbnails | measured: 8.5–10.4 MB SVG per session for two themes, 1.4–1.7 MB gzipped, ≈ 1 MB thumbnails; renders in Chromium and WebKit (e2e). Compression is left to the gateway: not verified on the gateway |
| poppler only at import time; output shipped as packs | done | pnpm slides:build → SXX-slides.tar.gz; pnpm studio slides-import and a studio upload need Node only. The studio upload of a pack is built, not driven by an e2e test (the CLI path is) |
Viewer on /seances/[slug], and under the player on /regarder when a capsule exists |
done / partial | every listed interaction is e2e-tested on the session page; the /regarder placement is built but untested (no test has both a capsule and a deck) |
| Text alternative per slide, « Version texte », axe both themes, 375 px, reduced motion (no transition at all) | done | e2e/slides.spec.ts; no screen-reader session was run |
| Search hits that open the slide | done | unit + e2e |
| Slides as a separately publishable resource, audit, rollback, leak guarantees | done | a slides section with its own visibility; publishSlides refuses to publish anything else; e2e leak test (404 by every address, search, sitemap) |
| Honest states and counts | done | « Diapositives en ligne », offer chips, « Séances avec diapositives en ligne : N sur 24 », still « Séances publiées : 0 » and 0 capsule; /api/health keeps published: 0 |
| Scripted, reversible publication of S01–S10 | done, rehearsed locally, not run on any server | pnpm studio slides-publish S01 … S10 / slides-unpublish; see docs/DEPLOYMENT.md |
| Speaker notes never public | done | never read; tests look for note phrases in decks, blobs, audit, search, pages; pnpm leak-check does too when ATLAS_COURSE_REPO is set |
| PDF download behind the licence gate | done by reuse | offered only for a published « Diapositives » resource with download enabled and a licence; the positive case is not e2e-tested |
| Slide ↔ quiz cross-links | not built | the platform's quiz format does not carry the course's slides: field |
§13 Content integration — done
Canonical manifest schema, adapter/importer (idempotent, hashed, path-safe, never executes repository code, never publishes), committed snapshot as the studio's seed, three-way sync with per-field and per-section base tracking, safe archive extraction. Not built: import of media or resources from the repository (none exist there); compilation of LaTeX (deliberately: PDFs are uploaded as resources).
§15 Performance, accessibility, SEO
- done: axe on every route × 2 modes × 2 themes + interactive states (0 violation); keyboard tests; reduced motion; self-hosted fonts; axe on 14 studio screens, two editors and a dialog in both themes; sitemap, robots, canonical,
fr-CA, social card, structured data only for genuinely published content (today:WebSiteonly). - changed: public pages are no longer statically generated (on-demand rendering from the database, see
ARCHITECTURE.md§4); the effect on response times was not measured. - not started: Core Web Vitals budgets and measurement, Lighthouse, constrained-device tests.
- not done: manual screen-reader audit.
§16 Security — done for what is built; no external review
docs/SECURITY.md (controls with their tests, threat model, residual risks). pnpm audit (all dependencies), 2026-11-22: no known vulnerability, after pinning KaTeX 0.19.1. Open: worker not sandboxed, CSP keeps 'unsafe-inline', no at-rest encryption, gateway not verified.
§17 Operations — partial
- done: forward-only migrations tested from an empty database; backup (consistent snapshot, resources, caption files, media manifest), restore with checksum verification, a restore drill in the automated tests, retention command, export of all content and metadata; public and token-protected health endpoints (database, content, storage, worker heartbeat, ffmpeg) and
pnpm studio health; structured logs with redaction; storage accounting and warnings; PM2 ecosystem file; production env template; upgrade runbook for the existing deployment. - not started: scheduled backups, off-node copies, error monitoring, uptime checks, alerting, log shipping, purge of unreferenced media, load tests, cost measurement (only bitrate-based estimates in
VIDEO_PIPELINE.md).
§18 Acceptance criteria
Done: typecheck, lint, build; unit and integration tests; e2e for the anonymous visitor (unchanged) and for the admin journey (authentication, upload, processing, preview, publication, edit, rollback); axe on public and studio screens in both themes; security checks. Not done: manual keyboard/screen-reader audit of the studio, visual regression, performance checks with realistic video, production smoke tests.
§20 Documentation — done
README (French), 13 documents under docs/ rewritten or updated to match what exists, this file, .env.example, .env.production.example, ecosystem.config.cjs.
4. Evidence — last full run (2026-11-22, macOS arm64, Node v26.13.0, pnpm 11.1.2, ffmpeg 8.1.1)
pnpm test:all — result: exit 0. It runs, in order:
| Command | Result |
|---|---|
pnpm typecheck (tsc --noEmit, strict) |
0 error |
pnpm lint (eslint src scripts tests e2e) |
0 error, 0 warning |
pnpm test (vitest) |
261 passed in 19 files (13 for the slide decks, incl. poppler builds and the real S01) — 111 from Phases 1–3 (one fixture adjusted, see below) + 137 new: identity, migrations and logs 17, publications 17, sync 13, uploads and media 15 (5 of them with real ffmpeg), archives 26, captions and file types 23, queue and worker 12, backup/restore/export/health 10, Markdown 4 |
pnpm build (Next 16.4.6) |
compiled; every content route is now dynamic (ƒ) |
pnpm media:test-capsule, pnpm build:preview |
as before |
pnpm leak-check |
1 689 sentinel phrases: 0 in .next, 0 in the 252 answers of a live production server; positive control: 220 found on the live preview server; no draft content there; no server code or secret marker in .next/static; with ATLAS_COURSE_REPO set: none of 518 phrases of the speaker notes in the builds or in slide decks |
pnpm test:e2e (Playwright, headless) |
180 passed in 2.8 min (chromium 116, webkit 17, firefox 6, mobile 16, studio 25) — the 142 of Phases 2–3 (two of them updated: /admin exists now) + 25 studio tests + 13 runs of the 8 slide-viewer tests across chromium, webkit and mobile |
pnpm secret-scan |
no secret |
pnpm clean-check |
no ignored or untracked source file; git archive HEAD type-checks alone |
Also run: pnpm audit → no known vulnerabilities (after a KaTeX override); pnpm studio enrol | editors | migrate | health | backup by hand on a scratch directory.
Existing tests changed in this pass (each because the studio now exists or a rule got stricter — none was weakened to pass):
tests/publication.test.ts: the fixture of « allows only keys under a visible capsule » now gives the capsule media paths matching its id; permission follows the files a capsule names, no longer its identifier. Two assertions added.e2e/production.spec.ts:/adminis no longer expected to be a 404 — it must redirect to the sign-in page with noindex and no cookie, and the private API must answer 401; the « real 404 » test uses another address; POST/PUT/DELETE on/adminare expected to be redirected (≥ 300) rather than ≥ 404.e2e/shots.spec.ts: the 404 capture uses/page-introuvable.scripts/leak-check.ts: pages are no longer in the build, so the check now also starts each build and crawls it.
Defects found by the tests and fixed during this pass: free-space alert computed as a share of the volume (a 94 % full 2 TB disk was « critical »); editor tabs not following the address hash; logo link and capsule headings failing axe; safeFilename returning a bare extension for a dot-file name; transitive KaTeX with an advisory; ESLint parsing HLS .ts segments of the test data; .gitignore hiding src/components/data/ and the production env template.
One run in this session failed for an outside reason: the laptop was suspended in the middle of an encode (job requeued by the worker as designed; the test's 120 s wait expired). The rerun passed.
5. Screenshots
Public pages: unchanged (pnpm screenshots). Studio: e2e/studio.spec.ts writes 34 full-page captures (14 screens at 1440 px and 834 px, light; three of them in dark) to e2e/.tmp/studio/shots/ (not committed) and asserts no horizontal overflow. They were read and corrected (storage panel wrapping, a misleading badge label). No studio capture is committed and there is no visual regression test.
6. Not verified
- Everything in the previous list for the public site (real phones and tablets, full screen and picture-in-picture, screen readers, performance, CI workflow).
- Real passkeys: Touch ID / Face ID / iPhone / synced keys. Only Chromium's virtual authenticator, on
http://localhost. - The production origin and gateway:
https://atlas.spboucher.aias relying party, Secure cookies over TLS,X-Forwarded-For, 4 MiB bodies through Caddy and the tunnel, caching of/media. - The upgrade of the existing deployment on m4mm (described in
DEPLOYMENT.md, never executed),node:sqliteon the node's Node version, PM2 with the worker, ffmpeg from Homebrew on the node. - Real video: lecture-length or 4K masters, multi-gigabyte uploads, encode times, the timeout path of a stuck ffmpeg, rotated or variable-frame-rate phone footage, playback of studio-produced streams in Safari.
- The live course repository: sync was tested on fixture repositories; the real one was not imported through the studio in this pass.
- Two editors working at once; two workers at once; a scheduled publication reaching its time on a running server; behaviour after days of uptime.
- The studio in Safari and Firefox (Chromium only), on a phone (tablet width only), with a screen reader.
- Response times now that public pages are rendered on demand.
7. Decisions waiting for the owner (blocked items)
- Licence of the course — now recorded in the studio (Cours et plan); until then no download is offered.
- Review of S01–S08 before any publication (they are drafts / preview in the seed).
- Theme tags of unpublished sessions, diagram library, learning paths and landing copy, contact addresses, gateway log retention: unchanged from the first pass.
- Wording of
/confidentialite: it says « aucun témoin », true for learners; the studio sets a session cookie for signed-in editors under/admin. Mention it or not. - Roles: who, besides the owner, gets a publisher or author role.
- Backup policy: schedule, retention, where the off-node copy of
masters/goes. - Storage budget (
ATLAS_QUOTA_GB) and whether 4K masters should be delivered above 1080p (ATLAS_LADDER). - ffmpeg on the production node (not installed, per the lead).
8. Next actions
- Lead: upgrade the deployment (
DEPLOYMENT.mdrunbook), install ffmpeg on the node, enrol the owner's passkey on a real device. - First real recording end to end: upload through the gateway, encode, captions, publish, play on iPhone/iPad; measure sizes and times.
- Schedule backups with an off-node copy; rehearse a restore on the node.
- Then Phase 5 remainder: monitoring and alerting, load test of on-demand rendering, purge tool for unreferenced media, worker sandboxing, studio checks in Safari and with a screen reader.