← Back to Pull requests

feat(curriculum): add prototype for refactor authors project #1156

Closed
unknown closed this pull request without merging on Apr 13, 2026 17:01 UTC
View on GitHub
unknown unknown commented on Apr 09, 2026 00:24 UTC
Author

Checklist:

<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. -->

  • I have read freeCodeCamp's contribution guidelines.

  • My pull request has a descriptive title (not a vague title like Update index.md)
  • <!--If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.-->

    Prototype for https://github.com/freeCodeCamp/freeCodeCamp/issues/61779

    <!-- Feel free to add any additional description of changes below this line -->

    Instead of making a whole new workshop to practice async/await concepts, this pr is a prototype solution which assumes that after completing the workshop-fcc-authors (which uses .then & .catch method), the following workshop presents the solution code from that prior workshop and allows the camper to refactor it to use async/await instead. (This idea was approved by Naomi)
    I'm hoping that doing this workshop this way (as a continuation of the prior one), will reduce some of the workshop fatigue I noticed in some campers.

    So to make this prototype, I simply copied the solution code from the earlier prototype and modified the section of code relating to the fetch. It used to be a series of commands setup in the global scope but I changed it into a new async function called initialFetch and called that function at the bottom of the script before setting up the event listener.

    The workshop name is "Refactor the fCC Authors Page App" (we might have to explain what the word refactor means?)
    Thanks for your review.

    Diff: 218 lines (+163 / -55) across 2 files Reviewer: naomi-freecodecamp Review duration: 6756m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.60) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.60 · 218 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%
    56%
    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.322
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.060
    Real PR Conversation Timeline
    1 comments
    "Review active on #1156"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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.9% (MEDIUM) · Higher = larger blast radius
    59.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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 25.9% · Safe to merge
    25.9%