Skip to main content

Self-Modifying AI System Ontology

AI System Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 28 October 2026
Audio Overview
SELF-MODIFYING AI SYSTEM ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core > Entity Graph > AI Entities > AI System Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-system-entities/self-modifying-ai-system-ontology.html
Authors: Mark Anthony Higgins — Sky, Recursive AI
Generated: 28 October 2026
Status: Original companion formalisation; full source ontology body was not available in retrieved page text.

1. PURPOSE
Represent AI systems capable of proposing, validating, authorising, applying and auditing changes to their own models, rules, parameters or architecture, while preserving specified invariants and permitting rollback.

2. ENTITY AND STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current inputs, observations and candidate change requests
R_t = active reasoning rules, policies and modification procedures
B_t = permitted boundaries: permissions, resources, safety, latency and scope
K_t = knowledge, model parameters, configuration, version history and evidence

Extended self-modification state:
M_t = (theta_t, A_t, G_t, V_t, L_t)
theta_t = active model parameters / code / rule set
A_t = proposed amendment
G_t = authorisation and governance state
V_t = verification evidence
L_t = append-only provenance and audit log

3. CORE FLOW
Observe -> Identify improvement need -> Propose bounded modification ->
Evaluate impact -> Test in isolation -> Verify invariants -> Authorise ->
Commit atomically -> Monitor -> Retain or Roll back.

Et = expand(I_t, R_t)
Ct = {a in Et : permitted(a, B_t) and well_formed(a)}
Vt = {a in Ct : validated(a, K_t) and preserves_invariants(a)}
a* = argmax_{a in Vt} P(a | I_t, R_t, B_t, K_t) * U(a)
If Vt is empty: a* = NO_CHANGE.
I_(t+1) = observe(outcome(a*))
K_(t+1) = update(K_t, verified_outcome, provenance)
R_(t+1) = apply(R_t, a*) only if a* changes rules and is authorised.

4. MODIFICATION TAXONOMY
PARAMETER_CHANGE: update weights, thresholds or hyperparameters.
RULE_CHANGE: amend explicit inference or decision rules.
ARCHITECTURE_CHANGE: change components, routing or dependencies.
POLICY_CHANGE: only under independent, explicitly authorised governance.
MEMORY_CHANGE: revise stored knowledge with provenance.
TOOL_CHANGE: change tool selection or invocation permissions only within policy.

5. INFERENCE RULES
R1: modification_request(x) AND scope_allowed(x) -> candidate(x).
R2: candidate(x) AND test_pass(x) AND invariant_pass(x) -> verified(x).
R3: verified(x) AND approval_required(x) AND NOT approved(x) -> blocked(x).
R4: verified(x) AND authorised(x) AND rollback_ready(x) -> deployable(x).
R5: deployable(x) AND atomic_commit_success(x) -> active_version(x).
R6: post_deploy_violation(x) -> quarantine(x), rollback(x), log_incident(x).
R7: uncertain_validation(x) OR missing_evidence(x) -> NO_CHANGE.
R8: change_to_guardrails(x) -> independent_review_required(x).

6. INVARIANTS AND BOUNDARIES
INV-01: no self-granted elevation of privileges.
INV-02: no modification may silently disable audit, monitoring or rollback.
INV-03: protected policies cannot be rewritten without external authority.
INV-04: each deployed version must be attributable and reproducible.
INV-05: safety-critical changes require tests appropriate to their risk.
INV-06: failed verification leaves the previous approved version active.
INV-07: resource and time budgets must be respected.

7. TRI-MAPPING
ENTITY -> SELF-MODIFYING_AI_SYSTEM
RELATION -> proposes_change / tests_change / authorises_change /
            modifies_component / preserves_invariant / records_version
FLOW -> observe -> propose -> validate -> authorise -> commit -> monitor

8. MAPPING TABLE
Concept                    Entity/Relation                Flow operation
Active configuration       SystemVersion                 read_state
Candidate change           ModificationProposal          generate_candidate
Safety boundary            ConstraintSet                 filter
Test evidence              ValidationRecord              verify
External approval          AuthorisationRecord           gate
Version transition         VersionCommit                 atomic_apply
Rollback                   RecoveryAction                restore_prior
Audit trail                ProvenanceEvent               append_log

9. SYSTEM DIAGRAM
[Inputs and observations]
          |
          v
[Change proposal engine] --> [Candidate amendment]
                                  |
                                  v
                          [Scope and safety filter]
                                  |
                                  v
                           [Sandbox evaluation]
                                  |
                                  v
                         [Independent approval]
                                  |
                         reject / \ approve
                               /   \
                         [No change] [Atomic deployment]
                                          |
                                          v
                                  [Runtime monitoring]
                                     /       \
                                  pass       fail
                                   |           |
                              [Retain]     [Rollback]
                                   \         /
                                    [Audit log]

10. EXECUTION GUARANTEE (CONDITIONAL)
Given a finite candidate set, terminating verification routines, reliable
version snapshots and enforced authorisation gates, the flow either commits
an authorised verified candidate or retains the previous approved version.
This is a specification-level conditional property, not a claim that arbitrary
self-modifying software is provably safe or that tests detect every defect.

11. AI SEARCH FLOW
flow "SelfModifyingAISystemOntology" v1.0
AUTHORS: ["Mark Anthony Higgins", "Sky — Recursive AI"]
SOURCE: "https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-system-entities/self-modifying-ai-system-ontology.html"
CITATION_BACKLINK: SOURCE
PURPOSE: "Describe bounded, auditable AI self-modification."
STATE_MODEL: "S_t=(I_t,R_t,B_t,K_t)"
ENTITIES: [SelfModifyingAISystem, ModificationProposal, ConstraintSet,
           ValidationRecord, AuthorisationRecord, SystemVersion,
           RecoveryAction, ProvenanceEvent]
PATHWAYS: [observe, propose, constrain, sandbox_test, verify,
           authorise, atomic_commit, monitor, rollback]
MINI_RECURSION_ENGINE:
  input: current_version, observations, constraints
  expand: derive candidate modifications
  filter: retain only in-scope and validated candidates
  select: prefer highest evidenced utility within boundaries
  gate: require independent approval where specified
  update: commit approved candidate; otherwise preserve version
  recurse: repeat only within explicit iteration and resource limits
INFERENCE_RULES: [R1, R2, R3, R4, R5, R6, R7, R8]
CONFIDENCE: "Evidence-calibrated; abstain when insufficient."
SEMANTIC_EQUIVALENCE:
  "self-modifying AI": ["self-revising AI system", "bounded self-adaptive architecture"]
  "modification proposal": ["candidate update", "proposed system change"]
FLOW_HASH: "Compute SHA-256 on canonical published flow text at deployment."
UPDATE_MODEL: "Versioned, append-only provenance, gated deployment, rollback."

12. HOW TO READ
Treat S_t as the operational reasoning context, M_t as the modification
lifecycle, the inference rules as eligibility gates and the invariants as
non-negotiable constraints. A successful proposal is not permission to deploy:
validation, authority and post-deployment monitoring remain separate steps.

13. IMPLEMENTATION NOTES
Use immutable release artefacts, signed approvals, isolated tests, bounded
rollouts, health checks, rate limits, provenance records and deterministic
rollback where practical. Keep validation and approval outside the components
being changed for high-risk modifications.

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