Commit Graph

290 Commits

Author SHA1 Message Date
Apple
9b9a72ffbd feat: full node isolation - use node-specific swapper_url and router_url from DB
- Add migration 041_node_local_endpoints.sql
- Add get_node_endpoints() to repo_city.py
- Update routes_city.py to use DB endpoints instead of hardcoded URLs
- Update node-guardian-loop.py to use NODE_SWAPPER_URL/NODE_ROUTER_URL env vars
- Update launchd plist for NODE2 with router URL
2025-12-01 08:01:53 -08:00
Apple
b25e002db6 feat: add logging for node isolation debugging in node-guardian 2025-12-01 07:35:37 -08:00
Apple
31c4da2b54 fix: add is_pinned and pinned_weight to MicrodaoSummary model and API 2025-12-01 07:28:02 -08:00
Apple
ce973b2b38 feat: add MicroDAO pinning - 4 platform districts always on top 2025-12-01 07:26:35 -08:00
Apple
092346f057 fix: use normalizeAssetUrl for banner 2025-12-01 07:09:55 -08:00
Apple
9e7b1f25ef fix: add node button visibility, fix node-guardian swapper health check, fix banner URL transform 2025-12-01 07:08:36 -08:00
Apple
8e14750f8b fix: discover_node_state.py global variable scope, add generated node state files 2025-12-01 06:50:48 -08:00
Apple
f5c58358a0 feat: add 'Додати ноду' button to Node Directory, create /nodes/register page, add node discovery script 2025-12-01 06:47:27 -08:00
Apple
d5aae67b50 fix: remove duplicate API route, add dynamic export to swapper route 2025-12-01 06:26:57 -08:00
Apple
fbf17be668 fix: normalize MicroDAO logo URLs using helper function 2025-12-01 06:23:54 -08:00
Apple
c68935d3a3 fix: simplify get_node_agents query to use existing columns 2025-12-01 06:07:41 -08:00
Apple
9640fd5a75 fix: remove duplicate get_dagi_router_agents function 2025-12-01 06:06:35 -08:00
Apple
909258fdcb fix: DAGI Router agents logic, MicroDAO logo URL handling 2025-12-01 06:03:08 -08:00
Apple
e3accd4df0 feat: DAGI Router v2 - new endpoints, hooks, and UI card 2025-12-01 05:21:43 -08:00
Apple
53f31adbf0 feat: add logo display in MicroDAO cards and hero section, add banner background support 2025-12-01 04:34:26 -08:00
Apple
0f32630733 fix: use CASE instead of COALESCE for swapper_state to always update when provided 2025-12-01 04:12:38 -08:00
Apple
d8ab32b59f fix: add beforeFiles to rewrites config 2025-12-01 04:07:59 -08:00
Apple
6ebdaac25d fix: use afterFiles/fallback rewrites to allow Next.js API routes to work 2025-12-01 04:06:51 -08:00
Apple
2589f2d99d fix: rename /api/internal/ to /api/node-internal/ to avoid routing issues 2025-12-01 04:00:38 -08:00
Apple
b55c59b9d1 fix: rename _debug to debug (Next.js ignores underscore prefixes) 2025-12-01 03:45:30 -08:00
Apple
1a81cf75f1 feat: add unified API proxy layer, debug endpoint, and systemd service for node-guardian 2025-12-01 03:43:06 -08:00
Apple
b3e3c6417d fix: update Swapper endpoints (/health, /models), remove upload size limits, auto-convert images 2025-12-01 03:03:27 -08:00
Apple
9c79b6e526 fix: add static files proxy and improve upload URL handling 2025-12-01 02:45:07 -08:00
Apple
7843ff3d86 fix: improve error handling for swapper and upload APIs 2025-12-01 02:41:35 -08:00
Apple
d4e20ea513 feat: add MicroDAO branding and Agent avatar upload UI 2025-12-01 02:26:02 -08:00
Apple
95b75d5897 fix: export StatusBadge from node-dashboard 2025-12-01 02:21:07 -08:00
Apple
dcc9ec0b39 fix: next15 api route params must be Promise 2025-12-01 02:19:57 -08:00
Apple
394dd62980 feat: add swapper api proxy and improved card 2025-12-01 02:18:14 -08:00
GitHub Action
f0d113e234 docs: auto-update repository information [skip ci] 2025-12-01 09:30:48 +00:00
Apple
135e8ed83c fix: suppress expected swapper connection errors in guardian loop 2025-11-30 15:41:42 -08:00
Apple
281c79f916 feat: implement swapper metrics and node cabinet ui 2025-11-30 15:40:41 -08:00
Apple
cb9efaf656 fix: import Swapper models in routes_city 2025-11-30 15:26:42 -08:00
Apple
4f123ae79b fix: update deploy script to avoid container conflicts 2025-11-30 15:25:37 -08:00
Apple
cbaaed5e23 fix: fix backend files and add swapper functionality 2025-11-30 15:19:11 -08:00
Apple
fd814b2059 feat: implement Swapper metrics collection and UI 2025-11-30 15:12:49 -08:00
Apple
5b5160ad8b fix: correct API endpoints in node-guardian-loop script 2025-11-30 15:01:06 -08:00
Apple
4ae9ee4d70 fix: allow healthy status in invariants check 2025-11-30 14:53:53 -08:00
Apple
a8617df1d0 fix: check /health instead of /healthz in invariants script 2025-11-30 14:53:17 -08:00
Apple
5c1d7d15f9 fix: correct API endpoints in verification scripts 2025-11-30 14:51:59 -08:00
Apple
6d4f9ec7c5 feat: add post-deploy verification checklist and script 2025-11-30 14:47:27 -08:00
Apple
25defcdb36 fix: cast all microdao_id to text in joins and where clauses 2025-11-30 14:37:29 -08:00
Apple
ac2de7cdd1 fix: remove debug try-except block 2025-11-30 14:31:51 -08:00
Apple
941f12cc0e fix: catch microdao fetch error in get_node_by_id 2025-11-30 14:30:04 -08:00
Apple
4e90b5153b fix: cast microdao_id to text in join 2025-11-30 14:27:39 -08:00
Apple
5e4228b81a fix: mount agents router under /api/v1 2025-11-30 14:09:32 -08:00
Apple
b2240f5314 fix: make deploy script robust 2025-11-30 14:07:28 -08:00
Apple
d71da0bae3 fix: restore DB script and migrations 2025-11-30 14:06:45 -08:00
Apple
534bd72183 ops: add DB restore and deploy script 2025-11-30 14:05:55 -08:00
Apple
1830109a95 feat: Agent System Prompts MVP (B) - database, backend API, and frontend integration 2025-11-30 14:04:48 -08:00
Apple
bca81dc719 feat: Node Self-Healing, DAGI Audit, Agent Prompts, Infra Invariants
### Backend (city-service)
- Node Registry + Self-Healing API (migration 039)
- Improved get_all_nodes() with robust fallback for node_registry/node_cache
- Agent Prompts Runtime API for DAGI Router integration
- DAGI Router Audit endpoints (phantom/stale detection)
- Node Agents API (Guardian/Steward)
- Node metrics extended (CPU/GPU/RAM/Disk)

### Frontend (apps/web)
- Node Directory with improved error handling
- Node Cabinet with metrics cards
- DAGI Router Card component
- Node Metrics Card component
- useDAGIAudit hook

### Scripts
- check-invariants.py - deploy verification
- node-bootstrap.sh - node self-registration
- node-guardian-loop.py - continuous self-healing
- dagi_agent_audit.py - DAGI audit utility

### Migrations
- 034: Agent prompts seed
- 035: Agent DAGI audit
- 036: Node metrics extended
- 037: Node agents complete
- 038: Agent prompts full coverage
- 039: Node registry self-healing

### Tests
- test_infra_smoke.py
- test_agent_prompts_runtime.py
- test_dagi_router_api.py

### Documentation
- DEPLOY_CHECKLIST_2024_11_30.md
- Multiple TASK_PHASE docs
2025-11-30 13:52:01 -08:00