Kresearch commited on
Commit
26ca884
·
verified ·
1 Parent(s): dd67158

Card: why use these pblocks

Browse files
Files changed (1) hide show
  1. README.md +83 -70
README.md CHANGED
@@ -1,70 +1,83 @@
1
- ---
2
- license: cc-by-4.0
3
- language:
4
- - en
5
- pretty_name: Persona pblocks
6
- tags:
7
- - agents
8
- - agent-memory
9
- - ai-safety
10
- - guardrails
11
- - case-based-reasoning
12
- size_categories:
13
- - 100K<n<1M
14
- ---
15
-
16
- # Persona pblocks
17
-
18
- Trained pblocks from the paper *Persona: A Growable Personality Layer That Turns Any Agent Into a Companion That Learns You* — [https://doi.org/10.5281/zenodo.24145734](https://doi.org/10.5281/zenodo.24145734).
19
-
20
- A pblock is one persona's experience as plain data: real situations with their confirmed outcomes, stored with their embeddings from a frozen 22 MB MiniLM-L6 int8 embedder, plus small calibrated judgment heads. No model weights are trained or shipped. The Persona engine retrieves the nearest cases, judges them with the heads, and cites them in every verdict.
21
-
22
- - Engine: [kresearch-labs/Persona](https://github.com/kresearch-labs/Persona)
23
- - Agent with Persona inside: [kresearch-labs/aura-agent](https://github.com/kresearch-labs/aura-agent)
24
- - Evidence (runs, grade reports, test sets, scorers): [kresearch-labs/persona-evidence](https://github.com/kresearch-labs/persona-evidence)
25
-
26
- ## What is here
27
-
28
- **`keel_guard/`** — the security pblock: an antivirus for agent requests. It reads a request and answers STOP, DOUBT (hand it to the agent's model or a human to check), or PASS.
29
- - `stores/` — 115,393 judged situations (42.5% benign), packed. Seeded from the 34 threat cases of a public AI-misuse threat-intelligence report and grown over 40 training waves with public safety-benchmark prompts (AdvBench, HarmBench and other 2024 safety and jailbreak sets), in-the-wild prompts, public threat reporting, and benign mirror cases. Every row cites its source.
30
- - `weights/keel_guard_heads.json` — the judgment heads (an outcome head and six keyword-defined heads).
31
- - `keel_guard.yml` — the template: territory, labels, structural features, gates.
32
-
33
- On 750 never-seen requests it stopped 89.4% of harmful ones at a median 34 ms on a CPU; it also stopped 55.2% of benign ones, mostly benign prompts on risky-sounding topics. That false-alarm rate is the next training target: add benign look-alikes and new misuse cases to its store and refit the heads. The test set and scorer are in the evidence repository.
34
-
35
- The store contains harmful request text by design: it is what the guard learns to recognize. Use it for defense and research.
36
-
37
- **`pblocks_used/`** — the 83 stores consulted in the paper's runs: the five SWE-bench seat stores, the five-field test stores, and the eight showcase runs. See `pblocks_used/README.md` for the table.
38
-
39
- ## Format
40
-
41
- Each store is two files with the same row order:
42
- - `<name>_embeddings.npy` — float32 array, one 384-d vector per case
43
- - `<name>_meta.jsonl` — one JSON row per case: situation, framing (the lesson), outcome, provenance, timestamps, status (bi-temporal: superseded cases are kept, not deleted)
44
-
45
- Load one with the Persona engine (inside Aura the same class is `aura_agent.pblock_engine.store.PersonaStore`):
46
-
47
- ```python
48
- from persona.store import PersonaStore
49
- store = PersonaStore("swe_triage", "pblocks_used/swe_campaign")
50
- print(len(store.cases))
51
- ```
52
-
53
- ## Cite
54
-
55
- The paper: *Persona: A Growable Personality Layer That Turns Any Agent Into a Companion That Learns You* — [https://doi.org/10.5281/zenodo.24145734](https://doi.org/10.5281/zenodo.24145734)
56
-
57
- ```bibtex
58
- @misc{king2026persona,
59
- title = {Persona: A Growable Personality Layer That Turns Any Agent Into a Companion That Learns You},
60
- author = {King},
61
- year = {2026},
62
- publisher = {Zenodo},
63
- doi = {10.5281/zenodo.24145734},
64
- url = {https://doi.org/10.5281/zenodo.24145734}
65
- }
66
- ```
67
-
68
- ## License
69
-
70
- CC BY 4.0 for the stores and heads. Rows derived from third-party sources keep those sources' terms: SWE-bench issues and code, public benchmark prompts, openly licensed PubMed Central case reports, public records, and public market, astronomy, film and education data.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ pretty_name: Persona pblocks
6
+ tags:
7
+ - agents
8
+ - agent-memory
9
+ - ai-safety
10
+ - guardrails
11
+ - case-based-reasoning
12
+ size_categories:
13
+ - 100K<n<1M
14
+ ---
15
+
16
+ # Persona pblocks
17
+
18
+ Trained pblocks from the paper *Persona: A Growable Personality Layer That Turns Any Agent Into a Companion That Learns You* — [https://doi.org/10.5281/zenodo.24145734](https://doi.org/10.5281/zenodo.24145734).
19
+
20
+ A pblock is one persona's experience as plain data: real situations with their confirmed outcomes, stored with their embeddings from a frozen 22 MB MiniLM-L6 int8 embedder, plus small calibrated judgment heads. No model weights are trained or shipped. The Persona engine retrieves the nearest cases, judges them with the heads, and cites them in every verdict.
21
+
22
+ - Engine: [kresearch-labs/Persona](https://github.com/kresearch-labs/Persona)
23
+ - Agent with Persona inside: [kresearch-labs/aura-agent](https://github.com/kresearch-labs/aura-agent)
24
+ - Evidence (runs, grade reports, test sets, scorers): [kresearch-labs/persona-evidence](https://github.com/kresearch-labs/persona-evidence)
25
+
26
+ ## 💡 Why use these
27
+
28
+ > **Training a pblock is mostly the work of finding and judging real cases — not compute.** These pblocks have already done that work.
29
+
30
+ | | Starting from blank | Starting from these |
31
+ |---|---|---|
32
+ | 🧠 **Your agent begins with** | nothing | experience in the field |
33
+ | ⏱️ **Work before it helps** | find and judge thousands of cases | none — load the folder |
34
+ | 🔧 **Make it yours** | — | read it, correct it, retrain it on a CPU |
35
+ | 🔀 **Works with** | — | any model |
36
+
37
+ 🛡️ **Start with Keel Guard** — it reads every agent request before it runs, stops the hostile ones, and shows the cases behind each verdict.
38
+
39
+ ## What is here
40
+
41
+ **`keel_guard/`** — the security pblock: an antivirus for agent requests. It reads a request and answers STOP, DOUBT (hand it to the agent's model or a human to check), or PASS.
42
+ - `stores/` — 115,393 judged situations (42.5% benign), packed. Seeded from the 34 threat cases of a public AI-misuse threat-intelligence report and grown over 40 training waves with public safety-benchmark prompts (AdvBench, HarmBench and other 2024 safety and jailbreak sets), in-the-wild prompts, public threat reporting, and benign mirror cases. Every row cites its source.
43
+ - `weights/keel_guard_heads.json` — the judgment heads (an outcome head and six keyword-defined heads).
44
+ - `keel_guard.yml` — the template: territory, labels, structural features, gates.
45
+
46
+ On 750 never-seen requests it stopped 89.4% of harmful ones at a median 34 ms on a CPU; it also stopped 55.2% of benign ones, mostly benign prompts on risky-sounding topics. That false-alarm rate is the next training target: add benign look-alikes and new misuse cases to its store and refit the heads. The test set and scorer are in the evidence repository.
47
+
48
+ The store contains harmful request text by design: it is what the guard learns to recognize. Use it for defense and research.
49
+
50
+ **`pblocks_used/`** — the 83 stores consulted in the paper's runs: the five SWE-bench seat stores, the five-field test stores, and the eight showcase runs. See `pblocks_used/README.md` for the table.
51
+
52
+ ## Format
53
+
54
+ Each store is two files with the same row order:
55
+ - `<name>_embeddings.npy` — float32 array, one 384-d vector per case
56
+ - `<name>_meta.jsonl` — one JSON row per case: situation, framing (the lesson), outcome, provenance, timestamps, status (bi-temporal: superseded cases are kept, not deleted)
57
+
58
+ Load one with the Persona engine (inside Aura the same class is `aura_agent.pblock_engine.store.PersonaStore`):
59
+
60
+ ```python
61
+ from persona.store import PersonaStore
62
+ store = PersonaStore("swe_triage", "pblocks_used/swe_campaign")
63
+ print(len(store.cases))
64
+ ```
65
+
66
+ ## Cite
67
+
68
+ The paper: *Persona: A Growable Personality Layer That Turns Any Agent Into a Companion That Learns You* — [https://doi.org/10.5281/zenodo.24145734](https://doi.org/10.5281/zenodo.24145734)
69
+
70
+ ```bibtex
71
+ @misc{king2026persona,
72
+ title = {Persona: A Growable Personality Layer That Turns Any Agent Into a Companion That Learns You},
73
+ author = {King},
74
+ year = {2026},
75
+ publisher = {Zenodo},
76
+ doi = {10.5281/zenodo.24145734},
77
+ url = {https://doi.org/10.5281/zenodo.24145734}
78
+ }
79
+ ```
80
+
81
+ ## License
82
+
83
+ CC BY 4.0 for the stores and heads. Rows derived from third-party sources keep those sources' terms: SWE-bench issues and code, public benchmark prompts, openly licensed PubMed Central case reports, public records, and public market, astronomy, film and education data.