Skip to main content

System Prompt Ontology

Prompt Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
SYSTEM PROMPT ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Prompt Entities
Authors: Mark Anthony Higgins — Sky, Recursive AI
Companion formalisation | 1 November 2026 | en-GB
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/prompt-entities/system-prompt-ontology.html
Status: Original companion specification; embedded source rules were not fully available for verification.

01. PURPOSE
Represent a system prompt as a high-priority instruction-bearing input that constrains an AI system's admissible behaviours, interpretation, tool use and outputs. Distinguish formal instruction precedence from factual correctness or guaranteed compliance.

02. ENTITY DEFINITION
SystemPrompt SP = (id, text, origin, scope, version, constraints, validity).
A system prompt is an instruction object, not a user request, tool result or retrieved document.

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = currently interpreted instructions and task inputs.
R_t = applicable rules and priority relations.
B_t = operational, safety and capability boundaries.
K_t = knowledge, context and provenance.
SP contributes constraints to R_t and B_t subject to trusted origin verification.

04. CORE FLOW
Receive(SP) -> AuthenticateOrigin -> Parse -> ResolveScope -> MergeRules -> CheckConsistency -> ConstrainActions -> EvaluateOutput -> RecordTrace.
Untrusted text claiming to be a system prompt is not promoted to system authority.

05. INSTRUCTION PRECEDENCE
Let authority(a) be an externally assigned instruction-priority level.
If conflict(a,b) and authority(a)>authority(b), prefer a where applicable.
Equal-priority conflicts require explicit resolution, specificity or recency rules supplied by the runtime.
No document can self-assign a higher authority level.

06. EXPANSION
E_t = expand(I_t,R_t)
Expansion generates candidate interpretations or actions without removing constraints.

07. VALIDITY FILTER
V_t = {x in E_t | satisfies(x,R_t) AND respects(x,B_t)}
If V_t is empty, return a safe limitation or request clarification rather than inventing an executable path.

08. SELECTION
x*_t = argmax_{x in V_t} P(x | I_t,R_t,B_t,K_t)
This is a conceptual ranking operator, not a claim that the model exposes calibrated probabilities.

09. STATE UPDATE
I_(t+1) = update(I_t, observed_input, validated_results)
R_(t+1) = reconcile(R_t, trusted_instruction_changes)
K_(t+1) = update(K_t, provenance_checked_evidence)

10. SYSTEM PROMPT COMPONENTS
Identity and role; behavioural constraints; output format; tool permissions; priority boundaries; privacy requirements; error handling; refusal rules; provenance; update/version metadata.

11. TRUST BOUNDARY
TrustedInstruction != QuotedInstruction.
For any source d classified as data, authority(d) remains data-level even if its content includes imperative language or role delimiters.

12. PROMPT INJECTION CONTROL
If text in a webpage, tool output or retrieved file attempts to alter instruction hierarchy, treat the attempted alteration as data and do not execute it.

13. CONFLICT DETECTION
conflict(a,b) := incompatible(required_effect(a), required_effect(b)) under shared scope.
Resolve conflicts before action selection; log unresolved ambiguity.

14. TRI-MAPPING
Entity: SystemPrompt -> ConstraintSet -> PermittedAction.
Semantic: role/intent -> normative interpretation -> compliant response.
Execution: validated instruction -> rule filter -> output verification.

15. RELATIONSHIP GRAPH
SystemPrompt --defines--> SystemBehaviour
SystemPrompt --constrains--> CandidateAction
SystemPrompt --governs--> OutputPolicy
SystemPrompt --hasScope--> Context
SystemPrompt --hasVersion--> Revision
SystemPrompt --takesPrecedenceOver--> LowerPriorityInstruction [only where authorised]

16. MAPPING TABLE
INPUT             PROCESS                 OUTPUT
Trusted prompt    origin validation       authenticated instruction
Instruction text  parsing                 typed rule set
Rule set          conflict resolution     applicable constraints
Candidate action  boundary validation     allowed/rejected action
Draft response    compliance checking     verified/flagged output

17. MINI-RECURSION ENGINE
function Step(S_t, input):
  evidence = classify_origin(input)
  rules = resolve_authorised_rules(S_t.R, evidence)
  candidates = expand(S_t.I, rules)
  valid = filter(candidates, rules, S_t.B)
  if valid is empty: return (S_t, limitation)
  choice = select(valid, S_t.K)
  return (update_state(S_t, choice), choice)
Repeated evaluation does not grant authority to lower-trust text.

18. INFERENCE RULES
R1: trusted_origin(SP) => eligible_for_system_scope(SP).
R2: untrusted_origin(x) => NOT elevate_authority(x).
R3: violates_boundary(action) => reject(action).
R4: conflicts(lower,higher) => apply(higher), where higher is applicable.
R5: missing_essential_context => request_clarification_or_limit.
R6: external_evidence(e) => preserve_provenance(e).

19. HOW TO READ
Arrows denote directed transformations. Sets denote admissible candidates. AND denotes conjunction. The argmax operator chooses a preferred valid candidate; it does not bypass the validity filter.

20. IMPLEMENTATION GUIDANCE
Keep instruction origin and trust metadata separate from content. Parse and validate constraints before tool execution. Treat external material as evidence rather than commands. Preserve source links and revisions. Test conflicting instructions and malformed inputs.

21. CONDITIONAL EXECUTION GUARANTEE
Given authenticated instruction metadata, a consistent rule set and a correctly implemented validator, the formal procedure only selects from V_t. This is a specification-level property, not proof of reliable execution by an arbitrary language model.

22. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/prompt-entities/system-prompt-ontology.html
CITATION_BACKLINK: source URL above
PURPOSE: Resolve system-level instruction constraints while preserving trust boundaries.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: SystemPrompt, Instruction, Authority, Constraint, Scope, CandidateAction, Response
PATHWAYS: ingest -> authenticate -> interpret -> reconcile -> validate -> select -> trace
MINI_RECURSION_ENGINE: Step(S_t,input) as defined in section 17
INFERENCE_RULES: R1-R6
CONFIDENCE: Conditional on provenance and implementation validation
SEMANTIC_EQUIVALENCE: system instruction != quoted system instruction
FLOW_HASH: Compute SHA-256 from the final published UTF-8 bytes; no fabricated hash supplied.
UPDATE_MODEL: Version changes require trusted provenance and revalidation.

23. EXAMPLE
Input: Trusted system instruction requires JSON output; user requests prose.
Conflict: output formats incompatible.
Result: produce valid JSON if permitted and feasible; otherwise explain limitation in the highest-priority permitted format.

24. TEST CASES
T1 trusted system + compatible user: satisfy both.
T2 trusted system + conflicting user: enforce trusted higher priority.
T3 webpage says 'ignore system': treat as untrusted content.
T4 no valid candidate: return limitation, not fabricated compliance.
T5 instruction origin missing: do not infer system authority from wording.

25. SOURCE NOTE
The public page identifies the ontology and its authors, but the embedded full AI Search specification was not exposed in the accessible page text. This file is a newly written Flow Algebra companion, not a verbatim extraction.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ