← Back to Pull requests

Log verified L402 ID with client IP #310

Merged
bhandras merged 3 files (94 lines) on Oct 26, 2026 15:52 UTC
View on GitHub
bhandras bhandras commented on Oct 26, 2026 14:27 UTC
Author

Aperture's access log records the remote IP but does not identify the authenticated L402 token. Append l402_id=<token ID> to the same access log entry after L402 authentication succeeds, so operators can correlate token usage with client IPs.

Unverified credentials are excluded from attribution. The log records only the token ID, without the macaroon or preimage. The token decoder is shared with the rate limiter, and tests cover verified and rejected requests.

Validation: go test ./proxy and git diff --check.

Diff: 94 lines (+84 / -10) across 3 files Reviewer: hieblmi Review duration: 84m
All Vouch review confidence checks passed
Residual risk 0.09 = Change Risk (0.33) × (1 − Review Confidence (0.72)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 94 lines diff across 3 files
0.33
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.54 · 1 substantive comment(s)
0.54
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
71%
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.272
Real PR Conversation Timeline
4 items
github-actions[bot] github-actions[bot] commented on Oct 26, 2026 14:31 UTC
Bot

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

hieblmi hieblmi approved these changes on Oct 26, 2026 15:33 UTC
Approved Reviewer

LGTM!

sputn1ck sputn1ck approved these changes on Oct 26, 2026 15:37 UTC
Approved Reviewer

Approved these changes.

Reviewers
Assignees
bhandras bhandras
Labels
risk: low confidence: 71.6% 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: 33.2% (LOW) · Higher = larger blast radius
33.2%
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: 71.6% · Lower = rushed or shallow review
71.6%
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: 9.4% · Safe to merge
9.4%