RALF / Reality-Anchored Learning Framework

Inspect a learned decision.
Then put it to the test.

Experience can reinforce an inadequate explanation. Explore how a learner’s recorded history can guide clarification, new experiments, concept acquisition and a justified revision.

Problem 04 / Missing explanatory concept

A new idea should earn its place.

The learner initially represents module and channel effects. Explore what changes when it admits a relationship with nearby equipment.

Initial learningSeed 7

You choose the simulated world. The learner receives observations and permitted metadata; its policy is not given the scenario’s hidden cause.

Recorded experience

What has actually been observed?

0 readings
Channel AChannel BReference— 10 mA limit

Evidence-qualified decision

Unverified

The initial learned prediction has not been independently qualified.

Raw learner’s threshold judgement——
Verified scope

No active, independently supported claim.

Or choose an individual inquiry below.

0 diagnostic readings0 concept consultations12 checks remaining
Start with the evidence audit, or run the full investigation.

Inspectable learner

The current GP expression

Fit 1
Initialising…
Training MSE—
Available features—

The expression predicts instrument readings. Low training error alone does not establish the actual current or its cause.

Inspect the expression tree and evolution trace

Interrogate the evidence

Ask what supports this decision.

These answers are assembled from the run’s records. This inspector and the curated concept source are not live LLMs.

The next experience matters

A correction should remain useful—and stay open to challenge.

Add further biased experience, or introduce a changed operating context that requires the earlier claim to be checked again.

What this software demonstrates

A working instrument for a research question.

Can the history and justification of learned beliefs improve the choice of inquiry and support a correction that remains useful under subsequent experience?

01 / Implemented here

Inspectable mechanisms

Seeded numerical simulation, genetic programming, a provenance audit, a bounded concept library, matched measurements, independent-reference checks and scoped revision records.

02 / Evidence boundary

Concepts are candidates

A new concept enables a question. Measurements then test its applicability. A model’s confidence, a low fitting error or agreement between explanations is not independent confirmation.

03 / Research still ahead

Comparative validation

This demonstration does not establish general prevention of maladaptive learning, an advantage over equally equipped baselines, or physical robotic safety. It uses constructed worlds and a bounded set of concepts.

Technical notes, reproducibility and the LLM connection

Local execution. The browser prototype sends no observations to an external model or server. Run data stays in memory until you export it. The seed, model history, observations and scoped claims are included in the JSON record.

Genetic programming. The learner searches arithmetic expression trees using selection, crossover and mutation. Its initial population includes fitted single-feature candidates, so simple cases may already have a good fit at generation zero. Each refit starts a fresh seeded search using all observations from the current context, including reference readings; it is not a warm-start online learner.

Concept acquisition. The demonstrator admits a previously unavailable equipment-state relationship into the learner’s representation from a curated source. This is bounded concept import. It is not unrestricted discovery or proof that a provenance audit can identify every missing concept.

Interrogation and abduction. The inspector exposes the evidence behind a decision. Its exported packet can ground a separate LLM consultation. A separate Python reference prototype includes an optional live-model adapter; this browser demonstration uses deterministic inspection and curated candidates.

Persistence. Further experience can change the raw GP model while an independently supported claim retains authority within its recorded scope. This does not prove that every downstream effect of an earlier interpretation has been removed.

Source of the research question. Howard (2025), The Irrational Machine. RALF investigates preventive mechanisms; their effectiveness remains a research hypothesis.