Add Client.Unenroll and host ephemeral metadata #61
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 294 lines diff across 3 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.340
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #61"
general
weight: 0.35
brad-defined
Summary
Client support for
dnclient unenroll(server side: DefinedNet/api#2432).Merge order: don't merge until DefinedNet/api#2466 is deployed. Until then the API answers unsigned, and every unenroll fails verification.
Also:
The API sends
host.ephemeralonce DefinedNet/api#2459 ships. A response without it reads as false, which dnclient treats like any non-ephemeral host: the API decides through the 403.Evidence
{}from a proxy madeUnenrollreturn nil, which dnclient read as "deleted". The same body on a log-streaming response panics withsync/atomic: store of nil value into Value.After:
TestUnenrollcovers 200, 401, 403, 500, 503 proxy bodies ({},null,{"message":...}) and 200 non-API bodies;TestStreamCommandResponsecovers 503{}. Both fail (the stream test panics) on main'sclient.go.TestUnenrollalso covers unsigned, wrong-signature and other-host 200 responses.ErrInvalidCredentials. To re-run once api#2466 deploys. The 403 path was not live-tested (unit test only).Merge Danger
Door: two-way
Blast Radius: small
The non-200 change affects every dnclient endpoint call: a proxy JSON page that used to yield a nil error (then a signature failure, or a panic when streaming) now yields a status error. No caller relied on the nil.