# The wheel holds the Factory's working tools: an exploration

Written 2026-10-15 by the coordinator (Claude Opus 5.5) at Guillaume's word: "we really want inside of
the medicine wheel ontology something about developing and having all of these tools … a deeper work
that we can be doing and consuming in here." Read against jgwill/medicine-wheel `main` at `cceb720`
(suite 0.19.1). Nothing here is implemented. It names what the wheel would hold, what moves upstream,
and what Miadi keeps.

## Current reality

- **Tracing nodes already sit on the wheel.** Miadi's `inquiry-weave` writes one `knowledge` node per
  resource, id `tracing:<domain>/<resource>/<id>`, with `metadata.kind: tracing_resource` and the
  provider in its metadata. On 2026-10-15 the ilex wheel held 13 edges to them: `is-traced-in` 5,
  `is-prompted-by` 5, and three relations other seats chose (`is-example-of-screenwalk`,
  `is-discussed-through`, `is-scripted-by`). The kind `tracing_resource` is Miadi's string.
  `ontology-core` does not register it.
- **The wheel already has the extension pattern.** `src/ontology-core/src/types.ts` adds kind families
  that ride existing `NodeType`s through `metadata.kind`, each with a binding to a node type and a
  direction, and a relation subtype: `ProductionEntityKind` (on `knowledge`), `InfraEntityKind` (host on
  `land`, tenant on `human` south, service on `knowledge` west), `AcademicEntityKind` (research field on
  `knowledge` east, program on `knowledge` south). The `NodeType` union stays closed at eight.
- **Three open issues each hold one part.** jgwill/medicine-wheel#161 maps the Factory's five links
  (question, trace, evidence, criteria, judgment) to PROV and leaves criteria and judgment unnamed.
  jgwill/medicine-wheel#159 asks which node type an agent's working session rides.
  jgwill/medicine-wheel#164 (suite 0.18.0 to 0.19.1) gave the wheel an event log of its own writes in
  `MiadiEventEnvelope` form, with the rule "references, not words".
- **The wheel's own foundations note names the next upstream move.** `docs/foundations/event-driven-architecture.md`
  §3 ("Open edges"): `@medicine-wheel/client` could offer the edge projection that Miadi's
  `inquiry-weave` repeats in seven files (lineage, reviews, notebooks, prototypes, rispecs, foundations,
  tracing), and Miadi would consume it. Its §2 grounds the practice (Parnas, Martin, the rule of three,
  Evans, upstream first).
- **`rdf-interop.ts` already declares the `prov` and `skos` namespaces.** No DQV, Web Annotation or
  DCAT namespace yet.

## What the wheel would hold

One more kind family, in the same additive form as infra and academic. Its values are the packet's
concepts ([`synthesis.md`](./synthesis.md), "The vocabulary"), grouped by the three classes. The
directions follow the bindings the file already uses: south for what is prepared before an act
(tenant, program), west for what executes and what it leaves (service), east for the door of
inquiry (research field), north for what returns to the circle.

| kind | class | rides | direction | why that direction | standard term |
|---|---|---|---|---|---|
| `question` | origin | `knowledge` | east | the door the work was entered through | `prov:wasStartedBy` (trigger) |
| `prompt` | instrument | `knowledge` | south | prepared before the act, a directive | `prov:Plan`, `lrm:Work` |
| `dataset` | instrument | `knowledge` | south | assembled before the act, for one declared purpose | `dcat:Dataset` |
| `criterion` | instrument | `knowledge` | south | set before judging, carries its author | `dqv:Dimension`, `earl:TestCriterion` |
| `metric` | instrument | `knowledge` | south | a criterion narrowed to a type and range | `dqv:Metric` |
| `trace` | record | `knowledge` | west | what a run left | `prov:Bundle` |
| `session` | record | `knowledge` | west | an agent's working time (#159's first candidate) | `prov:Activity` + `prov:wasAssociatedWith` |
| `score` | assessment | `knowledge` | north | what the work is worth, returned | `dqv:QualityMeasurement`, `earl:TestResult` |
| `judgment` | assessment | `knowledge` | north | a person's assessment, its body a witnessed ceremony turn | `oa:Annotation` + `oa:assessing`, `earl:mode earl:manual` |

What stays off the graph, by the wheel's own "references, not words" rule: a prompt's body, a trace's
input and output, an observation (one step inside a trace) and a dataset's items stay at the
provider. The node carries the reference, the version and the label.

A relation subtype names what an episode or a work does with each, so the five relation tokens Miadi
writes today become typed: `is-traced-in`, `is-prompted-by`, `generates-with`, `is-evaluated-with`,
`is-assessed-against`. Two relations a judgment needs are not written anywhere yet: `judged-by` (a
judgment to the `human` who gave it) and `assesses` (a judgment or score to its target).

The wheel's event log of #164 is the record class at the wheel's own level. A write to one of these
nodes would leave one event, a reference with no words, like every other write.

## What moves upstream, what Miadi consumes

| part | moves to | Miadi then |
|---|---|---|
| the kind family, its binding and relation subtype | `@medicine-wheel/ontology-core` (`types.ts`, beside infra and academic) | writes `metadata.kind` from the registered list in place of its own `tracing_resource` string |
| the bilingual concept scheme and its mappings | `@medicine-wheel/ontology-core` vocabulary and `rdf-interop.ts`, adding the DQV, `oa:` and DCAT namespaces | reads concept labels in English and French from the package |
| the edge projection repeated in seven `inquiry-weave` files | `@medicine-wheel/client` (the #164 note's open edge) | its tracing door calls the client, one projection for all seven |
| the consent relation for `creative` and `ceremony` datasets | `@medicine-wheel/consent-lifecycle` | an episode's dataset entry names the consent it rests on |
| provider adapters, the episode manifest's `tracing:` list, the app routes | stay in Miadi (`@miadi/tracing`, `@miadi/tracing-langfuse`, `@miadi/episodic-memory-schema`) | unchanged |

This is upstream first, as the wheel's foundations note and Miadi's `medicine-wheel-upstream-delivery`
skill describe it: an issue in jgwill/medicine-wheel, a suite release, a bump in Miadi, :3335 deployed,
the ilex wheel upgraded.

## Crossings the maintainers should see

L5-F8, found while reading `ontology-core` for this packet:

- `ocap:compliant` (`vocabulary.ts:109`, `schemas.ts:116`) computes a compliance boolean. FNIGC calls
  OCAP® "not a doctrine or a prescription" and specific to First Nations. Recording authority and
  consent, and leaving the judgment to the community, matches the source.
- `rel:accountabilityScore` (`vocabulary.ts:135`) scores where Wilson (pp. 77, 102) puts no score.

## Order

1. Comment the mapping and this kind family on jgwill/medicine-wheel#161. Its desired state is "the five
   links have a typed home in ontology-core", and the kind family is that home widened to the
   instruments and records the links point at. Done 2026-10-15.
2. Ten competency questions before any type (L5, "The minimum now"), written on #161 or on a sibling
   issue if the maintainers keep #161 to the five links. The first: "Which judgments on episode N came
   from a person, against which criteria, and what did each person say?"
3. The kind family and the scheme in `ontology-core`, released with the suite.
4. The edge projection in `@medicine-wheel/client`, then the seven `inquiry-weave` doors moved onto it.

The wheel's seat that wrote #164 on ilex this morning works in the same files as steps 3 and 4. The
comment on #161 is where it will find this.
