AGENT SKILL
13-游戏任务运行时管理
13-mission-runtime
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-04-12
- Stars
- ★ 0
- Forks
- 0
02 资源文件 2
- 参考文档SOURCE.md193 B
- 参考文档TRUST.auto.yaml2.2 KB
03 SKILL.md 正文
13-mission-runtime
Status: ACTIVE
AppliesTo: v10
Type: Design / Runtime SSOT
Purpose
MissionRuntimeBase 계열 runtime의 진행도/구독/상태 전이 규칙 정본이다.
Runtime Model
MissionRuntimeBase
├─ MissionRuntimeDaily
└─ MissionRuntimeWeekly
공통 필드:
mission_id,missionUidperiodKey,indexprogressValuestate(MissionRuntimeState: WAIT / ACTIVE / COMPLETED)
참고: condition_msg_id는 runtime 필드가 아니다. Bind() 시 테이블에서 조회하여 바인딩한다.
Progress Source of Truth
DAILY:- source of truth = runtime
progressValue - trigger delta로 직접 누적
- source of truth = runtime
WEEKLY:- source of truth = runtime
progressValue - WAIT 상태에서는 누적하지 않음
- source of truth = runtime
Trigger Rules
- 구독 키:
missionUid - 메시지 키:
GAME_MESSAGE_TYPE DAILY/WEEKLY:SESSION_MAX:max(progressValue, delta)SESSION_SUM:progressValue + deltaSESSION_MIN:min(progressValue, delta)TOTAL_*: external progress reader 기반 refresh
- WAIT runtime은 trigger를 처리하지 않는다.
State Rules
state필드는WAIT,ACTIVE,COMPLETED중 하나다.GetState()는state == ACTIVE && 진행도 충족시CLAIMABLE을 반환한다(파생 상태).MarkCompleted():state = COMPLETED+ 구독 해지.TryActivate():state == WAIT일 때만state = ACTIVE로 전환.
WEEKLY 전용:
- 초기 생성 상태는 WAIT
- day 조건 충족 시 ACTIVE 전환 후 trigger 처리 시작