ECC/skills/continuous-learning-v2
tsli cb4e4ca711 fix: use CLI argument for hook phase detection in observe.sh
The observe.sh script receives "pre" or "post" as $1 from the hook
config, but the Python code was looking for a "hook_type" field in
the stdin JSON. Claude Code does NOT include "hook_type" in the
JSON payload passed to hooks, so it always defaulted to "unknown",
causing all observations to be recorded as "tool_complete" —
PreToolUse events were never distinguished from PostToolUse.

Fix: capture $1 as HOOK_PHASE and pass it to Python via env var.
This also fixes TIMESTAMP export in the .cursor copy where inline
`VAR=val cmd` syntax didn't propagate to the python subprocess.
2026-02-21 08:45:54 +08:00
..
agents fix: harden CI validators, shell scripts, and expand test suite 2026-02-12 14:11:33 -08:00
hooks fix: use CLI argument for hook phase detection in observe.sh 2026-02-21 08:45:54 +08:00
scripts fix: include .md files in instinct-cli glob (completes #216) 2026-02-13 01:26:37 -08:00
config.json feat: v1.1.0 release - session ID tracking, async hooks, new skills 2026-01-25 18:21:27 -08:00
SKILL.md docs: add 'When to Activate' sections to 14 skill definitions 2026-02-12 15:34:25 -08:00