Commit Graph

4137 Commits

Author SHA1 Message Date
Benjamin Schwing
dd790a5bd4 fix(learning): leave multi-part numeric mismatches to the judge
A deterministic "incorrect" for "a) 1.000; b) 260" against
"a) 1.000; b) 250", or for an answer that omits a part, removed the
partial credit the semantic judge can award per subtask. Only a single
short number now gets a final numeric "incorrect"; every other mismatch
falls through to the existing judge.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 21:55:19 +00:00
Benjamin Schwing
31dbcf036c fix(learning): keep uncertain numeric verdicts out of final grades
Second review round for numeric_equivalent and its web port:

- Without a proven separator convention, also try cross readings so
  "12.500" vs "12,500" is ambiguous rather than a final "incorrect".
- A percent answer that only matches a bare key at x100 ("50%" for
  "50") is left undecided, so "0.5%" is no longer accepted for "0.5".
- Apply the percent scale to an answer's decimals for fraction keys
  ("33.80%" no longer passes for "1/3").
- Never drop a unit word next to a currency ("5 kg" vs "5 €"), accept
  letters only in units (no "m²"), and cap denominators at 15 digits.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 18:43:14 +00:00
Benjamin Schwing
702b4854d1 fix(learning): harden numeric answer parsing
Review follow-ups for numeric_equivalent and its web port:

- Limit exponents to two digits; "1.5e10000000" made Fraction
  arithmetic block the event loop for about a minute.
- Treat a separator convention borrowed from the key as a preference,
  not a proof: "-12.500" for "-12500.00" is now ambiguous instead of a
  final "incorrect", since a comma-decimal learner may mean -12500.
- Accept "50%" for a bare "50" key, and two or more decimals that round
  to a fraction key ("0.333" for "1/3").
- Allow at most one trailing unit word; prose ("5 or six"), symbols
  ("3²"), single letters and magnitude words ("Tausend") are no longer
  dropped. Reject repeated signs ("--5").
- Use an absolute epsilon so large integer keys stay exact.
- Align Python and TS on ASCII digits, Unicode spaces and lower().

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 18:38:58 +00:00
Benjamin Schwing
7aa4a9bb78 fix(quiz): accept numeric notations in fill-in-blank checks
QuizViewer compared fill-in-blank answers with lowercase equality, so
"1.250,50" was marked wrong for "1250.50". Port numeric_equivalent to
web/lib/numeric-answer.ts and run it against the shared vector fixture.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 18:27:49 +00:00
Benjamin Schwing
90efa8054a fix(practice): check numeric fill-in-blank and short answers
check_answer returned None for every text answer, so a wrong number in
practice was never flagged. Grade fill_in_blank and short_answer entries
with numeric_equivalent when both sides are unambiguous numbers; text
answers stay self-assessed.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 18:27:49 +00:00
Benjamin Schwing
50059901b5 fix(learning): grade numeric answers deterministically
Short answers were fuzzy-matched with SequenceMatcher >= 0.85, so
"1250.60" passed for "1250.50", "-200" for "200" and "x=3, y=4" for
"x=3, y=5", while "1.250,50", "1250,50 €" and "1/8" were rejected for
"1250.50" / "0.125". Mastery's exact_verdict only compared casefolded
strings and left every number to an LLM verdict.

Add numeric_equivalent() to learning/grading.py: locale-aware decimal
and grouping separators with an explicit ambiguity rule, sign, currency,
percent, unit, fraction and scientific notation parsing, tolerance from
the key's written precision, and labelled/positional multi-part
comparison. grade_answer never fuzzy-matches a numeric key, and
exact_verdict returns a final verdict for numeric matches and for
unambiguous numeric mismatches on short questions.

Test vectors live in tests/fixtures/numeric_answers.json so the web port
can share them.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-24 18:27:48 +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
Bingxi Zhao (Frank)
719e2a8e30 fix(chat): inherit ready workspace knowledge bases for untouched sessions 2026-11-15 01:00:49 +08:00
Bingxi Zhao (Frank)
e81f9c866d fix(mastery): save a standalone reference answer for qualitative practice 2026-11-15 01:00:14 +08:00
Bingxi Zhao (Frank)
b266d1a14d fix(chat): preserve sent history snapshots for prompt cache reuse 2026-11-15 01:00:14 +08:00
Bingxi Zhao (Frank)
2ea5292f9f fix(visualize): inherit the application color scheme in HTML widgets
Local dev repairs for #2600.

Theme changes and explicit widget themes tested. Web typecheck, 1407 Node tests, eslint and i18n passed.
2026-11-15 00:50:31 +08:00
Bingxi Zhao (Frank)
d0fcddecac fix(mastery): keep mobile next step in normal document flow
Local dev repairs for #2681.

The existing narrow-grid fix is preserved; Next up no longer overlays content on phones. Web typecheck, 1407 Node tests, eslint and i18n passed.
2026-11-15 00:50:31 +08:00
Bingxi Zhao (Frank)
b9287142df fix(reading): retain the library picker during multiple selections
Local dev repairs for #2478.

UI interaction test verifies two selections, preserved search and no premature write. Web typecheck, 1407 Node tests, eslint and i18n passed.
2026-11-15 00:50:30 +08:00
Bingxi Zhao (Frank)
b46d9b5763 fix(mcp): reconnect after consent and refresh authorization status
Local dev repairs for #2586.

OAuth owner isolation and refresh-token stability verified. Hook polls until connected, refreshes on focus and stops on unmount. Python rechecks: 56 passed; UI batch: 25 passed. Web typecheck, 1407 Node tests, eslint and i18n passed.
2026-11-15 00:50:30 +08:00
Bingxi Zhao (Frank)
3a533c6c5f fix(auth): allow chat learners to record and play voice
Local dev repairs for #2437.

Guarded voice endpoints and negative permissions tested in the 375-pass first batch.
2026-11-15 00:50:30 +08:00
Bingxi Zhao (Frank)
30a7e43001 fix(memory): capture chat questions and rebuild missing L2 documents
Local dev repairs for #2294.

Memory, regeneration and decoding suite: 398 passed; regeneration does not duplicate trace events.
2026-11-15 00:50:30 +08:00
Bingxi Zhao (Frank)
ea517d2c59 fix(import): use locale hints for ambiguous legacy text encodings
Local dev repairs for #2132, #2133.

Turkish UI prefers Windows-1254 after UTF-8; strict explicit encoding is available for mixed legacy collections. Tested both upload bytes and file reads, short Turkish strings, GBK, GB18030 and Windows-1252. Encoding and memory suite: 398 passed.
2026-11-15 00:50:30 +08:00
Bingxi Zhao (Frank)
e885120cf6 fix(runtime): preserve live turns owned by another local process
Local dev repairs for #2168, #2631.

Real child-process recovery: 16 tests passed, including queued, running, waiting_input, process exit and PID reuse. Existing coordination/application tests: 65 passed, 10 optional Redis skips.
2026-11-15 00:50:30 +08:00
Bingxi Zhao (Frank)
800b11e9eb fix(desktop): discover host CLIs when launched from Finder
Local dev repairs for #2340. Regression checks cover reported symptoms and compatibility boundaries.
2026-11-15 00:44:10 +08:00