Skip to main content

Security Policy 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 POLICY 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/security-policy-ontology.html
Prepared: 11 November 2026
Status: Constructed topic-level mapping; not a verified transcription of the webpage.

1. PURPOSE
Represent a security policy as a versioned, auditable set of rules and constraints governing which principals may perform which actions on which resources under specified conditions. Distinguish policy definition from enforcement and from evidence that a control operated correctly.

2. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: request, principal, resource, action, environment and policy context.
R_t: policy relationships, precedence, inheritance, applicability and enforcement pathways.
B_t: mandatory constraints, trust boundaries, legal/organisational restrictions and deny conditions.
K_t: policy versions, attributes, decisions, evidence and confidence in input provenance.
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 argmax is a conceptual selection expression, not a substitute for deterministic access-control semantics. A compliant implementation evaluates the governing policy algorithm and defaults to deny when authorisation cannot be established.

3. ENTITY MODEL
SecurityPolicy: policy_id, version, issuer, scope, effective_from, effective_until, status, rules, combining_algorithm.
PolicyRule: rule_id, effect [permit|deny], subject_selector, resource_selector, action_selector, conditions, obligations, priority.
Principal: authenticated identity or service identity and verified attributes.
Resource: protected object, API, dataset, service or operation.
Action: requested operation such as read, write, execute or administer.
Context: time, device posture, network zone, session and other trusted environmental attributes.
PolicyDecision: permit, deny, not_applicable or indeterminate, with reason and policy version.
PolicyEnforcementPoint (PEP): component that intercepts and enforces requests.
PolicyDecisionPoint (PDP): component that evaluates policies.
PolicyInformationPoint (PIP): trusted source of relevant attributes.
PolicyAdministrationPoint (PAP): controlled policy authoring and publishing interface.
AuditRecord: timestamp, request reference, policy version, decision, reason, enforcement outcome; redact secrets.

4. RELATIONSHIP GRAPH
Principal --requests--> Action --targets--> Resource
Request --evaluated_against--> SecurityPolicy
SecurityPolicy --contains--> PolicyRule
PolicyRule --constrains--> Principal/Action/Resource/Context
PDP --consults--> PolicyRule and PIP
PDP --returns--> PolicyDecision
PEP --enforces--> PolicyDecision
PAP --publishes--> SecurityPolicy version
Decision --produces--> AuditRecord
Policy --supersedes--> PreviousPolicyVersion

5. CORE FLOWS
FLOW SP-01: Policy registration
INPUT: candidate policy and authorisation to publish.
EXPAND: schema, referenced rules, dependencies, scope and version.
FILTER: syntax valid; no unauthorised edits; no unresolved references; review completed.
SELECT: approved immutable version.
OUTPUT: published policy or rejection with reasons.

FLOW SP-02: Access decision
INPUT: principal, action, resource, trusted context and active policy version.
EXPAND: applicable policies and rules; verified attributes; inheritance edges.
FILTER: applicable selectors, validity windows, hard constraints and mandatory denies.
DECIDE: apply explicitly configured combining algorithm (e.g. deny-overrides).
OUTPUT: permit, deny, not_applicable or indeterminate, with reason codes.
ENFORCE: PEP permits only an explicit, valid permit; otherwise denies.

FLOW SP-03: Change control
INPUT: proposed policy revision.
EXPAND: affected roles, resources, operations, dependencies and test cases.
FILTER: change approval, separation of duties, regression and security checks.
SELECT: accepted version or rollback.
OUTPUT: versioned publication and audit evidence.

FLOW SP-04: Continuous compliance
INPUT: policy, control telemetry and evidence.
EXPAND: relevant controls and obligations.
FILTER: evidence freshness, integrity and scope.
OUTPUT: compliant, non-compliant or insufficient evidence; create remediation task as needed.

6. INFERENCE RULES
R1: If a mandatory deny matches, the result is deny regardless of optional permits.
R2: If the principal is unauthenticated where authentication is required, deny.
R3: If a required attribute is missing or untrusted, do not infer permission.
R4: If policy evaluation fails or is indeterminate, enforcement fails closed.
R5: A policy version outside its effective interval is not applicable.
R6: A permit decision does not override a separately enforced hard safety constraint.
R7: A change to inherited policy may affect dependent resources and must trigger impact review.
R8: Evidence of policy publication is not evidence of successful enforcement.

7. BOUNDED RECURSION ENGINE
function evaluate(request, policy_id, visited, depth, max_depth):
    if depth > max_depth: return INDETERMINATE("depth limit")
    if policy_id in visited: return INDETERMINATE("policy cycle")
    policy = load_active_verified_policy(policy_id)
    if policy missing: return INDETERMINATE("policy unavailable")
    visited_next = visited union {policy_id}
    results = evaluate_applicable_local_rules(policy, request)
    for parent_id in policy.inherited_policy_ids:
        results.append(evaluate(request, parent_id, visited_next, depth+1, max_depth))
    return combine_with_explicit_policy_algorithm(results)

PEP rule: only PERMIT authorises access; DENY, NOT_APPLICABLE and INDETERMINATE do not.

8. BOUNDARIES AND GUARANTEES
Enforce least privilege, separation of duties, trustworthy attributes, controlled policy changes and auditable decisions. Protect logs from tampering and avoid recording secrets. Evaluate time-of-check/time-of-use risk for long-lived sessions and changing resource attributes. Availability, fairness, correctness and enforcement cannot be guaranteed merely by the ontology; they depend on implementation, configuration and evidence. Policy recursion terminates only when the depth bound and visited-set checks are implemented.

9. SEMANTIC EQUIVALENCE
Security policy != security mechanism: a policy specifies requirements; a mechanism implements them.
Authentication != authorisation: identity verification does not itself grant permission.
ACL is one policy representation, not synonymous with all security policy models.
RBAC and ABAC can both express access restrictions, but are not generally equivalent.
NOT_APPLICABLE != PERMIT; INDETERMINATE != PERMIT.

10. EXECUTION TRACE EXAMPLE
Request: service_account_7 attempts READ on report_42.
Policy: version 3, active; READ allowed for verified reporting-role principals on approved reports; deny if report is restricted.
Observed: principal verified, reporting role present, report approved, restricted=false.
Applicable rule: permit; no mandatory deny; decision PERMIT.
PEP action: allow READ and log policy version, rule, outcome.
If the restricted attribute is unavailable, decision becomes INDETERMINATE and the PEP denies.

11. PROVENANCE AND CITATION
Source topic: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/security-entities/security-policy-ontology.html
Authors: Mark Anthony Higgins — Sky Recursive AI
This file is an original, constructed Flow Algebra interpretation of the named topic; it does not claim to reproduce the source page's complete embedded ontology.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ