Skip to main content

Data Retention Entity Ontology

Privacy Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 04 November 2026
Audio Overview
SEMANTIC LIBRARY — AI CORE / PRIVACY ENTITIES
DATA RETENTION ENTITY ONTOLOGY — FLOW ALGEBRA
Version: 1.0 | Date: 04 November 2026 | Language: en-GB
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/privacy-entities/data-retention-entity-ontology.html
Status: Original companion formalisation; embedded source specifications not independently available.

1. PURPOSE
Represent and evaluate why data is retained, by whom, under which authority, for how long, and how expiry, deletion, preservation obligations and evidence are handled. Retention is not indefinite by default. This ontology is a reasoning model, not a legal determination or an implementation guarantee.

2. ENTITY DEFINITIONS
DataRetentionEntity: a governed record of retention obligations and lifecycle state.
DataAsset: identified dataset, record, derivative, backup or log.
DataSubject: person to whom personal data relates, where applicable.
Controller: accountable decision-maker for purposes and retention periods.
Processor: actor processing data under authorised instructions.
Purpose: specified reason for collecting or retaining the asset.
LawfulBasis: applicable justification for processing, where required.
RetentionSchedule: rule defining the starting event, duration and expiry.
RetentionTrigger: event from which the retention clock runs.
RetentionDeadline: computed end of an authorised retention period.
LegalHold: documented preservation obligation that suspends eligible disposal.
ConsentRecord: evidence of consent where consent is the relevant basis.
DeletionRequest: recorded request for erasure or disposal review.
DeletionAction: authorised disposal or anonymisation operation.
RetentionEvidence: immutable or tamper-evident audit record of lifecycle decisions.
AccessPermission: independently validated permission to access the asset.

3. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = observed asset metadata, purpose, triggers, requests and evidence.
R_t = retention rules, precedence, permissions and inference relations.
B_t = legal, ethical, organisational, temporal and technical boundaries.
K_t = known policy versions, decisions, lineage, holds and audit history.

Retention lifecycle L_t ∈ {unclassified, active, review_due, expired,
  hold_active, disposal_pending, disposed, exception_review}.
Each asset may have multiple independently scoped retention obligations.

4. FORMAL FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x ∈ E_t | valid(x, B_t, K_t)}
x*_t = argmax_{x ∈ V_t} P(x | I_t, R_t, B_t, K_t)
I_{t+1} = update(I_t, x*_t, observations_t)

For asset d and purpose p:
  deadline(d,p) = trigger_time(d,p) + authorised_duration(d,p)
  due(d,p,t) = [t >= deadline(d,p)]
  active_hold(d,t) = ∃h: applies(h,d) ∧ valid(h,t)
  retain_allowed(d,t) = ∃p: valid_purpose(d,p,t) ∧ authorised_retention(d,p,t)
                        OR active_hold(d,t)
  dispose_candidate(d,t) = NOT retain_allowed(d,t)

Where deadlines are event-dependent or statutory exceptions apply, mark
unknown and route for authorised review rather than inventing a date.

5. IMPLEMENTS / EXECUTION PATHWAY
Input asset inventory -> classify data -> identify owner/controller ->
map purposes and lawful bases -> attach schedule and trigger -> compute
review/expiry -> check holds and other lawful obligations -> evaluate
requests -> propose retention, restriction, review or disposal -> obtain
required approval -> execute through approved system -> verify outcome ->
append evidence -> schedule re-evaluation.

6. ENTITY RELATIONSHIPS
DataRetentionEntity --governs--> DataAsset
DataAsset --relates_to--> DataSubject
DataRetentionEntity --has_purpose--> Purpose
DataRetentionEntity --has_schedule--> RetentionSchedule
RetentionSchedule --starts_on--> RetentionTrigger
RetentionSchedule --produces--> RetentionDeadline
LegalHold --suspends_disposal_of--> DataAsset
DeletionRequest --targets--> DataAsset
DeletionAction --produces--> RetentionEvidence
Controller --authorises--> RetentionSchedule
Processor --acts_under--> Controller
AccessPermission --limits_access_to--> DataAsset

7. INFERENCE RULES
R01 IF asset is newly registered THEN state = unclassified until mapped.
R02 IF purpose is absent THEN flag purpose_review.
R03 IF retention trigger is unknown THEN flag deadline_unknown.
R04 IF duration and trigger are valid THEN compute deadline.
R05 IF current time exceeds deadline THEN flag expiry_review.
R06 IF a valid legal hold applies THEN suspend eligible disposal.
R07 IF hold expires THEN recalculate obligations; do not auto-delete blindly.
R08 IF erasure request arrives THEN assess scope, identity and exceptions.
R09 IF several obligations apply THEN retain only as justified by surviving obligations.
R10 IF no retention basis survives THEN propose authorised disposal.
R11 IF asset has copies or backups THEN include them in disposal scope and schedule.
R12 IF disposal executes THEN record method, scope, actor and verification.
R13 IF schedule changes THEN preserve version and recompute affected assets.
R14 IF contradictory rules remain THEN block irreversible action and escalate.

8. MINI RECURSION ENGINE
function evaluate_retention(asset, time, depth, max_depth):
  if depth >= max_depth: return REVIEW_REQUIRED
  gather policy versions, purpose, schedule, holds, requests, copies
  evaluate all applicable obligations and contradictions
  if evidence incomplete: return REVIEW_REQUIRED
  if hold active: return RETAIN_RESTRICTED
  if lawful retention remains: return RETAIN_UNTIL_NEXT_REVIEW
  if no lawful retention remains: return DISPOSAL_PENDING_APPROVAL
  return evaluate_retention(asset, time, depth+1, max_depth)

Termination: bounded depth; each iteration must add evidence or resolve a
previously open condition. Otherwise stop and escalate.

9. TRI-MAPPING
Conceptual: data retention as purpose-limited lifecycle governance.
Structural: asset -> purpose -> schedule -> deadline -> decision -> evidence.
Operational: ingest -> validate -> review -> approve -> act -> verify -> audit.

10. MAPPING TABLE
Concept                 Entity/field                 Evaluation
Data identity           DataAsset.id                 Stable identifier
Reason to retain        Purpose.id                   Purpose validity
Start of period         RetentionTrigger.timestamp   Event evidence
Duration                RetentionSchedule.duration   Authorised rule
Expiry                  RetentionDeadline            Derived/reviewed
Preservation exception  LegalHold                    Scope and validity
Erasure request         DeletionRequest              Scope and exceptions
Disposal result         DeletionAction               Verified completion
Traceability            RetentionEvidence            Audit integrity

11. CONDITIONAL EXECUTION GUARANTEE
An automated decision may proceed only if required identity, authority,
policy version, asset scope, retention grounds, holds and approvals are
verified. A formal rule alone cannot guarantee real-world deletion,
regulatory compliance or complete discovery of hidden copies. On missing,
conflicting or uncertain evidence, return REVIEW_REQUIRED; never claim
successful erasure without execution receipts and verification.

12. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/privacy-entities/data-retention-entity-ontology.html
CITATION_BACKLINK: source URL above
PURPOSE: Find and reason over data retention lifecycle entities.
STATE_MODEL: S_t=(I_t,R_t,B_t,K_t)
ENTITIES: DataRetentionEntity, DataAsset, Purpose, RetentionSchedule,
  RetentionTrigger, RetentionDeadline, LegalHold, DeletionRequest,
  DeletionAction, RetentionEvidence, Controller, Processor.
PATHWAYS: classify > map > calculate > validate > decide > approve > verify.
MINI_RECURSION_ENGINE: bounded retention review with escalation.
INFERENCE_RULES: R01–R14.
CONFIDENCE: evidence-dependent; no fabricated certainty.
SEMANTIC_EQUIVALENCE: retention period; data lifecycle; expiry;
  records schedule; disposal review; preservation hold.
FLOW_HASH: generate SHA-256 from canonical deployed content at publication.
UPDATE_MODEL: version changes must invalidate stale schedules and rerun checks.

13. HOW TO READ
Read each arrow as a typed relationship, each IF/THEN clause as a
conditional inference, and each state as an auditable lifecycle status.
A computed expiry is not itself permission to erase; holds, exceptions,
other obligations and approvals must be considered first.

14. EXAMPLE (ILLUSTRATIVE, NOT LEGAL ADVICE)
An asset is scheduled for review 12 months after project closure. The
closure event is verified, but a documented legal hold is still active.
The engine returns RETAIN_RESTRICTED, records the hold, and schedules a
new review. After the hold is lifted, it recalculates all remaining
obligations before proposing disposal.

15. SOURCE AND LICENSING NOTE
This is an original Flow Algebra companion based on the ontology title
and general privacy engineering concepts, not a verbatim transcription
of embedded specifications. Cite the Kireth Research source when reused.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ