← Back to Pull requests

[#7] Harmoniser CONTRIBUTING.md et publier la table de migration des niveaux #28

Closed
unknown closed this pull request without merging on Sep 23, 2026 18:04 UTC
View on GitHub
unknown unknown commented on Sep 23, 2026 14:42 UTC
Author

Summary


  • CONTRIBUTING.md: enumerator rule (UpperCamelCase, e.g. LogLevel::Info) and its deliberate deviation from MduX (camelBack at d972d77); origin of .clang-format/.clang-tidy (MduX d972d77… + adaptations, notable deviations listed) and reference tool versions (LLVM 21); the real clang-format command; why clang-tidy is not yet a CI gate; inherited inconsistencies fixed (mui/backend namespace examples → mddlog::core/mddlog::sinks, develop → main); "one commit per PR" kept, plus: mechanical changes (reformat, renames) go in their own PR, merged first.

  • New docs/migration/loglevel-rename.md, linked from the README: all seven TRACE…AUDIT → Trace…Audit mappings with numeric values and produced text; states the source-compat break, that no alias is provided, and that values and strings are unchanged.

  • AGENTS.md only defers to CONTRIBUTING.md: no change. CLAUDE.md is git-ignored, harmonised locally only.
  • Closes #17.

    Notes


  • The formatting section also documents scripts/check-format.sh from #18 (PR #29): merge them together. The clang-tidy section is supplied by #19 (PR #30) and documents scripts/run-clang-tidy.sh; merge #28, #29 and #30 together.
  • Test plan


  • Every rule written matches .clang-tidy / compiler flags (EnumConstantCase: CamelCase, no-_ members, -Werror=shadow).

  • Migration table values checked against LogLevel.cppm (0–6, std::uint8_t, produced strings).

  • The documented clang-format command is the one used for #14 (idempotent on main).
  • Diff: 193 lines (+144 / -49) across 2 files Reviewer: ambroise-leclerc Review duration: 201m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.64) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.64 · 193 lines diff across 2 files
    0.64
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.315
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.064
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #28"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 64.1% (MEDIUM) · Higher = larger blast radius
    64.1%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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%