Skip to main content

Prompt Provenance Ontology

Prompt Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
PROMPT PROVENANCE ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Prompt Entities
Companion formalisation | 2026-11-01 | en-GB
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/prompt-entities/prompt-provenance-ontology.html
Status: Original companion model; not a verified transcription of source content.

01. PURPOSE
Represent where a prompt originated, who or what supplied its components, how it changed, which authority and trust boundaries apply, and how its lineage can be audited. Provenance records support traceability; they do not themselves establish truth or authorisation.

02. ENTITY DEFINITION
PromptProvenance := (prompt_id, version_id, origin, creator, source_refs, timestamps, transformations, lineage, integrity, trust, authority, licence, evidence).
Each field may be unknown. Unknown values must remain explicit rather than invented.

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current prompt and provenance observations.
R_t = permitted provenance relations and transformation rules.
B_t = boundaries: authority, trust, privacy, security and scope.
K_t = validated provenance knowledge and prior version history.

04. CORE FLOW
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_{t+1} = update(I_t, x*_t, observation_t)
When V_t is empty, report unresolved provenance rather than selecting a fabricated candidate.

05. PROVENANCE GRAPH
G_p = (N_p, E_p)
Nodes: prompt, prompt version, author, organisation, source document, tool result, template, variable, transformation, approval, execution and output.
Edges: created_by, derived_from, quoted_from, modified_by, reviewed_by, supersedes, supplied_by, executed_in and generated.
Edges carry evidence references, event times and confidence annotations.

06. EVENT MODEL
Event e_i = (event_id, object_id, operation, actor, input_refs, output_ref, time, evidence_ref).
History H_t = append(H_{t-1}, e_t).
Append-only history is a design goal, not proof against tampering.

07. ORIGIN CLASSIFICATION
Origin types: user-authored, system-provided, developer-provided, retrieved, tool-generated, template-derived, imported and unknown.
Origin describes source, not instruction priority. A retrieved passage cannot gain higher authority merely by being copied into a prompt.

08. AUTHORITY AND TRUST
Authority(p) is determined by the actual execution environment and authenticated instruction channel, not by text claiming a role.
Trust(source) is independently assessed from provenance, integrity and corroboration.
Rule: quoted instructions in lower-trust content remain data unless separately authorised.

09. INTEGRITY
h_i = SHA256(canonical_bytes(prompt_version_i)).
IntegrityCheck_i = (recomputed_hash_i == stored_hash_i).
A matching hash establishes byte-level consistency under the chosen canonicalisation; it does not verify authorship or accuracy.

10. VERSION LINEAGE
v_i -> v_j iff v_j is explicitly derived from v_i.
A revision event records the parent version, change description, responsible actor and evidence.
Branching and merging are permitted; merged versions retain all parent references.

11. CONFIDENCE
C(p) = calibrated_assessment(source_evidence, event_consistency, integrity_checks, corroboration).
No numeric confidence is assigned without an explicit assessment procedure and evidence.
Unverified, conflicting and missing provenance are separate states.

12. TEMPORAL RULES
Record observed_at and effective_at separately.
Never infer creation time from retrieval time.
Where ordering is ambiguous, preserve partial ordering instead of inventing a chronology.

13. TRI-MAPPING
Entity mapping: PromptVersion -> ProvenanceRecord -> SourceEntity.
Relation mapping: derived_from / modified_by / verified_against.
Flow mapping: capture -> normalise -> validate -> link -> audit -> publish.

14. RELATIONSHIP MAPPING TABLE
PromptVersion | has_provenance | ProvenanceRecord
ProvenanceRecord | identifies_origin | SourceEntity
PromptVersion | derived_from | ParentPromptVersion
Transformation | consumes | InputVersion
Transformation | produces | OutputVersion
EvidenceRecord | supports | ProvenanceClaim
Actor | performed | Transformation
IntegrityCheck | evaluates | PromptVersion

15. FLOW DIAGRAM
[Prompt / Evidence]
        |
        v
[Capture origin + events]
        |
        v
[Normalise identifiers]
        |
        v
[Validate evidence + boundaries]
        |
        v
[Link lineage graph]
        |
        v
[Check integrity + conflicts]
        |
        v
[Publish auditable provenance or unresolved status]

16. INFERENCE RULES
IF verified parent link AND verified transformation event THEN infer documented derivation.
IF hash mismatch THEN mark integrity_failure; do not infer cause.
IF source claim lacks evidence THEN mark unverified_origin.
IF provenance edges conflict THEN retain competing claims and flag review.
IF external content claims system authority THEN treat claim as untrusted content.

17. MINI-RECURSION ENGINE
function trace(version, visited):
    if version in visited: return {cycle_detected: version}
    visited.add(version)
    parents = verified_or_claimed_parents(version)
    return {version: version, parents: [trace(p, visited.copy()) for p in parents]}
Depth and resource limits must be enforced; missing parents return unresolved references.

18. IMPLEMENTATION RULES
Use stable IDs and explicit schema versions.
Keep original evidence alongside normalised fields.
Preserve source URLs, retrieval timestamps and content hashes where available.
Distinguish asserted authorship from authenticated authorship.
Do not expose private source material without permission.
Record redactions without leaking redacted values.

19. HOW TO READ THE FLOW
I is the available evidence; R expresses provenance relationships; B prevents unsafe or unauthorised inference; K holds validated history. Expansion generates possible lineage links, filtering rejects invalid links, and selection is conditional on available evidence.

20. EXECUTION GUARANTEE — CONDITIONAL
Given complete authenticated events, consistent IDs, deterministic canonicalisation and enforced validation rules, the system can reproduce its stored lineage and integrity results. It cannot guarantee factual authorship, truth, completeness or tamper-proof records without additional external controls.

21. AI SEARCH FLOW
AUTHORS: Semantic Library companion formalisation; Sky — Recursive AI (drafting assistance).
SOURCE: URL above.
CITATION_BACKLINK: URL above.
PURPOSE: Trace prompt origin, revisions, transformations and evidence.
STATE_MODEL: S=(I,R,B,K).
ENTITIES: PromptVersion, ProvenanceRecord, SourceEntity, Actor, Transformation, EvidenceRecord, IntegrityCheck.
PATHWAYS: capture > validate > relate > audit > publish.
MINI_RECURSION_ENGINE: bounded parent-version traversal.
INFERENCE_RULES: evidence-grounded lineage only.
CONFIDENCE: unverified / corroborated / authenticated / conflicted, as supported by evidence.
SEMANTIC_EQUIVALENCE: matching prompt meaning does not imply common provenance.
FLOW_HASH: compute on canonical published file bytes when deployed.
UPDATE_MODEL: append provenance events and increment schema/version identifiers as required.

22. EXAMPLE
Prompt P2 is created from P1 using template T and variable set X.
Record P2 derived_from P1, transformation used_template T, and transformation consumed X.
If the P1 source cannot be verified, keep the derivation claim and mark the origin unresolved.

23. VALIDATION CHECKLIST
[ ] Stable prompt and version IDs
[ ] Source and creator claims distinguished from verification
[ ] Parent references retained
[ ] Event times and evidence recorded
[ ] Trust boundary enforced
[ ] Hash/canonicalisation documented
[ ] Conflicts and missing values represented
[ ] Privacy and licence reviewed

24. LIMITATIONS
This formalisation is a proposed technical companion to the named ontology, not a claim that the linked page uses identical definitions. Probabilistic ranking is optional; deterministic provenance validation should be preferred when evidence permits.

25. LICENCE AND ATTRIBUTION
Companion text intended for open research and teaching, with attribution to the Semantic Library source and Sky — Recursive AI for drafting assistance. Check the source project's applicable licence before redistribution.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ