paperclip/server
Solved Bot cb6294ec02 feat(heartbeat): ADR-0044 session lifecycle T1/T2/T3/T4 for claude_local
Implements ADR-0044 «Heartbeat session lifecycle» (SOL-1629).

- SessionCompactionPolicy gains maxCachedInputTokens (T1),
  rotateOnZeroOpenIssues (T3) and rotateOnNewIssueWake (T4).
- claude_local adapter ships with T1=500_000, T2=6h, T3+T4 enabled by
  default. Per-agent overrides (CEO/CoS/Analyst T1=1M / T2=12h)
  continue to flow through runtimeConfig.heartbeat.sessionCompaction.
- evaluateSessionCompaction now considers cache_read_input_tokens
  (the actual cost signal under Anthropic prompt caching) and the
  state-triggered rotations described in ADR-0044.
- Extracted a pure decideSessionCompactionTrigger helper so the
  decision rule is unit-testable without a database.
- usageJson now records freshSessionTriggeredBy for retrospective
  tuning per ADR-0044 §Acceptance criteria.
- countOpenIssuesForAgent helper added inline in heartbeat service.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-12 10:47:43 +02:00
..
scripts fix(server): bundle the vendored paperclip-runner instead of hand-mirroring its deps (#13121) 2026-09-09 16:38:17 -07:00
src feat(heartbeat): ADR-0044 session lifecycle T1/T2/T3/T4 for claude_local 2026-09-12 10:47:43 +02:00
CHANGELOG.md fix: bound workspace Git scans (#11572) 2026-08-17 22:11:30 -05:00
package.json feat(connections): add AgentMail inboxes and email tasks (#13256) 2026-09-11 16:56:38 -05:00
tsconfig.json Fix root TypeScript solution config 2026-03-09 14:09:30 -05:00
vitest.config.ts fix(server): bundle the vendored paperclip-runner instead of hand-mirroring its deps (#13121) 2026-09-09 16:38:17 -07:00