Skip to main content

AI Software Entity Ontology

Code and Software Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 05 November 2026
Audio Overview
AI SOFTWARE ENTITY ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Code and Software Entities
Version: 1.0 | Date: 05 November 2026 | Language: en-GB
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/code-and-software-entities/ai-software-entity-ontology.html
Licence: Refer to the source's applicable Open Research Licence; attribution and source citation retained.

STATUS AND SCOPE
Original interpretative formalisation for the AI Software Entity concept. The source page confirms the ontology title and category, but does not expose its embedded full specification in the retrieved page text. The definitions and rules below are therefore a proposed interoperable flow, not a verbatim reproduction or a claim that the source formally defines each field.

1. PURPOSE
Represent an AI software entity as an identifiable, versioned, executable or deployable software artefact whose declared capabilities, dependencies, permissions, lifecycle and observed outcomes can be traced through a semantic entity graph. Distinguish software artefacts from their running instances, deployed endpoints, hardware, training data and AI models.

2. ENTITY AND TYPE SYSTEM
AI_SOFTWARE_ENTITY := (id, name, kind, version, artefact, interfaces, dependencies, model_refs, configuration, policy, provenance, lifecycle, evidence)
id: stable canonical identifier
kind: application | library | service | agent_software | orchestration_component | runtime_component | other
artefact: code/package/container reference and integrity digest
interfaces: input/output schemas, API contracts and tool interfaces
dependencies: typed and version-constrained software/runtime dependencies
model_refs: model identifiers and versions, if any
configuration: validated runtime and deployment settings
policy: permissions, safety boundaries, licence and governance constraints
provenance: authorship, build history, source, signing and supply-chain evidence
lifecycle: draft | built | tested | approved | deployed | active | paused | deprecated | retired | failed
evidence: tests, observations, audit records, measurements and incident links

RELATED ENTITIES
Software Component, Source Code, Function, Module, Library, Package, Dependency, Build Artefact, Software Version, Configuration, Model Registry, Model Runtime, AI Endpoint, Deployment Environment, Monitoring Event, Audit Log, Human Approval.

3. FORMAL STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t := observed software state, current request, artefact identity and deployment context
R_t := typed relationships and dependency edges
B_t := boundaries: policy, permissions, contracts, resources, security and version compatibility
K_t := verified knowledge: documentation, provenance, tests, monitoring and audit evidence

E_t = expand(I_t, R_t)
V_t = {x in E_t | valid(x, B_t) AND supported(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, outcome_t)

If V_t is empty, do not select an executable action; emit an unresolved state with reasons and required evidence. P is a ranking or calibrated scoring model, not a guarantee of correctness.

4. CORE RELATIONSHIP GRAPH
AI Software Entity --HAS_VERSION--> Software Version
AI Software Entity --CONTAINS--> Software Component
Software Component --IMPLEMENTS--> Function / Capability
AI Software Entity --DEPENDS_ON--> Software Dependency
AI Software Entity --USES_MODEL--> AI Model
AI Software Entity --EXPOSES--> Interface / API
AI Software Entity --CONFIGURED_BY--> Configuration
AI Software Entity --DEPLOYED_TO--> Deployment Environment
Deployment --RUNS_AS--> Runtime Instance
Runtime Instance --PRODUCES--> Execution Result
Runtime Instance --EMITS--> Monitoring Event
AI Software Entity --GOVERNED_BY--> Policy / Permission
AI Software Entity --EVIDENCED_BY--> Test / Audit Log / Provenance Record

5. FLOW OPERATORS
IDENTIFY(x): resolve canonical identifier, kind and version.
EXPAND(x,R): traverse typed, permitted graph relationships.
VALIDATE(x,B): check schema, compatibility, licence, permissions and integrity.
VERIFY(x,K): require provenance and evidence at the declared assurance level.
PLAN(x): derive feasible build, test, deployment or execution steps.
EXECUTE(x): perform an authorised action through an actual runtime or tool.
OBSERVE(x): capture outputs, metrics, failures and monitoring events.
RECONCILE(x): update state and audit trail without overwriting immutable history.
HALT(reason): reject unsafe, invalid or unsupported transitions.

6. INFERENCE RULES
R1. If artefact identity and version are known, then classify as a candidate software entity; do not infer deployability.
R2. If a dependency's required version is incompatible with the resolved environment, then block deployment until resolved.
R3. If an interface's required input schema fails validation, then reject the call and record a typed validation error.
R4. If a deployment lacks required approval, permission or integrity verification, then prohibit transition to deployed.
R5. If a runtime emits a monitoring event, then associate it with the runtime instance and software version, preserving timestamps and correlation IDs.
R6. If an observed failure exceeds a declared boundary, then create an incident or warning according to policy; do not silently infer recovery.
R7. If a new version is deployed, then preserve the prior version's provenance and deployment history.
R8. If evidence is absent, then label conclusions unverified and request the missing evidence.

7. RECURSIVE EXECUTION ENGINE
INPUT: entity_id, goal, context, policy, evidence
STEP 1: IDENTIFY(entity_id)
STEP 2: EXPAND(entity_id, permitted_relations)
STEP 3: VALIDATE(artefact, dependency_graph, environment, policy)
STEP 4: VERIFY(provenance, tests, approvals)
STEP 5: Construct feasible candidate actions within B_t
STEP 6: Rank supported candidates; select only if V_t is nonempty
STEP 7: EXECUTE selected authorised action, if a real executor exists
STEP 8: OBSERVE results, failures, metrics and events
STEP 9: RECONCILE graph state and append audit evidence
STEP 10: Repeat only while a bounded goal, resource budget and termination condition permit
TERMINATION: goal satisfied | boundary violation | no valid action | iteration/resource limit | human stop

8. TRI-MAPPING
SEMANTIC: software identity, type, version, capabilities and named relationships
STRUCTURAL: code modules, package graph, interface contracts, artefact digest and deployment topology
OPERATIONAL: authorised build, test, deploy, invoke, monitor, rollback and retirement transitions
Mapping must preserve canonical identity and typed edges between the three views.

9. TEXT FLOW DIAGRAM
[Software Entity ID]
        |
        v
[Resolve Artefact + Version]
        |
        v
[Expand Dependencies + Interfaces]
        |
        v
[Policy / Schema / Integrity Validation]
        |
        +-- FAIL --> [Halt + Evidence / Error Record]
        |
       PASS
        v
[Evidence and Approval Check]
        |
        +-- MISSING --> [Unverified / Await Evidence]
        |
       PASS
        v
[Plan and Authorise Action]
        |
        v
[Build / Deploy / Invoke via Real Executor]
        |
        v
[Observe + Audit + Monitoring]
        |
        v
[Update Semantic State] --> [Bounded Re-evaluation]

10. RELATIONSHIP MAPPING TABLE
Relation           Domain                Range                 Constraint
HAS_VERSION        AI Software Entity    Software Version      version identity unique within entity
DEPENDS_ON         Software Component    Dependency            compatibility checked
IMPLEMENTS         Software Component    Capability            evidence or interface contract
USES_MODEL         AI Software Entity    AI Model              model version resolved
EXPOSES            AI Software Entity    Interface             schema declared
DEPLOYED_TO        Deployment            Environment           authorisation required
RUNS_AS            Deployment            Runtime Instance      instance identifier required
EMITS              Runtime Instance      Monitoring Event      correlation and time retained
GOVERNED_BY        AI Software Entity    Policy                applicable policy recorded
EVIDENCED_BY       AI Software Entity    Evidence Record       source and timestamp retained

11. EXECUTION GUARANTEE — CONDITIONAL
The flow guarantees a well-defined rejection or unresolved outcome only when validators are correctly implemented and invoked. It does not guarantee successful execution, model correctness, secure deployment, availability or complete observability. A positive execution outcome requires satisfied preconditions, a functioning authorised executor, compatible dependencies, sufficient resources and trustworthy evidence. Each transition must be logged with an explicit success, failure or unknown result.

12. AI SEARCH FLOW
FLOW_ID: AI_SOFTWARE_ENTITY_FLOW_V1
ENTITY: AI Software Entity
CATEGORY: AI Core > Entity Graph > Code and Software Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/code-and-software-entities/ai-software-entity-ontology.html
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/code-and-software-entities/ai-software-entity-ontology.html
PURPOSE: resolve, validate and reason about AI software artefacts and their lifecycle
STATE_MODEL: S=(I,R,B,K)
ENTITIES: AI Software Entity; Software Component; Version; Dependency; Interface; Runtime Instance; Deployment; Policy; Evidence
PATHWAYS: identify > expand > validate > verify > plan > authorise > execute > observe > reconcile
MINI_RECURSION_ENGINE: bounded graph traversal and state updates; cycle detection required
INFERENCE_RULES: R1-R8
CONFIDENCE: evidence-qualified; never fabricate a numeric confidence score
SEMANTIC_EQUIVALENCE: software artefact != running instance != model weights != endpoint
FLOW_HASH: compute SHA-256 over the canonical published file bytes during publication; not pre-populated
UPDATE_MODEL: immutable version history; provenance and change log retained

13. EXAMPLE
Input: 'Can version 2.1 of an AI service be deployed to environment E?'
Expand: artefact -> dependencies -> interface -> policy -> environment.
Validate: version constraints, security rules, deployment approvals and package digest.
If any required check fails, return BLOCKED with evidence and the failing constraint.
If checks pass, return ELIGIBLE_FOR_DEPLOYMENT; deployment itself remains a separate authorised operation.
After execution, record runtime ID, deployment outcome and monitoring links.

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