Skip to content

fix(ml4w): make verify-ml4w-setup robust and recognise linked ML4W directories - #19

Merged
Dreamcoder08 merged 1 commit into
mainfrom
fix/ml4w-managed-path-predicate
Sep 29, 2026
Merged

Dreamcoder08 merged 1 commit into
mainfrom
fix/ml4w-managed-path-predicate

Conversation

@Dreamcoder08

Copy link
Copy Markdown
Owner

Live verify-ml4w-setup.sh goes from 20 passed / 4 warnings to 23 passed / 1 warning (the remaining one is the genuine uncommitted-changes notice).

  • path_is_ml4w_managed: a file inside a directory symlinked into the ML4W dotfiles is managed. ML4W 2.16 links whole app directories, so rofi, wlogout and swaync configs were reported as regular files. ML4W_DOTFILES_DIR relocates the root.
  • Paths reach inline Python through argv instead of being interpolated into source (a quote in the path broke schema validation and could inject code); a missing jsonschema is now reported instead of silently skipping the check.
  • A missing jq is reported as skipped instead of as Hyprland not running or invalid JSON.
  • Shared helpers for the wlogout/swaync colour links, the profile paths and the dreamcoder-symlink check.
  • AGENTS.md: executable scripts set strict mode, sourced files must not, and the unworkable 30-line rule is dropped. With GGA now running on gpt-6.1-sol these rules are enforced for real, so they must be satisfiable.

Tests: 8 new bats tests (5 predicate, 3 verify robustness); bats 107/107.

…rectories

- path_is_ml4w_managed: a file inside a directory symlinked into the ML4W dotfiles is managed
  (ML4W 2.16 links whole app dirs), removing three false 'regular file' warnings
- verify passes paths to inline Python through argv instead of interpolating them, and says
  when schema validation is skipped for lack of jsonschema
- a missing jq is reported as skipped instead of as Hyprland not running or invalid JSON
- share helpers for the wlogout and swaync colour links, the profile paths and the dreamcoder
  symlink check
- AGENTS.md: scripts set strict mode, sourced files must not, drop the unworkable 30-line rule
@Dreamcoder08
Dreamcoder08 merged commit fee69a7 into main Sep 29, 2026
13 checks passed
@Dreamcoder08
Dreamcoder08 deleted the fix/ml4w-managed-path-predicate branch September 29, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant