# Kuan Yin — Integration Guides

> Technical doc 32.16.1.6. Defined in `@kuanyin/cross-domain`.

Kuan Yin integrates with the other Oshun domains so that protection, reputation,
and rehabilitation are platform-wide rather than siloed.

## Aphrodite (adult content / live performers)

`aphrodite-integration.ts` wires performer protection into live streams: chat
pre-screening, parasocial detection over tip patterns, NCII coordination,
boundary enforcement, performer-specific mindful friction, age-verification and
safe-word coordination, and rehabilitation for Aphrodite violations. Performers
get the strongest shield tier and never see intercepted abuse.

## Lilith (meditation / consciousness)

`lilith-integration.ts` supplies the contemplative content used by mindful
friction: guided breathing, loving-kindness and forgiveness meditations, body
scans for emotional regulation, and mindfulness streak integration. The Samma
Vaca gate and rehabilitation journeys pull exercises from Lilith.

## Hathor (worldbuilding / narrative)

`hathor-integration.ts` applies community harmony to in-world communities and
offers restorative-justice narrative arcs, redemption story support, shadow-
integration character development, and trauma-informed narrative guidance.

## Yemaya (creative studio)

`yemaya-integration.ts` brings constructive-critique framing, feedback-delivery
coaching, attribution-dispute handling, creative-theft protection, and
mentor/mentee relationship health to creative communities.

## Platform-wide

`platform-wide-integration.ts` unifies reputation and governance:

```ts
import { platDesignUnifiedReputationSystem } from '@kuanyin/cross-domain';

const rep = platDesignUnifiedReputationSystem({
  userId: 'u1',
  domainScores: { aphrodite: 0.8, lilith: 0.9, hathor: 0.7, yemaya: 0.75 },
  behaviorEvents: [
    { domain: 'aphrodite', type: 'harassment', score: 0.2, timestamp: t },
  ],
  currentTimestamp: now,
});
// rep.unifiedScore, rep.trustLevel, rep.portableMerit, rep.flaggedBehaviors
```

Companion builders cover cross-domain moderation policy, platform-wide emergency
protocols, shared safety profiles, cross-domain rehabilitation, universal
appeals, cross-domain privacy standards, shared wellness resources, and a
platform analytics dashboard. Serial offenders are tracked across domains and
ban coordination is unified.

## Wiring pattern

1. Subscribe the consuming domain to the relevant Kuan Yin events
   (`protection.activated`, `harm.detected`, `merit.awarded`, `tier.unlocked`)
   via the event bus (`05-event-system.md`).
2. On each event, call the matching `cross-domain` builder to project Kuan Yin's
   verdict into that domain's reputation/policy model.
3. Feed the domain's own signals back as `behaviorEvents` so unified reputation
   stays current.

All integration functions are pure and deterministic, so cross-domain wiring is
covered by the `@kuanyin/evaluation` integration suite (cross-domain flow).
