← Back to Pull requests

[Connector] Use shared lifecycle state handling #314

Merged
burin-labs-agent merged 3 files (301 lines) on Oct 23, 2026 15:13 UTC
View on GitHub
burin-labs-agent burin-labs-agent commented on Oct 23, 2026 15:11 UTC
Author

GitLab now delegates initialization, binding activation, and shutdown to Harn's shared connector lifecycle owner, removing its duplicate state policy. The adapter preserves GitLab's existing success and error responses, including kind: "webhook", and publishes the lifecycle result types in its generated API reference. A new contract test passed against both the original implementation and the shared owner: it checks exact response shapes, binding IDs, duplicate-path rejection before any state write, retained active state after refusal, and shutdown without changing another provider's state. Published Harn 0.10.174 passed all 12 package verification stages, including all eight package tests and consumer install/import; existing manifest warnings remain and no live GitLab request was needed.

Partial: burin-labs/harn#8161 (GitLab adoption).

<!-- codesmith:footer -->
---
<a href="https://app.blacksmith.sh/burin-labs/codesmith/harn-gitlab-connector/pr/314?autoLogin=true&ref=codesmith_pr_footer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v3.svg"><img alt="View with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3-3x.png" width="162" height="28"></picture></a> <a href="https://backend.blacksmith.sh/track/enable-autofix?expires=1795360299&installation_model_id=426921&pr_number=314&ref=codesmith_pr_footer&repository=burin-labs%2Fharn-gitlab-connector&return_to=https%3A%2F%2Fgithub.com%2Fburin-labs%2Fharn-gitlab-connector%2Fpull%2F314&signature=85ec8980c1696cc36614120498d2778314ab1a9a67fe9e6ec57a0d3c116ce80e"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img alt="Autofix with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png" width="190" height="28"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you need.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->

Diff: 301 lines (+225 / -76) across 3 files Reviewer: None requested Review duration: 1m
All Vouch review confidence checks passed
Residual risk 0.56 = Change Risk (0.62) × (1 − Review Confidence (0.10)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.62 · 301 lines diff across 3 files
0.62
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 22% · Reviewer familiarity: 10%
9%
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.342
No Reviewer Assigned no_reviewer_assigned
0.120
Rapid Merge rapid_merge
0.100
Real PR Conversation Timeline
1 comments
"Review active on #314"
general weight: 0.35
Reviewers
None requested
Assignees
burin-labs-agent burin-labs-agent
Labels
risk: medium confidence: 9.9% 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: 62.1% (MEDIUM) · Higher = larger blast radius
62.1%
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: 9.9% · Lower = rushed or shallow review
9.9%
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: 55.9% · Moderate risk
55.9%