feat(dla): M6 — business glossary + pattern catalog + feedback loop - #10
Merged
Merged
Conversation
Ported the M6 work onto the apps/dla workspace layout (imports repointed to auropro-core logging and auropro-llm gateway). - Glossary: recurring-token extractor + LLM definer (INSUFFICIENT_SIGNAL when unsure) + glossary_v1 prompt + dla glossary build; idempotent, SME-preserving - Patterns: pure-Python detectors (star/snowflake/junction/audit) over an in-memory schema graph (no DB) + dla patterns detect - Feedback loop: confirmed glossary terms feed a column's describe grounding, re-drafting columns that use the term - Schema: GlossaryEntryPayload + PatternPayload + PatternType (reader dispatch); ThresholdsConfig glossary_min_recurrence + glossary_stop_tokens - Tests: glossary extraction/definition/feedback, pattern detection (+ no-DB guard), deterministic glossary + pattern evals 138 apps/dla tests pass; ruff + mypy clean.
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.
Brings M6 onto the new workspace layout (
apps/dla).What
dla glossary build): extracts recurring name tokens, drafts a one-line definition per term via the LLM gateway, returnsINSUFFICIENT_SIGNALwhen usages don't support a confident definition; idempotent and SME-preserving.dla patterns detect): pure-Python detectors — star, snowflake, junction, audit-columns — over an in-memory schema graph (no DB connection).ai-drafted-edited/sme-authored) feeds the affected columns'describegrounding, so confirming a term re-drafts those descriptions on the next run (SME edits stay protected).GlossaryEntryPayload,PatternPayload,PatternType;ThresholdsConfiggains glossary knobs.Migration notes
auropro_core.loggingandauropro_llm.gateway; no new dependencies (openpyxl/rapidfuzz already present).Tests