policy: drop SendEvent and policy events #824
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 · 200 lines diff across 2 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.317
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #824"
general
weight: 0.35
bart0sh
Follow-up to this review comment on #803. Policies had two ways to call back into the resource manager: the
SendEventfunction and theOwnerinterface. This dropsSendEventalong with the event machinery behind it, soOwneris the only one left.Two commits:
Owner, which is async.Lockerlike the DRA plugin's owner, saves the reallocated memory so it survives a restart, and then asks the owner to push the container updates withOwner.UpdateContainers().SendEventand the event loop are removed.HandleEventbecomesContainerStarted. This is cleanup. Container start was the only event left, soHandleEvent(*events.Policy)is replaced withContainerStarted(cache.Container)and theeventspackage is removed. The first commit stands on its own, so this one can be dropped if it isn't wanted.The developer guide's architecture page no longer describes the internal policy events.
Testing: unit tests pass. The skipped
TestColdStartis replaced with an enabled test on the server sysfs testdata, which has CPU-less memory nodes. It checks that the container starts PMEM-only, that the timer callsUpdateContainerswith the owner lock held, and that the memory zone then includes DRAM. There is still no e2e test for cold start.