镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Return safe workflow failures with trace correlation - #38

Merged
jacobprall merged 1 commit into
mainfrom
codex/issue-29-safe-workflow-errors
Oct 28, 2026
Merged

jacobprall merged 1 commit into
mainfrom
codex/issue-29-safe-workflow-errors

Conversation

@starmorph

Copy link
Copy Markdown
Contributor

Failed or canceled parent workflows currently expose raw task diagnostics through polling, and the CLI prints them. Return a stable public error with a correlation trace_id derived only after the signed question ID has been verified. Operators can use that ID to inspect the raw diagnostic in the Render Dashboard.

Keep HTTP 200 and status: "failed", display the safe error and trace in the CLI, and preserve active states, successful replies, missing-result behavior, and completed user-safe failure replies. Do not add raw diagnostic logging.

Validation: four regressions failed before the fix for failed/canceled API responses and real CLI subprocesses consuming those responses from the local API. Focused tests: 20 passed. Independently rerun typecheck/full suite: 86 passed, 1 live-model test skipped. Frozen install/diff checks passed; dependencies are unchanged. The fixture also supports the separate question-ID signing-secret change.

No live Render or paid-model validation was performed.

Fixes #29.

@jacobprall
jacobprall merged commit 1c421dc into main Oct 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[P2] Sanitize failed workflow errors returned by the API

2 participants