Skip to content

fix(mastery): bind teaching records to visible delivered explanation - #1952

Merged
pancacake merged 1 commit into
HKUDS:devfrom
yepyhun:contrib/mastery-delivered-teaching
Oct 18, 2026
Merged

pancacake merged 1 commit into
HKUDS:devfrom
yepyhun:contrib/mastery-delivered-teaching

Conversation

@yepyhun

@yepyhun yepyhun commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Thank you for the recent Mastery Path state improvements. This fixes a narrower correctness gap from #1949: recording an explanation must not get ahead of public explanation delivery.

  • Read an immutable, source/stage-filtered snapshot of already published assistant content from the existing per-turn StreamBus.
  • Bind that snapshot to the active path, session and turn through server-owned dispatch context; model-authored private arguments cannot supply the callback.
  • Require explanation_quote to match prior public text exactly before writing the existing explanation record. Hidden reasoning, tool output, source packets, discarded drafts and future prose do not count.
  • Record the excerpt and event provenance as partial coverage, with no mastery credit. Legacy records remain readable as unverified teaching records; scores are preserved.
  • Align the existing en/zh playbook with the tool contract.

Proof and limits

On a clean native origin/dev checkout: the new regressions initially failed (15 failed, 1 passed), then 38 focused delivery, visual-workflow and pipeline tests passed. Independent review found that optimistically streamed prose can later be retracted: two further regressions failed before the snapshot was corrected. The final suite exercises the actual native retraction path and excludes that text. The separate local integration also passed its source-readiness gates; those local preparation helpers are intentionally not included in this native PR. Scoped RED/GREEN evidence and explicit limits are included in .github/tdd/mastery-teaching-delivery.md.

This proves public emission before recording, not that the learner read the text or understood it, nor that a quote semantically covers an entire objective. It does not add a verifier model, replace the assessment engine, change scores, or create a second memory store. Current-turn evidence is deliberately required; old conversation text is not retroactively given invented event provenance.

Related adaptation and incremental-practice work remains in #1936 and #1943. This PR does not depend on those contributions.

References #1949. Contribution map and remaining limitations: tracking issue #1940.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants