agnes-the-ai-analyst/services
Petr 1318b74ff1 Add Corporate Memory governance — Phase 1 (data model + admin API)
Add admin curation layer between AI extraction and knowledge distribution.
Admins (km_admin flag in instance.yaml) can approve, reject, mandate, and
revoke knowledge items. Mandatory items distribute to all targeted users
automatically.

Three governance modes (configurable per instance):
- mandatory_only: admin controls everything, no user voting
- admin_curated: admin controls, users vote as feedback signal
- hybrid: mandatory from admin + optional from user voting

Three approval workflows:
- review_queue: nothing published without admin approval
- auto_publish: items go live immediately, admin intervenes retroactively
- threshold: confidence-based auto-publish (Phase 5)

Includes:
- 9 admin action functions (approve/reject/mandate/revoke/edit/batch/...)
- 11 new admin API endpoints under /api/corporate-memory/admin/
- Immutable audit log (audit.jsonl)
- Audience targeting via groups
- Automatic migration of existing items to "approved" status
- km_admin_required auth decorator
- 69 tests covering all governance logic
- Backward compatible: no config = legacy wiki behavior
2026-03-23 19:15:33 +01:00
..
catalog_refresh/systemd Add scheduled data sync and catalog refresh with systemd timers 2026-03-15 02:16:31 +01:00
corporate_memory Add Corporate Memory governance — Phase 1 (data model + admin API) 2026-03-23 19:15:33 +01:00
data_refresh/systemd Fix systemd NAMESPACE failures caused by missing ReadWritePaths dirs 2026-03-15 11:40:11 +01:00
session_collector Move standalone services from server/ to services/ 2026-03-09 12:54:30 +01:00
telegram_bot Move standalone services from server/ to services/ 2026-03-09 12:54:30 +01:00
ws_gateway Move standalone services from server/ to services/ 2026-03-09 12:54:30 +01:00
__init__.py Move standalone services from server/ to services/ 2026-03-09 12:54:30 +01:00