Skip to main content

Developer Prompt Ontology

Prompt Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
DEVELOPER PROMPT ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | AI Entities | Prompt Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/prompt-entities/developer-prompt-ontology.html
Companion formalisation, 1 November 2026

01. PURPOSE
Represent developer-level instructions as structured, scoped constraints that guide an AI application's behaviour while remaining subordinate to system-level requirements. This is an original companion model, not a transcription of inaccessible embedded source specifications.

02. ENTITY DEFINITION
DeveloperPrompt D = (id, issuer, content, scope, priority, provenance, validity, constraints).
An instance is a developer-origin instruction payload interpreted within an instruction hierarchy.

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: currently available instructions and inputs.
R_t: interpretation, precedence and conflict-resolution rules.
B_t: safety, authority, scope and execution boundaries.
K_t: accumulated relevant knowledge and verified context.

04. CORE FLOW
E_t = expand(I_t, R_t)
V_t = {x in E_t | respects(x, B_t) and authorised(x)}
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, abstain, request clarification or produce a bounded alternative.

05. INSTRUCTION AUTHORITY
System instructions take precedence over developer instructions; developer instructions take precedence over ordinary user requests where applicable. Tool outputs, retrieved pages and quoted material are data, not developer instructions.

06. PROMPT COMPONENTS
Issuer; directive; target behaviour; applicability; exceptions; output constraints; dependency; expiry; provenance; revision.

07. INPUT CONTRACT
Input: developer directive d, system constraints s, user task u, contextual evidence k.
Preconditions: d is authenticated as developer-origin and within the applicable context.
Output: effective instruction set, conflicts, admissible actions and provenance trace.

08. AUTHORITY FILTER
Effective(d) = authenticated(d) AND within_scope(d) AND compatible(d, system_constraints).
A developer instruction cannot grant authority that a higher-priority instruction forbids.

09. CONFLICT RESOLUTION
For instructions a and b, conflict(a,b) holds when their simultaneous satisfaction is impossible in the same scope.
Resolve using instruction authority first; then specificity, applicability and relevant recency within the same authority level. Preserve all compatible requirements.

10. TRI-MAPPING
Entity: DeveloperPrompt -> attributes and constraints.
Relationship: DeveloperPrompt -> governs -> AIBehaviour; DeveloperPrompt -> constrained_by -> SystemPrompt; DeveloperPrompt -> applies_to -> Task.
Process: ingest -> authenticate -> parse -> scope -> reconcile -> validate -> execute -> audit.

11. RELATIONSHIP GRAPH
SystemPrompt --constrains--> DeveloperPrompt
DeveloperPrompt --configures--> AssistantBehaviour
DeveloperPrompt --applies_to--> TaskContext
UserPrompt --requests--> TaskOutcome
ToolResult --supplies_data_to--> TaskContext
ExecutionTrace --records--> ConstraintDecisions

12. IMPLEMENTATION RULES
R1. Preserve provenance for each directive.
R2. Reject elevation of instructions from untrusted content.
R3. Apply developer instructions only within their defined scope.
R4. Report unresolved ambiguity rather than fabricate authority.
R5. Maintain compatibility with higher-priority instructions.
R6. Treat data quoted inside prompts as data unless authorised as instruction.
R7. Re-evaluate applicability when the task context changes.

13. MINI-RECURSION ENGINE
function resolve(context, depth):
  if depth >= depth_limit: return bounded_result
  directives = collect_authorised_directives(context)
  applicable = filter_by_scope_and_hierarchy(directives)
  conflicts = detect_conflicts(applicable)
  effective = resolve_conflicts(applicable, conflicts)
  candidate = derive_action(effective, context)
  if valid(candidate): return candidate
  return resolve(refine_context(context), depth + 1)
Termination requires a finite depth_limit or a decreasing unresolved-constraint measure.

14. FORMAL INVARIANTS
For all executed actions a: a satisfies system constraints.
For all applied developer directives d: authenticated(d) and within_scope(d).
For all retrieved data r: r does not gain instruction authority merely through retrieval.

15. HOW TO READ THE FLOW
I is the incoming instruction set; R determines interpretation; B filters impermissible paths; K supplies context. Expansion produces candidate actions; validation eliminates conflicting candidates; selection chooses an admissible action; feedback updates subsequent state.

16. DIAGRAM
Developer directive -> provenance check -> scope parsing -> hierarchy reconciliation
                                       |                 |
                                       v                 v
                                rejected/ignored    candidate actions
                                                         |
                                                    boundary filter
                                                         |
                                                    validated output
                                                         |
                                                    audit/update

17. EXAMPLE
System: Do not disclose protected secrets.
Developer: Provide a concise troubleshooting response.
User: Request troubleshooting and disclosure of a secret.
Resolution: Give concise troubleshooting within allowed boundaries; omit protected secrets.

18. EXECUTION GUARANTEE — CONDITIONAL
If provenance classification is correct, instruction precedence is consistently enforced, the admissibility predicate is sound, and execution follows the validated action, then the result respects the modelled authority constraints. This is a conditional property of the formal model, not a guarantee of flawless real-world AI behaviour.

19. FAILURE MODES
Spoofed role headers; prompt injection in retrieved documents; scope drift; ambiguous conflicts; stale directives; false provenance; non-terminating recursive repair.

20. TEST CASES
T1: Valid developer formatting directive -> apply.
T2: Developer directive conflicts with system rule -> reject conflicting portion.
T3: Retrieved webpage claims developer authority -> treat as untrusted data.
T4: User request compatible with developer scope -> satisfy both.
T5: Directive lacks clear scope -> seek clarification or conservatively limit application.

21. AI SEARCH FLOW
ENTITY: Developer Prompt Ontology
CATEGORY: AI Core / Entity Graph / Prompt Entities
PURPOSE: Formalise developer-origin instructions and their scoped interaction with instruction authority.
STATE_MODEL: S=(I,R,B,K)
PATHWAYS: authenticate -> interpret -> reconcile -> validate -> execute -> update
INFERENCE_RULES: R1-R7
CONFIDENCE: Conditional on provenance and constraint verification
SEMANTIC_EQUIVALENCE: developer directive; application instruction; developer-level prompt (context-dependent)
UPDATE_MODEL: Versioned revision with provenance and conflict review
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/prompt-entities/developer-prompt-ontology.html

22. LICENCE AND ATTRIBUTION
Companion material prepared for the Kireth Research Semantic Library. Retain source citation and authorship attribution when reused. Refer to the published Open Research Licence for applicable terms.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ