Skip to content

factory: a step that failed before it reported is evidence for the brief - #2511

Merged
santoshkumarradha merged 2 commits into
factory/general-intakefrom
factory/brief-failed-step
Nov 8, 2026
Merged

santoshkumarradha merged 2 commits into
factory/general-intakefrom
factory/brief-failed-step

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

What was wrong

In the fifth live A+B run, job 78's Brief showed "Couldn't update the brief". Its BriefWriting record said:

the brief did not pass its check: evidence build try 1 summary step build ended failed; … names nothing the job has

The failed AgentField build phase kept no round and no result. Its only record was the job's Failure. The writer therefore gave the latest try no summary, and summaryNumbers rejected any claim that cited it.

What changed

  • stepInputs: when a phase ended failed with no result, its latest try now carries the job's failure detail as its summary. This applies only when the failure names that step.
  • summaryNumbers: when there is no round for the cited try, it reads that same text for the latest try.
  • New test TestAFailedStepWithNoResultIsItsFailure. It fails on the base commit and passes with this change. It also checks that a failure naming another step is still refused.

Not in this PR (engine gap)

The control plane's execution note ("No pull request: …") never reaches the job: Notes is null. The engine does not read CP execution notes, so the desk can only show failure.detail.

Desk side: Agent-Field/codeaf-desk factory/gu-r5-fixes.

🤖 Generated with Claude Code

A remote step that ends failed before reporting keeps no round and no
result, so the brief writer had no summary for its latest try, and a
brief citing that try was refused as naming nothing the job has. The
fifth live A+B run's job 78 never had its brief updated for its failed
build ("Couldn't update the brief").

The latest try of a failed phase with no result now carries the job's
failure detail as its summary, when the failure names that step, and
the summary evidence check reads the same text.
@santoshkumarradha
santoshkumarradha merged commit 81e7119 into factory/general-intake Nov 8, 2026
1 check passed
@santoshkumarradha
santoshkumarradha deleted the factory/brief-failed-step branch November 8, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant