Skip to main content

Software Dependency Ontology

Software Engineering Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 25 November 2026
Audio Overview
flow "SoftwareDependency" v1.0
AUTHORS: Mark Anthony Higgins — Sky Recursive AI
LICENCE: Open Research — attribution required
SOURCE / CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/software-engineering-entities/software-dependency-ontology-2.html
SOURCE_STATUS: supplied URL; embedded ontology not independently verified.
LANGUAGE: en-GB

PURPOSE
Represent a software dependency as a directed, contextual requirement of one software entity upon another. Distinguish declared, resolved and observed dependencies; support traceability, compatibility assessment and evidence-based search without executing packages.

STATE_MODEL
S_t = (I_t, R, B, K_t)
I_t = finite set of typed assertions with provenance and validity intervals.
R = finite inference rule set.
B = schema, trust, scope, platform, security and authority boundaries.
K_t = versioned manifests, lockfiles, registry metadata and observations.
Dependency = (id, consumer, provider_selector, constraint, scope, condition, provenance)
Resolution = (dependency_id, provider_id, version, digest, environment, evidence)
A package identity includes ecosystem and namespace; names alone are insufficient.

ENTITIES
SoftwareDependency, SoftwareSystem, SoftwareComponent, SoftwareModule, SoftwareService, SoftwareVersion, Package, Manifest, Lockfile, VersionConstraint, Environment, Build, Release, ResolutionRecord, VulnerabilityRecord, LicenceRecord, EvidenceRecord.

RELATIONSHIPS
Consumer --declares--> SoftwareDependency
SoftwareDependency --requires--> ProviderSelector
SoftwareDependency --hasConstraint--> VersionConstraint
SoftwareDependency --hasScope--> Scope
ResolutionRecord --resolves--> SoftwareDependency
ResolutionRecord --selects--> SoftwareVersion
Manifest --declares--> SoftwareDependency
Lockfile --records--> ResolutionRecord
Build --consumes--> ResolutionRecord
Release --includes--> Build
EvidenceRecord --supports--> assertion

PATHWAYS
Consumer -> manifest -> dependency -> constraint -> candidate versions -> resolution record.
Resolved package -> dependencies -> transitive closure -> provenance review.
Release -> build -> lockfile -> package digest -> advisory or licence evidence.

FORMAL FLOW ALGEBRA
E_t = expand(I_t,R,K_t)
V_t = {x in E_t : schema_valid(x) AND boundary_valid(x) AND evidence_valid(x)}
I_(t+1) = I_t union V_t
Repeat until fixed point or explicit budget exhaustion.
For search only, x* = argmax score(x | I_t,R,B,K_t), x in V_t.
Retain ties; return UNKNOWN for an empty candidate set. Ranking does not establish compatibility.

DEPENDENCY GRAPH
G_e = (N,A_e), with nodes representing contextual package instances and directed edges consumer -> provider.
A_e contains only edges active under the selected environment and scope.
D_1(u) = {v : (u,v) in A_e}
D_(k+1)(u) = D_k(u) union union_{v in D_k(u)} D_1(v)
D*(u) = fixed_point(D_k(u)) minus {u}
Track visited nodes; preserve self-loops separately.
A cycle exists if a strongly connected component contains more than one node or a self-loop. Cycles are reported, not universally prohibited; ecosystem policy determines validity.

RESOLUTION MODEL
For each active requirement d, select a provider instance p satisfying identity, version predicate, platform and scope constraints.
F = {assignments a : all active requirements satisfied under ecosystem rules}
F empty with complete evidence -> UNSATISFIABLE.
Incomplete registry or unknown conditions -> UNKNOWN unless a contradiction is established independently.
Multiple versions may coexist when ecosystem rules permit. Do not intersect constraints across unrelated resolution slots.
SemVer precedence applies only where declared; use ecosystem-specific comparison otherwise. Version precedence is not proof of API compatibility.
Lockfile consistency requires matching manifest constraints, platform conditions and resolved identities. A digest identifies bytes, not safety or authorship.

MEASUREMENT MODEL
Direct count = |D_1(u)|.
Transitive count = |D*(u) minus D_1(u)|.
Traceability coverage = evidenced resolved active edges / active declared edges.
Advisory review coverage = reviewed resolved instances / resolved instances.
Undefined denominators yield NOT_APPLICABLE; incomplete inventories yield explicitly partial metrics.
Do not equate advisory review coverage with absence of vulnerabilities.

MINI_RECURSION_ENGINE
1. Normalise package identities and scope without collapsing distinct instances.
2. Ingest manifests and lockfiles as separate evidence records.
3. Evaluate activation conditions using true/false/unknown.
4. Expand known active edges; retain unknown edges separately.
5. Validate constraints using ecosystem rules; flag conflicts and missing evidence.
6. Traverse graph with visited set and bounded depth/node budget.
7. Emit closure, cycle records, resolution status and provenance.
8. Stop at fixed point or return PARTIAL with reason and frontier.

INFERENCE_RULES
R1: declared(u,d) AND resolved(d,v,e) AND active(d,e) -> dependsOn(u,v,e).
R2: dependsOn(u,v,e) AND dependsOn(v,w,e) -> transitivelyDependsOn(u,w,e).
R3: resolution(d,v,e) AND NOT satisfies(v,constraint(d),e) -> constraintConflict(d,e), when both operands known.
R4: same_name(p,q) does not imply same_identity(p,q).
R5: advisory_applies(v,a,e) -> potentialExposure(v,a,e); exploitability requires separate evidence.
R6: observed(u,v,e) without declaration -> undeclaredDependencyObservation(u,v,e), not automatic policy violation.
R7: absent evidence does not establish absence of a dependency.
R8: licence metadata is a review input, not a legal compliance determination.

CONFIDENCE
Use VERIFIED, SUPPORTED, CONFLICTED, UNKNOWN labels per assertion. VERIFIED means checked against designated evidence, not universal truth. Preserve source, timestamp, method and scope. Derived claims inherit weakest supporting status; conflicting evidence remains visible. Scores for retrieval are heuristic, not calibrated probabilities.

SEMANTIC_EQUIVALENCE
Two dependency declarations are equivalent only when canonical consumer, provider selector, constraint semantics, activation conditions and scope agree under the same ecosystem rules. Identical version strings across ecosystems are not equivalent. Equal resolved graphs do not imply equal declarations or runtime behaviour.

VALIDATION / FAILURE_MODES
Reject malformed identities, invalid version predicates and dangling references unless explicitly represented as unresolved. Flag stale lockfiles, missing digests, conflicting metadata, unknown platform conditions, dependency cycles and incomplete registry snapshots. Do not execute untrusted dependency scripts. Never expose credentials in registry URLs or provenance records.

UPDATE_MODEL
New evidence creates a new snapshot K_(t+1). Recompute affected closure and resolution claims from active evidence; retain superseded assertions in historical storage. Record change reason, timestamp and provenance. Do not carry previous compatibility claims into a changed environment without revalidation.

TRI_MAPPING
Natural language: A requires B within a specified version range and environment.
Graph: A -> Dependency -> B; constraint and environment qualify the edge.
Formal: active(d,e) AND resolves(d,b,e) AND satisfies(b,constraint(d),e) -> dependsOn(a,b,e).

EXECUTION_GUARANTEE (conditional)
For finite evidence, finite candidate universe and monotone expansion with deduplication, closure terminates after finitely many insertions. A budgeted implementation terminates with COMPLETE or PARTIAL status. Resolution completeness requires an exhaustive compatible solver and complete inputs; this document does not implement or test such a solver.

AI_SEARCH_FLOW
Input: query, ecosystem, consumer identity, version, environment, scope.
Resolve intent -> identify package -> retrieve authorised evidence -> expand dependency graph -> validate constraints -> rank relevant assertions -> return cited answer with uncertainty and snapshot date.
Example queries: What directly depends on this package? Which transitive dependencies are resolved for this build? Which constraints conflict? What evidence supports the resolved version?
Return source backlink for ontology context and evidence-specific references for factual claims.

FLOW_HASH: SHA-256 of all UTF-8 bytes preceding this line
2882260fde9ec5dbe2e4b900dc6937f0213457769135080e47f6e7ce408ad880
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ