Sven (AAMOS AI)
|
cb493010d0
|
3c: partial consumption + undo for cooking sessions
- Append-only undo via correction transactions tied to cookingSessionId.
- POST /v1/cooking-sessions/:id/undo with 24h UTC window (409 + i18n after expiry).
- Complete undo scope: meals removed, meal boxes discarded, recipe_cooks
deleted, cookCount decremented; activation milestones left intact.
- Deterministic assumption-profile rollback via lastSessionAnswers.sessionId;
profile deleted when observationCount reaches 0.
- New status 'undone' as TEXT validated against COOKING_SESSION_STATUSES.
- Analytics event cooking_session_undone + domain events MEAL_BOX_DISCARDED,
MEAL_REMOVED, COOKING_SESSION_UNDONE.
- Partial consumption uses actualPortionsEaten/plannedPortions factor.
- i18n coverage for cooked.undoWindowExpired across all 12 locales + server.
- Invariant tests: computeBalance(transactions) === item.quantity after
complete, undo, and undo + new complete; transaction count increases on undo.
- Migration 0014_expand_event_types.sql adds new enum values.
- Updated FAS3-COOKING-SESSIONS-AUDIT.md with chosen semantics.
|
2026-08-07 05:47:54 +07:00 |
|
Sven (AAMOS AI)
|
e46281b9b5
|
Fas 3 steg 3b: minimala efterfrågor + hushållsantagandeprofiler per ingrediens
|
2026-08-07 03:56:41 +07:00 |
|
Sven (AAMOS AI)
|
e9fb4a17d4
|
Fas 3 steg 3a: cooking_sessions-tabell + lifecycle-endpoints + timeout-jobb, gamla /cook kvar som kortkommando
|
2026-08-07 03:14:13 +07:00 |
|
Sven (AAMOS AI)
|
4a4f448e1c
|
Fas 2 steg 5: Scan-to-scan-diff + konfliktlösning, samt buggfix depleted-transaktion i reconciliation
|
2026-08-07 01:30:31 +07:00 |
|
Sven (AAMOS AI)
|
bcf932d2ff
|
Fas 2 steg 2: Inventory Trust Engine - decay-profiler och cache-jobb
|
2026-08-06 23:25:32 +07:00 |
|
Sven (AAMOS AI)
|
8ae4bf6ec3
|
Fas 2 steg 1: Inventory Trust Engine - trust states pa inventory_items
|
2026-08-06 23:01:43 +07:00 |
|
Sven (AAMOS AI)
|
3696aadf98
|
Hermetiska integrationstester + auto-hushall i onboarding (size, i18n, locations)
|
2026-08-06 22:06:11 +07:00 |
|
Sven (AAMOS AI)
|
bd8df59138
|
Fas 1b punkt 6: First Scan Coach + aktiveringsmätning
|
2026-08-06 04:14:49 +07:00 |
|
Sven (AAMOS AI)
|
b2b6601f54
|
Fas 1a punkt 3+4: worker-härdning (DLQ, larm, multi-instance), AAMOS training export
|
2026-08-05 23:32:18 +07:00 |
|
Sven (AAMOS AI)
|
d1455fb581
|
Fas 1a punkt 2: release_gates tabell + go/no-go-vy
|
2026-08-05 23:10:09 +07:00 |
|
Sven (AAMOS AI)
|
d627014425
|
Fas 1a: product analytics schema + GDPR controls
|
2026-08-05 19:51:37 +07:00 |
|
Sven (AAMOS AI)
|
ac5340195a
|
Initial commit (unpacked platform)
|
2026-08-05 19:21:11 +07:00 |
|