ExtractionFunnel
Defined in: src/lib/memory/autoExtract.ts:343
Where a turn’s candidates went between the model’s completion and the vault —
every stage that can drop one, as a count. Returned by extractAndRetain
and forwarded on TurnCompleteEvent so a host can emit it; nothing here is
content.
Reads as a funnel: raw ≥ valid ≥ afterRedaction ≥ aboveConfidence, then
aboveConfidence = quarantined + retained + failed.
Properties
aboveConfidenceCount
aboveConfidenceCount:
number
Defined in: src/lib/memory/autoExtract.ts:351
Survivors of the minConfidence floor — the candidates that reached the injection screen.
afterRedactionCount
afterRedactionCount:
number
Defined in: src/lib/memory/autoExtract.ts:349
Survivors of PII de-anonymization (equals validCandidateCount when redaction is off).
failedCount
failedCount:
number
Defined in: src/lib/memory/autoExtract.ts:361
retain() threw.
quarantinedCount
quarantinedCount:
number
Defined in: src/lib/memory/autoExtract.ts:357
Held for review by the injection screen and SUCCESSFULLY persisted — the
same set as extractAndRetain’s quarantined. A screened candidate whose
retain() threw is in failedCount instead, never both.
rawCandidateCount
rawCandidateCount:
number
Defined in: src/lib/memory/autoExtract.ts:345
Candidates in the model’s completion, before any validation.
retainedCount
retainedCount:
number
Defined in: src/lib/memory/autoExtract.ts:359
Written through retain() (any disposition).
validCandidateCount
validCandidateCount:
number
Defined in: src/lib/memory/autoExtract.ts:347
Survivors of validateCandidates (shape, length, low-signal, confidence-is-a-number).