CR78: Mini-Cloud V2 gibt vier Feststellungen ab, nicht den ganzen Verlauf #19

Merged
oliver.maklott merged 1 commit from cr78-mini-cloud-answer into main 2026-11-28 00:05:44 +01:00

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.

  • Antwort { text: "v2", stand }, unter 200 Zeichen bei jedem Verlauf; der Zustand hält den Verlauf nicht mehr doppelt
  • Gespeicherte Antworten bis 1.0.2 (versionen) liest der Prüfer nach derselben Regel
  • Geprüft wird dasselbe (drei Sätze, geleert, zurückgeholt). Neu: Wer danach noch einmal speichert, bleibt richtig; „nicht alles gelöscht“ hört nur, wer ohne Leeren zurückholt; unter drei Sätzen: „Schreib zuerst drei Sätze …“
  • Tests: langer Verlauf (300 Speicherungen; die App selbst mit 120 = 45 KB), beide Formen, Rückkehr in einen Zustand von 1.0.2
  • pack test (84) und pack build grün; keine neue Version
  • Offen: Der Zustand hält weiter das ganze Dokument (Grenze 64 KB)

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4hWqPfFUKC4KEEmcM2

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. - [x] Antwort `{ text: "v2", stand }`, unter 200 Zeichen bei jedem Verlauf; der Zustand hält den Verlauf nicht mehr doppelt - [x] Gespeicherte Antworten bis 1.0.2 (`versionen`) liest der Prüfer nach derselben Regel - [x] Geprüft wird dasselbe (drei Sätze, geleert, zurückgeholt). Neu: Wer danach noch einmal speichert, bleibt richtig; „nicht alles gelöscht“ hört nur, wer ohne Leeren zurückholt; unter drei Sätzen: „Schreib zuerst drei Sätze …“ - [x] Tests: langer Verlauf (300 Speicherungen; die App selbst mit 120 = 45 KB), beide Formen, Rückkehr in einen Zustand von 1.0.2 - [x] `pack test` (84) und `pack build` grün; keine neue Version - [ ] Offen: Der Zustand hält weiter das ganze Dokument (Grenze 64 KB) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4hWqPfFUKC4KEEmcM2
CR78: Mini-Cloud V2 hands in four facts about the history, not the history
All checks were successful
pack / pack (pull_request) Successful in 11s
pack / pack (push) Successful in 11s
2bb57b9c19
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
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aivopod-challenges/Meine-Cloud!19
No description provided.