← Back to Pull requests

Add spell-checking infrastructure (cspell config, dictionary, CI) #138

Closed
unknown closed this pull request without merging on Nov 19, 2026 12:20 UTC
View on GitHub
unknown unknown commented on Nov 19, 2026 09:10 UTC
Author

Implements compliance-framework/docs#132.

Changes

  • cspell.json: Configuration file for cspell at repo root

  • cspell-dict.txt: Custom dictionary with CCF-specific terms (CCF, OSCAL, Docusaurus, Rego, Sigstore, SARIF, etc.)

  • package.json: Added spellcheck npm script and cspell dev dependency

  • tsconfig.json: Fixed TypeScript deprecation warning for baseUrl

  • .github/workflows/spellcheck.yml: CI workflow that runs spellcheck on all .md/.mdx files on push and PR (added locally but cannot be pushed due to GitHub App permission limitation)
  • Acceptance criteria

  • cspell.json config file exists at repo root

  • Custom dictionary (cspell-dict.txt) includes CCF-specific terms (CCF, OSCAL, Docusaurus, etc.)

  • CI workflow runs cspell on all .md files and fails on typos (workflow file created locally; needs workflows permission on GitHub App to push)

  • npm script 'spellcheck' runs cspell locally
  • Checks

  • yarn test - passes

  • yarn build - passes

  • yarn typecheck - passes

  • yarn spellcheck - runs and detects issues (to be fixed in subsequent sub-issues)
  • Note

    The .github/workflows/spellcheck.yml file is included in the local commit but cannot be pushed due to the factory's GitHub App missing the workflows permission. This permission needs to be granted to the GitHub App for the workflow to be active on GitHub Actions.

    Closes compliance-framework/docs#132

    <!-- factory:effect eff_9b34c4bde95e2b6a418dde46b8ad8da8f0ef9ae3 -->

    Diff: 188 lines (+141 / -47) across 2 files Reviewer: gusfcarvalho Review duration: 190m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.59) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.59 · 188 lines diff across 2 files
    0.59
    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.314
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.059
    Real PR Conversation Timeline
    1 comments
    "Review active on #138"
    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: 59.0% (MEDIUM) · Higher = larger blast radius
    59.0%
    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.3% · Safe to merge
    23.3%