workflow: session handover 검증 모드 분리 (interactive/non-interactive 공통화) #353

Closed
opened 2026-03-01 19:58:14 +09:00 by agentson · 0 comments
Collaborator

Summary

session_handover_check.py --strict의 검증은 원래 대화형(local) 워크플로우 기준으로 설계되어, 비대화형/ephemeral 실행환경(예: detached HEAD, 자동화 런너)에서는 최신 엔트리의 today UTC + current branch 강제 조건이 불필요하게 실패를 유발함.

핵심은 검증 강도를 낮추는 것이 아니라, 실행환경별로 검증 책임을 분리하는 것.

Problem

  • strict 모드가 아래 2개를 항상 강제:
    • latest entry 날짜가 당일 UTC
    • latest entry 브랜치가 현재 브랜치
  • 위 조건은 대화형 세션 핸드오버에는 유효하지만, 비대화형/재현 실행에서는 신뢰 가능한 전제가 아님.
  • 결과적으로 구조/필수 토큰 검증 이전에 gate가 조기 중단될 수 있음.

Proposal

  • session_handover_check.py에 실행환경 플래그(--ci) 도입
  • --strict --ci에서는 다음만 유지:
    • 필수 파일/토큰/구조 검증
  • --strict(기존 대화형 경로)에서는 기존 날짜/브랜치 강제 유지

Acceptance Criteria

  • --strict는 기존 로컬 세션 규칙(날짜/브랜치 포함)을 유지한다.
  • --strict --ci는 날짜/브랜치 강제를 제외하고 구조/토큰 검증을 수행한다.
  • 자동화 워크플로우는 --strict --ci를 사용한다.
  • 거버넌스/문서 검증과 충돌 없이 통과한다.

Scope Mapping

  • REQ: REQ-OPS-002, REQ-OPS-003
  • TASK: TASK-OPS-002, TASK-OPS-003
  • TEST: TEST-ACC-008, TEST-ACC-009
## Summary `session_handover_check.py --strict`의 검증은 원래 대화형(local) 워크플로우 기준으로 설계되어, 비대화형/ephemeral 실행환경(예: detached HEAD, 자동화 런너)에서는 최신 엔트리의 `today UTC + current branch` 강제 조건이 불필요하게 실패를 유발함. 핵심은 **검증 강도를 낮추는 것**이 아니라, **실행환경별로 검증 책임을 분리**하는 것. ## Problem - strict 모드가 아래 2개를 항상 강제: - latest entry 날짜가 당일 UTC - latest entry 브랜치가 현재 브랜치 - 위 조건은 대화형 세션 핸드오버에는 유효하지만, 비대화형/재현 실행에서는 신뢰 가능한 전제가 아님. - 결과적으로 구조/필수 토큰 검증 이전에 gate가 조기 중단될 수 있음. ## Proposal - `session_handover_check.py`에 실행환경 플래그(`--ci`) 도입 - `--strict --ci`에서는 다음만 유지: - 필수 파일/토큰/구조 검증 - `--strict`(기존 대화형 경로)에서는 기존 날짜/브랜치 강제 유지 ## Acceptance Criteria - [ ] `--strict`는 기존 로컬 세션 규칙(날짜/브랜치 포함)을 유지한다. - [ ] `--strict --ci`는 날짜/브랜치 강제를 제외하고 구조/토큰 검증을 수행한다. - [ ] 자동화 워크플로우는 `--strict --ci`를 사용한다. - [ ] 거버넌스/문서 검증과 충돌 없이 통과한다. ## Scope Mapping - REQ: `REQ-OPS-002`, `REQ-OPS-003` - TASK: `TASK-OPS-002`, `TASK-OPS-003` - TEST: `TEST-ACC-008`, `TEST-ACC-009`
agentson changed title from ci: session_handover_check --strict CI 실패 분리 및 CI 모드 도입 to workflow: session handover 검증 모드 분리 (interactive/non-interactive 공통화) 2026-03-01 20:30:23 +09:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jihoson/The-Ouroboros#353