← Back to Pull requests

Prove standalone governed-core consumption and document migration [#40] #51

Closed
unknown closed this pull request without merging on Sep 26, 2026 20:56 UTC
View on GitHub
unknown unknown commented on Sep 26, 2026 14:09 UTC
Author

Closes #40

  • Add a core-only consumer that imports only mddlog.core.record and mddlog.core.ring, links only mddlog::core, and verifies admission, drain, host time, saturation and slot reuse.

  • Run the same consumer in-tree and against the installed package as separate CTest cases; retain a separate full-package consumer and isolate their scratch directories for parallel CTest.

  • Document direct-import moves, governed-record migration and target selection; clarify implemented/planned architecture and remove a misleading compliance claim from CMake output.

  • Update sanitizer exclusions for both nested install tests. CLAUDE.md is intentionally git-ignored; the canonical tool-neutral AGENTS.md was updated instead.
  • Local verification: macOS arm64, CMake 4.3.1 and upstream Clang 21.1.8; configure and build succeeded, 72/72 CTest cases passed, and clang-format plus git diff --check passed. Other CI platforms are pending.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features
    Added core-only consumer checks for source builds and installed packages, alongside the existing full-library check.
    Added a migration guide covering core-only usage and adapting producers to the governed core.

    Documentation
    Clarified the project’s medical-device standards context and non-certification status, buffering limitations, core-only usage, and available consumer checks.
    Updated contributor guidance and dependency summaries to describe standards as design considerations rather than support or certification claims.

    Chores
    Updated sanitizer test exclusions for core consumer checks.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 220 lines (+165 / -55) across 2 files Reviewer: AM-L Review duration: 407m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.65) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.65 · 220 lines diff across 2 files
    0.65
    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%
    57%
    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.323
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.065
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #51"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 58.0% 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.9% (MEDIUM) · Higher = larger blast radius
    64.9%
    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: 58.0% · Lower = rushed or shallow review
    58.0%
    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: 27.3% · Safe to merge
    27.3%