Skip to content

Complete governed NL2SQL platform: benchmark, demos, multi-DB adapters, review fixes - #19

Merged
lanerchenbuna merged 3 commits into
mainfrom
chore/repository-cleanup
Sep 17, 2026
Merged

lanerchenbuna merged 3 commits into
mainfrom
chore/repository-cleanup

Conversation

@lanerchenbuna

Copy link
Copy Markdown
Owner

Summary

Completes the QueryForge optimization programme and hardens the platform.

Phase 6

  • Agent benchmark: 32 gold tasks across 3 independent schemas, an isolated recomputable evaluator, feature ablation, and a three-tier CI gate (deterministic offline / optional-dependency integration / opt-in real-model eval).
  • End-to-end demos: docs/demo/ — five narrated, asserting scripts (make demo) covering upload→publish→query, semantic catching of wrong SQL, multi-step analysis, transports/refusal/recovery, and the API/repair/attribution loop.
  • Database adapters: a frozen DatabaseAdapter contract plus a verified DuckDB backend and a PostgreSQL backend (implemented; server-backed conformance is DSN-gated and not run in this environment).

Independent-review fixes
Gateway terminal contracts, /analyze transport allowlist, CLI index policy, cancellation/terminal persistence, retrieval-scope governance (write/read agreement, fail-closed filtering, source-type candidate constraints, delete guards), concurrent usage accounting, session governance (REST/CLI wiring + version refs), planner observability (spans/usage/latency), Studio SSE consumption.

Verification

  • python -m unittest discover -s tests -q: 852 tests OK (24 skipped) — the 24 skips are the PostgreSQL DSN-gated conformance (no live server here).
  • python scripts/run_acceptance.py --full: 13/13.
  • make demo: 5/5, 80 assertions.
  • Agent benchmark tier 1: 32/32; check_repository.py: 0 errors; semantic drift: 82/82.

Honest gaps (not hidden)

  • No real-model accuracy numbers (tier 3 requires credentials and is reported separately).
  • PostgreSQL backend is implemented but unverified against a live server.
  • Embedding usage is not counted in cost; trace retention/access policy not implemented.

Development-process docs (optimization plan, per-step prompts, acceptance records) were removed from the repository at the request of the author.

…atabase adapters

- Phase 6: agent benchmark (32 gold tasks, 3 schemas, isolated evaluator, ablation,
  tier 1/2/3 gates), end-to-end demos (docs/demo, 5 narrated+asserting scripts),
  database adapter contract + DuckDB and PostgreSQL backends.
- Independent review fixes: gateway/terminal contracts, transport allowlist,
  retrieval-scope governance, concurrent usage accounting, session governance,
  planner observability (spans/usage/latency), Studio SSE consumption.
- Honest gaps recorded: no real-model accuracy numbers; PostgreSQL backend
  implemented but unverified without a live server.
- Remove development-process docs (optimization plan/prompts/acceptance records).
…s/demo

The offline-acceptance jobs install only core dependencies, so demo D (REST)
and demo E (HTTP upload) failed with ModuleNotFoundError instead of skipping,
and the integration job still invoked the removed scripts/demo_data_agent.py.
@lanerchenbuna
lanerchenbuna merged commit 137c895 into main Sep 17, 2026
10 checks passed
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.

1 participant