feat: containerize DeepSQL Agent as fifth Compose service - #44
Merged
Conversation
Enterprise self-host no longer needs a host-side agent runtime. The new `deepsql-agent` service (agent/Dockerfile) serves the Agent tab, AI dashboards, Slack/CLI agent turns, and per-user profile provisioning on the compose network (:8787 / :8788). - Add agent/Dockerfile + docker-entrypoint.sh (DeepSQL-branded surface) - Wire deepsql-agent into docker-compose.yml; nginx proxies /agent-api to it - Default AGENT_WEBUI_URL / AGENT_PROVISIONER_URL to deepsql-agent - install.sh generates AGENT_PROVISION_SECRET and builds the agent image - Host setup-agent.sh remains for native/dev only (opt-in) - Docs, smoke-test, and status scripts refer to DeepSQL Agent throughout Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
Customer-style install.sh + DEEPSQL_SEED_DEMO_DATA uncovered several silent failures: - demo_shop orders aborted on float||' hours' interval casts (scientific notation); seed treated any existing DB as complete and used sslMode "disable" (treated as SSL-on) so the connection never saved - Agent trusted-auth ignored X-Remote-User from the compose bridge without HERMES_WEBUI_TRUSTED_PROXY_CIDRS; browser POSTs also needed csrf_token from /api/auth/status for the React Agent tab Verified: five containers healthy, smoke-test green, Demo Shop query returns 5000 orders, Agent profile/switch + session/new OK. Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
cursor
Bot
force-pushed
the
cursor/deepsql-agent-container-c497
branch
from
August 12, 2026 03:09
832d991 to
d34c8c5
Compare
Re-login when JWT expires during brain-init wait, send Hermes CSRF on browser-origin agent-api POSTs, and assert current_database() against the selected connection instead of hardcoding dba_agent. Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
venkateshsakamuri-lab
marked this pull request as ready for review
August 13, 2026 07:07
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Containerizes DeepSQL Agent as a fifth Compose service and hardens self-host install/demo-seed/agent paths so a fresh OSS install works end-to-end.
Test plan / results (pre-merge)
CI on prior tip
d34c8c5(same feature commits): all required checks green — backend compile/package, docker compose build, frontend build, frontend lint (advisory), mcp syntax, backend tests (advisory).Local re-verification on this branch (including harness follow-up
67697c1):ApiSmokeTest— PASS (3/3)scripts/self-host/smoke-test.shwithDEEPSQL_SMOKE_WAIT_FOR_INIT=false— PASS (connection + agent nginx/profile/session paths)scripts/self-host/e2e-agent-check.pyagainst Demo Shop — PASS (AGENT_OK+DASH_OK)Harness fixes in this PR tip:
/agent-apiPOSTscurrent_database()against the selected connection (not hardcodeddba_agent)Notes
main.AgentOrchestratorTest.execute_emitsLiveProgressEventsAndAppliesApprovedWorkflow(not touched by this PR; CI backend suite is advisory/continue-on-error).