feat: OKF bundle 어댑터 추가 (export/import, kind별 폴더 라우팅)#242
Merged
seyoung4503 merged 5 commits intoJul 19, 2026
Conversation
비즈니스 용어를 Metric/Table/Rule/Dimension으로 분류할 수 있도록 FedEntry에 kind, applies_to, tags 필드를 추가한다. - FedEntry: kind, applies_to, tags 필드 추가 (기존 JSON 하위호환) - term_custom tool spec: 세 파라미터 노출 - _fmt_entry: kind 배지 표시 (`metric` 등) - 신규 테스트 3개: round-trip, 하위호환, kind 배지 렌더링 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Pre-commit black check (--all-files) was consistently failing on master and all PR branches. This commit formats all Python files to make CI green. No logic changes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Google OKF 스펙을 따라 KV 용어를 .md 파일로 내보내고 불러오는 OkfBundle 어댑터를 추가한다. - adapters/storage/okf_bundle.py 신규: export/import, kind별 폴더 라우팅 - pyproject.toml: PyYAML 의존성 추가 - 신규 테스트 9개: 직렬화 단위, 폴더 구조, round-trip Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
thrcle
force-pushed
the
feat/okf-bundle-adapter
branch
from
July 18, 2026 07:08
5b19c58 to
e448fd8
Compare
3 tasks
3 tasks
Collaborator
|
머지 가능합니다. 신규 테스트 9개 통과.
확인한 것:
#243 머지 전에 아래 두 가지는 꼭 처리 부탁드립니다. #243이 1. 파일 경로 검증 없음 ( 용어명을 파일명으로 바꿀 때 공백과 번들은 사용자가 주는 파일이라 이름을 통제할 수 없습니다. 안전한 문자만 남기고, 쓰기 직전에 2. 정의에
수정: 줄머리 후속 PR로 챙겨주시면 좋을 것
전체 스택 리뷰는 #244에 있습니다. |
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.
#️⃣ Issue Number
없음
📝 요약(Summary)
한 줄 요약: 비즈니스 용어를 사람이 읽을 수 있는 마크다운 파일로 내보내고 불러오는 저장 레이어를 추가합니다.
해결하려는 문제
현재 등록된 비즈니스 용어는 SQLite KV에 JSON 문자열로만 존재합니다. 팀 간 공유나 변경 이력 추적이 불가능하고, 용어가 어떻게 쌓여 있는지 사람이 직접 확인할 방법이 없습니다.
이번 변경으로 달라지는 것
Google Cloud가 발표한 OKF(Open Knowledge Format) 스펙을 따라 용어를
.md파일로 저장하는 어댑터를 추가합니다.export 하면 아래 구조로 파일이 생성됩니다:
각 파일은 OKF 스펙의 YAML frontmatter + markdown body 형식입니다. 예시:
KV 캐시는 그대로 유지되며, 런타임 동작에는 변화가 없습니다. 이 어댑터는 export/import 시에만 호출됩니다.
다음 PR과의 관계
PR3(ingest_doc 확인 루프)에서 사용자가 Discord에서 후보를 승인하면 이 어댑터를 통해
.md파일로 저장됩니다.💬 To Reviewers
이 PR은 총 4개로 구성된 시리즈의 두 번째입니다. PR1 머지 후 순차 머지 부탁드립니다.
type필드와 내부kind필드 매핑(metric→Metric) 방식이 적절한지 의견 주시면 감사합니다.PR Checklist