fix simulation reporting and research resilience

This commit is contained in:
2026-09-28 15:43:23 +08:00
parent 23297be2d7
commit a428214c53
25 changed files with 1488 additions and 244 deletions
+5 -2
View File
@@ -67,7 +67,7 @@ class LifeState(BaseModel):
life_log: list[str] = Field(default_factory=list)
class AgentPersona(BaseModel):
class AgentPersona(BaseModel):
id: int
name: str
role: str
@@ -88,4 +88,7 @@ class AgentPersona(BaseModel):
knowledge_level: str = Field(default="full")
life_state: LifeState | None = None
abandoned_products: set[str] = Field(default_factory=set)
has_defected: bool = False
has_defected: bool = False
# Keeps degraded citizen generation observable without changing the
# existing persona contract. Normal LLM-generated citizens use "llm".
generation_source: str = "llm"