POC [02/16]: Inference API endpoints and test-woo fails closed — API-4, API-5, API-10 #40
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
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:
Out of scope:
Done when / evidence: API contract tests green for API-4, API-5, API-10. Evidence path in commit message.
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.