← Back to Pull requests

sg2k: correct the watchdog timeout table #13

Merged
Nickdom1 merged 2 files (19 lines) on Nov 06, 2026 06:48 UTC
View on GitHub
Nickdom1 Nickdom1 commented on Nov 05, 2026 23:20 UTC
Author

Replace the inherited watchdog timeout table with the hardware's standard DesignWare periods. The wrong table lets the reboot watchdog reset the board before shutdown finishes.

Tested on both Nix Badge cores: a 20-second request selects 21 seconds and shutdown completes. The same table on MaixCAM counted down from 42 seconds and reset after 42.70 seconds.

Fixes https://github.com/NixVegas/BadgeOS/issues/10

Diff: 19 lines (+19 / -0) across 2 files Reviewer: numinit Review duration: 448m
All Vouch review confidence checks passed
Residual risk 0.02 = Change Risk (0.22) × (1 − Review Confidence (0.90)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.22 · 19 lines diff across 2 files
0.22
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.87 · 4 substantive comment(s)
0.87
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
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.179
Real PR Conversation Timeline
5 items
numinit numinit commented on code on Nov 06, 2026 04:58 UTC
Code Review
pkgs/v2/firmware/dts/sg200x-riscv.dtsi:1

Can this just be moved to the common include?

Nickdom1 Nickdom1 commented on code on Nov 06, 2026 06:38 UTC
Code Review
pkgs/v2/firmware/dts/sg200x-riscv.dtsi:1

done!

numinit numinit commented on Nov 06, 2026 06:42 UTC
Contributor

do you know if that will apply to arm too?

numinit numinit commented on Nov 06, 2026 06:48 UTC
Contributor

which both cores include

riscv

yeah, I forgot how weird that was, oi

Reviewers
Assignees
Nickdom1 Nickdom1
Labels
risk: low confidence: 89.7% 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: 22.4% (LOW) · Higher = larger blast radius
22.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.7% · Lower = rushed or shallow review
89.7%
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: 2.3% · Safe to merge
2.3%