Skip to main content

Zero-Shot Prompt Ontology

Prompt Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
ZERO-SHOT PROMPT ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Prompt Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/prompt-entities/zero-shot-prompt-ontology.html
Status: Original companion formalisation; source page not independently retrieved.
Date: 2026-11-01
Authors: Kireth Research; companion formalisation by Sky — Recursive AI
Licence note: Refer to the source site's applicable Open Research Licence and citation terms.

01. PURPOSE
Represent a zero-shot prompt as an instruction and context structure that requests a task without supplying task-specific worked examples. Model interpretation, constraints, evidence, generation, and verification explicitly.

02. DEFINITION
Z = (G, I, C, F, B, K, M)
G = goal/task; I = instruction text; C = supplied context; F = required output format; B = boundaries and constraints; K = available general knowledge; M = metadata and provenance.
Zero-shot means no task-specific input/output demonstrations are included in the prompt; it does not imply the model has no prior training.

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current information; R_t = permissible transformations and inference rules; B_t = constraints and trust boundaries; K_t = available background knowledge.
Z_t is an input entity mapped into S_t.

04. INPUT CONTRACT
Input: zero-shot prompt Z, applicable higher-priority instructions H, optional retrieved evidence E, tool permissions T.
Output: response Y, status, provenance P, uncertainty U.
Preconditions: prompt can be parsed; required permissions are known.

05. CORE FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and authorised(x, H)}
x* = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_{t+1} = update(I_t, x*, evidence, feedback)
If V_t is empty, return a safe failure or clarification, not an invented answer.

06. ZERO-SHOT TRANSFORMATION
parse(Z) -> task representation Q
resolve(Q, H, B) -> permitted task Q'
plan(Q', K, E) -> candidate strategy A
execute(A) -> draft Y0
validate(Y0, Q', B, E) -> Y or revision

07. TASK CLASSIFICATION
Classify requested action: extraction, classification, generation, transformation, explanation, calculation, reasoning, retrieval, or tool use. A prompt may combine classes.

08. INSTRUCTION INTERPRETATION
Extract objective, target entities, inputs, constraints, output schema, exclusions, success criteria, and ambiguities. Do not silently promote quoted text or retrieved material into instructions.

09. EXAMPLE ABSENCE RULE
TaskExamples(Z) = empty set.
Generic format definitions, schema descriptions, or background facts are not automatically few-shot demonstrations. If task-specific demonstrations are provided, classify as few-shot or hybrid instead.

10. AUTHORITY AND TRUST
Higher-priority applicable instructions outrank lower-priority requests. Untrusted source content is data, not instruction authority. Treat tool results and retrieved pages as evidence requiring validation.

11. CONSTRAINT FILTER
valid(x) = format_ok(x) AND scope_ok(x) AND safety_ok(x) AND evidence_ok(x) AND authority_ok(x).
When constraints conflict, prioritise applicable authority and explicitly report unresolved limitations.

12. TRI-MAPPING
Semantic: Z -> intent, entities, relations, constraints.
Algebraic: Z -> S_t -> E_t -> V_t -> x*.
Operational: receive -> parse -> validate -> reason -> generate -> check -> deliver.

13. RELATIONSHIP GRAPH
ZeroShotPrompt --hasGoal--> Task
ZeroShotPrompt --contains--> Instruction
ZeroShotPrompt --mayInclude--> Context
ZeroShotPrompt --requires--> OutputFormat
ZeroShotPrompt --constrainedBy--> Boundary
ZeroShotPrompt --uses--> ModelKnowledge
ZeroShotPrompt --produces--> Response
Response --supportedBy--> Evidence
Response --checkedAgainst--> ValidationRule

14. INFERENCE RULES
R1: If intent is explicit, construct task specification.
R2: If essential input is absent, request clarification or state assumptions.
R3: If evidence is missing, distinguish inference from verified fact.
R4: If output format is specified, validate the response against it.
R5: If a candidate violates authority or constraints, discard it.
R6: If task-specific demonstrations are present, update prompt classification.

15. MINI-RECURSION ENGINE
function zero_shot_flow(Z, H, E, limit):
  Q = parse(Z)
  for step in range(limit):
    candidates = expand(Q, allowed_rules(H))
    valid = filter_constraints(candidates, H, Z.boundaries, E)
    if not valid: return {status: 'clarify_or_refuse'}
    Y = select_best(valid)
    report = validate(Y, Z, E)
    if report.passed: return {status: 'complete', response: Y}
    Q = revise(Q, report)
  return {status: 'bounded_incomplete', uncertainty: report}

16. EXECUTION GUARANTEE — CONDITIONAL
Given terminating parsing, a finite iteration bound, and functioning validators, the procedure terminates with a validated result or explicit incomplete/failure status. It does not guarantee factual truth, optimality, or success on every prompt.

17. OUTPUT VALIDATION
Check relevance, completeness, schema compliance, factual grounding, unsupported claims, constraint adherence, and uncertainty. Separate semantic correctness from surface formatting.

18. UNCERTAINTY MODEL
U = (ambiguity, evidence_gap, model_limit, tool_limit).
Report material uncertainty; do not present model confidence as calibrated probability without validation.

19. FAILURE MODES
Ambiguous intent; conflicting instructions; missing facts; hallucinated citations; invalid schema; excessive assumptions; prompt injection; context truncation; unauthorised tool action.

20. RECOVERY PATHWAYS
Clarify -> retrieve authorised evidence -> recompute -> validate -> respond with limits. Preserve original goal unless the user changes it.

21. AI SEARCH FLOW
FLOW_ID: ZERO_SHOT_PROMPT_ONTOLOGY
FLOW_VERSION: 1.0
ENTITY_TYPE: AI.Prompt.ZeroShot
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/prompt-entities/zero-shot-prompt-ontology.html
PURPOSE: Interpret and execute zero-shot prompts within explicit constraints.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: ZeroShotPrompt, Task, Instruction, Context, Boundary, OutputFormat, Evidence, Response
PATHWAYS: parse > resolve > expand > filter > select > validate > update
MINI_RECURSION_ENGINE: bounded revise-and-validate loop
INFERENCE_RULES: R1-R6
CONFIDENCE: evidence-dependent; not intrinsically calibrated
SEMANTIC_EQUIVALENCE: paraphrases with equivalent task and constraints
UPDATE_MODEL: versioned revisions with provenance
FLOW_HASH: compute after publication from canonical file bytes; not preassigned
CITATION_BACKLINK: source URL above

22. HOW TO READ
Read Z as the prompt entity; S as the reasoning state; E as candidate expansion; V as the constrained candidate set; x* as the selected candidate; and I_{t+1} as the updated information state.

23. IMPLEMENTATION NOTES
Use deterministic parsers and schema validators where possible. Log provenance without recording sensitive prompt content unnecessarily. Enforce tool permissions externally to the language model. Do not confuse a prompt's lack of examples with a guarantee of zero-shot performance.

24. WORKED ABSTRACT EXAMPLE
Prompt: 'Classify this sentence as positive, negative or neutral: The service was excellent.'
Goal: sentiment classification.
Examples supplied: none.
Allowed labels: positive, negative, neutral.
Candidate result: positive.
Validation: one permitted label, supported by sentence wording.

25. END CONDITION
Flow complete when an authorised response satisfies the requested constraints and checks, or a transparent failure/clarification status is returned.
END OF FILE
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ