feat: phase 3 of AI pipeline hardening — extraction quality #5
Reference in New Issue
Block a user
Delete Branch "feat/ai-pipeline-hardening-phase-3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replace stateless one-shot extraction with a stateful, paced, cancellable
pipeline. Six subtasks:
at 4000 chars). Hard-split fallback for runaway sentences.
IDs" hint capped at 200 IDs, so the model reuses IDs instead of
inventing variants like software-developer vs software-engineer.
callLLM awaits the limiter before fetch; 429+Retry-After calls
pauseUntil. Replaces hard setTimeout(12000) and setTimeout(15000).
sticky across re-extraction. Migration + merge respects the flag +
unlock checkbox in KnowledgeGraph edit form.
legacy "executes"; one-shot migration rewrites existing executes rows
to executed_by with source/target swapped.
AbortController threaded into callLLM; aborted runs persist status =
"cancelled" rather than "failed".
Tests: 16 new unit tests for chunkText, buildKnownIdsHint, and
createLimiter. All 61 tests pass, 0 lint errors, build clean.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com