Conversation
🎩 PreviewA preview build has been created at: |
This was referenced Sep 23, 2026
Collaborator
Author
camielvs
force-pushed
the
09-23-feat_let_the_agent_name_the_project_and_session
branch
from
September 23, 2026 20:57
30b3481 to
feba6da
Compare
camielvs
force-pushed
the
09-23-fix_say_why_the_backend_refused_a_run
branch
from
September 23, 2026 20:57
ab131c4 to
65c7fbe
Compare
camielvs
changed the base branch from
09-23-feat_let_the_agent_name_the_project_and_session
to
graphite-base/2794
September 23, 2026 21:54
camielvs
force-pushed
the
09-23-fix_say_why_the_backend_refused_a_run
branch
from
September 23, 2026 21:55
65c7fbe to
5964134
Compare
camielvs
changed the base branch from
graphite-base/2794
to
09-23-feat_let_the_agent_name_the_project_and_session
September 23, 2026 21:55
A rejected submission explains itself — a 422 names the field it would not accept and the value it was given — and all of it was dropped for the fixed sentence "Failed to create pipeline run". An agent that reads only that cannot tell a spec it could correct from a bug it should give up on, and retries the identical request instead. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
camielvs
force-pushed
the
09-23-feat_let_the_agent_name_the_project_and_session
branch
from
September 23, 2026 22:02
54a9c09 to
37ebe50
Compare
camielvs
force-pushed
the
09-23-fix_say_why_the_backend_refused_a_run
branch
from
September 23, 2026 22:02
5964134 to
36fde75
Compare
This was referenced Sep 23, 2026
Draft
This was referenced Sep 23, 2026
This branch has not been 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.

An agent built a pipeline, validated it with zero issues, submitted it, and got
back
Failed to create pipeline run. It retried the identical request, failedidentically, went looking for the spec to submit another way, hit a second bug
doing that, and concluded after four minutes:
It wasn't. The backend had said exactly what was wrong, and we threw it away:
The response body behind that sentence:
{"detail": [{ "type": "string_type", "loc": ["body", "root_task", "componentRef", "spec", "inputs", 0, "default"], "msg": "Input should be a valid string", "input": true }]}InputSpec.defaultisstring | nullon the backend. A number or a booleanthere is refused with a 422 — the DAG is fine, one field has the wrong type, and
that is a one-call fix for whoever is holding the pipeline.
What changed
requestFailureMessage(response, fallback)reads what the server said and addsit to what we were doing:
It handles a FastAPI
detailarray (field path, message, and the offendingvalue), a plain-string
detail, amessagefield, a non-JSON body, and anempty one — which still reports the status rather than nothing. Several rejected
fields are listed up to three, and a large rejected value is truncated so one
runaway string cannot bury the rest.
Only
createPipelineRunis wired up here: it is the call that bit, and the onean agent drives. The other callers in this service already go through
fetchWithErrorHandling.Testing
Full suite green — 318 files, 3235 passed. The formatter's tests are built from
the real response body above, captured from the local backend.
Verified end to end against that backend: submitting a spec with a numeric input
default through
createPipelineRunnow throws a message naminginputs.0.default, the rule it broke, and the value it was given.🤖 Generated with Claude Code