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>
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>
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>
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>
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>
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>
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
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.
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.
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.
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.
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.