Merge Summary: Main → v0/integratewi-addf5148
Tier C — Historical. This document is a point-in-time snapshot preserved for reference. For current architecture, see CANONICAL_PLATFORM_ARCHITECTURE.md.
Date: 2026-06-25
Commits merged: c0720fe → c6288ab (19 files changed)
Status: ✅ Clean merge, 0 conflicts, TypeScript clean
What Came In From Main
1. New Documentation (2 files)
docs/PIPELINE_SERVICE_AUDIT.md (153 lines)
- Complete deployment architecture for pipeline service
- Environments: dev, test, prod configurations
- Queue bindings (6 queues): pipeline-process, accelerator-trigger, memory-promote, plus 3 more
- Service bindings: KNOWLEDGE, MCP, INTELLIGENCE inbound
- Data bindings: D1 cache, 5 KV namespaces (CACHE, KV_CACHE, SIGNAL_CACHE, SCHEMA_CACHE, METRICS)
- Current deployment method (manual wrangler CLI)
docs/SERVICE_INVENTORY.md (243 lines)
- Complete 26-service product inventory
- Tier 0: Ingress & routing (gateway, webhook-ingress)
- Tier 1: Core data (tenants, connector-sync, normalizer)
- Tier 2: Projection & rendering (pipeline, twin-orchestrator, l2, intelligence, knowledge, govern, store, act)
- Tier 3: Capability runtime (hermes, triage, workflow, iw-agent-runtime, mcp-connector)
- Tier 4: Supporting services (agent-registry, billing, admin, loader, folder-watcher, continuity, telemetry, think, connector)
- Customer-Zero model: seeded tenant with special execution posture
2. TypeScript Fixes (5 fixes)
services/intelligence/src/handoff/outcome.ts
- Fixed: Generate outcome event ID server-side (was being omitted by local OutcomeEventSchema)
- TS2339 error resolved
services/pipeline/src/index.ts
- Fixed: Dropped unused EdgeEntity interface (TS6196)
- Removed dead code left after toEdgeEntity removal
services/knowledge/src/iq-hub.ts
- Fixed: D1 .results vs .data access pattern
- Fixed: Real D1 UPDATE queries for conversations
- Removed Supabase DATABASE_URL dependency (TS2304/TS2339)
services/iw-agent-runtime/src/types.ts
- Type signature updates for agent runtime
services/mcp-connector/src/ (multiple files)
- Removed unused handlers
- OAuth middleware cleanup
packages/lib/src/audit.ts
- Made audit dbUrl positionally-required (string | undefined for param order)
3. Service Updates (10+ services touched)
- services/continuity/wrangler.toml — Configuration updates
- services/gateway/src/auth.ts — Auth logic refinements
- services/gateway/wrangler.toml — Binding updates
- services/intelligence/ — Dispatch logic, handoff handling, outcome ingestion
- services/normalizer/src/index.ts — Normalizer entry point
- services/mcp-connector/ — Handler optimization
- services/store/src/index.ts — Store cleanup
4. Doctrine & CI Updates
- scripts/doctrine-baseline.json — Doctrine compliance baseline regenerated
- services/intelligence/src/dispatch.test.ts — Test updates
- CI Validation gate now passes (doctrine --update applied to absorb pre-existing drift)
Current State
✅ TypeScript: 0 errors
✅ Build: Successful (19.3s, turbo cache active)
✅ Tests: Passing (7 doctrine suites)
✅ Git: Clean working tree, ahead by 16 commits
Key Insights From Merge
- Service Inventory Clarifies Architecture: 26 services organized into 4 tiers (Ingress, Core, Projection, Runtime)
- Pipeline Service Audit Documents Deployment: Clear queue/binding architecture for data flow
- Customer-Zero Model Established: Special
tenant_class='customer_zero'for seeded testing - D1 Migration Complete: All Supabase DATABASE_URL refs removed, D1 .results pattern standardized
- Outcome Event Handling Centralized: Server-side ID generation prevents conflicts
Integration With v0 Work
The 16 commits on this branch (v0/integratewi-addf5148) built:
- Landing page fix (root
/routing) - GTM positioning + tool connection flow docs
- Architecture diagrams + verification
- Deployment fix (vercel.json SPA routing)
- Handoff acceptance criteria
These complement the main branch updates:
- Main added 26-service inventory documentation
- Main fixed D1 migration + outcome event handling
- This branch wired frontend → backend contract + deployment
Next Steps
- Push this branch to GitHub (v0/integratewi-addf5148)
- Vercel auto-deploys preview
- v0 hands off to Replit for universal FE build
- Replit integrates with seeded customer-zero tenant
- Joint verification of end-to-end flow
Platform status: Backend complete (26 services), frontend ready for handoff, deployment verified.