Commit Graph

263 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
f7041045f3 Merge #2430 visual placeholder handling on the shared tool schema contract 2026-11-06 02:04:52 +08:00
Bingxi Zhao (Frank)
bff6530376 Merge #2325 from BenjiAvH 2026-11-06 01:56:40 +08:00
Bingxi Zhao (Frank)
8b14aa5ffe Merge #2402 from KKandLL-Forever 2026-11-06 01:56:25 +08:00
Bingxi Zhao (Frank)
7f933a25a0 Merge #2392 from x-labb 2026-11-06 01:56:25 +08:00
Bairan Zhang
a9705b3cc7 fix(mastery): read a source-less placeholder visual as absent
An endpoint that makes optional properties required forces the model to
send visual even for a text card, with every source left blank.
prepare_visual always rejects an unnamed source, so mastery_quiz failed
on every call and no answer card appeared (#2427).

Treat a visual whose sources name no knowledge base, asset, path, hash
or figure as absent, for single cards and group leaves, as #2170 does
for blank resume ids and empty groups. A visual naming any source still
goes through prepare_visual unchanged.
2026-11-04 20:38:45 +08:00
wangkai
26e3a4b52c fix: reject mismatched mastery card replay receipts 2026-11-03 10:53:45 +08:00
x-labb
15c79b4356 fix(mastery): stop retrying a truncated tutoring memory on every turn 2026-11-02 18:44:34 +01:00
Benjamin Schwing
1a00aa9b5c fix(mastery): continue with next after mastery_assess clears a gate
mastery_assess returned mastered and next but no instruction, unlike
mastery_grade. After a passing explanation the tutor tended to end the
turn on an announcement of the next topic, leaving the learner nothing
to answer.

Add an instruction to the final mastery_assess payload: when mastered,
confirm briefly and continue with next in the same reply (or say the
path is complete); when not mastered, explain the gap and ask again.
The clarification (non-final) result is unchanged. One matching sentence
in the en/zh mastery loop prompt.

Fixes #2323
2026-11-01 18:51:26 +00:00
LucianVane
c1fe11b899 fix(mastery): grade a clarification together with the explanation it completes
When mastery_assess asks for clarification, keep the explanation for that
objective in the session. The next assessment grades the earlier explanation
plus the clarification instead of the short reply alone.

Fixes #2249
2026-10-31 23:55:11 +08:00
Bingxi Zhao
e2625fcd57 Merge pull request #2170 from maxsheng215-cyber/fix/codex-optional-tool-arguments
fix: preserve optional Codex tool arguments for mastery quizzes
2026-10-31 18:28:02 +08:00
Eapp1e
de8b935df3 fix(capabilities): escape LIKE wildcards in the MarginNote store
search() and linked_objects() fed the caller's text straight into a LIKE
pattern without an ESCAPE clause, so "%" matched every object, "_" matched
every object with a character, and linked_objects("100%") also linked the
object that stores 1000.

Escape the value once and declare ESCAPE '\' on every clause, matching
the other LIKE call sites in the repository.

Signed-off-by: Eapp1e <163811520+Eapp1e@users.noreply.github.com>
2026-10-30 17:40:50 +00:00
我也有友人账
d24648d5ed fix: preserve optional Codex tool arguments for mastery quizzes 2026-10-29 11:42:59 -07:00
Bingxi Zhao (Frank)
e495fd6002 Merge origin/dev and reconcile creation contracts and replay tests 2026-10-29 18:13:47 +08:00
Bingxi Zhao (Frank)
01d7c0ed55 feat: add conversational creation drafts and refresh local dev UI 2026-10-29 18:11:52 +08:00
Bingxi Zhao (Frank)
d09a4d3a4f Merge pull request #2028: configurable review strategies 2026-10-29 01:04:33 +08:00
Bingxi Zhao (Frank)
9aadac3e3b merge: integrate current dev with modular installation 2026-10-28 01:23:48 +08:00
Bingxi Zhao (Frank)
fbab59acbf feat: modularize installation and enforce feature dependency boundaries 2026-10-28 01:02:29 +08:00
Bingxi Zhao
90cc9349be Merge pull request #2051 from cgycorey/fix/mastery-revise-inactive-arguments
fix(mastery): read idle placeholder arguments as omission (#2047)
2026-10-28 00:19:46 +08:00
Bingxi Zhao
be11014b94 Merge pull request #2085 from ZealerG/fix/mastery-history-prefix
fix(mastery): keep shared history prefixes stable for prompt caching
2026-10-27 23:59:53 +08:00
Bingxi Zhao
c663700aeb Merge pull request #2000 from drakeo338/claude/1993-fix
fix(mastery): show the picked option's text next to its letter in the grade seed
2026-10-27 23:57:51 +08:00
Bingxi Zhao
b0ae5ede22 Merge pull request #2016 from KKandLL-Forever/fix/solve-plan-respects-replan-budget
fix(solve): refuse a second solve_plan so replans stay budgeted
2026-10-27 23:57:12 +08:00
Bingxi Zhao (Frank)
ef04a48a92 Merge remote-tracking branch 'origin/dev' into HEAD 2026-10-27 22:05:45 +08:00
Bingxi Zhao (Frank)
2e1972f4b1 Merge remote-tracking branch 'origin/dev' into HEAD 2026-10-27 21:41:28 +08:00
Bingxi Zhao (Frank)
e9968b8e2d Merge remote-tracking branch 'origin/dev' into HEAD 2026-10-27 21:41:12 +08:00
Bingxi Zhao (Frank)
aa33202c07 Merge remote-tracking branch 'origin/dev' into HEAD 2026-10-27 21:40:05 +08:00
Bingxi Zhao (Frank)
4205da1651 Merge remote-tracking branch 'origin/dev' into HEAD 2026-10-27 21:39:47 +08:00
Bingxi Zhao (Frank)
e347c0c2e0 fix: preserve tutoring replies and stabilize preview runtime
Keep learner-facing explanations visible across finish checks, persistence, and replay. Remove mastery prose heuristics and prioritize learner objections.

Coordinate service shutdown and descendant cleanup, and preserve video lesson identity and playable results across chat completion and reload.
2026-10-27 17:58:46 +08:00
ZealerG
75d73c24bd fix(mastery): keep shared history prefixes stable for prompt caching 2026-10-27 13:29:03 +08:00
Bingxi Zhao (Frank)
6bbcc00c55 Merge dev into preview, preserving preview features
Integrate dev fixes with preview's Python/TypeScript schedulers, chat queue, learning navigation, and live turn persistence.
2026-10-27 01:16:58 +08:00
Bingxi Zhao (Frank)
28c11e2ae8 feat: update notes, chat interactions and workspace UI on preview
Remove course pages, APIs and the course_study capability. Add anchored note
threads and reviewed learning-block generation, queued and withdrawable chat
messages, quote attachments, side chats, and the calendar/favorites/navigation
updates.

Keep preview's existing backend architecture. Wire the new features through
its Python application and existing chat engine, retain legacy selected-text
requests, persist mid-turn messages in replay, and restore note context when
regenerating. Leave stored user data intact.

Validate frontend contracts, dependency boundaries, types, 1290 node tests,
840 rendered tests, lint, localization and the production build. Exercise
session/notes/API regressions, 53 chat-engine tests and 20 Python/native
integration tests with isolated runtime data.
2026-10-26 22:13:34 +08:00
cgycorey
768f81c2c5 fix(mastery): read idle placeholder arguments as omission (#2047)
A provider that normalises optional properties into required ones leaves the
model no way to leave a field out, so a preview arrived with `preview_id: 0`,
`module_order: []`, `module_id: ""` and empty edit arrays beside the edits it
did intend. Every one of those was read as a real instruction: the preview
answered "Use preview_id only with action commit." before planning, an empty
`module_order` asked for a reorder no path can satisfy, and a commit carrying
blank edit fields was refused for edits it never made. A blank `action` hit the
same wall from the other side.

Read the revision arguments as omission at the tool boundary, one level deep —
a nested `prerequisite_ids: []` still clears a relationship — and read a blank
`action` as the omitted action, which is the documented direct-revision path.
An empty `module_order` now means "keep the order unchanged": no path can
satisfy an empty order, and this replaces the earlier refusal of `[]` alone,
which a required-field provider sends on every content-only preview. Advertise
`null` plus a minimum of 1 for `preview_id`, so a strict provider has a genuine
absence value instead of a placeholder.

Five new regressions in tests/capabilities/test_mastery_reviewed_revision.py
went red first. A 19-case adversarial matrix over both branches loosens only
the placeholder forms: commit with real edits or a real order, a stray positive
preview id, an unknown action and blank entries nested inside `modules` are
refused identically before and after. 29 pass in the file; 1733 across the
capabilities, learning, tools and agentic-guard suites.
2026-10-25 20:21:37 +00:00
AleFlyX
8f9fb42b6b fix(mastery): 阻止历史回忆递归归档膨胀
变更:
- 将归档与历史回放中的历史读取正文替换为可回查引用,保留原始存储记录
- 为精通之路历史归档增加每页 16000 字符的分页读取
- 增加多轮重复读取、旧大记录兼容和分页还原的回归测试

验证:
- 216 项相关 pytest 测试:PASS
- 修改文件的 Ruff lint 与格式检查:PASS
- scripts/check_architecture.py:PASS
- git diff --check:PASS

Fixes #2032
2026-10-23 12:44:33 +08:00
XZH
aa7d54bd7b feat(learning): add mastery review strategies (#1908)
Mastery paths previously scheduled with one fixed interval template per knowledge type, which did not fit exam cramming, language drilling, science review, or learner-specific pacing.

Add four built-in strategy presets and custom per-round interval templates with validated persistence, CRUD, duplication, and path bindings. Bound paths keep a frozen strategy snapshot, replay durable evidence when switching, and mastery tools follow the bound path scheduler.

Expose strategy management in the mastery review trail, including custom interval editing and loading, empty, busy, invalid-input, and error states. Regenerate the OpenAPI contract and add focused backend and web regression coverage. Legacy paths without a binding continue to use the previous default scheduler.
2026-10-22 18:37:54 -07:00
wangkai
7d3bd75f4c fix(solve): refuse a second solve_plan so replans stay budgeted
SolvePlanTool always replaced the session's plan, so calling it again
wiped finished steps and skipped the max_replans gate, which only
solve_replan consults. Once a turn has a plan, solve_plan now returns
plan_exists with the current progress and points the model at
solve_replan; the session is left untouched.

Closes #2015
2026-10-21 23:46:06 +08:00
drakeo338
05f302e355 fix(mastery): name the picked option next to its letter in the grade seed (#1993)
The card can show the options in a different order than the tutor
registered them, so the bare letter in the "(they answered "D")" seed
pointed at a different option in the tutor's context than on the
learner's screen.

build_grade_result now carries the picked option's text as learner_body,
and the loop's grade seed appends it to the letter.
2026-10-20 03:21:29 +00:00
Bingxi Zhao (Frank)
a31d82624c release: v1.6.15
Document Guided Learning improvements, chat and parsing recovery, retrieval comparisons, and native Gemini speech in assets/releases/ver1-6-15.md.

Synchronize README prose and 11 translations, archive older release notes, and bump the version. Resolve release-gate typing diagnostics, a prompt-only Bandit false positive, and SVG formatting.
2026-10-19 04:12:56 +08:00
Bingxi Zhao (Frank)
0aa12fdfb6 fix(mastery): explain failed source repair in the session language (#1902) 2026-10-19 03:44:57 +08:00
Bingxi Zhao (Frank)
4fe1b5b24a fix(mastery): finish bounded memory and count preparation usage (#1920, #1926) 2026-10-19 03:44:51 +08:00
Bingxi Zhao (Frank)
c49d130d5c fix(mastery): stream localized lesson preparation progress (#1902) 2026-10-19 03:29:21 +08:00
Bingxi Zhao (Frank)
784de5fa6d fix: align integrated mastery catalog and regression fixtures 2026-10-19 01:17:50 +08:00
Bingxi Zhao (Frank)
8b73efbaeb Merge PR #1958: stabilize cached prefixes with bounded sources and complete summary accounting 2026-10-19 00:59:30 +08:00
Bingxi Zhao (Frank)
1497994c9f Merge PR #1938: bound tutoring history and retain exact recall when condensation fails 2026-10-19 00:57:48 +08:00
Bingxi Zhao (Frank)
9aae961412 Merge PR #1957: separate private source evidence from explicit public presentation 2026-10-19 00:53:44 +08:00
Bingxi Zhao (Frank)
3196b6d792 Merge PR #1954: prepare source evidence through a generic capability prerequisite contract 2026-10-19 00:48:43 +08:00
Bingxi Zhao (Frank)
0fd8dc8384 Merge PR #1953: source-bound assessment with portable lexical page lookup 2026-10-19 00:43:33 +08:00
Bingxi Zhao (Frank)
59cdd81170 Merge PR #1943: preserve grouped questions through reviewed outline revisions 2026-10-19 00:40:44 +08:00
Bingxi Zhao (Frank)
ba899ffc68 Merge PR #1939: review outline changes before atomic commit 2026-10-19 00:38:00 +08:00
Bingxi Zhao (Frank)
61719b18de Merge PR #1952: verify teaching delivery alongside durable feedback 2026-10-19 00:36:32 +08:00
Bingxi Zhao (Frank)
9ca096b456 fix(mastery): localize learner profile persistence notices 2026-10-19 00:35:33 +08:00
Bingxi Zhao
f976208e2c Merge pull request #1936 from yepyhun/contrib/mastery-teaching-guide
feat(mastery): retain scoped teaching feedback and strategy outcomes
2026-10-19 00:35:25 +08:00