feat(debug): add content-free adapter and bridge stream diagnostics - #3983
feat(debug): add content-free adapter and bridge stream diagnostics#3983yansigit wants to merge 1 commit into
Conversation
Extracted and adapted from fork commit b12ea69. Co-authored-by: Yumi <automation@sbyoon.com> Co-authored-by: SB Yoon <44089734+yansigit@users.noreply.github.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks 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 |
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. This PR stays in draft until every box above is ticked. |
리뷰 · 우선순위 57 / 80이 PR은 provider debug가 켜졌을 때만 내용 없는(stream 구조만) 진단을 남기게 합니다. 지금 라인 src/lib/debug.ts · debugFingerprint - debug off면 undefined, on이면 프로세스 로컬 키로 HMAC hex만 돌립니다. 본문을 로그에 안 남기는 핵심입니다. 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
Summary
Extract the stream diagnostics slice from the closed oversized #2516 proposal. Opt-in debug lines correlate adapter and bridge stages, attempts, and sidecar rounds. Payload text, reasoning, tool identifiers, arguments, queries, and error strings become lengths and process-local HMAC fingerprints; raw content and provider state are excluded. This is separate from the local telemetry ledger in #3748.
Updated CLI debug documentation. Maintainer privacy/security review remains required before advancing this draft.
Verification
Root
bun run typecheck,bun run privacy:scan, and the core/Lab boundary tests passed. Five focused files combined: 180 passed, two web-search failures; unchanged upstream runtime reproduces those same two failures (172 passed). The web-search file alone passes all 62 tests. Documentation frozen install and build passed. Static privacy review covered field selection, random request ids, debug gating, and the process-local random HMAC key.All runtime checks used a fresh temporary OPENCODEX_HOME and alternate port; production config fingerprint and backup inventory remained unchanged. Full root-suite and review-readiness gates have not been completed for this head; this is intentionally a draft.
Checklist
Review readiness
Co-authored-by: SB Yoon 44089734+yansigit@users.noreply.github.com
Co-authored-by: Yumi automation@sbyoon.com
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.