← Back to Pull requests

Retirer WebFront de mddlog et amender l'ADR-003 [#103] #104

Merged
ambroise-leclerc merged 18 files (1456 lines) on Oct 02, 2026 22:52 UTC
View on GitHub
ambroise-leclerc ambroise-leclerc commented on Oct 02, 2026 22:18 UTC
Author

Closes #103.

Changements

  • Plus aucun code d'application dans mddlog, y compris en test. Sont supprimés :

  • - tests/webfront/ : le pont webfront::log, le LoggerTests.cpp de WebFront et Catch2 téléchargés par CPM, et TestIntegration.cmake ;
    - l'option MDDLOG_BUILD_WEBFRONT_INTEGRATION_TESTS et ses flags dans les 4 workflows.
  • WebFrontContextSpec.cpp supprimé : il spécifiait le pont, pas mddlog. Le comportement de mddlog qu'il exerçait indirectement reste couvert par GovernedRecordSpec, TransportConsumerSpec et SinkRegistrySpec.

  • TextLoggerSpec.cpp spécifie désormais mddlog::adapter::TextLogger directement : source de l'appelant, dump en écriture séparée et non formatée, groupes désactivés, handles indépendants, disableAll, et exclusion de l'audit vérifiée à la compilation (static_assert).

  • Documentation :

  • - docs/migration/webfront-facade.md est remplacé par un guide générique, docs/migration/text-logger.md ;
    - le README et transport-consumer.md sont mis à jour.
  • ADR-003, Amendement 1 : les décisions 1 à 6 sont inchangées. La façade et l'intégration sont vérifiées par WebFront, dans son workflow MddlogIntegration.yml, contre une révision figée de mddlog. L'amendement présente un tableau de qui vérifie quoi et indique explicitement la couverture perdue : l'intégration ne tourne plus que sur Linux Clang 21, et plus sur GCC, MSVC ni macOS.
  • Vérification (locale, macOS, Clang 21)

  • Configuration à neuf et build réussis.

  • ctest -L governed : 5/5 tests passés.

  • ctest -LE governed --parallel : 106/106 tests passés en 7 s, contre 54 s avec WebFront.

  • clang-tidy 21 (--warnings-as-errors='*') et clang-format 21 : aucun problème sur la spec réécrite.
  • Remarque

    Le commit 494198e de la PR #102 avait embarqué par erreur une partie de ces changements, depuis le checkout partagé. Ces fichiers en ont été retirés par force-push : #102 ne contient plus que sa documentation ADR-002/ADR-004.

    Diff: 1456 lines (+137 / -1319) across 18 files Reviewer: AM-L Review duration: 33m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.72) × (1 − Review Confidence (0.65)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.72 · 1456 lines diff across 18 files
    0.72
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.35 · 1 substantive comment(s)
    0.35
    Model 3 · Review Timing & Attention
    Session adequacy: 93% · Reviewer familiarity: 50%
    64%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.400
    Shallow Review Depth shallow_review_depth
    0.229
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    4 items
    coderabbitai[bot] coderabbitai[bot] commented on Oct 02, 2026 22:18 UTC
    Bot

    <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
    <!-- This is an auto-generated comment: rate limited by coderabbit.ai -->

    [!WARNING]

    ## Review limit reached

    > You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

    > Next included review available in 55 minutes.

    > Check out review usage here.

    > <details>

    <summary>View limit details</summary>

    > Limit details: You’ve used the included review currently available.

    > Learn how review limits work.

    > Review configuration:

    > <details>

    <summary>⚙️ Run configuration</summary>

    > - Configuration used: defaults

    - Review profile: CHILL

    - Plan: Advanced

    - Run ID: 76b7f47a-f088-4a37-a87d-1bc3179fef6f

    > </details>

    > <details>

    <summary>📥 Commits</summary>

    > Reviewing files that changed from the base of the PR and between fe8b616223de5a21f66b22ab60de1e78d501e77d and db6c6161248f371e81623afad16e9bd9a4b23516.

    > </details>

    > <details>

    <summary>📒 Files selected for processing (18)</summary>

    > .github/workflows/clang-build.yml

    .github/workflows/linux-gcc16-build.yml

    .github/workflows/macos-arm64-build.yml

    .github/workflows/windows-build.yml

    CMakeLists.txt

    README.md

    docs/adr/ADR-003-application-integration-and-sink-ownership.md

    docs/migration/text-logger.md

    docs/migration/transport-consumer.md

    docs/migration/webfront-facade.md

    tests/CMakeLists.txt

    tests/spec/TextLoggerSpec.cpp

    tests/spec/WebFrontContextSpec.cpp

    tests/webfront/CMakeLists.txt

    tests/webfront/Logger.cpp

    tests/webfront/TestIntegration.cmake

    tests/webfront/tooling/Logger.hpp

    tests/webfront/tooling/LoggerApi.hpp

    > </details>

    > </details>

    <!-- end of auto-generated comment: rate limited by coderabbit.ai -->

    <!-- autopilot:start -->

  • <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autopilot</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
  • Autopilot is currently an internal CodeRabbit preview.

    <!-- autopilot:end -->
    <!-- tips_start -->

    ---

    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.

    <details>
    <summary>❤️ Share</summary>

  • X

  • Mastodon

  • Reddit

  • LinkedIn
  • </details>

    <sub>Comment @coderabbitai help to get the list of available commands.</sub>

    <!-- tips_end -->

    copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Oct 02, 2026 22:23 UTC
    Reviewer

    <!-- ccr-overview-v2 -->

    Copilot review overview

    🔵 Needs a closer look

    It removes verification infrastructure and amends an architectural decision record affecting IEC 62304 verification evidence across all CI platforms, a high-impact regulatory tradeoff best confirmed by a human maintainer.

    Review effort: Balanced
    Findings: None

    <details>
    <summary><strong>What changed in this PR</strong></summary>

    This PR removes all WebFront-specific application and client code from the mddlog repository so the medical-device logging library no longer verifies one of its own consumers, reversing an inverted test dependency and cutting the majority of remaining CI time. It deletes the WebFront reference bridge, the opt-in integration tests and their option, and the WebFrontContextSpec.cpp; it rewrites TextLoggerSpec.cpp to exercise mddlog::adapter::TextLogger directly; and it records the change as ADR-003 Amendment 1, which reassigns verification of the facade/integration to WebFront's own repository while leaving Decisions 1–6 intact.

    Changes:

  • Delete the tests/webfront/ bridge (facade header/TU, downloaded Catch2 + WebFront baseline, TestIntegration.cmake), the webfront.integration.* tests, and the MDDLOG_BUILD_WEBFRONT_INTEGRATION_TESTS option (removed from CMake and all four CI workflows).

  • Rewrite TextLoggerSpec.cpp to specify TextLogger directly (masks, caller source, separate dump write, independent handles, compile-time audit exclusion) and delete WebFrontContextSpec.cpp.

  • Update docs: replace webfront-facade.md with a generic text-logger.md, refresh the README and transport-consumer.md, and add ADR-003 Amendment 1 documenting the verification boundary and lost coverage.
  • | File | Description |
    | ---- | ----------- |
    | tests/​webfront/​tooling/​LoggerApi.hpp | Deletes the shared facade declarations of the reference bridge. |
    | tests/​webfront/​tooling/​Logger.hpp | Deletes the non-module facade header. |
    | tests/​webfront/​TestIntegration.cmake | Deletes the script that configured/built/ran the real WebFront project. |
    | tests/​webfront/​Logger.cpp | Deletes the module-consuming TU implementing the webfront::log facade. |
    | tests/​webfront/​CMakeLists.txt | Deletes bridge/baseline/integration test wiring and CPM downloads. |
    | tests/​spec/​WebFrontContextSpec.cpp | Deletes the spec that tested bridge-owned context/hex behavior. |
    | tests/​spec/​TextLoggerSpec.cpp | Rewrites specs to target mddlog::adapter::TextLogger directly. |
    | tests/​CMakeLists.txt | Removes WebFrontContextSpec.cpp and add_subdirectory(webfront). |
    | README.md | Points to the new text-logger guide; reframes WebFront as an external reference consumer. |
    | docs/​migration/​webfront-facade.md | Removed in favor of the generic guide. |
    | docs/​migration/​transport-consumer.md | Updates cross-references to WebFront's repo and text-logger.md. |
    | docs/​migration/​text-logger.md | New generic guide for mddlog.adapter.textlogger. |
    | docs/​adr/​ADR-003-...md | Adds Amendment 1 documenting the verification boundary and lost coverage. |
    | CMakeLists.txt | Removes the MDDLOG_BUILD_WEBFRONT_INTEGRATION_TESTS option. |
    | .github/​workflows/​{clang,linux-gcc16,macos-arm64,windows}-build.yml | Drops the integration-test flag from the configure step. |
    </details>

    ---

    💡 <a href="/ambroise-leclerc/mddlog/new/develop?filename=.github/skills/code-review/SKILL.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Add a code-review agent skill</a> or configure MCP servers for context-aware, tailored reviews. <a href="https://docs.github.com/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review?tool=webui#mcp-servers-and-agent-skills" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Learn more in the docs.</a>

    AM-L AM-L approved these changes on Oct 02, 2026 22:52 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    ambroise-leclerc ambroise-leclerc
    Labels
    risk: low confidence: 64.6% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 71.5% (HIGH) · Higher = larger blast radius
    71.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 64.6% · Lower = rushed or shallow review
    64.6%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 25.3% · Safe to merge
    25.3%