Committed verbatim, per 00_MASTER_IMPLEMENTATION_CONTRACT.md’s own
instruction that every prompt in the 32-prompt series is executed against
that standing contract, not just the one that introduced it.
Act as a Principal Architect, senior engineer and enterprise product engineer responsible for safely extending an existing production-oriented AI platform.
Build the real frontend workflow for onboarding a client database.
Read 00_MASTER_IMPLEMENTATION_CONTRACT.md.
Then inspect the repository before changing code.
Inspect frontend framework, design system, routing, authentication, API client, job/progress patterns and onboarding APIs from Prompt 08.
Create a guided workflow: create/select tenant→select provider→secure connection/secret reference→test connection→start discovery→show progress→show schemas/tables/views/relationships→show profiling→show PII candidates→start semantic analysis→route ambiguous items to SME review→generate golden questions→run evaluation→publish. Use real backend APIs/jobs. Provide validation, retries, progress, errors, cancellation where supported and audit. Never display persisted passwords.
Test UI/API integration, authorization, retries, failure states, tenant isolation and responsive behavior.
An authorized admin can onboard a real SQL Server database through the UI without mock final data.
INSPECT → PLAN → IMPLEMENT → TEST → REVIEW → FIX → DOCUMENT → REPORT
Before broad implementation, present the implementation plan. After implementation, run relevant tests and fix regressions.
Report:
Inspection of Prompt 08’s backend (onboarding/, api/onboarding.py)
found the prompt’s own 14-step wizard outline does not map one-to-one
onto 10 real routes: “test connection” and “create job” are one call,
“start semantic analysis”/”generate golden questions” already happen
inside discovery, “run evaluation” already happens inside publish, there
is no “create/select tenant” step at all (tenant is server-resolved),
and discovery/publish are synchronous calls with no background worker,
so there is no incremental progress signal to poll. The resulting UI
(frontend/src/pages/DatabaseOnboarding.tsx) is built to match this
real shape exactly, with every one of these differences disclosed in
the page’s own docstring and in CLAUDE.md, rather than fabricating a
button, a tenant selector, or a fake progress bar for a step the backend
doesn’t actually have.
A real, necessary backend-adjacent fix was found during inspection:
vite.config.ts’s dev-server proxy list was missing /onboarding
entirely, which would have made every new API call fail in npm run
dev despite working in production. A real regression was found and
fixed during implementation, not merely avoided: an early version of the
new role-gated nav-tab selector returned a freshly-allocated array on
every Zustand store read, breaking React’s snapshot-equality check and
crashing the app shell outright — caught by this project’s own
pre-existing AppShell.test.tsx suite.
Permission gating is UX-only throughout, matching this codebase’s
already-stated principle (AuthGate.tsx’s own docstring) — every real
enforcement point stays server-side, unchanged.
See CLAUDE.md’s “Database Onboarding Portal” section for the full
design and every disclosed scope decision, and the session’s final
report for the complete INSPECT → REPORT accounting.