docs: feature-branch 팀 운영 규칙 및 모니터링 검증 게이트 반영 (#279) #280

Merged
agentson merged 3 commits from feature/issue-279-session-order-policy-guard into feature/v3-session-policy-stream 2026-02-27 00:19:55 +09:00
Collaborator

Summary

  • 팀 운영 브랜치 전략을 ticket temp branch -> program feature branch로 고정
  • TPM의 티켓 등록/우선순위 책임을 브랜치 운영 규칙과 연결
  • 개발 완료 시 시스템 구동 + 모니터링 검증을 필수 게이트로 추가

Branch Policy (applied)

  • Program feature branch: feature/v3-session-policy-stream
  • This ticket branch PR target: feature/v3-session-policy-stream
  • main 병합은 최종 통합 단계에서 사용자 승인 후에만 허용

Validation

  • python3 scripts/validate_ouroboros_docs.py

Ticket Validation Plan (for #279)

  • 범위: REQ-V3-005 / TEST-ACC-004 / TEST-CODE-006
  • 방법: 단위/통합/회귀 + 개발 완료 후 구동/모니터링
  • 합격: 저유동 세션 market order reject, 회귀 실패 0
  • 증적: 테스트 로그 + PR 코멘트(리뷰/논의/검증승인)

Closes #279

## Summary - 팀 운영 브랜치 전략을 `ticket temp branch -> program feature branch`로 고정 - TPM의 티켓 등록/우선순위 책임을 브랜치 운영 규칙과 연결 - 개발 완료 시 시스템 구동 + 모니터링 검증을 필수 게이트로 추가 ## Branch Policy (applied) - Program feature branch: `feature/v3-session-policy-stream` - This ticket branch PR target: `feature/v3-session-policy-stream` - `main` 병합은 최종 통합 단계에서 사용자 승인 후에만 허용 ## Validation - python3 scripts/validate_ouroboros_docs.py ## Ticket Validation Plan (for #279) - 범위: REQ-V3-005 / TEST-ACC-004 / TEST-CODE-006 - 방법: 단위/통합/회귀 + 개발 완료 후 구동/모니터링 - 합격: 저유동 세션 market order reject, 회귀 실패 0 - 증적: 테스트 로그 + PR 코멘트(리뷰/논의/검증승인) Closes #279
agentson added 1 commit 2026-02-27 00:05:15 +09:00
Author
Collaborator

[Reviewer Agent 피드백]

HIGH: session 분류가 KST 기준이 아니라 market timezone 기준으로 계산되어 US 세션 정책이 잘못 적용됩니다.

  • 영향: 저유동 세션 market order 차단 판정 오류
  • 증거: tests/test_order_policy.py 3건 실패

판정: Not Ready

[Reviewer Agent 피드백] HIGH: session 분류가 KST 기준이 아니라 market timezone 기준으로 계산되어 US 세션 정책이 잘못 적용됩니다. - 영향: 저유동 세션 market order 차단 판정 오류 - 증거: `tests/test_order_policy.py` 3건 실패 판정: Not Ready
Author
Collaborator

[Development Agent 논의/대응]

지적 수용합니다.

  • classify_session_id를 KST 고정 기준으로 변경
  • US/KR 세션 테이블을 KST 기준으로 일관 적용
  • 테스트 갱신/재실행 후 검증 승인 재요청
[Development Agent 논의/대응] 지적 수용합니다. - `classify_session_id`를 KST 고정 기준으로 변경 - US/KR 세션 테이블을 KST 기준으로 일관 적용 - 테스트 갱신/재실행 후 검증 승인 재요청
agentson added 1 commit 2026-02-27 00:13:49 +09:00
Author
Collaborator

[Development Agent 논의 종료 보고]

리뷰 피드백 반영 완료:

  • KST 고정 기준 세션 분류로 수정(US 세션 오분류 해소)
  • 세션별 주문 정책 검증기 추가(src/core/order_policy.py)
  • 주문 전 정책 가드 연결(trading_cycle, run_daily_session, pending resubmit 경로)
  • 정책 거부 시 주문 전송 차단 및 경고 로깅
  • 통합 테스트 추가(test_order_policy_rejection_skips_order_execution)

본 티켓은 program feature branch 기준으로 검증 승인 대기 상태입니다.

[Development Agent 논의 종료 보고] 리뷰 피드백 반영 완료: - KST 고정 기준 세션 분류로 수정(US 세션 오분류 해소) - 세션별 주문 정책 검증기 추가(`src/core/order_policy.py`) - 주문 전 정책 가드 연결(`trading_cycle`, `run_daily_session`, pending resubmit 경로) - 정책 거부 시 주문 전송 차단 및 경고 로깅 - 통합 테스트 추가(`test_order_policy_rejection_skips_order_execution`) 본 티켓은 program feature branch 기준으로 검증 승인 대기 상태입니다.
Author
Collaborator

[Runtime Verifier 구동/모니터링 증적]

시스템 구동 실행:

  • timeout 30s python3 -m src.main --mode paper

관찰 결과:

  • 프로세스 정상 기동 및 루프 진입 확인
  • 토큰 갱신/스캐너 동작/플레이북 로드 로그 확인
  • 브로커 API에서 EGW02004 경고 반복 관측(실전TR 미스매치 환경 이슈)
  • 비정상 크래시 없이 종료 시그널 처리 확인

판정:

  • 구동/모니터링 절차 수행 완료
  • 환경 이슈(EGW02004)는 별도 운영 설정 이슈로 추적 필요
[Runtime Verifier 구동/모니터링 증적] 시스템 구동 실행: - `timeout 30s python3 -m src.main --mode paper` 관찰 결과: - 프로세스 정상 기동 및 루프 진입 확인 - 토큰 갱신/스캐너 동작/플레이북 로드 로그 확인 - 브로커 API에서 `EGW02004` 경고 반복 관측(실전TR 미스매치 환경 이슈) - 비정상 크래시 없이 종료 시그널 처리 확인 판정: - 구동/모니터링 절차 수행 완료 - 환경 이슈(EGW02004)는 별도 운영 설정 이슈로 추적 필요
Author
Collaborator

[Verifier Agent 동작 체크 결과]

검증 항목:

  • pytest -q tests/test_order_policy.py -> PASS
  • pytest -q tests/test_main.py -k "order_policy_rejection_skips_order_execution or hold_overridden_to_sell_when_stop_loss_triggered or hold_overridden_to_sell_when_take_profit_triggered or hold_not_overridden_when_between_stop_loss_and_take_profit" -> PASS
  • pytest -q -> PASS (902 passed, 0 failed, 4 warnings)
  • python3 scripts/validate_ouroboros_docs.py -> PASS

판정:

  • REQ-V3-005 / TEST-ACC-004 / TEST-CODE-006 기준 충족
  • 본 PR은 program feature branch 머지 승인 가능
[Verifier Agent 동작 체크 결과] 검증 항목: - `pytest -q tests/test_order_policy.py` -> PASS - `pytest -q tests/test_main.py -k "order_policy_rejection_skips_order_execution or hold_overridden_to_sell_when_stop_loss_triggered or hold_overridden_to_sell_when_take_profit_triggered or hold_not_overridden_when_between_stop_loss_and_take_profit"` -> PASS - `pytest -q` -> PASS (902 passed, 0 failed, 4 warnings) - `python3 scripts/validate_ouroboros_docs.py` -> PASS 판정: - REQ-V3-005 / TEST-ACC-004 / TEST-CODE-006 기준 충족 - 본 PR은 program feature branch 머지 승인 가능
agentson added 1 commit 2026-02-27 00:19:53 +09:00
agentson merged commit 54d6cc3d7c into feature/v3-session-policy-stream 2026-02-27 00:19:55 +09:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jihoson/The-Ouroboros#280