{"key":"homelab_ai_platform_bootstrap_state_2026_04_03","title":"Homelab AI Platform Bootstrap State","content":"Homelab AI Platform bootstrap state as of 2026-04-03.\n\n## Completed (Workstream 1 — Core Data and Config Backbone)\n\n- Workspace scaffolded at `/home/svc-admin/ai-platform/` on svc-ai\n  - Layout: config/, config/environments/, runtime/, runtime/providers/codex, runtime/providers/gemini, logs/, artifacts/, backups/, tmp/, secrets/\n  - Scaffolded by `scripts/bootstrap/init_workspace.py`\n- Secrets directory locked down (chmod 700)\n- DB password generated with openssl and stored at `/home/svc-admin/ai-platform/secrets/platform_db_password` (chmod 600)\n- `homelab_ai_platform` database created on svc-db-01 (192.168.4.113) with dedicated `platform_runtime` role\n- Full platform schema applied — 22 tables, 11 indexes\n  - Applied via `scripts/migrations/init_platform_schema.py --apply --db-url`\n  - All tables from POSTGRES_SCHEMA.md are live: provider_families, personas, agents, agent_aliases, projects, team_presets, team_preset_agents, team_preset_memory_namespaces, rooms, room_policy_overrides, room_roster_memberships, backend_sessions, invocations, turn_decisions, tasks, artifacts, evidence_references, memory_namespaces, canonical_memories, memory_contributions, surface_message_refs, audit_events\n- `local.env` generated at `/home/svc-admin/ai-platform/config/environments/local.env` and corrected for this deployment:\n  - PLATFORM_DB_HOST=192.168.4.113 (remote svc-db-01, not 127.0.0.1)\n  - PLATFORM_BRAIN_API_URL=http://127.0.0.1:5000 (ContextKeep REST API, not placeholder port 8001)\n- `validate_project_state.py` passes clean\n\n## Environment Facts Confirmed During Bootstrap\n\n- This machine is svc-ai (192.168.4.117)\n- ContextKeep REST API: http://127.0.0.1:5000 (web UI + REST)\n- ContextKeep MCP SSE endpoint: http://127.0.0.1:5100\n- Gramps MCP Server: http://127.0.0.1:8000 (unrelated, genealogy project)\n- Ergo IRC server: running bare metal as systemd user service, ~/.config/systemd/user/ergo-irc.service, ports 6667/6697\n- irc-openclaw-bridge: running bare metal as systemd user service at ~/ai-projects/projects/irc-openclaw-bridge/dist/src/index.js, health on http://127.0.0.1:3000/health\n- Bridge uses its own separate database: irc_openclaw_bridge on svc-db-01, owned by irc_bridge role\n- Bridge currently handles codex and gemini agents in #codex, #gemini, #all-models rooms\n\n## Next Step\n\nWorkstream 2: Runtime adapter layer\n- Provider adapter interface for Codex and Gemini CLIs\n- Session persistence model wired to the platform schema\n- Orchestration core foundation (room state, roster, turn selection)\n\n## Project Reference\n\n- Architecture docs: /home/svc-admin/ai-projects/projects/homelab_ai_platform_architecture/\n- Platform workspace: /home/svc-admin/ai-platform/\n- Existing bridge (reference/predecessor): /home/svc-admin/ai-projects/projects/irc-openclaw-bridge/\n","summary":"Homelab AI Platform bootstrap state as of 2026-04-03.\n\n## Completed (Workstream 1 — Core Data and Config Backbone)\n\n- Workspace scaffolded at `/home/svc-admin/ai-platform/` on svc-ai\n  - Layout: config/, config/environments/, runtime/, runtime/providers/codex, runtime/providers/gemini, logs/, artifacts/, backups/, tmp/, secrets/\n  - Scaffolded by `scripts/bootstrap/init_workspace.py`\n- Secrets directory locked down (chmod 700)\n- DB password generated with openssl and stored at `/home/svc-admin/ai-platform/secrets/platform_db_password` (chmod 600)\n- `homelab_ai_platform` database created on svc-db-01 (192.168.4.113) with dedicated `platform_runtime` role\n- Full platform schema applied — 22 tables, 11 indexes\n  - Applied via `scripts/migrations/init_platform_schema.py --apply --db-url`\n  - All tables from POSTGRES_SCHEMA.md are live: provider_families, personas, agents, agent_aliases, projects, team_presets, team_preset_agents, team_preset_memory_namespaces, rooms, room_policy_overrides, room_roster_memberships, backend_sessions, invocations, turn_decisions, tasks, artifacts, evidence_references, memory_namespaces, canonical_memories, memory_contributions, surface_message_refs, audit_events\n- `local.env` generated at `/home/svc-admin/ai-platform/config/environments/local.env` and corrected for this deployment:\n  - PLATFORM_DB_HOST=192.168.4.113 (remote svc-db-01, not 127.0.0.1)\n  - PLATFORM_BRAIN_API_URL=http://127.0.0.1:5000 (ContextKeep REST API, not placeholder port 8001)\n- `validate_project_state.py` passes clean\n\n## Environment Facts Confirmed During Bootstrap\n\n- This machine is svc-ai (192.168.4.117)\n- ContextKeep REST API: http://127.0.0.1:5000 (web UI + REST)\n- ContextKeep MCP SSE endpoint: http://127.0.0.1:5100\n- Gramps MCP Server: http://127.0.0.1:8000 (unrelated, genealogy project)\n- Ergo IRC server: running bare metal as systemd user service, ~/.config/systemd/user/ergo-irc.service, ports 6667/6697\n- irc-openclaw-bridge: running bare metal as systemd user service at ~/ai-projects/projects/irc-openclaw-bridge/dist/src/index.js, health on http://127.0.0.1:3000/health\n- Bridge uses its own separate database: irc_openclaw_bridge on svc-db-01, owned by irc_bridge role\n- Bridge currently handles codex and gemini agents in #codex, #gemini, #all-models rooms\n\n## Next Step\n\nWorkstream 2: Runtime adapter layer\n- Provider adapter interface for Codex and Gemini CLIs\n- Session persistence model wired to the platform schema\n- Orchestration core foundation (room state, roster, turn selection)\n\n## Project Reference\n\n- Architecture docs: /home/svc-admin/ai-projects/projects/homelab_ai_platform_architecture/\n- Platform workspace: /home/svc-admin/ai-platform/\n- Existing bridge (reference/predecessor): /home/svc-admin/ai-projects/projects/irc-openclaw-bridge/\n","status":"active","namespace":"projects","namespace_name":"projects","namespace_tier":"shared","tags":[]}