feat(eval): Chat Eval Pipeline — Swiss Cheese 3-Tier Grader#545
Merged
mangowhoiscloud merged 9 commits intodevelopfrom Feb 9, 2026
Merged
feat(eval): Chat Eval Pipeline — Swiss Cheese 3-Tier Grader#545mangowhoiscloud merged 9 commits intodevelopfrom
mangowhoiscloud merged 9 commits intodevelopfrom
Conversation
Swiss Cheese 3-Tier Eval Pipeline의 Domain 계층 구현. 순수 Python, 외부 의존 없음. - EvalGrade(S/A/B/C): 연속 점수→등급 매핑 Enum - AxisScore: BARS 단일 축 평가 결과 VO (frozen) - ContinuousScore: 0-100 연속 점수 VO (정보 손실 추적) - CalibrationSample: 보정 샘플 VO (Cohen's kappa 검증) - EvalScoringService: 비대칭 가중 합산 (faith=0.30, safe=0.15) - Domain Exceptions: InvalidBARSScoreError 등 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
EvalConfig/EvalResult DTO와 Protocol 기반 Port 정의. - EvalConfig: 11개 Feature Flag (모드, 샘플링, 비용 가드레일) - EvalResult: 통합 평가 결과 DTO (frozen, FAIL_OPEN=B등급) - BARSEvaluator Port: LLM 5축 평가 Protocol - EvalResultCommandGateway: 결과 저장 Protocol (CQS Command) - EvalResultQueryGateway: 결과 조회 + 일일 비용 Protocol (CQS Query) - CalibrationDataGateway: 보정 데이터 Protocol Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
L1/L2/L3 평가 서비스와 오케스트레이터 Command 구현. - CodeGraderService (L1): 6개 직교 슬라이스 결정적 평가 (<50ms) - LLMGraderService (L2): BARS 5축 + Self-Consistency (경계 점수 재평가) - ScoreAggregatorService: L1+L2 통합, 비대칭 가중 합산 - CalibrationMonitorService (L3): Two-Sided CUSUM 드리프트 감지 - EvaluateResponseCommand: 3-Tier 오케스트레이터 - 샘플링 게이트, 일일 비용 가드레일, 주기적 Calibration - FAIL_OPEN 정책 (실패→B등급, 재생성 미트리거) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
OpenAIBARSEvaluator adapter implementing BARSEvaluator Protocol. Pydantic schemas for LLM Structured Output parsing. 6 BARS rubric prompt files (system + 5 axis anchors). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…egration eval_node.py: ChatState → EvalState field mapping adapter. eval_graph_factory.py: Eval subgraph with grader node factories. state.py, contracts.py: EvalState fields + node contracts. node_policy.py: Eval node FAIL_OPEN policy. factory.py: Conditional eval subgraph wiring in main graph. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Domain: EvalGrade, AxisScore, ContinuousScore, CalibrationSample, EvalScoringService. Application: CodeGrader, LLMGrader, ScoreAggregator, CalibrationMonitor, EvaluateResponseCommand. Infrastructure: BARSEvaluator, eval_node, eval_subgraph_keys. pyproject.toml: eval_unit, eval_regression, eval_capability markers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
e6de06a to
14f4714
Compare
contracts.py: frozenset multiline formatting. test files: trailing blank lines, duplicate import removal. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
_make_failed_eval_result now delegates to EvalResult.failed() DTO instead of hardcoding a raw dict. Eliminates stale stopgap comment. Tests updated for EvalResult.to_dict() structure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
Architecture
Commits (7)
feat(eval): Domain layerfeat(eval): Application layer — DTOs, Ports, Exceptionsfeat(eval): Application Services + Commandfeat(eval): Infrastructure — BARS evaluator + promptsfeat(eval): Infrastructure — LangGraph eval subgraphtest(eval): Unit tests + pytest markersdocs(eval): Implementation reportKey Design Decisions
eval_max_cost_usd초과 시 LLM Grader 스킵Phase 3 (Next)
setup/dependencies.py)Test plan
pytest -m eval_unit— 108 tests, 100% passblack --check— cleanruff check— clean🤖 Generated with Claude Code