ECC/skills/continuous-learning-v2
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
..
agents fix(clv2): archive observations only after successful analysis in observer-loop (#2386) 2026-06-29 18:43:37 -07:00
hooks fix(clv2): surface SIGALRM timeout drops in observe.sh (#2373) 2026-06-29 18:43:28 -07:00
scripts test(clv2): add coverage for instinct-cli prune, projects ops, promote dry-run, normalize-url (#2374) 2026-06-29 18:43:32 -07:00
config.json feat: project-scoped instinct isolation 2026-03-01 12:07:13 -08:00
SKILL.md fix(skills): move top-level origin frontmatter key under metadata 2026-06-11 21:12:21 +09:00