feat(mvp): DAGI Integration Fix - gov_level, DAIS, nodes table
TASK_PHASE_MVP_DAGI_INTEGRATION_FIX_20251201 A) Agents Layer: - A1: Added gov_level to API and UI (list + profile) - A2: Added dais_identity_id to API and UI - A3: Added home_microdao_id/name/slug for ownership display B) MicroDAO Layer: - B1/B2: Already implemented (agents, rooms, citizens, district badge) C) Nodes Layer: - C1: Node Dashboard already implemented - C2: Created nodes table migration with owner_microdao_id - C3: INSERT NODE1/NODE2 with dao_daarion ownership D) Backend Fixes: - D1: Extended /api/agents/* with DAIS/governance fields - D2/D3: Already implemented Files changed: - services/city-service/repo_city.py - services/city-service/models_city.py - services/city-service/routes_city.py - services/city-service/migrations.py - apps/web/src/lib/types/agents.ts - apps/web/src/lib/agent-dashboard.ts - apps/web/src/app/agents/page.tsx - apps/web/src/components/agent-dashboard/AgentSummaryCard.tsx Reports: - docs/debug/mvp_dagi_integration_fix_report_20251201.md - docs/tasks/TASK_PHASE_MVP_DAGI_INTEGRATION_FIX_20251201.md
This commit is contained in:
@@ -306,6 +306,10 @@ class AgentSummary(BaseModel):
|
||||
node_label: Optional[str] = None # "НОДА1" / "НОДА2"
|
||||
home_node: Optional[HomeNodeView] = None
|
||||
|
||||
# Governance & DAIS (A1, A2)
|
||||
gov_level: Optional[str] = None # personal, core_team, orchestrator, district_lead, city_governance
|
||||
dais_identity_id: Optional[str] = None # DAIS identity reference
|
||||
|
||||
# Visibility & roles
|
||||
visibility_scope: str = "city" # global, microdao, private
|
||||
is_listed_in_directory: bool = True
|
||||
@@ -313,10 +317,13 @@ class AgentSummary(BaseModel):
|
||||
is_public: bool = False
|
||||
is_orchestrator: bool = False # Can create/manage microDAOs
|
||||
|
||||
# MicroDAO
|
||||
# MicroDAO (A3)
|
||||
primary_microdao_id: Optional[str] = None
|
||||
primary_microdao_name: Optional[str] = None
|
||||
primary_microdao_slug: Optional[str] = None
|
||||
home_microdao_id: Optional[str] = None # Owner microDAO
|
||||
home_microdao_name: Optional[str] = None
|
||||
home_microdao_slug: Optional[str] = None
|
||||
district: Optional[str] = None
|
||||
microdaos: List[MicrodaoBadge] = []
|
||||
microdao_memberships: List[Dict[str, Any]] = [] # backward compatibility
|
||||
|
||||
Reference in New Issue
Block a user