# Intent understanding

## Why now

`@miadi/tracing` 0.1.0 and `@miadi/tracing-langfuse` 0.1.0 shipped under jgwill/Miadi#769 with five
resource names and five relation names chosen while building, and one umbrella word, "tracing",
that covers less than the layer does. Episodes already write `tracing:` lists in `episode.yaml`
and references `miadi-tracing:…` into their files. Every week of use makes a rename more costly.
jgwill/medicine-wheel#161 and #159 are about to give the five links and the agent session a typed
home in the ontology. The words should be examined before they are typed there.

## Who it is for

- Guillaume (William), who asked for linguistic and other aspects and works in English and French.
- The engineers who write the next provider adapter (an adapter translates a provider's vocabulary
  into ours, so ours must not be the first provider's).
- The maintainers of `@medicine-wheel/ontology-core`, who will decide what becomes a type.

## Current reality

- "Tracing" names one of four activities: tracing, scoring, keeping datasets, managing prompt
  versions.
- The resource list is Langfuse's list less its finer parts (observation, dataset item, dataset
  run, score). A score is not a resource. A criterion is called `score-config`.
- The relation names were chosen per resource (`is-traced-in`, `is-prompted-by`,
  `is-evaluated-with`, `is-scored-by`, `generates-with`) without a method.
- `session` already means three things in the ecosystem: a provider session, an agent's working
  session (jgwill/medicine-wheel#159), and a person's sitting.
- `label` already means a pointer to a prompt version, and in Local Contexts a protocol label for
  Indigenous knowledge.

## Desired outcome

A vocabulary for the layer exists in this packet: each concept defined once, with its preferred
term in English and French, its admitted terms, the fields that ground it, and its match to the
standard vocabularies (PROV, OpenTelemetry, DCAT, SKOS, DQV) an ontology would align with. It
includes umbrella names for the layer with their costs, and a mapping a provider adapter can follow.

## Decisions this packet supports

- Whether the layer keeps the name "tracing", gets a new umbrella name, or is named by two words.
  Naming is the owner's to rule on. This packet proposes and does not rename.
- Whether `dataset` and `score-config` are the right resource names, and whether `score` and
  `judgment` become resources.
- How jgwill/medicine-wheel#161 maps the five links, and which standard vocabulary carries
  criteria and judgment.
- What a second provider adapter must translate.

## What success makes easier

An adapter author reads one crosswalk table. An ontology maintainer reads one mapping list. An
episode cites a concept by its address and a reader in either language finds the same definition.
