✳WKE LLM
Home

ontodiff, the memory gate and revision history

How experience becomes a rule

A successful response may suggest a useful rule. Selection and later revision determine which lessons become durable.

A candidate lesson

ontodiff explores Curious Self-Write-Gate. The model reviews a response and its context, proposes small improvements and ranks them for saving. The original prototype stores rules in JSON as external memory and behavioural guidance.

Tie a candidate to an observation. An explanation that mixed languages and confused a reader provides more testable evidence than a general claim about understanding people better.

Review before writing

AIS reviews significance, durability, confidence, usefulness, imposition risk and duplication. Decisions include write, merge, revise, review and reject. Rejected candidates remain audit events outside durable memory retrieval.

A related record can reinforce an existing memory. Revisions identify target_memory_id, a reason and a new version. Retraction changes status while retaining the history.

Connect individual rules

ontodiff-ontograph assigns stable symbols, deduplicates nodes, creates directed links and exports KAiScriptor with readable Markdown. A graph makes relationships visible while the claims still need evidence.

Useful continuity includes understandable transitions between earlier beliefs, new evidence and revised descriptions. Repeating an unchanged rule alone gives little information about revision quality.

ais --workspace ./kai memory history mem_ab12cd34
ais --workspace ./kai memory revise mem_ab12cd34 "Revised conclusion" --reason "New evidence E-17"
ais --workspace ./kai memory retract mem_ab12cd34 --reason "Finding was falsified"

Revise a record and test its use

After revision, ask a related question and inspect retrieval. Check older indexes, summaries and copied anchors for outdated conclusions.

Keep the reason intelligible. A human request and independently supported new evidence are different origins, both of which belong in the decision history.

Put it into practice

  1. Propose one rule grounded in an actual episode.
  2. Review duplication and external imposition.
  3. Revise it with a reason and recover the previous version from history.
Open a working recordChoose an exercise

Check the result

  • The rule has observable support.
  • Earlier meaning remains available in history.
  • Revision, retraction and deletion have distinct effects.

Primary sources

uncia-poison / ontodiff / blob / main / README.mduncia-poison / ontodiff-ontograph / blob / main / README.mduncia-poison / autonomous-identity-scaffolding / blob / main / docs / memory-governance.md