AGENT SKILL

mission-scheduler

Use this skill when defining or implementing MissionScheduler for runtime lifecycle and daily/period binding rebuild.

License 许可
MIT
所属仓库
devwinsoft/devian
最近更新
2026-04-12
Stars
★ 0
Forks
0

01 前言 Front Matter

name
mission-scheduler
description
Use this skill when defining or implementing MissionScheduler for runtime lifecycle and daily/period binding rebuild.

02 资源文件 1

03 SKILL.md 正文

15-mission-scheduler

Status: ACTIVE
AppliesTo: v10
Type: Design / Scheduler SSOT

Purpose

MissionScheduler는 runtime lifetime 전담 collaborator다.

  • create/restore/rebind/prune/lookup
  • missionUid 발급
  • table row resolve 후 bind 인자 구성

Hard Rules

  • MissionManager 내부 객체로만 사용한다.
  • reward/claim/save orchestration은 하지 않는다.
  • runtime 생성/복구는 MissionRuntimeFactory를 통해서만 수행한다.
  • condition_msg_id resolve 실패 row는 runtime 생성 금지.

Lifecycle Rules

Daily (MISSION_DAILY)

  • active row에서 최대 5개 선택(fixed 우선 + random)
  • 선택 row만 create/restore
  • condition_msg_id -> GAME_MESSAGE resolve 후 bind 인자 전달
  • daily cycle 전환 시 기존 daily set 정리 후 재생성

Weekly (MISSION_WEEKLY)

  • 초기화/리셋 시 active row 전부 create/restore
  • 기본 상태는 WAIT
  • MISSION_WEEKLY.day를 activation group key로 사용한다.
  • 활성화 규칙:
    • day == 1: 즉시 ACTIVE
    • day == n: (n - 1)일 경과 후 ACTIVE
  • weekly cycle은 10일 단위
  • cycle 전환 시 기존 weekly runtime 전량 정리 후 WAIT 재생성

UID Rule

  • nextMissionUid 기반 증가형 발급
  • 충돌 UID는 건너뛴다

Notes

  • legacy progress seed 브릿지는 사용하지 않는다.
  • progress 정본은 runtime local state다.

Related

04 同仓库更多 Skills