chore: remove shadow policy machinery (ADR-0013 step 10)

Deletes shadowPolicies map, getShadowPolicies, setPolicyActive from
recommender.ts; removes /api/admin/policies routes from admin.ts; removes
getPolicies, togglePolicy, PolicyInfo from admin api.ts; removes the
policy toggle section from the ops page.

168 API tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-04 10:45:32 +00:00
parent 8e9718e8ba
commit 05f748159b
4 changed files with 5 additions and 104 deletions

View File

@@ -91,10 +91,6 @@ export interface HealthStatus {
services: { name: string; status: string; latencyMs: number }[];
}
export interface PolicyInfo {
name: string;
active: boolean;
}
export interface SavedQuery {
id: string;
@@ -223,16 +219,6 @@ export function getHealth() {
return apiFetch<HealthStatus>('/admin/health');
}
export function getPolicies() {
return apiFetch<{ policies: PolicyInfo[] }>('/admin/policies');
}
export function togglePolicy(name: string, active: boolean) {
return apiFetch<{ ok: boolean }>(`/admin/policies/${name}/toggle`, {
method: 'POST',
body: JSON.stringify({ active }),
});
}
export function replaySignal(subject: string, payload: Record<string, unknown>) {
return apiFetch<{ ok: boolean }>('/admin/replay-signal', {