M4: First-draft stats capture (S5.1) #31

Closed
opened 2026-08-28 18:33:14 +02:00 by AlexKucera · 0 comments
Owner

What to build

Measure the writer, not the text. Stats — burstiness, type-token ratio, sentence-length variation, trigram repetition — are computed natively in Swift at capture time, which fires at the first pass invocation of any kind, before the Engine sees anything. Only writer-origin First Drafts qualify: the origin wall is immutable, detection is explicit (Pass State), never inferred. Sessions never disqualify a draft — only passes do. Edited text never feeds the trend. (PRD S5.1)

Acceptance criteria

  • Capture fires at the first pass invocation, before the Engine sees the text
  • Only origin: writer Posts still in First Draft Pass State qualify; origin immutable
  • All four metrics computed in Swift at capture time — never agent-computed
  • Captured stats stored per Post/draft, ready for the trend view

Blocked by

  • #24 — M2: Run a Pass (S3.1)

[Generated by AI]

## What to build Measure the writer, not the text. Stats — burstiness, type-token ratio, sentence-length variation, trigram repetition — are computed natively in Swift at capture time, which fires at the first pass invocation of any kind, before the Engine sees anything. Only writer-origin First Drafts qualify: the origin wall is immutable, detection is explicit (Pass State), never inferred. Sessions never disqualify a draft — only passes do. Edited text never feeds the trend. (PRD S5.1) ## Acceptance criteria - [ ] Capture fires at the first pass invocation, before the Engine sees the text - [ ] Only `origin: writer` Posts still in First Draft Pass State qualify; origin immutable - [ ] All four metrics computed in Swift at capture time — never agent-computed - [ ] Captured stats stored per Post/draft, ready for the trend view ## Blocked by - #24 — M2: Run a Pass (S3.1) [Generated by AI]
AlexKucera added the ready-for-agent label 2026-08-28 18:33:14 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:45 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:46 +02:00
Sign in to join this conversation.