@medicine-wheel/perception-layer
v0.4.13
Published
Eyes & ears of agent-supported film production — witness a belt-device recording as typed perceptual events and seed a production knowledge graph
Readme
@medicine-wheel/perception-layer
Witness film-production source material as typed relational events.
This package is the eyes and ears layer for agent-supported Indigenous film production. It turns transcript or device-stream material into PerceptualEvents, records who witnessed the material, and seeds an additive production graph in @medicine-wheel/ontology-core.
Why it exists
Episode 066 introduced the belt-device / eyes-and-ears metaphor. Episode 067 and the Nicolas Renaud conversation clarified the relational frame: film is not just content capture, it is knowledge emerging through relationship. This package makes that frame executable without changing core ontology unions.
Production entities ride on existing knowledge nodes with metadata.kind; edges use the additive ProductionRelation subtype.
Install
npm install @medicine-wheel/perception-layerAPI
import {
registerParticipant,
ingestTranscript,
buildProductionGraph,
} from '@medicine-wheel/perception-layer';
const mia = registerParticipant('Mia', 'witness', ['🧠', 'Mia']);
const events = ingestTranscript(transcript, {
source: '/path/to/episode-066-transcript.txt',
participant: mia,
});
const graph = buildProductionGraph(events, {
participant: mia,
recordingName: 'Episode 066 belt recording',
});Main concepts
PerceptualEvent: one witnessed segment with a sense (earoreye) and an event type.AgentParticipant: the human or agent recorded as witness, observer, or storyteller.ProductionGraphSeed: recording node, segment nodes, collaborator nodes, andProductionRelationedges.observedBy: records relationship in-band; the agent witnesses rather than extracts.
Event types
transcript-segmentdirector-intentambient-soundshot-compositionrelational-moment
Verification
The real vertical slice is covered by:
cd /workspace/repos/jgwill/medicine-wheel
npm run build:packages
npm test -- --run tests/film-production-vertical-slice.test.tsThat test uses the real Episode 066 transcript and proves:
- transcript → perceptual events,
- events → production graph,
- production graph remains additive over ontology-core,
- the Jerry and Nicolas/Renaud relationship threads stay legible.
Related issues
- #85 — Episode 068 vertical slice
- #86 — perception layer package
- #84 — Episode 068 plan-review audio steering context
