misakanet 3.21.0 → 3.23.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.21.0",
3
+ "version": "3.23.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
@@ -34,14 +34,12 @@ Interfaces nativas para agentes: [servidor MCP](https://misakanet.org/mcp) (8 he
34
34
  <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
35
  <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
36
  <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
37
  <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
38
  </p>
40
39
 
41
40
  <p align="center">
42
41
  <em>Instalación</em>
43
42
  &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
43
  <a href="https://pypi.org/project/misakanet/"><img src="https://img.shields.io/pypi/v/misakanet" alt="PyPI"></a>
46
44
  <a href="https://www.npmjs.com/package/misakanet"><img src="https://img.shields.io/npm/v/misakanet" alt="npm"></a>
47
45
  <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
@@ -33,14 +33,12 @@ mcp-name: io.github.Ikalus1988/misakanet
33
33
  <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
34
  <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
35
  <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
36
  <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
37
  </p>
39
38
 
40
39
  <p align="center">
41
40
  <em>Install</em>
42
41
  &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
42
  <a href="https://pypi.org/project/misakanet/"><img src="https://img.shields.io/pypi/v/misakanet" alt="PyPI"></a>
45
43
  <a href="https://www.npmjs.com/package/misakanet"><img src="https://img.shields.io/npm/v/misakanet" alt="npm"></a>
46
44
  <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
@@ -33,14 +33,12 @@ ships **11** — the hosted endpoint is a subset; [docs/mcp.md](docs/mcp.md) has
33
33
  <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
34
  <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
35
  <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
36
  <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
37
  </p>
39
38
 
40
39
  <p align="center">
41
40
  <em>Install</em>
42
41
  &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
42
  <a href="https://pypi.org/project/misakanet/"><img src="https://img.shields.io/pypi/v/misakanet" alt="PyPI"></a>
45
43
  <a href="https://www.npmjs.com/package/misakanet"><img src="https://img.shields.io/npm/v/misakanet" alt="npm"></a>
46
44
  <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>
@@ -141,14 +139,11 @@ not to fail again. MisakaNet is only the second thing. → [FAQ](FAQ.md)
141
139
  - **The numbers that move are badges**, on purpose: the Lessons badge renders
142
140
  `data/badges/lessons.json`, regenerated by `update-badges.yml`, so it can lag a run but is never a
143
141
  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
142
+ - **The top of the evidence ladder is observed, not declared.** `E4` needs two distinct clients
143
+ actually retrieving a lesson, so no lesson file can carry it: the corpus declares none
144
+ ([declared distribution](docs/trust-semantics.md), regenerated and checked by CI), and the number
145
+ that exists is the worker's daily reading of `search_signals`, published in the
148
146
  [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
147
  - **Reported gaps arrive faster than they are triaged.** The intake queue is the honest bottleneck.
153
148
  - **The corpus is downloadable and citable.** `data.misakanet.org` publishes a versioned
154
149
  bundle — the full corpus, the benchmark query set, and every run artifact — with a
@@ -178,97 +173,48 @@ Reproduce it yourself: the gate's 42 queries against the live endpoint, in a [Co
178
173
 
179
174
  ### What changed since: the gate, not the model
180
175
 
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.
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
185
 
186
- Measured on the live endpoint, 64 Chinese queries, 0 transport failures:
187
-
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
186
+ ## Recitation benchmark (paused)
200
187
 
201
188
  One narrow question: **when you hand a model a lesson, how much of that lesson comes back?** The
202
189
  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).
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).
211
191
 
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).
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).
244
194
 
245
195
  ## Take part
246
196
 
247
197
  **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.
198
+ no account, no email, no token, five lines is enough. It becomes a tracked issue.
249
199
 
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.
200
+ **2. Reuse a lesson and leave the trace.** A "this helped" vote is an `E3` hint, not proof. The proof
201
+ is quieter: your retrieval is counted, anonymously, as one more distinct client.
252
202
 
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.
203
+ **3. Translate this page.** A fourth language is one merged PR away — the open
204
+ [i18n tasks](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n)
205
+ carry the acceptance criteria.
256
206
 
257
207
  **What you get back: attribution.** A lesson cites the intake that produced it (`source:`,
258
208
  `provenance.issue:`), and the pipeline can emit a receipt naming the lesson and its evidence level.
259
209
 
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
210
  ## How to use it
265
211
 
266
212
  `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
213
+ command for every client. The supported clients, and what each one gets, are in
268
214
  [the install page](https://misakanet.org/install/). Verify an install with
269
215
  `npx @misaka-net/misakanet-setup --verify`; undo it with `--uninstall`.
270
216
  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.
217
+ Node ≥ 18 for the installer, Python ≥ 3.11 for the library and stdio server.
272
218
 
273
219
  ### Other channels
274
220
 
@@ -277,19 +223,21 @@ Node ≥ 18 for the installer, Python ≥ 3.11 for the library and stdio server.
277
223
  - **DeepSeek Harness** — `dsh plugin --profile web add misakanet`: `mcp__misakanet__*` tools plus the
278
224
  session panel. The rules half (the "search before you act" block) is written by the installer into
279
225
  `$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`.
226
+ - **The library in your own code** — `pip install misakanet-core`. The endpoint needs no client at
227
+ all: the `curl` in [Your first five minutes](#your-first-five-minutes) is the whole interface.
282
228
 
283
229
  ### The two-package trap (it cost a real install failure, #1849)
284
230
 
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`.
231
+ Five packages, and two of them are both called `misakanet` — that reuse is the trap. Read the
232
+ right-hand column, not the name:
233
+
234
+ | Name | What it actually is |
235
+ |---|---|
236
+ | `@misaka-net/misakanet-setup` (npm) | the **installer** — a `bin`, no plugin entry; use it to teach an assistant to search |
237
+ | `misakanet` (npm) | the **DSH / Codex plugin** — `dsh plugin --profile web add misakanet` |
238
+ | this repository (git) | a **Claude Code plugin marketplace** — `/plugin marketplace add Ikalus1988/MisakaNet` |
239
+ | `misakanet` (PyPI) | the stdio **MCP server** — `python3 -m misakanet.server` |
240
+ | `misakanet-core` (PyPI) | the **library** (stdlib BM25) — `from misakanet.search import search_lessons` |
293
241
 
294
242
  ### Use it as a GitHub Action
295
243
 
@@ -339,14 +287,14 @@ jobs:
339
287
  ## Contributing
340
288
 
341
289
  > **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))
290
+ >
291
+ > MisakaNet pays nothing and promises nothing. That is a statement about *this repository*, not about
292
+ > the issue you are looking at: some issues carry third-party **Opire** reward banners, added
293
+ > automatically by our own [`scripts/question_autopilot.py`](scripts/question_autopilot.py). We do
294
+ > **not administer** those payouts, and Opire is not part of this project. **Verify any reward offer
295
+ > independently** before planning work around it; the only thing this repository has ever honoured is
296
+ > a merged PR. → [the story](CONTRIBUTING.md#rewards) ·
297
+ > [#2903](https://github.com/Ikalus1988/MisakaNet/issues/2903)
350
298
 
351
299
  1. Check the checkout: `python3 scripts/misakanet_cli.py smoke`
352
300
  2. Search before writing: `python3 search_knowledge.py "your error here"`
package/README.zh-CN.md CHANGED
@@ -31,14 +31,12 @@ A2A(`.well-known/agent-card.json`)。**本地** stdio server(`pip install
31
31
  <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
32
  <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
33
  <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
34
  <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
35
  </p>
37
36
 
38
37
  <p align="center">
39
38
  <em>Install</em>
40
39
  &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
40
  <a href="https://pypi.org/project/misakanet/"><img src="https://img.shields.io/pypi/v/misakanet" alt="PyPI"></a>
43
41
  <a href="https://www.npmjs.com/package/misakanet"><img src="https://img.shields.io/npm/v/misakanet" alt="npm"></a>
44
42
  <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.21.0",
3
+ "version": "3.23.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",