feat(rules): wrapper and runtime rules blocked by variable filenames and missing shell primitive #32

Open
opened 2026-05-25 10:33:46 +02:00 by michael · 0 comments
Owner

Problem

daw-wrapper-standard.md defines conventions for Shell wrappers (bin/)
and main.lua runtime loading that cannot be enforced by fragjan today.

Two blockers:

1. Variable filenames
bin/ -- filename depends on project name.
Requires parameter interpolation in rule paths (runner resolves {project_id}
from context before calling the primitive).

2. No Shell primitive
Wrapper scripts are Shell, not Lua. No primitive exists yet for Shell
syntax or content checks. daw-shell pack is planned in fragjan-konzept.md
but not implemented.

Rules that would become possible

Once both blockers are resolved:

  • wrapper-exists: bin/{project_id} exists (exists, type: file)
  • wrapper-has-lua-detection: bin/{project_id} contains 'DAW_LUA_BIN' (contains)
  • wrapper-has-runtime-root: bin/{project_id} contains 'runtime-install-root' (contains)
  • main-has-load-runtime: main.lua contains 'load_runtime' (pattern)
  • main-has-runtime-check: main.lua contains 'runtime.install_root' (pattern)
  • DAW/fragjan#29 (parameter interpolation in rule paths)
  • daw-wrapper-standard.md
## Problem daw-wrapper-standard.md defines conventions for Shell wrappers (bin/<project>) and main.lua runtime loading that cannot be enforced by fragjan today. Two blockers: **1. Variable filenames** bin/<project> -- filename depends on project name. Requires parameter interpolation in rule paths (runner resolves {project_id} from context before calling the primitive). **2. No Shell primitive** Wrapper scripts are Shell, not Lua. No primitive exists yet for Shell syntax or content checks. daw-shell pack is planned in fragjan-konzept.md but not implemented. ## Rules that would become possible Once both blockers are resolved: - wrapper-exists: bin/{project_id} exists (exists, type: file) - wrapper-has-lua-detection: bin/{project_id} contains 'DAW_LUA_BIN' (contains) - wrapper-has-runtime-root: bin/{project_id} contains 'runtime-install-root' (contains) - main-has-load-runtime: main.lua contains 'load_runtime' (pattern) - main-has-runtime-check: main.lua contains 'runtime.install_root' (pattern) ## Related - DAW/fragjan#29 (parameter interpolation in rule paths) - daw-wrapper-standard.md
michael added this to the Basic Version milestone 2026-05-30 16:08:29 +02:00
Sign in to join this conversation.
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#32
No description provided.