Guard.explain(): what a query reads, in data and in words
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start in src/sqlguardllm/explain.py and tests/test_explain.py, and read how Guard validates and rewrites SQL, since explain() must report the same tables, filters, masks, limit and violations. Issue #10 is listed as a dependency, so check whether it is merged before designing the Explanation structure. Done means Guard.explain covers joins, subqueries, CTEs and rejected queries, and to_text produces the English and Spanish sentences shown in the issue, with tests for each case.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Goal
Show users, auditors and UIs what a query will read before or after running it.
Acceptance criteria
-
Guard.explain(sql, context)returns tables, columns read per table, row filters and masks that apply, the limit and any violations -
Explanation.to_text(language)in English and Spanish, e.g. "Reads branches.name and the sum of invoices.total for branches 1 and 2, up to 1000 rows" - Works for rejected queries too, listing why
- Tests for joins, subqueries, CTEs and rejected queries
Relevant files
src/sqlguardllm/explain.pytests/test_explain.py
Size
M (1-2 days)
Notes
- Depends on: #10
- Milestone: v0.3 · More power
- Design: docs/DESIGN.md · threat model · attack gallery
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 0
- Merge medio
- 1m
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di jmmana/sqlguardllm
-
area:security good first issue size:s type:feature
Difficoltà 2/5 Mezza giornata Idoneità per principianti 68/100
jmmana/sqlguardllm#16 ·
-
area:integrations size:s type:feature
Difficoltà 4/5 Mezza giornata Idoneità per principianti 25/100
jmmana/sqlguardllm#38 ·
-
area:security size:m type:infra
Difficoltà 4/5 1-2 giorni Idoneità per principianti 30/100
jmmana/sqlguardllm#37 ·
-
area:integrations help wanted size:m type:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
jmmana/sqlguardllm#36 ·
-
area:integrations help wanted size:m type:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
jmmana/sqlguardllm#35 ·
Tutte le issue di jmmana/sqlguardllm
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
bug (unverified)
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
scikit-hep/awkward#4581 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
ci-cd priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
LearningCircuit/local-deep-research#9163 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Specifically suppress IsEnoughWorkspace, instead of all MIopen warnings in denoiser/config.pyAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
supersonic-lumina/ENM156#50 ·
I maintainer di solito rispondono entro 2 giorni