POC [02/16]: Inference API endpoints and test-woo fails closed — API-4, API-5, API-10 #40

Closed
opened 2026-09-07 06:19:29 +00:00 by grokbot_ty · 1 comment
Owner

Branch: poc (from gate-b after Gate B accepted)

Sprint: POC · Order 2/16 · Depends on: POC [01/16]

Acceptance (IMPL-PLAN): Inference proxy endpoints: infer-taxon returns 202; infer-content returns 202 with test-inference ok; test-woo fails closed without crashing.

Test-SPEC case IDs: API-4, API-5, API-10

Same-PR tests: Tests-with-code — API contract tests with mocked inference. Infer-taxon returns 202; infer-content gated on test-inference ok; test-woo returns fail gracefully.

In scope:

  • POST /api/v1/slabs/{id}/infer-taxon returns 202 {status: inferring}; timeout > 45s returns 504
  • POST /api/v1/slabs/{id}/infer-content returns 202; requires test-inference ok; below-threshold Call 1 leaves fields empty
  • test-woo fails closed: missing credentials or non-HTTPS URL returns {ok: false, detail: ...} without crashing

Out of scope:

  • Call 1/Call 2 logic, taxonomy sync, settings UI, publish, capture

Done when / evidence: API contract tests green for API-4, API-5, API-10. Evidence path in commit message.

**Branch:** `poc` (from gate-b after Gate B accepted) **Sprint:** POC · Order 2/16 · Depends on: POC [01/16] **Acceptance (IMPL-PLAN):** Inference proxy endpoints: infer-taxon returns 202; infer-content returns 202 with test-inference ok; test-woo fails closed without crashing. **Test-SPEC case IDs:** API-4, API-5, API-10 **Same-PR tests:** Tests-with-code — API contract tests with mocked inference. Infer-taxon returns 202; infer-content gated on test-inference ok; test-woo returns fail gracefully. **In scope:** - POST /api/v1/slabs/{id}/infer-taxon returns 202 {status: inferring}; timeout > 45s returns 504 - POST /api/v1/slabs/{id}/infer-content returns 202; requires test-inference ok; below-threshold Call 1 leaves fields empty - test-woo fails closed: missing credentials or non-HTTPS URL returns {ok: false, detail: ...} without crashing **Out of scope:** - Call 1/Call 2 logic, taxonomy sync, settings UI, publish, capture **Done when / evidence:** API contract tests green for API-4, API-5, API-10. Evidence path in commit message.
grokbot_ty added this to the POC milestone 2026-09-07 06:19:29 +00:00
grokbot_ty added the pocpoc-seq-02 labels 2026-09-07 06:19:29 +00:00
Author
Owner

Verified in main @ 0c00d25 — implemented with a different design:

✅ 0.7 confidence gate (METADATA-45): below-threshold fields omitted (inference.py:424)
✅ test-woo fails closed: https check + WooCredentialsMissing → ok:false (woo.py:77, app.py:227)
⚠️ Endpoint design differs from spec: /slabs/{id}/inference/call1|call2 (synchronous) vs spec’s infer-taxon/infer-content (async 202). Timeout → 503/502 not 504.

Closing as superseded by different design.

Verified in main @ 0c00d25 — implemented with a different design: ✅ 0.7 confidence gate (METADATA-45): below-threshold fields omitted (inference.py:424) ✅ test-woo fails closed: https check + WooCredentialsMissing → ok:false (woo.py:77, app.py:227) ⚠️ Endpoint design differs from spec: /slabs/{id}/inference/call1|call2 (synchronous) vs spec’s infer-taxon/infer-content (async 202). Timeout → 503/502 not 504. Closing as superseded by different design.
Sign in to join this conversation.
No Label poc poc-seq-02
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Ty_Tech/SlabUploader#40