Files
life-helper/schema/reward_declaration.schema.json
joungmin 3141bf005f Initial commit — life-helper Phase 1~5 완료 상태
4 SoT 모듈:
- huberman-protocols.md (v4, 29 Huberman 원자 프로토콜, 33 인용 검증 완료)
- habit-todo-methodologies.md (21 방법론 + 6 가드레일 + 5-Tier Reward + L0~L3 프레임)
- habit-breaking-protocols.md (끊기 8 카테고리 + 공통 5 프레임 + 의학적 면책)
- nutrition/ 별도 Gitea repo (joungmin/nutrition) — .gitignore 처리

데이터 모델:
- data-model.md — entity 관계 + R1~R8 운영 규칙 + 예시
- schema/ — JSON Schema 18개 (Draft 2020-12), R1~R8을 enum + application + UI 3층 강제

운영 가드레일:
- 동시 active build ≤ 3, break ≤ 1
- 일일 운영 ≤ 2분
- frame.level ∈ {L2, L3} (L0/L1 거부)
- tracker_entry.value = done/blank 2값
- phase = 6주 사이클
- reward는 누적 milestone(T0~T4)만, 매일 직후 X
- "Never miss twice"

진행 중: Dose Variant 설계 결정 대기 (SESSION-LOG.md Pending #1)
2026-06-08 14:47:17 +09:00

35 lines
1.6 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://life-helper.local/schema/reward_declaration.schema.json",
"title": "Reward Declaration (사전 선언 보상)",
"description": "phase.started_at 후 7일 안에만 생성 가능 (R4). 사후 즉흥 결정 차단 — variable schedule 강박 방지.",
"type": "object",
"required": ["id", "phase_id", "habit_id", "tier", "milestone_rule", "reward_text", "declared_at"],
"additionalProperties": false,
"properties": {
"id": { "type": "string" },
"phase_id": { "type": "string" },
"habit_id": { "type": "string" },
"tier": { "$ref": "enums.schema.json#/$defs/RewardTier" },
"milestone_rule": {
"type": "string",
"description": "체크 조건 (예: '7일 중 6일 done', '30일 중 24일 done', '3회 연속 done')"
},
"milestone_machine_rule": {
"type": "object",
"additionalProperties": false,
"description": "선택 — 기계 평가용. 예: { window_days: 30, min_done: 24 }",
"properties": {
"window_days": { "type": "integer", "minimum": 1 },
"min_done": { "type": "integer", "minimum": 1 },
"require_consecutive": { "type": "boolean" }
}
},
"reward_text": { "type": "string", "description": "사용자가 본인 언어로 작성 (SDT autonomy)" },
"reward_menu_item_id": { "type": ["string", "null"], "description": "카탈로그에서 선택했다면 참조" },
"estimated_cost_krw": { "type": "integer", "minimum": 0 },
"is_effort_tied": { "type": "boolean" },
"declared_at": { "$ref": "enums.schema.json#/$defs/DateTimeString" }
}
}