Surface rejected hosted operations#387
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 74333599e2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| elif hosted_status in {"failed", "timed_out"}: | ||
| status = "failed" | ||
| elif hosted_status == "quarantined": | ||
| elif hosted_status in {"quarantined", "rejected"}: |
There was a problem hiding this comment.
Preserve failed reports when a request is rejected
When a replacement enqueue is rejected after an operation already has a failed Platform output report, _managed_operation_status_from_reports returns failed, but adding rejected to this transport override rewrites it to blocked. Since hosted transport is still reported as non-lifecycle evidence, this hides the authoritative failed report and changes the recovery guidance away from inspecting that failed report; restrict the rejected override to non-report states such as ready_to_execute or request_needed.
Useful? React with 👍 / 👎.
Summary
rejectedreceipt as a blocked managed operation.Motivation
Goals
rejectedas non-authoritative transport evidence while preventing a falseready_to_executeprojection.Changes
rejectedto managed-operationblocked.Validation
Commands run:
.venv/bin/python -m pytest -q tests/test_hosted_managed_execution.py make test git diff --checkResults:
Risks / Notes
Checklist