Jeremy Blankenship
Jeremy Blankenship
## Summary - add MiniMax OAuth support to auxiliary client resolution so aux tasks use the MiniMax Anthropic endpoint instead of falling through to OpenRouter - make delegated child credential-pool...
**Source:** Phase 3 sweep (Lane K), 2026-06-22. **What:** Lane K identified ~33 P3 readability findings across `enoch_control_plane/control_plane/store.py` (5100 LoC) and `enoch_control_plane/app.py` (3620 LoC). Common themes: - 5100-line `ControlPlaneStore` class with...
**Source:** Phase 3 sweep (Lane K), 2026-06-22. **What:** Lane K identified ~16 P3 readability findings in `enoch_control_plane/control_plane/supabase_store.py` (6012 LoC). Common themes: - >25 inline multi-line SQL strings embedded in method...
**Source:** Phase 3 sweep (Lane K), 2026-06-22. **What:** Lane K (maintainability deep review) identified ~41 P3 readability/simplify findings in `enoch_control_plane/control_plane/router.py` (9051 LoC). Common themes: - God-object patterns: `dashboard_research_run_cycle` threads >40...
**Severity**: P2 (medium) — privilege escalation contradicts documented invariant **Component**: `supabase/migrations/20260506151315_enoch_core_supabase_store.sql` **Evidence**: ```sql -- supabase/migrations/20260506151315_enoch_core_supabase_store.sql:53 grant select, insert, update, delete on enoch.core_events, enoch.core_snapshots, enoch.core_decisions, enoch.core_projection_cache to service_role; ``` The migration...
**Severity**: P2 (medium) — SSRF guard bypass via DNS rebinding (TOCTOU) **Component**: `enoch_control_plane/url_safety.py:136-148` (`urlopen_validated`) **Evidence**: `urlopen_validated` validates the URL then opens it, but the validation resolution and the actual connection...
**Severity**: P2 (1000-row projection = 22,000 subqueries on Postgres mirror; dashboard latency grows linearly with queue size) **Component**: `enoch_control_plane/control_plane/store.py:2068` (`ControlPlaneStore.queue_rows`) **Evidence**: ```sql SELECT q.*, (SELECT pa.paper_id FROM papers pa WHERE...
**Severity**: P2 (UX/security) — token expiry invisible; user keeps seeing stale data **Component**: `dashboard/src/components/ResourcePages.tsx:155` **Evidence**: ```typescript function refetchInBackground(refetch: () => Promise): void { refetch().catch(() => undefined) } function refetchAllInBackground(...refetches: Array...
**Severity**: P2 (medium) — secret leakage to on-disk audit trace **Component**: `enoch_control_plane/operational_trace.py:21-33` (`_redact_value`) **Evidence**: `OperatorTrace` is the append-only audit/flight-recorder that records dispatch decisions and operator context to `operator_trace.jsonl`. Its redaction...
**Severity**: P2 (medium) — observability primitive with thin coverage **Component**: `tests/` — missing `test_error_tracking.py` **Evidence**: `enoch_control_plane/observability/error_tracking.py` exists and exports capture/report functions. The only tests that touch it are `tests/test_sentry_observability.py:8-50`, which...