Commit Graph

251 Commits

Author SHA1 Message Date
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
Bingxi Zhao (Frank)
3a3cb277c1 fix(runtime): localize incomplete turn notices 2026-10-19 00:33:38 +08:00
Bingxi Zhao
29545b06f7 Merge pull request #1898 from georgelichen/fix/reading-locator-citations-backtick-split
fix(reading): unwrap backticked locator citations and split multi-locator links
2026-10-19 00:28:13 +08:00
Bingxi Zhao
078435778c Merge pull request #1854 from dajiaohuang/fix/obsidian-backlink-paths
fix(obsidian): resolve backlinks using canonical note paths
2026-10-19 00:23:37 +08:00
Bingxi Zhao (Frank)
399297e7f0 feat: preserve TypeScript engine migration and workspace updates 2026-10-18 23:09:10 +08:00
Bingxi Zhao (Frank)
857a82e74a feat(notes): add block notebooks with inline reviews and linked favorites
Add rich text and learning blocks, media uploads, page trees, and revisioned notebook storage. Present AI suggestions at their target blocks with durable accept and dismiss actions.

Unify saved outputs as Favorites with typed expandable blocks, stable source links, atomic batch insertion, nesting, dragging, and undo/redo.

Validation: 99 frontend tests and 99 backend tests pass in an isolated snapshot, along with TypeScript, scoped ESLint, dependency architecture, and locale parity checks.
2026-10-17 23:15:23 +08:00
wangkai
a40c6469fb fix(solve): keep the remaining plan in view after each step fold
solve_finish_step folds the finished step's tool chatter, and the same cut
dropped the solve_plan result and the step's own `next` pointer, leaving the
model only "[S1] ... — done.". Pass SolveSession.progress_text() as the
checkpoint state so every fold keeps the current plan (done / next / todo) in
view, including after a replan, and the persisted model turn carries it into
follow-up turns.

Closes #1968
2026-10-15 13:00:06 +08:00
zane-i
c04598bfae perf(explore-context): read the source ahead of the per-turn question
The exploring pre-pass re-read the same attached source on every turn -
39,627 characters, byte-identical across six turns - but put the
per-turn question first in the user message, so the longest shared
prefix with the previous request ended a handful of tokens in and the
whole re-read missed cache. That call ran 24,778 prompt tokens for
1,024 cached (4.1%), which is most of the misses in a turn.

Split the message the way the answer loop already splits everything
stable from everything per-turn: mode, manifest and the preloaded
source text go ahead of it and the question becomes the last message,
so the repeatable part is a byte-identical prefix across turns.

The preload stays capped (two sources, 120,000 characters) so a wide
manifest cannot spend the budget on its own; the document digest is
still the primary evidence path.

After both commits, on the same session: the exploration call runs
24,566 prompt tokens for 24,448 cached (99.5%), every call in the turn
reports first_change=append, and the turn reaches 94.0% cached, up
from 54.7%.
2026-10-13 23:47:21 +08:00
yepyhun
b8fccb92b2 fix(mastery): validate visual hints and select original source excerpts 2026-10-13 17:24:37 +02:00
yepyhun
755686264d fix(mastery): separate source inspection from assessment delivery 2026-10-13 13:49:35 +02:00
yepyhun
b081d97f64 fix(mastery): defer failed profile notice until response finish 2026-10-13 13:39:42 +02:00
yepyhun
3175b812e2 fix(mastery): make source delivery demand-driven and preserve partial teaching 2026-10-13 12:33:44 +02:00
yepyhun
a15c14bbf9 fix(mastery): describe concept cards as practice with separate gates 2026-10-13 12:31:39 +02:00