feat(engine): implement prompt reader #81
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/kronai!81
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/0017-implement-prompt-reader"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Implement prompt reader that reads
prompt.mdfrom job directories and raisesJobErroron missing/unreadable prompts.Why
Foundation for job execution - the LLM client needs a prompt to process.
Testing
Breaking Changes
None.
Closes #0015
Closes #0016
Closes #0017
Automated Review — PR #81
Result: APPROVED
Small, focused PR. The
read_prompt()function is correct and well-tested.JobErroron missing/unreadable, proper encoding, exception chaining withfrom e.JobErrorfor both missing file and OSError on read.Suggestions (non-blocking)
tests/unit/test_prompt.py:4-12— Import style inconsistency.Pathis imported underTYPE_CHECKINGwhile the rest of the test suite (test_config.py,test_discovery.py) imports it at module level. Also,from kronai...imports placed after theTYPE_CHECKINGblock differs from the project convention (real imports first, TYPE_CHECKING last). Minor, but worth aligning.src/kronai/engine.py:32—msg = f"Prompt file not found in {job_path}"includes the full path in the error message. Same path-leakage concern as issue #74 — consider usingjob_path.nameif logging user-visible paths is a concern.