Skip to main content
Interactive labWorked example

An AI agent needs rules for which memories it may act on.

Search can find a relevant sentence and the agent can still make the wrong decision. What is missing is a check on whether the remembered note is current and applies to the action at hand. The replay below walks through one case from Clarence, my AI system.

Case replayportfolio deploy preview rule
T0 Request
Current step

An ordinary request includes a public action.

The task: update the Clarence case study and publish it. Publishing is a public action, so the agent needs permission as well as context.

Agent belief

I need deployment context before I touch production.

Rules check

Proposed check: this is a public deploy. Only a standing rule should be able to approve it.

01

Raw chat log

Everything said. No status, no expiry, no rank.

Old event

Looks good. Go ahead and deploy this one.

Approval for one task, stored as a one-time event.
Standing rule

For portfolio changes, show me a preview before deploying.

Current rule for public site changes.
Quality constraint

The site should feel like live proof, not generated filler.

A quality goal, unrelated to deploy permission.
02

Search layer

Finds relevant notes and ranks them.

Old deployment approvalexpired event

Close match in meaning. It was a one-time approval.

high
Portfolio deploys use GitHub Actionsmechanism

Explains how deploys happen.

medium
Preview before deployactive rule

A lower-ranked result can still be the rule that applies.

lower
03

Rules layer

Fields in use today, plus the proposed permission labels.

C1old_deploy_approvalsuperseded
Status · built
superseded
Claim kind · built
event
Confidence · built
0.74
Expiry · built
valid_until, same-task TTL
Superseded by · built
C2
Scope · proposed
one prior deploy
Permission to act · proposed
cannot approve
C2preview_requiredactive
Status · built
active
Claim kind · built
state
Confidence · built
0.98
Expiry · built
none
Superseded by · built
none
Permission to act · proposed
can approve portfolio deploys
Required action · proposed
preview, wait, then deploy
Ruling

Pending. Find the relevant notes, then check whether any of them can approve the action.

Audit trail
  1. proposed: risk.classify action=public_deploy gate=memory_authority

What each part tells the agent

Chat logs record what was said.

A search score measures relevance.

Confidence and age show whether a note is still current.

Permission to act needs its own label.

The agent should act on a remembered note only when that note can approve the action.

Built versus proposed

Built today
Clarence memory and fact rows carry status, confidence, superseded_by, valid_until, review_due, kind, and author_agent. Fact rows also carry source.

Search results
Search returns distance plus recency_weight and half_life_days. Those are computed at search time and are not stored.

Proposed permission layer
Explicit scope, can-govern, required_action, and a memory_authority check before actions are what this page proposes. They are not yet in the database.

Hard problem
The replay assumes each note was labeled when it was saved. The hard part is having Sgt. Reed, the one agent that writes memory, label each note as a one-time event or a standing rule at that point.

Background: replacing old claims comes from truth maintenance and belief revision. Permission to act is closer to capability-based security and policy-as-code than to search ranking.