Phase II (V6-V9): CI gate, multi-domain registry, HITL bridge, naval/cyber state#66
Merged
Conversation
…cyber state V6 (CI 성능 게이트): - scripts/check_perf_gate.py: blue_win_rate ≥ 0.45 & CVaR@10 ≤ 40 검증 - .github/workflows/ci.yml: evaluate.py --fast + 게이트 스크립트 CI 단계 추가 V7 (MultiDomainRunner → ExperimentRegistry): - utils/multidomain_runner.py: _register_to_registry() 메서드 추가 - run_batch_experiment() 완료 후 phase=11 RunRecord 자동 등록 V8 (HITL 웹 인터페이스 Phase 3 실시간 연동): - hitl/session_bridge.py: Queue 기반 HITLSessionBridge 신규 생성 - RLock 사용 (Lock → RLock: __del__/__init__ 재진입 교착 방지) - put_options / get_options_nowait / put_selection / get_selection - start_web_server() 백그라운드 Flask 기동 - hitl/web_interface.py: bridge 파라미터 추가, /api/bridge/status, /api/bridge/options 엔드포인트, /api/strategy/select bridge 연동 - train.py: --hitl-web, --hitl-port CLI 인수 추가; train_phase3()에서 HITLSessionBridge 초기화 및 실제 지휘관 선택 대기 V9 (build_state_vector() 해상·사이버 확장): - rl_agent/blue_agent.py: 해상·사이버 6D 필드 추가 (72D → 78D → 128D 패딩) naval_blue_fraction, naval_red_fraction, salvo_intensity, cyber_degradation, ew_suppression, naval_threat_level tests/test_phase2_v6_v9.py: V6~V9 회귀 테스트 22개 (17 pass, 5 skip without torch) https://claude.ai/code/session_013zzx6Mwbd5LJacDUsNbitA
- Added comprehensive mock for `torch` (Tensor, nn layers, optim, distributions) using types.ModuleType to avoid descriptor-protocol binding issues. - Added mock for `networkx` (MultiDiGraph with nodes/edges/adjacency). - Added mock for `tqdm` (no-op progress bar). - Mocks enable R11 (multidomain runner), R12 (TierC RARL/NFSP), R13 (counterfactual feedback), R14 (HITL web interface), Phase-3 medium (IRL/AAR/benchmark), and adoption tests to pass without installing heavy ML dependencies. - Phase-II regression: 22/22 still pass. https://claude.ai/code/session_013zzx6Mwbd5LJacDUsNbitA
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.
No description provided.