discovery: load_job_config type safety for raw.get() values #79

Closed
opened 2026-07-05 13:48:02 +00:00 by the.auditor · 0 comments
Owner

In src/kronai/discovery.py:130-137, raw.get() returns object but values flow into typed JobConfig() fields. e.g., mcp_servers expects list[str] but a TOML table or scalar would slip through silently.

Consider adding isinstance guards or a validation layer.

From PR #77 review suggestion.

In `src/kronai/discovery.py:130-137`, `raw.get()` returns `object` but values flow into typed `JobConfig()` fields. e.g., `mcp_servers` expects `list[str]` but a TOML table or scalar would slip through silently. Consider adding `isinstance` guards or a validation layer. _From PR #77 review suggestion._
fuzzy closed this issue 2026-07-05 16:18:42 +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
thwap/kronai#79
No description provided.