Skip to content

feat(10-mastery-loop): 숙련도 고리 — 판정 · 강의 목록 · 강의 자료에 넘기기 · 반영 내역 - #41

Merged
tkdwls4453 merged 24 commits into
mainfrom
feat-10-mastery-loop
Nov 25, 2026
Merged

tkdwls4453 merged 24 commits into
mainfrom
feat-10-mastery-loop

Conversation

@tkdwls4453

Copy link
Copy Markdown
Collaborator

요약

SCHEDULE §3 #10 숙련도 고리(M2)예요. 복습 기록이 처음으로 다음 생성을 바꿔요 — 개념마다 판정(잘 앎 · 흔들림 · 기록 없음)을 그때그때 계산해 강의 자료 · 강의 목록 · 로드맵 계획 프롬프트에 지시 문구로 넘기고, 강의 목록이 적은 숙련도 반영 내역을 코스 화면(검토 중)에 한 줄로 보여요.

  • 판정 — 복습 기록이 있는 카드의 떠올릴 확률 평균 ≥ 0.9 그리고 단단함 평균 ≥ 21일이면 잘 앎, 센 카드가 없으면 기록 없음, 나머지는 흔들림. 확률은 FSRS 라이브러리 계산 그대로이고, 판정은 저장하지 않아요(금지 7 · ADR-162).
  • 강의 자료 — 채팅 앞에 다룰 개념의 정의를 임베딩해 사전의 같은 개념(기준값 0.72 이상)과 맞추고, 개념마다 지시를 실어요. 한 시도의 임베딩이 두 번이 되어 워커 시한을 16분 → 17분으로 올렸어요(972초 < 1020초).
  • 강의 목록 · 로드맵 계획 — 사전에서 관련 개념 최대 20개(하한 없음)를 찾아 이름 · 정의 · 지시를 넘겨요. 사전이 비면 임베딩을 부르지 않아요.
  • 반영 내역 — 강의 목록 출력의 masteryReport(짧게 다룬 · 다시 짚은 개념 이름)를 서버가 확인하지 않고 courses.mastery_report 에 저장해요. 모양이 틀려도 강의 목록은 받고 내역만 빈 목록 둘이에요.
  • 응답 · 화면 — 「코스 하나」에 masteryReport: {shortened, revisited} 두 정수(검토 중 + 내역 있음일 때만). 코스 화면은 하나라도 0보다 크면 「이전 복습 기록을 바탕으로 {n}개 개념을 짧게 다뤘고 {m}개 개념을 다시 짚었어요.」를 보여요.

무엇이 바뀌었나

커밋 내용
docs 계약 먼저 — 03 §2 · §3 · §5 · §7 · 05 §3 · 06 §7 · §15.2 · 02 §8.3 · §9 · ADR-187 · README · SCHEDULE
step 0 mastery-judgment Judgment · MasteryJudgmentService · FsrsCalculator.retrievability
step 1 concept-lookup ConceptLookupService — hasConcepts · findRelated · judgeMatching(읽기 전용)
step 2 material-mastery 강의 자료 판정 지시 · 시한 17분 · LlmConfiguration 식
step 3 course-plan-mastery RelatedConceptPreparer · 강의 목록 생성기 셋 · course.txt 규칙
step 4 roadmap-plan-mastery 로드맵 계획 생성기 둘 · roadmap.txt 규칙
step 5 mastery-report 출력 키 masteryReport · 관대한 해석 · Course.single / planLessons / replanLessons
step 6 course-report-api CourseResponse.masteryReport
step 7 course-report-screen 코스 화면(검토 중)의 한 줄
docs 브랜치 리뷰 — 03 §3 기준값 「이상」 · 강의 자료 구현 줄 · 하네스 기록
step 8 mastery-prompt-fixes 강의 자료 프롬프트 키 순서 고정 · 흔들림 지시 「전에 배웠지만 흔들린다. 자세히 다룬다.」
  • 서버 테스트 2,434 → 2,624개 · 화면 테스트 516 → 533개 통과 · build · lint 통과
  • 9개 step 모두 첫 시도 승인 — 반려 0 · blocked 0 · 리뷰 비용 약 $7.6
  • 마이그레이션 없음(courses.mastery_report 칸은 V10 에 이미 있음)

병합 전에 사람이 할 일

없음. 참고로 —

  • 시한(app.worker.lease-duration)이 17분으로 바뀌어요. 배포만 하면 적용돼요.
  • 강의 자료 한 시도에 임베딩 호출이 하나 늘어요(사전이 있는 사용자만). 비용은 호출 기록(llm_calls)에서 봐요.
  • 판정 지시가 실제로 강의 목록 · 자료를 원하는 대로 바꾸는지는 아직 확인하지 않았어요 — M2 1차 품질 점검에서 표본으로 봐요(관련 개념 하한 · 기준값 0.72 · 다시 짚는 강의 몫 · 지시 문구 길이).

🤖 Generated with Claude Code

tkdwls4453 and others added 24 commits November 25, 2026 08:51
… 계획 · 반영 내역 · API · 화면

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tep 8 · 하네스 기록

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
mogum Ready Ready Preview Nov 25, 2026 7:22am UTC

@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5fb0b8e5-8d14-4d43-9311-1114c4719da7
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

Copy link
Copy Markdown

@tkdwls4453
tkdwls4453 merged commit d38b520 into main Nov 25, 2026
8 checks passed
@tkdwls4453
tkdwls4453 deleted the feat-10-mastery-loop branch November 25, 2026 07:42
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.

1 participant