Repository navigation
fix(mastery): protect answer sources and finish repaired assessment delivery - #1957
Merged
pancacake merged 11 commits intoOct 18, 2026
Merged
Conversation
This was referenced Oct 13, 2026
alvinets
pushed a commit
to alvinets/DeepTutor
that referenced
this pull request
Nov 8, 2026
…ublic presentation
alvinets
pushed a commit
to alvinets/DeepTutor
that referenced
this pull request
Nov 8, 2026
…ublic presentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope and review order
Addresses the connected assessment workflow in #1955. Stacked on #1954
(
ca006fbf), which depends on #1953 and #1943. The incremental review range isca006fbf...HEAD; inherited commits should be reviewed in their original PRs.The separate runtime outcome fix is #1956. Please coordinate integration rather
than merging duplicate foundations.
Behavior
default in public tool content, metadata, source events and durable replay.
Original authorized pixels are retained for inference.
ragsupports intentional teaching/reveal presentation through the existinglearning owner. Exact source references and current access are checked before
publication. The frontend uses the native authenticated binary-source loader
and existing image preview; ordinary teaching figures remain displayable.
pre-card exposure and exposure during the pending session remain assisted
through ordinary/group grading, correction and replay. Earlier study does not
permanently disqualify later independent recall. Qualitative learning rules
are not replaced by a blanket source-exposure gate.
solution page through the presentation operation. Unrelated teaching pages
remain available.
quiz-delivery round in the existing final slot. It cannot reopen arbitrary
exploration, bypass validation or increase every turn's general loop budget.
targeted repair. Changed batches and failed checks are inspected again.
lists become their assistance count before source I/O; invalid counts fail
clearly instead of reaching
int(list)after inspection. Guided answers remainassisted. A malformed later child is rejected before inspecting earlier ones.
to recopy quotations. Excerpts are taken from retrieved text; complete text,
original pixels and later question/key verification remain unchanged. Legacy
quote compatibility permits only whitespace/Unicode composition differences
that map back to an original excerpt; unsupported quotes remain rejected.
source presentation metadata remains valid for the tools API.
The existing tool result, learning transaction, pending interaction, source-access
and settlement owners remain authoritative. There is no additional model critic,
parallel progress database or filename-based answer-key classifier.
Evidence
projection/replay, intentional presentation, attempt-scoped assistance,
bounded delivery, preparation and exact successful-batch reuse.
display and rejection of unmarked/untrusted previews.
including five source-display tests with the real shared-loop event origin.
and assistance-scope errors before their fixes. Independent review completed
separately from implementation. No real learner records or paid model calls
were needed for this follow-up.
Follow-up commit
b8fccb92reproduces and fixes visual hint-list crashes,source-selection quote-copy failures and mutable enum metadata. The clean stack
passed 20 focused visual tests, 14 source-selection/repair tests and two schema
serialization regressions; these are distinct scoped runs, not a combined
coverage percentage. The installation additionally passed one integrated set
of 30 changed-case regressions. The root/native changed owners were independently
reviewed for source validation, assistance preservation and schema isolation.
Limits
Publication is not proof that a learner viewed the page. Historical exposure is
not inferred and historical grades are not rewritten. A model can still make an
incorrect prose claim; the public projection controls normal tool publication,
not every possible model-authored statement. This does not promise perfect
question-bank selection, semantic grading or whole-session cost reduction.
An equivalent native implementation is welcome if it preserves these connected
behaviors. Broader coverage and remaining requirements: #1940.