learning_ai_clock/backend/src/modules
saravanakumardb1 29a48025eb feat(agent-actions): Phase A.2 — agent action audit trail module + tests
Add agent-actions module for AI/MCP operation audit trail:

- types.ts: 3 enums (ACTOR_TYPES, ACTION_STATES, ACTION_TYPES), AgentActionDoc,
  CreateAgentActionSchema, AgentActionQuerySchema, BatchApproveSchema
- repository.ts: CRUD + batchApproveByActor using @bytelyst/datastore
- routes.ts: 5 endpoints (list, create, approve, reject, batch-approve)
  All gated behind isFeatureEnabled('agent_inbox.enabled')
- Registered cm_agent_actions container in cosmos-init.ts
- Registered agentActionRoutes in server.ts

Tests (37 new, 219 total):
- 22 agent-actions schema tests (constants, create, query, batch-approve)
- 15 timer schema tests (RescheduleTimerSchema, AvailabilityQuerySchema)

All 219 backend tests pass. No breaking changes.
2026-03-31 23:38:03 -07:00
..
agent-actions feat(agent-actions): Phase A.2 — agent action audit trail module + tests 2026-03-31 23:38:03 -07:00
households refactor(backend): remove errors.ts re-export, import @bytelyst/errors directly 2026-03-20 07:19:29 -07:00
routines feat(mcp): Phase A.1 — reschedule, availability, and start-routine endpoints 2026-03-31 23:31:04 -07:00
shared-timers feat(backend): encrypt sensitive fields across all modules 2026-03-21 12:11:39 -07:00
timers feat(agent-actions): Phase A.2 — agent action audit trail module + tests 2026-03-31 23:38:03 -07:00
webhooks feat(backend): encrypt sensitive fields across all modules 2026-03-21 12:11:39 -07:00