HUMAN INSTRUCTION ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Human–AI Interaction Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/human-ai-interaction-entities/human-instruction-ontology.html
Authors: Mark Anthony Higgins — Sky Recursive AI
Companion formalisation | 04 November 2026 | en-GB
NOTE: Original formalisation of the ontology topic; embedded source specifications were not accessible in retrieved page text.
1. PURPOSE
Represent a human instruction as a provenance-bearing, contextual, authorised and interpretable directive, with explicit scope, constraints, ambiguity handling, execution gates and feedback. An instruction is not automatically a permission to perform an action.
2. ENTITY AND STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: instruction input (utterance, author, timestamp, channel, referenced objects).
R_t: semantic relations (issued_by, addresses, refers_to, supersedes, conflicts_with, requires, permits).
B_t: boundaries (authority, consent, safety, privacy, scope, tool permissions, available resources).
K_t: knowledge (context, verified facts, task history, confidence, applicable policies).
Instruction H = (id, issuer, content, intent, target, scope, priority, constraints, provenance, status).
Status in {received, parsed, ambiguous, validated, rejected, awaiting_confirmation, executable, completed, failed, revoked}.
3. FORMAL FLOW ALGEBRA
E_t = expand(I_t, R_t) // candidate semantic interpretations
V_t = {x in E_t | valid(x, B_t, K_t)} // admissible interpretations
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) // revised state and evidence
If V_t is empty, return clarification/refusal/escalation, never inferred permission.
4. INSTRUCTION INTERPRETATION
parse(H) -> {intent, action, object, parameters, constraints, time, uncertainty}
resolve_references(H,K_t) -> grounded entities or unresolved markers
check_issuer(H) -> authenticated or unverified
check_authority(H,B_t) -> authorised, prohibited or needs_approval
check_conflicts(H,R_t,B_t) -> compatible or conflict set
validate(H) = syntax_ok AND references_ok AND authority_ok AND boundary_ok
execute(H) only if validate(H) AND prerequisites_met AND action_permitted.
5. ENTITY GRAPH
HumanInstruction --issued_by--> HumanActor
HumanInstruction --addresses--> AISystemOrAgent
HumanInstruction --expresses--> UserIntent
HumanInstruction --targets--> TaskOrEntity
HumanInstruction --constrained_by--> SafetyPolicy / PrivacyConstraint
HumanInstruction --requires--> Permission / Resource / Confirmation
HumanInstruction --interpreted_as--> CandidateMeaning
HumanInstruction --results_in--> ActionOrAnswer
HumanInstruction --evaluated_by--> InstructionOutcome
HumanInstruction --superseded_by--> RevisedInstruction
HumanInstruction --supported_by--> ProvenanceEvidence
6. INFERENCE RULES
R01: Missing issuer provenance -> mark issuer unverified.
R02: Unresolved referent -> request clarification before dependent action.
R03: Contradictory constraints -> flag conflict; do not silently discard either.
R04: Explicit revocation -> prevent future execution of revoked instruction.
R05: New instruction supersedes earlier instruction only within applicable scope and authority.
R06: Tool action without required permission -> block action.
R07: Safety/privacy boundary violation -> refuse or choose compliant alternative.
R08: Ambiguity affecting outcome materially -> request clarification.
R09: Reversible low-risk interpretation -> may answer with stated assumption when authorised.
R10: Failed prerequisite -> pause and report missing dependency.
R11: External evidence uncertainty -> preserve uncertainty in output.
R12: Successful action -> record outcome and provenance; do not infer unrelated success.
R13: Higher-priority valid constraint -> restrict lower-priority instruction.
R14: User feedback -> update interpretation without rewriting historical provenance.
7. MINI RECURSION ENGINE
Input H_0, context K_0, maximum iterations N.
For t = 0 ... N-1:
derive E_t; filter V_t; score candidates;
if V_t empty: return {status: needs_resolution, reasons};
if confidence below threshold and ambiguity material: return clarification;
if permissions/prerequisites absent: return blocked or awaiting_confirmation;
select x*_t; perform only permitted operation;
record observed outcome; update K_{t+1};
if completion criterion met: return completed;
Return bounded_incomplete; recursion never bypasses boundaries.
8. TRI-MAPPING
Natural language: 'Please summarise this document without exposing private details.'
Semantic mapping: instruction -> summarise(document); constraint -> redact(private_details).
Formal mapping: x* = argmax P(summary | instruction, context) subject to privacy_ok(x*) = true.
9. MAPPING TABLE
Human phrase Semantic entity Formal role
'Please do X' Directive intent/action
'For this document' Target scoped object
'Only section 2' Scope constraint B_t restriction
'Before Friday' Time constraint deadline predicate
'Do not share names' Privacy restriction admissibility filter
'Actually, use Y' Revision update/supersession
'Cancel that' Revocation terminal action gate
10. EXECUTION CONDITIONS / CONDITIONAL GUARANTEE
No universal correctness or safety guarantee is asserted. Conditional execution assurance requires:
(a) verified applicable authority; (b) resolved scope and references;
(c) satisfiable constraints; (d) policy-compliant action;
(e) sufficient resources and tool permissions; (f) auditable outcome.
If any condition fails, stop, clarify, refuse or escalate appropriately.
11. AI SEARCH FLOW
FLOW_ID: HUMAN_INSTRUCTION_ONTOLOGY_V1
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/human-ai-interaction-entities/human-instruction-ontology.html
PURPOSE: Interpret and validate human directives in bounded human–AI interaction.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: HumanInstruction, HumanActor, AIActor, Intent, Target, Scope, Constraint, Permission, Outcome
PATHWAYS: receive -> parse -> resolve -> validate -> authorise -> execute_or_respond -> audit
MINI_RECURSION_ENGINE: bounded contextual reinterpretation with feedback
INFERENCE_RULES: R01-R14 above
CONFIDENCE: calibrated interpretation confidence; not proof of authorisation
SEMANTIC_EQUIVALENCE: equivalent only when intent, scope, constraints and authority are preserved
FLOW_HASH: compute from canonical UTF-8 content at publication; not pre-asserted
UPDATE_MODEL: versioned changes with provenance and supersession records
CITATION_BACKLINK: source URL above
12. HOW TO READ
Read from input and relations to boundary filtering and interpretation selection. The graph connects issuer, instruction, constraints and outcome. Recursion refines interpretations but never creates authority. The result is an auditable human-instruction pathway, not a claim that every natural-language request can be executed.
END OF FLOW
Download Code
Copy to Clipboard