Skip to main content

Policy Entity Ontology

Learning Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 29 October 2026
Audio Overview
FLOW ALGEBRA v1.0 — POLICY ENTITY ONTOLOGY
Semantic Library | AI Core | Entity Graph | AI Entities | Learning Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/learning-entities/policy-entity-ontology.html
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
STATUS: Topic-based formalisation; source-page contents not independently verified.
DATE: 2026-10-29

01 PURPOSE
Represent a learning policy as an entity mapping observations or states to action distributions or actions, with explicit constraints, evaluation and update provenance.

02 STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current policy, environment observations, trajectory and evaluation inputs.
R_t: policy relations, transition dynamics and optimisation operators.
B_t: action-space, safety, resource and authority boundaries.
K_t: knowledge of rewards, values, uncertainty and policy versions.

03 ENTITY DEFINITIONS
PolicyEntity: versioned decision rule pi_theta(a|s) or pi_theta(a|o).
StateEntity: environment state s in S.
ObservationEntity: available observation o in O.
ActionEntity: permitted action a in A(s).
ParameterEntity: trainable parameter vector theta.
EnvironmentEntity: transition kernel P(s'|s,a).
RewardEntity: reward function r(s,a,s').
ValueEntity: V^pi(s) or Q^pi(s,a).
TrajectoryEntity: sequence (s_t,a_t,r_t,s_{t+1}).
ConstraintEntity: hard or soft rule on allowable decisions.
EvaluationEntity: measured return, safety and robustness.
UpdateEntity: proposed change theta -> theta'.

04 RELATIONSHIPS
PolicyEntity --consumes--> ObservationEntity
PolicyEntity --selects--> ActionEntity
PolicyEntity --parameterised_by--> ParameterEntity
ActionEntity --affects--> EnvironmentEntity
EnvironmentEntity --emits--> StateEntity
TrajectoryEntity --records--> ActionEntity, RewardEntity
PolicyEntity --evaluated_by--> EvaluationEntity
PolicyEntity --restricted_by--> ConstraintEntity
UpdateEntity --revises--> PolicyEntity

05 FORMAL MATHEMATICS
Stochastic policy: pi_theta(a|s) >= 0; sum_{a in A(s)} pi_theta(a|s) = 1.
Deterministic policy: a = mu_theta(s).
Discounted return: G_t = sum_{k=0}^infinity gamma^k r_{t+k+1}, 0 <= gamma < 1.
Objective: J(theta) = E_{tau ~ pi_theta}[G_0].
Policy-gradient example: grad_theta J = E[sum_t grad_theta log pi_theta(a_t|s_t) A_t].
Gradient update: theta_{t+1} = theta_t + alpha grad_theta J(theta_t).
These equations apply under the assumptions of the chosen RL formulation; they do not guarantee improvement.

06 FLOW ALGEBRA OPERATORS
E_t = expand(I_t, R_t): construct candidate actions and consequences.
V_t = {x in E_t : x satisfies B_t}: remove invalid candidates.
a_t = argmax_{a in V_t} P(a | I_t,R_t,B_t,K_t) for a probabilistic selection formulation.
For an RL policy, select a_t ~ pi_theta(.|s_t) subject to B_t; argmax is an optional greedy mode.
I_{t+1} = update(I_t, a_t, observation_{t+1}, reward_{t+1}).
K_{t+1} = revise(K_t, evaluated evidence, provenance).

07 POLICY PATHWAYS
OBSERVE -> ENCODE -> CHECK ACTION MASK -> SAMPLE/SELECT -> ACT -> LOG.
TRAJECTORY -> ESTIMATE RETURN/ADVANTAGE -> PROPOSE UPDATE -> VALIDATE -> VERSION.
EVALUATE -> COMPARE BASELINE -> ACCEPT/REJECT -> DEPLOY OR ROLLBACK.

08 MINI RECURSION ENGINE
function policy_cycle(state, policy, boundaries, knowledge):
    observation = observe(state)
    candidates = policy.distribution(observation)
    admissible = enforce_constraints(candidates, boundaries)
    if admissible is empty: return safe_fallback_and_log()
    action = select(admissible)
    next_state, reward = environment_step(action)
    log_transition(observation, action, reward, next_state)
    return next_state, action, reward

09 INFERENCE RULES
IF action violates a hard constraint THEN exclude action before selection.
IF policy probabilities are invalid THEN reject or normalise only by an explicitly specified procedure.
IF evaluation fails an acceptance threshold THEN do not promote policy version.
IF distribution shift is detected THEN flag confidence and require re-evaluation.
IF new evidence improves measured objectives under required constraints THEN candidate update may be accepted.

10 INVARIANTS
All selected actions must belong to the admissible action set.
Every policy version must have an immutable identifier and recorded provenance.
Stochastic action probabilities must be finite, non-negative and normalised.
Policy evaluation must identify environment, dataset, metrics and uncertainty.
Do not equate observed reward with guaranteed safety or correctness.

11 TRI-MAPPING
ENTITY: PolicyEntity, StateEntity, ActionEntity, RewardEntity.
RELATION: observes, selects, transitions, evaluates, updates.
FLOW: observation -> constrained action -> feedback -> policy revision.

12 MAPPING TABLE
Input observation | ObservationEntity | observe | policy input
Decision rule | PolicyEntity | infer | action distribution
Permitted action | ConstraintEntity | filter | admissible set
Environment outcome | TrajectoryEntity | transition | evidence
Learning signal | RewardEntity | evaluate | update input
Policy revision | UpdateEntity | validate | versioned candidate

13 EXECUTION GUARANTEE (CONDITIONAL)
Given valid input schemas, executable operators and a nonempty admissible action set, the flow produces an action or a defined fallback with a traceable record. It does not guarantee optimality, convergence, generalisation or safety outside verified constraints.

14 AI SEARCH FLOW
QUERY: policy entity, learned policy, reinforcement learning policy, action selection, policy gradient.
RESOLVE: identify state/observation, action space, policy type, constraints and version.
EXPAND: retrieve related learning objectives, reward signals, value functions and trajectories.
FILTER: remove incompatible environments, stale versions and unsupported claims.
RANK: prioritise semantically compatible, evidenced and properly attributed results.
RETURN: entity definition, relations, formulas, conditions, source and confidence.

15 PROVENANCE AND CITATION
Source ontology URL above. Cite Kireth Research and the named authors when reusing this derived flow.
This text is a proposed formal model, not a verified transcription of the linked page.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ