CODE QUALITY: Lazy logging violation in agentic_validator.py #213

Closed
opened 2026-05-08 23:52:47 +00:00 by Mark · 1 comment
Owner

Description

In substrate/agentic_validator.py line 64:

LOGGER.error(f"Agentic validation error: {e}")

This uses an f-string which forces string formatting even when the log level doesn't include ERROR. Should use lazy evaluation:

LOGGER.error("Agentic validation error: %s", e)

Also, the model name is hardcoded as qwen2.5-coder at line 31, and the Ollama host default is http://localhost:11434 — these should be configurable via environment variables for production deployment.

Severity

LOW - Code quality / maintainability

## Description In `substrate/agentic_validator.py` line 64: ```python LOGGER.error(f"Agentic validation error: {e}") ``` This uses an f-string which forces string formatting even when the log level doesn't include ERROR. Should use lazy evaluation: ```python LOGGER.error("Agentic validation error: %s", e) ``` Also, the model name is hardcoded as `qwen2.5-coder` at line 31, and the Ollama host default is `http://localhost:11434` — these should be configurable via environment variables for production deployment. ## Severity **LOW** - Code quality / maintainability
Author
Owner

GSD RESEARCH phase failed: LLM provider timeout or error.
Retry on next pipeline tick.

GSD RESEARCH phase failed: LLM provider timeout or error. Retry on next pipeline tick.
Mark 2026-05-26 15:11:38 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/mesh-seed#213
No description provided.