Files
momentum-system/models/base.py
T
momentum devandClaude Opus 4.8 007cd95c79 Baseline before Postgres migration (WS0)
Snapshot before the DuckDB->PostgreSQL migration. data/, archive/, the 232MB
rebuild zip, the Windows .venv, and .env are excluded via .gitignore.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 23:39:29 -04:00

27 lines
709 B
Python

"""Models for Milestone 2.
Event and data models for the event-first architecture.
"""
from pydantic import BaseModel, Field
class EventMode(str):
"""Runtime modes for events."""
REPLAY = "replay"
PAPER = "paper"
LIVE = "live"
class BaseEvent(BaseModel):
"""Base event with common fields."""
timestamp: str = Field(description="Event timestamp (ISO format)")
mode: EventMode = Field(description="Runtime mode (replay/paper/live)")
event_type: str = Field(description="Event type identifier")
correlation_id: str | None = Field(
default=None, description="Correlation ID for causal chain"
)
message: str = Field(description="Human-readable message")