Retirer WebFront de mddlog et amender l'ADR-003 [#103] #104
<!-- 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 -->
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>
</details>
<sub>Comment @coderabbitai help to get the list of available commands.</sub>
<!-- tips_end -->
<!-- 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:
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).TextLoggerSpec.cpp to specify TextLogger directly (masks, caller source, separate dump write, independent handles, compile-time audit exclusion) and delete WebFrontContextSpec.cpp.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>
Approved these changes.
AM-L
ambroise-leclerc
Closes #103.
Changements
-
tests/webfront/: le pontwebfront::log, leLoggerTests.cppde WebFront et Catch2 téléchargés par CPM, etTestIntegration.cmake;- l'option
MDDLOG_BUILD_WEBFRONT_INTEGRATION_TESTSet ses flags dans les 4 workflows.WebFrontContextSpec.cppsupprimé : il spécifiait le pont, pas mddlog. Le comportement de mddlog qu'il exerçait indirectement reste couvert parGovernedRecordSpec,TransportConsumerSpecetSinkRegistrySpec.TextLoggerSpec.cppspécifie désormaismddlog::adapter::TextLoggerdirectement : 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).-
docs/migration/webfront-facade.mdest remplacé par un guide générique,docs/migration/text-logger.md;- le README et
transport-consumer.mdsont mis à jour.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)
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.--warnings-as-errors='*') et clang-format 21 : aucun problème sur la spec réécrite.Remarque
Le commit
494198ede 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.