feat(service): P6.2 RuleEngine + RouteSimulator (deterministic, preview-first)

Keyword moderation flags; deny-by-default for protected (CHILD) destinations,
REVIEW for other flags/requiresReview, ALLOW otherwise; versioned rulepack for
replay. Simulate renders per-format previews + persists decisions, NEVER sends.
BDD (party@9pm → children DENY / adult+seniors REVIEW / 0 sends) + replay green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-01 14:29:01 +05:30
parent dfd87cdde7
commit 7ed3c11891
4 changed files with 280 additions and 0 deletions
@@ -0,0 +1,9 @@
import { Module } from '@nestjs/common';
import { RuleEngine } from './rule-engine';
import { RouteSimulator } from './route-simulator';
@Module({
providers: [RuleEngine, RouteSimulator],
exports: [RuleEngine, RouteSimulator],
})
export class RoutingModule {}