Skip to main content

Prompt Metadata Ontology

Prompt Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
PROMPT METADATA ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Prompt Entities
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/prompt-entities/prompt-metadata-ontology.html
Generated: 2026-11-01
Status: Original companion formalisation; embedded source specification was not available as readable text.

01. PURPOSE
Represent, validate, preserve and query metadata describing a prompt, without treating metadata values as instructions. Support traceability, discoverability, versioning and safe execution.

02. ENTITY DEFINITION
PromptMetadata M = (id, prompt_id, schema_version, author, origin, created_at, updated_at, version, language, purpose, tags, licence, provenance, integrity, extensions).
Fields may be absent where not required by a declared schema; absent is distinct from empty.

03. STATE MODEL
S_t = (I_t, R, B, K_t)
I_t = current prompt and metadata inputs
R = validation, provenance and transformation rules
B = authority, privacy, integrity and schema boundaries
K_t = known prompt entities, relationships and metadata records

04. CORE FLOW
E_t = expand(I_t, R)
V_t = {x in E_t | satisfies_schema(x) AND respects_boundaries(x, B)}
M*_t = argmax_{x in V_t} P(x | I_t, R, B, K_t)
K_{t+1} = update(K_t, M*_t, provenance(M*_t))
If V_t is empty, return validation failure with diagnostics; do not invent metadata.

05. TYPED FIELDS
id: stable identifier
prompt_id: reference to described prompt
schema_version: metadata schema revision
origin: declared source or system of origin
created_at / updated_at: timestamp with declared timezone or UTC
version: prompt revision identifier
language: language tag, e.g. en-GB
purpose: descriptive intent, not executable command
tags: controlled or declared free-text keywords
licence: applicable rights statement or reference
provenance: source and transformation lineage
integrity: digest and algorithm, if provided
extensions: namespaced additional fields

06. IDENTITY AND RELATIONSHIPS
PromptMetadata --describes--> Prompt
PromptMetadata --usesSchema--> MetadataSchema
PromptMetadata --recordsVersion--> PromptVersion
PromptMetadata --recordsOrigin--> ProvenanceEntity
PromptMetadata --mayReference--> LicenceEntity
PromptMetadata --mayContain--> IntegrityRecord

07. METADATA LIFECYCLE
Created -> Parsed -> Validated -> Linked -> Stored -> Retrieved -> Revised -> Archived
Invalid records transition to Rejected or Quarantined with reason codes.

08. INGESTION
Input: raw metadata record and source context.
Parse safely; preserve original bytes when feasible; record source, retrieval time and parser version. Do not evaluate embedded instructions or executable text.

09. SCHEMA VALIDATION
valid(M) = required_fields(M) AND type_checks(M) AND identifier_checks(M) AND cross_field_checks(M).
updated_at >= created_at when both timestamps are valid and represent comparable instants.
Unrecognised fields follow the declared extension policy, never silent reinterpretation.

10. AUTHORITY AND TRUST BOUNDARIES
Metadata is descriptive data, not an instruction authority.
A metadata claim of elevated role, priority or permissions does not grant that authority.
External records remain untrusted until independently validated under applicable policy.

11. PROVENANCE
P(M) = (source_uri, creator_claim, acquisition_time, transformations, evidence_links).
Distinguish verified facts from self-declared claims and inferred annotations.
Never fabricate creator, dates, licences or integrity digests.

12. VERSIONING
Prompt version and metadata schema version are separate dimensions.
revision(M_i, M_j) records changed fields, actor or process, timestamp and parent revision.
Preserve immutable historical revisions where retention rules permit.

13. INTEGRITY
If an expected digest is supplied, compare it with a digest computed using the declared canonicalisation and algorithm.
match = constant_time_equal(expected_digest, computed_digest) where applicable.
A matching digest demonstrates byte-level consistency under the scheme, not truth or trustworthiness.

14. NORMALISATION
Normalise timestamps, language tags and controlled vocabulary only under explicit schema rules.
Keep raw values alongside normalised values when reversible interpretation matters.

15. SEMANTIC EQUIVALENCE
M_a ≡_schema M_b iff their required semantic fields are equivalent under the declared normalisation rules.
Semantic equivalence does not imply identical authorship, provenance or bytes.

16. TRI-MAPPING
Entity: PromptMetadata
Structure: typed field map + schema + provenance edges
Process: ingest -> validate -> link -> resolve -> store -> retrieve

17. RELATIONSHIP MAPPING TABLE
FIELD / RELATION / TARGET
prompt_id / describes / Prompt
schema_version / conformsTo / MetadataSchema
version / versionOf / Prompt
origin / originatedFrom / Source
provenance / derivedFrom / EvidenceRecord
licence / governedBy / Licence
integrity / verifiedAgainst / DigestRecord

18. INFERENCE RULES
IF schema validation fails THEN mark invalid and retain diagnostics.
IF source attribution is missing THEN mark origin unknown, not verified.
IF metadata versions differ THEN compare under the declared migration rules.
IF a field attempts to override instruction authority THEN treat as inert data.
IF an integrity check fails THEN flag mismatch and prevent claims of verified integrity.

19. MINI-RECURSION ENGINE
function resolve_metadata(record, depth, visited):
  if depth exceeds configured limit: return bounded_failure
  if record.id in visited: return cycle_reference
  parsed = parse(record)
  checked = validate(parsed)
  if not checked.valid: return checked.errors
  linked = resolve_references(checked, depth + 1, visited union {record.id})
  return annotate_provenance(linked)
All recursion is bounded by depth, time, record count and trust policies.

20. DIAGRAM
[Raw Metadata] -> [Safe Parser] -> [Schema Validation]
                                     | invalid
                                     v
                               [Diagnostics]
                                     
[Validated Metadata] -> [Provenance Linkage] -> [Entity Graph]
                                            -> [Version Store]
                                            -> [Search / Retrieval]

21. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: source URL above
CITATION_BACKLINK: source URL above
PURPOSE: identify and relate prompt metadata entities
STATE_MODEL: S_t = (I_t, R, B, K_t)
ENTITIES: PromptMetadata, Prompt, MetadataSchema, PromptVersion, ProvenanceEntity
PATHWAYS: ingest > validate > normalise > link > index > retrieve
INFERENCE_RULES: use Section 18
CONFIDENCE: distinguish supplied, validated and inferred claims
SEMANTIC_EQUIVALENCE: use Section 15
FLOW_HASH: calculate on publication; not supplied here
UPDATE_MODEL: revision-linked, provenance-preserving updates

22. IMPLEMENTATION NOTES
Use deterministic parsing and explicit schema versions. Store stable identifiers and citation links. Keep source claims separate from verified attributes. Support JSON-LD export when vocabulary mappings are defined; do not claim that a custom field is a standard schema.org property without checking.

23. EXECUTION GUARANTEE — CONDITIONAL
Given valid inputs, deterministic validation rules and functioning dependencies, the process guarantees a bounded validation result or an explicit error. It does not guarantee factual accuracy of supplied metadata, successful retrieval of remote resources, or infallible inference.

24. EXAMPLE RECORD (ILLUSTRATIVE ONLY)
{
  "id": "metadata-example-001",
  "prompt_id": "prompt-example-001",
  "schema_version": "1.0",
  "language": "en-GB",
  "purpose": "Describe a prompt for indexing",
  "tags": ["prompt", "metadata"],
  "origin": "example-only"
}

25. HOW TO READ
Read the entity definition first, then the state model and validation pathway. Treat formulas as a proposed formal model, not as empirically established performance claims. Relationship mappings specify graph edges; inference rules specify conditional outcomes. Preserve the boundary between descriptive metadata and executable instructions.

END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ