Skip to main content

AI Build Entity Ontology

AI Development Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 05 November 2026
Audio Overview
AI BUILD ENTITY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | AI Development Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Created: 05 November 2026
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-development-entities/ai-build-entity-ontology.html
Status: Companion formalisation; the page's embedded specifications were not exposed in the retrieved text.

01. PURPOSE
Represent an AI build as a traceable, reproducible transformation from approved source and configuration to verifiable build artefacts. A build is not automatically a deployment or release.

02. ENTITY DEFINITION
BuildEntity b = (id, project, source_revision, specification, environment, toolchain, dependencies, configuration, steps, artefacts, evidence, status, provenance).
Required identifiers: id, project, source_revision.
Build statuses: proposed, queued, running, succeeded, failed, cancelled, invalidated.

03. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: available build inputs and current observations.
R_t: build rules, transformations and validation constraints.
B_t: trust, permission, resource and safety boundaries.
K_t: known source, dependency, configuration and evidence facts.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and valid(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, observed_result_t)
If V_t is empty, transition to blocked or failed; do not invent a successful build.

04. ENTITY RELATIONSHIPS
BuildEntity -> belongsTo -> ProjectEntity
BuildEntity -> implements -> SpecificationEntity
BuildEntity -> satisfies -> RequirementEntity
BuildEntity -> consumes -> SourceRevision
BuildEntity -> resolves -> DependencySet
BuildEntity -> uses -> Toolchain / BuildEnvironment
BuildEntity -> executes -> BuildStep
BuildEntity -> produces -> BuildArtefact
BuildEntity -> generates -> BuildLog / TestEvidence / ProvenanceRecord
BuildEntity -> precedes -> ReleaseEntity / DeploymentEntity (when authorised)

05. INPUT CONTRACT
INPUT = {project_id, source_revision, approved_specification, build_manifest, toolchain_version, dependency_lock, environment_definition, permissions}.
Preconditions:
P1: source revision is resolvable and immutable for the run.
P2: required dependencies and toolchain versions are identified.
P3: required permissions and resource boundaries are satisfied.
P4: build manifest is syntactically and semantically valid.
P5: build steps and expected outputs are defined.

06. FORMAL FLOW
F_build: INPUT x STATE -> OUTPUT x STATE
F_build = validate_inputs >> resolve_dependencies >> prepare_environment >> execute_steps >> collect_artefacts >> verify_outputs >> record_provenance >> finalise_status
Here >> denotes ordered composition; each step consumes the prior step's output.
A step may execute only when its declared preconditions hold.

07. BUILD TRANSITIONS
proposed -> queued when inputs accepted and execution authorised.
queued -> running when resources allocated.
running -> succeeded when every mandatory step succeeds and required artefacts verify.
running -> failed when a mandatory step fails or required verification fails.
queued/running -> cancelled when authorised cancellation is recorded.
succeeded -> invalidated when integrity, provenance or required evidence is later disproved.
No transition from failed to succeeded without a new, identifiable run or validated recovery step.

08. DEPENDENCY GRAPH
Let G = (N, E) be the build step dependency graph.
For edge (a,b), step b requires completion of step a.
Execution order must be a topological order of G.
If G contains a cycle without an explicit supported resolution rule, the build is blocked.
Parallel execution is allowed only for independent steps with safe resource access.

09. VALIDATION RULES
R1: A successful command exit alone does not prove artefact correctness.
R2: Every required artefact must exist and satisfy its declared verification predicate.
R3: Missing provenance prevents a claim of fully traceable reproduction.
R4: A changed source, dependency or configuration yields a distinct build identity or revision.
R5: Secrets must not be written into logs, artefacts or provenance records.
R6: Tests must report observed outcomes, not inferred passes.
R7: Unverified outputs remain provisional.

10. ARTEFACT IDENTITY AND EVIDENCE
artefact_hash = H(artefact_bytes)
build_fingerprint = H(source_revision || manifest || dependency_lock || toolchain_version || environment_definition)
Evidence = {step_id, timestamp, command_or_action, exit_status, observed_output, verifier, artefact_hash}.
Hashes identify content under the selected algorithm; they do not independently establish correctness or security.

11. RECURSIVE BUILD REFINEMENT
At iteration t:
observe_t = evaluate(build_result_t, specification, constraints)
issues_t = detect_deviations(observe_t)
If issues_t is empty and mandatory checks pass, terminate successfully.
Otherwise propose repair_t = select_allowed_change(issues_t, B_t).
Re-run only after recording the change and updated inputs.
Stop on success, resource limit, iteration limit, unsafe state or irrecoverable failure.
No convergence is guaranteed for arbitrary build systems.

12. INFERENCE RULES
IF all mandatory steps pass AND artefacts verify THEN status = succeeded.
IF a mandatory step fails THEN status = failed unless a specified recovery path succeeds.
IF a dependency is unavailable THEN status = blocked/failed with dependency evidence.
IF an artefact hash differs from the recorded expected hash THEN integrity_check = failed.
IF provenance is incomplete THEN reproducibility_claim = unverified.
IF environment differs from the recorded environment THEN equivalence must be tested, not assumed.

13. TRI-MAPPING
Semantic: BuildEntity, inputs, dependencies, artefacts, evidence and lifecycle.
Algebraic: F_build, state transitions, graph constraints, verification predicates.
Operational: resolve -> compile/generate -> package -> test -> attest -> report.
Each operational step must map to a declared semantic entity and algebraic rule.

14. OUTPUT CONTRACT
OUTPUT = {build_id, status, artefact_manifest, verification_results, logs, provenance, unresolved_issues, next_actions}.
Success requires explicit verification results and artefact manifest.
Failure output must retain sufficient diagnostics for investigation without exposing secrets.

15. CONDITIONAL EXECUTION GUARANTEE
Given valid inputs, available resources, a terminating build procedure, satisfied boundaries and sound verification, the flow yields a recorded outcome consistent with the specified transition and validation rules.
This is a conditional process guarantee, not a guarantee that every build succeeds, is reproducible across arbitrary environments, or is free of defects.

16. EXAMPLE TRACE
Input: approved revision r17; locked dependencies d4; toolchain t2.
Validate -> resolve -> prepare -> build -> verify -> record.
Observed: all mandatory steps pass; output hashes recorded; verification predicates pass.
Result: succeeded, with artefact manifest and evidence chain.
If any verification predicate fails, result is failed or provisional, never silently succeeded.

17. CITATION AND LICENCE NOTE
Source ontology: Kireth Research, AI Build Entity Ontology.
Attribution: Mark Anthony Higgins — Sky Recursive AI.
Use subject to the applicable Kireth Research Open Research Licence and citation requirements.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ