← Back to Pull requests

build: frontend linter in check.sh #128

Closed
unknown closed this pull request without merging on Oct 27, 2026 15:03 UTC
View on GitHub
unknown unknown commented on Oct 21, 2026 23:11 UTC
Author

What and why

Closes #35.

  • Adds a frontend linter by running ESLint from scripts/check.sh.

  • CONTRIBUTING.md: "Before every push" now says the frontend is linted with ESLint (npm run lint).
  • typescript-eslint doesn't support TypeScript 7 yet (peer range >=4.8.4 <6.1.0, and it throws at load on TS 7; tracked in typescript-eslint/typescript-eslint#10940). To lint without downgrading the compiler:

  • typescript now aliases Microsoft's @typescript/typescript6 (npm:@typescript/typescript6@^6.0.2), which typescript-eslint loads for its parser.

  • TS 7 stays installed as typescript7 (npm:typescript@^7.0.2).

  • Both packages provide a tsc bin and npm doesn't guarantee which one wins, so typecheck and build call TS 7 explicitly: node node_modules/typescript7/bin/tsc --noEmit.
  • How it was tested

  • scripts/check.sh passes locally.

  • ESLint runs from scripts/check.sh with zero warnings.

  • Negative check: a throwaway component with a conditionally called useState and an explicit any fails lint with react-hooks/rules-of-hooks and @typescript-eslint/no-explicit-any.
  • Checklist

  • scripts/check.sh passes locally

  • Every new refusal has a negative test

  • Every new security decision emits a SECURITY_AUDIT_EVENT covered by audit_coverage.rs

  • Fails closed on missing configuration, key material, or attestation

  • No new cryptographic primitives; suites stay behind their type aliases

  • Synthetic or public data only (docs/DATA_POLICY.md)

  • Docs and CHANGELOG.md updated for user-visible changes

  • Architectural decision recorded in docs/adr/ if one was made
  • Diff: 206 lines (+154 / -52) across 2 files Reviewer: abendrothj Review duration: 8151m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.36) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 206 lines diff across 2 files
    0.36
    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.319
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #128"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 36.4% (MEDIUM) · Higher = larger blast radius
    36.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: 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: 15.7% · Safe to merge
    15.7%