← Back to Pull requests

ROB-1404: Part 2A KR entry-method common-clock comparison (research only) #2225

Open
unknown opened this pull request with 275 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 19, 2026 00:05 UTC
Author

Refs ROB-1404

요약


ROB-1404 Part 2A(KR 진입 방식 공통 시계 비교) 연구 패키지 research/rob1404_kr_entry/ + 단위 테스트. 연구 전용·주문 0 — app/ config/ alembic/ diff 0, 스케줄러·shadow 배선·정책 변경 없음. ROB-1391(US 실험) 코드·manifest 미참조.

  • v1 research/rob1383_buy_drought 를 import 재사용(core·q2_q3_orders·gates·stats·prices). v1 Q2/Q3 상세를 재실행해 v1 저장본과 142행×59열 셀 대조 불일치 0.

  • 같은 원후보(KR 미체결 지정가 79 주문 → 37 부모)에 다음 실행 가능 가격 / 다음 거래일 시가 / 실제 앵커 / v1 20/80(정수·소수 주) / v1 3세션 재제출 / 현금을 D0+5·D0+20 종가 공통 청산으로 비교. 비용 후(계좌 실측 수수료·세율)·비용 전·시장(KOSPI/KOSDAQ)·업종 조정, 체결 3상태(UNKNOWN 은 0 으로 바꾸지 않음), 종목·부모 군집·날짜 블록 부트스트랩, 이 자료로 계산한 MDE.

  • 정본 수치 재계산(37/63, 63→47→42, 72→23→11, 37/72, Q4 +16.1pp) 전부 일치. 단 v1 'NXT 전용 16' 중 6건은 10-16 정규장 주문(일봉 캐시가 10-15 에서 끝남) — 진짜 NXT 시간대 주문은 10건.

  • 2B 는 명세 초안만(보고서). 2B 팔의 정책 충돌 실행 가능성 계수만 '탐색'으로 계산, 수익 평가 없음.

  • 🔴 행 단위 결과 CSV 는 커밋하지 않는다(.gitignore 에 research/rob1404_kr_entry/results/). 보고서: herdr-inbox/jobs/b1404a/report.md(비공개, at-integrator 가 Drive·ROB-1404 로 이관).
  • 재생성


    uv run python -m research.rob1404_kr_entry.run --inputs <b1383 inputs> --v1-results <rob1383 results> --offline
    

    테스트


  • tests/research/test_rob1404_kr_entry.py (DB·네트워크 없음) — ci_shards/shard-1.txt 등록.

  • 로컬: uv run pytest tests/research/test_rob1404_kr_entry.py -q → 37 passed. ruff check/ruff format --check 통과.
  • 이 PR 이 승인하지 않는 것


    새 shadow 실험·정책 변경·실주문·배포·사전등록 봉인.

    🤖 Generated with Claude Code

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features
    Added an offline research workflow to compare Korean-market order-entry methods on a shared evaluation timeline, with execution, cost, benchmark, and uncertainty analyses.
    Added exploratory measurements of proposed entry feasibility and reconciliation with earlier results.
    Added documentation covering the analysis, outputs, and limitations.
    Tests
    Added coverage for entry timing, fill classification, outcomes, statistical estimates, and exploratory calculations.
    Chores
    Excluded generated research results from version control.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 275 lines (+206 / -69) across 3 files Reviewer: coderabbitai[bot] Review duration: 9m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.40) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 275 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.336
    Real PR Conversation Timeline
    1 comments
    "Review active on #2225"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.6% (MEDIUM) · Higher = larger blast radius
    39.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 43.0% · Lower = rushed or shallow review
    43.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.6% · Safe to merge
    22.6%