Bridge pattern connecting narrative computing platforms (like Miadi) with the Medicine Wheel package ecosystem, enabling ceremony-aware content management, Four Directions–structured agent sessions, and relational narrative intelligence.
Version: 0.1.0 Status: Active Packages: @medicine-wheel/ontology-core, @medicine-wheel/ceremony-protocol, @medicine-wheel/narrative-engine Lineage: Integration pattern between jgwill/Miadi and jgwill/medicine-wheel
A bridge architecture enabling:
| Consumer | Medicine Wheel Package | Integration Type |
|---|---|---|
| Miadi Web UI | ui-components, ontology-core | Visual theming, type imports |
| Miadi Web UI | narrative-engine | Beat display, arc visualization |
| miadi-code | ceremony-protocol | Session structuring, phase transitions |
| miadi-code | ontology-core | Direction types, Wilson alignment |
| miadi-code | narrative-engine | Beat planning, story flow |
import { Direction, RelationalNode, WilsonAlignment } from '@medicine-wheel/ontology-core';
// Use Direction enum for content categorization
interface Article {
direction: Direction; // 'east' | 'south' | 'west' | 'north'
// ...
}
import { CeremonyPhase } from '@medicine-wheel/ceremony-protocol';
// Structure agent sessions as ceremonies:
// opening → council → integration → closure
interface AgentSession {
phase: CeremonyPhase;
direction: Direction;
// ...
}
import { NarrativeBeat, ArcValidator } from '@medicine-wheel/narrative-engine';
// Story beats mapped to ceremony phases
interface StorySession {
beats: NarrativeBeat[];
currentArc: string;
// ...
}
// Import or reference DirectionCard theming for consistent visual language
import { DirectionCard } from '@medicine-wheel/ui-components';
// Or replicate the color/icon mapping for app-specific components
┌─────────────────────────────────────────┐
│ Miadi Platform │
│ ┌──────────┐ ┌────────────────┐ │
│ │ Web UI │ │ miadi-code │ │
│ │ (Next.js)│ │ (Terminal) │ │
│ └────┬─────┘ └────────┬──────┘ │
│ │ │ │
│ ─────┴──────────────────┴──────── │
│ Narrative–Medicine Wheel Bridge │
│ ─────┬──────────────────┬──────── │
└───────┼──────────────────┼──────────────┘
│ │
┌───────▼──────────────────▼──────────────┐
│ Medicine Wheel Package Ecosystem │
│ ┌──────────┐ ┌───────────┐ ┌────────┐ │
│ │ontology │ │ceremony │ │narr. │ │
│ │ core │ │ protocol │ │engine │ │
│ └──────────┘ └───────────┘ └────────┘ │
│ ┌──────────┐ ┌───────────┐ │
│ │ui-comps │ │graph-viz │ │
│ └──────────┘ └───────────┘ │
└─────────────────────────────────────────┘
east, south, west, northnpm install @medicine-wheel/ontology-corenpm install @medicine-wheel/ontology-core @medicine-wheel/ui-componentsnpm install @medicine-wheel/ontology-core @medicine-wheel/ceremony-protocol @medicine-wheel/narrative-engineWhen integration patterns mature, extract reusable modules as @medicine-wheel/miadi-<component>:
@medicine-wheel/miadi-articles — Article publishing pipeline with MW theming@medicine-wheel/miadi-sessions — Ceremony-structured agent sessions@medicine-wheel/miadi-narrative — Narrative beat integration for Miadi’s story engineThe Narrative Context Protocol (NCP) at /a/src/STPB/lib/ncp/ implements Dramatica-based narrative structure tracking that aligns naturally with Medicine Wheel’s Four Directions. NCP provides three core capabilities that represent future integration opportunities:
throughline-analyzer.ts)NCP tracks four Dramatica throughlines (Objective Story, Main Character, Influence Character, Relationship Story) — each mapping to a perspective (“we” collective, “I” personal, “you” alternative, “we” relational). These parallel the Four Directions’ cognitive lenses and could enrich Medicine Wheel’s directional classification with narrative perspective awareness.
coherence-validator.ts)Validates internal narrative consistency — throughline consistency, domain alignment, and structural completeness. This could complement Medicine Wheel’s validateArc and validateCadence by adding Dramatica-informed coherence checks to ceremony-structured narratives.
dynamics.ts)Tracks opposing narrative forces (Knowledge vs Ignorance, Trust vs Test, Change vs Inertia) and assesses act-level analysis, climax convergence, and arc completeness gaps. These dynamics could map to tensions among respect, reciprocity and responsibility and enrich structural tension charts with narrative force analysis.
A future @medicine-wheel/ncp-bridge or extension to this bridge spec could:
article-publishing-pipeline.spec.md — Detailed article system specceremony-protocol.spec.md — Ceremony phase managementnarrative-engine.spec.md — Beat sequencing and arc validationui-components.spec.md — Visual component library/a/src/Miadi/rispecs/miadi-code/SPEC.md — miadi-code agent specification/a/src/STPB/lib/ncp/README.md — Narrative Context Protocol (Phase 2)