← Back to Pull requests

chore: kernel doc-comment and stale-comment fixes #128

Closed
unknown closed this pull request without merging on Sep 29, 2026 19:31 UTC
View on GitHub
unknown unknown commented on Sep 29, 2026 16:02 UTC
Author

No behaviour change — doc-comment and stale-comment fixes only.

  • kernel/src/main.rs: the doc comment describing the guard-page stack-overflow mechanism sat

  • above force_oom instead of force_stack_overflow. Moved it to the right function.
  • main.rs: the inline comment "Guard page at TEST_STACK_BASE - 4 KiB" named a constant that

  • doesn't exist. Reworded in terms of base.
  • main.rs module doc: replaced the stale "P1.1 state" opening with a current summary of the

  • P1.1–P1.7 boot sequence.
  • main.rs: moved the RSDP request static up with the other Limine requests, between

  • REQUESTS_START and REQUESTS_END, for readability (linker.ld already orders the sections
    correctly regardless of source order, so this changes nothing at runtime).
  • kernel/src/test.rs, interrupts_are_disabled_at_boot: the comment "we have no IDT yet" was

  • stale — the IDT is loaded before tests run. Reworded to say interrupts stay off until kmain
    enables them after the tests (verified against main.rs: test_main() runs before
    enable_interrupts()).
  • CHANGELOG: added an Unreleased → Changed line.
  • cargo xtask test --timeout 120
      PASS  host unit tests: passed
      PASS  in-kernel tests (QEMU): chisel-test: 15 passed; 0 failed
      PASS  boot smoke (UEFI, BIOS, panic, double fault, page fault, stack overflow, OOM): 7 scenarios passed
    

    cargo fmt --check, cargo clippy --workspace --exclude chisel -- -D warnings,
    cargo clippy -p chisel --target x86_64-unknown-none -- -D warnings, and
    cargo xtask docs-gate --base origin/main all pass locally.

    Docs-only/comment change, no task: ID (not a PLAN.md roadmap task).

    Diff: 206 lines (+154 / -52) across 2 files Reviewer: garrickdabbs Review duration: 209m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). 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%
    60%
    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: 60.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: 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: 60.5% · Lower = rushed or shallow review
    60.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: 14.4% · Safe to merge
    14.4%