mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 23:12:30 +02:00
The SessionStart hook injects the most recent *-session.tmp as additionalContext labelled only with 'Previous session summary:'. After a /compact boundary, the model frequently re-executes stale slash-skill invocations it finds inside that summary, re-running ARGUMENTS-bearing skills (e.g. /fw-task-new, /fw-raise-pr) with the last ARGUMENTS they saw. Observed on claude-opus-4-7 with ECC v1.9.0 on a firmware project: after compaction resume, the model spontaneously re-enters the prior skill with stale ARGUMENTS, duplicating GitHub issues, Notion tasks, and branches for work that is already merged. ECC cannot fix Claude Code's skill-state replay across compactions, but it can stop amplifying it. Wrap the injected summary in an explicit HISTORICAL REFERENCE ONLY preamble with a STALE-BY-DEFAULT contract and delimit the block with BEGIN/END markers so the model treats everything inside as frozen reference material. Tests: update the two hooks.test.js cases that asserted on the old 'Previous session summary' literal to assert on the new guard preamble, the STALE-BY-DEFAULT contract, and both delimiters. 219/219 tests pass locally. Tracked at: #1534 |
||
|---|---|---|
| .. | ||
| auto-tmux-dev.js | ||
| bash-hook-dispatcher.js | ||
| block-no-verify.js | ||
| check-console-log.js | ||
| check-hook-enabled.js | ||
| config-protection.js | ||
| cost-tracker.js | ||
| design-quality-check.js | ||
| desktop-notify.js | ||
| doc-file-warning.js | ||
| evaluate-session.js | ||
| gateguard-fact-force.js | ||
| governance-capture.js | ||
| mcp-health-check.js | ||
| plugin-hook-bootstrap.js | ||
| post-bash-build-complete.js | ||
| post-bash-command-log.js | ||
| post-bash-dispatcher.js | ||
| post-bash-pr-created.js | ||
| post-edit-accumulator.js | ||
| post-edit-console-warn.js | ||
| post-edit-format.js | ||
| post-edit-typecheck.js | ||
| pre-bash-commit-quality.js | ||
| pre-bash-dev-server-block.js | ||
| pre-bash-dispatcher.js | ||
| pre-bash-git-push-reminder.js | ||
| pre-bash-tmux-reminder.js | ||
| pre-compact.js | ||
| pre-write-doc-warn.js | ||
| quality-gate.js | ||
| run-with-flags-shell.sh | ||
| run-with-flags.js | ||
| session-activity-tracker.js | ||
| session-end-marker.js | ||
| session-end.js | ||
| session-start-bootstrap.js | ||
| session-start.js | ||
| stop-format-typecheck.js | ||
| suggest-compact.js | ||