Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Keep the consolidated branch aligned with repository Black
Format the two files identified by the repository-pinned Black 26.1.0 hook so CI evaluates behavior instead of a formatter diff.

Constraint: Preserve the already-reviewed ContextFlow integration without behavioral edits
Rejected: Weaken or exclude the repository-wide Black hook | it is an existing project gate
Confidence: high
Scope-risk: narrow
Directive: Run the pinned Black hook, not only Ruff format, before future pushes
Tested: Black 26.1.0 check across 136 files; 3 targeted semantic enrichment tests
Not-tested: Full suite was unchanged since the prior 357-test verifier run
  • Loading branch information
o2mandoo committed Jul 23, 2026
commit 9922c41cde02e01af815af07e1472cb98544fccc
8 changes: 2 additions & 6 deletions src/lang2sql/tenancy/concierge.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,16 +359,12 @@ async def build_context(
semantic_attention_state=(
"candidate_schema_too_large"
if semantic_query is not None and semantic_query.schema_blocker
else attention.state
if attention
else ""
else attention.state if attention else ""
),
semantic_attention_message=(
semantic_query.schema_blocker
if semantic_query is not None and semantic_query.schema_blocker
else attention.message
if attention
else ""
else attention.message if attention else ""
),
semantic_table_ids=attention.table_ids if attention else (),
semantic_query=semantic_query,
Expand Down
8 changes: 5 additions & 3 deletions tests/test_semantic_disclosure_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,11 @@ async def describe_table(self, name):
# TEST_ONLY_SYNTHETIC_METADATA: exercises the real DB-comment path
# without treating a fabricated description as product truth.
columns = [
replace(column, description="Gross billed amount.")
if column.name == "value"
else column
(
replace(column, description="Gross billed amount.")
if column.name == "value"
else column
)
for column in table.columns
]
return replace(table, columns=columns)
Expand Down
Loading