Skip to content

refactor: delegate ai_audit to AiGateway + shadow feedback hook#32

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

refactor: delegate ai_audit to AiGateway + shadow feedback hook#32
Pigbibi merged 2 commits into
mainfrom
feat/unified-ai-gateway

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Gateway-first architecture with backward-compatible fallbacks.

Pigbibi and others added 2 commits June 29, 2026 16:30
_complete_with_endpoint() now routes through AiGateway when
CODEX_AUDIT_SERVICE_URL is configured — API keys centralized on VPS.

Co-Authored-By: Claude <noreply@anthropic.com>
…ements

After each shadow audit completes with a non-"agree" verdict,
fire-and-forget report to AiGateway\'s POST /v1/ai/feedback/shadow.

The gateway tracks cumulative disagreements per plugin. When a threshold
(5 consecutive) is reached, it auto-escalates for deterministic logic review.

Co-Authored-By: Claude <noreply@anthropic.com>
@Pigbibi Pigbibi merged commit c42fd50 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