DESIGN-VINTAGE (March 2026) — retained for history. Neo4j references below describe the design substrate of that date, not the live backend: Neo4j was retired by owner decision 2026-08-09; the live KG is Firestore-backed, and KG writes go only through the governed Cell 3/24 writer path (.claude/rules/03-canonical-architecture.md). Banner added by the truth-debt sweep, 2026-08-21.

Marketing Event Stream to Journey Graph Integration Plan

Status

As of March 2026, the repository contains most of the building blocks for a marketing-event-graph pipeline, but the implementation is still a composed system rather than one fully unified runtime path.

What exists today:

The remaining gap is contract alignment and orchestration clarity rather than missing greenfield capability.

Why This Document Was Rewritten

An earlier version of this document mixed aspirational ownership with current implementation facts and then accumulated unresolved merge blocks. This version keeps the repo-accurate mapping and removes the conflicting alternative cell ownership model.

The important corrections are:

Current Control Points In Repo

Boss orchestration

Ingestion and normalization

Identity and journey assembly

Knowledge graph and attribution

Prediction and causal scoring

Semantic and provenance vocabulary

Repo-Accurate Ownership Map

1. Raw extraction and first-pass normalization

Primary owner: cell02

Use:

Responsibilities:

2. Identity resolution

Primary owner: cell02

Use:

Responsibilities:

Current note:

3. Journey profile construction

Primary owners: cell02 and journey services

Use:

Responsibilities:

Recommended split:

4. Knowledge graph persistence and semantic enrichment

Primary owners: services/cell03-intelligence, services/gemini-kg-pipeline, and graph_writer

Use:

Responsibilities:

Recommended split:

5. Attribution

Primary owners: services/cell03-intelligence and existing Boss KG tools

Use:

Responsibilities:

Current note:

6. Journey prediction and uplift

Primary owners: services/mizoki-journey-kg and cell26

Use:

Responsibilities:

7. LTV and cohort scoring

Current state: no single service cleanly matches a dedicated score_customer_ltv runtime owner.

Recommendation:

Contract Strategy

Do not invent a third canonical event schema.

The repo already has two useful layers:

Layer A: curated internal record

Use UnifiedSchema from src/cells/cell02/multi_source_config.py as the curated record exchanged between Cell02-style ingestion and downstream graph processing.

Layer B: transport fragments

Use UEES-style marketing fragments from services/ekis/src/schema/uees.marketing.ts for broker or integration boundaries.

Cross-cutting metadata

Use config/semantic-conventions/marketing.yaml for:

If a Boss handoff envelope is needed, keep it thin:

  1. payload.unified_record -> UnifiedSchema
  2. payload.uees_fragment -> optional UEES transport fragment
  3. trace -> semantic marketing and provenance attributes

Boss MCP Mapping

The conceptual pipeline is:

  1. extract marketing signals
  2. normalize marketing events
  3. resolve customer identity
  4. build journey profile
  5. compute graph attribution
  6. score customer LTV
  7. upsert marketing knowledge graph

The repo already exposes or approximates much of this with existing runtime tools:

Gaps that still need an explicit MCP-safe wrapper:

Phase 1: align contracts

Phase 2: expose identity and attribution as MCP tools

Target:

Actions:

Phase 3: unify journey graph writes

Phase 4: add missing LTV scoring layer

Phase 5: add a Boss-level workflow wrapper

Create one higher-level workflow that sequences:

Runtime Implementation Status

There is now a concrete runtime surface for this integration:

Boss runtime files

Registered tools include:

Cloud Run service files

HTTP endpoints

Definition Of Done

This integration should be considered complete only when all of the following are true:

Production Verification Commands

Run these only from an allowed network:

curl -sS https://boss-agent-adk-698171499447.us-central1.run.app/health
curl -sS https://miz-oki-cell2-698171499447.us-central1.run.app/health
curl -sS https://miz-oki-cell3-698171499447.us-central1.run.app/health
curl -sS https://miz-oki-cell11-698171499447.us-central1.run.app/health
curl -sS https://miz-oki-cell15-698171499447.us-central1.run.app/health
curl -sS https://miz-oki-cell20-698171499447.us-central1.run.app/health
curl -sS https://miz-oki-cell30-698171499447.us-central1.run.app/health

Expected:

Practical Conclusion

The repo is closer to integration than the earlier aspirational mapping implied. The shortest path from current state to a clean production architecture is:

  1. standardize on existing contracts
  2. expose identity and attribution as MCP tools
  3. converge on one journey graph write path
  4. add a real scoring service for LTV and cohorts
← All docsView source on GitHub →