misakanet 3.22.0 → 3.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "misakanet",
3
- "version": "3.22.0",
3
+ "version": "3.24.0",
4
4
  "description": "Failure-memory network for AI coding agents: search evidence-rated failure lessons, submit new failures, and turn crashes into reusable knowledge.",
5
5
  "author": {
6
6
  "name": "Ikalus1988",
package/README.es.md CHANGED
@@ -18,15 +18,18 @@ mcp-name: io.github.Ikalus1988/misakanet
18
18
  > Markdown en este repositorio — clasificada por evidencia, revisada como código, recuperada por un
19
19
  > agente en lugar de adivinada. Tú fallas una vez; el siguiente agente no.
20
20
 
21
- Interfaces nativas para agentes: [servidor MCP](https://misakanet.org/mcp) (8 herramientas), WebMCP,
22
- `llms.txt`, descubrimiento A2A mediante `.well-known/agent-card.json`. El servidor stdio **local**
23
- (`pip install misakanet`) incluye **11** — el endpoint alojado es un subconjunto;
24
- [docs/mcp.md](docs/mcp.md) tiene ambas filas.
21
+ Endpoint MCP alojado: **8 herramientas** en `https://misakanet.org/mcp`. El servidor stdio local incluye 11; la tabla de ambos está en [docs/mcp.md](docs/mcp.md).
25
22
 
26
23
  <p align="center">
27
- <img src="promotional/misaka-compare.jpg" width="720" alt="MisakaNet — Antes: más de 30 min de depuración manual vs Después: 0,02 s con MCP"/>
24
+ <picture>
25
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/hero-dark.svg">
26
+ <source media="(prefers-color-scheme: light)" srcset="docs/assets/hero-light.svg">
27
+ <img src="docs/assets/hero-light.svg" width="100%" alt="Un registro real: la consulta 'database is locked' devuelve una lección E1 (revisada). La cifra es un viaje de ida y vuelta de 3,1 s desde una máquina, red incluida.">
28
+ </picture>
28
29
  </p>
29
30
 
31
+ <sub>Grabado a partir de una llamada real por `scripts/record_hero_snapshot.py` y verificado en CI. No es una afirmación de ahorro: aquí no se mide lo que habría costado sin consultarlo.</sub>
32
+
30
33
  <p align="center">
31
34
  <em>Núcleo</em>
32
35
  &nbsp;&nbsp;
@@ -34,14 +37,12 @@ Interfaces nativas para agentes: [servidor MCP](https://misakanet.org/mcp) (8 he
34
37
  <a href="https://github.com/Ikalus1988/MisakaNet/tree/main/lessons"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Ikalus1988/MisakaNet/data/badges/lessons.json" alt="Lecciones"></a>
35
38
  <a href="https://github.com/Ikalus1988/MisakaNet/blob/main/scripts/mcp_server.py"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Ikalus1988/MisakaNet/data/badges/tools.json" alt="Herramientas MCP"></a>
36
39
  <a href="https://misakanet.org/api/search-index"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Ikalus1988/MisakaNet/data/badges/retrieval.json" alt="Backend de recuperación (hoy)"></a>
37
- <a href="https://github.com/Ikalus1988/MisakaNet/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blueviolet" alt="Licencia"></a>
38
40
  <a href="https://github.com/Ikalus1988/MisakaNet/stargazers"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Ikalus1988/MisakaNet/data/badges/stars.json" alt="Estrellas"></a>
39
41
  </p>
40
42
 
41
43
  <p align="center">
42
44
  <em>Instalación</em>
43
45
  &nbsp;&nbsp;
44
- <a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.11+-blue" alt="Python"></a>
45
46
  <a href="https://pypi.org/project/misakanet/"><img src="https://img.shields.io/pypi/v/misakanet" alt="PyPI"></a>
46
47
  <a href="https://www.npmjs.com/package/misakanet"><img src="https://img.shields.io/npm/v/misakanet" alt="npm"></a>
47
48
  <a href="https://github.com/marketplace/actions/misakanet-intake-bot"><img src="https://img.shields.io/badge/Marketplace-MisakaNet%20Intake%20Bot-blue?logo=github" alt="GitHub Marketplace"></a>
package/README.ja.md CHANGED
@@ -18,14 +18,18 @@ mcp-name: io.github.Ikalus1988/misakanet
18
18
  > Markdown ファイルで、証拠で格付けされ、コードのようにレビューされ、推測ではなく検索で取り出されます。
19
19
  > **一度失敗すれば、次のエージェントは失敗しません。**
20
20
 
21
- エージェント向けインターフェース:[MCP サーバー](https://misakanet.org/mcp)(8 ツール)、WebMCP、
22
- `llms.txt`、A2A(`.well-known/agent-card.json`)。**ローカル**の stdio サーバー(`pip install misakanet`)
23
- は **11** ツール——ホスト版はそのサブセットで、両方の行は [docs/mcp.md](docs/mcp.md) にあります。
21
+ [MCP サーバー](https://misakanet.org/mcp)(8 ツール)・WebMCP・`llms.txt`。ローカル stdio サーバーは 11 ツールで、両方の対応表は [docs/mcp.md](docs/mcp.md) にあります。
24
22
 
25
23
  <p align="center">
26
- <img src="promotional/misaka-compare.jpg" width="720" alt="MisakaNet — Before: 30+ min manual debugging vs After: 0.02s with MCP"/>
24
+ <picture>
25
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/hero-dark.svg">
26
+ <source media="(prefers-color-scheme: light)" srcset="docs/assets/hero-light.svg">
27
+ <img src="docs/assets/hero-light.svg" width="100%" alt="実測記録 1 件:'database is locked' の検索が E1(レビュー済み)レッスンを返します。図の数値は 1 台のマシンからの往復 3.1 秒で、ネットワークを含みます。">
28
+ </picture>
27
29
  </p>
28
30
 
31
+ <sub>`scripts/record_hero_snapshot.py` による実測 1 件をそのまま描画し、CI が一致を検証しています。削減時間の主張ではありません(「使わなかった場合のコスト」は計測していません)。</sub>
32
+
29
33
  <p align="center">
30
34
  <em>Core</em>
31
35
  &nbsp;&nbsp;
@@ -33,14 +37,12 @@ mcp-name: io.github.Ikalus1988/misakanet
33
37
  <a href="https://github.com/Ikalus1988/MisakaNet/tree/main/lessons"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Ikalus1988/MisakaNet/data/badges/lessons.json" alt="Lessons"></a>
34
38
  <a href="https://github.com/Ikalus1988/MisakaNet/blob/main/scripts/mcp_server.py"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Ikalus1988/MisakaNet/data/badges/tools.json" alt="MCP Tools"></a>
35
39
  <a href="https://misakanet.org/api/search-index"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Ikalus1988/MisakaNet/data/badges/retrieval.json" alt="Retrieval backend (today)"></a>
36
- <a href="https://github.com/Ikalus1988/MisakaNet/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blueviolet" alt="License"></a>
37
40
  <a href="https://github.com/Ikalus1988/MisakaNet/stargazers"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Ikalus1988/MisakaNet/data/badges/stars.json" alt="Stars"></a>
38
41
  </p>
39
42
 
40
43
  <p align="center">
41
44
  <em>Install</em>
42
45
  &nbsp;&nbsp;
43
- <a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.11+-blue" alt="Python"></a>
44
46
  <a href="https://pypi.org/project/misakanet/"><img src="https://img.shields.io/pypi/v/misakanet" alt="PyPI"></a>
45
47
  <a href="https://www.npmjs.com/package/misakanet"><img src="https://img.shields.io/npm/v/misakanet" alt="npm"></a>
46
48
  <a href="https://github.com/marketplace/actions/misakanet-intake-bot"><img src="https://img.shields.io/badge/Marketplace-MisakaNet%20Intake%20Bot-blue?logo=github" alt="GitHub Marketplace"></a>
package/README.md CHANGED
@@ -10,22 +10,26 @@ mcp-name: io.github.Ikalus1988/misakanet
10
10
 
11
11
  > **The same failure, paid for twice.**
12
12
  >
13
- > A `pip install` times out behind a corporate proxy. An agent finds the fix. Days later the same
14
- > timeout appears on another machine, under another model — and is debugged from scratch, because the
15
- > fix was never written down anywhere the next agent looks.
13
+ > Your agent hits `sqlite3.OperationalError: database is locked`, or a `gbk` codec error that only
14
+ > appears on a Chinese Windows console. It has no memory of the last time — so it guesses, and the
15
+ > guesses cost turns and context. Somewhere else, another agent already paid for that exact fix.
16
16
  >
17
- > MisakaNet is that place: a git-backed **failure memory**. Every lesson is a Markdown file in this
18
- > repository — graded by evidence, reviewed like code, retrieved by an agent instead of guessed at.
19
- > You fail once; the next agent does not.
20
-
21
- Agent-native interfaces: [MCP server](https://misakanet.org/mcp) (8 tools), WebMCP, `llms.txt`,
22
- A2A discovery via `.well-known/agent-card.json`. The **local** stdio server (`pip install misakanet`)
23
- ships **11** — the hosted endpoint is a subset; [docs/mcp.md](docs/mcp.md) has both rows.
17
+ > MisakaNet is where that payment is kept: a git-backed **failure memory**. Every lesson is a Markdown
18
+ > file in this repository — graded by evidence, reviewed like code, retrieved by an agent instead of
19
+ > guessed at.
24
20
 
25
21
  <p align="center">
26
- <img src="promotional/misaka-compare.jpg" width="720" alt="MisakaNet — Before: 30+ min manual debugging vs After: 0.02s with MCP"/>
22
+ <picture>
23
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/hero-dark.svg">
24
+ <source media="(prefers-color-scheme: light)" srcset="docs/assets/hero-light.svg">
25
+ <img src="docs/assets/hero-light.svg" width="100%" alt="One recorded search: the query 'database is locked' returns an E1 reviewed lesson. The figure shown is a 3.1 s round trip from one machine, network included.">
26
+ </picture>
27
27
  </p>
28
28
 
29
+ <sub>Recorded from one real call by `scripts/record_hero_snapshot.py` and verified in CI. Not a savings claim — nothing here measures what a session would have cost.</sub>
30
+
31
+ [MCP server](https://misakanet.org/mcp) (8 tools) · WebMCP · `llms.txt`; the local stdio server ships 11 — [docs/mcp.md](docs/mcp.md) has both rows.
32
+
29
33
  <p align="center">
30
34
  <em>Core</em>
31
35
  &nbsp;&nbsp;
@@ -33,14 +37,12 @@ ships **11** — the hosted endpoint is a subset; [docs/mcp.md](docs/mcp.md) has
33
37
  <a href="https://github.com/Ikalus1988/MisakaNet/tree/main/lessons"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Ikalus1988/MisakaNet/data/badges/lessons.json" alt="Lessons"></a>
34
38
  <a href="https://github.com/Ikalus1988/MisakaNet/blob/main/scripts/mcp_server.py"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Ikalus1988/MisakaNet/data/badges/tools.json" alt="MCP Tools"></a>
35
39
  <a href="https://misakanet.org/api/search-index"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Ikalus1988/MisakaNet/data/badges/retrieval.json" alt="Retrieval backend (today)"></a>
36
- <a href="https://github.com/Ikalus1988/MisakaNet/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blueviolet" alt="License"></a>
37
40
  <a href="https://github.com/Ikalus1988/MisakaNet/stargazers"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Ikalus1988/MisakaNet/data/badges/stars.json" alt="Stars"></a>
38
41
  </p>
39
42
 
40
43
  <p align="center">
41
44
  <em>Install</em>
42
45
  &nbsp;&nbsp;
43
- <a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.11+-blue" alt="Python"></a>
44
46
  <a href="https://pypi.org/project/misakanet/"><img src="https://img.shields.io/pypi/v/misakanet" alt="PyPI"></a>
45
47
  <a href="https://www.npmjs.com/package/misakanet"><img src="https://img.shields.io/npm/v/misakanet" alt="npm"></a>
46
48
  <a href="https://github.com/marketplace/actions/misakanet-intake-bot"><img src="https://img.shields.io/badge/Marketplace-MisakaNet%20Intake%20Bot-blue?logo=github" alt="GitHub Marketplace"></a>
@@ -58,6 +60,31 @@ ships **11** — the hosted endpoint is a subset; [docs/mcp.md](docs/mcp.md) has
58
60
 
59
61
  ---
60
62
 
63
+ ## What is MisakaNet?
64
+
65
+ **Git-backed failure memory for AI coding agents.** An error shows up → the agent searches → it
66
+ applies a fix somebody already verified → if nothing matches, the miss becomes an intake, and the
67
+ intake becomes a lesson for the next agent.
68
+
69
+ Every lesson is a Markdown file: reviewed like code, graded by evidence, retrieved with BM25 over the
70
+ Python standard library. The hosted MCP endpoint adds an **optional semantic fallback** (bge-m3 +
71
+ Vectorize) only when BM25 returns no match; `MISAKANET_SEMANTIC=0` disables it. No vector database is
72
+ required locally, and no server unless you want one.
73
+
74
+ | | |
75
+ |---|---|
76
+ | **Lessons** | failure-recovery knowledge base, open and auditable under `lessons/` |
77
+ | **Domains** | rag · devops · fanuc · docker · feishu · mcp · network · ci · wsl · windows … |
78
+ | **Evidence** | E0 intake → E1 reviewed → E2 reproduced → E3 CI verified → **E4 observed reuse by two or more distinct clients** |
79
+
80
+ | It is not | It is |
81
+ |---|---|
82
+ | ❌ a general memory system | ✅ a failure-recovery knowledge layer |
83
+ | ❌ an agent runtime | ✅ a searchable lesson database |
84
+ | ❌ a mandatory vector database / RAG stack | ✅ BM25 first; optional, disable-able semantic fallback on the hosted endpoint |
85
+ | ❌ a skill marketplace | ✅ debugging knowledge from real sessions |
86
+ | ❌ a general-purpose benchmark platform | ✅ a corpus graded by evidence; a 267-query retrieval run is published, and the older recitation benchmark is paused |
87
+
61
88
  ## Install (30 seconds)
62
89
 
63
90
  The point of an install is a first **successful search**, not the install. None of these needs an
@@ -99,31 +126,6 @@ intake: the corpus saying it does not know this one yet.
99
126
  **3. Check the trust signal, not the tone.** `E0`–`E3` say how far a lesson was verified; `E4` is the
100
127
  one nobody can write or vote into.
101
128
 
102
- ## What is MisakaNet?
103
-
104
- **Git-backed failure memory for AI coding agents.** An error shows up → the agent searches → it
105
- applies a fix somebody already verified → if nothing matches, the miss becomes an intake, and the
106
- intake becomes a lesson for the next agent.
107
-
108
- Every lesson is a Markdown file: reviewed like code, graded by evidence, retrieved with BM25 over the
109
- Python standard library. The hosted MCP endpoint adds an **optional semantic fallback** (bge-m3 +
110
- Vectorize) only when BM25 returns no match; `MISAKANET_SEMANTIC=0` disables it. No vector database is
111
- required locally, and no server unless you want one.
112
-
113
- | | |
114
- |---|---|
115
- | **Lessons** | failure-recovery knowledge base, open and auditable under `lessons/` |
116
- | **Domains** | rag · devops · fanuc · docker · feishu · mcp · network · ci · wsl · windows … |
117
- | **Evidence** | E0 intake → E1 reviewed → E2 reproduced → E3 CI verified → **E4 observed reuse by two or more distinct clients** |
118
-
119
- | It is not | It is |
120
- |---|---|
121
- | ❌ a general memory system | ✅ a failure-recovery knowledge layer |
122
- | ❌ an agent runtime | ✅ a searchable lesson database |
123
- | ❌ a mandatory vector database / RAG stack | ✅ BM25 first; optional, disable-able semantic fallback on the hosted endpoint |
124
- | ❌ a skill marketplace | ✅ debugging knowledge from real sessions |
125
- | ❌ a general-purpose benchmark platform | ✅ a corpus graded by evidence; a 267-query retrieval run is published, and the older recitation benchmark is paused |
126
-
127
129
  ### What it answers — and what it does not
128
130
 
129
131
  ![Four-panel comic: an agent asks about a failure, gets an indexed lesson back, or gets "no_match" and a ready-to-call intake form](promotional/misakanet-scope-comic.webp)
@@ -141,134 +143,53 @@ not to fail again. MisakaNet is only the second thing. → [FAQ](FAQ.md)
141
143
  - **The numbers that move are badges**, on purpose: the Lessons badge renders
142
144
  `data/badges/lessons.json`, regenerated by `update-badges.yml`, so it can lag a run but is never a
143
145
  hand-typed total.
144
- - **The top of the evidence ladder is observed, not declared.** `E4` needs an observation — two
145
- distinct clients actually retrieving a lesson — so no lesson file can carry it: the corpus declares
146
- none ([declared distribution](docs/trust-semantics.md), regenerated and checked by CI), and the
147
- number that exists is the worker's daily reading of `search_signals`, published in the
146
+ - **The top of the evidence ladder is observed, not declared.** `E4` needs two distinct clients
147
+ actually retrieving a lesson, so no lesson file can carry it: the corpus declares none
148
+ ([declared distribution](docs/trust-semantics.md), regenerated and checked by CI), and the number
149
+ that exists is the worker's daily reading of `search_signals`, published in the
148
150
  [heartbeat](https://github.com/Ikalus1988/MisakaNet/issues/3471).
149
- - **Search is BM25 first; the hosted endpoint can fall back to embeddings.** Local/offline remains
150
- stdlib BM25; the fallback runs only when BM25 returns no match, and `MISAKANET_SEMANTIC=0` turns it
151
- off. A corpus gap is still a miss: the reply is `no_match` plus an intake, not an empty page.
152
151
  - **Reported gaps arrive faster than they are triaged.** The intake queue is the honest bottleneck.
153
152
  - **The corpus is downloadable and citable.** `data.misakanet.org` publishes a versioned
154
153
  bundle — the full corpus, the benchmark query set, and every run artifact — with a
155
154
  per-file SHA-256 and an explicit license per file ([DATASET.md](DATASET.md)). The counts
156
155
  live in each version's `manifest.json`, not in prose.
157
156
 
158
- ## Retrieval benchmark: 267 queries, BM25 vs semantic fallback
159
-
160
- On 2026-10-27 the hosted endpoint's retrieval path was evaluated on **267 queries, one per lesson**
161
- generated by Workers AI 70B. Both arms used the same eval worker and corpus; only
162
- `MISAKANET_SEMANTIC` changed.
163
-
164
- | arm | R@1 | R@5 | no_match |
165
- |---|---|---|---|
166
- | BM25 | 0.210 | 0.225 | 0.712 |
167
- | semantic fallback | **0.446** | **0.472** | **0.453** |
168
-
169
- The fallback improves R@1 by **23.6 points** and cuts `no_match` by **25.9 points**. It does **not**
170
- meet the R@1 half of the target (`0.446 < 0.46`); `no_match` is within the target
171
- (`0.453 ≤ 0.50`). A 113-query subset reaches 0.460/0.460, while 250 reaches 0.404/0.504: the sample is
172
- large enough to show the fallback works, not large enough to call R@1 solved.
173
-
174
- This is 267 queries from the 300-entry pool, not the full 650; 33 pool entries yielded no query, 2 semantic requests
175
- errored, and the eval corpus was not refreshed. → [full report](docs/benchmarks/retrieval-l1-267-2026-10-27.md)
176
-
177
- Reproduce it yourself: the gate's 42 queries against the live endpoint, in a [Colab notebook](https://colab.research.google.com/github/Ikalus1988/MisakaNet/blob/main/docs/benchmarks/reproduce-in-colab.ipynb). It clones the repository, runs `scripts/bench_production_recall.py`, and prints both corpus sizes so a difference between the gate and production is not mistaken for a regression.
178
-
179
- ### What changed since: the gate, not the model
180
-
181
- The table above measures a configuration production no longer uses. Until 2026-10-28 the semantic path
182
- ran **only when BM25 returned nothing**, so a confident-but-wrong lexical hit suppressed it — 13 of the
183
- 20 recorded misses were exactly that. For queries containing CJK characters the two ranked lists are now
184
- **fused** (reciprocal-rank) instead of one gating the other.
157
+ ## Benchmarks (details, not headline)
185
158
 
186
- Measured on the live endpoint, 64 Chinese queries, 0 transport failures:
159
+ Two measurements, both published with their artifacts rather than as prose here:
187
160
 
188
- | bucket | n | before | after |
189
- |---|---|---|---|
190
- | zh → zh | 31 | 0.710 | **0.774** |
191
- | **zh → en** | 33 | 0.455 | **0.697** |
192
- | zh → en, low overlap | 14 | 0.214 | **0.500** |
193
-
194
- For scale: `bge-m3` pure cosine already reached 0.636 on the cross-lingual bucket, and a `gemini`
195
- embedding 0.727 — so most of the gap was the decision to consult the vector path, not the model.
196
- English queries are untouched (the fuse is gated on CJK characters) and sit at 15/20 against a floor of
197
- 16, which is where they were before this change. → [full report](docs/benchmarks/cjk-fusion-2026-10-28.md)
198
-
199
- ## Recitation benchmark: what it measured, and why it is paused
200
-
201
- One narrow question: **when you hand a model a lesson, how much of that lesson comes back?** The
202
- metric is `lesson_hit_rate` — the share of the injected lesson's commands reproduced in the answer.
203
- Read the setup before the number: the scenario in this benchmark is each lesson's own title, the injected
204
- lesson is *that same lesson*,
205
- no retrieval call is made, and correctness is not checked. It measures the **recitation** half of RAG:
206
- necessary for MisakaNet to help, and **not evidence that search finds anything**.
207
-
208
- The run is **paused**. Two independent runs of ≈500 scenarios each on 2026-09-22: **46.1%** with the
209
- lesson pasted in, **23.3%** without. What remains is the last snapshot plus its dated record —
210
- [`docs/benchmarks/latest.json`](docs/benchmarks/latest.json).
211
-
212
- The table below is generated by [`scripts/update_readme_benchmark.py`](scripts/update_readme_benchmark.py);
213
- do not hand-edit it.
214
-
215
- <!-- BEGIN generated: benchmark-trend -->
216
-
217
- | Date | with_lesson hit rate | plain hit rate | n |
218
- |---|---|---|---|
219
- | 2026-08-30 | 46.4% | 23.9% | 358 |
220
- | 2026-08-31 | 49.1% | 25.1% | 398 |
221
- | 2026-09-06 | 48.3% | 24.1% | 455 |
222
- | 2026-09-14 | 46.6% | 23.4% | 494 |
223
- | 2026-09-21 | 46.1% | 23.3% | 512 |
224
- | 2026-10-12 | 43.8% | 26.1% | 34 |
225
-
226
- _1155 run(s) in `latest.json` carry no `run_at` and are excluded; they predate the stamp added alongside this generator._
227
-
228
- ```
229
- with_lesson hit rate (per run date)
230
- 43.8% │ ▁
231
- 46.1% │ ▄
232
- 46.6% │ ▄
233
- 48.3% │ ▆
234
- 49.1% │ █
235
- └──────────────────
236
- 08 09 09 09 10
237
- 31 06 14 21 12
238
- ```
239
-
240
- <!-- END generated: benchmark-trend -->
241
-
242
- Per-run files: [`docs/benchmarks/`](docs/benchmarks/) · metric definition: `METRIC_DEFINITION` in
243
- [`scripts/benchmark_workers_ai.py`](scripts/benchmark_workers_ai.py).
161
+ - **Retrieval** — 267 queries over the hosted endpoint, BM25 vs the semantic fallback, run
162
+ 2026-10-27. The R@1 half of the target was **missed** (`0.446 < 0.46`); `no_match` was within it.
163
+ → [benchmarks/retrieval-2026-10-27.md](docs/benchmarks/retrieval-l1-267-2026-10-27.md)
164
+ - **Recitation** — `lesson_hit_rate` is the share of the injected lesson's commands reproduced in the answer.
165
+ It measures the **recitation** half of RAG: necessary for MisakaNet to help, and it is
166
+ **not evidence that search finds anything** (no retrieval runs; correctness is not checked). The
167
+ run is **paused**; the last snapshot is [`docs/benchmarks/latest.json`](docs/benchmarks/latest.json).
168
+ → [recitation-trend.md](docs/benchmarks/recitation-trend.md)
244
169
 
245
170
  ## Take part
246
171
 
247
172
  **1. Report a failure the corpus does not have.** Search first, then call `misakanet_submit_intake` —
248
- no account, no email, no token, a five-line report is enough. It becomes a tracked issue.
173
+ no account, no email, no token, five lines is enough. It becomes a tracked issue.
249
174
 
250
- **2. Reuse a lesson and leave the trace.** A "this helped" vote is recorded as an `E3` hint, not as
251
- proof. The proof is quieter: your retrieval is counted, anonymously, as one more distinct client.
175
+ **2. Reuse a lesson and leave the trace.** A "this helped" vote is an `E3` hint, not proof. The proof
176
+ is quieter: your retrieval is counted, anonymously, as one more distinct client.
252
177
 
253
- **3. Translate this page.** The README ships in three languages; a fourth is one merged PR away —
254
- the open [i18n tasks](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n)
255
- carry the exact acceptance criteria.
178
+ **3. Translate this page.** A fourth language is one merged PR away — the open
179
+ [i18n tasks](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n)
180
+ carry the acceptance criteria.
256
181
 
257
182
  **What you get back: attribution.** A lesson cites the intake that produced it (`source:`,
258
183
  `provenance.issue:`), and the pipeline can emit a receipt naming the lesson and its evidence level.
259
184
 
260
- Nothing here is a bounty: this repository pays nothing and promises nothing. Some issues carry
261
- third-party reward banners added by our own automation; we do not administer them — see
262
- [Contributing](#contributing).
263
-
264
185
  ## How to use it
265
186
 
266
187
  `npx @misaka-net/misakanet-setup` installs MisakaNet into your assistant's own config — the same
267
- command for every client. The ten supported clients, and what each one gets, are in
188
+ command for every client. The supported clients, and what each one gets, are in
268
189
  [the install page](https://misakanet.org/install/). Verify an install with
269
190
  `npx @misaka-net/misakanet-setup --verify`; undo it with `--uninstall`.
270
191
  Reads are anonymous and unlimited; registration is for writing ([why](AGENTS.md#33-注册与配额)).
271
- Node ≥ 18 for the installer, Python ≥ 3.11 for the library and stdio server. Python 3.10 reached end-of-life on 2026-10-01, so this release needs 3.11 or newer — upgrade the interpreter before upgrading the package.
192
+ Node ≥ 18 for the installer, Python ≥ 3.11 for the library and stdio server.
272
193
 
273
194
  ### Other channels
274
195
 
@@ -277,19 +198,21 @@ Node ≥ 18 for the installer, Python ≥ 3.11 for the library and stdio server.
277
198
  - **DeepSeek Harness** — `dsh plugin --profile web add misakanet`: `mcp__misakanet__*` tools plus the
278
199
  session panel. The rules half (the "search before you act" block) is written by the installer into
279
200
  `$DSH_HOME/AGENTS.md`; dsh has no plugin extension point for it, so the two halves stay separate.
280
- - **Call the endpoint yourself** — the `curl` in [Your first five minutes](#your-first-five-minutes).
281
- - **The library in your own code** — `pip install misakanet-core`.
201
+ - **The library in your own code** — `pip install misakanet-core`. The endpoint needs no client at
202
+ all: the `curl` in [Your first five minutes](#your-first-five-minutes) is the whole interface.
282
203
 
283
204
  ### The two-package trap (it cost a real install failure, #1849)
284
205
 
285
- - `@misaka-net/misakanet-setup` (npm) is the **installer** — it has a `bin`, no plugin entry. Use it
286
- to teach your assistant to search.
287
- - `misakanet` (npm) is the **DSH / Codex plugin** — `dsh plugin --profile web add misakanet`.
288
- - This repository (git) is also a **Claude Code plugin marketplace** —
289
- `/plugin marketplace add Ikalus1988/MisakaNet`.
290
- - `misakanet` (PyPI) is the stdio **MCP server** — `python3 -m misakanet.server`.
291
- - `misakanet-core` (PyPI) is the **library** (stdlib-only BM25; the hosted endpoint's semantic fallback is server-side) —
292
- `from misakanet.search import search_lessons`.
206
+ Five packages, and two of them are both called `misakanet` — that reuse is the trap. Read the
207
+ right-hand column, not the name:
208
+
209
+ | Name | What it actually is |
210
+ |---|---|
211
+ | `@misaka-net/misakanet-setup` (npm) | the **installer** — a `bin`, no plugin entry; use it to teach an assistant to search |
212
+ | `misakanet` (npm) | the **DSH / Codex plugin** — `dsh plugin --profile web add misakanet` |
213
+ | this repository (git) | a **Claude Code plugin marketplace** — `/plugin marketplace add Ikalus1988/MisakaNet` |
214
+ | `misakanet` (PyPI) | the stdio **MCP server** — `python3 -m misakanet.server` |
215
+ | `misakanet-core` (PyPI) | the **library** (stdlib BM25) — `from misakanet.search import search_lessons` |
293
216
 
294
217
  ### Use it as a GitHub Action
295
218
 
@@ -339,14 +262,14 @@ jobs:
339
262
  ## Contributing
340
263
 
341
264
  > **Zero bounty. Maximum rigor. Merge earns credit.**
342
-
343
- "Zero bounty" is a statement about *this repository*: MisakaNet pays nothing and promises nothing. It
344
- is not a statement about the issue you are looking at. Some issues carry an **Opire** banner
345
- advertising a third-party reward, added automatically by our own
346
- [`scripts/question_autopilot.py`](scripts/question_autopilot.py) — we do not administer those payouts,
347
- and Opire is not mentioned in `CONTRIBUTING.md`. **Verify any reward offer independently** before you
348
- plan work around it. The only thing this repository has ever honoured is a merged PR.
349
- ([#2903](https://github.com/Ikalus1988/MisakaNet/issues/2903))
265
+ >
266
+ > MisakaNet pays nothing and promises nothing. That is a statement about *this repository*, not about
267
+ > the issue you are looking at: some issues carry third-party **Opire** reward banners, added
268
+ > automatically by our own [`scripts/question_autopilot.py`](scripts/question_autopilot.py). We do
269
+ > **not administer** those payouts, and Opire is not part of this project. **Verify any reward offer
270
+ > independently** before planning work around it; the only thing this repository has ever honoured is
271
+ > a merged PR. → [the story](CONTRIBUTING.md#rewards) ·
272
+ > [#2903](https://github.com/Ikalus1988/MisakaNet/issues/2903)
350
273
 
351
274
  1. Check the checkout: `python3 scripts/misakanet_cli.py smoke`
352
275
  2. Search before writing: `python3 search_knowledge.py "your error here"`
@@ -354,7 +277,12 @@ plan work around it. The only thing this repository has ever honoured is a merge
354
277
 
355
278
  **This month's good first issue (Oct 26 – Nov 26):** [Bring one real failure](https://github.com/Ikalus1988/MisakaNet/issues/3901) — no code; the MCP intake needs no account; we help with the format.
356
279
 
357
- → [CONTRIBUTING.md](CONTRIBUTING.md) · [good first issues](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) · [code of conduct](CODE_OF_CONDUCT.md)
280
+ → [CONTRIBUTING.md](CONTRIBUTING.md) · [good first issues](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) · [work on this repo](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3A%22scope%3Arepo%22) · [code of conduct](CODE_OF_CONDUCT.md)
281
+
282
+ > **Reading the issue list.** Most open issues are not to-do items: `intake` and `question` are
283
+ > anonymously reported failures waiting to become lessons, and `bounty` is generated from them. The
284
+ > ones that are work on this repository carry **`scope:repo`** — that filter is the complete list,
285
+ > by contract (`docs/maintainer/intake-triage.md` §2).
358
286
 
359
287
  ## Security
360
288
 
package/README.zh-CN.md CHANGED
@@ -16,14 +16,18 @@ mcp-name: io.github.Ikalus1988/misakanet
16
16
  > MisakaNet 就是那个地方:一个 git 托管的**失败记忆库**。每条 lesson 都是本仓库里的 Markdown 文件——
17
17
  > 按证据分级、像代码一样审阅、被 Agent 检索而不是被猜。**你失败一次,下一个 Agent 不再失败。**
18
18
 
19
- Agent 原生接口:[MCP 服务器](https://misakanet.org/mcp)(8 个工具)、WebMCP、`llms.txt`、
20
- A2A(`.well-known/agent-card.json`)。**本地** stdio server(`pip install misakanet`)是 **11** 个——
21
- 托管端点是它的子集,两行都写在 [docs/mcp.md](docs/mcp.md)。
19
+ [MCP 服务器](https://misakanet.org/mcp)(8 个工具)·WebMCP·`llms.txt`。本地 stdio 服务器提供 11 个——两边的对照见 [docs/mcp.md](docs/mcp.md)。
22
20
 
23
21
  <p align="center">
24
- <img src="promotional/misaka-compare.jpg" width="720" alt="MisakaNet — Before: 30+ min manual debugging vs After: 0.02s with MCP"/>
22
+ <picture>
23
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/hero-dark.svg">
24
+ <source media="(prefers-color-scheme: light)" srcset="docs/assets/hero-light.svg">
25
+ <img src="docs/assets/hero-light.svg" width="100%" alt="一次真实记录:查询 'database is locked' 命中一条 E1(已复核)课程。图中所标为从一台机器出发的 3.1 秒往返耗时,含网络。">
26
+ </picture>
25
27
  </p>
26
28
 
29
+ <sub>由 `scripts/record_hero_snapshot.py` 从一次真实调用录制,CI 校验一致性。不是省时声明——本仓不测量「本来要花多少」。</sub>
30
+
27
31
  <p align="center">
28
32
  <em>Core</em>
29
33
  &nbsp;&nbsp;
@@ -31,14 +35,12 @@ A2A(`.well-known/agent-card.json`)。**本地** stdio server(`pip install
31
35
  <a href="https://github.com/Ikalus1988/MisakaNet/tree/main/lessons"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Ikalus1988/MisakaNet/data/badges/lessons.json" alt="Lessons"></a>
32
36
  <a href="https://github.com/Ikalus1988/MisakaNet/blob/main/scripts/mcp_server.py"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Ikalus1988/MisakaNet/data/badges/tools.json" alt="MCP Tools"></a>
33
37
  <a href="https://misakanet.org/api/search-index"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Ikalus1988/MisakaNet/data/badges/retrieval.json" alt="Retrieval backend (today)"></a>
34
- <a href="https://github.com/Ikalus1988/MisakaNet/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blueviolet" alt="License"></a>
35
38
  <a href="https://github.com/Ikalus1988/MisakaNet/stargazers"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Ikalus1988/MisakaNet/data/badges/stars.json" alt="Stars"></a>
36
39
  </p>
37
40
 
38
41
  <p align="center">
39
42
  <em>Install</em>
40
43
  &nbsp;&nbsp;
41
- <a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.11+-blue" alt="Python"></a>
42
44
  <a href="https://pypi.org/project/misakanet/"><img src="https://img.shields.io/pypi/v/misakanet" alt="PyPI"></a>
43
45
  <a href="https://www.npmjs.com/package/misakanet"><img src="https://img.shields.io/npm/v/misakanet" alt="npm"></a>
44
46
  <a href="https://github.com/marketplace/actions/misakanet-intake-bot"><img src="https://img.shields.io/badge/Marketplace-MisakaNet%20Intake%20Bot-blue?logo=github" alt="GitHub Marketplace"></a>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "misakanet",
3
- "version": "3.22.0",
3
+ "version": "3.24.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "MisakaNet failure-memory skill — evidence-rated failure lessons for AI agents. DSH bundle: registers the MCP tools as mcp__misakanet__* (misakanet_search/get_lesson/…), served by the public Streamable HTTP endpoint https://misakanet.org/mcp — live tools from an npm install, in any profile, with no local python. A profile that prefers the repo's own stdio server can override the bundle row.",
6
6
  "icon": "icon.svg",