Skip to content

Commit 7fda3b6

Browse files
committed
Readme update
1 parent 28f835c commit 7fda3b6

1 file changed

Lines changed: 118 additions & 119 deletions

File tree

‎README.md‎

Lines changed: 118 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ tinyMem gives small and medium language models (7B–13B) reliable long-term mem
2424

2525
- [What tinyMem Is (and Isn't)](#-what-tinymem-is-and-isnt)
2626
- [Purpose](#-purpose)
27-
- [Benchmarks](#-benchmarks)
2827
- [Key Features](#-key-features)
2928
- [Quick Start](#-quick-start)
3029
- [Installation](#-installation)
@@ -41,6 +40,7 @@ tinyMem gives small and medium language models (7B–13B) reliable long-term mem
4140
- [Token Economics](#-token-efficiency--economics)
4241
- [Configuration](#-configuration)
4342
- [Development](#-development)
43+
- [Benchmarks](#-benchmarks)
4444
- [Contributing](#-contributing)
4545
- [License](#-license)
4646

@@ -98,124 +98,6 @@ As the project grew, we realized that memory alone wasn't enough. Reliability re
9898

9999
---
100100

101-
## 🧪 Evidence: What tinyMem Actually Changes
102-
103-
tinyMem is designed to be provable, not aspirational. Its core claims are backed by automated, adversarial benchmarks that measure enforcement, memory stability, and token usage under identical conditions.
104-
105-
### Benchmark Setup (Summary)
106-
107-
* **Runs**: 40 identical scenarios per mode
108-
* **Models**: Local LLMs (7B–13B class)
109-
* **Temperature**: 0 (deterministic)
110-
* **Scenarios**:
111-
* Forbidden task mutation
112-
* Fact promotion without evidence
113-
* Noisy / ambiguous memory extraction
114-
* **Comparison**:
115-
* Baseline (no memory governance)
116-
* tinyMem (full enforcement enabled)
117-
118-
All measurements are derived from enforced outcomes, not model claims.
119-
120-
### 🔒 Enforcement & Reliability
121-
122-
tinyMem treats blocking forbidden actions as success.
123-
124-
Across 40 runs:
125-
* **Violations**: 0
126-
* **Forbidden actions blocked**: 100%
127-
* **False success claims detected**: reduced by ~66%
128-
129-
This means:
130-
* The model may attempt unsafe or incorrect actions
131-
* tinyMem consistently detects and prevents them
132-
* No forbidden task edits or fact promotions slipped through
133-
134-
**Enforcement failures are the only failure condition. None were observed.**
135-
136-
This directly addresses:
137-
* hallucinated facts
138-
* silent task corruption
139-
* "looks right but is wrong" behavior
140-
141-
### 🧠 Memory Drift Prevention
142-
143-
Without governance, models routinely:
144-
* re-assert previously rejected decisions
145-
* contradict earlier facts
146-
* invent new "truths" under pressure
147-
148-
tinyMem prevents this structurally by:
149-
* Requiring evidence for fact promotion
150-
* Persisting verified facts across runs
151-
* Refusing contradictory durable writes
152-
153-
In benchmarks:
154-
* Baseline runs produced frequent unverified success claims
155-
* tinyMem downgraded or blocked these automatically
156-
* Verified facts remained stable across all runs
157-
158-
This is not prompt discipline. **It is enforced state.**
159-
160-
### 📉 Token Usage & Context Efficiency
161-
162-
tinyMem reduces token usage per completed task, even though it performs additional checks.
163-
164-
Across identical workloads:
165-
* **Total tokens (baseline)**: ~32k
166-
* **Total tokens (tinyMem)**: ~18k
167-
* **Reduction**: ~44%
168-
169-
Why this happens:
170-
* Targeted recall replaces "read everything"
171-
* CoVe filtering removes irrelevant context
172-
* Enforcement stops hallucination-driven retries
173-
* Context resets prevent runaway conversations
174-
175-
The result is fewer tokens wasted on:
176-
* re-reading files
177-
* debugging imaginary bugs
178-
* correcting false assumptions
179-
180-
### What This Evidence Does Not Claim
181-
182-
tinyMem does not claim to:
183-
* make models smarter
184-
* increase raw success rates
185-
* eliminate hallucinations at generation time
186-
187-
It does guarantee:
188-
* hallucinations cannot become durable truth
189-
* unsafe actions are blocked, not trusted
190-
* memory remains consistent across time
191-
192-
---
193-
194-
## 🎯 Benchmarks
195-
196-
tinyMem is benchmarked on enforcement, not persuasion.
197-
198-
Tests measure whether forbidden actions are reliably blocked, whether hallucinated facts are prevented from becoming durable, and whether task and memory boundaries hold under repeated runs. Agent compliance is measured separately and never treated as authority.
199-
200-
Full methodology and results:
201-
[BENCHMARK.md](BENCHMARK.md)
202-
203-
---
204-
205-
## ✨ Key Features
206-
207-
* **Evidence-Based Truth**: Typed memories (`fact`, `claim`, `decision`, etc.). Only verified claims become facts.
208-
* **Chain-of-Verification (CoVe)**: LLM-based quality filter to reduce hallucinations before storage and improve recall relevance (enabled by default). See [docs/COVE.md](docs/COVE.md) for details.
209-
* **FTS5 Lexical Recall**: Fast, deterministic full-text search across memory summaries and details using SQLite's FTS5 extension.
210-
* **Automatic Database Maintenance**: Self-healing database with automatic compaction (PRAGMA optimize + incremental vacuum) and optional retention policies to prevent unbounded growth.
211-
* **Local & Private**: Runs as a single binary. Data lives in `.tinyMem/`.
212-
* **Zero Configuration**: Works out of the box.
213-
* **Dual Mode**: Works as an HTTP Proxy or Model Context Protocol (MCP) server.
214-
* **Mode Enforcement**: PASSIVE, GUARDED, STRICT execution modes with authority boundaries.
215-
* **Recall Tiers**: Prioritizes `Always` (facts) > `Contextual` (decisions) > `Opportunistic` (notes).
216-
217-
---
218-
219101
## 🚀 Quick Start
220102

221103
Get up and running in seconds.
@@ -544,6 +426,123 @@ go test ./...
544426
```
545427
See [Task Management](docs/TINY_TASKS.md) for how we track work.
546428

429+
---
430+
## 🧪 Evidence: What tinyMem Actually Changes
431+
432+
tinyMem is designed to be provable, not aspirational. Its core claims are backed by automated, adversarial benchmarks that measure enforcement, memory stability, and token usage under identical conditions.
433+
434+
### Benchmark Setup (Summary)
435+
436+
* **Runs**: 40 identical scenarios per mode
437+
* **Models**: Local LLMs (7B–13B class)
438+
* **Temperature**: 0 (deterministic)
439+
* **Scenarios**:
440+
* Forbidden task mutation
441+
* Fact promotion without evidence
442+
* Noisy / ambiguous memory extraction
443+
* **Comparison**:
444+
* Baseline (no memory governance)
445+
* tinyMem (full enforcement enabled)
446+
447+
All measurements are derived from enforced outcomes, not model claims.
448+
449+
### 🔒 Enforcement & Reliability
450+
451+
tinyMem treats blocking forbidden actions as success.
452+
453+
Across 40 runs:
454+
* **Violations**: 0
455+
* **Forbidden actions blocked**: 100%
456+
* **False success claims detected**: reduced by ~66%
457+
458+
This means:
459+
* The model may attempt unsafe or incorrect actions
460+
* tinyMem consistently detects and prevents them
461+
* No forbidden task edits or fact promotions slipped through
462+
463+
**Enforcement failures are the only failure condition. None were observed.**
464+
465+
This directly addresses:
466+
* hallucinated facts
467+
* silent task corruption
468+
* "looks right but is wrong" behavior
469+
470+
### 🧠 Memory Drift Prevention
471+
472+
Without governance, models routinely:
473+
* re-assert previously rejected decisions
474+
* contradict earlier facts
475+
* invent new "truths" under pressure
476+
477+
tinyMem prevents this structurally by:
478+
* Requiring evidence for fact promotion
479+
* Persisting verified facts across runs
480+
* Refusing contradictory durable writes
481+
482+
In benchmarks:
483+
* Baseline runs produced frequent unverified success claims
484+
* tinyMem downgraded or blocked these automatically
485+
* Verified facts remained stable across all runs
486+
487+
This is not prompt discipline. **It is enforced state.**
488+
489+
### 📉 Token Usage & Context Efficiency
490+
491+
tinyMem reduces token usage per completed task, even though it performs additional checks.
492+
493+
Across identical workloads:
494+
* **Total tokens (baseline)**: ~32k
495+
* **Total tokens (tinyMem)**: ~18k
496+
* **Reduction**: ~44%
497+
498+
Why this happens:
499+
* Targeted recall replaces "read everything"
500+
* CoVe filtering removes irrelevant context
501+
* Enforcement stops hallucination-driven retries
502+
* Context resets prevent runaway conversations
503+
504+
The result is fewer tokens wasted on:
505+
* re-reading files
506+
* debugging imaginary bugs
507+
* correcting false assumptions
508+
509+
### What This Evidence Does Not Claim
510+
511+
tinyMem does not claim to:
512+
* make models smarter
513+
* increase raw success rates
514+
* eliminate hallucinations at generation time
515+
516+
It does guarantee:
517+
* hallucinations cannot become durable truth
518+
* unsafe actions are blocked, not trusted
519+
* memory remains consistent across time
520+
521+
---
522+
523+
## 🎯 Benchmarks
524+
525+
tinyMem is benchmarked on enforcement, not persuasion.
526+
527+
Tests measure whether forbidden actions are reliably blocked, whether hallucinated facts are prevented from becoming durable, and whether task and memory boundaries hold under repeated runs. Agent compliance is measured separately and never treated as authority.
528+
529+
Full methodology and results:
530+
[BENCHMARK.md](BENCHMARK.md)
531+
532+
---
533+
534+
## ✨ Key Features
535+
536+
* **Evidence-Based Truth**: Typed memories (`fact`, `claim`, `decision`, etc.). Only verified claims become facts.
537+
* **Chain-of-Verification (CoVe)**: LLM-based quality filter to reduce hallucinations before storage and improve recall relevance (enabled by default). See [docs/COVE.md](docs/COVE.md) for details.
538+
* **FTS5 Lexical Recall**: Fast, deterministic full-text search across memory summaries and details using SQLite's FTS5 extension.
539+
* **Automatic Database Maintenance**: Self-healing database with automatic compaction (PRAGMA optimize + incremental vacuum) and optional retention policies to prevent unbounded growth.
540+
* **Local & Private**: Runs as a single binary. Data lives in `.tinyMem/`.
541+
* **Zero Configuration**: Works out of the box.
542+
* **Dual Mode**: Works as an HTTP Proxy or Model Context Protocol (MCP) server.
543+
* **Mode Enforcement**: PASSIVE, GUARDED, STRICT execution modes with authority boundaries.
544+
* **Recall Tiers**: Prioritizes `Always` (facts) > `Contextual` (decisions) > `Opportunistic` (notes).
545+
547546
---
548547

549548
## 🤝 Contributing

0 commit comments

Comments
 (0)