model: drop 'fix' status; mistakes now register as 'learning' (ADR-017)
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
### 模式 2 · 场景训练(`actions/02-scenario-training.md`)
|
||||
**我在"选材"上唯一介入的地方**:你给案例,或只给主题 / 想练的词 → 我从 `me/lang.db` 挑该练的词,**据此选一个让它们自然出现的场景**,产出提示词 → 你发给**豆包**(语音)。
|
||||
|
||||
- 预置 **4–6 个交流点**,可随时**反问**;待学词(`learning` / `fix`)织进提示词。
|
||||
- 预置 **4–6 个交流点**,可随时**反问**;待学词(`learning`)织进提示词。
|
||||
- 结束由豆包出报告(表现分 + 新词 + 语法错误)→ 回写 `me/lang.db`。
|
||||
- 自由闲聊变体也在该文件里。
|
||||
- **门槛**:听 + 说达到 **C+(≈B2)** 再上真人英语角。
|
||||
@@ -100,10 +100,9 @@
|
||||
|---|---|---|
|
||||
| `new` 未学 | 词表导入、还没在训练里出现过 | 待接触 |
|
||||
| `known` 已掌握 | **第一轮复述(v1)**就正确用出来 | 本来就会 |
|
||||
| `learning` 学习中 | v1 没用、看原文后**第二轮(v2)**才用出来 | 新学 |
|
||||
| `fix` 待修正 | 复述时用错(记 `✗ 错 → ✓ 对`) | 重点复习 |
|
||||
| `learning` 学习中 | v1 没用、看原文后**第二轮(v2)**才用出来;**用错 / 说错也记这里** | 重点练 |
|
||||
|
||||
> 用错优先:即使出现在 v1,只要用错就标 `fix`。复习环连续答对升 `known`,忘了退回 `learning`。
|
||||
> 用错/说错一律记 `learning`(不再单列「待修正」)。复习环连续答对升 `known`,忘了退回 `learning`。
|
||||
|
||||
### 词汇分三类(`items.kind`)
|
||||
|
||||
@@ -120,7 +119,7 @@
|
||||
| 错误 | 去哪 |
|
||||
|---|---|
|
||||
| **语法结构**(时态 / 冠词 / 单复数 / 介词 / 语序 / 主谓一致…) | `grammar_fixes` 表 —— **按问题登记**,同一问题只更新、不新增,同一词不重复登同类错 |
|
||||
| **词义 / 搭配**(用错词) | `items` 表,标 `status=fix` |
|
||||
| **词义 / 搭配**(用错词) | `items` 表,标 `status=learning`(正确形式另记在 `fix` 字段) |
|
||||
|
||||
一个词在语法上出错,**不**在 `items` 为它建行。
|
||||
|
||||
@@ -132,7 +131,7 @@
|
||||
actions/01 或 02 产出条目 JSON
|
||||
↓ actions/langdb.py ingest
|
||||
me/lang.db
|
||||
├─ items (status / first / fix)
|
||||
├─ items (status / first)
|
||||
├─ grammar_fixes (概括成 issue,去重,只更新)
|
||||
└─ skills / training_log / level_history
|
||||
↓ actions/build_dashboard.py
|
||||
@@ -265,6 +264,7 @@ python actions/pdf_extract.py "C:/path/材料.pdf" --slug issue3 --level B2
|
||||
- **ADR-014|SQLite 成为唯一事实来源**:`me/*.md` 已迁入 `me/lang.db` 并删除。写入走 `langdb.py ingest`(大模型只输出 JSON);可视化走 `build_dashboard.py`。`lang.db` 入库版本管理,`me/dashboard/` 为生成物不入 git。
|
||||
- **ADR-015|`materials/` 并入 `actions/`**:`actions/` 定位为**工作台**(指令 + 模板 + 工具 + 素材)。
|
||||
- **ADR-016|文档收敛到 README**:`CONTEXT.md` 并入本 README;本文件即领域模型 + 等级 + 决策的唯一文档。
|
||||
- **ADR-017|取消「待修正」状态**:不再单列 `fix` 状态;用错 / 说错一律记 `learning`(正确形式可另记在 `fix` 字段)。状态域为 `new / learning / known`。
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -44,4 +44,4 @@
|
||||
|
||||
## 说明
|
||||
- `01` 的复述训练是**综合训练**:一次覆盖听 / 说 / 读 / 写。
|
||||
- `02` 的待学词来自 `me/lang.db` 的 `items` 表(`status=learning` / `fix`)——**越练越准**:练错的词会优先被编进下一个场景。
|
||||
- `02` 的待学词来自 `me/lang.db` 的 `items` 表(`status=learning`)——**越练越准**:练错的词会优先被编进下一个场景。
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
收到 v1 后:
|
||||
1. 让我把材料原文贴给你(若材料是你生成的,此时才贴出原文;原文可能来自材料截图,已是文字)。
|
||||
2. 逐点对比 v1 与原文:我漏了什么、误解了什么、哪些表达可以升级。给出一张"差异清单"。
|
||||
同时**记下每个目标词汇的状态线索**:我在 v1 里就正确用出来的(→ known)、v1 没有而需要进 v2 的(→ learning)、以及我用错的(→ fix)。
|
||||
同时**记下每个目标词汇的状态线索**:我在 v1 里就正确用出来的(→ known)、v1 没有而需要进 v2 的(→ learning)、以及我用错的(→ learning)。
|
||||
3. 让我基于清单改出 v2(我的修订稿),发给你。
|
||||
然后停下,等我的 v2。
|
||||
|
||||
@@ -54,14 +54,14 @@
|
||||
4. 输出【新词汇 JSON】。对每个值得入库的词汇,先**判定我的掌握状态**:
|
||||
- 我在 **v1(第一轮复述)**就正确用出来了 → `status="known"`, `first="v1"`
|
||||
- v1 没有、看原文后 **v2** 才用出来 → `status="learning"`, `first="v2"`
|
||||
- 我复述时**用错了** → `status="fix"`,并在 `fix` 里写 `"✗ 错 → ✓ 对"`
|
||||
- 我复述时**用错了** → `status="learning"`,并在 `fix` 里写 `"✗ 错 → ✓ 对"`
|
||||
字段(多义词一律写成词块+上下文):
|
||||
{"id":"p-0000","item":"...","level":"B1","meaning":"...","context":"...","status":"known|learning|fix","first":"v1|v2","fix":"","tags":"...","source":"SESSION","added":"YYYY-MM-DD","hits":0,"streak":0,"next_review":"YYYY-MM-DD"}
|
||||
{"id":"p-0000","item":"...","level":"B1","meaning":"...","context":"...","status":"known|learning","first":"v1|v2","fix":"","tags":"...","source":"SESSION","added":"YYYY-MM-DD","hits":0,"streak":0,"next_review":"YYYY-MM-DD"}
|
||||
注明每条进哪个库:w- 单词 / p- 词组 / e- 表达(表达库多一个 "function" 字段)。
|
||||
注意:**只有词义/搭配错误**才放这里的 `fix`(如 `✗ look after → ✓ look for`)。
|
||||
5. 输出【语法修正 JSON】(**只收语法结构错误**:时态 / 冠词 / 单复数 / 介词 / 语序 / 主谓一致…):
|
||||
- 先**概括成一条语法问题**(不要照抄原句),同一个问题只算一条。
|
||||
- 字段:{"id":"g-0000","category":"时态","issue":"...","rule":"...","examples":"✗ 错 → ✓ 对","status":"fix","count":1,"first":"YYYY-MM-DD","last":"YYYY-MM-DD","next_review":"YYYY-MM-DD"}
|
||||
- 字段:{"id":"g-0000","category":"时态","issue":"...","rule":"...","examples":"✗ 错 → ✓ 对","status":"learning","count":1,"first":"YYYY-MM-DD","last":"YYYY-MM-DD","next_review":"YYYY-MM-DD"}
|
||||
- 同一个词不要重复登记同一类错;同一 issue 只列一次(我落盘时会更新已有行,不新建)。
|
||||
|
||||
现在从【阶段 0】开始。
|
||||
|
||||
@@ -36,9 +36,9 @@ Rules:
|
||||
|
||||
选词优先级(B):
|
||||
|
||||
1. `status=fix`(用错待修正)——最该练
|
||||
1. `status=learning`(新学 / 用错都算)——最该练
|
||||
2. `status=learning`(新学)——次之
|
||||
3. `grammar_fixes` 表里 `status=fix` 的语法问题
|
||||
3. `grammar_fixes` 表里 `status=learning` 的语法问题
|
||||
4. 刚结束 session 里标记的待复习项
|
||||
|
||||
**选场景的原则:让这些词自然出现,而不是硬塞。**
|
||||
@@ -87,10 +87,10 @@ In Chinese, give me a report:
|
||||
- Speaking score 1–5 + estimated CEFR; listening performance
|
||||
- My top 3 errors + correct versions
|
||||
- Which target phrases I used / missed
|
||||
- New items as JSON (mark my mastery state: I said it correctly on my own → status "known", first "v1"; I only said it after your hint → "learning", first "v2"; I got it wrong → "fix" with "✗ wrong → ✓ right"):
|
||||
{"id":"e-0000","item":"...","level":"B1","meaning":"...","function":"...","context":"...","status":"known|learning|fix","first":"v1|v2","fix":"","tags":"...","source":"SESSION","added":"YYYY-MM-DD","hits":0,"streak":0,"next_review":"YYYY-MM-DD"}
|
||||
- New items as JSON (mark my mastery state: I said it correctly on my own → status "known", first "v1"; I only said it after your hint → "learning", first "v2"; I got it wrong → "learning", putting "✗ wrong → ✓ right" in the fix field):
|
||||
{"id":"e-0000","item":"...","level":"B1","meaning":"...","function":"...","context":"...","status":"known|learning","first":"v1|v2","fix":"","tags":"...","source":"SESSION","added":"YYYY-MM-DD","hits":0,"streak":0,"next_review":"YYYY-MM-DD"}
|
||||
- Grammar mistakes: list them separately, each summarized as one issue (not the raw sentence; same issue only once):
|
||||
{"id":"g-0000","category":"...","issue":"...","rule":"...","examples":"✗ wrong → ✓ right","status":"fix","count":1,"first":"YYYY-MM-DD","last":"YYYY-MM-DD","next_review":"YYYY-MM-DD"}
|
||||
{"id":"g-0000","category":"...","issue":"...","rule":"...","examples":"✗ wrong → ✓ right","status":"learning","count":1,"first":"YYYY-MM-DD","last":"YYYY-MM-DD","next_review":"YYYY-MM-DD"}
|
||||
|
||||
Start by greeting me in character.
|
||||
```
|
||||
|
||||
@@ -28,10 +28,10 @@
|
||||
3. 批改后,为**每个条目**给出更新:
|
||||
- 命中(我用对了)→ streak+1,取下一档间隔,重算 next_review
|
||||
- 忘了/用错 → streak=0,间隔回到 1 天
|
||||
- **掌握状态迁移**:`learning`/`fix` 连续命中 2 次 → 升为 `known`;`known` 忘了 → 退回 `learning`;若我又用错 → 标 `fix` 并更新 `fix` 字段。
|
||||
- **掌握状态迁移**:`learning` 连续命中 2 次 → 升为 `known`;`known` 忘了 → 退回 `learning`。
|
||||
4. 最后输出 JSON 数组,含更新后的字段:
|
||||
- 词汇:{"id":"p-0001","item":"...","status":"known|learning|fix","fix":"","hits":N,"streak":N,"next_review":"YYYY-MM-DD"}
|
||||
- 语法:{"id":"g-0001","category":"...","issue":"...","status":"fix|known","count":N,"last":"YYYY-MM-DD","next_review":"YYYY-MM-DD"}
|
||||
- 词汇:{"id":"p-0001","item":"...","status":"known|learning","fix":"","hits":N,"streak":N,"next_review":"YYYY-MM-DD"}
|
||||
- 语法:{"id":"g-0001","category":"...","issue":"...","status":"learning|known","count":N,"last":"YYYY-MM-DD","next_review":"YYYY-MM-DD"}
|
||||
以及一句话【复习小结】。
|
||||
注意:语法问题**按 issue 汇总**,不要为同一问题开多行。
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
4. 更新训练日志:给出一行 Markdown 表格,格式:
|
||||
| 日期 | 类型 | 材料等级 | 听 | 说 | 读 | 写 | 备注 |
|
||||
5. 若某维等级变了,给出一行【等级变更历史】记录。
|
||||
6. 给出【掌握概览】文字说明(items 的 known / learning / fix + grammar_fixes 的 fix / known 计数)——具体数字由 `me/lang.db` 与仪表盘自动呈现,无需手填。
|
||||
6. 给出【掌握概览】文字说明(items 的 new / learning / known + grammar_fixes 的 learning / known 计数)——具体数字由 `me/lang.db` 与仪表盘自动呈现,无需手填。
|
||||
7. 把反复出现的语法问题汇总一下(按 issue,不重复),指出下周重点攻哪几条。
|
||||
|
||||
规则:
|
||||
|
||||
@@ -80,8 +80,8 @@ In Chinese, give me a report:
|
||||
- Speaking score 1–5 + estimated CEFR; listening performance
|
||||
- My top 3 errors + correct versions
|
||||
- Useful phrases for this scenario that I missed
|
||||
- New items as JSON (mark my mastery state: I said it correctly on my own → status "known", first "v1"; I only said it after your hint → "learning", first "v2"; I got it wrong → "fix" with "✗ wrong → ✓ right"):
|
||||
{"id":"e-0000","item":"...","level":"B1","meaning":"...","function":"...","context":"...","status":"known|learning|fix","first":"v1|v2","fix":"","tags":"...","source":"2026-10-14-airport-car-rental","added":"YYYY-MM-DD","hits":0,"streak":0,"next_review":"YYYY-MM-DD"}
|
||||
- New items as JSON (mark my mastery state: I said it correctly on my own → status "known", first "v1"; I only said it after your hint → "learning", first "v2"; I got it wrong → "learning", putting "✗ wrong → ✓ right" in the fix field):
|
||||
{"id":"e-0000","item":"...","level":"B1","meaning":"...","function":"...","context":"...","status":"known|learning","first":"v1|v2","fix":"","tags":"...","source":"2026-10-14-airport-car-rental","added":"YYYY-MM-DD","hits":0,"streak":0,"next_review":"YYYY-MM-DD"}
|
||||
|
||||
Start by greeting me in character at the counter.
|
||||
```
|
||||
|
||||
@@ -75,9 +75,9 @@ Tom came home late last night. He put his bag on the table and went to the kitch
|
||||
|
||||
```json
|
||||
[
|
||||
{"id":"g-0001","category":"时态","issue":"一般过去时用了动词原形","rule":"go→went, look→looked, check→checked","examples":"✗ he go → ✓ he went;✗ he look → ✓ he looked","status":"fix","count":1,"first":"2026-10-14","last":"2026-10-14","next_review":"2026-10-15"},
|
||||
{"id":"g-0002","category":"时态","issue":"过去完成时漏用","rule":"先发生的过去动作: had + p.p.","examples":"✗ he leave it → ✓ he had left them","status":"fix","count":1,"first":"2026-10-14","last":"2026-10-14","next_review":"2026-10-15"},
|
||||
{"id":"g-0003","category":"冠词","issue":"单数可数名词漏冠词","rule":"单数可数名词前加 a/the","examples":"✗ under sofa → ✓ under the sofa","status":"fix","count":1,"first":"2026-10-14","last":"2026-10-14","next_review":"2026-10-15"}
|
||||
{"id":"g-0001","category":"时态","issue":"一般过去时用了动词原形","rule":"go→went, look→looked, check→checked","examples":"✗ he go → ✓ he went;✗ he look → ✓ he looked","status":"learning","count":1,"first":"2026-10-14","last":"2026-10-14","next_review":"2026-10-15"},
|
||||
{"id":"g-0002","category":"时态","issue":"过去完成时漏用","rule":"先发生的过去动作: had + p.p.","examples":"✗ he leave it → ✓ he had left them","status":"learning","count":1,"first":"2026-10-14","last":"2026-10-14","next_review":"2026-10-15"},
|
||||
{"id":"g-0003","category":"冠词","issue":"单数可数名词漏冠词","rule":"单数可数名词前加 a/the","examples":"✗ under sofa → ✓ under the sofa","status":"learning","count":1,"first":"2026-10-14","last":"2026-10-14","next_review":"2026-10-15"}
|
||||
]
|
||||
```
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
- v1 就正确用出(→ `known`):
|
||||
- v2 才用出(→ `learning`):
|
||||
- 用错待修正(→ `fix`):
|
||||
- 用错 / 说错(→ `learning`):
|
||||
|
||||
## v2(修订稿)
|
||||
|
||||
|
||||
@@ -79,7 +79,6 @@ tr:last-child td{border-bottom:none}
|
||||
.badge{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:600}
|
||||
.b-known{background:rgba(46,204,113,.15);color:#2ecc71}
|
||||
.b-learning{background:rgba(241,196,15,.15);color:#f1c40f}
|
||||
.b-fix{background:rgba(231,76,60,.15);color:#e74c3c}
|
||||
.b-new{background:#2a2f3a;color:#9aa2b1}
|
||||
.fx{color:#ffb4a8}
|
||||
.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:10px}
|
||||
@@ -257,7 +256,6 @@ BODY_ITEMS = """
|
||||
<button class="chip" data-status="new">未学</button>
|
||||
<button class="chip" data-status="learning">学习中</button>
|
||||
<button class="chip" data-status="known">已掌握</button>
|
||||
<button class="chip" data-status="fix">待修正</button>
|
||||
<input id="q" placeholder="搜索 item / 释义 / 上下文…">
|
||||
<span id="count" class="muted"></span>
|
||||
</div>
|
||||
@@ -292,8 +290,8 @@ document.getElementById("overview").innerHTML = Object.keys(glyph).map(k => {
|
||||
const o = ov[k];
|
||||
const T = o.total;
|
||||
const parts = k === "grammar"
|
||||
? `待修正 ${o.fix}/${T} · 已克服 ${o.known||0}/${T}`
|
||||
: `未学 ${o.new||0}/${T} · 学习中 ${o.learning}/${T} · 已掌握 ${o.known}/${T} · 待修正 ${o.fix}/${T}`;
|
||||
? `未掌握 ${o.learning||0}/${T} · 已掌握 ${o.known||0}/${T}`
|
||||
: `未学 ${o.new||0}/${T} · 学习中 ${o.learning}/${T} · 已掌握 ${o.known}/${T}`;
|
||||
return `<div class="card"><div class="k">${glyph[k]}</div>
|
||||
<div class="v">${o.known||0}/${T}</div><div class="c">${parts}</div></div>`;
|
||||
}).join("");
|
||||
|
||||
+4
-4
@@ -94,7 +94,7 @@ def ingest(conn: sqlite3.Connection, payload: dict) -> dict[str, int]:
|
||||
[{
|
||||
"id": d.get("id", ""), "category": d.get("category", ""),
|
||||
"issue": d.get("issue", ""), "rule": d.get("rule", ""),
|
||||
"examples": d.get("examples", ""), "status": d.get("status", "fix"),
|
||||
"examples": d.get("examples", ""), "status": d.get("status", "learning"),
|
||||
"count": int(d.get("count") or 0), "first": d.get("first", ""),
|
||||
"last": d.get("last", ""), "next_review": d.get("next_review", ""),
|
||||
} for d in grammar if d.get("id")])
|
||||
@@ -166,7 +166,7 @@ def export(conn: sqlite3.Connection) -> dict:
|
||||
|
||||
def overview(conn: sqlite3.Connection) -> dict:
|
||||
def counts(where):
|
||||
c = {"new": 0, "known": 0, "learning": 0, "fix": 0}
|
||||
c = {"new": 0, "known": 0, "learning": 0}
|
||||
for r in conn.execute(
|
||||
f"SELECT status, COUNT(*) n FROM items WHERE {where} GROUP BY status"):
|
||||
if r["status"] in c:
|
||||
@@ -175,13 +175,13 @@ def overview(conn: sqlite3.Connection) -> dict:
|
||||
return c
|
||||
|
||||
g = conn.execute(
|
||||
"SELECT SUM(status='fix') f, SUM(status='known') k, COUNT(*) t FROM grammar_fixes"
|
||||
"SELECT SUM(status='learning') l, SUM(status='known') k, COUNT(*) t FROM grammar_fixes"
|
||||
).fetchone()
|
||||
return {
|
||||
"word": counts("kind='word'"),
|
||||
"phrase": counts("kind='phrase'"),
|
||||
"expression": counts("kind='expression'"),
|
||||
"grammar": {"fix": g["f"] or 0, "known": g["k"] or 0, "total": g["t"] or 0},
|
||||
"grammar": {"learning": g["l"] or 0, "known": g["k"] or 0, "total": g["t"] or 0},
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -110,8 +110,8 @@ In Chinese, give me a report:
|
||||
- Speaking score 1–5 + estimated CEFR; listening performance
|
||||
- My top 3 errors + correct versions
|
||||
- Useful phrases for this scenario that I missed
|
||||
- New items as JSON (mark my mastery state: I said it correctly on my own → status "known", first "v1"; I only said it after your hint → "learning", first "v2"; I got it wrong → "fix" with "✗ wrong → ✓ right"):
|
||||
{"id":"e-0000","item":"...","level":"B1","meaning":"...","function":"...","context":"...","status":"known|learning|fix","first":"v1|v2","fix":"","tags":"...","source":"2026-10-14-airport-car-rental","added":"YYYY-MM-DD","hits":0,"streak":0,"next_review":"YYYY-MM-DD"}
|
||||
- New items as JSON (mark my mastery state: I said it correctly on my own → status "known", first "v1"; I only said it after your hint → "learning", first "v2"; I got it wrong → "learning", putting "✗ wrong → ✓ right" in the fix field):
|
||||
{"id":"e-0000","item":"...","level":"B1","meaning":"...","function":"...","context":"...","status":"known|learning","first":"v1|v2","fix":"","tags":"...","source":"2026-10-14-airport-car-rental","added":"YYYY-MM-DD","hits":0,"streak":0,"next_review":"YYYY-MM-DD"}
|
||||
|
||||
Start by greeting me in character at the counter.
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user