<!-- task=m-iop-owned-single-request-agent-execution/05+03_single_ingress plan=0 tag=API milestone-task=single-ingress -->

# Complete - m-iop-owned-single-request-agent-execution/05+03_single_ingress

## Completion Date

2026-08-06

## Summary

Completed the marked Anthropic single-request ingress and runtime evidence packet after one plan/review loop; final verdict PASS.

## Loop History

| Plan | Review | Verdict | Notes |
|------|--------|---------|-------|
| `plan_cloud_G09_0.log` | `code_review_cloud_G10_0.log` | PASS | The one-ingress HTTP boundary, unlabeled runtime counter, sanitized terminal acknowledgement, compatibility tests, and contract/spec synchronization passed review. |

## Implementation and Cleanup

- Routed authorized marked Messages requests through the narrow surface-neutral single-request service capability before legacy provider-pool admission.
- Added the registered unlabeled `iop_anthropic_single_request_ingress_total` counter and proved a real POST changes it by exactly one across multi-stage execution.
- Projected only one buffered caller-safe Anthropic terminal with public model echo, write acknowledgement, cancellation propagation, and no caller-facing internal tool continuation.
- Synchronized the Anthropic outer contract and OpenAI-compatible input spec while preserving explicit streaming, concrete workspace/provider execution, and actual Claude qualification deferrals.

## Final Verification

- `test -f agent-task/m-iop-owned-single-request-agent-execution/03+02_single_request_coordinator/complete.log || test "$(compgen -G 'agent-task/archive/*/*/m-iop-owned-single-request-agent-execution/03+02_single_request_coordinator/complete.log' | wc -l)" -eq 1` - PASS; exactly one archived dependency completion candidate was present.
- `go test ./apps/edge/internal/openai -run 'Test(AnthropicSingleRequest|PresetRequestIdentityAcrossAnthropicTurns|PresetRequestIdentityAnthropicCountTokensBypassesCoordinator)' -count=1` - PASS; `ok iop/apps/edge/internal/openai 0.041s`.
- `rg --sort path -n 'single-request|one POST|ingress|tool_use|count_tokens|defer' agent-contract/outer/anthropic-compatible-api.md agent-spec/input/openai-compatible-surface.md` - PASS; the marked boundary, compatibility, and explicit deferrals were present.
- `go test -race -count=1 ./apps/edge/internal/openai ./apps/edge/internal/service` - PASS; OpenAI and service packages completed without race reports.
- `go test ./apps/edge/internal/openai -count=1` - PASS; `ok iop/apps/edge/internal/openai 7.857s`.
- `go vet ./apps/edge/...` - PASS; no diagnostics.
- `go test ./apps/edge/... -count=1` - PASS; every Edge package passed with fresh results.
- `test -z "$(gofmt -l apps/edge/internal/openai/server.go apps/edge/internal/openai/anthropic_handler.go apps/edge/internal/openai/single_request_metrics.go apps/edge/internal/openai/single_request_handler_test.go)"` - PASS; no unformatted planned source was reported.
- `git diff --check` - PASS; no whitespace errors.

## Remaining Nits

- None.

## Follow-up Work

- None within this task. Separate Milestone packets retain ownership of SSE progress/ping projection, concrete workspace/provider execution, and actual Claude qualification.
