Fix opening filler via lean tags and intro QC gate.
selftest / selftest (push) Canceled after 0s

Stop naming filler syllables in tags (they conditioned the model); default prefer_lean_tags; hard-fail intro_filler in QC; add plugins/ hook bus as thin microkernel extension point.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
swl
2026-10-10 12:49:25 +08:00
co-authored by Cursor
parent 0ab8d8ad4d
commit b1afe68f3c
20 changed files with 426 additions and 84 deletions
+17
View File
@@ -0,0 +1,17 @@
# plugins — 扩展目录(微内核外挂)
| 路径 | 用途 |
|------|------|
| `plugins/hooks.py` | 钩子总线(内核只 `emit`,不 import 业务插件) |
| `plugins/builtin/` | 内置插件(随仓发布) |
| `plugins/<name>.py` | 单文件插件 |
| `plugins/<name>/plugin.py` | 包式插件入口 |
## 钩子
- `before_build_tags`
- `after_assemble`(可返回 `{"tags","lyrics"}`)
- `before_qc_judge` / `after_qc_judge`(QC 子进程侧另见 qc_worker)
内核层:`core/`(引擎/路径/workflow)、`rules/`(铁律)、`cli/`(命令)。
业务扩展优先写插件,少改内核。