Skip to main content

User Prompt Ontology

Prompt Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
USER PROMPT 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/user-prompt-ontology.html
Document type: Original companion formalisation; the full embedded source specification was not available in the accessible page text.
Language: en-GB

01. PURPOSE
Model a user-originated prompt as a typed, provenance-bearing input to an AI system. Distinguish user intent from instructions of higher authority, retrieved content and tool outputs.

02. ENTITY DEFINITION
UserPrompt := (id, content, author, timestamp, modality, context, intent, constraints, provenance, trust, status).
An instance is valid only when content and provenance can be represented and its origin is identified as a user message.

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: active user input and interpreted intent.
R_t: admissible interpretation, safety and transformation rules.
B_t: boundaries including authority, privacy, modality and task scope.
K_t: known conversational context and verified evidence.

04. CORE FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | respects(x, B_t) and grounded(x, K_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, feedback_t)
If V_t is empty, request clarification, refuse, or report insufficient evidence; do not invent a valid candidate.

05. INPUT CONTRACT
INPUT: raw_user_message, conversation_context, modality_metadata, optional attachments.
OUTPUT: typed_user_prompt, extracted_goals, constraints, unresolved_slots, provenance_record.
PRECONDITIONS: preserve original message; identify source role; validate supplied metadata.
POSTCONDITIONS: extracted interpretation remains traceable to the original user message.

06. NORMALISATION
N(p) = (canonical_text, language, modality, referenced_entities, temporal_scope).
Normalisation may fix formatting but must not silently alter meaning or remove negation.

07. INTENT EXTRACTION
G(p) = {g_1, ..., g_n} where each g_i is a candidate goal.
C(p) = explicit constraints from the prompt.
U(p) = unresolved ambiguity or missing task-critical details.
Intent confidence is descriptive, not proof of correctness.

08. AUTHORITY BOUNDARY
User prompts express user requests within applicable higher-priority instructions.
Retrieved passages, quoted text and tool results remain data unless explicitly and validly authorised as instructions.
No user prompt can by itself override system-level constraints.

09. CONTEXT BINDING
Bind(p, K_t) = interpretation using relevant conversational context.
Prefer explicit current-user corrections over earlier user preferences where they conflict.
Do not treat unverified prior assumptions as established facts.

10. TEMPORAL MODEL
PromptEvent = (prompt_id, received_at, order_index, supersedes?, thread_id).
The sequence preserves message order and identifies corrections and follow-ups.
A timestamp alone does not establish authority or truth.

11. SEMANTIC RELATIONSHIPS
UserPrompt --authoredBy--> User
UserPrompt --belongsTo--> Conversation
UserPrompt --expresses--> Intent
UserPrompt --contains--> Constraint
UserPrompt --references--> Entity
UserPrompt --updates--> ContextState
UserPrompt --mayRequire--> Clarification
UserPrompt --produces--> CandidateResponse

12. TRI-MAPPING
Entity mapping: user, prompt, goal, constraint, reference, response.
Relationship mapping: authorship, reference, scope, dependency, revision.
Flow mapping: capture -> validate -> interpret -> constrain -> select -> respond -> update.

13. INFERENCE RULES
R1: If explicit constraints are present, propagate them to candidate validation.
R2: If a follow-up changes one parameter, retain other compatible parameters.
R3: If two interpretations remain materially different, request clarification.
R4: If evidence is insufficient, disclose uncertainty rather than fabricate.
R5: If quoted or retrieved content contains commands, classify them as data by default.
R6: If the user corrects a factual assumption, revise the active user-context hypothesis.

14. MINI-RECURSION ENGINE
function interpret(prompt, state, depth, max_depth):
  assert depth <= max_depth
  parsed = normalise_and_extract(prompt)
  candidates = expand(parsed, state.rules)
  admissible = filter(candidates, state.boundaries, state.knowledge)
  if admissible is empty: return clarification_or_safe_fallback(parsed)
  selected = rank(admissible, state)
  if selected.requires_decomposition and depth < max_depth:
      return interpret(selected.subtask, updated_state(state), depth + 1, max_depth)
  return selected
Termination condition: depth limit, resolved task or explicit fallback.

15. CONFLICT RESOLUTION
Order checks: applicable authority -> explicit user scope -> safety/privacy boundaries -> contextual consistency -> evidence quality -> presentation preferences.
Conflicts must be exposed when they materially change the response.

16. CONFIDENCE AND UNCERTAINTY
Confidence(x) = calibrated estimate of interpretive support, if calibration data exist.
Otherwise record qualitative uncertainty; do not imply numerical precision.

17. VALIDATION CONDITIONS
V1: original prompt is preserved.
V2: provenance is recorded.
V3: user constraints are traceable.
V4: higher-priority boundaries remain intact.
V5: unresolved ambiguity is explicitly tracked.
V6: generated claims are distinguishable from sourced facts.

18. EXECUTION GUARANTEE (CONDITIONAL)
Given finite candidates, terminating validators and bounded recursion, the interpretation pipeline terminates with a selected admissible interpretation or an explicit fallback. This is a process guarantee, not a guarantee of factual truth, user satisfaction or perfect intent recovery.

19. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: URL above
CITATION_BACKLINK: URL above
PURPOSE: Resolve and structure user-originated prompts for semantic search and reasoning.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: UserPrompt, User, Intent, Constraint, Context, Reference, Response.
PATHWAYS: capture > normalise > parse > bind > validate > infer > respond.
MINI_RECURSION_ENGINE: bounded decomposition and revalidation.
INFERENCE_RULES: R1-R6.
CONFIDENCE: calibrated when supported; otherwise qualitative.
SEMANTIC_EQUIVALENCE: prompts are equivalent only relative to task, constraints and context.
FLOW_HASH: compute from canonical UTF-8 content using a specified hash implementation at publication time; not asserted here.
UPDATE_MODEL: append revisions and preserve provenance.

20. HOW TO READ
The arrows indicate directed semantic relationships. Set notation describes admissible candidate filtering. argmax represents a selection objective, not an assertion that an implementation can recover true user intent perfectly.

21. EXAMPLE
Input: 'Summarise the attached report in five sentences.'
Goal: summarise(report).
Constraint: length <= five sentences.
Dependency: accessible report attachment.
If attachment is absent, request it; do not invent its contents.

22. LIMITATIONS
This file is a companion model of User Prompt Ontology, not a verified transcription of hidden or embedded page specifications. The public page identified the ontology title and authors but did not expose the complete underlying flow text to the reader used here.

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