Jeremy Blankenship

Results issues of Jeremy Blankenship

**Severity**: P1 (security footgun) — `USING (true)` policy replicated across 4 migrations **Component**: `supabase/migrations/20260505234007_enoch_advisor_hardening.sql:30`, also `20260506122514_enoch_native_ideas.sql`, `20260506151315_enoch_core_supabase_store.sql`, `20260509140339_enoch_research_facility_ledgers.sql` **Evidence**: ```sql do $$ declare table_record record; begin for table_record in select...

bug
P1-high
area:security

**Severity**: P1 (high) — silent schema drift + future-migration footgun **Component**: `supabase/migrations/20260519122000_research_lineage_followup_parent_source.sql` **Evidence**: The migration drops and re-adds two CHECK constraints with the *same* name but a *different* (wider) allow-list:...

bug
P1-high
area:database

**Severity**: P1 (high) — process control path with no dedicated tests **Component**: `tests/` — missing `test_process_tracker.py` **Evidence**: `enoch_control_plane/process_tracker.py` is 466 lines. It tracks PIDs/process-groups/project-cwd processes, and its PID-reuse defense (`_finalize_stale_reap`...

P1-high
chore
area:control-plane
area:worker

**Severity**: P1 (high) — no direct tests for the untrusted-tar ingestion path **Component**: `tests/` — missing `test_safe_tar_extract.py` **Evidence**: `enoch_control_plane/control_plane/safe_tar_extract.py` (405 lines) is the only untrusted-tar ingestion path in the control...

P1-high
chore
area:control-plane
area:security

**Severity**: P1 (high) — duplicate dry-run dispatch events for the same candidate **Component**: `enoch_control_plane/control_plane/graphs.py:37-80` **Evidence**: ```python def paused(state: DispatchGraphState) -> DispatchGraphState: action, candidate, event_id, reason = store.dispatch_next_dry_run( requested_by=state.get("requested_by") or "operator"...

bug
P1-high
area:control-plane

**Severity**: P1 (high) — dashboard-wide outage on transient filesystem issue **Component**: `enoch_control_plane/control_plane/read_models.py:156-176` **Evidence**: ```python root = Path(project_dir_text).expanduser().resolve(strict=True) if not candidate.is_absolute(): candidate = root / candidate resolved = candidate.resolve(strict=False) resolved.relative_to(root) return...

bug
P1-high
area:control-plane

**Severity**: P1 (high) — privilege boundary bypass via env var **Component**: `enoch_control_plane/control_plane/read_models.py:278-287` **Evidence**: ```python def _configured_project_root() -> str: config_path = os.environ.get("ENOCH_CONFIG") or os.environ.get( "ENOCH_CONTROL_PLANE_CONFIG", "/etc/enoch/config.json" ) try: with open(config_path, encoding="utf-8")...

bug
P1-high
area:control-plane
area:security

**Severity**: P1 (high) — dispatch classification is wrong for the negation cases it was designed to handle **Component**: `enoch_control_plane/control_plane/workload_routing.py:150-187` **Evidence**: ```python def infer_workload_class_from_text(row: dict[str, Any]) -> str: text = _field_text(row)...

bug
P1-high
area:control-plane

**Severity**: P1 (high) — secret leakage in persisted telemetry **Component**: `enoch_control_plane/control_plane/llm_harness_telemetry.py:84-91` **Evidence**: ```python _SECRET_VALUE_PATTERNS = ( re.compile(r"\bbearer\s+[\w.~+/=-]{8,}", re.IGNORECASE), re.compile(r"\bsk-[\w-]{12,}\b"), re.compile(r"\bsk-or-v1-[\w-]{12,}\b"), re.compile(r"\bghp_\w{12,}\b"), re.compile(r"\bgithub_pat_\w{12,}\b"), re.compile(r"\blin_api_\w{12,}\b"), ) ``` **Impact**: - The `Bearer` pattern...

bug
P1-high
area:control-plane
area:observability

**Severity**: P1 (high) — duplicate events from same workflow collapse to one **Component**: `enoch_control_plane/control_plane/llm_harness_telemetry.py:216-237` **Evidence**: ```python trace_or_run = _text(safe_payload.get("run_id") or safe_payload.get("trace_id")) entity_id = trace_or_run or _text(safe_payload.get("workflow_id")) event_key = idempotency_key or...

bug
P1-high
area:control-plane
area:observability