← Back to Pull requests

Adopt the bounded transport lane in WebFront [#72] #82

Closed
unknown closed this pull request without merging on Oct 02, 2026 07:51 UTC
View on GitHub
unknown unknown commented on Oct 02, 2026 06:16 UTC
Author

Part of #72 (epic #10). WebFront counterpart: https://github.com/ambroise-leclerc/WebFront/pull/222. ADR-003 remains Proposed; this does not accept it.

Changes


  • tests/webfront/CMakeLists.txt: webfront.integration. now pin WebFront 35141a5e5874f8f66464ebbbcaf7aed90539c054 (browser sink on TransportConsumer, failure ordering, WebLink lifecycle and context capture).

  • TransportConsumerSpec.cpp: compile-time checks that TransportConsumer rejects an AuditRing, an AuditSink and an audit-event callback (audit never reaches the browser lane).

  • Docs: adoption section in docs/migration/webfront-facade.md; pooled-ring pattern for threads started after consumption in docs/migration/transport-consumer.md.
  • No mddlog module or installed interface changes.

  • Bounded browser output: diagnostic frames are refused once 64 frames await the network (WebSocket::tryWrite), dropped without logging and counted (WebLink::droppedLogFrames(), TransportHealth::overflows); application frames are never dropped. A stalled-browser scenario (10,240 diagnostics, one write never completing) leaves 64 queued and 10,176 refusals.
  • Verification (macOS arm64, LLVM 21.1.8, CMake 4.3.1)


  • Configured, compiled, linked; CTest 117/117 (integration tests excluded).

  • With MDDLOG_BUILD_WEBFRONT_INTEGRATION_TESTS=ON: webfront.integration.source and webfront.integration.installed passed, each running 84/84 WebFront tests including the new transport scenarios.

  • Sanitizer evidence comes from WebFront#222's new CI job; LLVM 21.1.8 sanitizer runtimes do not start on macOS 27.
  • The pinned commit must remain reachable: WebFront#222 should be merged with a merge commit. #72 stays open until both PRs are merged and the sanitizer job passes.

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

    Summary by CodeRabbit

    Documentation
    Clarified that transport rings must be registered before consumption starts, including when connection threads start later. Documented a fixed-pool pattern for assigning rings to one thread at a time and returning them when threads exit.
    Added guidance on WebFront transport behavior, including ring limits, diagnostic event queuing, lifecycle and failure handling, context propagation, and audit-event exclusions.
    Tests
    Added compile-time checks for supported transport types and rejection of audit-related types.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 313 lines (+234 / -79) across 3 files Reviewer: AM-L Review duration: 95m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 313 lines diff across 3 files
    0.40
    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.344
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #82"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 40.3% (MEDIUM) · Higher = larger blast radius
    40.3%
    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: 15.9% · Safe to merge
    15.9%