Files
Talysson de Oliveira Cassiano 0983341094 feat(hooks): script hooks fail closed on a server profile (#992)
The .sh and .ps1 script hooks cannot route server profiles, so a
repository whose marker selects one now emits nothing from them.
ai_memory_marker_qs appends a routed flag that ai_memory_post_hook and
ai_memory_get_handoff refuse, which covers every script without a
per-script check; the PowerShell library returns early from
Invoke-AiMemoryHook. The walk matches the native one, and a
`server`-only marker is a settings boundary in the shell parser too.

The PowerShell guard is exercised under real PowerShell by a
Windows-only test in the hooks crate (inherited selection, BOM, look-alike
keys, the $HOME boundary with its control, past a checkout root outside
home, current directory), and the shell suite pins on every platform that
Invoke-AiMemoryHook consults it before building its query.
2026-09-30 18:18:24 +00:00
..