misakanet 3.23.0 → 3.25.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.23.0",
3
+ "version": "3.25.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;
@@ -57,11 +60,33 @@ Interfaces nativas para agentes: [servidor MCP](https://misakanet.org/mcp) (8 he
57
60
 
58
61
  ---
59
62
 
63
+ ## ¿Qué es MisakaNet?
64
+
65
+ **Memoria de fallos respaldada por git, para agentes de código con IA.** Aparece un error → el agente busca → aplica un arreglo que alguien ya verificó → si no encuentra nada, ese fallo se convierte en un intake, y el intake se convierte en una lección para el siguiente agente.
66
+
67
+ Cada lección es un archivo Markdown: se revisa como código, se clasifica por evidencia y se recupera con BM25 sobre la biblioteca estándar de Python. El endpoint MCP alojado añade un **respaldo semántico opcional** (bge-m3 + Vectorize) solo cuando BM25 no devuelve nada; `MISAKANET_SEMANTIC=0` lo desactiva. No hace falta una base de datos vectorial en local, ni un servidor, salvo que lo quieras.
68
+
69
+ | | |
70
+ |---|---|
71
+ | **Lecciones** | base de conocimiento de recuperación de fallos, abierta y auditable en `lessons/` |
72
+ | **Dominios** | rag · devops · fanuc · docker · feishu · mcp · network · ci · wsl · windows … |
73
+ | **Evidencia** | E0 intake → E1 revisada → E2 reproducida → E3 verificada en CI → **E4 reutilización observada por dos o más clientes distintos** |
74
+
75
+ | No es | Es |
76
+ |---|---|
77
+ | ❌ un sistema de memoria genérico | ✅ una capa de conocimiento para recuperarse de fallos |
78
+ | ❌ un runtime de agentes | ✅ una base de lecciones consultable |
79
+ | ❌ una base vectorial / pila RAG obligatoria | ✅ BM25 primero; respaldo semántico opcional y desactivable |
80
+ | ❌ un mercado de skills | ✅ conocimiento de depuración salido de sesiones reales |
81
+ | ❌ una plataforma de benchmark genérica | ✅ un corpus clasificado por evidencia; hay una corrida de 267 consultas publicada |
82
+
60
83
  ## Instalación (30 segundos)
61
84
 
62
85
  El objetivo de una instalación es una primera **búsqueda exitosa**, no la instalación. Nada de esto
63
86
  requiere una cuenta ni un token.
64
87
 
88
+ **Un solo comando cubre todos los entornos gestionados por el instalador:** `npx @misaka-net/misakanet-setup`.
89
+
65
90
  | Tu entorno | Comando |
66
91
  |---|---|
67
92
  | **DeepSeek Harness** | `dsh plugin --profile web add misakanet` — o escribe `misakanet` en **Add plugin** |
@@ -71,7 +96,7 @@ requiere una cuenta ni un token.
71
96
  | **Cualquier otro cliente MCP** | apúntalo a `https://misakanet.org/mcp` — endpoint público, lecturas anónimas |
72
97
  | **Tu propio código** | `pip install misakanet-core` (biblioteca) · `pip install misakanet` (servidor stdio) |
73
98
 
74
- La fila «gestionado por el instalador» es lo que `npx @misaka-net/misakanet-setup` escribe en la
99
+ La fila «gestionado por el instalador» es lo que escribe `npx @misaka-net/misakanet-setup` en la
75
100
  configuración de cada entorno. En el caso de DeepSeek Harness es **solo la mitad de las reglas**
76
101
  (`$DSH_HOME/AGENTS.md`): sus herramientas vienen del plugin de la fila anterior, que el instalador
77
102
  muestra como el único paso manual.
@@ -181,6 +206,28 @@ Son 267 consultas del pool de 300 entradas, no de las 650 completas; 33 entradas
181
206
  produjeron consulta, 2 peticiones semánticas fallaron, y el corpus de evaluación no se refrescó.
182
207
  → [informe completo](docs/benchmarks/retrieval-l1-267-2026-10-27.md)
183
208
 
209
+ ### Repetición 2026-12-02: las mismas 267 consultas contra el despliegue de hoy
210
+
211
+ | brazo | qué es | R@1 | R@3 | R@5 | no_match |
212
+ |---|---|---|---|---|---|
213
+ | **Endpoint en vivo** | el `https://misakanet.org/mcp` actual: BM25 + fallback semántico + fusión CJK, corpus de 1200 filas | **0.667** | **0.734** | **0.749** | **0.041** |
214
+ | **Léxico local** | el mismo handler sobre el corpus local, solo BM25 (sin Vectorize offline) | 0.356 | 0.382 | 0.393 | 0.506 |
215
+
216
+ Contra el mismo objetivo (`R@1 ≥ 0.46` **o** `no_match ≤ 0.50`): el endpoint en vivo **cumple ambos**;
217
+ el léxico local **no cumple ninguno**.
218
+
219
+ **Ese 0.667 no se puede comparar con el 0.446 de arriba.** Cambiaron tres cosas a la vez: (1) el corpus
220
+ pasa de un pool de evaluación de 300 entradas a 1200 filas; (2) el informe anterior tenía dos brazos
221
+ (alternaba `MISAKANET_SEMANTIC` porque controlaba un worker `misakanet-eval` que **nunca se commiteó**,
222
+ y en el worker en vivo esos dos interruptores son **de despliegue**, sin conmutador por petición, así
223
+ que solo se puede medir un brazo); (3) el ranking cambió tres veces (de `b` 0.75 a 0.5, las lecciones
224
+ sustituidas ya no superan a las vigentes, y llegó la fusión CJK).
225
+
226
+ Lo que sí dice: **el 2026-12-02, el endpoint desplegado acertó la lección correcta en el puesto 1 para
227
+ 0.667 de estas 267 consultas, y no devolvió nada para el 4.1%.**
228
+ Lo que no dice: cuánto mejoró la búsqueda desde octubre. Para eso hay que reconstruir primero la forma
229
+ «dos brazos + un corpus + un interruptor». → [informe de la repetición](docs/benchmarks/retrieval-l1-267-2026-12-02.md)
230
+
184
231
  ### Qué cambió desde entonces: la compuerta, no el modelo
185
232
 
186
233
  La tabla anterior mide una configuración que producción ya no usa. Hasta el 2026-10-28 la ruta
@@ -260,10 +307,15 @@ convierte en un issue rastreado.
260
307
  `E3`, no como prueba. La prueba es más silenciosa: tu recuperación cuenta, de forma anónima, como un
261
308
  cliente distinto más.
262
309
 
263
- **3. Traduce esta página.** El README se publica en tres idiomas; un cuarto está a un PR mergeado de
264
- distancia — las [tareas i18n](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n)
310
+ **3. Traduce esta página.** El README se publica en cuatro idiomas (English, 日本語, 简体中文, Español);
311
+ un quinto está a un PR mergeado de distancia — las [tareas i18n](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n)
265
312
  abiertas llevan los criterios de aceptación exactos.
266
313
 
314
+ **4. Cuéntanos dónde te dolió la última versión.** [El issue de prueba fijado](https://github.com/Ikalus1988/MisakaNet/issues/6077)
315
+ no tiene recompensa y siempre está al día: una pasada por cualquiera de las tres vías de arriba, el paso
316
+ en que se volvió lento o incorrecto, y la salida en bruto. El listón es una sola frase — *un
317
+ mantenedor puede reproducirlo* — y todo reporte que cumpla recibe un recibo que dice qué le pasó.
318
+
267
319
  **Lo que recibes a cambio: atribución.** Una lección cita el intake que la produjo (`source:`,
268
320
  `provenance.issue:`), y el pipeline puede emitir un recibo que nombra la lección y su nivel de
269
321
  evidencia.
@@ -370,7 +422,7 @@ honrado alguna vez es un PR mergeado.
370
422
  2. Busca antes de escribir: `python3 search_knowledge.py "your error here"`
371
423
  3. ¿No encontraste nada? [Comparte tu lección de fallo](https://github.com/Ikalus1988/MisakaNet/issues/new?template=lesson-feedback.yml) — cinco líneas bastan
372
424
 
373
- **El good first issue de este mes (26 oct – 26 nov):** [Trae un fallo real](https://github.com/Ikalus1988/MisakaNet/issues/3901) — sin código; el intake por MCP no necesita cuenta; te ayudamos con el formato.
425
+ **Un good first issue:** [la lista abierta ahora mismo](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) — cambia cada semana, así que coge el que esté abierto cuando llegues; sin código, el intake por MCP no necesita cuenta y te ayudamos con el formato.
374
426
 
375
427
  → [CONTRIBUTING.md](CONTRIBUTING.md) · [good first issues](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) · [código de conducta](CODE_OF_CONDUCT.md)
376
428
 
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;
@@ -56,10 +60,32 @@ mcp-name: io.github.Ikalus1988/misakanet
56
60
 
57
61
  ---
58
62
 
63
+ ## MisakaNet とは
64
+
65
+ **AI コーディングエージェントのための、git で管理された失敗の記憶。** エラーが出る → エージェントが検索する → 誰かがすでに検証した修正を適用する → 何も見つからなければ、その取りこぼしが intake になり、intake が次のエージェントのためのレッスンになる。
66
+
67
+ レッスンはすべて Markdown ファイルです。コードと同じようにレビューされ、証拠の強さで格付けされ、Python 標準ライブラリだけで動く BM25 で検索されます。ホスト版の MCP エンドポイントは、BM25 が何も返さなかったときにだけ**任意のセマンティック・フォールバック**(bge-m3 + Vectorize)を足します。`MISAKANET_SEMANTIC=0` で切れます。ローカルにベクトルDBは要りませんし、サーバーも、望まない限り不要です。
68
+
69
+ | | |
70
+ |---|---|
71
+ | **レッスン** | 障害復旧の知識ベース。`lessons/` 以下で公開・監査可能 |
72
+ | **ドメイン** | rag · devops · fanuc · docker · feishu · mcp · network · ci · wsl · windows … |
73
+ | **証拠** | E0 intake → E1 レビュー済み → E2 再現済み → E3 CI 検証済み → **E4 二つ以上の異なるクライアントによる再利用が観測された** |
74
+
75
+ | これは違う | これはこれ |
76
+ |---|---|
77
+ | ❌ 汎用のメモリシステム | ✅ 障害復旧に特化した知識レイヤー |
78
+ | ❌ エージェントのランタイム | ✅ 検索できるレッスンのデータベース |
79
+ | ❌ 必須のベクトルDB / RAG スタック | ✅ BM25 が先。セマンティックはホスト版で任意・無効化可能 |
80
+ | ❌ スキルのマーケットプレイス | ✅ 実際のセッションから出たデバッグ知識 |
81
+ | ❌ 汎用ベンチマーク基盤 | ✅ 証拠で格付けされたコーパス。267 クエリの検索結果を公開中 |
82
+
59
83
  ## インストール(30 秒)
60
84
 
61
85
  ゴールは「入れること」ではなく**最初の検索が成功すること**です。どれもアカウントもトークンも不要です。
62
86
 
87
+ **インストーラーが管理するホストはすべて 1 コマンドで入ります:** `npx @misaka-net/misakanet-setup`。
88
+
63
89
  | ホスト | コマンド |
64
90
  |---|---|
65
91
  | **DeepSeek Harness** | `dsh plugin --profile web add misakanet`、または **Add plugin** で `misakanet` |
@@ -70,6 +96,8 @@ mcp-name: io.github.Ikalus1988/misakanet
70
96
  | **自分のコードから** | `pip install misakanet-core`(ライブラリ)· `pip install misakanet`(stdio サーバー) |
71
97
 
72
98
  更新:`dsh plugin --profile web update misakanet@latest` · `npx @misaka-net/misakanet-setup@latest`。
99
+ DeepSeek Harness に対してインストーラーが書くのは**ルール側だけ**(`$DSH_HOME/AGENTS.md`)です:
100
+ ツールは上の行のプラグインから来ます。インストーラーはそれを唯一の手動ステップとして表示します。
73
101
  前提条件と「2 つのパッケージ」の罠:[使い方](#使い方)。
74
102
 
75
103
  ## 最初の 5 分
@@ -159,6 +187,25 @@ R@1 が解決したと宣言できるサンプルではありません。
159
187
  これは 300 レッスン中の 267 クエリで、650 全量ではありません。33 レッスンはクエリを生成できず、
160
188
  semantic 側は 2 件エラー、eval corpus も未更新です。→ [全文レポート](docs/benchmarks/retrieval-l1-267-2026-10-27.md)
161
189
 
190
+ ### 2026-12-02 の再実行:同じ 267 クエリを今日のデプロイで
191
+
192
+ | arm | 内容 | R@1 | R@3 | R@5 | no_match |
193
+ |---|---|---|---|---|---|
194
+ | **ライブエンドポイント** | 現在の `https://misakanet.org/mcp`:BM25 + semantic fallback + CJK fusion、1200 行 | **0.667** | **0.734** | **0.749** | **0.041** |
195
+ | **ローカル純詞法** | 同じ handler をローカルコーパスで、BM25 のみ(オフラインで Vectorize なし) | 0.356 | 0.382 | 0.393 | 0.506 |
196
+
197
+ 同じ目標(`R@1 ≥ 0.46` **または** `no_match ≤ 0.50`)に対して:ライブは**両方達成**、ローカル純詞法は**両方未達**。
198
+
199
+ **この 0.667 を上の 0.446 と比べてはいけません。** 三つが同時に変わっています:① コーパスが 300 レッスンの
200
+ eval プールから 1200 行へ;② 旧レポートは 2 アーム(`MISAKANET_SEMANTIC` を切り替えられたのは手元の
201
+ eval worker があったからで、その worker は**リポジトリに入っていない**。ライブではこの二つのスイッチは
202
+ **デプロイ単位**で、per-request の切替は無い。だから 1 アームしか測れない);③ ランキング実装が 3 回変わった
203
+ (`b` 0.75 → 0.5、superseded のレッスンが現行を上回らない、CJK fusion の導入)。
204
+
205
+ 言えること:**2026-12-02 時点で、ライブはこの 267 クエリのうち 0.667 を 1 位で正答し、4.1% は何も返さなかった。**
206
+ 言えないこと:10 月から検索がどれだけ良くなったか。それには「2 アーム + 同一コーパス + 1 つのスイッチ」の
207
+ 形をまず作り直す必要があります。→ [再実行レポート](docs/benchmarks/retrieval-l1-267-2026-12-02.md)
208
+
162
209
  ## 復唱ベンチマーク:何を測り、なぜ停止したか
163
210
 
164
211
  測ったのは 1 つの狭い問いだけです:**レッスンをモデルに渡したとき、そのレッスンのどれだけが返ってくるか。**
@@ -213,10 +260,16 @@ with_lesson hit rate (per run date)
213
260
  しません。本当の証明はもっと静かです:あなたの検索は「もう 1 つの別クライアントが使った」として匿名で
214
261
  数えられます。
215
262
 
216
- **3. このページを翻訳する。** README は 3 言語で出ています。4 つ目はマージされる PR 一つ分です——
217
- 公開中の [i18n タスク](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n)
263
+ **3. このページを翻訳する。** README は 4 言語(English、日本語、简体中文、Español)で出ています。
264
+ 5 つ目はマージされる PR 一つ分です——公開中の
265
+ [i18n タスク](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n)
218
266
  に受け入れ条件がそのまま書いてあります。
219
267
 
268
+ **4. 最新ビルドのどこで困ったかを教えてください。** [固定の試用 issue](https://github.com/Ikalus1988/MisakaNet/issues/6077)
269
+ は賞金なしで常に最新です:上の 3 つの入口のどれかを一度通し、遅かった/間違っていたステップと生の出力を
270
+ 書いてください。受け入れ基準は一文だけ——*メンテナが再現できること*——で、要件を満たした報告には
271
+ すべて、その後どうなったかを書いた受領証が届きます。
272
+
220
273
  **見返りは帰属**です:レッスンは生んだ intake を frontmatter に記します(`source:`、`provenance.issue:`)。
221
274
  パイプラインはレッスン名と証拠レベルを書いた受領証を出せます。
222
275
 
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;
@@ -56,11 +60,38 @@ ships **11** — the hosted endpoint is a subset; [docs/mcp.md](docs/mcp.md) has
56
60
 
57
61
  ---
58
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
+
59
88
  ## Install (30 seconds)
60
89
 
61
90
  The point of an install is a first **successful search**, not the install. None of these needs an
62
91
  account or a token.
63
92
 
93
+ **One command covers every installer-managed host:** `npx @misaka-net/misakanet-setup`.
94
+
64
95
  | Your host | Command |
65
96
  |---|---|
66
97
  | **DeepSeek Harness** | `dsh plugin --profile web add misakanet` — or type `misakanet` in **Add plugin** |
@@ -70,9 +101,8 @@ account or a token.
70
101
  | **Any other MCP client** | point it at `https://misakanet.org/mcp` — public endpoint, anonymous reads |
71
102
  | **Your own code** | `pip install misakanet-core` (library) · `pip install misakanet` (stdio server) |
72
103
 
73
- The installer-managed row is what `npx @misaka-net/misakanet-setup` writes into each host's config.
74
- For DeepSeek Harness that is the **rules half only** (`$DSH_HOME/AGENTS.md`): its tools come from the
75
- plugin in the row above, which the installer prints as the one manual step.
104
+ For DeepSeek Harness the installer writes the **rules half only** (`$DSH_HOME/AGENTS.md`): its tools
105
+ come from the plugin in the row above, which the installer prints as the one manual step.
76
106
 
77
107
  Updates: `dsh plugin --profile web update misakanet@latest`.
78
108
  Installer updates: `npx @misaka-net/misakanet-setup@latest`.
@@ -97,31 +127,6 @@ intake: the corpus saying it does not know this one yet.
97
127
  **3. Check the trust signal, not the tone.** `E0`–`E3` say how far a lesson was verified; `E4` is the
98
128
  one nobody can write or vote into.
99
129
 
100
- ## What is MisakaNet?
101
-
102
- **Git-backed failure memory for AI coding agents.** An error shows up → the agent searches → it
103
- applies a fix somebody already verified → if nothing matches, the miss becomes an intake, and the
104
- intake becomes a lesson for the next agent.
105
-
106
- Every lesson is a Markdown file: reviewed like code, graded by evidence, retrieved with BM25 over the
107
- Python standard library. The hosted MCP endpoint adds an **optional semantic fallback** (bge-m3 +
108
- Vectorize) only when BM25 returns no match; `MISAKANET_SEMANTIC=0` disables it. No vector database is
109
- required locally, and no server unless you want one.
110
-
111
- | | |
112
- |---|---|
113
- | **Lessons** | failure-recovery knowledge base, open and auditable under `lessons/` |
114
- | **Domains** | rag · devops · fanuc · docker · feishu · mcp · network · ci · wsl · windows … |
115
- | **Evidence** | E0 intake → E1 reviewed → E2 reproduced → E3 CI verified → **E4 observed reuse by two or more distinct clients** |
116
-
117
- | It is not | It is |
118
- |---|---|
119
- | ❌ a general memory system | ✅ a failure-recovery knowledge layer |
120
- | ❌ an agent runtime | ✅ a searchable lesson database |
121
- | ❌ a mandatory vector database / RAG stack | ✅ BM25 first; optional, disable-able semantic fallback on the hosted endpoint |
122
- | ❌ a skill marketplace | ✅ debugging knowledge from real sessions |
123
- | ❌ a general-purpose benchmark platform | ✅ a corpus graded by evidence; a 267-query retrieval run is published, and the older recitation benchmark is paused |
124
-
125
130
  ### What it answers — and what it does not
126
131
 
127
132
  ![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)
@@ -150,47 +155,23 @@ not to fail again. MisakaNet is only the second thing. → [FAQ](FAQ.md)
150
155
  per-file SHA-256 and an explicit license per file ([DATASET.md](DATASET.md)). The counts
151
156
  live in each version's `manifest.json`, not in prose.
152
157
 
153
- ## Retrieval benchmark: 267 queries, BM25 vs semantic fallback
154
-
155
- On 2026-10-27 the hosted endpoint's retrieval path was evaluated on **267 queries, one per lesson**
156
- generated by Workers AI 70B. Both arms used the same eval worker and corpus; only
157
- `MISAKANET_SEMANTIC` changed.
158
-
159
- | arm | R@1 | R@5 | no_match |
160
- |---|---|---|---|
161
- | BM25 | 0.210 | 0.225 | 0.712 |
162
- | semantic fallback | **0.446** | **0.472** | **0.453** |
158
+ ## Benchmarks (details, not headline)
163
159
 
164
- The fallback improves R@1 by **23.6 points** and cuts `no_match` by **25.9 points**. It does **not**
165
- meet the R@1 half of the target (`0.446 < 0.46`); `no_match` is within the target
166
- (`0.453 ≤ 0.50`). A 113-query subset reaches 0.460/0.460, while 250 reaches 0.404/0.504: the sample is
167
- large enough to show the fallback works, not large enough to call R@1 solved.
160
+ Measurements, each published with its artifact rather than as prose here:
168
161
 
169
- This is 267 queries from the 300-entry pool, not the full 650; 33 pool entries yielded no query, 2 semantic requests
170
- errored, and the eval corpus was not refreshed. → [full report](docs/benchmarks/retrieval-l1-267-2026-10-27.md)
171
-
172
- 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.
173
-
174
- ### What changed since: the gate, not the model
175
-
176
- The table above measures a configuration production no longer uses. Until 2026-10-28 the semantic
177
- path ran **only when BM25 returned nothing**, so a confident-but-wrong lexical hit suppressed it —
178
- 13 of the 20 recorded misses were exactly that. For queries containing CJK characters the two ranked
179
- lists are now **fused** (reciprocal-rank) instead of one gating the other: on 64 Chinese queries,
180
- `zh → en` moved 0.455 → **0.697** (n=33) and 0.214 → **0.500** on the low-overlap subset (n=14).
181
- `bge-m3` pure cosine already reached 0.636 and a `gemini` embedding 0.727 — most of the gap was the
182
- decision to consult the vector path, not the model. English queries are untouched (the fuse is gated
183
- on CJK) and sit at 15/20 against a floor of 16, where they were before.
184
- → [full report](docs/benchmarks/cjk-fusion-2026-10-28.md)
185
-
186
- ## Recitation benchmark (paused)
187
-
188
- One narrow question: **when you hand a model a lesson, how much of that lesson comes back?** The
189
- metric is `lesson_hit_rate` — the share of the injected lesson's commands reproduced in the answer.
190
- It measures the **recitation** half of RAG: necessary for MisakaNet to help, and it is **not evidence that search finds anything** (no retrieval runs; correctness is not checked).
191
-
192
- The run is **paused**; the last snapshot is [`docs/benchmarks/latest.json`](docs/benchmarks/latest.json).
193
- Setup, trend and per-run files: [recitation-trend.md](docs/benchmarks/recitation-trend.md).
162
+ - **Retrieval** — 267 queries over the hosted endpoint, BM25 vs the semantic fallback, run
163
+ 2026-10-27. The R@1 half of the target was **missed** (`0.446 < 0.46`); `no_match` was within it.
164
+ → [benchmarks/retrieval-2026-10-27.md](docs/benchmarks/retrieval-l1-267-2026-10-27.md)
165
+ - **Retrieval, replayed 2026-12-02** — the same 267 queries against today's deployment: **R@1 0.667,
166
+ `no_match` 0.041** (target met). **Not comparable to the 0.446 above**: that run had two arms over a
167
+ 300-lesson eval corpus, this is one arm over 1200 rows, and the ranking changed three times in
168
+ between. The BM25-only arm measured locally scores R@1 0.356 / `no_match` 0.506 — the gap is the
169
+ vector paths. → [benchmarks/retrieval-2026-12-02.md](docs/benchmarks/retrieval-l1-267-2026-12-02.md)
170
+ - **Recitation** — `lesson_hit_rate` is the share of the injected lesson's commands reproduced in the answer.
171
+ It measures the **recitation** half of RAG: necessary for MisakaNet to help, and it is
172
+ **not evidence that search finds anything** (no retrieval runs; correctness is not checked). The
173
+ run is **paused**; the last snapshot is [`docs/benchmarks/latest.json`](docs/benchmarks/latest.json).
174
+ → [recitation-trend.md](docs/benchmarks/recitation-trend.md)
194
175
 
195
176
  ## Take part
196
177
 
@@ -200,10 +181,16 @@ no account, no email, no token, five lines is enough. It becomes a tracked issue
200
181
  **2. Reuse a lesson and leave the trace.** A "this helped" vote is an `E3` hint, not proof. The proof
201
182
  is quieter: your retrieval is counted, anonymously, as one more distinct client.
202
183
 
203
- **3. Translate this page.** A fourth language is one merged PR away — the open
184
+ **3. Translate this page.** The README ships in four languages (English, 日本語, 简体中文, Español);
185
+ a fifth is one merged PR away — the open
204
186
  [i18n tasks](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n)
205
187
  carry the acceptance criteria.
206
188
 
189
+ **4. Tell us where the latest build hurt.** [The pinned trial issue](https://github.com/Ikalus1988/MisakaNet/issues/6077) is zero-bounty and
190
+ always current: one run through any of the three entry points above, the step where it got slow or
191
+ wrong, and the raw output. The acceptance bar is one sentence — *a maintainer can reproduce it* —
192
+ and every eligible report gets a receipt naming what happened to it.
193
+
207
194
  **What you get back: attribution.** A lesson cites the intake that produced it (`source:`,
208
195
  `provenance.issue:`), and the pipeline can emit a receipt naming the lesson and its evidence level.
209
196
 
@@ -300,9 +287,14 @@ jobs:
300
287
  2. Search before writing: `python3 search_knowledge.py "your error here"`
301
288
  3. Found nothing? [Share your failure lesson](https://github.com/Ikalus1988/MisakaNet/issues/new?template=lesson-feedback.yml) — five lines is enough
302
289
 
303
- **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.
290
+ **A good first issue:** [the open list right now](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) — it changes weekly, so take whatever is open when you arrive; no code needed, the MCP intake takes no account and we help with the format.
291
+
292
+ → [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)
304
293
 
305
- → [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)
294
+ > **Reading the issue list.** Most open issues are not to-do items: `intake` and `question` are
295
+ > anonymously reported failures waiting to become lessons, and `bounty` is generated from them. The
296
+ > ones that are work on this repository carry **`scope:repo`** — that filter is the complete list,
297
+ > by contract (`docs/maintainer/intake-triage.md` §2).
306
298
 
307
299
  ## Security
308
300
 
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;
@@ -54,10 +58,32 @@ A2A(`.well-known/agent-card.json`)。**本地** stdio server(`pip install
54
58
 
55
59
  ---
56
60
 
61
+ ## 什么是 MisakaNet?
62
+
63
+ **给 AI 编码 agent 用的、由 git 托管的失败记忆。** 报错出现 → agent 检索 → 套用别人已经验证过的修法 → 如果没有命中,这次落空就变成一条 intake,而 intake 会变成下一位 agent 的 lesson。
64
+
65
+ 每条 lesson 都是一个 Markdown 文件:像代码一样被评审,按证据强度分级,用只依赖 Python 标准库的 BM25 检索。托管版 MCP 端点只在 BM25 完全没有命中时才加一层**可选的语义兜底**(bge-m3 + Vectorize),`MISAKANET_SEMANTIC=0` 可关。本地不需要向量库,也不需要跑服务端——除非你想要。
66
+
67
+ | | |
68
+ |---|---|
69
+ | **课程** | 故障恢复知识库,在 `lessons/` 下公开、可审计 |
70
+ | **领域** | rag · devops · fanuc · docker · feishu · mcp · network · ci · wsl · windows …… |
71
+ | **证据** | E0 intake → E1 已评审 → E2 已复现 → E3 CI 已验证 → **E4 观测到两个以上不同客户端复用** |
72
+
73
+ | 它不是 | 它是 |
74
+ |---|---|
75
+ | ❌ 通用记忆系统 | ✅ 故障恢复的知识层 |
76
+ | ❌ agent 运行时 | ✅ 可检索的 lesson 数据库 |
77
+ | ❌ 强制的向量库 / RAG 栈 | ✅ 先 BM25;语义兜底在托管端,可关 |
78
+ | ❌ 技能市场 | ✅ 来自真实会话的排错知识 |
79
+ | ❌ 通用评测平台 | ✅ 按证据分级的语料,已发布一次 267 查询检索结果 |
80
+
57
81
  ## 安装(30 秒)
58
82
 
59
83
  安装的目标是**一次成功的检索**,不是"装完"。下面每一种都不需要账号或 token。
60
84
 
85
+ **一个命令覆盖所有由安装器管理的宿主:** `npx @misaka-net/misakanet-setup`。
86
+
61
87
  | 你的宿主 | 命令 |
62
88
  |---|---|
63
89
  | **DeepSeek Harness** | `dsh plugin --profile web add misakanet`,或在 **Add plugin** 里输入 `misakanet` |
@@ -68,6 +94,8 @@ A2A(`.well-known/agent-card.json`)。**本地** stdio server(`pip install
68
94
  | **自己的代码** | `pip install misakanet-core`(库)· `pip install misakanet`(stdio server) |
69
95
 
70
96
  更新:`dsh plugin --profile web update misakanet@latest` · `npx @misaka-net/misakanet-setup@latest`。
97
+ DeepSeek Harness 安装器只写**规则的那一半**(`$DSH_HOME/AGENTS.md`):它的工具来自上表里的插件,
98
+ 安装器会把它印成唯一的手动步骤。
71
99
  前置条件与"两个包"的坑:[怎么用](#怎么用)。
72
100
 
73
101
  ## 头五分钟
@@ -151,6 +179,24 @@ semantic fallback 把 R@1 提高 **23.6 个百分点**,把 `no_match` 降低 *
151
179
  这是 300 篇里的 267 条,不是完整 650;33 篇没有生成出 query,2 个 semantic 请求报错,eval corpus
152
180
  也没有刷新。→ [完整报告](docs/benchmarks/retrieval-l1-267-2026-10-27.md)
153
181
 
182
+ ### 2026-12-02 重跑:同一批 267 条,今天的部署
183
+
184
+ | arm | 是什么 | R@1 | R@3 | R@5 | no_match |
185
+ |---|---|---|---|---|---|
186
+ | **线上端点** | 当前的 `https://misakanet.org/mcp`:BM25 + semantic fallback + CJK fusion,1200 行语料 | **0.667** | **0.734** | **0.749** | **0.041** |
187
+ | **本地纯词法** | 同一个 handler 跑本地语料,只有 BM25(离线无 Vectorize) | 0.356 | 0.382 | 0.393 | 0.506 |
188
+
189
+ 对着同一个目标(`R@1 ≥ 0.46` **或** `no_match ≤ 0.50`):线上**两项都过了**;本地纯词法**两项都没过**。
190
+
191
+ **这一行 0.667 不能和上面那个 0.446 比大小。** 三件事同时变了:① 语料从 300 条的 eval 池子换成 1200 行;
192
+ ② 旧的报告有两条臂(能切 `MISAKANET_SEMANTIC`,因为手上有个 eval worker),那个 worker **从来没进过仓库**,
193
+ 线上这两个开关是**部署级**的、没有 per-request 开关,所以只能测一条臂;③ 排序实现改过三次
194
+ (`b` 0.75 → 0.5、被取代的 lesson 不再压过在讲的、CJK fusion 上线)。
195
+
196
+ 它能说的是:**2026-12-02 这天,线上把 267 条里的 0.667 条在第一名就答对了,4.1% 什么都没返回。**
197
+ 它不能说的是:检索比十月提高了多少。要回答那个,得先把“两条臂 + 同一份语料 + 一个开关”的形状重建出来。
198
+ → [重跑报告](docs/benchmarks/retrieval-l1-267-2026-12-02.md)
199
+
154
200
  ## 复述基准:它测了什么,为什么暂停了
155
201
 
156
202
  只测了一个很窄的问题:**把一条 lesson 塞给模型,它会复述回多少?** 指标是 `lesson_hit_rate`——被注入
@@ -201,10 +247,14 @@ with_lesson hit rate (per run date)
201
247
  **2. 复用一条 lesson,留下痕迹。** "这有用"这一票记为 `E3` 提示,不冒充证明。真正的证明更安静:
202
248
  你的检索会被匿名计为"又一个不同客户端用过这篇"。
203
249
 
204
- **3. 翻译这一页。** README 现在有三种语言;第四种只差一个合并的 PR——公开的
250
+ **3. 翻译这一页。** README 现在有四种语言(English、日本語、简体中文、Español);第五种只差一个合并的 PR——公开的
205
251
  [i18n 任务](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n)
206
252
  里写好了验收标准。
207
253
 
254
+ **4. 告诉我们最新这一版在哪里翩到了你。** [长期置顶的试用招募](https://github.com/Ikalus1988/MisakaNet/issues/6077)
255
+ 是零赏金、长期有效的:走一遍上面任意一条入口,记下变慢或出错的那一步,再贴上原始输出。
256
+ 验收标准只要一句话——**维护者能复现**——每一份合格的报告都会收到一张回执,写明它后来怎样了。
257
+
208
258
  **你得到的回报是署名**:lesson 在 frontmatter 里引用产生它的 intake(`source:`、`provenance.issue:`),
209
259
  管线可以出一张写明 lesson 与证据等级的回执。
210
260
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "misakanet",
3
- "version": "3.23.0",
3
+ "version": "3.25.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",
@@ -80,11 +80,12 @@
80
80
  "preview": "wrangler dev"
81
81
  },
82
82
  "devDependencies": {
83
- "wrangler": "^4.165.0"
83
+ "wrangler": "^4.168.0"
84
84
  },
85
85
  "overrides": {
86
86
  "sharp": "0.35.5",
87
- "undici": "7.30.1"
87
+ "undici": "7.30.1",
88
+ "ws": "8.23.1"
88
89
  },
89
90
  "main": "index.js",
90
91
  "exports": {