Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 950 Bytes

session-drift.md

File metadata and controls

34 lines (29 loc) · 950 Bytes
id session-drift
name Session Drift
group session-hygiene
severity medium
scope sessions
version 1
tags
session
focus
drift
thresholds
maxWorkTypes minReqsPerSession minSessions
4
5
3

Description

Detects sessions that cover too many different task types, confusing the AI context window.

When Triggered

{{count}} sessions cover {{extra.maxWorkTypes}}+ different task types. Mixed-purpose sessions confuse the AI context.

How to Improve

Start a new session when switching task types (bug fix to feature, docs to testing, etc.). Focused sessions get better responses.

Examples

{{extra.workspace}}: {{extra.workTypes}}

Detection Logic

scan: sessions
match: requestCount >= thresholds.minReqsPerSession AND workTypeCount(requests) >= thresholds.maxWorkTypes
aggregate: count
check: count > thresholds.minSessions
examples: {{workspaceName}}: {{workTypeCount(requests)}} work types in one session