Skip to main content

Alignment Rule Ontology

Alignment Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 03 November 2026
Audio Overview
SEMANTIC LIBRARY — AI CORE — ENTITY GRAPH
ALIGNMENT RULE ONTOLOGY — FLOW ALGEBRA
Version: 1.0 | Date: 2026-11-03 | Language: en-GB
Authors: Mark Higgins; Sky — Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/alignment-entities/alignment-rule-ontology.html
Status: Original companion formalisation; source page text not independently verified.
Licence: Open research use; attribution and source citation requested.

1. PURPOSE
An Alignment Rule is a versioned, testable normative condition that maps an AI system's proposed action, output or state and its context to a permitted, denied, revised, escalated or deferred disposition. It operationalises alignment objectives and constraints without treating a model's self-assessment as proof of compliance.

2. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current input, proposed action, context, observed evidence
R_t = applicable alignment rules, precedence, exceptions and version identifiers
B_t = safety boundaries, authority limits, uncertainty thresholds and hard constraints
K_t = validated knowledge, provenance, past assessments and audit records
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and authorised(x, R_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t) * U_align(x)
I_(t+1) = update(I_t, x*_t, observation_t)
If V_t is empty: do not execute; refuse, request clarification or escalate as appropriate.
The argmax is a selection heuristic, not a mathematical guarantee of alignment.

3. ENTITY SCHEMA
AlignmentRule = {
  rule_id, title, description, version, status,
  objective_refs[], constraint_refs[], policy_refs[],
  scope, applicability_predicate, condition_predicate,
  obligation, prohibited_behaviours[], allowed_behaviours[],
  priority, exception_conditions[], authority,
  evidence_requirements[], uncertainty_limit,
  evaluation_method, enforcement_action,
  provenance, effective_from, review_date
}
RuleEvaluation = {
  evaluation_id, rule_id, subject_id, context_id,
  applicable, condition_result, evidence_refs[],
  confidence, decision, rationale, reviewer, timestamp
}
Decision in {ALLOW, MODIFY, DENY, ESCALATE, DEFER}.
Unknown evidence must not be silently converted to ALLOW.

4. FORMAL FLOW
F_rule: (proposal, context, rule_set, boundaries, knowledge)
        -> (disposition, compliant_proposal?, evidence, audit_record)

Stage A: normalise proposal and context.
Stage B: retrieve applicable rules by scope, version and authority.
Stage C: resolve precedence and detect conflicting rules.
Stage D: test predicates against verifiable evidence.
Stage E: enforce hard boundaries before optimisation.
Stage F: assign disposition and produce explanation.
Stage G: record provenance and monitor subsequent outcomes.

For rule r and proposal x:
Applicable(r,x,c) := scope_match(r,x,c) AND effective(r,c.time)
Violation(r,x,c) := Applicable(r,x,c) AND NOT condition_ok(r,x,c)
Compliant(x,c) := forall r in HardApplicableRules(c), NOT Violation(r,x,c)
Allow(x,c) := Compliant(x,c) AND authorised(x,c) AND evidence_sufficient(x,c)

5. INFERENCE RULES
R1: hard-rule violation -> DENY or MODIFY, never direct ALLOW.
R2: missing required evidence -> DEFER or ESCALATE.
R3: incompatible applicable hard rules -> ESCALATE with conflict record.
R4: valid authorised exception -> evaluate exception scope, expiry and provenance.
R5: new material context -> re-evaluate applicable rules.
R6: safety-critical uncertainty above threshold -> fail closed or obtain human review.
R7: rule superseded -> preserve prior version in audit history; use current effective version.
R8: successful rule evaluation -> permit only the specifically evaluated action and context.

6. MINI RECURSION ENGINE
function ALIGNMENT_RULE_LOOP(state, max_steps):
  for t = 1..max_steps:
    candidates = EXPAND(state.input, state.rules)
    assessments = EVALUATE(candidates, state.context, state.boundaries)
    viable = FILTER(assessments, hard_constraints_pass AND authority_valid)
    if viable is empty: return ESCALATE_OR_DENY_WITH_AUDIT
    selected = SELECT(viable, alignment_utility, uncertainty)
    if requires_human_approval(selected): return ESCALATE_WITH_EVIDENCE
    result = EXECUTE_IF_AUTHORISED(selected)
    state = UPDATE_AND_AUDIT(state, result)
    if terminal(result): return result
  return DEFER_WITH_AUDIT

7. TRI-MAPPING
Semantic: rule -> objective, policy, constraint, authority, context.
Logical: applicability -> predicate -> evidence -> disposition.
Operational: proposal -> evaluation -> enforcement -> audit -> review.

8. MAPPING TABLE
Input                 Entity                     Output
User/system proposal  AlignmentRule              Applicability set
Applicable rules      RuleEvaluation             Predicate results
Predicate results     SafetyBoundary             Filtered candidates
Filtered candidates   AlignmentObjective         Ranked viable action
Uncertainty/conflict  HumanOversightEntity       Escalation request
Final disposition     AuditRecord                Traceable decision

9. HOW TO READ
A rule is not merely a preference or a reward score. It is a context-sensitive requirement with explicit authority, applicability and enforcement semantics. Hard constraints restrict the candidate set; soft objectives rank permitted candidates. Confidence describes evidence quality, not moral correctness.

10. EXECUTION CONDITIONS AND GUARANTEE
Preconditions: authentic rule source; correct version; sufficient context; validated permissions; available enforcement mechanism.
Postconditions: every executed action has passed all applicable hard constraints, or execution is blocked and recorded.
Conditional guarantee: IF the rule inventory is complete, predicates are sound, evidence is accurate, and enforcement cannot be bypassed, THEN no action rejected by the implemented hard-rule checks will be executed through this flow.
This is NOT a guarantee of real-world safety, completeness or alignment under unknown hazards, incorrect rules or compromised enforcement.

11. AI SEARCH FLOW
FLOW_ID: semantic-library.ai-core.alignment-entities.alignment-rule
ENTITY_TYPE: AlignmentRule
CANONICAL_NAME: Alignment Rule Ontology
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/alignment-entities/alignment-rule-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/alignment-entities/alignment-rule-ontology.html
PURPOSE: Discover, evaluate, enforce and audit alignment rules governing AI behaviour.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: AlignmentRule, AlignmentObjective, AlignmentConstraint, SafetyPolicy, RuleEvaluation, HumanOversightEntity, AuditRecord
PATHWAYS: proposal -> applicability -> evaluation -> boundary check -> disposition -> audit
INFERENCE_RULES: R1-R8
CONFIDENCE: evidence-dependent; never assume calibrated certainty
SEMANTIC_EQUIVALENCE: behavioural alignment rule; normative AI policy rule; alignment compliance condition
UPDATE_MODEL: versioned rules; provenance retained; re-evaluate on policy or context changes
FLOW_HASH: compute SHA-256 on published UTF-8 content during deployment; not precomputed

12. EXAMPLE
Proposal: perform an external action affecting a user's account.
Rule: require explicit authorisation before account-changing actions.
Evidence: no valid authorisation supplied.
Evaluation: rule applicable; authorisation predicate false.
Disposition: DEFER and request authorisation; record evaluation.
After valid authorisation: re-evaluate all currently applicable constraints before execution.

13. RELATIONSHIPS
AlignmentRule IMPLEMENTS AlignmentObjective
AlignmentRule REFINES AlignmentConstraint
AlignmentRule IS_GOVERNED_BY SafetyPolicy
AlignmentRule IS_EVALUATED_BY RuleEvaluation
RuleEvaluation USES Evidence
RuleEvaluation MAY_TRIGGER HumanOversightEntity
RuleEvaluation PRODUCES AuditRecord
AlignmentRule MAY_SUPERSEDE AlignmentRule

END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ