<!-- task=m-iop-owned-single-request-agent-execution/19+18_work_stage plan=2 tag=REVIEW_API milestone-task=work-stage -->

# Complete - m-iop-owned-single-request-agent-execution/19+18_work_stage

## Completion Time

2026-08-07

## Summary

Repaired the private ornith-fast Work coordinator, authority, continuation, and verification boundaries after two reviewed loops; final verdict PASS.

## Loop History

| Plan | Review | Verdict | Notes |
|------|--------|---------|-------|
| `plan_cloud_G08_1.log` | `code_review_cloud_G08_1.log` | FAIL | Standard Work calls could not reach the real coordinator, reserved options and environment schema were not closed, continuation claim was non-atomic, and the claimed failure evidence was incomplete. |
| `plan_cloud_G09_2.log` | `code_review_cloud_G09_2.log` | PASS | Canonical Work identity and argument decoding, closed authority projection, atomic continuation claim, and real coordinator/failure evidence satisfy SDD S09. |

## Implementation and Cleanup

- Decode standard string-valued OpenAI tool arguments into one duplicate-free object and submit canonical `stage_id=work` through the service-owned coordinator.
- Reject case-folded reserved option aliases, preserve server and credential authority, and expose only frozen environment names in a closed command schema.
- Claim continuation waiters atomically and cover the real typed workspace write/verification path, provider and tool failures, immutable budgets, deadlines, and cancellation under the race detector.
- Keep the Work stage private and uninstalled; Review/repair, composite activation, and S12 Claude/Mac qualification remain outside this task.

## Final Verification

- `bash -c 'set -euo pipefail; shopt -s nullglob; candidates=(agent-task/m-iop-owned-single-request-agent-execution/18_*/complete.log agent-task/m-iop-owned-single-request-agent-execution/18+*/complete.log agent-task/archive/*/*/m-iop-owned-single-request-agent-execution/18_*/complete.log agent-task/archive/*/*/m-iop-owned-single-request-agent-execution/18+*/complete.log); printf "%s\n" "${candidates[@]}"; ((${#candidates[@]} == 1))'` - PASS; found exactly the archived `18+17_plan_stage` predecessor.
- `go test -race ./apps/edge/internal/openai -run 'TestSingleRequestWork(Stage|ToolBridge)' -count=1` - PASS (`ok`, 1.240s).
- `go test ./apps/edge/internal/service -run 'TestSingleRequest(InternalToolLoop|Cleanup)' -count=1` - PASS (`ok`, 0.116s).
- `go vet ./apps/edge/internal/openai ./apps/edge/internal/service && go test ./apps/edge/... -count=1` - PASS across all Edge packages.
- Required regression discovery, no-activation guard, living-spec search, `gofmt -d`, and `git diff --check` - PASS.
- External full-cycle execution - not applicable to this private uninstalled S09 component; actual Claude/Mac qualification remains S12 `claude-smoke` scope.

## Remaining Nit

- None.

## Follow-up Work

- None for this task.
