TASKS/007B-llm-provider-client-env-foundation.md
TASK007B creates the server-only LLM provider client and environment foundation needed before any real message-analysis provider call can be wired into the product flow. Review Level: HIGH This task is provider-transport foundation only. It may prove provider auth, network reachability, JSON parsing, timeout behavior, retry behavior, and safe error mapping through a hardcoded non-PII live self-test.
Source Reference
Section titled “Source Reference”- TASKS/007B-llm-provider-client-env-foundation.md
Implementation Summary
Section titled “Implementation Summary”TASK007B creates the server-only LLM provider client and environment foundation needed before any real message-analysis provider call can be wired into the product flow. Review Level: HIGH This task is provider-transport foundation only. It may prove provider auth, network reachability, JSON parsing, timeout behavior, retry behavior, and safe error mapping through a hardcoded non-PII live self-test.
Key Decisions
Section titled “Key Decisions”- The locked harness documents contain production-grade rules. TASK007B must not implement every production-grade mechanism.
- TASK007C implementation that sends customerMessage externally is BLOCKED until live self-test passes
- Do not retry deterministic failures such as provider 4xx, auth failure, 429, missing config, invalid payload, or contract violation.
-
8. Provider / Env Strategy
Section titled “8. Provider / Env Strategy”
Dependencies
Section titled “Dependencies”-
2. Required Worktree
Section titled “2. Required Worktree” -
3. Required Pre-Read Documents
Section titled “3. Required Pre-Read Documents” -
4. Agent Verification Required
Section titled “4. Agent Verification Required” - Required capabilities:
Related Risks
Section titled “Related Risks”- PII Boundary
- Vercel Timeout
- SynthID Disclosure
Relevant Commits
Section titled “Relevant Commits”- No direct commit match detected.