feat(session): add CloseApproval to close an unreissuable approval gate #240
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 · 187 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.313
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #240"
general
weight: 0.35
aramase
A session whose approval gate the harness can no longer re-issue stays blocked for good: Exec refuses with ErrApprovalBlocked. This adds a host-side
CloseApprovalRPC so the session owner can close that gate and the session can take new turns again.CloseApprovalRPC, client method andapproval.closepermission (owner by default, checked afterread).- undecided: a host denial, then
NOT_EXECUTED(a later Approve is refused)- denied:
NOT_EXECUTED- approved with no receipt:
OUTCOME_UNKNOWN, because the journal cannot prove the host never ran the call- already receipted: the existing records are returned unchanged
NOT_EXECUTEDandOUTCOME_UNKNOWN; harness reports carrying them are still refused. All three receipt validators accept them.Tested with
go test -race -shuffle=on ./...,buf lint,buf breakingagainst v0.3.0, a cleanbuf generate, and golangci-lint. The old spike test for a blocked session is nowTestCloseApprovalUnblocksSession, which takes a new turn after close.