feat(service): ingest endpoint with kernel gates (P1.4)

POST /v1/interactions/ingest: fail-closed OPA gate -> resolve scope/handle(MDM,
no silent merge)/actor/channel/thread -> idempotent write of interaction+parts+
outbox CloudEvent in one tx. 4 DB-backed gate tests green (idempotent /
fail-closed / unresolved-handle / outbox event). 16 tests total.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-30 21:24:09 +05:30
parent 8cd5d9b248
commit 4b7dc98c6b
6 changed files with 391 additions and 1 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
import { Module } from '@nestjs/common';
import { PrismaModule } from './prisma/prisma.module';
import { PlatformModule } from './platform/platform.module';
import { InteractionsModule } from './interactions/interactions.module';
import { HealthController } from './health.controller';
@Module({
imports: [PrismaModule, PlatformModule],
imports: [PrismaModule, PlatformModule, InteractionsModule],
controllers: [HealthController],
})
export class AppModule {}