ECC/skills/continuous-learning-v2/agents
Gaurav Dubey f720885cea
fix(clv2): archive observations only after successful analysis in observer-loop (#2386)
analyze_observations moved observations.jsonl into observations.archive/
unconditionally, even when the Claude analysis failed (timeout, non-zero
exit, rate limit). Because the analyzer only reads the live file, a failed
batch was archived and never re-analyzed, silently dropping the instincts
it would have produced.

Return early on a non-zero analysis exit so the archive mv runs only on
success, retaining observations for the next cycle to retry. Resolve the
script's own directory from ${BASH_SOURCE[0]} (SCRIPT_DIR) so sibling
scripts (session-guardian.sh) and relative helpers resolve correctly under
both execution and sourcing, and add a source-guard so observer-loop.sh can
be sourced without starting the loop. Add a regression test covering both
the failure (retain) and success (archive) paths.

Fixes #2370
2026-06-29 18:43:37 -07:00
..
observer-loop.sh fix(clv2): archive observations only after successful analysis in observer-loop (#2386) 2026-06-29 18:43:37 -07:00
observer.md Fix for docs: Scope Decision Guide table duplicated in SKILL.md and observer.md with minor drift (#2366) 2026-06-29 15:50:49 -07:00
session-guardian.sh feat: active hours + idle detection gates for session-guardian (#413) 2026-03-12 23:44:34 -07:00
start-observer.sh fix: port continuous-learning observer fixes 2026-05-11 03:35:42 -04:00