Repository navigation
feat(api): a failed task's error_detail is the documented failure reason (#545) - #1373
Merged
Merged
Conversation
…son (#545) The tasks route already serves error_detail, error_class and exit_code for every try. The contract now says error_detail is why the try failed, and that raw pod logs are not served (they can carry record values). pg_task_instances asserts a failed try's reason, class and exit code reach GET …/jobs/{job_id}/tasks. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
The marketing preview was removed because this PR is closed or merged. |
athvin
temporarily deployed
to
marketing-preview
November 28, 2026 23:48 — with
GitHub Actions
Inactive
7 tasks done
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #545
What
Narrowed as the ticket's product context proposes.
task_instance.error_detailis documented in the contract as why a try failed, read fromGET …/jobs/{job_id}/tasks.pg_task_instancesasserts that a failed try'serror_detail,error_classandexit_codereach that route.Why
A customer whose run fails needs the reason through the API. The route already served the fields, but nothing documented them as the answer or proved a real failure reaches them. Product decision recorded in the field description: raw pod logs are not served, because they can carry record values (PII boundary). Persisted log tails would be a separate, optional operator ticket; none is filed because no consumer exists.
Proof
make checkexit 0. Real-Postgrespg_task_instances: passed. Regenerated entities, OpenAPI (internal + public), TS types, MCP manifest, envelopes and developer reference.Risk & rollback
Description-only contract change; no behaviour change. Rollback:
git revert <merge-sha>.Post-merge ledger
Closed by: agent · session
Claude Code:24d16c2e-fec6-49d8-9797-060338df4848onbrians-MacBook-Pro· 2026-11-29T02:26:26Zmainis green with this change on it — the merge SHA, and the runthat proves it. A later head SHA with this commit as an ancestor counts;
a cancelled run with zero jobs does not: — c87d997, rust 46203375141 + frontend 46203375110 success
imagesbuilt, or correctly never ran because nothing that goes intoan image changed: — success, run 46203375140
deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: — run 46203715279 success (the next deploy, which carries c87d997); a contract description changed, no behaviour
deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: — infra, devcontainer, marketing preview success on c87d997
Donethrough the automation rather than byhand, and the issue closed: — Per-stage job logs route #545 CLOSED by feat(api): a failed task's error_detail is the documented failure reason (#545) #1373 via automation
(a skill, a reference, memory) — or nothing new was learned: — the failure-reason answer is the tasks route's error_detail; api-contract launch-readiness lists it in the recovery table (API: restore a dataset's results to an earlier run, and document the recovery operations #530)
Specific to this change
Context — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files
🤖 Generated with Claude Code