Skip to content

refactor(ingest): P90 — WIKI_INVOCATION_MARKER 소유권 ingest 로 이전#102

Merged
hang-in merged 1 commit into
mainfrom
refactor/p90-marker-ownership
Jun 1, 2026
Merged

refactor(ingest): P90 — WIKI_INVOCATION_MARKER 소유권 ingest 로 이전#102
hang-in merged 1 commit into
mainfrom
refactor/p90-marker-ownership

Conversation

@hang-in

@hang-in hang-in commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Summary

Gemini 리팩토링 보고서의 [낮음] 항목 (유일하게 저비용·저위험으로 동의한 항목) 처리. 하위 레이어 ingest 가 상위 레이어 wiki 의 상수를 참조하던 역방향 의존(논리적 순환)을 해소.

변경

  • WIKI_INVOCATION_MARKER 정의를 wiki::mod.rsingest::mod.rs 로 이전. 노이즈 판정 주체(ingest)가 marker 의 owner.
  • wiki::mod.rspub use crate::ingest::WIKI_INVOCATION_MARKER re-export → 기존 wiki::WIKI_INVOCATION_MARKER 참조처 (wiki/codex.rs, wiki/claude.rs) 변경 없이 호환.
  • ingest/mod.rs 의 self-참조 + test 2곳을 로컬 상수로 정리.

효과

ingest/ 디렉토리에 crate::wiki 참조 0건 (역참조 완전 제거). 의존 방향: wiki(상위) → ingest(하위) 단방향으로 정리. 동작 변경 없음 (상수 값 동일, re-export 로 모든 호출처 유지).

Test plan

  • cargo fmt --all -- --check = 0
  • cargo clippy --workspace --all-targets -- -D warnings = 0
  • cargo test --workspace --no-fail-fast = 0 (ingest 115 + 전체 green)

Note

나머지 보고서 제안 3건(LLM 클라이언트 공통화 / CLI→core service 이전 / SeCallMcpServer 분리)은 비용·위험 대비 현 시점 가치가 낮아 보류 (백로그). 이 PR 은 보고서 + 검토자 모두 "리스크 전무, 국소적"으로 동의한 항목만 처리.

🤖 Generated with Claude Code

Gemini 리팩토링 보고서 [낮음] 항목: 하위 레이어 ingest 가 상위 레이어 wiki 의
WIKI_INVOCATION_MARKER 를 참조하는 역방향 의존 (논리적 순환) 해소.

- marker 정의를 `wiki::` → `ingest::` 로 이전 (노이즈 판정 주체가 owner).
- `wiki::mod.rs` 는 `pub use crate::ingest::WIKI_INVOCATION_MARKER` re-export 로
  기존 `wiki::WIKI_INVOCATION_MARKER` 참조 (wiki/codex.rs, wiki/claude.rs) 호환 유지.
- ingest/mod.rs 의 self-참조 (`crate::wiki::...` → 로컬 상수) + test 2곳 정리.

결과: ingest/ 디렉토리에 `crate::wiki` 참조 0건 (역참조 완전 제거). 동작 변경 없음.

검증 (결과 확인 후 commit): fmt=0, clippy=0, cargo test --workspace=0.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the ownership of WIKI_INVOCATION_MARKER by moving its definition from the wiki module to the ingest module, where noise session detection occurs. The wiki module now re-exports this marker to maintain backward compatibility, and internal references within ingest have been updated. I have no feedback to provide as there are no review comments.

@hang-in hang-in merged commit 951cd94 into main Jun 1, 2026
3 checks passed
@hang-in hang-in deleted the refactor/p90-marker-ownership branch June 1, 2026 01:47
@hang-in hang-in mentioned this pull request Jun 1, 2026
hang-in added a commit that referenced this pull request Jun 1, 2026
검색 품질 개선 (#100/#101) + WIKI_INVOCATION_MARKER 소유권 이전 (#102).

Co-authored-by: d9ng <d9ng@outlook.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant