108 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
784de5fa6d fix: align integrated mastery catalog and regression fixtures 2026-10-19 01:17:50 +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)
61719b18de Merge PR #1952: verify teaching delivery alongside durable feedback 2026-10-19 00:36:32 +08:00
Bingxi Zhao
5d108e54c1 Merge pull request #1820 from dajiaohuang/fix/learning-read-snapshots
fix(learning): keep aggregate reads in one SQLite snapshot
2026-10-19 00:19:22 +08:00
Bingxi Zhao
100b837886 Merge pull request #1805 from lorenzozanee/fix/qualitative-repair-persistence
test(learning): cover persisted qualitative repair turns
2026-10-15 03:16:09 +08:00
Bingxi Zhao
20a0af660b Merge branch 'dev' into fix/qualitative-repair-persistence 2026-10-15 02:05:01 +08:00
yepyhun
ccac56eec1 fix(mastery): bind semantic assessment to verified question evidence 2026-10-13 12:21:04 +02:00
yepyhun
cc079776c4 fix(mastery): bind teaching records to visible delivered explanation 2026-10-13 08:29:46 +02:00
XZH
cf37be0f5e fix(mastery): apply coordinated multi-module revisions atomically (#1929)
mastery_revise accepted one module per call, so a coordinated outline
adjustment across several modules cost one call, one transaction and one
full-outline snapshot echo per module. Add a modules=[{module_id,
rewrite, add, remove}, ...] form that validates every entry against a
shared id space, refuses the whole request on any rejection (unknown
ids, mastered waypoints, cross-module cycles), and commits all modules
in a single revision with one result payload. The single-module form
keeps its exact contract and payload shape.
2026-10-11 16:38:54 -07:00
dajiaohuang
30277b1798 Merge commit '6cf793bd868ba5ecbe64722936d4be8fab5a01df' into fix/learning-read-snapshots 2026-10-08 12:35:34 +08:00
dajiaohuang
80881c2500 fix(learning): read related projections in one snapshot 2026-10-08 12:35:34 +08:00
lorenzozanee
6dd1cb4dcb test(learning): cover persisted qualitative repair turns 2026-10-08 05:33:21 +08:00
Bingxi Zhao (Frank)
2350ea2dba feat(mastery): complete source-grounded visual practice and evidence (#1611)
Bind original visual sources and keys to supported tasks; verify accepted model pixels, preserve cues/assistance and canonical attempts, keep uncertainty ungraded, expose challenge/repair, and separate required visual evidence from generic text mastery.
2026-10-08 05:25:05 +08:00
KennySimpson
8dce2550b2 fix(mastery-path): allow editing legacy objective counts (#1790) 2026-10-07 20:20:29 +08:00
OrdoAbChao
a067db1116 fix(learning): prevent compounding SRS lapses during multi-turn qualitative repairs (#1781) (#1794) 2026-10-07 20:20:19 +08:00
XZH
cb00376260 test(mastery): resolve the factually-true label from the shuffled card
The repair-integrity test answered a hardcoded label, so whenever the
shuffle parked the wrong-key body on that same label the grader agreed
with the answer and the fixture flaked (CI Python 3.12 red while 3.11
and 3.13 stayed green on one commit). Read the rendered label of the
true statement off the persisted card instead — the registered wrong
key follows a different body and can never collide with it, so the
assertion is deterministic under any permutation.

Co-authored-by: multica-agent <github@multica.ai>
2026-10-03 13:23:40 -07:00
XZH
cb4c25db26 fix(mastery): shuffle choice options so the correct answer moves (#1691)
Models register the correct option first almost every time, and the
registration order is exactly what the answer card renders — so quiz
after quiz read A = correct.

Shuffle the options at mastery_quiz registration, after validation and
echo stripping: bodies stay unique, labels are re-issued positionally,
and the expected answer follows its body to the new label, so the
interactive card and the deterministic grader keep comparing the same
representation. Mastery-tools tests now assert through option bodies
instead of registration order.

Co-authored-by: multica-agent <github@multica.ai>
2026-10-03 03:33:54 -07:00
Bingxi Zhao (Frank)
4f2a897942 fix(mastery): honor explicit teach-first preference 2026-09-27 04:46:58 +08:00
Bingxi Zhao (Frank)
55490af65e Merge issue fixes into PR synthesis
Combine knowledge bootstrap coverage and preserve later progress-isolation tests, native notebook tooltip, and locale-aware tool-hint fallback. Regenerate frontend contracts and align test fixtures with merged APIs.
2026-09-23 12:06:19 +08:00
Bingxi Zhao (Frank)
a83683640e fix(learning): replay retention changes and late evidence consistently (#1541) 2026-09-23 11:14:02 +08:00
Bingxi Zhao (Frank)
924f8cd227 fix(learning): preserve latest assessment projections on retries (#1542) 2026-09-23 11:12:04 +08:00
Bingxi Zhao (Frank)
02cef7596a fix(learning): persist cross-surface assessment evidence safely (#1542) 2026-09-23 11:00:32 +08:00
Bingxi Zhao (Frank)
8b08debd7c fix(learning): make review timing and retention settings consistent (#1541) 2026-09-23 11:00:25 +08:00
Bingxi Zhao (Frank)
c8887f2a89 Resolve objective relations against final learning identities 2026-09-23 10:54:45 +08:00
Bingxi Zhao (Frank)
ba7efc5dbf Merge PR #1477 mastery objective relations 2026-09-23 10:34:25 +08:00
Bingxi Zhao (Frank)
24da87ae4e Merge PR #1368: account-scoped reading learning records 2026-09-23 10:27:53 +08:00
Bingxi Zhao (Frank)
1fe74df0ed fix(notebook): decouple evidence from chat sessions (#1519) 2026-09-21 14:50:02 +08:00
Bingxi Zhao (Frank)
a84a191861 fix(learning): make qualitative evidence replay idempotent 2026-09-21 12:50:01 +08:00
Bingxi Zhao (Frank)
0fff9246c0 fix(mastery): bind repairs to exact question evidence 2026-09-21 12:45:43 +08:00
Bingxi Zhao (Frank)
01da2757bd fix(learning): complete adaptive linked evidence flow 2026-09-21 10:35:22 +08:00
Bingxi Zhao (Frank)
087ec1e393 style(mastery): format state integrity changes 2026-09-21 10:24:25 +08:00
Gao-Chenkai
33fa74b5b6 fix(mastery): keep learning evidence bound to objective identity
Replace no longer reuses positional IDs for unrelated waypoints, invalid
questions can be voided or re-keyed, and defer advances the route without
faking mastery.

Fixes #1527

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-21 10:23:53 +08:00
Bingxi Zhao (Frank)
da856ad670 release: v1.6.9
Ship folder-based workspaces and data migration, daily practice, redesigned
provider and model settings, and streaming conversation improvements.
Synchronize README translations and document the archive/permanent-delete
upgrade behavior in assets/releases/ver1-6-9.md.

Reduce initial JavaScript by deduplicating English resources and loading
animation features after hydration. Keep the existing route size budgets.
Update regression fixtures and browser audits for scoped URLs and the new
settings and learning interfaces.
2026-09-21 02:30:40 +08:00
Bingxi Zhao (Frank)
20d2596f44 Merge branch 'codex/question-pr-1475' into codex/question-pr-1504 2026-09-19 16:13:22 +08:00
Bingxi Zhao (Frank)
d9bd49834b fix(learning): scope retry quality to the current question attempt 2026-09-19 16:12:57 +08:00
Gao-Chenkai
3eb831d108 feat(learning): persist cross-surface Focus-Check in Question Bank
Route Mastery, Book, and Immersive Reading attempts through one review record so reading quizzes are server-graded, retryable, and show the learner's pick next to the reference answer.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 21:21:15 +08:00
XZH
62032ad7e0 feat(learning): persist mastery prerequisites and topic-source links (#1476) 2026-09-15 08:13:39 -07:00
Gao-Chenkai
96b6cb89d3 Merge origin/dev into feat/issue-1471-adaptive-srs-mvp 2026-09-15 21:32:25 +08:00
Gao-Chenkai
a448e8743c fix: keep adaptive SRS UI compatible with base tests 2026-09-15 21:31:20 +08:00
Gao-Chenkai
21cd2bb23f feat: complete adaptive SRS persistence and review UI 2026-09-15 21:00:01 +08:00
Bingxi Zhao (Frank)
897fce52f2 fix(mastery): say which gate a number is being read against
Two surfaces reported quiz accuracy as if it were progress toward a gate that
never reads it.

`mastery_assess` aimed at a quantitative objective is refused outright, naming
the tools that do apply. The mirror direction was silent: posing a question at
a concept objective registered it like any other, so a tutor could work an
objective its questions cannot open and never be told. That direction stays
allowed — a question is a fair way to probe a concept before teaching it — but
it now says what grading the answer will and will not do.

The objective detail panel drew `mastery` as a progress bar for every gate.
On a qualitative one that is quiz accuracy, so an objective could show a full
bar next to an outline dot that was correctly still hollow. A boolean gate now
reads all-or-nothing, and says plainly that practice questions are not what
opens it.
2026-09-14 15:15:54 +08:00
Bingxi Zhao (Frank)
10f643dafe fix(mastery): stop sending the tutor back to quiz a gate no quiz can clear
A concept or design objective clears on `mastery_assess` alone: quiz accuracy
lands in `mastery_levels`, which the qualitative gate never reads. Grading a
correct answer on one of those objectives nevertheless told the tutor to teach
the gap and pose the next question with `mastery_quiz` — an instruction to
loop forever on an objective no question can open. The conversation then
narrates progress it never recorded, while the study screen's outline rail,
reading the aggregate correctly, never moves. That mismatch is what learners
report as "the outline doesn't refresh".

The reading the tutor had to work from could not have corrected it either: a
qualitative objective answered right reports mastery 1.0 against threshold
1.0 with `mastered` false, and `next` is the path-wide cursor, so it often
names some other objective entirely.

Grading now branches on the gate it just consulted — pointing at
`mastery_assess` for qualitative objectives and leaving the quantitative
advice untouched — and reports which gate the mastery number was read
against.
2026-09-14 15:04:57 +08:00
Bingxi Zhao (Frank)
2ad1d45d18 fix(mastery): stop a review session offering to start the topic it is teaching
Clicking "start review" opened a session whose first reply was a card
offering to start a session on that same topic. Clicking it opened another,
which offered the card again — one conversation per click, all on one topic,
some bound to no topic at all (#1412). Those conversations begin with nothing
to quiz against, so they answer in prose; that is the other half of the same
report (#1411).

The generator is a premise the tool states as fact. `mastery_new_session`
stays mounted inside a mastery session on purpose — sending the learner to a
*different* topic mid-course is a real thing to want — and its hand-off
instruction tells the model not to tutor the topic here, because "the mastery
tutor picks up on the other side". Inside that topic's own session there is no
other side, and nothing in the tool's result said so, so the model kept
proposing the trip it was already on.

The turn knows which topic it is tutoring; the tool did not. Binding it the
way the mastery tools already get `_mastery_path_id` lets the tool answer for
itself: a hand-off aimed at the topic this conversation *is* gets refused, with
the instruction to teach the lesson here. A hand-off to any other topic is
untouched, and so is `mastery_open_session` — returning to an older
conversation on the same topic is not a loop.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 02:02:53 +08:00
XZH
facbc020b9 feat(learner): add account-scoped reading learning records (#1109) 2026-09-11 07:18:02 -07:00
NoxsMedia
86aa5d0edf fix: restore formatting and deterministic CI checks 2026-09-07 10:20:03 +00:00
Bingxi Zhao (Frank)
04040a2c06 release: v1.6.5
Ship a content workspace you choose, one exec tool for every language,
Mastery Path modes that gate its tools, and Settings that grades
readiness instead of listing faults.

Release notes: assets/releases/ver1-6-5.md
2026-09-06 13:46:29 +08:00
evan188199-tech
db24303eb0 feat(learning): add visual learning board (#1194)
Co-authored-by: XZH <cto@xzh.ai>
2026-09-03 15:34:00 +08:00
Bingxi Zhao (Frank)
93df3d48b7 release: v1.6.4
Ship lighter isolated runtimes, richer Books and Mastery flows,
Reading/session polish, and explicit model API capabilities.

Release notes: assets/releases/ver1-6-4.md
2026-09-03 01:38:54 +08:00
Bingxi Zhao (Frank)
6e6e56aedb release: v1.6.3
Ship the breaking front- and back-end runtime and route refactor,
learner and guardian flows, grounded reading, knowledge and parser
updates, and recoverable long-running streams.

Release notes: assets/releases/ver1-6-3.md
2026-09-02 04:09:11 +08:00
Bingxi Zhao (Frank)
fc39543bc0 feat: integrate frontend backend and canonical routes 2026-09-01 22:24:29 +08:00