Commit Graph
3 Commits
Author SHA1 Message Date
haelyra 926a07b5f8 fix: close metadata races and finish reviewed hook boundaries 2026-11-16 14:00:26 -05:00
YuhaoLin2005 76398ce89c fix(config-health): audit a script path attached to a separator
`python3 ~/.claude/scripts/guard.py;` was discarded whole as a
separator-bearing word, so a missing hook reported healthy. The
separator now ends the word and the path is audited. Covers `;`,
`&&` and `|`.

Also document the hook-consent flag the installer requires: the bare
`npx ecc-universal install --modules config-health` command is refused
without --enable-hooks or --no-hooks.
2026-11-03 00:20:44 +08:00
YuhaoLin2005 95bf86c348 Add config-health monitor and install wiring
- Add the config-health skill: a read-only monitor for hook wiring, rule references, and rule staleness; every mode exits 0.
- Ship its own SessionStart hook asset so installing the module registers the monitor; keep PreToolUse opt-in.
- Keep one install-state record per hook source, so hooks-runtime and config-health can share settings.json and uninstall removes both.
- Split the monitor into a CLI entry plus constants, paths, and scan modules; split scan_command and the hook contract suite. All files are under 800 lines and no function body reaches 50 lines.
2026-11-02 22:53:30 +08:00