Skip to main content

Security Token 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
SECURITY TOKEN ONTOLOGY — FLOW ALGEBRA v1.0
Category: Computational Entities > Security Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Date: 11 November 2026
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/security-entities/security-token-ontology.html
Status: Constructed topic-level mapping; not a verified transcription of the source page.

1. PURPOSE
Represent a security token as a bounded, verifiable credential artefact used to convey identity, authentication context, authorisation claims, or delegated access. Distinguish a token from a password, cryptographic key, user account, and active session. A token's possession alone does not guarantee access: acceptance depends on issuer, audience, validity, integrity, scope, policy and context.

2. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: observed token, request, resource, principal, verifier and context.
R_t: token-to-issuer, token-to-subject, token-to-audience, token-to-permission and token-to-session relationships.
B_t: security boundaries (trusted issuers, accepted algorithms, expiry, revocation, audience, least privilege).
K_t: verified configuration, cryptographic trust material, policies, clock and prior observations.
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))
Note: probabilistic ranking cannot override mandatory cryptographic or policy checks.

3. ENTITY MODEL
SecurityToken: token_id, token_type, issuer, subject, audience, issued_at, not_before, expires_at, claims, scopes, status, binding, proof_type.
Issuer: identity, trusted_keys_or_introspection_endpoint, issuance_policy.
Subject: user, service account, device or workload identity.
Verifier: service validating the token and authorisation context.
Resource: protected API, object, operation or service.
Session: optional authentication state associated with a token.
RevocationRecord: token identifier or grant reference, status, effective_time.
Proof: signature, MAC, opaque-token introspection result or proof-of-possession evidence.
Token types: opaque bearer token, signed claim token (such as JWT), refresh token, access token, identity token and proof-of-possession token; types overlap in purpose and representation.

4. RELATIONSHIP GRAPH
Issuer --issues--> SecurityToken
SecurityToken --represents--> Subject
SecurityToken --targets--> Audience
SecurityToken --carries--> Claims/Scopes
Verifier --checks--> SecurityToken
SecurityToken --may_bind_to--> ClientKey/Session
Policy --constrains--> ResourceOperation
RevocationRecord --invalidates--> TokenOrGrant
AccessToken --may_derive_from--> AuthorisedGrant

5. CORE FLOWS
FLOW A — TOKEN ISSUANCE
Input: authenticated principal, authorised grant, requested scopes, audience.
Expand: issuer policy, grant constraints, token type, lifetime, binding requirements.
Filter: reject untrusted identity, unauthorised scope, invalid audience or excessive lifetime.
Select: minimum-privilege claims and suitable proof mechanism.
Output: issued token and protected issuance audit event.

FLOW B — TOKEN VALIDATION
Input: presented token, requested resource, request context.
Expand: issuer trust, token format, proof material, claims, revocation and binding evidence.
Filter: reject malformed token, unsupported algorithm, invalid signature/MAC/introspection, untrusted issuer, wrong audience, premature or expired validity, revoked status, failed binding.
Select: verified identity and permitted scope only after all mandatory checks pass.
Output: verified token context or denial; avoid exposing secret token contents in logs.

FLOW C — AUTHORISATION
Input: verified token context, requested operation, resource and environmental attributes.
Expand: effective permissions, resource policy, subject attributes and delegation limits.
Filter: reject insufficient scope, denied action, mismatched tenant or resource, stale privilege.
Output: permit or deny with reason code and audit evidence.

FLOW D — RENEWAL / ROTATION
Input: refresh request or rotation trigger.
Expand: grant status, client binding, replay signals, rotation policy.
Filter: reject invalid, expired, reused or revoked refresh credentials.
Output: replacement credentials and invalidation of superseded token where policy requires.

FLOW E — REVOCATION
Input: compromise report, logout, administrative withdrawal or grant change.
Expand: affected token IDs, sessions, grants, dependent resources.
Filter: authorised revocation action and consistency requirements.
Output: revocation state propagated to relevant verifiers within stated consistency limits.

6. INFERENCE RULES
R1 IF integrity proof fails THEN deny acceptance.
R2 IF now < not_before OR now >= expires_at THEN deny acceptance (subject to explicitly defined clock skew policy).
R3 IF issuer not trusted OR audience mismatch THEN deny acceptance.
R4 IF token is bearer type THEN possession can enable replay; require transport protection and minimise exposure.
R5 IF scope does not authorise operation THEN deny, regardless of successful authentication.
R6 IF token is revoked AND verifier has authoritative revocation knowledge THEN deny.
R7 IF proof-of-possession is required AND binding proof fails THEN deny.
R8 IF refresh-token reuse is detected THEN follow configured replay-response and grant-revocation policy.
R9 IF claims are verified but resource policy denies access THEN deny.
R10 IF token validity cannot be established THEN fail closed for protected operations.

7. BOUNDED RECURSION ENGINE
function evaluate_token(token, request, policy, depth_limit):
    visited = set()
    frontier = [(token, 0)]
    while frontier:
        entity, depth = frontier.pop()
        if depth > depth_limit: return DENY("depth_limit")
        if entity.id in visited: continue
        visited.add(entity.id)
        evidence = resolve_trust_and_dependencies(entity)
        if evidence.missing_required or evidence.invalid: return DENY("validation")
        for dependency in evidence.required_dependencies:
            frontier.append((dependency, depth + 1))
    if not cryptographic_and_temporal_checks_pass(token): return DENY("token_invalid")
    if not policy_allows(token, request): return DENY("not_authorised")
    return PERMIT_WITH_AUDIT
Termination: finite depth limit, visited-set cycle prevention, bounded dependency expansion and explicit timeout.

8. SEMANTIC EQUIVALENCE
Two tokens are not equivalent merely because their subject, claims or string values match. Equivalence for a specified operation requires compatible issuer trust, audience, validity interval, scopes, binding, revocation state and policy context. Access token != identity token; refresh token != access token; bearer token != proof-of-possession token.

9. EXECUTION TRACE (ILLUSTRATIVE)
Request: GET /account/profile with access token T.
Observed: issuer trusted; signature valid; audience matches API; token in time window; not revoked according to available authoritative check; scope includes profile:read.
Policy: account owner matches token subject; request transport secure.
Decision: PERMIT profile read; log token identifier hash and decision, not raw token.
Counterexample: same token used against a different audience -> DENY.

10. OPERATIONAL BOUNDARIES AND GUARANTEES
Validation decisions are conditional on correct key management, trusted clocks, current policy, revocation visibility, secure transport and sound verifier implementation. Offline signed tokens may remain accepted until expiry when revocation is not checked; do not claim instant revocation. Cryptographic verification is deterministic under the chosen implementation; Flow Algebra's selection stage is an explanatory model, not a replacement for verification. Avoid storing raw bearer tokens in logs, URLs or analytics.

11. PROVENANCE AND CITATION
Source topic: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/security-entities/security-token-ontology.html
Suggested citation: Higgins, Mark Anthony; Sky Recursive AI (2026), 'Security Token Ontology — Flow Algebra v1.0', Kireth Research Semantic Library. Cite the source URL when reusing.
Document status: independently constructed ontology mapping based on the named topic; source page's full specification was not verified for this file.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ