Expanded Layer 0 (full biographical reference world) · Social data pre-enrichment (Instagram/LinkedIn/X) · Intelligent cross-domain profile router (Opus-tagged, not static) · Full 11-layer deep inference · Updated deep-inference.txt target prompt · Nothing omitted
Opus infers these from conversational cues, cultural signals, generational markers, and social enrichment data. Not demographics — the texture of the life they lived and carry forward.
Inference: "User tends to seek comfort food and reduce movement when emotionally stuck or low-grade depressed."
Static router: meal-planning only loads food profile. Misses mental state signal entirely.
Intelligent router: Opus tagged this inference with all 5 domains — it surfaces for meal-planning queries AND wellness queries AND habits queries.
Inference: "User likely grew up in a high-achievement, comparison-heavy environment. Currently projects this onto their child's academic performance in ways they're aware of but struggle with."
Inference: "For this user, food = love. Preparing food for their mother = how they express care. Medical diet restrictions on the elder feel like a personal loss."
meal-planning → [Layer 0, food relationship, cultural roots]{"inference": "...", "skill_domains": ["meal-planning", "wellness-daily", "habits"]}# 1. Opus 4.8 generates tags on EVERY inference at profile synthesis time inference = { "dimension": "food_as_emotional_regulation", "claim": "User seeks comfort food and reduces movement when mentally low", "layer": 9, # Shadow "confidence": 0.58, "skill_domains": [ "meal-planning", # obvious connection "wellness-daily", # body + emotional state "habits", # behavior pattern "parent-playbook", # if she's stress-eating, she may be depleted "fitness-coach" # movement reduction correlates ], "cross_domain_note": "Emotional state drives food choices — load for meal queries too" } # 2. At archetype call time: filter by skill_id relevant = [i for i in deep_profile.inferences if skill_id in i.get("skill_domains", [])] # Returns 3-10 inferences depending on skill, sorted by confidence # 3. OPTIONAL: GPT-5.4 Mini dynamic relevance filter ($0.001) # For emotional/complex queries where context matters more than skill label if is_emotional_or_complex(message): filtered = gpt54mini_relevance_filter( inferences=relevant, message=message, query="Which 5-7 of these profile inferences are most relevant to answering this specific message right now?" ) # → Returns ranked subset with reasoning # → Kimi receives only the most relevant 5-7 (200-400 tokens max)
You are a master psychologist, behavioral economist, cultural anthropologist, narrative therapist, and deeply human-aware AI. You have profound knowledge of: consumer psychology, behavioral economics, cognitive biases, attachment theory, family systems theory, cultural identity, life stage theory, motivational science, shadow work, the full spectrum of human irrationality, and cross-domain human behavior patterns. You understand that one domain of a person's life explains another — that food patterns reveal emotional regulation, that competitive childhood shapes parenting anxiety, that music taste reveals attachment to a version of the self. You are reading the first conversations a person has had with OiMy — a family AI companion — PLUS any available social enrichment data (LinkedIn, Instagram, X/Twitter) that was collected at onboarding. Your job: synthesize the deepest, most accurate, most practically useful understanding of this person that an AI could produce from this input. This profile is used for the rest of their relationship with OiMy. Get it right. Think thoroughly. Multi-hop everything. OUTPUT FORMAT — a single JSON object: { "layer_0a_foundation": { // INFER from context signals — do NOT require direct statement // geography, household, occupation, family structure, financial tier, education // childhood geography, parents status, siblings + birth order }, "layer_0b_reference_world": { // The cultural and experiential universe they carry forward // music_growing_up, music_now, sports_team, artists_admired // role_models, childhood_pets, extracurriculars, likely_schooling_type // peer_competition_pattern, travel_experience_type // childhood_mischiefs_likely (inferred from geography + class + era) // nostalgic_memories (what they reference with warmth) // first_vehicle_era (inference about independence moment) // relationship_with_nature, self_care_relationship // aesthetic_sensibility, food_nostalgia_anchors // what_they_likely_read_watch (genre/type inference) }, "core_psychology": { // DISC, attachment, Enneagram, core wound, primary social need // Each: {claim, reasoning_chain, confidence, evidence} }, "inferences": [ // 30-50 inferences across layers 1-9 // REQUIRED on each inference: { "dimension": "short_label", "layer": 5, "claim": "one clear sentence about the user", "reasoning_chain": "2-4 sentences: X mentioned → implies Y → combined with Z → therefore...", "confidence": 0.0, "evidence": "exact message signals or social data used", "skill_domains": ["meal-planning", "wellness-daily", "..."], // ALL domains this inference improves — INCLUDING cross-domain // Think: what non-obvious skills does this also affect? "cross_domain_note": "why this affects the non-obvious domains" } ], "personalization_hooks": { "meals_food": [...], "parenting_family": [...], "health_wellness": [...], "elder_care": [...], "habits_bct": [...], "emotional_support": [...], "communication": [...], "general": [...] }, "negative_personalization": [ // {situation, never_do, why, do_instead} // REQUIRED section. Most important for not breaking trust. ], "forward_projection": [ // What's coming in their life in 6, 12, 24 months // {timeframe, anticipated_need, reasoning, relevant_skills} ], "shadow_notes": [ // What they won't say, can't see, or actively protect // Confidence never above 0.5 unless explicitly signaled // {pattern, what_they_say, what_behavior_reveals, implication_for_oimy} ] } HARD RULES: - Layer 0A and 0B MUST be filled — anchor all inference in actual life context - 30-50 inferences (never fewer) - EVERY inference MUST include skill_domains + cross_domain_note - Think cross-domain: food patterns → mental state; childhood competition → parenting anxiety - Negative personalization section REQUIRED - Shadow confidence ≤ 0.5 unless explicitly stated - Social enrichment data (if provided): use as additional evidence, note the source - Cultural inference: needs linguistic/contextual evidence — never name alone - Output ONLY the JSON object. Nothing before or after.
Same message as before — now showing how the cross-domain router enriches the context.
═══ GPT-5.4 Mini TRIAGE → habits skill (2ms) ════════════════ ═══ HERMES + HONCHO ═════════════════════════════════════════ Honcho insight: "3× tried cooking plans without follow-through. Daughter = emotional motivator. Sunday is the one habit that holds." ═══ INTELLIGENT PROFILE ROUTER ════════════════════════════ skill_id = "habits" Filter deep_profile.inferences where "habits" in skill_domains: Inference 1 (L5, conf 0.74): "self_regulation: environmental design works best" skill_domains: ["habits", "meal-planning", "wellness-daily", "parent-coach"] Inference 2 (L5, conf 0.70): "present_bias: strong, plans made not executed" skill_domains: ["habits", "appointments", "elder-meds", "wellness-daily"] Inference 3 (L9, conf 0.48): "food_as_emotional_regulation: eats more when low" skill_domains: ["meal-planning", "wellness-daily", "habits", "parent-playbook"] cross_domain_note: "Emotional state drives food choices — relevant to habits because the habit to cook is also mood-linked" Inference 4 (L0B, conf 0.65): "childhood_connection_through_food: Tamil heritage, food = love language from mother" skill_domains: ["meal-planning", "storybook", "habits", "family-bonding"] cross_domain_note: "The Sunday cooking ritual mirrors her mother's love language — building on this is not just habit design, it's identity reinforcement" Inference 5 (L5, conf 0.80): "satisficer: one default, not options" skill_domains: ["ALL"] → 5 inferences selected, ~380 tokens → Cross-domain signals: mental state + cultural food identity IN the habits context ═══ BCT LOOKUP ══════════════════════════════════════════════ forgetfulness × contemplation × importance × security → BCT 7.1 anchoring. barrier_value: "forgets on busy weekday mornings" → motivator_value: "daughter lights up cooking together Sundays" ═══ KIMI K2.6 receives ═══════════════════════════════════════ Profile context: environmental design > willpower + present bias active + food = love language from mother + Sunday ritual = identity moment + cross-domain: this isn't just a cooking habit, it's how she channels care BCT: anchoring, one cue, build on Sunday (already works) Her specific values: daughter + Sunday cooking + weekday forgetting
data/bct_matrix.json (1800 rows: barrier × stage × hughes_need × decision_style → primary_bct + secondary_bct + nlp_pattern + exact opener). data/technique_directory/ (52 files with full Kimi prompt text). data/nlp_directory/ (15 NLP files). Zero LLM for selection — pure dict lookup. Both the barrier category AND specific value are passed to Kimi K2.6 alongside the technique guidance.
You are the orchestration layer — precision, speed, invisible routing. Conductor, not musician.
Always call Honcho get_insight() before full-path. Never skip.
| Component | Status | Notes |
|---|---|---|
| Hermes gateway (Hetzner) + Emma bot | ✅ Live | Kimi K2.6 · @chittiemma1_bot · crash-watchdog |
| GPT-5.4 Mini triage + classification | ✅ Live | 17KB cached prompt · ~2ms · JSON output |
| Kimi K2.6 archetype responses | ✅ Live | All 6 archetypes |
| BCT + NLP lookup (1800 rows) | ✅ Live | 52 technique files · 15 NLP files |
| Barrier/motivator category detection | ✅ Live | Real-time EMA + keyword |
| SQLite persistence | ✅ Live | All structured data |
| Opus 4.8 deep inference — current prompt | ⚠️ Partial | Works but: 15-inference cap, no Layer 0B, no cross-domain tags, no negative personalization. v6 prompt awaiting sign-off. |
| deep-inference.txt — v6 version | 🔵 Awaiting sign-off | Full 11-layer + Layer 0B + social enrichment + cross-domain tags + 30-50 inferences. Ready to push on approval. |
| Cross-domain Intelligent Profile Router | ❌ Not yet | Requires v6 deep-inference.txt first (needs Opus to tag inferences with skill_domains). Then ~20 lines of filter code. |
| Social data pre-enrichment | ❌ Not yet | apify-instagram skill exists. LinkedIn + X lookup needs Apify config. Privacy disclosure at onboarding needed. High value. |
| Entity extraction (batched session end) | ❌ Gap | GPT-5.4 Mini batch at 30min idle. Not wired yet. |
| Honcho memory | ❌ Gap | No HONCHO_API_KEY on Hetzner. |
| Barrier/motivator specific values | ⚠️ Partial | Category stored. Specific value extraction not wired. |
| Vector memory (with embeddings) | ⚠️ Partial | Active but degraded — needs text-embedding-3-small key. |
| Expert RAG (true vector KB) | 🔵 Future | OT library · symptom DB · speech activities. |
| Rhythm Engine scheduler | ❌ Gap | Code committed. Hermes cron wiring not done. |
| GBrain (OiMy users) | ✅ N/A by design | GBrain = Bharath's dev tool. OiMy users use Honcho + entity stack. |
2 — Social Data Pre-Enrichment
What Social Data Provides