CR78: Mini-Cloud V2 gibt vier Feststellungen ab, nicht den ganzen Verlauf #19
Loading…
Reference in a new issue
No description provided.
Delete branch "cr78-mini-cloud-answer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Befund K18 (Code-Review 3). Die Antwort von „Dein eigenes Dokument“ war der ganze Verlauf; über 16 KB verwirft die Plattform sie ohne Meldung, und „Prüfen“ beurteilt die Antwort davor.
{ text: "v2", stand }, unter 200 Zeichen bei jedem Verlauf; der Zustand hält den Verlauf nicht mehr doppeltversionen) liest der Prüfer nach derselben Regelpack test(84) undpack buildgrün; keine neue Version🤖 Generated with Claude Code
https://claude.ai/code/session_01PVUe4hWqPfFUKC4KEEmcM2
The app's answer for the own document (kaputt-und-zurueck, step eigenes-dokument) was the whole version history with every text. An app's answer may have 16 KB; a larger message is dropped by the platform without a word, and "Prüfen" judges the answer before it. About 110 saves of three short sentences, 40 of a paragraph of 300 characters or one long paste were enough: the pupil restores the text and is still told to restore it. - lib/mini-cloud.ts: `v2Stand` reads a history into four facts (three sentences written, then emptied, then brought back by restoring; anything restored at all), `v2Antwort` is what the app hands in ({ text: "v2", stand }, under 200 characters whatever the history), `v2StandAus` reads an answer in both shapes. Answers stored up to 1.0.2 carry `versionen` and are judged by the same rule. - apps/mini-cloud/app.js: V2 derives its answer from the document; the state no longer holds the history a second time, and a history kept as the answer in a state saved by 1.0.2 is not handed in again. - The check asks for the same three things. Two things it said wrongly are right now: what is saved after the text is back takes nothing away (it failed with "nicht alles gelöscht"), and that line is only said to who restored without emptying; who has not written three sentences yet is told to write them (v2-keine-antwort) instead of to delete or restore. - Tests: the facts, both answer shapes, 300 saves of a long text, and lib/app.test.ts runs app.js in a page of a few lines: 120 saves (45 KB of history), the answer stays small and passes; coming back into a state of 1.0.2. Not changed: the state still holds the document with all versions (limit 64 KB: about 450 saves of three short sentences, 170 of such a paragraph; half as many before, when the state held the history twice); beyond that "Weitermachen" opens an older state. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PVUe4hWqPfFUKC4KEEmcM2