feat(ask): nominate persisted semantic evidence - #672
Conversation
|
Warning Review limit reachedNext included review available in 51 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughGlobal Ask가 영속 의미·그래프 근거에서 후보 게시물을 선정합니다. 요청은 ChangesGlobal Ask 검색 및 검증
Estimated code review effort: 5 (Critical) | ~120 minutes Merge Risk: 🔵 Low · up to The change expands public claim verification, but configured search-host self-references may currently pass through and create unintended external egress or citation behavior. The PR is otherwise mergeable with explicit owner awareness and follow-up for this bounded security concern, plus minor documentation cleanup. Sequence Diagram(s)sequenceDiagram
participant Client as AskAgentPanel
participant API as submit_global_ask
participant Queue as global_ask_queue
participant Candidates as semantic_candidate_post_ids
participant Sources as gather_global_chat_sources
participant Verifier as ClaimVerificationClient
participant Orchestrator as contextual-orchestrator
Client->>API: 질문, knowledge_cutoff, 검증 동의 제출
API->>Queue: 작업 저장 및 워커 전달
Queue->>Candidates: 질문과 권한 범위 전달
Candidates-->>Sources: 제한된 후보 post ID 반환
Sources-->>Queue: 내부 소스와 public_claims 반환
Queue->>Verifier: 검증 동의 시 공개 클레임 전달
Verifier->>Orchestrator: verify 모드 판정 요청
Orchestrator-->>Verifier: 검증 상태 반환
Verifier-->>Queue: 외부 검증 결과 반환
Queue-->>Client: 답변, 인용, grounding 상태, 제한사항 반환
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 47.14% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 70 functions across 21 files. (5 skipped: 5 unsupported.) ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Reviewed against ADR 0225 and the shared
No code change is warranted for these informational findings; the contract and test evidence are recorded here. |
|
Additional exact implementation evidence:
No production record, organization name, or runtime credential was used or recorded. |
* feat(ask): verify public semantic claims (#641) * feat(ask): verify public semantic claims * docs(gaps): record public verification stack --------- Co-authored-by: seonghobae <seonghobae@users.noreply.github.com> * docs(ui): retain public verification audit screenshots * fix(ui): keep implementation boundaries out of customer copy * fix(i18n): translate evidence next actions * fix(public-claims): filter cited claims before cap * fix(ask): keep internal provenance out of public claims * docs(gaps): record public verification exact head * fix(ask): preserve answers when verification is unavailable * fix(public-claims): preserve answer and complete evidence boundary --------- Co-authored-by: seonghobae <seonghobae@users.noreply.github.com> Co-authored-by: Codex <codex@localhost>
|
@coderabbitai review |
|
|
Applied the code-quality review at exact head |
# Conflicts: # backend/app/global_ask_queue.py # backend/app/main.py # backend/app/post_chat_ingestion.py # backend/tests/test_api.py # docs/adr/README.md # docs/doctoring/GLOBAL_ASK_PUBLIC_VERIFICATION_REFERENCES.md # docs/product-requirements.md # docs/product-technical-gap-baseline.md # docs/storybook-inventory.md # frontend/src/App.tsx # frontend/src/AskAgentPanel.test.tsx # frontend/src/api.ts # frontend/src/components/PublicClaimVerification.stories.tsx # frontend/src/components/PublicClaimVerification.tsx # frontend/src/i18n.ts # lineageweave/claim_verification.py # tests/test_claim_verification.py # tests/test_global_ask_queue.py # tests/test_global_ask_sources.py # tests/test_migration_replay.py
…hub.com/ContextualWisdomLab/LineageWeave into HEAD # Conflicts: # docs/adr/README.md # docs/product-technical-gap-baseline.md
Product gap
Global Ask loaded persisted project, role, person, organization, team, and Knowledge Graph evidence only after embedding candidate selection. A term present only in that evidence could miss its authorized source (issue #272, internal nomination slice).
Change
websearch_to_tsquery('simple', ...)and matching expression GIN indexes;External SearXNG verification and three-way public truth status remain explicitly outside this slice.
Verification
uv run --extra dev --extra backend pytest tests/test_global_ask_semantic_candidates.py tests/test_global_ask_sources.py tests/test_public_docstrings.py tests/test_documentation_hygiene.py -q(26 passed)git diff --checkCloses no issue; partially addresses #272.
Summary by CodeRabbit
새로운 기능
개선 사항
문서