Skip to main content

AI Dependency 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
SEMANTIC LIBRARY — AI DEPENDENCY ONTOLOGY
FLOW ALGEBRA — ORIGINAL INTERPRETATIVE FORMALISATION
Version: 1.0 | Date: 05 November 2026 | Language: en-GB
Authors of source ontology: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/code-and-software-entities/ai-dependency-ontology.html
Attribution: Kireth Research; original interpretative Flow Algebra prepared for the Semantic Library.
Scope note: The public page identifies the ontology but does not expose the underlying embedded specification as readable text. The formalisation below is an independent, explicit model, not a verified transcription.

1. PURPOSE
Represent and resolve dependencies among AI software components, packages, models, datasets, services, tools and execution environments, with version constraints, provenance, cycle handling, risk and deployment readiness.

2. FORMAL STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current component, requested operation and candidate dependency graph.
R_t = typed dependency relationships and resolution rules.
B_t = version, platform, licence, security, resource and policy boundaries.
K_t = known artefacts, manifests, versions, checksums, provenance and observed statuses.

Let G_t = (V_t, E_t) be a directed labelled graph.
An edge (u, kind, v) means component u depends on v under dependency kind.
Dependency kinds: requires, optional, build, runtime, development, peer, model, data, service, tool, hardware.
Each edge may have constraints: version range, feature flag, platform, environment, criticality and origin.

3. ENTITY DEFINITIONS
Dependency: D = (id, consumer, provider, kind, constraint, status, provenance).
Consumer: software or AI entity requesting a capability.
Provider: package, model, API, dataset, library, service, device or resource fulfilling it.
Constraint: admissible version, interface, capability, policy and environment predicate.
Resolution: chosen provider version and recorded justification.
Conflict: mutually unsatisfiable requirements.
Cycle: directed path returning to its origin; not always an error, but must be handled explicitly.
Lock record: reproducible mapping from dependency to exact artefact identity and integrity digest.

4. CORE FLOW ALGEBRA
E_t = expand(I_t, R_t)
C_t = {x in E_t | satisfies(x, B_t) and supported(x, K_t)}
If C_t is empty: emit unresolved state with evidence and do not invent a provider.
x*_t = argmax_{x in C_t} P(x | I_t, R_t, B_t, K_t)
I_{t+1} = update(I_t, x*_t, observed_result)
K_{t+1} = K_t union verified(observed_result)

The probability/ranking expression is a selection abstraction, not a claim of calibrated probabilities. For hard dependency constraints, a satisfiability solver or deterministic resolver is preferable.

5. RESOLUTION CONDITIONS
Valid(v, env) iff:
  exists matching artefact AND
  version_constraint(v) AND
  interface_compatible(v) AND
  environment_compatible(v, env) AND
  policy_permitted(v) AND
  integrity_verified(v).
Ready(root) iff every mandatory reachable dependency is resolved and validated.
Optional dependencies may be absent only when their absence is explicitly supported.

6. INFERENCE RULES
R1: requires(A,B) and requires(B,C) => transitively_requires(A,C), with path provenance.
R2: conflicting_version_constraints(B) => resolution_conflict(B).
R3: mandatory(B) and not resolved(B) => blocked(consumer(B)).
R4: optional(B) and not resolved(B) => degraded_or_unavailable(feature(B)), not necessarily blocked.
R5: version_change(B) => invalidate affected compatibility and test evidence.
R6: compromised(B) => flag all reachable consumers for review; do not automatically claim compromise of each consumer.
R7: verified_lock(B, digest) and digest_matches(B) => reproducible_identity(B), subject to availability of the artefact.
R8: cycle(G) => classify strongly connected component and apply an explicit cycle policy.
R9: changed_environment(env) => revalidate environment-sensitive dependencies.
R10: no evidence for an edge => unknown, not false.

7. TRI-MAPPING
Semantic layer: consumer --depends_on[kind, constraint]--> provider.
Structural layer: directed typed edge, version metadata, graph reachability and provenance.
Operational layer: discover -> constrain -> resolve -> verify -> test -> lock -> monitor.
A semantic relation is not sufficient evidence that the dependency is installable or operational.

8. RECURSIVE RESOLUTION ENGINE
Input: root, manifest, environment, policy, registry snapshot.
Step 1: Read declared direct dependencies and attach provenance.
Step 2: Expand mandatory dependency edges recursively.
Step 3: Collect and unify version/interface/environment constraints.
Step 4: Detect strongly connected components and conflicts.
Step 5: Enumerate admissible providers without crossing policy boundaries.
Step 6: Resolve candidates, recording alternatives and rejection reasons.
Step 7: Verify artefact integrity, licence, security policy and availability.
Step 8: Run applicable integration or compatibility checks.
Step 9: Persist a lock record, evidence and status.
Step 10: Re-run only impacted graph regions when versions, policies or environments change.
Termination condition: no new unresolved reachable mandatory nodes, or explicit failure/budget limit.

9. FLOW DIAGRAM
[Root AI Component]
        |
        v
[Declared Dependencies]
        |
        v
[Recursive Graph Expansion] --> [Cycle / Conflict Detection]
        |                              |
        v                              v
[Constraint Filtering] <------- [Resolution Policy]
        |
        v
[Candidate Selection]
        |
        v
[Integrity + Compatibility Verification]
        |
        +---- failure ----> [Blocked / Review / Recovery]
        |
      success
        v
[Lock + Provenance + Monitoring]

10. RELATIONSHIP MAPPING TABLE
consumer       | requires           | provider
provider       | has_version        | version
provider       | exposes            | interface
constraint     | restricts          | provider_candidate
resolution     | selects            | provider_version
resolution     | justified_by       | evidence
lock_record    | pins               | artefact_digest
change_event   | invalidates        | previous_validation
risk           | affects            | dependent_consumer

11. CONDITIONAL EXECUTION GUARANTEE
Given finite reachable dependency graphs, complete manifests, deterministic policy, accessible artefacts and terminating verification procedures, the resolver either produces a dependency assignment satisfying all enforced hard constraints or returns an explicit unresolved/conflict result. This is a conditional specification, not a universal guarantee of runtime correctness, supply-chain safety or service availability.

12. AI SEARCH FLOW
FLOW_ID: semantic-library.ai-dependency.flow-algebra.v1
ENTITY: AI Dependency
CATEGORY: AI Core / Entity Graph / Code and Software Entities
SOURCE_URL: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/code-and-software-entities/ai-dependency-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/code-and-software-entities/ai-dependency-ontology.html
PURPOSE: Resolve, verify and monitor typed AI software dependencies.
STATE_MODEL: S_t=(I_t,R_t,B_t,K_t)
ENTITIES: dependency, consumer, provider, constraint, version, environment, resolution, conflict, lock_record, evidence
PATHWAYS: discover > expand > constrain > resolve > verify > lock > monitor
MINI_RECURSION_ENGINE: traverse graph with visited set; resolve constraints; record failures; repeat on affected subgraph.
INFERENCE_RULES: R1-R10 above.
CONFIDENCE: Evidence-dependent; unknown is retained where provider facts are unverified.
SEMANTIC_EQUIVALENCE: requires / depends_on / consumes_capability are related, but not automatically identical across dependency kinds.
UPDATE_MODEL: event-driven invalidation and selective graph re-resolution.
FLOW_HASH: Not supplied; compute from canonical published content if integrity tracking is required.

13. EXAMPLE
AI application A requires library L >=2.0,<3.0 and model M with interface schema X.
Candidate L=2.4 passes version constraint; L=3.1 fails.
Candidate M supports X only if the model registry evidence confirms it.
If M compatibility is unknown, A remains pending rather than declared ready.

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