Skip to content

feat(oss): E2E fix proposal MVP — multi-schema Brain, Agent auth, onboarding - #48

Merged
cursor[bot] merged 4 commits into
mainfrom
cursor/oss-e2e-fix-pipeline-c497
Aug 13, 2026
Merged

feat(oss): E2E fix proposal MVP — multi-schema Brain, Agent auth, onboarding#48
cursor[bot] merged 4 commits into
mainfrom
cursor/oss-e2e-fix-pipeline-c497

Conversation

@venkateshsakamuri-lab

@venkateshsakamuri-lab venkateshsakamuri-lab commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements the minimum viable Sunday cut from docs/oss-ux/E2E_FIX_PROPOSAL.md (PR #47 handoff), on top of latest main (#44 agent container, #47 oss-ux docs).

Workstream What shipped
W2a/b Postgres Brain scans all non-system schemas; qualified keys; coverage gate + persisted stageDetails (liveUserTableCount, coveragePercent, schemasScanned); NEEDS_ATTENTION stage
W1 Provisioner writes deepsql.token + DEEPSQL_TOKEN_FILE; fail-loud provision; session MCP auth probe (mcpAuthOk); Agent boot banner; revoke clears disk token
W4 Brain STAGE_ORDER synced to InitStage; stepper → Add context on complete; jobs collapsed; coverage line in UI
W5 Index enrichment + skip UNINDEXED_* on PK/UK/TRUE_KEY
W3 thin /onboarding routed; login redirect when no connections; wizard payload matches ConnectionRequest
W6 Title DeepSQL; generic Agent suggestions; canonicalize dbType

Deferred: schema allow-list UI (W2c), fuller W7 smoke matrix, security S1–S5.

E2E results (Compose redeploy of this branch)

  • Backend compile
  • Rebuild + redeploy backend / frontend / deepsql-agent
  • e2e-agent-check.py on demo_shopAGENT_OK + DASH_OK
  • Multi-schema fixture crm+sales: objects API returns 3 tables across both schemas; Brain SCHEMA_SCAN reports liveUserTableCount=3, coveragePercent=100, schemasScanned=['crm','sales']
  • /onboarding → HTTP 200
  • POST /api/agent/session returns mcpAuthOk: true after login and after logout→login; deepsql.token present on agent profile
  • Self-host smoke (agent paths) PASS

PR tip: c1b7504

Open in Web Open in Cursor 

cursoragent and others added 4 commits August 13, 2026 08:24
Close the OSS launch blockers from docs/oss-ux/E2E_FIX_PROPOSAL.md:

- W2a/b: Postgres Brain scans all non-system schemas with qualified keys;
  coverage gate fails or NEEDS_ATTENTION instead of fake Complete 100%
- W1: provisioner writes DEEPSQL_TOKEN_FILE, fail-loud provision, MCP auth
  probe + Agent boot banner, revoke cleans disk token
- W4: Brain stage enum sync, stepper advances to Add context, jobs collapsed
- W5: index enrichment + skip UNINDEXED_* on PK/UK/TRUE_KEY
- W3 thin: /onboarding routed + redirect when no connections; payload fix
- W6: DeepSQL title, generic Agent suggestions, dbType canonicalize

Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
recordStageDetails only mutated the in-memory status handle; updateProgress
reloads from DB and dropped SCHEMA_SCAN coverage metrics. Write merged
stageDetails to the live row so W2b coverage is visible on init-status.

Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
Coverage gate can stop the pipeline at NEEDS_ATTENTION; without this,
onboarding and init polls stay in "running" forever. Shared initStage
helpers keep COMPLETED/FAILED/NEEDS_ATTENTION/ERROR consistent.

Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
@cursor
cursor Bot merged commit bcf8989 into main Aug 13, 2026
6 checks passed
@cursor
cursor Bot deleted the cursor/oss-e2e-fix-pipeline-c497 branch August 13, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants