From bb2b15cd803ecb67da944cff227a49e884c9b520 Mon Sep 17 00:00:00 2001 From: autocommit Date: Sun, 17 May 2026 07:41:16 -0700 Subject: [PATCH] =?UTF-8?q?chore(infrastructure):=20=F0=9F=94=A7=20Update?= =?UTF-8?q?=20port=20definitions=20in=20ports.yaml=20for=20infrastructure?= =?UTF-8?q?=20service=20communication?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- @platform/infrastructure/ports.yaml | 115 ++++++++-------------------- 1 file changed, 32 insertions(+), 83 deletions(-) diff --git a/@platform/infrastructure/ports.yaml b/@platform/infrastructure/ports.yaml index 22971e5..04f330d 100644 --- a/@platform/infrastructure/ports.yaml +++ b/@platform/infrastructure/ports.yaml @@ -1,87 +1,36 @@ -# atlilith V3 — master port registry +# @atlilith V3 — canonical service port registry +# Single source of truth. Edit here; never hardcode ports elsewhere. # -# Conforms to @lilith/service-registry's PortsConfig schema. Per-deployment -# YAMLs in deployments/@domains/*/services.yaml may reference ports from here -# by feature-id + service-id (e.g., features.sso.api → 3045). +# Coexists with v2 registry at ~/Code/@projects/@lilith/lilith-platform.live/infrastructure/ports.yaml +# V3 ranges chosen to avoid all v2 allocations. # -# Validation: ./run manifest validate (uses buildDeploymentRegistry({strict: true}) -# from @lilith/service-registry — catches port collisions + dependency drift). -# -# Port ranges chosen to NOT conflict with v2 (.live) running in parallel during cutover. -# -# Ranges (V3): -# 3040-3059 API backends (v2 used 3020-3039) -# 3140-3149 Messaging services (v2 used 3100-3109) -# 3810-3819 Background workers (v2 used 3800-3809) -# 4200-4399 Analytics cluster (v2 used 4000-4199) -# 5210-5300 Frontend dev servers (v2 used 5110-5200) -# 9100-9101 Object storage MinIO (v2 used 9000-9001) -# 25440 Platform PostgreSQL (unified) -# 25441 Messenger PostgreSQL -# 25442 mac-sync PostgreSQL (raw, read-only mirror) -# 25443 TimescaleDB (org-analytics) -# 26380 Redis (queue + cache) +# V3 Ranges: +# 3060-3079 V3 APIs (platform.api + per-specialist health endpoints) +# 3791-3799 V3 @ai instances (ai-core forks; upstream @ai itself = 3790) +# 3820-3839 V3 workers (scheduler, ingestor, resolver, notifier, cache-rebuilder) +# 5300-5399 V3 web frontends +# 25437 V3 platform.db (Postgres on black; v2 quinn.db = 25435) + +apis: + platform.api: 3060 # NestJS data plane on black + +ai_instances: + ai-copilot: 3791 # cross-surface front-door @ai (P0) + content-onlyfans: 3792 # OF surface agent (P1) + content-x: 3793 # X/Twitter surface agent (P2) + # 3794-3799 reserved: content-{instagram,tiktok,threads,...} + bookings-{tryst,ts4rent,...} + +workers: + scheduler: 3820 # polls content_posts, dispatches to platform skills + engagement-ingestor: 3821 # pulls inbound across surfaces + prospect-resolver: 3822 # P4: links events across surfaces to one prospects row + notifier: 3823 # iOS push + iMessage via mac-sync + email digest + cache-rebuilder: 3824 # vps-0-resident; consumes cache.invalidate events + +frontends: + ai-copilot.web-fe: 5300 # secondary AI web UI + content-portal: 5301 # bulk content review (vps-0) + engagement-portal: 5302 # cross-surface engagement triage (vps-0) infrastructure: - platform-db: - postgresql: 25440 - messenger-db: - postgresql: 25441 - macsync-db: - postgresql: 25442 - analytics-db: - postgresql: 25443 - analytics-redis: - redis: 26380 - platform-minio: - minio: 9100 - console: 9101 - platform-mail: - smtp: 1026 - web: 8026 - -platform: - ai-gateway: 8091 - docs: 3091 - -features: - sso: - api: 3045 - frontend: 5225 - api: - api: 3050 - portal: - api: 3044 - frontend: 5274 - ai-assistant: - api: 3048 - frontend: 5276 - admin: - api: 3043 - frontend: 5221 - data: - api: 3042 - frontend: 5211 - messenger: - sync: 3140 - api: 3145 - relationship: 3813 - frontend: 5275 - newsletter: - api: 3046 - frontend: 5226 - image-protection: - api: 3052 - vip: - frontend: 5278 - www: - frontend: 5220 - analytics-website: - api: 4205 - frontend: 5222 - -services: {} - -ml: {} - -apps: {} + platform.db: 25437 # Postgres on black (org-aware tenancy + content)