Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

Merge pull request #2019 from atomantic/next/issue-2009

[._.]/ Adam Eivy5f0e28d3a815
diff --cc .changelog/NEXT.md
index 289ba998e6,0e9cc8b6f1..5aa90f2baf
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@@ -28,9 -28,9 +28,10 @@@
- **[issue-1991] POST memory items now resurface on a spaced-repetition schedule.** Memory items (songs, poems, speeches, sequences) tracked mastery but had no review cadence — practice was entirely user-initiated, with nothing telling you *what to review today*. Each item now carries a lightweight SM-2-inspired schedule (ease, interval, next-review date): finishing a practice session reschedules the item automatically — a strong, mostly-correct session pushes the next review further out, while a miss-heavy session resets it to "due now" so it comes back around immediately. The Memory Builder gains a **Due Today (N)** banner listing what's ready for review with a one-click **Review Next**, plus a small "Due" badge on each item that's ready; the count updates the moment you finish practicing. Existing items keep working unchanged — a migration stamps every pre-existing item with a "due now" default so nothing gets stranded — and a new `GET /post/memory-items/due` endpoint lists due items most-overdue first.
- **[issue-1992] Opt-in adaptive difficulty for mental-math POST drills.** Math drill params (`steps` / `maxDigits` / `maxExponent` / estimation `tolerancePct`) were fixed values from config that never responded to how you were doing. A new **Adaptive difficulty** toggle in the Drill Configuration screen (default OFF, so existing installs are unchanged) makes each math drill nudge its primary difficulty knob from your recent scored performance: sustained high accuracy (≥90% over enough sessions) bumps it one step harder, repeated misses (≤50%) ease it back, all clamped to safe min/max bounds — and it won't move until it has enough scored samples to trust. The adjustment is a pure, unit-tested policy (`server/lib/postAdaptive.js`) applied server-side at drill-generation time, so manual config still wins whenever Adaptive is off. It's fully transparent: each math drill card shows the effective difficulty (e.g. "Adaptive: max digits 2 → 3 (harder · 94% recent)") via a new `GET /post/adaptive-preview` endpoint, so it's never a black box. (`server/lib/postAdaptive.js`, `server/services/meatspacePost.js`, `client/src/components/meatspace/post/PostDrillConfig.jsx`, Closes #1992)
- **[issue-1993] New deterministic cognitive drills — N-Back, Digit Span, and Stroop.** POST spanned math, LLM, and memory drills but was missing classic non-LLM cognitive-training exercises. A new **Cognitive** domain adds three provider-free drills: **N-Back** (1/2/3-back working-memory matching), **Digit Span** (forward/backward sequence recall), and **Stroop** (name the ink color, not the word — attention/inhibition). Each is configurable in the Drill Configuration screen, playable in both Test and Train modes via a dedicated interactive runner, scored, and saved to your training history alongside every other drill — with **zero AI provider calls**. Scoring is recomputed server-side from the generated drill (never trusting the client) using a shared 80% accuracy + 20% speed blend, and the drills are picked up by Full POST and Quick 5 Min automatically. (Closes #1993)
+- **[issue-1997] Morse Trainer now logs practice to your POST training streak, plus a new Head Copy mode.** Completing a Copy or Send round previously only updated the trainer's own `localStorage` prefs (Koch level, best round) — it never touched POST's training log, so Morse practice was invisible to the rest of the app. Every completed round/check now logs to the same training log other POST training-mode drills use, and the Settings panel shows your training streak plus Morse-specific sessions-logged/accuracy right next to the existing Koch-level readout. Also ships a new **Head Copy** mode alongside Copy and Send: identical Koch-progression practice, but with the on-screen morse-code hints and reference cheat sheet hidden, so you're copying purely from memory. Deep-linkable at `/post/morse/head-copy` and reachable from ⌘K/voice nav like the existing modes. Existing Copy/Send behavior and prefs are unchanged. (`client/src/components/meatspace/post/MorseTrainer.jsx`, `server/lib/postValidation.js`, `server/lib/navManifest.js`, Closes #1997)
- **[issue-1994] Optional daily reminder for your POST session.** POST is meant to be a daily habit, but nothing ever nudged you to actually do it. A new **Daily Reminder** toggle in the Drill Configuration screen — off by default — lets you pick a time of day; if you haven't completed a session by then, you'll get a single in-app notification reminding you, and it stays silent once you've already practiced that day. Turning it off stops all nudges immediately. No AI calls are involved, and changing the time takes effect right away without a restart. (Closes #1994)
- **[issue-2008] Cognitive drills (N-Back, Digit Span, Stroop) no longer show a "Time Limit" field that did nothing.** These three drills are self-paced/stimulus-driven and never counted down against it, unlike Mental Math and Wit & Memory drills, which genuinely do enforce their time limit. The dead field is removed from the Drill Configuration screen and drill summaries, along with the unreachable `stimulusMs`/`showMs` config pass-through (no UI ever set them — the drills always used their built-in pacing anyway). No behavior change to how the drills actually play. (Closes #2008)
+ - **[issue-2009] Hardened the N-Back / Digit Span / Stroop cognitive drills against silent scoring regressions.** The result-assembly logic that turns your answers into the `questions[]` payload the server rescores from (N-Back's off-by-one-prone target lookup, Digit Span's forward-vs-backward comparison, Stroop's ink-vs-word grading) is now covered by focused unit tests, matching the test coverage the other POST drill runners already had. No behavior change. (`client/src/components/meatspace/post/PostCognitiveDrillRunner.jsx`, Closes #2009)
- **[issue-2010] Memory drills inside a POST session now count as a review.** Practicing a memory item (Sequence or Element Flash) as part of a scored POST session previously updated your score but never touched that item's spaced-repetition schedule — so it stayed on "Due Today" even right after you'd just reviewed it, which only the dedicated Memory Builder practice screen would clear. A POST-session memory drill now advances the item's schedule the same way MemoryBuilder practice does (a strong session pushes the next review out; a miss-heavy one resets it to due-now), so "Due Today" and the review streak stay accurate no matter which screen you practiced from. (`server/services/meatspacePost.js`, `server/services/meatspacePostMemory.js`, `client/src/hooks/usePostSession.js`, Closes #2010)
## Media Generation