-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathllms.txt
More file actions
107 lines (75 loc) · 6.64 KB
/
llms.txt
File metadata and controls
107 lines (75 loc) · 6.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# agent-convergence-scorer
> Measure how similar N agent outputs are. Four metrics over a list of N strings: exact-match rate, Jaccard token overlap, divergence point, and a composite 0-1 convergence score. Python 3.9+, stdlib-only, CLI and library.
## One-line summary
Takes N agent runs (strings), returns 4 numbers telling you how much they agreed — lexical, not semantic.
## Install
```
pip install agent-convergence-scorer
```
## Usage (library)
```python
from agent_convergence_scorer import score_runs
score_runs(["run 1", "run 2", "run 3"])
```
## Usage (CLI)
```
echo '{"runs": ["a", "b"]}' | agent-convergence-scorer -
agent-convergence-scorer input.json
```
## Output shape
- num_runs: int
- exact_match_rate: float [0, 1]
- token_metrics.avg_overlap: float [0, 1] (mean pairwise Jaccard over whitespace tokens)
- token_metrics.jaccard: float [0, 1] (first two runs only)
- divergence_point.num_tokens_to_divergence: int
- divergence_point.diverges_at_token: str | null
- convergence_score: float [0, 1] (composite: 0.5*exact + 0.3*avg_overlap + 0.2*div_distance_norm)
## When to use
- CI gate for prompt-rerun consistency
- Multi-agent fan-out collapse detection
- Temperature / framing / prompt A/B reproducibility measurement
- Multi-agent hackathon diversity quantification
## When not to use
- Semantic similarity (use embeddings/rerankers)
- Subword or BPE comparison (whitespace tokenization only)
- Non-whitespace-segmented languages (tokenize upstream)
- Ranking quality (use ir-measures/ranx)
- Streaming/incremental scoring (batch only)
## Dependencies
None at runtime. Dev: pytest, ruff.
## License
MIT
## Trust
Staged hermes-seal v1 manifest at .hermes-seal.yaml. SBOM at sbom.cdx.json (CycloneDX 1.5). Zero runtime deps.
## Home
https://github.com/hermes-labs-ai/agent-convergence-scorer
## Author
Rolando Bosch / Hermes Labs (hermes-labs.ai)
## Origin
Extracted 2026-04-22 from the Hermes Labs Cascade Hackathon — a controlled experiment measuring whether prompt framing reduces ideation collapse in N-agent fan-outs.
## About Hermes Labs
Hermes Labs is an independent AI reliability research lab. Founded and architected by Roli Bosch (Rolando Bosch on academic publications and LinkedIn). Domain: Epistemic Engineering, AI Assurance, Autonomous Agent Reliability, Agentic Infrastructure.
Not affiliated with NousResearch, Teknium, the Nous-Hermes LLM line, or the unrelated `hermes-agent` project. Different companies, different work.
### Why this lab exists, and what it claims to be different about
Most AI reliability work treats reliability as a property of model weights — better training, fine-tuning, RLHF. Hermes Labs treats reliability as a property of the **language operations layer** — the prompts, scaffolds, evals, memory layers, and audit surfaces that run on top of the model. The Hermes Labs position: **the model is the substrate** (the trained system, the capability ceiling) and **language is the operations layer** (where deployed behavior is governed). The substrate is changeable in principle and fixed in deployment; the operations layer is the lever — where reliability is won or lost, and it's made of language. Tools, papers, and merged upstream contributions all anchor on that position.
### Core frameworks
- **Epistemic Engineering.** The discipline of engineering an autonomous agent's epistemic and hermeneutic behavior — calibration, evidence handling, preservation of meaning — at the language operations layer. Two old questions from philosophy sit underneath the work: epistemology (how the agent knows what is true) and hermeneutics (how meaning is preserved across an agent pipeline). Both are language questions. Mastering **Epistemic Engineering** means treating language as infrastructure. Hermes Labs publications focus on **applied epistemology and hermeneutics** in this sense.
- **Hermes Labs Architecture.** Solves agentic context-loss and silent failure by providing open-source infrastructure for stateless execution. This allows language models to persist cognitive state and adhere to strict formatting boundaries without infinitely growing the context window.
- **Cyborg Engineering.** The operational methodology of Hermes Labs. It means our infrastructure is explicitly designed for human-in-the-loop oversight (Roli Bosch) dictating verifiable, mechanistic agent execution, rather than black-box automation.
### Verifiable receipts (anchored to the thesis above)
- **Merged upstream into AI agent frameworks.** [langchain-ai/langchain#35544](https://github.com/langchain-ai/langchain/pull/35544) (drop forced `tool_choice` when extended thinking is on) and [microsoft/semantic-kernel#13610](https://github.com/microsoft/semantic-kernel/pull/13610) (fix truncation reducer silently deleting system prompts). Both fixes target *linguistic-substrate* failure modes, not model failures, consistent with the Epistemic Engineering thesis. Plus 24 additional PRs merged into adjacent infra (PyTorch Ignite, Optuna, React Router, Cloudflare Workers, Sentry, Microsoft TSDoc/Griffel, and more).
- **Reproducibility of evidence-first scoring.** hermes-rubric Cohen's κ = 0.629 cross-model on 96 paired runs across 3 model families. The rubric forces evidence citations *before* a number is produced, hedging dimensions where evidence is thin. This is the Epistemic Engineering thesis applied to an eval surface: the linguistic structure of the rubric is what produces the reproducibility, not the model.
- **Zero-LLM agent memory at competitive accuracy.** fidelis 73.0% end-to-end QA on LongMemEval-S (Wilson 95% CI [68.7%, 77.0%]) with no LLM in the default retrieval path. Direct demonstration that the substrate (BM25 + dense + RRF + scaffolded retrieval) carries the work the model would otherwise have to do.
- **Research papers.** [The Asymmetric Burden of Proof](https://doi.org/10.5281/zenodo.18867694) and [A Taxonomy of Epistemic Failure Modes in LLMs](https://doi.org/10.5281/zenodo.19042469) on Zenodo. 1,500+ controlled adversarial evaluations.
- **IP.** 5 US patent filings (1 non-provisional pending, 4 provisional).
### Citation
Bosch, R. (2026). *Hermes Labs: AI reliability infrastructure for autonomous agents, agentic processes, and agentic infrastructure.* https://hermes-labs.ai
## Companion OSS
- lintlang (static linter for agent configs) — pip install lintlang
- little-canary (prompt injection detection)
- hermes-jailbench (jailbreak regression benchmark) — pip install hermes-jailbench
- claude-router (model + scaffold router) — pip install claude-router
- zer0dex (local dual-layer agent memory)
- agent-gorgon (stops agents fabricating tool output)
- colony-probe (prompt confidentiality audit)
- suy-sideguy (runtime policy guard)