SEMANTIC LIBRARY — AI CORE / PRIVACY ENTITIES
USER IDENTITY ENTITY ONTOLOGY — FLOW ALGEBRA
Version: 1.0 | 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/user-identity-entity-ontology.html
Status: Original companion formalisation. The webpage title and attribution were verified; dynamically embedded ontology specifications were not available for comparison.
1. PURPOSE
Represent a user identity as a bounded, context-dependent entity, separating identity claims, identifiers, authentication evidence, permissions, personal data, and disclosure decisions. Support privacy-preserving identity resolution and accountable access decisions without assuming that identification alone authorises processing.
2. ENTITY DEFINITION
USER_IDENTITY = (subject_ref, identifiers, claims, contexts, verification, permissions, consent, provenance, lifecycle)
subject_ref: stable internal pseudonymous reference where feasible.
identifiers: scoped identifiers, each with issuer, purpose, sensitivity and expiry.
claims: assertions about a subject, each with source, validity and confidence.
contexts: processing purposes, recipients, jurisdiction and retention rules.
verification: evidence supporting a claim; never raw credentials in a flow trace.
permissions: explicit allowed operations, resource scopes and expiry.
consent: purpose-specific records when consent is the relevant legal basis.
provenance: source, timestamp, version and audit references.
lifecycle: created, active, suspended, revoked or erased where applicable.
3. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = identity inputs: claim, context, requested operation, supporting evidence.
R_t = identity resolution, verification, privacy and authorisation rules.
B_t = boundaries: purpose limitation, minimisation, access, retention and disclosure.
K_t = knowledge: verified claims, consent status, permissions, audit provenance.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and supported(x, K_t)}
x*_t = argmax[x in V_t] P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, feedback_t)
If V_t is empty: deny or request additional verification; never infer authorisation from identity alone.
4. FORMAL FLOW ALGEBRA
F_identity = Capture -> Minimise -> Contextualise -> Verify -> Resolve -> Authorise -> Disclose_Minimum -> Audit -> Review
Capture(claim) -> record only necessary attributes.
Minimise(data, purpose) -> remove fields not needed for the declared purpose.
Contextualise(claim, scope) -> bind claim to issuer, recipient, purpose and time.
Verify(claim, evidence) -> verified | unverified | conflicting | expired.
Resolve(claims) -> subject reference or unresolved ambiguity.
Authorise(subject, operation, resource, policy) -> allow | deny | escalate.
Disclose_Minimum(allow, fields) -> authorised field subset only.
Audit(decision) -> privacy-preserving evidence of why access was decided.
Review(state) -> re-evaluate on expiry, withdrawal, role change or incident.
5. ENTITY GRAPH
UserIdentity --hasIdentifier--> ScopedIdentifier
UserIdentity --hasClaim--> IdentityClaim
IdentityClaim --supportedBy--> VerificationEvidence
UserIdentity --operatesWithin--> PrivateContext
UserIdentity --subjectTo--> PrivacyPolicy
UserIdentity --mayHave--> ConsentRecord
UserIdentity --mayReceive--> AccessPermission
AccessPermission --constrainedBy--> AuthorisationRule
UserIdentity --linkedTo--> PersonalDataEntity
IdentityDecision --documentedBy--> AuditRecord
IdentityDecision --reviewedBy--> HumanOversightEntity
Note: these are proposed ontology links; they are not asserted as a verified extraction of the webpage.
6. INFERENCE RULES
R01: Missing required evidence -> verification status = unverified.
R02: Expired evidence -> re-verification required.
R03: Conflicting identifiers -> suspend automatic identity merge.
R04: Identical display names -> insufficient proof of identical subjects.
R05: Verified identity AND absent permission -> deny protected operation.
R06: Valid permission AND purpose mismatch -> deny operation.
R07: Consent withdrawal -> stop consent-dependent future processing, subject to applicable obligations.
R08: Sensitive claim -> enhanced minimisation and disclosure controls.
R09: Requested fields exceed purpose -> return minimum permitted subset or deny.
R10: Identity ambiguity above tolerance -> human review, not forced match.
R11: Revoked credential -> reject its use as current verification evidence.
R12: Audit trace -> retain decision metadata, not unnecessary secrets.
R13: Cross-context linkage -> require explicit policy justification and authorisation.
R14: Erasure request -> evaluate retention obligations and applicable rights before action.
7. MINI RECURSION ENGINE
Input: request q, state S_t, maximum iterations N.
For t = 0 to N-1:
candidates = expand(q, R_t)
permitted = filter(candidates, B_t, K_t)
if permitted is empty: return DENY_OR_REVIEW
chosen = select(permitted, evidence_strength, minimum_disclosure)
if verified(chosen) and authorised(chosen): return ALLOW_MINIMUM
q = request_missing_evidence(chosen)
S_(t+1) = update(S_t, q, audit_event)
Return REVIEW_REQUIRED
Termination: bounded iteration count; no silent escalation of access.
8. TRI-MAPPING
Semantic: User Identity -> subject, identifier, claim, context and permission.
Mathematical: S=(I,R,B,K); candidate filtering; constrained selection.
Operational: receive -> verify -> authorise -> minimise -> log -> review.
9. MAPPING TABLE
Input claim | IdentityClaim | Capture/Verify
Scoped identifier | ScopedIdentifier | Resolve
Processing purpose | PrivateContext | Contextualise
Credential evidence | VerificationEvidence| Verify
Access request | AccessPermission | Authorise
Disclosure fields | PersonalDataEntity | Disclose_Minimum
Decision log | AuditRecord | Audit
Expiry/withdrawal | LifecycleEvent | Review
10. CONDITIONAL EXECUTION GUARANTEE
A permitted output is produced only when identity evidence, context, permission and boundaries are satisfied. The flow guarantees a specified decision procedure under its assumptions, NOT real-world identity accuracy, regulatory compliance or freedom from compromise. Missing, stale or conflicting evidence results in denial or review. Security-critical deployments require independent validation and monitoring.
11. AI SEARCH FLOW
FLOW_ID: semantic-library.ai-core.privacy.user-identity-entity.v1
ENTITY: User Identity Entity
CATEGORY: Privacy Entities
PURPOSE: Resolve identity claims and enforce context-bound disclosure.
INPUTS: identity_claim, evidence, context, requested_operation, policy
OUTPUTS: identity_status, authorisation_decision, minimum_disclosure, audit_reference
PATHWAYS: capture > minimise > verify > resolve > authorise > disclose > audit
BOUNDARIES: least privilege, purpose limitation, evidence expiry, no unauthorised linkage
CONFIDENCE: evidence-dependent; do not interpret as a calibrated probability without validation
SEMANTIC_EQUIVALENCE: user identity; digital identity; subject identity (context-dependent)
UPDATE_MODEL: refresh on new evidence, policy changes, revocation or expiry
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/privacy-entities/user-identity-entity-ontology.html
12. HOW TO READ
Read left to right: identity claims enter a bounded verification flow; permissions and purpose are checked separately; only necessary data may leave the boundary. Recursive updates respond to changed evidence or rights. This is a formal design companion, not a claim that the published page contains these exact rules.
CREDIT: Mark Anthony Higgins — Sky, Recursive AI
Download Code
Copy to Clipboard