fix: federation 표시·집계 SQL·정의 저장·DuckDB DSN 버그 수정#238
Open
seyoung4503 wants to merge 1 commit into
Open
Conversation
- semantic_federation: 채널/개인 override가 전사 정의를 가리던 표시 버그 수정 (_resolve_term이 전사 기본을 함께 표기, _render_layers로 레이어별 전체 노출) - system_prompt: 집계(COUNT/SUM)에 GROUP BY/작은 LIMIT로 결과가 깨지던 문제에 SQL 규칙 추가 - semantic_federation: 사용자가 정의를 말하면 term_custom으로 즉시 저장하도록 정책 강화 - dsn_builder.build_duckdb: 전체 DSN을 path에 넣어도 이중 래핑 안 되게 (DuckDB 슬래시 버그) - tests: 위 동작에 맞게 갱신 + federation override 회귀 테스트 추가 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
요약
디스코드 봇 실사용 중 발견한 버그 4건 + DuckDB 연결 버그 1건 수정. 특히 federation 표시 버그가 핵심 — 채널 override가 전사 정의를 데이터에서 지운 게 아니라 화면에서 가리던 문제였습니다 (KV엔 전사·채널 정의 둘 다 멀쩡히 존재).
고친 것
federation 표시 — override가 전사 정의를 가림 (
semantic_federation.py)_resolve_term: 채널/개인 override 시(전사 기본: …)를 함께 표기 → 전사 정의가 사라진 것처럼 보이지 않음_render_layers추가 +show가 유효 정의 + 레이어별 현황을 함께 반환 → "전사 Invoice 정의는?" 같은 질문에 정확히 답 가능집계 SQL 오답 (
system_prompt.py)GROUP BY+ 작은LIMIT을 붙여 결과가 잘리던 문제 ("활성 고객 1명")사용자가 말한 정의가 저장 안 됨 (
semantic_federation.py정책)term_custom으로 즉시 등록하도록 강화 → 답이 턴마다 달라지던 문제 해결DuckDB
/setup연결 실패 (dsn_builder.build_duckdb)duckdb:///duckdb:////…로 이중 래핑되던 버그 → path/DSN 둘 다 허용테스트
참고
🤖 Generated with Claude Code