docs(config): hardcoded Level 3 path needs explanatory comment #56

Closed
opened 2026-05-25 14:42:48 +02:00 by michael · 1 comment
Owner

Problem

core/config.lua Level 3 path is hardcoded without explanation:

local run_path = "config/fragjan.conf"

This is intentional dev-mode behavior -- fragjan reads its own project
config when run from its own root. But without a comment, this looks
like a bug (CWD-dependent, not using runtime paths).

Fix

Add an explanatory comment:

-- Level 3: fragjan's own project config (dev mode).
-- Intentionally relative to CWD -- fragjan must be run from its own root.
local run_path = "config/fragjan.conf"

Acceptance criteria

  • Comment explains why this path is hardcoded and CWD-relative
## Problem `core/config.lua` Level 3 path is hardcoded without explanation: ```lua local run_path = "config/fragjan.conf" ``` This is intentional dev-mode behavior -- fragjan reads its own project config when run from its own root. But without a comment, this looks like a bug (CWD-dependent, not using runtime paths). ## Fix Add an explanatory comment: ```lua -- Level 3: fragjan's own project config (dev mode). -- Intentionally relative to CWD -- fragjan must be run from its own root. local run_path = "config/fragjan.conf" ``` ## Acceptance criteria - [ ] Comment explains why this path is hardcoded and CWD-relative
michael added this to the Basic Version milestone 2026-05-30 16:08:41 +02:00
Author
Owner

Fixed in core/config.lua.

Added explanatory comment above Level 3 path explaining CWD-relative
behavior and dev mode intent.

Fixed in core/config.lua. Added explanatory comment above Level 3 path explaining CWD-relative behavior and dev mode intent.
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
DAW/fragjan#56
No description provided.