P2.6: scheduler on carv-budget; carv-caps reclaims derivation nodes; P2.9 ELF tests #150
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.42) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 343 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.349
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #150"
general
weight: 0.35
garrickdabbs
A Phase 2 audit compared PLAN.md, CHANGELOG.md and the issue tracker. They mostly agree; the one stale item was the #59 issue body, which still said "complete" after the task was reopened. That body has been corrected outside this PR. This PR handles the next three open items: unbounded node growth in
carv-caps, the scheduler's duplicated refill math, and the ELF loader having no tests.carv-caps: bounded derivation treenode_count() <= capacity()always holds. Node storage is reserved up front inCSpace::new.deleteremoves the node from the tree and re-parents its children to the deleted node's parent. Revoking an ancestor still reaches descendants whose intermediate capability was deleted. The tree no longer keeps dead nodes as tombstones; that approach would have let a copy/delete chain grow without bound.revokefrees the whole subtree and clears slots through a node-to-slot link. Cost is O(descendants); before, it was O(slots × descendants).- 10 000 copy/delete cycles, and a chain of 10 000 deleted links: the node count stays bounded and revocation still works.
- A proptest that interleaves copies and deletes, then checks
revokeagainst a nearest-live-ancestor model.Scheduler (P2.6): CPU accounting via
carv_budget::Budgetkernelnow depends oncarv-budget.Threadholds aBudgetinstead of its own copy of the refill/charge math.Thread::new(..)now returnsResult<Self, BudgetError>.Thread::with_budgetis added so a thread can run on a budget carved out of a parent's.charge_cpufails, the rest of the period's allowance is drained.ELF loader (P2.9): in-kernel tests
These are
#[test_case]tests next to the code inkernel/src/elf.rs, built on a small image builder and a recordingSegmentMapper. They cover:PT_LOADheaders;MAX_SEGMENTS;map_intomapping page-rounded ranges, copying the exact file bytes, and returningMappingFailedwhen the mapper fails.Docs
task: P2.6