← Back to Pull requests

Validate audit categories, identities and ActionTrace scenarios [#59] #62

Closed
unknown closed this pull request without merging on Sep 27, 2026 19:34 UTC
View on GitHub
unknown unknown commented on Sep 27, 2026 18:39 UTC
Author

Summary

  • Exercise interleaved ActionTrace-style actions, phase separation, source provenance, repeated and regressing time, unavailable time, concurrent producers, recreation, and restart.

  • Cover exact-capacity acceptance, overflow and grammar refusals for every audit identifier, required empty fields, and detail truncation.

  • Increase correlation capacity from 96 to 117 bytes so a maximal 96-byte source stream identity and a full 64-bit decimal source sequence fit with a separator.

  • Record category and field mapping evidence, unresolved deployment vocabulary, and the distinct implementation and ADR acceptance status.
  • Validation

  • Clang 21 module build and link: passed.

  • CTest: 86/86 passed, including source and installed core consumers and governed boundary checks.

  • LLVM 21 clang-format dry run over the formatted scope: passed.

  • LLVM 21 clang-tidy on the changed module interface and spec: passed with no promoted diagnostics.
  • Scope

    Only in-memory admission is guaranteed. #58 still owns legacy logAudit() migration; #11 owns durable storage. ADR-002 remains Proposed and #9 remains open pending its remaining criteria and maintainer review.

    Refs #59.

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

    Summary by CodeRabbit

    Improvements
    Audit correlation identifiers can now accommodate a source stream identity and the full 64-bit source sequence.
    Documentation
    Added guidance on audit event ordering, identifier limits, retention, and hand-off behavior, including the limits of in-memory audit data.
    Clarified that the ADR remains Proposed and that validation evidence does not constitute maintainer acceptance or deployment approval.
    Tests
    * Added coverage for audit sequencing, correlations, and field and stream boundaries.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 237 lines (+177 / -60) across 2 files Reviewer: AM-L Review duration: 54m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 237 lines diff across 2 files
    0.37
    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.327
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #62"
    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: 37.2% (MEDIUM) · Higher = larger blast radius
    37.2%
    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: 14.7% · Safe to merge
    14.7%