From 00140e509ef2cbb89b9f093ab405cf467f336401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 9 Jul 2026 00:10:20 +0200 Subject: [PATCH] docs(documents): correct extract-route gauntlet comment for new gate --- src/app/api/documents/inbound/[id]/extract/route.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/api/documents/inbound/[id]/extract/route.ts b/src/app/api/documents/inbound/[id]/extract/route.ts index 2b54f6785..c5c124c4d 100644 --- a/src/app/api/documents/inbound/[id]/extract/route.ts +++ b/src/app/api/documents/inbound/[id]/extract/route.ts @@ -4,10 +4,10 @@ * Extraction is no longer part of upload: a document is stored first * (provider-free), and THIS route is the explicit, user-triggered enhancement. * It carries the entire ingest gauntlet that upload used to run inline — - * resolve provider → assertConsentForChain → rate-limit → reserveBudget → - * runInboundExtraction → reconcileSpend → stage facts — but now against a row - * that already exists. Absent a provider this 422s the ENHANCEMENT only; the - * stored document is untouched and remains filed. + * resolve document provider (local-first, codex last) → assertDocumentEgressConsent + * → rate-limit → reserveBudget → runInboundExtraction → reconcileSpend → stage + * facts — but now against a row that already exists. Absent a provider this 422s + * the ENHANCEMENT only; the stored document is untouched and remains filed. * * Two modes, dispatched on content-type (mirroring the original upload): * - VISION (no JSON body): decrypt the stored original, re-derive its MIME,