회기 무발화 0턴 분리, 자기예측 락 불변식 및 TDD 회귀 검증 완료
Some checks failed
API contract / OpenAPI type drift (push) Failing after 3m27s

This commit is contained in:
Yun Chan 2026-09-08 23:28:06 +09:00
parent a479db7a5a
commit a0311c5957
100 changed files with 4884 additions and 11210 deletions

View file

@ -2,8 +2,6 @@
from __future__ import annotations
import hashlib
import json
from collections.abc import Mapping, Sequence
from typing import Any, Literal, Protocol
from uuid import UUID, uuid5
@ -26,6 +24,10 @@ from .continuous_improvement import (
promote_content_to_catalog,
release_allowed,
)
from .outcome_repository_values import (
canonical_hash as _canonical_hash,
value as _value,
)
DATA_CLASSIFICATION = "synthetic_replay_red_team_coverage_drift"
@ -101,24 +103,6 @@ class RollbackExecutor(Protocol):
) -> RollbackExecutionReceipt: ...
def _value(row: Mapping[str, Any], key: str, default: Any = None) -> Any:
try:
return row[key]
except (KeyError, TypeError):
return default
def _canonical_hash(payload: Any) -> str:
serialized = json.dumps(
payload,
ensure_ascii=False,
separators=(",", ":"),
sort_keys=True,
default=str,
)
return hashlib.sha256(serialized.encode("utf-8")).hexdigest()
async def _begin_submission(
conn: asyncpg.Connection,
*,