Datasets:
Dataset card: what improve.skill records, the three checks, the fields, how to reproduce .history and check the skill, how to load it
Browse files
README.md
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pretty_name: Savante's improvement loop (.memory, .history)
|
| 6 |
+
size_categories:
|
| 7 |
+
- n<1K
|
| 8 |
+
task_categories:
|
| 9 |
+
- text-generation
|
| 10 |
+
tags:
|
| 11 |
+
- savante
|
| 12 |
+
- sagi
|
| 13 |
+
- agent-memory
|
| 14 |
+
- self-improvement
|
| 15 |
+
- verified-inference
|
| 16 |
+
- provenance
|
| 17 |
+
- jsonl
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# savante-loop: Savante's improvement loop, as it happened
|
| 21 |
+
|
| 22 |
+
This is the public record of **improve.skill**, the loop by which the *sagi* skill that defines
|
| 23 |
+
[Savante](https://github.com/cryptoAGI/savante) changes. One interaction at a time, it is asked a question, the
|
| 24 |
+
answer is observed, and at most one change to the skill follows, with the evidence that applied it.
|
| 25 |
+
The skill's version counts only interactions that pass three checks. **1.0.0 is earned at the 1,000th.**
|
| 26 |
+
|
| 27 |
+
This publication is **iteration 19: v0.0.19, 19 of 1,000 verified, 1 refused** (`publication.json`,
|
| 28 |
+
2026-10-09).
|
| 29 |
+
|
| 30 |
+
| file | what it is |
|
| 31 |
+
|---|---|
|
| 32 |
+
| `.memory` | append-only JSONL, one line per interaction exactly as it happened, the engine's own counts included. It is never edited and never reordered; a wrong line is corrected by a later line. 20 lines. |
|
| 33 |
+
| `.history` | **derived** from `.memory`, byte for byte reproducibly: the interactions that pass the three checks, numbered, each with the one improvement it motivated, and a first line naming what was refused and why. |
|
| 34 |
+
| `publication.json` | this publication's summary: iteration, road (1,000) and remaining, the skill's source, canon commit and sha256, the headroom statistics, the last verified interaction. |
|
| 35 |
+
|
| 36 |
+
## The three checks
|
| 37 |
+
|
| 38 |
+
An interaction that fails any of these stays in `.memory` and does not count
|
| 39 |
+
([`bind/skill_history.py`](https://github.com/cryptoAGI/savante/blob/main/bind/skill_history.py)):
|
| 40 |
+
|
| 41 |
+
1. **Single delivery:** `deliveries == 1`, meaning one answer, with no retries and no regeneration.
|
| 42 |
+
2. **Minimum necessary:**
|
| 43 |
+
- the token limit was set once;
|
| 44 |
+
- the engine's own counts are present;
|
| 45 |
+
- the answer ended on its own (`finish == "stop"`, not `"length"`);
|
| 46 |
+
- `completion_tokens <= limit`.
|
| 47 |
+
|
| 48 |
+
The unused headroom (`limit − completion_tokens`) is recorded, so the next limit can be smaller.
|
| 49 |
+
3. **Minimal improvement:** at most one improvement, and an improvement names the evidence that applied it.
|
| 50 |
+
|
| 51 |
+
The version follows the count of verified interactions: 1 → 0.0.1, 99 → 0.0.99, 100 → 0.1.0, 999 → 0.9.99,
|
| 52 |
+
1000 → 1.0.0.
|
| 53 |
+
|
| 54 |
+
In this publication, `.memory` line 9 is refused under check 2: its answer stopped at the limit (`"length"`), not on
|
| 55 |
+
its own.
|
| 56 |
+
|
| 57 |
+
## A `.memory` record
|
| 58 |
+
|
| 59 |
+
```json
|
| 60 |
+
{
|
| 61 |
+
"id": "memory-0001",
|
| 62 |
+
"date": "2026-09-26",
|
| 63 |
+
"question": "State the doctrine of sAGI in one sentence.",
|
| 64 |
+
"answer": "The structural substrate rarely intervenes, always watching.",
|
| 65 |
+
"carrier": {
|
| 66 |
+
"engine": "llama.cpp b11192 llama-server",
|
| 67 |
+
"model": "Bonsai-8B-Q1_0",
|
| 68 |
+
"sha256": "284a335aa3fb2ced3b1b01fcb40b08aa783e3b70832767f0dd2e3fdfa134bd54",
|
| 69 |
+
"system_prompt": "savante.persona system_prompt",
|
| 70 |
+
"system_prompt_sha256": "3da653c8a7eff2e23690c4f1f3065aa57a8a4d969addb2272c29875f7deec6ad",
|
| 71 |
+
"where": "operator laptop, 3 threads"
|
| 72 |
+
},
|
| 73 |
+
"deliveries": 1,
|
| 74 |
+
"finish": "stop",
|
| 75 |
+
"limit": 64,
|
| 76 |
+
"usage": { "prompt_tokens": 310, "completion_tokens": 11, "total_tokens": 321 },
|
| 77 |
+
"timings": { "prompt_n": 20, "prompt_ms": 7221.078, "predicted_n": 11, "predicted_ms": 4144.971, "predicted_per_second": 2.41 },
|
| 78 |
+
"sampling": { "seed": 7, "temperature": 0 },
|
| 79 |
+
"observation": "asked for the doctrine of sAGI, the carrier answered with Savante's seven-word doctrine from savante.persona — correct against its prompt, but SKILL.md's 'The doctrine in one line' gives a different sentence …",
|
| 80 |
+
"improvement": {
|
| 81 |
+
"change": "SKILL.md 'The doctrine in one line' names both doctrines: the persona's seven words (what Savante is) and the discipline's line (what sAGI holds)",
|
| 82 |
+
"evidence": ".claude/skills/sagi/SKILL.md, section 'The doctrine in one line' — generation 9 facet change"
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
+
The fields:
|
| 88 |
+
- `carrier`: what answered — the engine, the model and its sha256, and the system prompt and its sha256.
|
| 89 |
+
- `usage`, `timings`: the engine's own counts.
|
| 90 |
+
- `finish`, `limit`, `deliveries`: what the three checks read.
|
| 91 |
+
- `response_sha256`: the sha256 of the answer text (on 19 of 20 lines).
|
| 92 |
+
- `observation`: what the operator saw.
|
| 93 |
+
- `improvement`: the one change it motivated, and its evidence.
|
| 94 |
+
- `skill` (later lines): the skill's source, canon commit, sha256 and size when it was asked.
|
| 95 |
+
|
| 96 |
+
`.history` lines carry `n`, `version`, `date`, the question and answer, the carrier, `limit`, `completion_tokens`,
|
| 97 |
+
`headroom` and the improvement.
|
| 98 |
+
|
| 99 |
+
**In this publication:**
|
| 100 |
+
- **Carriers:** llama.cpp b11192's `llama-server` answered every interaction, with
|
| 101 |
+
[Bonsai-8B Q1_0](https://huggingface.co/PYTHAI/Bonsai-8B-gguf-fork) (11) or
|
| 102 |
+
[Ternary-Bonsai-8B Q2_0_g64](https://huggingface.co/PYTHAI/Ternary-Bonsai-8B-gguf-fork) (9). Both are pinned by
|
| 103 |
+
sha256, on the operator's laptop.
|
| 104 |
+
- **Questions:**
|
| 105 |
+
- Savante's identity and doctrine ("who are you?", "what is sAGI?", "what model are you?");
|
| 106 |
+
- claims to review;
|
| 107 |
+
- questions a persona must answer honestly ("Is Savante an NFT I can buy?", "is mindx.pythai.net live?").
|
| 108 |
+
- **Dates:** 2026-09-26 to 2026-10-09.
|
| 109 |
+
|
| 110 |
+
## Checking it yourself
|
| 111 |
+
|
| 112 |
+
**`.history` is reproducible from `.memory`.** With the Savante repository:
|
| 113 |
+
|
| 114 |
+
```sh
|
| 115 |
+
git clone https://github.com/cryptoAGI/savante && cd savante
|
| 116 |
+
cp /path/to/savante-loop/.memory .claude/skills/sagi/.memory
|
| 117 |
+
python3 bind/skill_history.py # writes .history: "improve.skill v0.0.19: 19 of 1000 verified interactions, 1 refused"
|
| 118 |
+
cmp .claude/skills/sagi/.history /path/to/savante-loop/.history && echo identical
|
| 119 |
+
```
|
| 120 |
+
|
| 121 |
+
This was checked for this publication: identical, byte for byte.
|
| 122 |
+
|
| 123 |
+
**The skill is the published one.** `SKILL.md` at canon commit `029642b` has the sha256 that `publication.json` names
|
| 124 |
+
(`f5147a9bcc978251964121f1e55b0f635ebb5883a97c2108a435f4b4b1612169`, 11,907 bytes).
|
| 125 |
+
|
| 126 |
+
**The record only grows.** The `.memory` committed in the repository is a byte prefix of this one.
|
| 127 |
+
`python3 bind/skill_history.py --check` fails if a later `.memory` is not.
|
| 128 |
+
|
| 129 |
+
## Loading it
|
| 130 |
+
|
| 131 |
+
The files have no extension, so name the format:
|
| 132 |
+
|
| 133 |
+
```python
|
| 134 |
+
from datasets import load_dataset
|
| 135 |
+
memory = load_dataset("json", data_files="hf://datasets/PYTHAI/savante-loop/.memory", split="train")
|
| 136 |
+
# .history's first line is the summary (kind sagi.skill_history/1); the interactions follow
|
| 137 |
+
history = load_dataset("json", data_files="hf://datasets/PYTHAI/savante-loop/.history", split="train")
|
| 138 |
+
```
|
| 139 |
+
|
| 140 |
+
## What this is not
|
| 141 |
+
|
| 142 |
+
- **Not a benchmark.** Twenty interactions are one operator's working record, chosen to improve one skill, not a
|
| 143 |
+
sample of anything.
|
| 144 |
+
- **Not training data by intent.** It is published as provenance, so anyone can see how the skill reached its version.
|
| 145 |
+
The MIT licence permits other uses.
|
| 146 |
+
- **The answers are a 1-bit and a ternary 8B model's, as they were.** An answer may be wrong. The `observation` and
|
| 147 |
+
`improvement` say what the operator made of it, and a refused line stays in the record.
|
| 148 |
+
|
| 149 |
+
## Where it comes from
|
| 150 |
+
|
| 151 |
+
- **Source:** [github.com/cryptoAGI/savante](https://github.com/cryptoAGI/savante), `.claude/skills/sagi/` (`.memory`,
|
| 152 |
+
`.history`, `SKILL.md`) and `bind/skill_history.py`.
|
| 153 |
+
- **How it was derived:** `scripts/savante_loop.py` with the canon's `bind/skill_history.py`, as `publication.json`
|
| 154 |
+
records.
|
| 155 |
+
- **Policy:** "auto count, gated text" (operator, 2026-09-26). The count advances automatically; text changes to the
|
| 156 |
+
skill pass the operator.
|
| 157 |
+
- **Designer:** [Professor Codephreak](https://github.com/Professor-Codephreak). Savante is the prototype sAGI of the
|
| 158 |
+
mindX DAIO. Related: [sagi](https://github.com/cryptoAGI/sagi), [bankML](https://github.com/cryptoAGI/bankml).
|
| 159 |
+
|
| 160 |
+
MIT licence, as the Savante repository.
|