← Back to Pull requests

fix(tutorials): re-land the tutorial components showcase and authoring guide on main #213

Closed
unknown closed this pull request without merging on Nov 30, 2026 09:59 UTC
View on GitHub
unknown unknown commented on Nov 30, 2026 09:53 UTC
Author

Why

compliance-framework/docs#212 (the tutorial components showcase and authoring guide, part of compliance-framework/docs#204) was merged into its stack base branch factory/stack/wi_2fa6b8bf808100304f9a/2 instead of main. The PR below it, compliance-framework/docs#211, merged to main 8 seconds earlier, and #212 was never retargeted, so main never got its changes.

What

This brings #212's change to main unchanged. It is exactly git diff origin/main origin/factory/stack/wi_2fa6b8bf808100304f9a/2, and main has not touched these files since the stack's merge-base:

  • CONTRIBUTING.md: new "Writing tutorials" section (+6)

  • STYLE.md: the "Tutorials page" skeleton (+19)

  • docs/tutorials/components.mdx: the components showcase page (new, 342 lines)

  • sidebars.js: adds tutorials/components to tutorialsSidebar
  • It also fixes the one Must-fix the factory review left open on #212. The showcase uses language="sh" on CopyBlock, but the default prism-react-renderer bundle has no bash grammar, so those blocks rendered without highlighting. docusaurus.config.ts now adds 'bash' to themeConfig.prism.additionalLanguages. Prism's bash grammar also registers the sh and shell aliases.

    Verification

  • yarn install --frozen-lockfile --non-interactive: ok

  • yarn test: 62 pass, 0 fail

  • yarn typecheck (tsc): ok

  • yarn spellcheck: 153 files, 0 issues

  • yarn build: ok (onBrokenLinks: 'throw'). The only warning is the existing vscode-languageserver-types "Critical dependency" one.

  • Highlighting: in build/tutorials/components.html, each server-rendered language-sh block now has Prism token spans. For example, yarn build renders yarn as token function.
  • 🤖 Generated with Claude Code

    Diff: 224 lines (+168 / -56) across 2 files Reviewer: gusfcarvalho Review duration: 5m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.60 · 224 lines diff across 2 files
    0.60
    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.324
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.060
    Real PR Conversation Timeline
    1 comments
    "Review active on #213"
    general weight: 0.35
    Reviewers
    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: 60% (MEDIUM) · Higher = larger blast radius
    60%
    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: 23.7% · Safe to merge
    23.7%