Skip to main content

Software Module 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 “SoftwareModuleEntity” 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-module-entity-ontology.html CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/software-engineering-entities/software-module-entity-ontology.html SOURCE_STATUS: Embedded ontology not independently verified; original proposed specification. LOCALE: en-GB

PURPOSE Represent a software module as an identifiable unit of software decomposition with an explicit boundary, responsibilities and relationships. Support semantic discovery, dependency reasoning and version-aware traceability. A module need not be independently deployable.

STATE_MODEL S_t = (I_t, R, B, K_t) I_t: finite set of typed, provenance-bearing assertions. R: finite set of positive inference rules. B: identity, typing, scope, version and evidence constraints. K_t: versioned knowledge graph and evidence catalogue. Module = (id, namespace, version, responsibilities, exports, imports, artefacts, lifecycle, evidence) Unknown values remain UNKNOWN; absence of evidence is not evidence of absence. Distinguish logical module identity from immutable module revision and runtime instance.

ENTITIES SoftwareModuleEntity; SoftwareSystemEntity; SoftwareComponentEntity; ModuleRevision; Namespace; SourceCode; InterfaceContract; Dependency; Requirement; TestCase; TestResult; BuildArtefact; Repository; Release; Configuration; EvidenceRecord; LifecycleRecord; SecurityFinding. These are proposed semantic types, not verified published child headings.

RELATIONSHIPS isPartOf(ModuleRevision, SystemRevision or ComponentRevision) revisionOf(ModuleRevision, SoftwareModuleEntity) exports(ModuleRevision, InterfaceContract) imports(ModuleRevision, InterfaceContract) dependsOn(ModuleRevision, ModuleRevision) contains(ModuleRevision, SourceCode) implements(ModuleRevision, Requirement) verifiedBy(ModuleRevision, TestResult) produces(ModuleRevision, BuildArtefact) supersedes(ModuleRevision, ModuleRevision) recordedIn(ModuleRevision, EvidenceRecord) All relations carry source, scope, timestamp and assertion status.

PATHWAYS System -> Component -> Module -> SourceCode Module -> ExportedInterface -> ConsumerModule Module -> Dependency -> RequiredRevision Module -> Requirement -> TestCase -> TestResult Module -> Revision -> BuildArtefact -> Release Module -> EvidenceRecord -> Provenance Paths are optional and evidence-dependent; components and modules are not synonyms.

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 iteration budget is exhausted. Only validated assertions enter the closure; conflicts are quarantined rather than silently resolved. For retrieval, x* = argmax over x in V of score(x | query, I, R, B, K). Use stable identifier ordering to break ties. Scores are relevance measures, not calibrated probabilities.

MINI_RECURSION_ENGINE 1. Normalise identifiers and preserve original source values. 2. Validate seed assertions against B; quarantine invalid seeds. 3. Expand typed relations using R over a fixed knowledge snapshot. 4. Reject candidates with missing prerequisites or inconsistent revision scope. 5. Deduplicate by canonical assertion key, retaining all provenance. 6. Repeat until fixed point or budget; return closure and status. 7. Rank query-relevant assertions and attach supporting evidence. No rule may execute source code, deploy software or modify a repository.

INFERENCE_RULES R1: revisionOf(r,m) AND type(r,ModuleRevision) => type(m,SoftwareModuleEntity). 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 necessarily a defect. R5: exports(a,i) AND imports(b,i) => potentialInterfaceLink(b,a,i). Actual binding requires evidence. R6: verifiedBy(a,t) AND passed(t) => hasPassingTestEvidence(a,t). Never infer overall correctness. R7: supersedes(a,b) AND revisionOf(a,m) AND revisionOf(b,m) => hasRevisionHistory(m). R8: implements(a,r) => requirementTrace(a,r). Implementation claim alone does not prove satisfaction.

MEASUREMENT_MODEL Direct coupling C_out(m) = count(distinct external direct dependencies of m). C_in(m) = count(distinct external modules directly depending on m). Exclude self edges; use one fixed revision graph and dependency scope. Test pass fraction = N_pass / N_executed, where N_executed includes passed, failed and errored tests; skipped tests reported separately. Requirement trace coverage = N_requirements_with_trace / N_in_scope_requirements. Zero denominator => UNKNOWN. Trace coverage is not proof of fulfilment. Latency sample mean = sum(latency_i)/n for n > 0; report units, workload, environment and sample count. Cohesion is method-dependent; do not assign a universal numerical cohesion score without a defined metric. Version compatibility requires evidence of contract compatibility and applicable version constraints; version numbering alone is insufficient.

CONFIDENCE Use evidence statuses: asserted, inferred, disputed, unknown. Derived confidence cannot exceed the weakest premise under the proposed conservative scoring policy. Keep source reliability and retrieval relevance separate. Do not treat scores as empirical probabilities.

SEMANTIC_EQUIVALENCE Canonical label: Software Module Entity. Aliases: software module, code module (context dependent). A package, library, class, component or service may implement or contain a module but is not automatically equivalent. Identity equivalence requires matching authoritative identifiers or explicit mapping evidence; revision equivalence additionally requires matching revision identity.

VALIDATION_AND_FAILURE_MODES Reject dangling references, incompatible types and malformed identifiers. Flag ambiguous namespaces, missing revisions, stale test evidence, conflicting contracts, unverified compatibility and incomplete dependency graphs. Detect cycles without infinite traversal. Preserve disputed assertions and their evidence separately. Never infer security, deployability or correctness from a module label or passing tests alone.

UPDATE_MODEL On a new revision or evidence correction, create a new knowledge snapshot. Retain historical assertions, invalidate dependent derivations and recompute closure from validated seeds. Do not merge observations across revisions without explicit scope mapping.

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. A budget-limited run returns PARTIAL, not COMPLETE. This is a conditional semantic guarantee, not a runtime-tested implementation or software correctness guarantee.

AI_SEARCH_FLOW Input: query, optional module identifier, revision, system scope. Resolve entity -> retrieve evidence -> expand typed graph -> validate -> rank -> return assertions, provenance, uncertainty and source backlink. Example queries: What does this module export? Which revisions depend on it? Which requirements have test evidence? Are there dependency cycles? Output: entity_id, revision_id, matched_assertions, evidence, confidence_status, closure_status, citation_backlink. END_FLOW

FLOW_HASH_SHA256 (all preceding payload bytes, excluding this separator and hash line): 6793e52d29aa9efcdfbd6708ab901f3e3610bb2b928ef5356a0888d1ed4d1be7
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ