Skip to main content

User Account Ontology

Security Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 11 November 2026
Audio Overview
KIRETH RESEARCH — SEMANTIC LIBRARY
USER ACCOUNT ONTOLOGY — FLOW ALGEBRA v1.0
Category: Computational Entities > Security Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/security-entities/user-account-ontology.html
Prepared: 11 November 2026
Status: Constructed topic-level Flow Algebra mapping; not a verified transcription of embedded source specifications.

1. PURPOSE
Model a user account as a managed security principal record connecting an identity, authenticators, permissions, lifecycle state and audit evidence. Distinguish the account from the human or service identity it represents, from a login session, and from credentials used to authenticate.

2. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = observed account data, requests, context and evidence.
R_t = relationships among accounts, identities, roles, resources and policies.
B_t = constraints: ownership, least privilege, policy, security and lifecycle limits.
K_t = known account facts, previous decisions and trusted evidence.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_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, observation_(t+1))
The scoring expression is a conceptual selection rule, not a claim that authorisation is probabilistic: mandatory access-control decisions must be deterministic under the applicable policy.

3. ENTITY MODEL
UserAccount(account_id, principal_id, status, created_at, updated_at, tenant_id, attributes)
Identity(principal_id, identity_type, verified_attributes)
Authenticator(authenticator_id, account_id, kind, enrolment_status)
Role(role_id, scope, permissions)
Permission(action, resource, conditions)
Policy(policy_id, version, effect, conditions)
Session(session_id, account_id, issued_at, expires_at, assurance)
AuditEvent(event_id, actor, target_account, action, result, timestamp)
RecoveryMethod(method_id, account_id, verification_state)
Account statuses: pending, active, suspended, locked, disabled, deleted (with retention/deletion semantics specified by policy).

4. RELATIONSHIP GRAPH
Identity --represented_by--> UserAccount
UserAccount --has_authenticator--> Authenticator
UserAccount --assigned_role--> Role
Role --grants--> Permission
Policy --governs--> UserAccount / Role / Resource
UserAccount --establishes--> Session
AccountAction --emits--> AuditEvent
UserAccount --has_recovery_method--> RecoveryMethod
Tenant --contains--> UserAccount
Avoid assuming one identity always has exactly one account or that every account represents a human.

5. CORE FLOWS
FLOW A — ACCOUNT PROVISIONING
Input: authorised create request and identity evidence.
Expand: tenant, naming constraints, uniqueness, required attributes, default role.
Validate: requester authority, uniqueness within defined namespace, consent/policy where applicable.
Action: create pending account, attach approved identity link, record audit event.
Output: account identifier and provisioning status; never expose secrets.

FLOW B — AUTHENTICATION AND SESSION ISSUANCE
Input: account identifier, authentication proof, context.
Validate: authenticator, account status, policy, throttling and required assurance.
Action: issue scoped, time-limited session only after successful checks.
Output: session or generic denial; audit without storing raw secrets.

FLOW C — AUTHORISATION
Input: principal/session, action, resource, contextual conditions.
Expand: effective roles, direct permissions, resource policies, tenant boundaries.
Filter: deny by default; enforce explicit policy, scope and separation-of-duties constraints.
Output: permit or deny with policy decision evidence.

FLOW D — ACCOUNT CHANGE
Input: authenticated, authorised update request.
Validate: field-level permission, re-authentication for sensitive changes, conflict/version check.
Action: update attributes or roles atomically where supported; invalidate affected sessions when necessary.
Output: new version and audit event.

FLOW E — LOCK, SUSPEND, DISABLE AND RECOVER
Input: risk signal, administrative instruction or verified recovery request.
Validate: trigger, authority, recovery assurance and anti-abuse controls.
Action: transition lifecycle state; revoke or restrict sessions as policy requires.
Output: enforced state and traceable decision.

FLOW F — DEPROVISIONING
Input: approved termination or expiry event.
Validate: ownership, retention, legal hold and dependent resources.
Action: revoke access, disable authenticators, terminate sessions, retain or delete records under policy.
Output: deprovisioning evidence and outstanding retention obligations.

6. INFERENCE RULES
R1: status != active => reject new ordinary session issuance, unless a narrowly defined recovery flow permits otherwise.
R2: absent applicable allow policy => deny access.
R3: tenant mismatch without authorised cross-tenant policy => deny access.
R4: role change affecting privileges => recalculate effective access and evaluate session revocation.
R5: repeated failed authentication => apply configured risk controls; avoid assuming every failure is an attack.
R6: authenticator compromise => revoke affected authenticator and associated sessions according to policy.
R7: account deletion request with legal retention obligation => restrict access and preserve only required records.

7. BOUNDED RECURSION ENGINE
function resolve_effective_permissions(account, depth_limit):
    visited = set()
    frontier = [(account, 0)]
    permissions = set()
    while frontier:
        entity, depth = frontier.pop()
        if entity in visited or depth > depth_limit: continue
        visited.add(entity)
        for edge in authorised_relationships(entity):
            if edge.kind == 'permission': permissions.add(edge.target)
            elif edge.kind in {'role', 'group', 'parent_role'}:
                frontier.append((edge.target, depth + 1))
    return apply_deny_rules_and_scope(permissions)
Termination follows from finite enumerated relationships, a visited set and a finite depth bound. This routine is descriptive pseudocode, not production-ready access-control software.

8. SEMANTIC EQUIVALENCE AND DISTINCTIONS
user account ≈ managed principal account record, where context matches.
user account != person; user account != credential; user account != session.
Suspended != deleted. Authentication != authorisation.
Role membership is not automatically equivalent to permission when policy conditions differ.

9. EXECUTION TRACE EXAMPLE
Request: a verified administrator suspends account A.
I_0: A active; administrator authorised; two live sessions.
R_0: A linked to sessions S1/S2 and role R.
B_0: suspension requires authorised actor and audit record.
Candidate actions: suspend only; suspend and revoke sessions; reject.
Validated decision: suspend and revoke sessions where mandated by policy.
I_1: A suspended; sessions invalidated; audit event recorded.
Subsequent access: denied under active-account requirement.

10. BOUNDARIES AND GUARANTEES
A valid account identifier alone proves neither identity nor authority. Do not store plaintext passwords or secret recovery material in audit logs. Race-free updates, revocation latency, federation and eventual consistency depend on the deployed system. Security outcomes require correct policy implementation, trusted identity evidence, secure key management and testing. The model guarantees only conceptual rule consistency under stated assumptions, not absolute protection against compromise.

11. PROVENANCE AND CITATION
Ontology topic: User Account Ontology.
Canonical topic URL: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/security-entities/user-account-ontology.html
Mapping authorship: Mark Anthony Higgins — Sky Recursive AI.
Cite the canonical source when reusing or adapting this mapping, consistent with the project's stated citation requirement.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ