← Back to Pull requests

Tutorial: Systems (docs#220) #229

Closed
unknown closed this pull request without merging on Dec 01, 2026 14:34 UTC
View on GitHub
unknown unknown commented on Dec 01, 2026 11:41 UTC
Author

Closes compliance-framework/docs#220 (Tutorial: Systems).

What this adds

docs/tutorials/systems.mdx: from the clean-slate demo environment to a System (System Security Plan) that attests to a profile, has a control implemented by one of its components, and has an evidence filter linked to that control. It starts with the shared docs/tutorials/_start-demo-environment.mdx first step, follows the STYLE.md "Tutorials page" skeleton (Steps/Step, a <Checkpoint> with a real screenshot closing every step after the first, Check your work, CardGroup Next steps), says Takes 10–15 minutes, is added to tutorialsSidebar after the Catalogs tutorial, and the overview's System group now links to it.

Steps cover: import the sample catalog + a new static/samples/example-access-profile.json under Integrations → Import and create one labelled piece of evidence; create the system (+ New system → New System Security Plan); add a component (Configure System → Components → Create Component); pick the profile on Implementation; implement example-access-1 (Implementation Statement drawer → Create Statement, Add Component → New Component Implementation with Implementation Status Implemented); link evidence (Create New Evidence Filter, Select Baseline Evidence, Label Conditions, Generated Filter, noting the filter is linked to the control in the system, not the component); read Compliance. Risks, POA&M, assessment plans/results, workflows, SSP leveraging, AI suggestions, Characteristics/Authorization Boundary, component Dashboards and URL-only SSP pages are left out, as the issue says; Scope is mentioned in a sentence.

UI labels and routes

Every bold label and route was checked against compliance-framework/ui main (commit e8ea0bc) by reading the components: ActiveSystemSelector.vue, SystemSecurityPlanCreateView.vue, ComponentsPanel.vue/SystemImplementationComponentCreateForm.vue, SspProfilePicker.vue, IndexControlImplementation.vue, ControlStatementImplementation.vue, ControlStatementByComponents.vue, CreateByComponentForm.vue, EvidenceDashboardForm.vue, EvidenceForm.vue, ImportView.vue, LeftSideNav.vue, ComplianceProgressPanel.vue. Two spots where the ticket's wording did not match the UI as it stands:

  • the compliance tiles are labelled Satisfied, Not Satisfied, Unknown, Compliance (percent) and Assessed (no literal "Compliance %" tile), and below them the page shows Overall Compliance Progress, Implementation Coverage, a Group Breakdown and a Controls list;

  • Add Component and Create New Evidence Filter are items in the three-dot menu of the Components / Evidence Linking sections, and Create New on Evidence is in the page's three-dot menu; the instructions say so.
  • The sample profile imports cleanly: verified against a running API (imports[].href → back-matter resource → rlinks with media type application/ccf+oscal+json pointing at the sample catalog's UUID; the imported profile resolved all 3 controls).

    Screenshots

    The seven images in static/img/tutorials/systems/ (1280 px wide, well under the 4 MB limit) come from the real UI at compliance-framework/ui main (e8ea0bc) talking to a temporary API at compliance-framework/api main with a throw-away Postgres, loaded only with clearly fictional demo data (the "Example compliance system" walk-through above, driven in the browser with headless Playwright). No real hosts, people or credentials, no seeded-showcase data (local-dev is not available to this run).

    Time

    With the exact values above the walk-through lands inside 10–15 minutes. If it runs past that in practice, the two parts that should split off first are step 1 (getting the profile and labelled evidence, which overlaps the Catalogs and Evidence tutorials) and step 3 (adding the component); steps 2, 4, 5 and 6 (system, profiles, implement, evidence filter) stay here.

    Checks

    yarn test (69 pass), yarn typecheck, yarn spellcheck and yarn build all pass on the pushed commit.

    <!-- factory:effect eff_6736e333829b17c8e15c95aec6063866e0c9eea9 -->

    Diff: 531 lines (+398 / -133) across 6 files Reviewer: gusfcarvalho Review duration: 173m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 531 lines diff across 6 files
    0.48
    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.376
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #229"
    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: 47.9% (MEDIUM) · Higher = larger blast radius
    47.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: 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: 18.9% · Safe to merge
    18.9%