Back to Plate

Cohort Segmentation

.agents/skills/performance/rules/cohort-segmentation.md

53.0.61.0 KB
Original Source

Cohort Segmentation

Use this when "large document" or "big surface" is treated as one bucket.

Rule

Segment by size and complexity before choosing tactics.

Baseline Slate cohorts:

CohortExamplesDefault stance
normal0-500 blocks, low decorationsoptimize the repeated unit
medium500-2000 blocksDOM-present, strict budgets
large2000-10000 blocksDOM-present grouping, staged work, native behavior guarded
stress10000-50000 blocksexplicit degradation candidates
pathologicalcustom renderers, comments, annotations, nested hidden rangescomplexity-tagged, not hidden inside block count

Complexity Tags

  • custom leaf/text/element renderer
  • decorations per block
  • annotations/comments per block
  • hidden boundary count and depth
  • inline voids, voids, tables
  • collaboration activity
  • selection span length
  • shell/DOM-present/off/staged mode
  • mobile/IME/browser

Output

Every perf claim names the cohort it covers. No "fast for large docs" without a size and complexity tag.