Fixes Applied

1. Transaction Rollback Bug

  File: roboco/services/optimal_brain/indexes/base.py
  - Changed: On transaction error, now closes and reconnects instead of just rollback
  - Before: conn.rollback() (didn't fully reset connection state)
  - After: conn.close() + store._init_schema() (forces fresh connection)

  2. Docs Directory Path

  Files:
  - roboco/services/optimal.py - Added /app/docs as first path to check
  - docker/orchestrator.Dockerfile - Added COPY docs /app/docs

  3. Shared SentenceTransformer

  Files:
  - Created roboco/services/optimal_brain/shared_embedder.py - Singleton holder
  - Modified roboco/services/optimal_brain/indexes/base.py - Uses shared embedder
  - Modified roboco/services/optimal.py - Closes shared embedder on shutdown
This commit is contained in:
Renn F
2025-12-27 22:05:07 +01:00
parent 1116e597d0
commit ecc049684d
4 changed files with 113 additions and 5 deletions
+2
View File
@@ -41,6 +41,8 @@ COPY roboco /app/roboco
# These are composed at runtime by compose_prompt() when spawning agents
COPY agents /app/agents
COPY docker /app/docker
# docs/ contains standards and workflows for RAG auto-indexing
COPY docs /app/docs
COPY pyproject.toml uv.lock alembic.ini README.md /app/
COPY alembic /app/alembic