refactor(log-guard): isolate the canonical logs schema check (split S12 L1/3) - #3599
refactor(log-guard): isolate the canonical logs schema check (split S12 L1/3)#3599lidge-jun wants to merge 2 commits into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe PR extracts logs schema validation into a shared module. It pins columns, table SQL, and required indexes, then updates ChangesLogs schema inspection
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change centralizes logs-schema validation without changing the existing inspection export or validation behavior. No current merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
|
✅ Deterministic PR hygiene checks passed. |
리뷰 · 우선순위 58 / 80이 PR은 베이스가 현재 지금 테스트는 facade와 leaf의 라인 없음 - 런타임 동작 변경 의도가 없는 pure-move로 보이며, 공개 심볼 집합도 facade 리엑스포트로 유지됩니다.
메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
|
Superseded by aggregate PR #3668, admin-merged into dev as 6585e6a after exact-head CI and tested-tree verification. This original PR was not individually merged; its rebased content and historical records were consolidated in #3668. The original branch is preserved. Further unimplemented debt layers remain deferred. |
Summary
logsschema definition and its exact-match comparison (CURRENT_LOG_SCHEMA, the table/index DDL, SQL normalization helpers,hasCurrentLogsSchema/hasCurrentLogsTable—src/codex/log-guard/inspect.ts:18–67, 127–135, 246–320) move verbatim tosrc/codex/log-guard/inspect-schema.ts(137 lines; singlebun:sqlitetype import).inspect.tskeeps the file-identity memo cache, metrics andinspectCodexLogs(392 lines) and re-exportshasCurrentLogsSchema, so all 8 previously exported names stay importable; 5 importers unchanged.devlog/_plan/260905_now_split_train/370_codex_log_guard_inspect.md; rules003_parent_decisions.md(PURE-MOVE-SIZE-01).Stack (S12 log-guard; merge bottom-up):
Base: dev; layers 2 and 3 depend on this one. Review this PR's diff only (3 files, +150/−134; non-move diff: 1 leaf import, 2 facade wiring lines, 2 export modifiers, 11 test lines). Move-aware view:
git diff --color-moved=dimmed-zebra dev...HEAD.Verification
bun run typecheck→ exit 0tests/lab/core-lab-boundary.test.ts→ 17 pass / 0 failrequires every canonical Codex logs index(codex-log-guard-inspect.test.ts:314).bun run privacy:scan→ passed;git diff --check dev...HEADclean.hasCurrentLogsSchemaidentity via facade vs leaf; leaf has no back-edge.lidge) at this exact SHA: recorded in the devlog doc.Checklist
Summary by CodeRabbit
Refactor
Tests