Skip to main content

Software Service Entity 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 "SoftwareServiceEntity" v1.0
AUTHORS: Mark Anthony Higgins — Sky Recursive AI
LICENCE: Open Research — attribution required
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/software-engineering-entities/software-service-entity-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/software-engineering-entities/software-service-entity-ontology.html
SOURCE_STATUS: Embedded ontology not independently verified; original proposed specification.
LOCALE: en-GB

PURPOSE
Represent a software service as an identifiable software capability exposed to consumers through a defined contract. Support discovery, dependency reasoning, operational evidence retrieval and version-aware traceability. A service may be local or remote, synchronous or asynchronous; it need not be a microservice or independently deployed.

STATE_MODEL
S_t = (I_t, R, B, K_t)
I_t: finite set of typed assertions with provenance.
R: finite positive inference rules.
B: identity, typing, evidence, temporal and access constraints.
K_t: versioned knowledge graph and evidence catalogue.
Service = (id, purpose, contracts, revisions, consumers, dependencies, lifecycle, evidence)
Revision = (id, service_id, version, artefact_refs, contract_refs)
Deployment = (id, revision_id, environment_id, valid_interval)
Observation = (id, deployment_id, metric, value, unit, window, method, evidence)
Unknown values remain UNKNOWN. Logical service, revision, deployment and runtime instance are distinct identities.

ENTITIES
SoftwareServiceEntity; SoftwareSystemEntity; SoftwareComponentEntity; ServiceRevision; ServiceContract; APIInterface; Endpoint; Consumer; Dependency; Deployment; RuntimeInstance; Environment; Configuration; ServiceRegistry; Requirement; TestResult; ServiceLevelObjective; ServiceLevelAgreement; Observation; Incident; SecurityFinding; EvidenceRecord; LifecycleRecord.
These are proposed semantic types, not verified published ontology headings.

RELATIONSHIPS
revisionOf(ServiceRevision, SoftwareServiceEntity)
provides(ServiceRevision, ServiceContract)
exposes(ServiceContract, APIInterface)
addresses(APIInterface, Endpoint)
consumes(Consumer, ServiceContract)
dependsOn(ServiceRevision, ServiceRevision)
deployedAs(ServiceRevision, Deployment)
runsIn(Deployment, Environment)
instanceOf(RuntimeInstance, Deployment)
registeredIn(SoftwareServiceEntity, ServiceRegistry)
implements(ServiceRevision, Requirement)
verifiedBy(ServiceRevision, TestResult)
observedBy(Deployment, Observation)
governedBy(Deployment, ServiceLevelObjective)
subjectTo(SoftwareServiceEntity, ServiceLevelAgreement)
associatedWith(Deployment, Incident)
supersedes(ServiceRevision, ServiceRevision)
recordedIn(Entity, EvidenceRecord)
All assertions carry source, scope, validity interval and evidence status.

PATHWAYS
System -> Service -> Revision -> Contract -> Interface -> Consumer
Service -> Revision -> Dependency -> RequiredRevision
Service -> Revision -> Deployment -> Environment -> RuntimeInstance
Deployment -> Observation -> Metric -> Objective
Service -> Requirement -> TestResult -> EvidenceRecord
Deployment -> Incident -> InvestigationEvidence
Service -> Registry -> DiscoveryRecord
Paths are optional and evidence-dependent; discovery does not establish authorisation or reachability.

FLOW_ALGEBRA
E_t = expand(I_t, R, K_t)
V_t = {x in E_t : valid(x, B, K_t)}
I_(t+1) = I_t union V_t
Repeat until I_(t+1) = I_t or the iteration budget is exhausted.
For retrieval: x* = argmax over x in V of score(x | query, I, R, B, K).
Use stable identifier ordering for ties. Scores represent relevance, not calibrated probabilities. Conflicting assertions are quarantined for review.

MINI_RECURSION_ENGINE
1. Resolve canonical service identifiers and preserve source labels.
2. Validate seed assertions and quarantine invalid or unauthorised records.
3. Expand typed relationships over a fixed knowledge snapshot.
4. Enforce revision, environment, temporal and access boundaries.
5. Deduplicate assertions by canonical key and retain provenance.
6. Iterate to closure or budget; record completion status.
7. Rank relevant results and return evidence and uncertainty.
No rule invokes an endpoint, deploys software, changes configuration or accesses credentials.

INFERENCE_RULES
R1: revisionOf(r,s) AND type(r,ServiceRevision) => type(s,SoftwareServiceEntity).
R2: dependsOn(a,b) => reachableDependency(a,b).
R3: reachableDependency(a,b) AND dependsOn(b,c) => reachableDependency(a,c).
R4: reachableDependency(a,a) => dependencyCycle(a). A cycle is not automatically a defect.
R5: provides(r,c) AND consumes(u,c) => potentialServiceLink(u,r,c). Actual binding requires evidence.
R6: deployedAs(r,d) AND runsIn(d,e) => deploymentContext(r,d,e). This does not prove current availability.
R7: verifiedBy(r,t) AND passed(t) => hasPassingTestEvidence(r,t). Not proof of overall correctness.
R8: implements(r,q) => requirementTrace(r,q). Not proof of satisfaction.
R9: supersedes(a,b) AND revisionOf(a,s) AND revisionOf(b,s) => hasRevisionHistory(s).
R10: observedBy(d,o) AND validObservation(o) => hasScopedMeasurement(d,o).
R11: registeredIn(s,g) => hasDiscoveryRecord(s,g). Not proof of live reachability.

MEASUREMENT_MODEL
Request success fraction = N_success / N_eligible_requests.
Request error fraction = N_error / N_eligible_requests.
Define eligibility, success and error criteria explicitly; report excluded requests separately.
Time availability = T_available / T_observed, with T_observed > 0. Report unknown intervals and coverage separately; do not equate missing telemetry with uptime.
Observation coverage = T_observed / T_expected for a defined observation window.
Throughput = N_completed / duration_seconds, in requests/s.
Mean latency = sum(latency_i)/n; percentile p95 = sorted_latency[ceil(0.95*n)] using one-based nearest-rank indexing, n > 0.
Latency measurements must identify workload, environment, measurement boundary and sampling method. Do not average percentiles across instances to obtain a global percentile.
Error budget fraction = 1 - objective_success_fraction, where the objective is defined on the same request population and window.
Budget consumption = N_bad / (N_eligible * error_budget_fraction), if denominator > 0.
Requirement trace coverage = N_traced_requirements / N_in_scope_requirements.
Zero denominator or incompatible scope => UNKNOWN. A service-level objective is not a contractual agreement; measured performance is not a legal compliance determination.
Version compatibility requires evidence of contract compatibility, consumer expectations and applicable version constraints; version numbering alone is insufficient.

CONFIDENCE
Statuses: asserted, inferred, disputed, unknown. Derived confidence cannot exceed the weakest premise under the proposed conservative scoring policy. Keep evidence reliability, freshness and retrieval relevance separate. Missing evidence does not imply failure or success.

SEMANTIC_EQUIVALENCE
Canonical label: Software Service Entity.
Aliases: software service, application service (context dependent).
Microservice, web service and background service may be narrower classes. API, endpoint, component, module, process and deployment are not automatically equivalent to service.
Identity equivalence requires authoritative identifier matching or explicit mapping evidence. Revision equivalence requires matching immutable revision identity. Contract equivalence requires matching semantics, not merely matching names or paths.

VALIDATION_AND_FAILURE_MODES
Reject dangling references, malformed identifiers, incompatible types and invalid units.
Flag stale discovery records, missing revision mappings, contract drift, incompatible schemas, dependency cycles, missing telemetry, inconsistent measurement windows, ambiguous ownership and conflicting evidence.
Preserve disputed assertions and evidence separately. Restrict sensitive endpoint and configuration data according to access policy. Never infer security, availability or correctness from a service label, registry entry or passing tests alone.

UPDATE_MODEL
On a new revision, deployment change, contract change or evidence correction, create a new knowledge snapshot. Retain historical assertions, invalidate dependent derivations and recompute closure from validated seeds. Keep observations scoped to their original deployment and time window. Do not silently merge incompatible metrics.

EXECUTION_GUARANTEE
For a finite snapshot, finite assertion universe and monotone positive rules with deduplication, closure terminates after at most the number of possible new assertions in strict-growth iterations. Budget-limited execution returns PARTIAL, not COMPLETE. This is a conditional semantic guarantee, not a runtime-tested implementation, availability promise or security certification.

AI_SEARCH_FLOW
Input: query, optional service identifier, revision, environment, time window and authorised scope.
Resolve entity -> retrieve evidence -> expand typed graph -> validate -> rank -> return assertions, provenance, uncertainty and source backlink.
Example queries: Which services provide this contract? Which revisions depend on this service? What is the measured availability for this deployment and window? Which requirements have test evidence?
Output: entity_id, revision_id, deployment_id, matched_assertions, evidence, confidence_status, closure_status, citation_backlink.
END_FLOW

FLOW_HASH_SHA256 (payload bytes preceding separator and hash line): 1c2356e421b16b9d882468892cc57c484f9468ea0e897bb20d2903c686671b2d
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ