Skip to content

refactor: delegate AiServiceClient to unified AiGateway client + confidence consensus - #128

Merged
Pigbibi merged 2 commits into
mainfrom
feat/unified-ai-gateway
Jun 29, 2026
Merged

refactor: delegate AiServiceClient to unified AiGateway client + confidence consensus#128
Pigbibi merged 2 commits into
mainfrom
feat/unified-ai-gateway

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Changes

  • ai_provider.py: AiServiceClient → thin wrapper around AiGatewayClient
  • ai_reviewer.py: _resolve_multi_consensus() uses confidence scores with graduated autonomy

🤖 Generated with Claude Code

Pigbibi and others added 2 commits June 29, 2026 16:30
AiServiceClient now delegates to AiGatewayClient when available,
with full backward compatibility via local fallback.

- review() → client.review() (POST /v1/ai/review)
- verify() → client.execute() (POST /v1/ai/execute/jobs)
- execute() → client.analyze() or client.execute()
- _fetch_oidc_token() now uses urllib.request.quote for audience
- Falls back to local HTTP implementation when client not installed

Co-Authored-By: Claude <noreply@anthropic.com>
_resolve_multi_consensus() now uses AI confidence scores to determine
autonomy level with graduated actions from auto_merge to escalate.

Co-Authored-By: Claude <noreply@anthropic.com>
@Pigbibi
Pigbibi merged commit 3450ef9 into main Jun 29, 2026
1 of 2 checks passed
@Pigbibi
Pigbibi deleted the feat/unified-ai-gateway branch June 29, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant