cto/.sot/03-PROTOCOLS/CTO-CASE-LOCAL-PROVIDER-ROUTE-ISSUES.md
2026-05-31 22:17:47 -04:00

63 lines
2.6 KiB
Markdown

---
title: CTO Case Local Provider Route Issues
status: draft
lifecycle_classification: sot
owner: jp
created: 2026-05-31
last_reviewed: 2026-05-31
core_promotion_status: not-promoted
route: cto
---
# CTO Case Local Provider Route Issues
Local planning SOT only. Not a Core Protocol. Not active Core authority.
## CTO-WORK-021 - Case-Compatible Local Provider Adapter Route PRD
Status: validated.
Register the local-provider adapter route as the autonomous option if `CTO-WORK-020` is resolved with `decision_status=local_provider_required`.
Acceptance:
- States that this route applies only when `decision_status=local_provider_required`.
- Requires provider class `local_case_compatible`.
- Uses `CTO-WORK-020` admission JSON gate as authority instead of redefining admission.
- Requires `CTO_HARNESS_CASE_MODEL_ADMISSION_FILE`.
- Requires no external fallback to `anthropic` or `claude-sonnet-4-6`.
- Requires negative gates for missing local adapter config, admission JSON mismatch, and `decision_status != local_provider_required`.
- Completion of this route does not admit a provider/model and does not change `CTO-WORK-020` status.
- Keeps `CTO-WORK-020` blocked until admitted provider/model and real Case Stage 2 pass evidence exist.
- Does not approve or implement any provider.
## CTO-WORK-022 - Case-Compatible Local Provider Adapter Route
Status: blocked.
Build or supply one Case-compatible local provider adapter path after the decision record selects `local_provider_required`.
Acceptance:
- Decision record has `decision_status=local_provider_required`.
- Provider class is `local_case_compatible`.
- Provider/model admission remains owned by `CTO-WORK-020`.
- Missing local adapter config blocks before `case_process_started`.
- Admission JSON mismatch blocks before `case_process_started`.
- External provider fallback blocks before `case_process_started`.
- Harness report proves `case_model_provider`, `case_model`, and `case_model_admission_status`.
- Harness report proves no fallback to `anthropic` or `claude-sonnet-4-6`.
- No secret is written to SOT, argv, task file, backend logs, report, trace, generated config, or commit.
- Real Case Stage 2 produces a pass report only through the Harness Evidence Interface.
Blocked by:
- `CTO-WORK-020` decision record selecting `local_provider_required`.
- `CTO-WORK-030` supplying explicit Spark local provider endpoint config.
Current unblock:
- Decision record now selects `local_provider_required`.
- Harness route blocks before `case_process_started` unless `CTO_HARNESS_CASE_LOCAL_BASE_URL` is supplied.
- Remaining blocker is `CTO-WORK-030` plus real Stage 2 pass evidence.