learning_ai_clock/backend/src/modules/agent-actions
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.test.ts feat(agent-actions): Phase A.2 — agent action audit trail module + tests 2026-03-31 23:38:03 -07:00
repository.ts feat(agent-actions): Phase A.2 — agent action audit trail module + tests 2026-03-31 23:38:03 -07:00
routes.ts feat(agent-actions): Phase A.2 — agent action audit trail module + tests 2026-03-31 23:38:03 -07:00
types.ts feat(agent-actions): Phase A.2 — agent action audit trail module + tests 2026-03-31 23:38:03 -07:00