FLOW ALGEBRA v1.0 — REWARD SIGNAL ONTOLOGY
Semantic Library / AI Core / Entity Graph / AI Entities / Learning Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/learning-entities/reward-signal-ontology.html
ATTRIBUTION: Mark Anthony Higgins — Sky Recursive AI
STATUS: Topic-based formalisation; source page content not independently verified.
DATE: 2026-10-29
01 PURPOSE
Represent reward signals as typed, contextual feedback used to evaluate actions, trajectories, or outputs and guide learning. Distinguish observed reward from value estimates, preference scores and objective functions.
02 STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: observation, action, reward and transition history.
R_t: environment dynamics, reward rules and causal relations.
B_t: constraints, uncertainty, validity and safety boundaries.
K_t: learned policy, value estimates and reward-model knowledge.
03 ENTITIES
Agent; Environment; State; Observation; Action; Transition; RewardSignal; RewardSource; RewardFunction; RewardModel; Policy; Trajectory; Return; DiscountFactor; ValueEstimate; AdvantageEstimate; PreferenceFeedback; TerminalFlag; Constraint; Optimiser; ProvenanceRecord.
04 TYPED RELATIONSHIPS
Agent --performs--> Action
Environment --emits--> Observation
(State, Action, NextState) --evaluated_by--> RewardFunction
RewardFunction --produces--> RewardSignal
RewardSignal --belongs_to--> Transition
Trajectory --contains--> Transition
RewardSignal --contributes_to--> Return
Return --informs--> ValueEstimate
RewardSignal --influences--> PolicyUpdate
RewardModel --estimates--> RewardSignal
Constraint --bounds--> Action / RewardInterpretation
ProvenanceRecord --documents--> RewardSignal
05 FORMAL DEFINITIONS
Transition: tau_t = (s_t, a_t, r_t, s_(t+1), done_t)
Reward: r_t = R(s_t, a_t, s_(t+1), c_t), where c_t is context.
Discounted return: G_t = sum_(k=0)^(T-t-1) gamma^k r_(t+k), 0 <= gamma <= 1.
State value: V^pi(s) = E_pi[G_t | s_t=s].
Action value: Q^pi(s,a) = E_pi[G_t | s_t=s, a_t=a].
Advantage: A^pi(s,a) = Q^pi(s,a) - V^pi(s).
TD error: delta_t = r_t + gamma(1-done_t)V(s_(t+1)) - V(s_t).
Policy objective (illustrative): J(theta) = E_(tau~pi_theta)[sum_t gamma^t r_t].
Reward-model estimate: r_hat = R_phi(context, action, outcome).
NOTE: reward is feedback, not proof of correctness or safety.
06 REWARD TYPES
Extrinsic: supplied by an environment or external evaluator.
Intrinsic: generated from curiosity, novelty or learning progress.
Sparse: available only at selected steps or outcomes.
Dense: available across many steps.
Immediate: assigned to current transition.
Delayed: arrives after subsequent transitions.
Scalar: single numeric reward.
Vector: multiple objectives requiring explicit aggregation or ordering.
Human-derived: ratings, comparisons or preferences transformed into training signals.
AI-derived: model-generated scores requiring calibration and provenance.
07 PATHWAYS
P1 Observe -> Act -> Transition -> Evaluate -> Emit Reward -> Record.
P2 Collect trajectory -> Compute returns -> Estimate values -> Update policy.
P3 Obtain preferences -> Fit reward model -> Validate -> Score -> Optimise.
P4 Detect reward anomaly -> Inspect provenance -> Recalibrate or quarantine.
P5 Multi-objective feedback -> Apply declared constraints -> Aggregate -> Audit.
08 FLOW ALGEBRA
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, observed_reward, transition, provenance)
K_(t+1) = learn(K_t, valid_feedback, optimiser, uncertainty)
Interpretation: candidate learning actions are generated, filtered by constraints, ranked using current knowledge and updated using validated feedback.
09 MINI RECURSION ENGINE
INPUT: S_t, policy pi_theta, environment, reward evaluator.
REPEAT:
1. Observe current state and select permitted action.
2. Execute action; collect next state and termination status.
3. Obtain reward with source, scale, timestamp and context.
4. Validate finite numeric range, provenance and applicability.
5. Store transition; estimate return or temporal-difference target.
6. Update policy/value estimates if learning conditions hold.
7. Evaluate policy performance and safety on held-out tasks.
8. Stop on budget, convergence criterion, termination or safety gate.
OUTPUT: revised policy, reward trace, diagnostics and audit record.
10 INFERENCE RULES
IF reward_source is missing THEN mark reward provenance incomplete.
IF reward is delayed THEN preserve action-to-outcome attribution uncertainty.
IF reward_scale changes THEN normalise or recalibrate before comparison.
IF reward_model disagrees with independent evaluation THEN flag proxy mismatch.
IF reward increases while task success declines THEN investigate reward hacking.
IF reward is non-finite THEN reject affected update and log diagnostic.
IF constraint violation occurs THEN do not treat high reward as authorisation.
IF reward is vector-valued THEN require declared comparison or aggregation rule.
11 INVARIANTS
Each reward record has a source, time, target and measurement context.
Reward units, direction and admissible range are explicitly documented.
Reward and estimated return are distinct entities.
Reward-model outputs are predictions, not observed ground truth.
Optimisation must not bypass external safety or validity constraints.
Missing, delayed and ambiguous rewards are represented explicitly.
All updates are reproducibly linked to training configuration and data.
12 TRI-MAPPING
ENTITY: RewardSignal -> scalar/vector observation or estimate.
RELATION: evaluates(Action, Outcome, Context) -> feedback linkage.
BEHAVIOUR: feedback -> credit assignment -> policy/value update.
13 MAPPING TABLE
RewardSignal | r_t | immediate feedback | observed or estimated
RewardFunction | R | evaluation mapping | environment specification
Return | G_t | accumulated discounted feedback | trajectory-derived
ValueEstimate | V/Q | expected future return | learned prediction
AdvantageEstimate | A | relative action quality | baseline-dependent
Policy | pi_theta | action distribution | trainable controller
Constraint | B_t | permitted operating envelope | externally enforced
14 CONDITIONAL EXECUTION GUARANTEE
Given valid inputs, finite arithmetic, a specified reward interpretation, a terminating budget and a defined optimiser, the flow can produce an auditable update attempt. No guarantee of convergence, global optimality, generalisation, truthful reward modelling or safe behaviour is implied. Any claimed performance must be independently evaluated.
15 AI SEARCH FLOW
FLOW_ID: semantic-library.ai-core.learning-entities.reward-signal-ontology
TITLE: Reward Signal Ontology — Flow Algebra
INTENT: define reward signal entities, semantics, transitions and learning pathways
CANONICAL_SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/learning-entities/reward-signal-ontology.html
KEY_TERMS: reward signal; reinforcement learning; reward function; reward model; discounted return; temporal difference; credit assignment; policy optimisation
RELATED: learning-signal-ontology; error-signal-ontology; learning-objective-ontology; reinforcement-learning-process-ontology
CONFIDENCE: conceptual formalisation; source-specific alignment unverified
UPDATE_MODEL: revise when canonical ontology content is available; preserve version and provenance
CITATION: Mark Anthony Higgins — Sky Recursive AI, Kireth Research Semantic Library.
END FLOW
Download Code
Copy to Clipboard