Skip to main content

Software Package Ontology

Software Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 11 November 2026
Audio Overview
SEMANTIC LIBRARY — FLOW ALGEBRA v1.0
SOFTWARE PACKAGE ONTOLOGY
Category: Computational Entities > Software Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/software-entities/software-package-ontology.html
Source page revised: 03 August 2026
Mapping status: Constructed topic-level Flow Algebra mapping; the complete embedded source specification was not accessible in the retrieved page text.

1. PURPOSE
Model a software package as a versioned, distributable unit containing artefacts, metadata, dependencies, integrity evidence and lifecycle operations. Distinguish a package from an installed instance and a running process.

2. ENTITY STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = package identity, name, version, architecture, publisher, manifest, payload, signatures, hashes and installation state.
R_t = dependency, provides, conflicts-with, contains, installs-to, updates, supersedes and originates-from relationships.
B_t = platform compatibility, trust policy, licence constraints, dependency availability, resource limits and permissions.
K_t = known repositories, installed package inventory, vulnerability information, lockfile, provenance and previous outcomes.

3. CORE ENTITIES
Package; PackageVersion; PackageManifest; PackageArtifact; PackageRepository; Dependency; DependencyConstraint; SoftwareModule; SoftwareComponent; Platform; Installer; PackageManager; Installation; Signature; Checksum; Licence; Vulnerability; Update; RollbackSnapshot.

4. RELATIONSHIP GRAPH
Package --hasVersion--> PackageVersion
PackageVersion --describedBy--> PackageManifest
PackageVersion --contains--> PackageArtifact
PackageVersion --requires--> DependencyConstraint
DependencyConstraint --targets--> PackageVersion
PackageVersion --publishedIn--> PackageRepository
PackageVersion --compatibleWith--> Platform
PackageVersion --verifiedBy--> Signature/Checksum
Installation --instantiates--> PackageVersion
Installation --installedOn--> OperatingEnvironment
PackageVersion --supersedes--> EarlierPackageVersion
PackageVersion --subjectTo--> Licence/Vulnerability

5. FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | compatible(x,B_t) AND dependencies_satisfiable(x,K_t) AND permitted(x,B_t) AND integrity_valid(x)}
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, observed_result)
K_(t+1) = K_t union verified_facts(observed_result)
If V_t is empty, produce a typed failure and do not install.

6. EXECUTION PATHWAYS
DISCOVER: package query -> repository metadata -> candidate versions.
RESOLVE: candidate -> dependency closure -> compatibility/conflict checks -> lock plan.
VERIFY: artefact download -> checksum/signature verification -> provenance/trust decision.
INSTALL: approved plan -> staged payload -> atomic/transactional commit where supported -> validation.
UPDATE: installed version -> candidate update -> compatibility check -> snapshot -> commit or rollback.
REMOVE: installation -> reverse dependency check -> authorised removal -> state reconciliation.
AUDIT: installed inventory -> integrity and vulnerability review -> remediation recommendation.

7. MINI RECURSION ENGINE
Resolve(p, visited, active):
  If p in active: identify dependency cycle; apply manager-specific cycle policy or fail.
  If p in visited: return resolved.
  Validate manifest and compatibility.
  For each dependency d of p: resolve a satisfying candidate recursively.
  Reject contradictory version constraints and unsupported platforms.
  Mark p resolved only after all required dependencies pass.
Recursion terminates when the finite candidate graph is exhausted or a bounded search limit is reached. A successful result is conditional on accurate metadata and a valid dependency solution.

8. INFERENCE RULES
IF version violates platform constraint THEN incompatible.
IF required dependency has no valid candidate THEN unresolved_dependency.
IF two required constraints cannot both be met THEN dependency_conflict.
IF signature or checksum validation fails THEN integrity_failure.
IF package is installed AND verified newer compatible version exists THEN update_candidate.
IF removal breaks a required reverse dependency THEN removal_blocked unless explicitly authorised.
IF rollback snapshot is valid AND update validation fails THEN rollback_candidate.
IF package metadata is untrusted THEN require policy-based review before installation.

9. OPERATIONAL INVARIANTS
Identity must include a stable package identifier and version; package names alone are not globally unique.
A dependency closure must be internally consistent before commit.
Never treat a successful download as proof of a safe installation.
Verification, authorisation and installation are separate states.
An installed package is not necessarily an executing process.
Do not claim universal atomicity or rollback support; these depend on the package manager and environment.

10. FAILURE STATES
PACKAGE_NOT_FOUND; VERSION_CONFLICT; DEPENDENCY_CYCLE; UNSUPPORTED_PLATFORM; UNTRUSTED_SOURCE; INTEGRITY_FAILURE; LICENCE_RESTRICTION; INSUFFICIENT_SPACE; INSTALLATION_FAILURE; ROLLBACK_FAILURE.
Every failure records cause, affected entities, attempted transition and recovery options.

11. EXAMPLE TRACE
Input: install package A@2, requiring B>=3.
Expand: A@2 -> dependency B>=3 -> repository candidates.
Filter: remove incompatible, untrusted or conflicting versions.
Select: choose a permitted compatible B candidate and A@2.
Verify: check artefact integrity and trust evidence.
Execute: install in dependency order with manager-specific transaction handling.
Validate: confirm installed versions and health checks.
Update: record installation result and provenance; on failure, stop or roll back where supported.

12. TRI-MAPPING
Entity graph: packages, versions, dependencies, repositories and installations.
Relationship graph: requires, provides, conflicts, contains, verifies, installs, supersedes.
Flow graph: discover -> resolve -> verify -> install -> validate -> maintain.

13. CITATION AND LIMITATIONS
Source ontology: Software Package Ontology, Kireth Research.
Source URL: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/software-entities/software-package-ontology.html
Authors credited on source: Mark Anthony Higgins — Sky Recursive AI.
This TXT is a newly constructed explanatory mapping and is not a verbatim extraction of the page's hidden formal specification. Mathematical selection and recursion describe a modelling framework, not a proof of package-manager correctness.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ