Skip to main content

Software Test 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 "SoftwareTestEntity" 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-test-entity-ontology.html
SOURCE_STATUS: supplied URL; embedded ontology not independently verified.
LANGUAGE: en-GB

PURPOSE
Represent software tests, their intended assertions, execution evidence and relationships to requirements and software versions. Distinguish a test specification from an execution and its verdict. Support evidence-based retrieval and recursive traceability, not automatic certification of software correctness.

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 rule set.
B = schema, scope, authority, privacy, execution and evidence boundaries.
K_t = versioned test specifications, requirements, build manifests and execution records.
Test = (id, revision, purpose, preconditions, inputs, oracle, scope, provenance)
Run = (id, test_revision, artefact_digest, environment, start, end, observations, verdict, evidence)
Verdict in {PASS, FAIL, ERROR, SKIPPED, BLOCKED, UNKNOWN}.
A test definition has no execution verdict until a run is evidenced.

ENTITIES
SoftwareTest, TestCase, TestSuite, TestRun, TestOracle, TestFixture, TestInput, ExpectedResult, ActualResult, Assertion, SoftwareRequirement, AcceptanceCriterion, SoftwareBuild, SoftwareVersion, ExecutionEnvironment, CoverageRecord, DefectRecord, EvidenceRecord.

RELATIONSHIPS
TestSuite --contains--> TestCase
TestCase --verifies--> SoftwareRequirement
TestCase --evaluates--> AcceptanceCriterion
TestCase --uses--> TestFixture
TestCase --defines--> TestOracle
TestRun --executes--> TestCaseRevision
TestRun --targets--> SoftwareBuild
TestRun --occursIn--> ExecutionEnvironment
TestRun --produces--> ActualResult
TestRun --hasVerdict--> Verdict
TestRun --supports--> EvidenceRecord
DefectRecord --references--> TestRun
CoverageRecord --describes--> SoftwareBuild

PATHWAYS
Requirement -> acceptance criterion -> test revision -> run -> verdict -> evidence.
Build -> test suite -> run records -> coverage -> review.
Failed assertion -> investigation -> defect record -> corrective revision -> regression run.

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
Repeat until fixed point or budget exhaustion.
For retrieval, x* = argmax score(x | I_t,R,B,K_t), x in V_t.
Return ties and UNKNOWN for empty candidate sets. Ranking is not proof of correctness.

TEST EXECUTION MODEL
Given a test revision T, build b, environment e and input fixture f, let O be the recorded observations. Oracle(T,O) returns true, false or unknown only when preconditions and required evidence are satisfied.
PASS: completed run with all required assertions true.
FAIL: valid execution with at least one required assertion false.
ERROR: execution infrastructure or oracle failure prevents a reliable verdict.
SKIPPED: intentionally not executed; reason recorded.
BLOCKED: required preconditions unavailable.
UNKNOWN: insufficient evidence to classify.
Keep individual assertion outcomes even when a run cannot be classified conclusively. A failing test is not automatically a confirmed product defect.

MEASUREMENT MODEL
Let N_pass and N_fail count valid terminal pass/fail runs in a defined cohort.
Pass rate = N_pass / (N_pass + N_fail).
Report errors, skips and blocked runs separately; do not silently exclude them from reporting.
Execution coverage = distinct planned test revisions attempted / distinct planned test revisions.
Requirement traceability = requirements linked to applicable tests / in-scope requirements.
Requirement verification coverage = requirements with all required acceptance evidence satisfied / in-scope requirements.
Statement coverage = executed instrumented statements / eligible instrumented statements.
Branch coverage = exercised branch outcomes / eligible branch outcomes.
Duration = end_timestamp - start_timestamp using compatible clocks.
Flakiness indicator = observed inconsistent verdicts for repeated equivalent test contexts; report cohort and sample size, not a causal diagnosis.
Zero denominators return NOT_APPLICABLE; incomplete inventories return PARTIAL. Coverage is not proof of defect absence. Do not aggregate incomparable builds, environments or coverage definitions.

MINI_RECURSION_ENGINE
1. Normalise test, requirement and build identities without merging revisions.
2. Ingest test definitions and execution records separately.
3. Validate oracle, timestamps, target digest and environment provenance.
4. Expand requirement-to-test and suite membership relationships.
5. Derive verdict evidence and coverage only from applicable records.
6. Traverse traceability graph with visited set and bounded node/depth budget.
7. Retain contradictory results and distinguish historical from current evidence.
8. Emit validated assertions, unresolved gaps and provenance; stop at fixed point or return PARTIAL with frontier.

INFERENCE_RULES
R1: executes(r,t) AND targets(r,b) AND validEvidence(r) -> testEvidence(t,b,r).
R2: verifies(t,q) AND testEvidence(t,b,r) -> requirementEvidence(q,b,r), not automatic satisfaction.
R3: allRequiredCriteriaSatisfied(q,b,e) AND completeEvidence(q,b,e) -> verifiedWithinScope(q,b,e).
R4: failedAssertion(r,a) -> investigationCandidate(r,a).
R5: changedRevision(t1,t2) -> reassessApplicability(t1,t2).
R6: suiteContains(s,t) AND executes(r,t) -> suiteRunEvidence(s,r), scoped to suite revision.
R7: missing run evidence -> UNKNOWN, never PASS.
R8: incompatible environment or artefact digest -> nonComparableEvidence.
R9: repeated differing valid verdicts under matched contexts -> possibleFlakiness.
R10: confirmed defect requires separate investigation evidence.

CONFIDENCE
Use VERIFIED, SUPPORTED, CONFLICTED, UNKNOWN per assertion. VERIFIED means checked against designated evidence, not universal truth. Preserve provenance, timestamp, scope and method. Derived claims inherit weakest supporting status. Retrieval scores are heuristic, not calibrated probabilities.

SEMANTIC_EQUIVALENCE
Test specifications are equivalent only under the same intended behaviour, preconditions, input domain, oracle semantics and scope. Equal names or equal verdicts do not imply equivalence. Runs remain distinct events even if their artefacts and observations match. Revisions may be linked by supersedes without erasing history.

VALIDATION AND FAILURE MODES
Reject malformed identifiers, negative durations, incompatible units and unsupported verdicts. Flag stale fixtures, ambiguous oracles, missing artefact digests, environment drift, duplicate runs, incomplete instrumentation and conflicting results. Preserve failed and superseded evidence. Do not execute untrusted code or expose secrets through test logs. Redact personal information before publication.

UPDATE_MODEL
Append new evidence with stable identifiers and revision metadata. Recompute affected derived assertions from active evidence when a requirement, oracle, build or environment changes. Preserve historical snapshots and invalidation reasons. Never silently carry a passing verdict to a different build.

TRI_MAPPING
Human: requirement -> test specification -> execution evidence -> review.
Graph: SoftwareRequirement <- verifies - TestCase <- executes - TestRun -> EvidenceRecord.
Algebra: I_t -> expand -> validate -> I_(t+1) -> scoped retrieval.

CONDITIONAL_EXECUTION_GUARANTEE
For finite assertion vocabulary, monotone rules and fixed evidence snapshot, repeated set-union expansion terminates at a fixed point. Otherwise enforce explicit iteration and resource limits. This guarantee concerns semantic traversal only, not successful test execution, software correctness or security. Specification is declarative and has not been runtime-tested.

AI_SEARCH_FLOW
Input: natural-language query, optional build/version, requirement and environment scope.
Normalise: resolve test aliases and distinguish test definitions, suites and runs.
Retrieve: relevant graph assertions and supporting evidence.
Expand: follow requirement, build, oracle, run and defect relationships within bounds.
Validate: check provenance, revision, scope and completeness.
Rank: prefer exact identity, matching context and direct evidence.
Output: answer, scope, verdict or UNKNOWN, evidence references, confidence, unresolved gaps and citation backlink.
Example: Which tests verify requirement Q for build B? Return applicable test revisions, run evidence and missing acceptance criteria; do not infer a pass from a test name.

FLOW_HASH
SHA-256 of all UTF-8 bytes preceding this hash section (excluding its leading blank line): dd8614a4dddcab713f6b3d6c9e904e55fad246297679ede2d6118451ab9df54d
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ