Agent 서버 구축: 멀티테넌트 협상 PoC (UCB Q-Table 학습 + /chat + 14 API + 학습검증 하네스), config 단일화(local.toml) + 빌드 경량화

This commit is contained in:
HyeongBaeYang committed 2026-06-17 11:10:03 +09:00
1 parent 212725e5f9
commit 951d6eab84
140 files changed
+6689 -214

No files matched your search

+65
View File
@@ -0,0 +1,65 @@
# 공유 베이스 정책 (계획서 D). 신규 테넌트 cold-start 의 기준값.
# 모든 값은 우리 플랫폼의 중립 기본값이다(CLEANROOM.md). 특정 고객 운영값 복제 아님.
# 실제 운영값은 각 테넌트 YAML/DB 에서 주입한다. 차원 개수만 기능적 설계, 값/라벨은 우리 선택.
tenant_id: _base
inherits_base: false # 베이스는 자기 자신을 상속하지 않음
name: "Shared Base Policy"
state:
revenue:
thresholds: [10000000, 50000000] # 플랫폼 중립 기본 구간
weights: [0.3, 0.6, 1.0]
descriptions: ["low", "mid", "high"]
distribution:
code_map: {A: 0, B: 1, C: 2} # 중립 예시 코드(테넌트가 자사 코드로 오버라이드)
weights: [0.3, 0.6, 1.0]
descriptions: ["channel_a", "channel_b", "channel_c"]
partner:
weights: [0.5, 1.0, 0.3] # single, multiple, none
descriptions: ["single", "multiple", "none"]
acceptance:
thresholds: [0.03, 0.09]
weights: [0.3, 0.6, 1.0]
descriptions: ["low", "mid", "high"]
price_zone:
weights: [1.0, 0.5] # at_or_below_anchor(우선협상), above_anchor(협상지속)
descriptions: ["at_or_below_anchor", "above_anchor"]
# state_space_size 는 차원 곱으로 자동 산출: 3×3×3×3×2 = 162
reward:
beta: 0.2
success_reward: 1.0
ongoing_reward: 0.0
failure_penalty: -0.5
penalty_lambda: 0.02
w1: 0.2
w2: 0.2
w3: 0.2
w4: 0.2
w5: 0.2
min_weight: 0.2
max_weight: 0.8
policy:
type: ucb
learning_rate: 0.1 # 표준 기본값
gamma: 0.95
params:
exploration_constant: 1.4142135623730951 # sqrt(2) — 표준 UCB 상수
epsilon: 1.0e-6
action_mapping:
type: file
action_to_card: {} # 베이스는 카드 매핑 없음 — 테넌트가 자사 카탈로그로 supply
cards:
source_type: file
sync_interval_seconds: 300
connection: {}
llm:
enabled: false
resources:
language: ko
scripts_dir: resources