Apple
52520eda93
fix(city-service): use datetime type for created_at/updated_at fields
2025-11-29 17:08:02 -08:00
Apple
90ecc7e8f6
fix(city-service): align incidents API with actual DB schema
...
- Use correct column names: created_by_dais_id, target_scope_type, assigned_to_dais_id
- Add UUID parsing for incident IDs
- Fix incident_history to use actor_dais_id and new_value columns
2025-11-29 17:06:44 -08:00
Apple
e078a24540
feat(city-service): add Governance, Audit, Incidents API endpoints
...
- Added repo_governance.py with database operations
- Added routes_governance.py (/api/v1/governance/*)
- Added routes_audit.py (/api/v1/audit/*)
- Added routes_incidents.py (/api/v1/incidents/*)
- Updated main.py to include new routers
2025-11-29 17:01:58 -08:00
Apple
beed5308f1
fix(governance): Rename AgentStatus to AgentGovStatus to avoid conflict
...
Conflicts with existing AgentStatus from agents.ts
2025-11-29 16:43:07 -08:00
Apple
ec9ff3e633
feat(governance): Migrate Governance Engine to Next.js (apps/web)
...
BREAKING: Replace old MicroDAO voting with Agent Governance Engine
## New Files
- apps/web/src/lib/types/governance.ts
- apps/web/src/lib/api/governance.ts
- apps/web/src/lib/api/audit.ts
- apps/web/src/lib/api/incidents.ts
- apps/web/src/components/governance/GovernanceLevelBadge.tsx
- apps/web/src/components/governance/ReportButton.tsx
- apps/web/src/components/governance/CityGovernancePanel.tsx
- apps/web/src/components/governance/AuditDashboard.tsx
- apps/web/src/components/governance/IncidentsList.tsx
- apps/web/src/app/audit/page.tsx
- apps/web/src/app/incidents/page.tsx
## Updated Files
- apps/web/src/app/governance/page.tsx - New City Governance UI
- apps/web/src/components/Navigation.tsx - Shield icon for Governance
## Task
docs/tasks/TASK_PHASE_GOVERNANCE_MIGRATION_NEXTJS.md
2025-11-29 16:41:28 -08:00
Apple
2008332ce1
feat(governance): Integrate ReportButton across UI
...
- Add ReportButton to CityRoomView header
- Add ReportButton to AgentCabinet header
- Add GOVERNANCE link to main Navigation
- Import Shield icon from lucide-react
2025-11-29 16:18:43 -08:00
Apple
91a4c6be5b
feat(governance): District & MicroDAO Governance Panels
...
- Add DistrictGovernancePanel component
- Add MicroDAOGovernancePanel component with team management
- Add /governance/district/:id route
- Add /governance/microdao/:id route
- Seed City Governance Agents on NODE1
2025-11-29 16:16:42 -08:00
Apple
57749ac10c
docs: Update TASK_PHASE_GOVERNANCE_ENGINE checklist
2025-11-29 16:06:45 -08:00
Apple
bef55b2aa6
feat(governance): Frontend integration and pages
...
- Integrate GovernanceRolesBlock into AgentCabinet
- Add ReportButton component for creating incidents
- Add GovernancePage with tabs (City/Audit/Incidents)
- Add /governance route to App.tsx
- Export governance components from index.ts
2025-11-29 16:06:17 -08:00
Apple
e233d32ae7
feat(governance): Governance Engine MVP implementation
...
- Backend:
- Migration 032: agent_gov_level, status, incidents, permissions tables
- Domain types for governance layer
- Permission Engine with all governance checks
- Governance Service (promote/demote/roles)
- Revocation Service (revoke/suspend/reinstate)
- Audit Service (events filtering and stats)
- Incidents Service (create/assign/escalate/resolve)
- REST API routes for governance, audit, incidents
- Frontend:
- TypeScript types for governance
- API clients for governance, audit, incidents
- GovernanceLevelBadge component
- CityGovernancePanel component
- AuditDashboard component
- IncidentsList component with detail modal
Based on: Agent_Governance_Protocol_v1.md
2025-11-29 16:02:06 -08:00
Apple
2627205663
feat(governance): Agent Governance Protocol v1 - Constitution of DAARION.city
2025-11-29 15:44:05 -08:00
Apple
93a736c8fc
feat(dais): DAIS Layer Architecture v1
...
## DAIS = DAARION Agent Identity System
- Complete architecture document for agent identity
- DAIS Identity = паспорт + сім-карта + soulbound-token
- Trust Levels: guest → agent → verified → orchestrator → operator
- Keys: ed25519, x25519, secp256k1 (future: PQC)
- Wallet: Polygon, TON, Ethereum
- Lifecycle: Creation → Issuance → Keys → Wallet → Assignment → Execution → Promotion → Revocation
## Key concepts:
- Every agent = digital personality with DAIS
- DAIS connects all layers: City, District, MicroDAO, Nodes, Rooms
- Foundation for Governance and Permissions
- Web3/SIWE ready
Doc #14 in foundation series
2025-11-29 15:40:30 -08:00
Apple
0eec1c5171
feat(district): District Interface Architecture v1
...
## Documentation
- District_Interface_Architecture_v1.md - повна архітектура District Layer
- District Space, Campus Map, Sub-DAOs, Portals
- Золотий трикутник: City → District → MicroDAO
## Database
- Migration 028: District rooms for Energyunion & GREENFOOD
- Portal rooms on City Square
## Frontend
- src/api/districts.ts - Districts API client
- DistrictDashboard.tsx - District Dashboard UI component
## Key concepts:
- District = MicroDAO type='district'
- District Lead Agent (Helion, ERP-Agent)
- Campus Map (2D)
- Sub-DAOs management
- District-to-City portals
2025-11-29 15:36:48 -08:00
Apple
7b91c8e83c
feat(foundation): FOUNDATION_UPDATE implementation
...
## Documentation (20 files)
- DAARION Ontology Core v1 (Agent → MicroDAO → Node → District)
- User Onboarding & Identity Layer (DAIS)
- Data Model UPDATE, Event Catalog, Governance & Permissions
- Rooms Layer, City/MicroDAO/Agents/Nodes Interface Architecture
- Helper files: ontology-summary, lifecycles, event-schemas
## Database Migration (027)
- DAIS tables: dais_identities, dais_emails, dais_wallets, dais_keys
- agent_assignments table for Assignment Layer
- rooms table for Rooms Layer
- event_outbox for NATS event delivery
- New enums: agent_role, microdao_type, node_kind, node_status, etc.
- Updated agents, microdaos, nodes tables with ontology fields
## Backend
- DAIS service & routes (/api/v1/dais/*)
- Assignment service & routes (/api/v1/assignments/*)
- Domain types for DAIS and Ontology
## Frontend
- Ontology types (Agent, MicroDAO, Node, DAIS, Assignments)
- API clients for DAIS and Assignments
- UI components: DaisProfileCard, AssignmentsPanel, OntologyBadge
Non-breaking update - all existing functionality preserved.
2025-11-29 15:24:38 -08:00
Apple
deeaf26b0b
fix: remove unused auth0 import from orchestrator-team route
2025-11-29 05:21:35 -08:00
Apple
31778a2977
fix: add crew_info to AgentProfile type
2025-11-29 05:20:30 -08:00
Apple
8bf898153a
fix: add missing Button UI component for daarion-web build
2025-11-29 05:19:20 -08:00
Apple
a6e531a098
fix: NODE1_REPAIR - healthchecks, dependencies, SSR env, telegram gateway
...
TASK_PHASE_NODE1_REPAIR:
- Fix daarion-web SSR: use CITY_API_BASE_URL instead of 127.0.0.1
- Fix auth API routes: use AUTH_API_URL env var
- Add wget to Dockerfiles for healthchecks (stt, ocr, web-search, swapper, vector-db, rag)
- Update healthchecks to use wget instead of curl
- Fix vector-db-service: update torch==2.4.0, sentence-transformers==2.6.1
- Fix rag-service: correct haystack imports for v2.x
- Fix telegram-gateway: remove msg.ack() for non-JetStream NATS
- Add /health endpoint to nginx mvp-routes.conf
- Add room_role, is_public, sort_order columns to city_rooms migration
- Add TASK_PHASE_NODE1_REPAIR.md and DEPLOY_NODE1_REPAIR.md docs
Previous tasks included:
- TASK 039-044: Orchestrator rooms, Matrix chat cleanup, CrewAI integration
2025-11-29 05:17:08 -08:00
Apple
0bab4bba08
feat: TASK 038 - Node Guardian & Steward Integration
...
- Backend: Added dynamic discovery of node agents in repo_city.py
- Backend: Created seed SQL for agent types
- Frontend: Added NodeGuardianCard component
- Frontend: Integrated NodeGuardianCard into Node Dashboard / Profile
2025-11-29 01:46:38 -08:00
Apple
aee8bf00ff
fix: add compact prop to CityChatWidget and build fix
2025-11-29 01:37:59 -08:00
Apple
3ccc0e2d43
feat: TASK 037A/B - MicroDAO Multi-Room Cleanup & UI Polish
...
TASK 037A: Backend Consistency
- Added db/sql/037_microdao_agent_audit.sql
- Added services/city-service/tools/fix_microdao_agent_consistency.py
- Updated repo_city.get_public_citizens with stricter filtering (node_id, microdao_membership)
- Updated PublicCitizenSummary model to include home_microdao and primary_city_room
- Updated NodeProfile model and get_node_by_id to include microdaos list
TASK 037B: UI Polish
- Updated MicrodaoRoomsSection with role-based colors/icons and mini-map
- Updated /microdao/[slug] with new Hero Block (badges, stats, orchestrator)
- Updated /citizens/[slug] with MicroDAO cross-link in DAIS profile
- Updated /nodes/[nodeId] with MicroDAO Presence section
2025-11-29 01:35:54 -08:00
Apple
86f5b58de5
fix: import CityRoomSummary at top of routes_city.py
2025-11-29 01:09:30 -08:00
Apple
3f41d0e0a2
feat: TASK 034-036 - MicroDAO Multi-Room Support
...
TASK 034: MicroDAO Multi-Room Backend
- Added migration 031_microdao_multi_room.sql
- Extended city_rooms with microdao_id, room_role, is_public, sort_order
- Added CityRoomSummary, MicrodaoRoomsList, MicrodaoRoomUpdate models
- Added get_microdao_rooms, get_microdao_rooms_by_slug functions
- Added attach_room_to_microdao, update_microdao_room functions
- Added API endpoints: GET/POST/PATCH /city/microdao/{slug}/rooms
TASK 035: MicroDAO Multi-Room UI
- Added proxy routes for rooms API
- Extended CityRoomSummary type with multi-room fields
- Added useMicrodaoRooms hook
- Created MicrodaoRoomsSection component with role labels/icons
TASK 036: MicroDAO Room Orchestrator Panel
- Created MicrodaoRoomsAdminPanel component
- Role selector, visibility toggle, set primary button
- Attach existing room form
- Integrated into /microdao/[slug] page
2025-11-29 01:07:15 -08:00
Apple
20dddd9051
fix: add guardian_agent and steward_agent to NodeProfile API response
2025-11-28 14:12:32 -08:00
Apple
0c251d67fd
fix: add DATABASE_URL, REDIS_URL, NATS_URL to city-service docker-compose
2025-11-28 14:07:48 -08:00
Apple
773a955ecc
feat: TASK 031-033 - Node Guardian/Steward + Agent & MicroDAO Chat Widgets
...
TASK 031: Node Agents Discovery
- Documented existing Monitor agents (NODE1, NODE2)
- Created NODE_AGENTS_INVENTORY.md
TASK 032: Node Guardian/Steward Formalize
- Added migration 030_node_guardian_steward.sql
- Added is_node_guardian, is_node_steward to agents
- Added guardian_agent_id, steward_agent_id to node_cache
- Updated repo_city.py for guardian/steward in node queries
- Added NodeAgentsPanel component for Node Dashboard
TASK 033: Agent & MicroDAO Chat Widgets
- Added CityRoomSummary model
- Added primary_city_room to AgentDashboard API
- Added primary_city_room to MicrodaoDetail API
- Added get_microdao_primary_room() function
- Updated Agent Console with Matrix chat section
- Updated MicroDAO page with public chat section
- Reused existing CityChatWidget component
2025-11-28 13:51:51 -08:00
Apple
4d7c4b9744
fix: auto-set public_slug for orchestrators when creating MicroDAO
2025-11-28 11:07:08 -08:00
Apple
9a74096708
fix: add fallback URLs to all proxy routes
2025-11-28 10:53:28 -08:00
Apple
3426604209
fix: update proxy routes to use correct internal API URL
2025-11-28 10:48:11 -08:00
Apple
4051c23b1c
fix: allow null in AgentMicrodaoMembership role
2025-11-28 10:27:11 -08:00
Apple
ed6c7ae909
fix: unify microdao types imports
2025-11-28 10:26:12 -08:00
Apple
3f53038cf7
fix: restore microdao api functions and update types
2025-11-28 10:25:03 -08:00
Apple
cbd5b2f731
fix: resolve Next.js route conflict in microdao api
2025-11-28 10:23:15 -08:00
Apple
c7924570c1
fix: add migration for microdao is_public and update visibility scopes
2025-11-28 10:20:17 -08:00
Apple
69cc76fe00
feat: implement Task 029 (Agent Orchestrator & Visibility Flow)
2025-11-28 10:19:13 -08:00
Apple
1327295ff8
fix: update cleanup allowlist based on DB report
2025-11-28 09:25:21 -08:00
Apple
e46d026cf2
debug: add logging to mark_test_entities.py
2025-11-28 09:25:04 -08:00
Apple
4286d64f05
feat: add data cleanup scripts and config (Task 027)
2025-11-28 09:22:57 -08:00
Apple
d58347a890
fix: remove duplicate AgentMicrodaoMembership definition
2025-11-28 09:17:27 -08:00
Apple
4268936269
fix: use export type for isolatedModules
2025-11-28 09:16:40 -08:00
Apple
d367e93d36
fix: update visibility scope types to global/private
2025-11-28 09:15:47 -08:00
Apple
b787f3812a
fix: add model field to AgentProfile
2025-11-28 09:14:03 -08:00
Apple
884df75282
fix: add public_slug to AgentProfile
2025-11-28 09:12:55 -08:00
Apple
ce8429d392
fix: add missing fields to AgentProfile
2025-11-28 09:11:49 -08:00
Apple
909d1cb314
fix: add avatar_url to AgentProfile for dashboard
2025-11-28 09:10:34 -08:00
Apple
acc06f41d3
feat: UI alignment - Agent Console, Citizens, MicroDAO Dashboard (TASK 2)
2025-11-28 09:09:00 -08:00
Apple
37e1c8abbe
feat: align agent/microdao model - add is_orchestrator, is_platform, hierarchy
2025-11-28 08:34:14 -08:00
Apple
66d2c019ff
docs: add data cleanup report
2025-11-28 08:18:23 -08:00
Apple
47442b801f
feat: data cleanup - soft delete test agents and microdaos
2025-11-28 08:16:56 -08:00
Apple
bd3d756de9
fix: add get_agent_prompts and get_agent_public_profile methods
2025-11-28 08:07:20 -08:00