Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

feat(brain): graceful fallback + Open Brain startup protocol#122

Merged
Mikecranesync merged 2 commits intomainfrom
feat/open-brain-graceful-fallback
Mar 9, 2026
Merged

feat(brain): graceful fallback + Open Brain startup protocol#122
Mikecranesync merged 2 commits intomainfrom
feat/open-brain-graceful-fallback

Conversation

@Mikecranesync
Copy link
Copy Markdown
Owner

@Mikecranesync Mikecranesync commented Mar 5, 2026

Status: post-V1.1 — Resilience improvement, needed soon but not blocking V1.

Summary

  • brain_server.py: Checks for required env vars (NEON_DATABASE_URL, GEMINI_API_KEY, GROQ_API_KEY) at import time. Returns helpful error messages instead of crashing when env vars are missing.
  • CLAUDE.md: Added Open Brain startup protocol section (brain_search/brain_capture workflow) while preserving all existing CTO/safety content.
  • Backfill state: Added brain_backfill_state tracker for Telegram history ingestion progress.

Rescued from stale worktree-feat-open-brain branch (PR #115 closed — was 20+ commits behind main).

Note: Intentionally skipped the embedding_model_dims change (768→3072) from the original branch — needs investigation before changing.

Test plan

  • Run python services/mcp/brain_server.py without Doppler env vars — should warn, not crash
  • Verify CLAUDE.md has both CTO role + Open Brain startup protocol sections
  • Verify brain MCP tools return {"error": "..."} instead of stack traces when unconfigured

🤖 Generated with Claude Code

@Mikecranesync Mikecranesync added the post-v1 Deferred until after revenue bot ships label Mar 9, 2026
@Mikecranesync Mikecranesync force-pushed the feat/open-brain-graceful-fallback branch from 433ffad to f783769 Compare March 9, 2026 02:19
Mikecranesync and others added 2 commits March 8, 2026 22:20
- brain_server.py checks env vars at import, returns helpful errors instead of crashing
- All brain MCP tools wrapped in try/except for graceful degradation
- Added Open Brain startup protocol section to CLAUDE.md (brain_search/brain_capture workflow)
- Added brain backfill state tracker

Rescued from stale worktree-feat-open-brain branch (PR #115 closed).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- .serena/project.yml: register FactoryLM as Serena project with language servers
- .gitignore: exclude .serena/memories/ (local-only)
- agents/serena_agent.py: Agno-powered web UI agent using Claude
- scripts/start_serena_agent.sh: launch script for agent + Doppler secrets

On other machines: `claude plugin install serena` to enable MCP tools.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Mikecranesync Mikecranesync force-pushed the feat/open-brain-graceful-fallback branch from f783769 to 3437a2d Compare March 9, 2026 02:20
@Mikecranesync Mikecranesync merged commit ddf956b into main Mar 9, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

post-v1 Deferred until after revenue bot ships

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant