v0.9.0 — First-Class Business Domains
What's New
First-class business domains — domains are redesigned from a flat dict[str, list[str]] to a proper Domain model with name, summary, description, metrics, and optional tables. Agents now get business context for domain-specific questions.
Added
Domainmodel withname,summary,description,metrics, and optionaltableslookup_domaintool (12th tool) with fuzzy matching — returns full domain context, metrics with descriptions, and associated tables- Compact
<available_domains>in system prompt — progressive disclosure: prompt shows domain index,lookup_domaingives full context,lookup_metricgives SQL - Domain validation warnings at tool creation time for unknown metric/table references
get_domain()helper onDataContractfor exact-match domain lookup- Domain summaries in
get_contract_inforesponse
Changed
- Tool count: 12 tools (was 11)
- System prompt rendering: simplified
_render_metrics, new_render_domainstakes over when domains exist list_metrics: usesget_domain()internally
Breaking
- Domain YAML format changed from
dicttolist[Domain]:# Before domains: revenue: [total_revenue] # After domains: - name: revenue summary: "Revenue and financial metrics" description: "Revenue is recognized at fulfillment, not booking." metrics: [total_revenue]
Full Changelog: v0.8.0...v0.9.0