34 Commits
Author SHA1 Message Date
Lars 032eeb54fb Merge develop into main for production deploy.
Deploy Production / deploy (push) Successful in 40s
2026-09-08 10:07:57 +02:00
LarsandCursor af6fe55577 Allow remote detect in production until local Ollama is connected.
Deploy Development / deploy (push) Successful in 54s
Test Suite / pytest-backend (push) Successful in 2m35s
Test Suite / smoke-dev (push) Successful in 1s
Test Suite / frontend-build (push) Successful in 15s
Keep KANSHO_ENV=production and require an explicit operator flag instead of treating Prod as Development. Promote to Prod only via merge commit on main.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 10:02:28 +02:00
LarsandCursor dd7858347c Add support for handling non-identity entity types in detection logic
Deploy Development / deploy (push) Successful in 54s
Test Suite / pytest-backend (push) Successful in 2m37s
Test Suite / smoke-dev (push) Successful in 0s
Test Suite / frontend-build (push) Successful in 15s
Deploy Production / deploy (push) Successful in 43s
- Introduced a new set of non-identity entity types (FOOD, DISH, MEAL, CUISINE, FOODSTUFF, INGREDIENT) that are omitted from detection results without causing contract violations.
- Updated the `DetectionStats` class to track omitted non-identity types.
- Modified validation logic to ensure that food-related mentions are not treated as identity types, preserving the context of mentions as either PERSON or omitted.
- Enhanced tests to verify the correct handling of food homonyms and ensure that invalid entity types are recorded appropriately without causing errors.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 07:35:44 +02:00
LarsandCursor 79e4fd0d4b Load the test schema once and truncate data between files.
Deploy Development / deploy (push) Successful in 56s
Test Suite / pytest-backend (push) Successful in 2m43s
Test Suite / smoke-dev (push) Successful in 0s
Test Suite / frontend-build (push) Successful in 15s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 15:07:33 +02:00
LarsandCursor 3c0213ae74 Isolate pytest env per file so fail-closed and setup stay script-accurate.
Deploy Development / deploy (push) Successful in 50s
Test Suite / pytest-backend (push) Successful in 2m50s
Test Suite / smoke-dev (push) Successful in 0s
Test Suite / frontend-build (push) Successful in 15s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 15:00:33 +02:00
LarsandCursor 9d79e3e92f Run backend tests with pytest after Dev deploy.
Deploy Development / deploy (push) Successful in 51s
Test Suite / pytest-backend (push) Failing after 2m32s
Test Suite / smoke-dev (push) Successful in 0s
Test Suite / frontend-build (push) Successful in 15s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 14:47:04 +02:00
LarsandCursor 6ea36f7d1f Mount the Dev checkout so backend tests can read frontend sources.
Deploy Development / deploy (push) Successful in 56s
Test Suite / backend-postgres (push) Failing after 1m51s
Test Suite / frontend-build (push) Successful in 15s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 14:30:46 +02:00
LarsandCursor 36b9a2e424 Run the backend suite on Dev Postgres instead of isolated SQLite.
Deploy Development / deploy (push) Successful in 55s
Test Suite / backend-postgres (push) Failing after 7s
Test Suite / frontend-build (push) Successful in 16s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 14:28:17 +02:00
LarsandCursor 709370da93 Fix Postgres 500 after a dialogue turn by qualifying usage upsert.
Deploy Development / deploy (push) Successful in 52s
Test Suite / backend-sqlite (push) Failing after 2s
Test Suite / frontend-build (push) Successful in 15s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 14:11:38 +02:00
LarsandCursor 0ef3e3bb7a Allow SQLite import onto a freshly seeded Postgres instance.
Deploy Development / deploy (push) Successful in 58s
Test Suite / backend-sqlite (push) Failing after 2s
Test Suite / frontend-build (push) Successful in 16s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 12:50:54 +02:00
LarsandCursor ea38528ecf Fix Postgres 500s on days and entries by dropping SQLite rowid.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 12:50:53 +02:00
LarsandCursor 9d5befdde9 Fix Postgres prompt seed crashing on CASE WHEN 0/1.
Deploy Development / deploy (push) Successful in 50s
Test Suite / backend-sqlite (push) Failing after 3s
Test Suite / frontend-build (push) Successful in 15s
SQLite treats integers as booleans; a backend recreate after the API key was added hit that on every start.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 12:35:22 +02:00
LarsandCursor 07479f6a9f Add Compose, Gitea deploy, and Postgres dual-backend on develop.
Deploy Development / deploy (push) Successful in 44s
Test Suite / backend-sqlite (push) Failing after 2s
Test Suite / frontend-build (push) Successful in 23s
Use host ports 3006/8005 and 3096/8096 so Kansho does not collide with Bookstack on 3005 or the sister products.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 12:15:08 +02:00
Lars 58321f7ee7 Dateien nach "docs/architecture/functional" hochladen 2026-08-19 08:40:44 +02:00
Lars 2e594d1709 Dateien nach "docs/architecture/functional" hochladen 2026-08-19 08:40:19 +02:00
Lars f76fdbbb03 Dateien nach "docs/architecture/functional" hochladen 2026-08-19 08:39:58 +02:00
Lars c4107d5c46 Dateien nach "docs/architecture/functional" hochladen 2026-08-19 08:39:35 +02:00
Lars e448065c14 Dateien nach "docs/architecture/functional" hochladen 2026-08-19 08:39:08 +02:00
Lars f3c916fe96 docs/architecture/functional/archiv/usage_situations.md aktualisiert 2026-08-19 08:37:21 +02:00
Lars de3867c34f docs/architecture/functional/archiv/produktvision_und_produktidentitaet.md aktualisiert 2026-08-19 08:37:08 +02:00
Lars 8630e474ad docs/architecture/functional/archiv/guardrails.md aktualisiert 2026-08-19 08:36:51 +02:00
Lars abee55bf8e docs/architecture/functional/archive/guardrails.md aktualisiert 2026-08-19 08:36:19 +02:00
Lars 59e92904ab docs/architecture/functional/archiv/fachliche_zielarchitektur.md aktualisiert 2026-08-19 08:36:01 +02:00
Lars 053fa98626 Dateien nach "docs/architecture/functional" hochladen 2026-08-18 20:14:39 +02:00
Lars 61b23126e4 Dateien nach "docs/architecture/functional" hochladen 2026-08-18 17:12:40 +02:00
Lars ed90291838 Dateien nach "docs/architecture/functional" hochladen 2026-08-18 16:40:00 +02:00
Lars fc2ef37c12 vorläufe belastbare Fassung 2026-08-18 12:26:13 +02:00
Lars c52a0bd810 Dateien nach "docs/architecture/functional" hochladen 2026-08-18 12:16:03 +02:00
Lars 13653a4ed1 Dateien nach "docs/architecture/functional" hochladen 2026-08-18 12:10:41 +02:00
Lars cd2fb4c4ea Dateien nach "docs/architecture/functional" hochladen 2026-08-18 12:03:44 +02:00
Lars aa86b25ecd Dateien nach "docs/architecture/functional" hochladen 2026-08-18 12:03:04 +02:00
Lars a3b9e66ed1 Dateien nach "docs/architecture/functional" hochladen 2026-08-18 11:55:41 +02:00
Lars 2115ac5758 Dateien nach "docs/architecture/functional" hochladen 2026-08-18 11:49:21 +02:00
Lars d730dad761 Dateien nach "docs/architecture/functional" hochladen 2026-08-18 11:24:14 +02:00