Skip to content

fix: cache/session safety 보강#326

Merged
sorlros merged 1 commit into
devfrom
fix/cache-session-safety
May 22, 2026
Merged

fix: cache/session safety 보강#326
sorlros merged 1 commit into
devfrom
fix/cache-session-safety

Conversation

@sorlros
Copy link
Copy Markdown
Member

@sorlros sorlros commented May 22, 2026

개요

cache/RAG/session 점검에서 확인한 두 가지 안전성 개선점을 적용했습니다. F1 세션 캐시가 adapter model 차이를 무시하지 않도록 보강하고, task 실행 직전 현재 실행 중인 task를 session state에 기록해 crash 이후 resume hint 정확도를 높였습니다.

변경 사항

  • F1/F2 cache validator에 adapter_model 불일치 검증 추가
  • F1 session cache advise 사유에 adapter model mismatch 표시
  • task 실행 전 current_task_id running checkpoint 저장
  • adapter model cache mismatch 및 running checkpoint 단위 테스트 추가

검증

  • npx vitest run tests/ts/unit/core/cache/cache-validator.test.ts tests/ts/unit/core/pipeline/orchestrator.test.ts tests/ts/unit/core/pipeline/orchestrator-rag-cache.test.ts tests/ts/unit/core/state/session-state-manager-cache.test.ts tests/ts/unit/core/state/session-state-manager-resume.test.ts --reporter=verbose
  • npm run typecheck
  • npm test
  • npm run build
  • git diff --check

참고

  • dev 기준 독립 브랜치입니다.
  • .worktrees/ untracked 파일은 unrelated라 건드리지 않았습니다.

@sorlros sorlros merged commit c169cb6 into dev May 22, 2026
2 checks passed
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