← Back to Pull requests

fix(tsc): exclude generated output from workspace typechecks #3738

Open
nicklemmon opened this pull request with 43 lines diff across 7 files
View on GitHub
nicklemmon nicklemmon commented on Oct 08, 2026 19:40 UTC
Author

AAP-95380

Summary

Workspace TypeScript configs replaced the root exclude list, so typechecks included generated output such as dist bundles. This caused tsc to fail with a stack overflow. Remove the redundant workspace exclusions so the root generated-output exclusions apply.

Type of Change

  • Bug fix

  • Enhancement

  • Tests

  • Documentation

  • Other (please specify)
  • Risk Analysis - REQUIRED

  • High — Broad platform impact.

  • Medium — Scoped TypeScript config change across five workspaces; no runtime UI behavior changes.

  • Low — Narrowly scoped page, styling, documentation, or test-only changes.
  • Dependencies

    None.

    Testing

    Automated Checks

  • npm run tsc -- --skip-nx-cache passed for all 8 workspaces.
  • Ephemeral E2E Tests

    Not applicable; this change affects typecheck file selection, not UI behavior.

    External Server E2E Runs

    Not applicable.

    Manual Testing

    Not run; the full typecheck is the relevant validation for this configuration fix.

    Screenshots

    Not applicable.

    Diff: 43 lines (+33 / -10) across 7 files Reviewer: nixocio Review duration: 8511m
    All Vouch review confidence checks passed
    Residual risk 0.04 = Change Risk (0.34) × (1 − Review Confidence (0.90)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.34 · 43 lines diff across 7 files
    0.34
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.90 · 2 substantive comment(s)
    0.90
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    89%
    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.226
    Real PR Conversation Timeline
    3 items
    nixocio nixocio commented on code on Oct 08, 2026 20:21 UTC
    Code Review
    frontend/hub/tsconfig.json:1
    @@ -1,5 +1,4 @@
     {
       "extends": "../../tsconfig.json",
    -  "include": ["**/*", "../../types/*.d.ts"],
    -  "exclude": ["insights", "dist-insights"]
    +  "include": ["**/*", "../../types/*.d.ts"]

    The root tsconfig excludes hub/insights-tests, so removing this local exclude puts those tests outside the Hub parser project. The Hub ESLint target still lints that directory, and CI now fails on its typed-linting check. Can we exclude insights-tests/ there too, or use a parser config that includes it?

    Reviewers
    Assignees
    nicklemmon nicklemmon
    Labels
    risk: low confidence: 89.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: 34.4% (LOW) · Higher = larger blast radius
    34.4%
    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: 89.5% · Lower = rushed or shallow review
    89.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: 3.6% · Safe to merge
    3.6%