[#32] Split mddlog-core/mddlog targets; move SimpleLogger to mddlog.adapter.logger #42
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 496 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.371
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #42"
general
weight: 0.35
ambroise-leclerc
Summary
Materializes ADR-001 Decision 6's governed/adapter boundary in the build — two CMake targets with a one-way dependency, and module names where
mddlog.core.only means governed code — per #32, which depended on #31's module-placement decisions (now merged). Structural refactor; no behavioral change.mddlog-coretarget (aliasmddlog::core), containing onlymddlog.core.logleveltoday —mddlog.core.record/mddlog.core.ring(ADR-001 Decision 1) join it once implemented.mddloglinksmddlog-corePUBLIC; a configure-time assertion fails the build if that dependency is ever reversed.mddlog.core.logger→mddlog.adapter.logger(include/mddlog/adapter/),mddlog.core.logrecord→mddlog.adapter.logrecord(same directory). No compatibility shim under the old module names.SimpleLoggerandLogRecordkeep theirmddlog::corenamespace unchanged — only the module name and file location moved, per #32's "class unchanged" requirement.mddlog.core.loglevelsplit: the enum and itsconstexprhelpers stay governed;getColorCode()/getResetColorCode()(ANSI console styling) move tomddlog.sinks.console, their only caller — per ADR-001 Decision 6 as resolved in #31.mddlog::coregets its ownEXPORT_NAMEso the installed imported target matches the in-tree alias.build.core.boundary(tests/CMakeLists.txt,LABELS "build"): a source-levelctestscan that fails if anymddlog-coremodule imports amddlog.sinks./mddlog.adapter.*module — the first (weakest) of the three verification strengths ADR-001 Decision 6 names.TestInstallConsumer.cmake: a second consumer executable now links onlymddlog::coreand importsmddlog.core.loglevel, proving the installed package exposes it independently ofmddlog::mddlog.No import changes needed in
tests/orexamples/: every spec and example already imports themddlogumbrella module, never a submodule directly — verified by grep before starting.Invitation and contributor agreement
Not applicable — this PR is the project steward's own change, made directly by the maintainer (ambroise-leclerc); there is no external contributor or CLA issue involved.
Verification
.cppmfile end-to-end after editing, and grepped the whole tree for any remaining reference to the old module names (mddlog.core.logrecord,mddlog.core.logger,core::getColorCode,core::getResetColorCode) — none found.file(WRITE ...)consumer-project strings inTestInstallConsumer.cmakeback to real CMake/C++ to check brace/quote balance and logic by eye.bf9183f) — Linux (GCC 16.1), Linux (Clang 21, libc++), Windows (MSVC), macOS 15 arm64 (Clang 21.1.8), ASan+UBSan (GCC 16.1, Debug), and clang-format 21.Acceptance criteria (from #32)
InstallTreeConsumercompile, lie et s'exécute contre le package installé exposant les deux cibles —consumer(mddlog::mddlog) +consumer_core(mddlog::core) both implemented and passing as part of the green CI runs.All CodeRabbit and Copilot review findings (5 total, across two rounds) fixed and confirmed addressed.