feat(daemon): advise sessions stuck in the snapshot-per-action loop

Closed
ST
5d ago
+522-2

Summary

Refs expire with each mutating action (ADR 0014), so the reliable pattern is selector-direct actions; agents under token pressure instead settle into snapshot โ†’ press โ†’ full snapshot loops โ€” one audited session ran 352 snapshots across 660 device calls. The daemon now notices three consecutive rounds of that shape in a session and appends one hint line to the snapshot response's existing notices, pointing at the selector-direct path and --settle diff chaining. No behavior changes; the response carries one more optional line.

5 files changed (session advisory tracking, snapshot notices, tests).

Validation

  • Head: 7f061b900 on a68693c72.
  • pnpm run typecheck, pnpm run lint, advisory and snapshot tests, integration-progress --check, fallow, freerange: pass locally.
  • Independent cold review: APPROVE. CI runs the full gates on push.

๐Ÿค– Generated with Claude Code


Autofix with [code]smith
Open in [code]smith ยท Need help on this PR? Tag @codesmith-bot with what you need.