Commit Graph

145 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)
8bda305a43 Merge #2415 from maxsheng215-cyber 2026-11-06 01:56:26 +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
我也有友人账
7b5390ffe0 fix: retry mismatched mastery assessment quotes 2026-11-03 14:46:55 -08:00
x-labb
15c79b4356 fix(mastery): stop retrying a truncated tutoring memory on every turn 2026-11-02 18:44:34 +01:00
Bingxi Zhao
5f5f189c36 Merge pull request #2137 from nandanadileep/oss-harness/issue-2073
fix: Mastery Path re-poses a question the learner already answered correctly (fallback to the one source-verifiable item
2026-10-31 18:59:28 +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
Bingxi Zhao
13b63a44f6 Merge pull request #2210 from Rimcat-JA/fix/side-chat-blank-answer-by
fix(turn): accept a blank answer_by so "Ask Dito" side chats start
2026-10-31 17:50:31 +08:00
Bingxi Zhao (Frank)
083a9c9b72 fix(mastery): scope duplicate evidence to exact source and objective 2026-10-31 16:56:13 +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
Rimcat-JA
f5b288912d fix(turn): accept a blank answer_by so "Ask Dito" side chats start
The web client restates answer_by on every turn and sends "" when Dito
answers (sideChatTurnConfig, QuizFollowupContext). TurnRequest only
accepted an omitted value or partner:/subagent:, so every Dito side chat
failed with "Command does not match the turn protocol."

Read a blank value as None. The field stays in fields_set, so
to_payload() still carries it and the stored hand-off is cleared as the
client intends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 01:49:07 +09: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
nandanadileep
7c98b9c1b0 fix: refuse restating a correctly answered mastery 2026-10-28 23:36:28 +00:00
Frank-zhu2000
9a04808c33 fix: follow the OS theme until the user picks one
The first visit stored the detected palette and never listened for
prefers-color-scheme changes, so the theme stopped tracking the OS and
Settings had no System choice.

Do not write that fallback. Subscribe while the preference is missing or
"system", and add a System option in Appearance. New accounts default to
system so Apply does not freeze the snow palette.
2026-10-28 16:31:49 +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
995567d453 Merge pull request #2090 from nandanadileep/oss-harness/issue-2075
fix: Exact-substring quote check rejects faithful citations (line breaks/markup differ), so mastery_quiz fails repeatedl
2026-10-27 23:58:26 +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)
6cb3d53677 fix: preserve mathematical meaning when validating citations 2026-10-27 21:39:14 +08:00
Bingxi Zhao (Frank)
241fe27398 Merge remote-tracking branch 'origin/dev' into HEAD 2026-10-27 21:36:54 +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
nandanadileep
b824e69bb0 fix: normalize quote matching in mastery source 2026-10-27 06:41:59 +00:00
ZealerG
d82f3191c0 test(mastery): cover stable history request prefixes 2026-10-27 13:32:56 +08:00
Bingxi Zhao (Frank)
bf024d85d1 fix(ci): refresh preview route and locale contracts 2026-10-27 01:52:06 +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
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)
4fe1b5b24a fix(mastery): finish bounded memory and count preparation usage (#1920, #1926) 2026-10-19 03:44:51 +08:00
Bingxi Zhao (Frank)
e63bb09e6c fix(mastery): budget distinct pixels in grouped assessments (#1901) 2026-10-19 02:57:26 +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