<!-- task=m-node-provider-execution-liveness-recovery/06+05_failure_wire_mapping plan=0 tag=API milestone-task=failure-handoff -->

# Complete - m-node-provider-execution-liveness-recovery/06+05_failure_wire_mapping

## Completed At

2026-08-05

## Summary

Plan 0 completed the normalized/tunnel `response_stalled` wire mapping contribution and passed its first review loop.

## Loop History

| Plan | Review | Verdict | Notes |
|------|--------|---------|-------|
| `plan_local_G08_0.log` | `code_review_cloud_G08_0.log` | PASS | The shared allowlisted mapper, two-path typed terminals, contracts, spec, and verification evidence passed. |

## Implementation and Cleanup

- Added one clone-safe Node mapper that serializes optional typed failures only for `FailureCodeResponseStalled` and admits only the closed liveness metadata allowlist.
- Populated the same typed failure on normalized and tunnel stall terminals while retaining legacy error strings for nil and non-stalled failures.
- Added present/absent, parity, clone-safety, raw-free, and Edge parser round-trip coverage; synchronized the execution runtime contract, Edge-Node wire contract, and living spec.
- Applied reviewer-only `gofmt` alignment cleanup to the modified Go mapper/test literals.

## Final Verification

- `go test -count=1 -v ./apps/node/internal/node -run '^(TestRuntimeEventToProtoPreservesTypedFailure|TestStallMetadata.*)$' && go test -count=1 -v ./apps/edge/internal/transport -run '^(TestEdgeParserMap_.*)$'` - PASS; every focused typed-failure, parity, and parser fixture executed.
- `go test -count=1 ./packages/go/execution ./apps/node/... ./apps/edge/internal/transport ./apps/control-plane/...` - PASS.
- `go test -race -count=1 ./packages/go/execution ./apps/node/internal/node ./apps/edge/internal/transport` - PASS with no race report.
- `go vet ./packages/go/execution ./apps/node/... ./apps/edge/internal/transport ./apps/control-plane/...` - PASS with no diagnostics.
- `./scripts/e2e-smoke.sh` - PASS for the provider-only Edge-Node command, cancellation, dispatch, tunnel, queue, and reconnect cycle.
- `IOP_VLLM_MODE=fake ./scripts/e2e-openai-vllm.sh` - PASS for the credential-free Edge-to-Node-to-provider full cycle.
- `git diff --check` and focused `gofmt -d` verification - PASS with no remaining whitespace or formatting drift.

## Remaining Nits

- None.

## Follow-up Work

- Later sibling tasks own Edge reception-generation fencing, runtime health overlay, release-once aggregation, bounded recovery, and operations evidence required to complete the full `failure-handoff` milestone contract.
