You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor: Extract raw SQL from routers/git.py to db layer (Invariant #1) #451
src/backend/routers/git.py:315 executes raw SQL directly against the DB, bypassing the service/db layer. Violates Architectural Invariant #1 (Three-Layer Backend: Router → Service → DB).
db.execute_query("DELETE FROM agent_git_config WHERE agent_name = ?", (agent_name,))
Context: orphan cleanup when agent has a DB row but no git config in the container.
Scope
Add a delete_agent_git_config(agent_name) operation to src/backend/db/git.py (or equivalent operations class used by git_service).
Call it from routers/git.py instead of the raw db.execute_query(...).
No behavior change.
Out of scope
Process engine router SQL (routers/processes.py, routers/triggers.py) — the Process Engine is dormant and explicitly out of scope (see CLAUDE.md). Those violations stay as-is until Process Engine is resumed or removed.
Acceptance Criteria
No raw SQL in routers/git.py — all DB access goes through db/ or a service
Activity
refactor(git): route orphan cleanup through db.delete_git_config (#451)…
vybe commentedon Apr 27, 2026
Closed by merged PR.
Release: v0.5.0 (#608)
feat(workspace): New chat means a new chat (ent#451 — the fresh-threa…
Release: v0.9.5 (#2872)