SkillPedia Skills Encyclopedia
中文 EN

技能 2026-10-02 16:36 UTC

memoose

由提交人 AndrewNgo-ini 提交,主要更新类型为:常规更新与维护。提交说明:decider: a local decision model gates capture and mid-turn advisor reviews and routes recall。对项目做了常规维护与小幅调整。

AndrewNgo-ini cef964f AndrewNgo-ini/memoose

Commit提交信息原文

decider: a local decision model gates capture and mid-turn advisor reviews and routes recall

memoose.decider runs Laya multilingual (mmBERT-base and a decision head, Apache-2.0) from its
ONNX export on onnxruntime: one forward pass, calibrated probabilities, no API key (ADR 0008).
- capture: a slice the model calls transient never starts the keeper.
- advise: a mid-turn step it calls safe is deferred to the end-of-turn review, which is never
  gated; the cursor stays, so nothing is dropped.
- route: asked only when no regex rule matched; below 0.5 recall keeps hybrid.
MEMOOSE_DECIDER=on (default) | shadow | off. Shadow records the answer next to what happened
(the keeper's NOTHING, whether the advisor advised, the rules' mode). A model that cannot run
leaves the heuristic deciding and an error row in ~/.memoose/decisions.jsonl;
`memoose decide --report` shows runs, errors and agreement per decision.

onnxruntime and tokenizers are core dependencies. `memoose install` fetches the model (~0.65 GB,
--no-model skips it), as does `memoose decide --fetch`; `memoose status` says whether it is there.
Hooks stay stdlib and call `memoose decide`.

Only three decisions: a zero-shot probe got the advisor gate 4/4, routing 8/8 and the capture
gate 7/8, but same-entity 4/8, functional relations 2/6 and triple comparison 0/4.

Recall routes once for the project and user Datasets, and an explicit --mode skips the router.
Release 0.6.0. 119 tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>