* fix(deploy): post-deploy smoke checks fragheidi.ch; sender and caption no longer lead with the old host
scripts/smoke.sh defaulted to heidi.orangecat.ch, which now answers 301, so the
smoke step after a deploy read 301 where it expects 307/200 and failed the job.
The sender list tries fragheidi.ch first (used only once the mail service says
it is verified). The care-shift video caption no longer names the old host.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(shell): footer language list keeps the page being read
On a phone the footer list is the only language control, and it sent people to
the other language's start page. It now links to the same page, as the header
switcher does.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
SITE_URL defaults to https://fragheidi.ch (canonical, sitemap, share image,
mail links). heidi.orangecat.ch still serves and is a trusted origin; accounts
stay anchored to AUTH_URL until the new address is registered for sign-in
through OrangeCat.
White paper: counted stat strip, six figures, and its data section corrected
(account sync, the one recording sent on a tap). Home: the loop as a path and
the care recording. Method: rules in columns, the loop as a path, a closing
action. Technology: error-rate bars. Roadmap: Heidi Plus and practising
together are no longer listed as the future. A credited photograph beside the
title of six pages.
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-authored-by: forge merge bridge <forge@git.orangecat.ch>
* feat(situations): a line may name a convention, held to a source
What a line does beyond its words, as an id on the line whose sentence is in
the seven dictionaries: shown after a heard line is answered, above a line the
learner builds, and on the scene's list of lines with its sources linked.
Two conventions on four lines: a polite question from whoever hands out the
work is the assignment; an order is put as a wish. Each names sources opened
for it. The contract suite refuses an unknown id, a convention on a line of
the other direction, one without a source and one no line carries.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* wip(review): a native speaker says a line and sends it
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* feat(review): a native speaker says a line and sends it; approved voices play on the list of lines
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(review): say that a recording was taken back; audit reads the declared upload size
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(audit): the recording walk measures the uploaded audio in the page
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(course): line_recordings is not a course table
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* feat(culture): one page for what is usual here, in the menu after the situations
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(audit): the layout walk covers /culture, a scene's lines and the review page
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-authored-by: forge merge bridge <forge@git.orangecat.ch>
A page opened on the other known host is forwarded (307) to the same page on
the site address, so a session and the OrangeCat sign-in live on one host.
OrangeCat returns a sign-in to the callback under SITE_URL, so a sign-in
started on fragheidi.ch came back on heidi.orangecat.ch. /api is not forwarded.
The direction turns by itself when the site address moves.
Claude-Session: https://claude.ai/code/session_019MDtmvpeooPdhaMzD9pnjX
Co-authored-by: Claude <noreply@anthropic.com>
* CTAs speak as a command to the learner: «Frag Heidi»
Buttons and links that start an action are imperatives addressed to the
learner (owner's decision), so the brand phrase, the domain and the buttons
say the same thing: «Frag Heidi» (was «Heidi fragen»), «Frag Heidi, warum»,
«Entdecke die Situationen», «Fang an», «Probier es aus», «Erstell dein
Gratis-Konto», and the home, chat, plans, warm-up, practice, play, groups,
languages and organisations doors alike. du-form in German (Sie kept on the
organisations page, which addresses organisations as Sie), tu in fr/it,
ti in rm, ты in ru; English only «Create your free account».
Swiss German changes only where the imperative has a source: «Frag d Heidi»
(verb «frage» in the gsw-zh pack; imperative «frag» in Wiktionary's Zurich
conjugation table), «Lueg … aa» and «Mach …» (the pack's imperative topic).
Other gsw labels keep their infinitives.
Single-word tab-like labels («Üben», «Starten») and status texts unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* gsw: «Frög d Heidi» (Zurich imperative of fröge)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Heidi Max next to Heidi Plus; owner payment settings and «Stripe einrichten»
- paykit 0.7.0. One tier answer (lib/pay/tier.ts: free | plus | max from the
entitlement's plan id; the one-time pass counts as plus), read by the caps
(capsFor, HEIDI_CAP_MAX_*; Max defaults to 3x Plus), the model route
(chainFor: HEIDI_MAX_MODELS first, else exactly the Plus route) and the
Rückblick (REVIEW_EVERY_DAYS_BY_TIER: max 7, plus/free 30).
- /plans: Free | Plus | Max | own key | Organisations on PlanPicker, Max
priced from HEIDI_MAX_* (no price in code); review step per plan; without
payment switched on the review says so instead of a pay button; a Stripe
TEST key shows «Testmodus».
- Back office Geld -> «Zahlungen» (/manage/money/payments): eight prices,
sales, Stripe key and webhook secret in pay_settings (migration 0035),
secrets sealed and never sent to the page; stored value over env over off.
- «Stripe einrichten»: makes or finds Products/Prices, the customer-portal
configuration (cancel, card, switch Plus/Max) and the webhook endpoint,
storing its signing secret; idempotent, one result per step.
- Webhook reads the plan from the subscription's Price, so portal switches
move the tier.
- Words in all seven dictionaries; changelog 2026-12-03.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Paid allowances never below the tier below; Plus and Max cards list them
- caps.ts: every paid allowance is at least the tier below (daily with 0 as
no count; Plus dictation per 30 days at least free's daily x 30). Plus daily
defaults to 3x free (300), Max to 3x Plus (900); voice 1200/3600 s.
- plan-cards.ts: one paidBenefits shape for Plus and Max from capsFor:
questions a day, Heidi's voice minutes, dictations per 30 days, the
Rückblick rhythm, then Max's two «bald» lines, then «Alles aus …».
The free card says Heidi's own voice comes with Plus and Max.
- All seven dictionaries; changelog lines for the fix.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
---------
Co-authored-by: Claude <noreply@anthropic.com>
* CTAs speak as a command to the learner: «Frag Heidi»
Buttons and links that start an action are imperatives addressed to the
learner (owner's decision), so the brand phrase, the domain and the buttons
say the same thing: «Frag Heidi» (was «Heidi fragen»), «Frag Heidi, warum»,
«Entdecke die Situationen», «Fang an», «Probier es aus», «Erstell dein
Gratis-Konto», and the home, chat, plans, warm-up, practice, play, groups,
languages and organisations doors alike. du-form in German (Sie kept on the
organisations page, which addresses organisations as Sie), tu in fr/it,
ti in rm, ты in ru; English only «Create your free account».
Swiss German changes only where the imperative has a source: «Frag d Heidi»
(verb «frage» in the gsw-zh pack; imperative «frag» in Wiktionary's Zurich
conjugation table), «Lueg … aa» and «Mach …» (the pack's imperative topic).
Other gsw labels keep their infinitives.
Single-word tab-like labels («Üben», «Starten») and status texts unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* gsw: «Frög d Heidi» (Zurich imperative of fröge)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
---------
Co-authored-by: Claude <noreply@anthropic.com>
* Practice: choose or type, one switch above every question
A remembered habit (heidi.practice.habit.v2) decides, for each word that
has both, whether its meaning is chosen or its sentence typed. A flip
swaps the questions still ahead one for one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Practice: a word typed right comes back later than one chosen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Practice: one hardness number for every question
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Plans: your own AI key is offered, and the pass card says what a pass is
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Knowledge map: a deterministic layout, and every node's state from the ledger
lib/visual/knowledge-map is the first knowledge-map layout in the fleet,
written to be extracted: plain data in, coordinates out, no app imports.
Clusters packed into columns, nodes in rows under each cluster's name,
labels wrapped with the real font's widths; no two cells meet, so no two
labels can, at 320px as at 1280px. Same input, same picture.
lib/domain/progress reads where a learner stands on every situation, grammar
topic and word group (not started / started / shaky / solid / mastered) from
the learner model, the review memory and the situation readings the
situation pages already use, and orders the few lines worth acting on:
the learner's own situations first, then new ones in their areas, then what
wobbles, then the words that keep slipping. Nothing is counted in advance.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* «Was du kannst»: the map page, the weak-spots card, and the ways to it
/[locale]/progress draws the whole course as a map coloured by the
learner's own answers, with a legend and one motion (what is known fills
in, off under reduced motion). Tapping a node opens a sheet with what it
is, the numbers (asked, right, last seen, due) and «Üben», «Bis es sitzt»
(goal=nail), and for a situation «Situation starten»; an area's name opens
its situations and practises the whole area (module=…). Works signed out
from this device and signed in with the synced views; with no data it is
the course, not started, and where to begin.
The card «Was sitzt, was fehlt» is on the personal page and above the
map; /practice links to the map; the avatar menu lists it. Personal and
noindex like settings, so not in the sitemap. Strings in all seven
dictionaries; the responsive audit measures /progress.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Practice: an area scope, «Nail it», hardest first, and nothing right today asked again
- module=<area>: every scene of one situation area (care, hospitals, ...) and the words said in them; subjects=<list>: named words and lines, for the weak spots.
- goal=nail (nail.ts): a drill over a scope until each question is right twice in a row, the second at least three questions later and in the typed form where a word has one; a miss comes back after two to four others; at most 30 subjects, hardest not-known first.
- order=hard: hardest first by hardness(); «Harder» prefers the harder question inside its band.
- A sitting's order is shuffled (order.ts), never the same subject back to back and the same kind only where unavoidable; cards keep their most-heard-first order.
- Answered right today and not wrong today, on any screen (stats now date every wrong answer): not new again today in a sitting; read instead of asked in a situation run (withKnownRead), unless its review is due.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Play together: a challenge link and a live round
A challenge is ten fixed questions behind a link (/play/c/<id>): the same
questions in the same order with the same option order for everyone, a
nickname and no account, marked on the server, and a board of names, right
answers and times. It is kept 30 days, and expired ones are removed when
somebody next touches the table.
A live round is a host screen (/play/host) with a six-digit code and a QR
code, players on their phones (/play?code=), 20 seconds a question, points
for right plus speed, counts per option on the host's screen, a short board
on the phones and a podium. Realtime is short polling against Postgres: one
primary-key read with a version, 204 when nothing moved. At most 50 players
per room; a room is gone two hours after its last move, checked on access.
Host actions need the host secret kept on the host's device; creating rooms
and joining are limited with limitkit; nicknames are cleaned, capped at 24
and only ever rendered as text.
Five new tables (migration 0033), two privacy flows, the strings in all
seven languages, one section on /practice and one button at the end of a
sitting.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Practice: wrong answers a German reader cannot see through, and «Find the German word»
A harness (scripts/audit/options.ts, not shipped) measures how often a
reader who knows no Zurich German answers each chosen-answer question by
looks alone: most like the prompt, least like it, odd shape, longest.
options.test.ts holds the rates near chance.
- «Say it in Zurich German» (run): the wrong lines are the right line with
one word changed: a Standard German word from the pack's leaks or the
course's own cognate pairs, a form the pack places elsewhere, or an
article the noun never takes. By looks: 99% -> 32%. Other lines only
where a line has fewer than two such changes.
- Look-alikes skip Zurich words that stand for two standard words (bi:
bin/bei, wänn: wann/wenn) and course pairs that are not cognates, so a
planted word is certainly not Zurich German.
- «Stimmt das?»: a false claim is a near miss of the line's meaning
(near-miss.ts), never another line; no near miss, no false claim.
By resemblance: 96% -> 64%.
- «What is meant?»: more near-miss meanings (modals, Herr/Frau, times,
places, colours...), the closest first. Lines with one: 21% -> 42%.
- Cognates («gah», gehen) are asked from German with real course words
as the other options; the rest by meaning, with distractors as alike
as the answer (resembles: letters and consonant skeleton).
- Options, banks and columns are laid out from a seed per sitting and
the question id (present.ts), one helper for practice and the runs.
- hardness.ts counts giveaways, confusable options and odds; a cognate
asked from Zurich rates easier than the same word asked from German.
- New kind «Find the German word» (spot): a course line with one word in
Standard German, tap the word; the answer shows the Zurich word and the
line. Strings in all seven languages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Questions: «Tschüss» is never offered as the certainly-wrong German word
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Exercises: read before moving on, and tap the words instead of typing
The moment after an answer (exercises/chrome.tsx, useMoveOn):
- a right answer shows the whole line where the question showed part of it,
its meaning and the reason, then moves on after a beat as long as that
text: 1.3 s + 45 ms a character, at most 6 s (move-on.ts);
- a touch, wheel or focus on the session screen, or «Anhalten» beside
«Weiter», holds it: the bar fades and the control reads «Angehalten» in
the same box, so nothing moves; Enter or Space continues;
- a wrong answer or a skip never moves on;
- «Von selbst weiter: An | Aus» in the sitting's sheet, remembered on the
device (heidi.practice.move-on.v1, person-level, on the privacy page);
- reduced motion: no draining bar, the seconds are counted on «Weiter».
The situation run's follow steps use the same hook and controls, and the
run now has the same sheet behind the sliders.
Tap instead of type (tiles.ts, exercises/tiles.tsx, answer-how.tsx):
- every translate question can be built from tiles: its own words plus two
or three real course words from the same scene, topic or word group,
look-alikes first; marked against the course line (case and punctuation
ignored), typed answers stay self-marked;
- the build kind's tile UI is now TileAnswer, shared by both;
- the habit is «Wählen | Antippen | Tippen»; old stored values stay valid;
on a typed question it is that question's switch, and «Wählen» is not
offered where there is no meaning question;
- the run's «Lieber schreiben» link is the same «Wörter antippen | Tippen»
switch, above the question;
- tiles are recorded as mode "tap": not typed, not scheduled as recalled.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Heidi Plus: a subscription that renews, monthly or yearly, with an intro price
The one-time pass becomes «Heidi Plus»: a monthly plan that renews until
cancelled, a yearly one at a saving, and an optional lower price for the
first months, through Stripe (paykit 0.6 `stripeBilling`). The pass stays,
offered below as «Lieber einmal zahlen?».
- /plans is paykit's PlanPicker: Free | Heidi Plus (recommended) | Eigener
KI-Schlüssel | Organisationen. The own-key tier is CHF 0 to Heidi, names
the providers from ai-kit's BYOK_VENDORS and leads to /settings#model; the
old own-key section is gone. Without prices, Plus is «Bald verfügbar» with
the notify form.
- A review step before Stripe (paykit's PlanReview): summary, notes, the
account, the renewal box that must be ticked (Heidi has no terms page, so
no terms box), the practice reminders as an optional box, and an active
pass or subscription shown with «Abo verwalten» instead of a second one.
- Prices only from HEIDI_PLUS_MONTH_CHF, HEIDI_PLUS_YEAR_CHF,
HEIDI_PLUS_INTRO_CHF, HEIDI_PLUS_INTRO_MONTHS; the proposal is on
/owner/payments and in .env.example, marked as one.
- Stripe webhook: subscription events verified, handled once by event id
(pay_events), the record in pay_subscriptions (migration 0034). A paid
period moves the same entitlements row a pass uses, never back.
- Settings: «Abo verwalten» opens Stripe's portal, with the status line
(renews / ends / payment failed / ended).
- Deleting the account cancels the subscription at Stripe first.
- Privacy: the passPayments flow names the subscription, its tables and the
email Stripe receives; the flows have anchors.
- Strings in all seven languages.
package.json asks for @bitbaum/paykit ^0.6.0; the lockfile follows once it
is published.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Play together: «Find the German word» can be played; the said-too list lives in the packs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Practice: «Was willst du üben?» on /practice and the personal page; «Bis es sitzt» drills
- The builder: what (everything, words, forms and grammar, a situation, an area, my weak spots), which (a searchable list, each row with the learner's state: not started, in progress, strong), how (quick round, Nail it, test; hardest first). It opens a URL of the sitting contract.
- A «Nail it» sitting shows «12 of 20 nailed», says when the drill took only the hardest 30, and ends with a short summary; it resumes where it was left.
- A situation run shows a line answered right today as a line to read.
- «Bis es sitzt üben» on every situation page and grammar topic page with questions.
- Strings in all seven dictionaries.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* «Which one is Zurich German?»: a wrong article names its noun; a form Zurich speakers use is never planted as wrong (tested)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Session bar: progress keeps its room, repeats shorten below 380px; audit measures the new answer moment
The top bar's progress bar keeps a minimum width, and the «+1 repeat» note
collapses to «+1 ↻» on the narrowest phones so 2/8 never pushes it off.
The responsive audit gains ONLY= to narrow to changed pages, measures a held
run step, measures a typed question as tiles before switching to typing,
and answers the meaning gate (after hydration) where a language shows it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Situation run: the reason for each wrong line is shown once, with the article's noun
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Situation run: what a step asks is the sitting's own small line above the question (one shape with practice)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Changelog 2026-12-03: the exercise revamp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Plan test: new questions per sitting checked over 40 learners, not one lucky seed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* /practice: one picker — the quick round's mix sits under «Was willst du üben?» without a second «what / test» row
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Changelog 2026-12-03: plans (Free, Heidi Plus, own AI key, Organisations)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Lockfile: @bitbaum/paykit 0.6.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Heidi: «Was du kannst» answers next step, standing per area, what to do inside
The knowledge map (unlabelled dots in rows, lines that meant nothing) is
replaced by a page that answers, in order: one next step with its reason
and one black button; per area a segmented bar of lines that sit, wobble
and were never asked, with untouched areas collapsed to one line; inside
an area every situation, topic or word group with its bar, status word
and the action that fits it, sorted by what to do next.
The step comes from a pure planOf (lib/domain/progress/plan.ts) that the
personal page's card uses too, so the two never disagree. The map layout
module, its tests and the weak-spots card are removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Questions: one standard for practice, runs and play
Every question now passes the same five rules, written down in code in
lib/domain/questions/standard.ts and checked by tests:
1. Ask only what a German reader doesn't get for free. A line that can be
read straight off its German is read, not asked. «Chasch mer schnäll
hälfe?» is now a line to read.
2. Wrong options are the same kind of thing as the answer. «mir» is offered
with «wir», «uns» and «euch», never with «nirgends» or «übermorgen». The
reading shelf no longer fills a short list with words of another kind.
3. A question must not be solvable without knowing Zurich German. Seven
solvers that don't know the language (look-alike, longest, odd one out
and others) may beat chance by at most 15 points per kind; balance()
drops the questions that let them do better.
4. Feedback gives the rule, other lines with the same word, and a line
where the word means something else. A later line of the run asks the
word again (transfer).
5. Hardness is real: it is measured from the options.
Homographs: a word whose meaning depends on the line is asked only when
the line's German proves the taught meaning (provesMeaning). The «wo» cue
", wo" matched «Ah, wo denn?», where «wo» is the question word. That cue
is gone, and comma cues now end at a word boundary. This removes 5 false
proofs, including «wohin». The sourced Einsiedeln text now asks «cho».
Close is not wrong: choosing a look-alike that differs only by a form said
in another Swiss region («geit», Bern) gets «Fast», with where that form
is said. It is scheduled as FSRS «hard», not as a lapse. One rule,
lookalikeVerdict, decides this. A Standard German word stays wrong.
Questions are now chosen from ASKED_ITEMS, the items that meet the
standard. PACK_ITEMS still holds everything, so stored progress, glosses
and reminders keep working.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Questions: rules that are rules, fair German-first words, spot, transfer
- A rule line appears only where there is a rule. The line «Merk es dir im
Satz…» shown under every plain word is gone (ruleOf in
questions/standard.ts). «mir» and «si» now carry how their line tells the
two meanings apart (homograph-role, homograph-modal), with examples taken
from course lines, in all seven languages. The pack names which rule
applies to which homograph.
- Asked from German: wrong options come from the word's own group, are
never rude, and look as much like the German word as the answer does. If
the answer is the only word that looks like the German one, the word is
not asked. Balance no longer keeps a kind's last question when a solver
wins it.
- Spot never plants a mere spelling of the Zurich word («bestelle» for
«bstelle», «gehört» for «ghört»). It never plants a lone word ending in
«-en» either, since that can be found by its ending alone. The word is
quoted without its punctuation.
- Transfer: a run asks a word at most twice. A homograph's second question
goes to a later line that uses the other meaning, when the part has one
(«bi mir» after «Mir händ…»). A contrast question is never the first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
---------
Co-authored-by: Claude <noreply@anthropic.com>
* feat(profile): known languages in the word-distance engine
A word may carry its kin: the word of another language a learner knows
(KinRegister on the pack, 15 checked rows for fr, it, en). The profile row
«Weitere Sprachen» holds which they know; such a word is level 1 for them,
joins the guessable block of the vocabulary list and is named under the
answer; a known word that misleads is level 3 with a warning. Nothing
changes for a learner who ticks nothing.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(vocabulary): say why a known word is guessable, and name it on a turned card
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(variety): the projection allow-list names the kin fields
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* docs(changelog): both entries of the day
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
A `skill` scope (`?skill=forms`, `articles`, `sounds`): every question that
tests one thing, across all words and situations. The practice page offers
the three drills with their counts; the weak-points panel puts a drill first
when that kind of question keeps going wrong; Heidi's review proposes it ahead
of single topics from 8 answers with 30% missed.
The review's reading is written the Swiss way: an ß a model wrote becomes ss.
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* feat(coach): «Heidis Rückblick», a review the learner asks for, once a week at most
A review of the learner's own practice record, on the personal page. It runs
only on its button and not again for seven days: no timer, no page load and
no end of a sitting starts it.
- Facts are counted by plain code from the learner model (topics and
situations missed most, what is due, how hard the questions were).
- Proposals are a closed list built from those facts: a grammar topic by
itself, a situation again, the due reviews, one step easier or harder.
- One model call (`/api/coach`, free models or the learner's own key) gets
counts and names and returns two or three sentences and an order; an id it
made up is dropped. In gsw the sentences pass the variety check or are not
shown.
- An account is counted per week in `usage_meter` (kind `coach-reviews`);
without one the learner's record holds the date and a caller gets two a day.
- Without a model the same proposals show with a dictionary sentence.
- Declared on the privacy page (`pathReview`).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(coach): the variety's name comes from the pack, not from the prompt
lib/variety/leak.test.ts refused the review prompt naming the variety and the
route comparing against its locale code. Both read the pack now.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
«Wofür lernst du?» took one answer, so a nurse with a child at school had to
say which of the two she was, and the setup was seven questions in a line.
- Reasons are a set (`reasons`; a stored single `reason` reads as a list of one).
- The situations question is the reasons' follow-up: it shows the scenes that
serve the reasons given and folds every other one under «Weitere Situationen».
- Giving or dropping a reason moves exactly its scenes (`situationsAfter`);
what the learner or another reason chose stays.
- The setup is reasons, situations, German level, warm-up. Weekly goal,
reminders and interests are rows of the profile, answered where they stand.
- The summary's rows open their question in place (`EditableProfileRows`,
shared with the card on the personal page).
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Signed in, stored-on and on-by-default read «Saved with your account» with a quiet «Keep on this device only» link; no stored choice reads as the device-only line with a quiet «Save with the account» link. Stored choices and storage are unchanged.
Co-authored-by: Claude <noreply@anthropic.com>
- hide the bottom bar on /plans and /settings
- pass card shows a number only where it beats Free's; no voice claim, no 'pass route'
- Free card names itself once
- Plans near the top of the phone menu
- Settings > Privacy: one where-to-keep control plus a separate delete
- de/gsw/ru nav label no longer says prices
Co-authored-by: Claude <noreply@anthropic.com>
- /[locale]/plans: Free, Heidi Pass (highlighted), Organisations; 30 days | 1 year
toggle with a saving badge computed from the env prices; questions a day read
from lib/config/caps.ts; no price while sales are off, "Coming soon, get
notified" keeps an address in the new pass_interest table (migration 0032).
- /pass redirects to /plans; the code field is under "Have a code?".
- Four first-party counts in usage_counts: plans views, sign-ups started,
checkouts started, passes paid.
- Signed-out home: one primary "See plans".
- "Keep on this device only" moves from My space to Settings > Privacy.
- Header, phone menu and footer link "Plans".
Co-authored-by: Claude <noreply@anthropic.com>
- POST /api/pay/checkout: 503 off right after sign-in while sales are off or no price is set, before the rate limit and any body validation
- pass lead split into lead / leadVoice / leadSame / leadModel; the voice sentence shows only when serverVoiceConfigured()
- POST /api/pay/redeem: unknown code answers 200 {ok:false,error:'unknown-code'} instead of 404; same UI message
Co-authored-by: Claude <noreply@anthropic.com>
- paykit ^0.4.0 -> ^0.5.0 (the local Stripe copy was already gone); Stripe stays off
- HEIDI_SALES_ENABLED master switch, default off: not-on-sale state, checkout 503, no invoice; an invoice made while on still settles
- usage caps per person in Postgres: shared chat+speaking daily count, pass-period server voice seconds and dictation clips, free daily dictation (migration 0031_usage_meter, additive)
- separate pass model route by env (HEIDI_PASS_GROQ_API_KEY/_MODELS), default = free chain
- one primary button on /pass; pass copy no longer promises triple allowance
- docs/payments.md, .env.example, owner checklist updated
Co-authored-by: Claude <noreply@anthropic.com>
Gemini TTS is a paid call: refused unless AI_PAID_DISABLED=0 and
HEIDI_AI_PAID_OK=1, counted in ai-kit's spend ledger and usage log, and
/api/speak answers 503 with fallback so the page uses the browser voice.
Co-authored-by: Claude <noreply@anthropic.com>
* fix(chat): «Chunnsch au no verbi» keeps its «too»; no «checked» claim when nothing was checked
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(speaking): say which language to speak beside a task
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(warmup): opener asks in du; the English gloss switch turns itself off
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(auth): no /api/progress call signed out; 44px create-account link; honest shared sign-in label
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(listen): the contents strip no longer repeats the first heading
Co-Authored-By: Claude <noreply@anthropic.com>
* Organisation pages answer a manager: «Sie», six questions, a minute of the real app
German organisation and sector copy says «Sie» (the one named exception to
«du», held both ways by tests). The two zeros (read by native speakers,
recorded) are said in words as the first step of a pilot. «Was eine Leitung
wissen will» answers cost, time, what a manager sees, where the data is, who
is behind it and what if it does not help, each from a fact held in code. The
care page shows a 65-second screen recording of the live app. Sign-up says
what an account gives, in seven languages.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* docs(changelog): the nine faults of 2 December
Co-Authored-By: Claude <noreply@anthropic.com>
* docs: keep model names out of comments
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(test): suggestions in checked.test carry english
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(auth): the Swiss German sign-in label is in the written standard, like every form
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Practice plan step 4.
- memory.ts: FSRS-5 (formulas and default weights from ts-fsrs 6.0.1, MIT)
replaces the fixed 1/3/7/16/35-day ladder. Cards gain optional s, d, n;
an old card's stability is read from the interval it was given, so no
schedule is lost. Max interval 180 days. Ratings: miss = again, right
chosen = good, right typed = easy (when the caller says so).
- todayCount: at most REVIEWS_PER_DAY (24) less today's reviews; the
dashboard, profile, start card and reminder mail show it, not the pile.
- newShareFor: a sitting's new-question share shrinks once the pile is
over a day's cap and stops at two days'.
- difficulty.ts: the level keeps first-try success between 70% and 90%,
aimed at 80% (a starting target from a model result, Wilson et al. 2019).
- schedule.test.ts: twelve simulated weeks; weekly pile 20..56, max 69
(the ladder: 35..917).
- "N to review today" wording in all seven dictionaries.
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: forge merge bridge <forge@git.orangecat.ch>
The profile offers five more interests (food and cooking, family, work,
nature and weather, games and anime). Each interest has a field of the
course's own words and scenes, a hand list in the pack held by a test to
the vocabulary and the situations; a field under twelve words says so.
The reading page's «Zu deinen Themen» shows the field, links a practice
run of it, and on a press asks /api/reading/write for 5-8 sentences on
the topic or retelling the news of the day from SRF's public RSS feed
(headline and link shown, the article never copied). Every text goes
through the chat's gate (purified, doubtOf, one retry with
doubtCorrection) and is refused if it still fails; it is labelled as
written by Heidi and not read by a person, and counts against the chat's
daily allowance. Passed and refused texts are counted in usage_counts and
shown on the back office's visitor path. Nothing runs on a timer.
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: forge merge bridge <forge@git.orangecat.ch>
* fix(i18n): the in-site 404 answers in the request's locale
/en/<missing> said «Diese Seite gibt es nicht» under English chrome and
sent «Zurück zum Start» to /de: not-found.tsx is handed no params, so it
read the default dictionary. Its words now come from the locale layout
(ShellWords, the pattern error.tsx already uses) and its way home from the
URL's locale. The title is «404», the same in every language. A test pins
all seven locales.
Co-Authored-By: Claude <noreply@anthropic.com>
* feat(warmup): a quiet one-tap gloss of the answers in the reader's language
/en/warmup/session asked a Zurich line with four German readings and no
English, though every reading has an English gloss. The method shows a
gloss only once the learner says their German is less than good, and the
warm-up comes before the profile asks. A text link under the options
(«Also show the answers in English») is that answer, «some»: the German
stays and the gloss is added. The Zurich line is never glossed; it is the
question. Shown only where the interface language has glosses.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(chat): the home page's example and its words are known material
/en/chat answered the home page's own example, «Chunnsch au no verbi?»,
with "Do you also still verb?". The grounding (#400) hands the model the
situation lines and vocabulary a message uses, but the showcase line is in
no situation and «verbi» in no word list, so nothing was known about it.
The pack's showcase now carries its meaning (the home page's) and its
words one by one (verbi = vorbei), and `grounding` counts them like a
situation line and like vocabulary, naming a word once. A test pins what
the model is told for the showcase, the small words (gäll, öppis, hüt …)
and every dialect example the chat offers; no model is called.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(situations): «Start» no longer moves under the pointer
The scene's words rose 14px over 0.7s as the page came in, and a run to
resume added «Start over» under the button of a foot-aligned scene, which
pushed the button up. The words now fade, and the row under the button is
always reserved. Measured at 390px and 1280px: the button holds its place
from first paint (one 1px settle on a phone as the dock reports its height).
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(situations): a run's step is «Understand», not «Listening»
Nothing in a run plays audio: no recordings of these lines exist, and §6
allows dialect sound only from a recorded person, never a device voice.
«Listening», «You hear» and «… you hear» now say what the step is, in all
seven languages. A test fails if a run step starts playing audio, at which
point the words may say hear again.
Co-Authored-By: Claude <noreply@anthropic.com>
* docs(changelog): five faults found walking the English site
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Meaning questions ranked their wrong options by list position, so the right
answer was usually the one that looked like the word: a solver that knows no
Zurich German and picks the look-alike was right on 71% (chance 25%). Wrong
options are now the glosses that look most like the word, and a question whose
answer still gives itself away is not asked. The solver now gets 21%, and a
test holds it under 35%.
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
Co-authored-by: Claude <noreply@anthropic.com>
Per subject: how often asked, right, typed, time spent, last answered, and
the last wrong answer. Written in the one recorder (record.ts rule 5),
stored in the browser, synced as a summed progress key, shown on a word's
page in all seven languages, declared on the privacy page.
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
Co-authored-by: Claude <noreply@anthropic.com>
Beside the free models and the reader's own key, chatkit's sheet now shows
the pass with the pass page's own words (three times as much, a stronger
model whenever one is available) and leads to /pass. A reader who holds a
pass is told so instead (GET /api/pay/state, which reads nothing without a
session cookie). Every place the sheet opens passes the link.
Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz
Co-authored-by: Claude <noreply@anthropic.com>
lib/i18n/locales.ts takes the list, names, BCP-47 tags and the
Accept-Language guess from @bitbaum/langkit 0.2.0; the switcher groups,
order, short labels and explanation languages stay Heidi's.
Nothing a visitor sees changed: langkit.test.ts pins names and tags to
their old values and compares the guess with the old one on nineteen real
headers. Two fixes: a space before q= ("it; q=0.9") matched no language
and showed German; a language marked q=0 could be chosen. The same test
runs langkit's check over the seven dictionaries (2,435 messages each:
placeholders, no ß in de/gsw).
Checked on a production build: first-visit guesses, the remembered
choice, html lang per page, the seven names at 390px without overflow.
Claude-Session: https://claude.ai/code/session_019MDtmsTRGc34xnG6koVuAY
Co-authored-by: Claude <noreply@anthropic.com>
* Catch «Ich chunnsch»; pitch materials in the back office; investor figures re-counted
- The check now flags the variety's own «du» form after «ich» (seen live:
«Ich chunnsch leider nöd»), from the pack's verb tables, and the repair
puts the «ich» form in. Narrow on purpose: a wider rule was wrong on
Heidi's own texts (participles, prepositions, «Du» as a word).
- Overview lists the deck, the YC application draft, the financial model
and cost per user (lib/config/pitch.ts); private until shared, and the
OrangeCat room takes the deck only once it is marked shared.
- Investor figures as of 30 Nov 2026: 387 merged PRs, 2462 tests in 270
files, the 29 Nov benchmark.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Chat follows instructions about what it just did; the transcript shows the mode
Seen 2026-12-01 in Translate: «shd bitte» came back as «Bitte schauen», and in
Talk a translated text was read as a request and declined.
- follow-up.ts: a short message made only of instruction words
(dictionaries/retarget.ts) or a chip's own message is an instruction
about the previous text: translated again into Swiss Standard German
(repairBridge applies the bridge's certain fixes), another language, or
said differently. A chip's question in Translate is answered as Talk.
- thread.ts: a translated text is marked as a text in the model's history
(TEXT_MARK), and Talk after Translate is told what that means.
- Answer.intent / Answer.sentIn; the transcript draws «Ab hier: Gespräch»
where the switch changed, and at once when it is flipped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
---------
Co-authored-by: Claude <noreply@anthropic.com>
Heidi's own copy of the rules (lib/domain/admin/people.ts, access.ts) is
replaced by the package (accountkit 0.34.0). people.ts builds
createManagers once on the app's database and keeps only Heidi's rule for
who the first admin is; the admin_invites and admin_events tables are the
package's createManagerTables(), with no migration. The People actions
catch ManagerRefusal so a refused action stays a silent no-op.
With it: the last admin stays when two admins remove each other at the
same moment (the package locks the rows before counting).
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
Co-authored-by: Claude <noreply@anthropic.com>
Each run is about thirteen calls of the free model allowance the chat lives
on, and the fleet's rule forbids background AI spend. It runs from a button
on /owner; /models says so. The hourly call keeps the reminders.
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
Co-authored-by: Claude <noreply@anthropic.com>
* Chat: what Heidi's material says about a message, before the model explains it
The chat misread lines that are in Heidi's own situations («Ab zähni isch
Nachtrueh» as a person named Zähni). The model now gets the matching
situation lines and vocabulary with their meanings first. The home example
it misread is replaced with a line from the care material.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
* Ask once how good the reader's German is, in front of the first exercise
Readers in English and the other non-German languages went straight into
exercises with German-only answers: the question lived on /practice alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
---------
Co-authored-by: Claude <noreply@anthropic.com>