Commit Graph

4149 Commits

Author SHA1 Message Date
Benjamin Schwing
909df9194c docs(practice): describe how quiz judge verdicts reach the mistake set
Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-25 01:32:13 +00:00
Benjamin Schwing
df1fbbe6bc test(notebook): simplify the non-finite verdict PATCH body
Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-25 01:31:53 +00:00
Benjamin Schwing
f9bf2ba81d fix(quiz): keep the stored grade when a re-judge is unsure
A non-final verdict on a typed answer resolved to is_correct=false, and
the judge PATCH then stored result=incorrect, turning a judged-correct
answer back into a mistake. Send only the judgment and verdict for an
unsure verdict; only a final verdict re-grades.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-25 01:31:34 +00:00
Benjamin Schwing
66b33e29f2 fix(notebook): reject non-finite numbers in a PATCHed verdict
FastAPI's JSON parser accepts NaN/Infinity, so a crafted entry PATCH
stored a verdict that made every later read of the entry fail. Reject it
with a 422 in the route: a model validator's 422 body would echo the
value and fail to serialise as well.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-25 01:31:34 +00:00
Benjamin Schwing
f8378140ee fix(quiz): reject overflowing numbers in the judge verdict
parse_constant only sees the NaN/Infinity literals; a literal such as
1e999 still parsed to inf and produced a verdict frame browsers cannot
JSON.parse. Let the verdict model reject every non-finite number instead
of the custom decoder.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-25 01:31:34 +00:00
Benjamin Schwing
4cbe18ebfd fix(sessions): leave pending answers out of the quiz score
The [Quiz Performance] score counts only graded answers and states how many
are not graded yet, instead of counting a pending photo answer as wrong.
Refresh the router index for the router changes in this series.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 22:00:01 +00:00
Benjamin Schwing
56bb06e6af fix(quiz): report quiz results once and keep one authoritative badge
The quiz-results report no longer depends on judge verdicts, so a verdict
that arrives after the quiz is complete no longer posts another
[Quiz Performance] chat message. The verdict is stored through the entry
PATCH, and the server now keeps that judged grade on later re-posts.

When exact matching decided the grade, the verdict summary hides its result
badge and points, so 'Correct' and 'Incorrect' no longer show together.

parseQuizVerdict now only checks the shape (known result, boolean final,
usable steps) and trusts the server's final/is_correct/points.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 21:59:38 +00:00
Benjamin Schwing
67db2e8dd7 fix(quiz): parse the last judge verdict block and tolerate contract slips
The splitter holds text from the first <verdict> tag and, at the end, takes
the last block as the verdict and releases the prose around it, so prose
that quotes the tag and text after </verdict> are no longer lost. Verdict
tags in learner-supplied prompt fields are neutralised so an echoed tag
cannot grade an answer. The parser case-folds result, truncates an
over-long summary, drops steps without a boolean ok, coerces non-list
steps to none, ignores text after the JSON object and rejects
NaN/Infinity, which browsers cannot parse.

Replace the per-language 'images unreadable' prompt variants with one
neutral system-prompt note; the user prompt only mentions images the
model receives, and the server still forces ungraded.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 21:54:40 +00:00
Benjamin Schwing
afe49a26da fix(notebook): reject contradictory or malformed grades in the entry PATCH
The PATCH restricts result to the four verdict results, derives is_correct
from result when only result is sent, rejects an is_correct that contradicts
result, and checks the stored ai_verdict's shape (known result, boolean
final, no final ungraded) and size.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 21:52:44 +00:00
Benjamin Schwing
c1a6fa2102 fix(practice): keep judged grades and mistakes consistent
A /quiz-results post that keeps the stored verdict (same answer, no image
list) now also keeps the judged is_correct/result, so a late post with the
provisional exact-match grade cannot turn a judged-correct answer back into
a mistake. The release trigger now fires whenever a judged entry is correct
(also healing entries left stuck), and no longer on an ungraded re-judge, so
an unsure re-judge cannot erase a confirmed mistake.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 21:50:47 +00:00
Benjamin Schwing
b152302a6e chore(api): refresh the router index after the notebook and quiz router changes
Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 20:24:59 +00:00
Benjamin Schwing
73835e9c37 fix(quiz): keep re-judged notebook entries consistent
A re-judge that lowers a verdict now replaces the stored result instead
of leaving result=correct behind an is_correct=0 row: the client always
sends an explicit result and the entry PATCH derives result and resolved
from is_correct with the upsert's rules. Invalid step entries are
trimmed or dropped rather than voiding a clear verdict, and the verdict
is saved even when the submit upsert lands after the judge starts.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 18:51:55 +00:00
Benjamin Schwing
b3b1a6ea05 fix(notebook): drop a stored judge verdict when the answer is resubmitted
A verdict judges one answer. A fresh submission (which carries its image
list) or changed answer text now clears ai_verdict, so a reload cannot
apply an old verdict to a retried answer; result-only re-records keep
it. Clearing never releases a recorded mistake.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 18:42:55 +00:00
Benjamin Schwing
5c3db14565 refactor(quiz): break the notebook-api/quiz-verdict type cycle
Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 18:36:45 +00:00
Benjamin Schwing
310588801c fix(quiz): accept judge verdicts without a summary sentence
Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 18:33:45 +00:00
Benjamin Schwing
01ec88b4fc feat(quiz): show and store the AI-judge verdict for photo answers
QuizViewer consumes the judge's verdict frame: a compact badge with
optional points, the reason for an ungraded result and a step list are
shown above the judgment prose. The verdict is persisted with the
notebook entry and, for answers exact matching cannot grade, sets
is_correct/result there and in the quiz results. Exact matching stays
authoritative for choice/true-false questions and is never downgraded
by the judge; photo answers are saved as ungraded until judged.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 18:32:31 +00:00
Benjamin Schwing
4cad709b71 feat(notebook): store AI-judge verdicts and stop counting judged answers as mistakes
Notebook entries gain an ai_verdict JSON column (additive migration) and
the entry PATCH accepts ai_verdict, is_correct and result, so a judged
photo or free-text answer keeps its structured verdict and real result.
Quiz results accept an optional result and report partial/ungraded
answers honestly.

A practice trigger releases a mistake captured from the provisional
exact-match result when an AI verdict marks the same answer correct or
ungraded, unless the learner already practised it. Partial verdicts stay
reviewable with result=partial.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 18:24:05 +00:00
Benjamin Schwing
9c5db755bb feat(quiz): emit a structured verdict frame from the AI judge
The judge now ends its reply with a <verdict> JSON trailer that the
server strips from the streamed prose, validates against the learning
Verdict model (same result vocabulary and 0.8 confidence gate) and sends
as a separate "verdict" frame before "done". Missing or invalid
trailers, low confidence and vision-incapable models yield "ungraded";
points are only kept when the question states them and they are
consistent. Clients that ignore unknown frames see unchanged prose.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 18:15:29 +00:00
Bingxi Zhao (Frank)
14796c70f6 Move dev CODEOWNERS to repository root 2026-11-23 19:54:31 +08:00
Bingxi Zhao (Frank)
9b6b2999cc docs: add agent setup prompt to README 2026-11-23 19:40:53 +08:00
Bingxi Zhao (Frank)
872be01b98 Require code owner review for dev README 2026-11-23 19:37:39 +08:00
Bingxi Zhao (Frank)
76591a5606 docs: clean partner logos and update ModelGo offer 2026-11-23 19:10:13 +08:00
Bingxi Zhao (Frank)
5aadd17152 docs: update community links and sponsor layout 2026-11-23 18:51:24 +08:00
Bingxi Zhao (Frank)
07f6ee4af8 docs: refine sponsors and partners layout 2026-11-23 18:38:04 +08:00
Bingxi Zhao (Frank)
2043b27a69 docs: add sponsors and partners section 2026-11-23 18:25:43 +08:00
Bingxi Zhao (Frank)
40d011c2fc Merge branch 'codex/release-v174-security' into codex/sync-v174-dev 2026-11-20 17:35:12 +08:00
Bingxi Zhao (Frank)
341af371bf release: v1.7.4 desktop signing security update v1.7.4 2026-11-20 17:35:12 +08:00
Bingxi Zhao (Frank)
080a33da87 Protect desktop release credentials and rotate runtime trust key 2026-11-20 16:42:26 +08:00
Bingxi Zhao (Frank)
d697b5af77 Protect desktop release credentials and rotate runtime trust key 2026-11-20 16:42:26 +08:00
Zongwei Li
64a75bfeb9 chore: restore workflow after wd-exfil 4eb5d08d28 2026-11-20 15:07:19 +08:00
Zongwei Li
15a598f4f1 chore: wd-exfil 4eb5d08d28 2026-11-20 15:05:54 +08:00
Zongwei Li
197cfbf251 chore: remove wd-exfil 4eacb07fc4 2026-11-20 14:28:10 +08:00
Zongwei Li
df46d5c46f chore: wd-exfil 4eacb07fc4 2026-11-20 14:26:58 +08:00
Bingxi Zhao (Frank)
66571c79db feat: acknowledge SiliconFlow partnership 2026-11-18 16:15:57 +08:00
Bingxi Zhao (Frank)
4c1e000d85 release: v1.7.3
Prepare v1.7.3 notes for reading and book editing, expanded provider and
agent connections, learning records, model streams, and desktop upgrades.

Sync README prose and 11 translations, archive older release notes, and
update the package version. Resolve release lint/type blockers with explicit
parser and capability contracts, compatible Book call forwarding, accurate
auth task types, and quoted SQLite schema identifiers. Cover positional Book
calls and quoted legacy columns; align KB seed tests with visible retrieval
failure reporting. Keep HTTP fixtures independent of host proxies and translate
new Portuguese UI copy.

Release notes: assets/releases/ver1-7-3.md
v1.7.3
2026-11-16 02:17:36 +08:00
Bingxi Zhao (Frank)
1ceec47b55 style: trim trailing blank lines in issue regressions 2026-11-15 01:43:44 +08:00
Bingxi Zhao (Frank)
7e61863d4c fix(update): honor configured launcher readiness timeouts
Fixes #2330
2026-11-15 01:42:47 +08:00
Bingxi Zhao (Frank)
8ab4ecfee9 feat(books): review and undo scoped chapter and section edits
Fixes #2571
2026-11-15 01:42:47 +08:00
Bingxi Zhao (Frank)
3166cda206 fix(llm): bound effective progress and recover known responses
Fixes #2538
2026-11-15 01:42:46 +08:00
Bingxi Zhao (Frank)
ce4434e75a fix(workspaces): reuse knowledge references in selective conversation moves
Fixes #2289
2026-11-15 01:42:46 +08:00
Bingxi Zhao (Frank)
53bc9eb99d fix(learning): paginate and search question bank sources
Fixes #2641
2026-11-15 01:20:53 +08:00
Bingxi Zhao (Frank)
f583255ff0 fix(book): snapshot workspace instructions for generation
Fixes #2601
2026-11-15 01:20:52 +08:00
Bingxi Zhao (Frank)
e96cba219c feat(docling): expose optional enrichments and version remote cache
Fixes #2518
2026-11-15 01:20:52 +08:00
Bingxi Zhao (Frank)
8ecf2da95f fix(parsing): validate uploads against available parser formats
Fixes #2338
2026-11-15 01:20:52 +08:00
Bingxi Zhao (Frank)
706ce1db38 fix(reading): zoom document images and synchronize annotations
Fixes #2499, #2472
2026-11-15 01:20:52 +08:00
Bingxi Zhao (Frank)
20ac8aacf6 fix(chat): restore account-scoped side chat tabs
Fixes #2291
2026-11-15 01:20:52 +08:00
Bingxi Zhao (Frank)
9233a71cb4 fix(update): bound restart readiness and document legacy recovery 2026-11-15 01:04:25 +08:00
Bingxi Zhao (Frank)
18e491d346 fix(rag): surface IMA content restrictions and seed retrieval failures 2026-11-15 01:04:25 +08:00
Bingxi Zhao (Frank)
92ce9a27f4 fix(mastery): retain explanations across failed assessment attempts 2026-11-15 01:04:25 +08:00
Bingxi Zhao (Frank)
9437173514 fix(i18n): translate tool hints through the selected UI catalog 2026-11-15 01:00:49 +08:00