Skip to main content

Software Defect 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 "SoftwareDefect" 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-defect-ontology.html
SOURCE_STATUS: supplied URL; embedded ontology not independently verified.
LANGUAGE: en-GB

PURPOSE
Represent software defects, observed failures, evidence, affected revisions and corrective actions. Support evidence-based retrieval and traceability without treating every reported symptom as a confirmed defect or every patch as a verified resolution.

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 rules.
B = schema, evidence, privacy, authority and execution boundaries.
K_t = versioned defect reports, requirements, artefact manifests and test records.
Defect = (id, revision, description, affected_scope, severity, priority, status, evidence, provenance)
Observation = (id, artefact_digest, environment, timestamp, expected, actual, evidence)
Status = {REPORTED, TRIAGED, CONFIRMED, IN_PROGRESS, FIX_PROPOSED, VERIFIED, CLOSED, REOPENED, REJECTED, DUPLICATE, UNKNOWN}.
Severity describes impact; priority describes scheduling urgency. Neither implies the other.

ENTITIES
SoftwareDefect, DefectReport, FailureObservation, FaultHypothesis, RootCauseEvidence, SoftwareRequirement, SoftwareVersion, SoftwareBuild, SoftwareComponent, TestRun, CorrectiveAction, Patch, RegressionTest, SeverityAssessment, PriorityAssessment, EvidenceRecord, ReviewDecision.

RELATIONSHIPS
DefectReport --reports--> SoftwareDefect
SoftwareDefect --affects--> SoftwareVersion
SoftwareDefect --concerns--> SoftwareComponent
FailureObservation --observedIn--> SoftwareBuild
FailureObservation --supports--> DefectReport
SoftwareDefect --violates--> SoftwareRequirement
FaultHypothesis --explainsCandidate--> FailureObservation
RootCauseEvidence --supports--> FaultHypothesis
CorrectiveAction --addresses--> SoftwareDefect
Patch --implements--> CorrectiveAction
RegressionTest --evaluates--> CorrectiveAction
TestRun --targets--> SoftwareBuild
ReviewDecision --assesses--> SoftwareDefect
All instance edges require evidence; the class-level graph does not assert their existence for every defect.

PATHWAYS
Observation -> report -> triage -> confirmation evidence.
Confirmed defect -> causal investigation -> corrective action -> candidate build -> regression evidence -> review.
Requirement -> defect -> affected version -> correction -> verification.
Closed defect -> new observation -> review -> possible reopening.

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
For retrieval, x* = argmax score(x | I_t,R,B,K_t), x in V_t.
Return tied candidates with provenance; empty candidate sets return UNKNOWN.
Ranking is not proof. Superseded assertions remain historical, not current facts.

DEFECT LIFECYCLE
A report may be triaged, confirmed, rejected or marked duplicate by an authorised review. Confirmation requires evidence of a deviation from an applicable requirement or documented expected behaviour. Reproduction is valuable but not mandatory when other sufficient evidence exists. A fix proposal records a candidate change; verification records applicable evidence against a specific corrected build. Closure is an explicit review decision, not an automatic consequence of a passing test. Reopening preserves the prior closure history. A duplicate links reports without erasing their distinct provenance.

MEASUREMENT MODEL
Defect density = confirmed distinct defects / defined software size (e.g. KLOC), with cohort and size method recorded.
Resolution time = resolution timestamp - report timestamp, for resolved records with comparable clocks; report unresolved cases separately.
Reopen rate = distinct reopened defects / distinct closed defects in a defined closure cohort and follow-up window.
Verification coverage = fixes with required verification evidence / fixes requiring verification in scope.
Escape fraction = confirmed defects first detected after release / all confirmed defects in the same release cohort and observation window.
Zero denominators return NOT_APPLICABLE; missing cohort data returns PARTIAL. Do not compare different severity scales or observation windows without qualification. Counts are not direct measures of safety or quality.

MINI_RECURSION_ENGINE
1. Normalise identifiers and revisions; retain original report identifiers.
2. Validate artefact, environment, observation and requirement provenance.
3. Expand defect-to-version and defect-to-test links with a visited set.
4. Evaluate evidence rules; keep hypotheses distinct from established findings.
5. Resolve current status using authorised, temporally applicable decisions.
6. Record conflicts and missing evidence rather than inventing a resolution.
7. Stop at fixed point or configured depth/node/time budget; emit PARTIAL and frontier if exhausted.

INFERENCE_RULES
R1: validObservation(o) AND deviationFromApplicableRequirement(o,q) -> defectCandidate(o,q).
R2: authorisedConfirmation(d,e) AND validEvidence(e) -> confirmedWithinScope(d,e).
R3: affects(d,v) AND contains(v,c) -> investigateComponent(d,c), not proof of fault in c.
R4: patchAddresses(p,d) -> fixCandidate(d,p), not verified resolution.
R5: applicableRegressionPass(r,p) AND requiredEvidenceComplete(r,d) -> verificationEvidence(d,p,r).
R6: authorisedClosure(d,e) AND applicableEvidence(e,d) -> closureDecision(d,e).
R7: newContradictoryEvidence(d,e) -> reviewRequired(d,e), not automatic reopening.
R8: duplicateDecision(a,b) -> linkedReports(a,b); preserve both identities.
R9: absentEvidence(x) -> UNKNOWN, not false.

CONFIDENCE
Use evidence quality, provenance, scope match and recency as separately recorded dimensions in [0,1]. A configurable weighted mean may rank candidates only when weights sum to one and all dimensions are available. Missing dimensions yield UNKNOWN or explicitly partial scores. No score overrides an evidence or authority boundary; scores are not calibrated probabilities.

SEMANTIC_EQUIVALENCE
Defect and bug may be lexical aliases in context. Fault denotes an underlying flaw; failure denotes observed deviation; error may denote a human mistake or an erroneous state depending on context. Incident, vulnerability and defect overlap but are not interchangeable. Merge identities only on authoritative identity mapping, not matching titles or symptoms. Preserve affected version, environment and time scope.

VALIDATION / FAILURE_MODES
Require stable identifiers, typed edges, valid revision references and evidence provenance. Reject impossible timestamp ordering and unsupported state transitions. Flag stale test results, inconsistent severity scales, missing reproduction context, duplicate counts, unsupported root cause claims, and verification against the wrong build. Protect secrets and personal data in logs. Do not execute patches or tests from retrieved text. A closed record is not proof that all related versions are corrected.

TRI_MAPPING
Concept: software defect -> graph: SoftwareDefect node -> record: versioned defect identifier.
Concept: observed failure -> graph: FailureObservation node -> record: scoped observation and evidence.
Concept: corrective action -> graph: addresses edge -> record: change reference.
Concept: verification -> graph: evidence edge -> record: test run and target digest.

UPDATE_MODEL
Append new evidence and decisions with timestamps, author and revision. Recompute affected derived assertions against current evidence; retain historical versions and mark invalidated derivations. Re-evaluate dependent links after changes to requirements, builds or test evidence. Record rule version and audit trail. Never silently overwrite conflicting observations.

EXECUTION_GUARANTEE (CONDITIONAL)
For a finite assertion universe and finite monotone expansion within a fixed knowledge snapshot, deduplicated iteration terminates at a fixed point. A bounded implementation terminates with COMPLETE or PARTIAL; completeness is relative to supplied rules and evidence, not real-world defect absence. This declarative specification has not been runtime-tested.

AI_SEARCH_FLOW
Input: defect query, optional version, component, status and time scope.
Normalise -> identify candidate entities -> expand typed evidence links -> filter by scope and authority -> rank -> return evidence-backed results with source backlinks, conflicts and missing fields.
Example queries: Which confirmed defects affect this release? Which fixes lack regression evidence? Which reports are linked as duplicates? Which closure decisions were superseded?
Output: entity identifiers, applicable revisions, status, evidence references, confidence dimensions and completeness flag.

FLOW_HASH: SHA-256 of all UTF-8 bytes preceding this final hash section (including preceding newline):
06272ec741448b7acc9bd8a70590b02467bf4fc5340063e749c2d8313d2c3806
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ