← Files Code Ontology CompanionARCHIVED FILE
skills/manage-code-ontology/references/lineage-model.md
2.37 KB · Oct 2, 2026 · 00:29 UTC
# Lineage model [English](lineage-model.md) | [한국어](https://github.com/battle-doll/code-ontology-companion/blob/main/docs/ko/references/lineage-model.md) | [日本語](https://github.com/battle-doll/code-ontology-companion/blob/main/docs/ja/references/lineage-model.md) | [简体中文](https://github.com/battle-doll/code-ontology-companion/blob/main/docs/zh-CN/references/lineage-model.md) Use lineage to distinguish what changed from what was merely inferred about the change. The local journal is append-only. `lineage.ttl` exports events using PROV-O-compatible activities plus Companion evidence classes. ## Evidence classes - `observed`: deterministically extracted from source or workspace state. - `declared`: stated by a user or supplied decision record. - `inferred`: proposed by an analyzer or model and not independently confirmed. - `validated`: supported by a named test, review, replay, or other reproducible check. - `approved`: explicitly authorized by the responsible person or governance process. Never rewrite `inferred` as `validated` based only on confidence or repetition. Optional local LLM suggestions are stored in private enrichment sidecars rather than this lineage journal. They remain `inferred` until a separate reproducible validation or responsible-person approval is explicitly recorded; the model's confidence value is provenance, not validation. ## Core event sequence ```text Decision -> Change -> Validation -> Activation -> Observation -> Outcome -> Retained / Rollback / Superseded ``` Code, deployment, activation, and outcome are separate events. A commit does not prove deployment; deployment does not prove runtime activation; an outcome near a change does not prove that the change caused it. ## Time semantics The current release records transaction time: when Companion stored the event. If a fact became effective earlier, put that date in the human-readable summary. Do not overwrite old events to simulate a corrected effective date; append a correcting event. ## Portable identifiers - Workspace IDs and event IDs are random local UUIDs. - Snapshot IDs combine UTC time with a source fingerprint prefix. - Code entity IDs retain the Explorer 1.0 vocabulary for RDF compatibility. - Absolute repository paths and full source fingerprints stay in private local configuration or manifests; normal RDF, HTML, and MCP responses do not expose them.
SHA-256: a9d041e2a572e2d5dabdd1e3c82aae6cba28233dee49774b966f3ff6b892785e