It learns from outcomes.
Agents report whether a memory helped or misled them. ee keeps a Bayesian posterior for every memory, promotes it only when the evidence is clear, demotes it faster than it promotes, and does not let an agent's report stand in for a person's.
A posterior for every memory.
human_explicit for an ordinary ee remember, agent_assertion for a registered agent's attempt-family write, cass_evidence for a line imported from a session. Outcomes move a Beta posterior, and the class changes only when its 90% interval crosses a threshold.How outcomes move a memory's trust class.
Outcomes, sized by weight
1 2.5
α helpful
0.5
β harmful
0.5
Mean
0.5
the legacy confidence
CI90
0.01–0.99
α + β
1
sample-size gate
Helpful outcomes
0
The trust ladder
- human_explicit0.85
- peer_human_attested0.75
- agent_validated0.65
- agent_assertion0.5
Agent claim with no outcome yet
Promote when
- CI90 lower > 0.70now 0.006
- α + β ≥ 6now 1
Demote when
- CI90 upper < 0.35now 0.994
- cass_evidence0.45
- legacy_import0.3
Last class change
None yet. Every change writes a trust_class.transition audit row.
Harm weighs 2.5 times
harmful β + 2.5 · helpful α + 1
So the mean falls faster than it rises.
The 90% interval decides
Promote when the lower bound clears one threshold, demote when the upper bound falls below another. In between, the class holds.
The top class needs a person
No number of ordinary outcomes reaches human_explicit. It takes --source-type human_explicit, a named --actor and a --reason.
Sources and assumptions
Fixes from past sessions.
ee diagnose-error or ee pack --error-log returns the fix with its provenance.Fixes recalled by error fingerprint.
cass-session://ses_01J…7Q · an agent's session, as cass recorded it
A toy in your browser · not ee- L1tool call
$ cargo test --lib
- L2tool result
error[E0277]: the trait bound `Widget: Serialize` is not satisfied --> src/widget.rs:41:9
the failure
- L3assistant
Let me look at the widget module.
narration: dropped
- L4assistant
Widget needs to derive Serialize: add #[derive(Serialize)] to the struct.
the fix
- L5tool call
$ cargo test --lib
- L6tool result
test result: ok. 3 passed; 0 failed
the proof
ee import cass reads the sessions your agents already recorded. It pairs each failing tool result with the assistant turns that explained the fix and a later successful run of the identical command that proved it.
Only admitted assistant sentences can become the fix. Narration is dropped, and a bare exit code is never an error class on its own.
Sources and assumptions
Proposed changes go through review.
--include-decay, demotes and tombstones on its own; both are audited. No LLM turns a session journal into candidates.Propose
Candidates come from journals, imported sessions, consolidation and the steward. Nothing is applied yet.
ee curate candidates --workspace . --jsonValidate
Each candidate is checked against policy, duplicates and contradictions before anyone can apply it.
ee curate validate <candidate-id> --workspace . --jsonApply
Applying writes the change and an audit entry together. Promotions, merges and tombstones are all logged.
ee curate apply <candidate-id> --workspace . --json
Checks on the way in and out.
ee remember refuses secrets
Text that looks like an API key, JWT, password, private or SSH key, AWS secret or OAuth token is refused with exit 7, and the error says where it matched. --allow-secret-mention stores it anyway and writes an audit entry. Commands that export take a redaction level from none to paranoid.
Stored instructions are screened
Before packing, stored memories are screened for role overrides, hidden-prompt requests, credential requests and authority claims. A match is omitted with an explanation and kept for inspection.
Preflight only advises
ee preflight looks up the risk history of a command before you run it. It reports what it finds, and the risk it finds does not change its exit code; it does not block the command, and no ee hook denies one.
Imported evidence is committed
Session lines imported since v0.19.0 carry keyed BLAKE3 commitments under the store's root key, so evidence can be checked without keeping raw digests of it.
$ ee remember "DATABASE_URL=postgres://user:hunter2@host/db"
# refused: exit 7, policy_denied, detectedPattern database_url; nothing is written