← Back to Pull requests

Add sleep, replace unmaintained core2 with embedded-io #5

Merged
seritools merged 6 files (60 lines) on Jul 01, 2024 13:48 UTC
View on GitHub
seritools seritools commented on Jul 01, 2024 13:22 UTC
Author

No description provided by author.

Diff: 60 lines (+49 / -11) across 6 files Reviewer: beborngod Review duration: 25m
All Vouch review confidence checks passed
Residual risk 0.07 = Change Risk (0.35) × (1 − Review Confidence (0.81)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 60 lines diff across 6 files
0.35
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.71 · 2 substantive comment(s)
0.71
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
81%
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.246
Real PR Conversation Timeline
5 items
beborngod beborngod approved these changes on Jul 01, 2024 13:27 UTC
Approved Reviewer

Approved these changes.

jose-acevedoflores jose-acevedoflores commented on code on Jul 01, 2024 13:43 UTC
Code Review
crates/km/src/time.rs:1
@@ -0,0 +1,29 @@
+use crate::mode::ProcessorMode;
+use core::time::Duration;
+use km_sys::{KeDelayExecutionThread, LARGE_INTEGER};
+
+/// Sleep in kernel-mode, non-alertable.
+///
+/// > Where possible, Alertable should be set to FALSE and WaitMode should be set to KernelMode, in
+/// > order to reduce driver complexity. The principal exception to this guideline is when the wait
+/// > is a long-term wait.
+pub fn sleep_km(d: Duration) {

Should this receive an enum like:
``
enum Sleep {
Relative(Duration),
Absolute(Duration)
}
``

seritools seritools commented on code on Jul 01, 2024 13:44 UTC
Code Review
crates/km/src/time.rs:1
@@ -0,0 +1,29 @@
+use crate::mode::ProcessorMode;
+use core::time::Duration;
+use km_sys::{KeDelayExecutionThread, LARGE_INTEGER};
+
+/// Sleep in kernel-mode, non-alertable.
+///
+/// > Where possible, Alertable should be set to FALSE and WaitMode should be set to KernelMode, in
+/// > order to reduce driver complexity. The principal exception to this guideline is when the wait
+/// > is a long-term wait.
+pub fn sleep_km(d: Duration) {

IMO it would be a seprate function (similar to tokio's sleep_until) for that, same with Kernel/Usermode and alertable/non-alertable. Only implementing the basic case as that's all we need ATM.

jose-acevedoflores jose-acevedoflores approved these changes on Jul 01, 2024 13:47 UTC
Approved Reviewer

Approved these changes.

Reviewers
Assignees
seritools seritools
Labels
risk: low confidence: 81.1% 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.9% (LOW) · Higher = larger blast radius
34.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: 81.1% · Lower = rushed or shallow review
81.1%
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: 6.6% · Safe to merge
6.6%