Ceremony lifecycle protocol for Medicine Wheel — manages ceremony state, phase transitions, governance enforcement, and ceremonial review workflows.
This package provides a protocol for managing the lifecycle of ceremonies within the Medicine Wheel framework. It handles:
npm install medicine-wheel-ceremony-protocol
import { loadCeremonyState, getPhaseFraming } from 'medicine-wheel-ceremony-protocol';
import type { RSISConfig } from 'medicine-wheel-ontology-core';
const config: RSISConfig = { /* ... */ };
const state = loadCeremonyState(config);
const framing = getPhaseFraming(state?.phase);
import { nextPhase, PHASE_ORDER } from 'medicine-wheel-ceremony-protocol';
const currentPhase = 'opening';
const next = nextPhase(currentPhase); // 'council'
import {
checkGovernance,
isIndexExcluded,
checkCeremonyRequired,
getAccessLevel,
formatGovernanceWarning,
} from 'medicine-wheel-ceremony-protocol';
const config: GovernanceConfig = { /* ... */ };
// Check if a path is protected
const rule = checkGovernance('/sacred/path', config);
// Check if excluded from indexing
const excluded = isIndexExcluded('/node_modules', config);
// Check if ceremonial review is required
const requiresCeremony = checkCeremonyRequired('/src/core.ts', config);
// Get access level for a path
const access = getAccessLevel('/protected/file.ts', config);
// Format a warning message
if (rule) {
console.log(formatGovernanceWarning(rule));
}
The protocol recognizes four ceremony phases:
open — No restrictionsceremony_required — Changes require ceremonial reviewrestricted — Restricted to specific authoritiessacred — Sacred space requiring special protocolsmedicine-wheel-ontology-core — Core ontology types and interfacesMIT
This package is part of the Medicine Wheel project. See the main repository for contribution guidelines.