fix: 턴 실패 사유를 실행 장수의 개인 기록에 남김

개인턴과 수뇌턴 공통 로그 생성 경로에서 generalId를 필수로 전달해 PostgreSQL 영속화 단계의 누락을 막는다. 비교 도구의 소유자 추론을 제거하고 단위, PostgreSQL, Chromium 회귀 검증을 추가한다.
This commit is contained in:
2026-08-20 16:23:40 +00:00
parent d1731fdf59
commit e9d8961386
5 changed files with 308 additions and 37 deletions
@@ -888,8 +888,10 @@ export const runCoreTurnCommandTrace = async (
id: index + 1,
scope: log.scope,
category: log.category,
generalId: log.generalId ?? (log.scope === 'GENERAL' ? actor.id : undefined),
nationId: log.nationId ?? (log.scope === 'NATION' ? actor.nationId : undefined),
// Keep the product draft unchanged. Inferring an owner here hid
// GENERAL logs that finalizeLogEntry would reject in production.
generalId: log.generalId,
nationId: log.nationId,
year: state.currentYear,
month: state.currentMonth,
text: log.text,