Repository navigation
factory: AgentField steps end in plain words; outcome, failed state and start time kept - #2514
Merged
santoshkumarradha merged 2 commits intoNov 8, 2026
Merged
Conversation
WorkAF live e2e rounds 6 and 7: - A step run on AgentField reads as its label, never as its reasoner's id. A finished step says "finished and opened <link>". A run that did not succeed fails with "<step> did not succeed: <why>". The why comes from the shape of the run's own last note or its summary: a leading grade is dropped, the reason is cut before any quoted command, and "No pull request:" reads "…, so no pull request was opened". This is the failure's summary. The raw report, command output included, stays as the step's output. - The control plane's notes are read (GET …/notes) so the run's own outcome sentence lands in failure.summary; state_presentation.detail prefers the summary. - Engine sentences a person reads no longer say "verified". - A failed job's file says State "failed" and reads back as new with its failure, so every door behaves as before. - A step revived after a restart keeps its start time and does not say "<step> started" a second time.
santoshkumarradha
added a commit
that referenced
this pull request
Nov 8, 2026
…restart, empty PRs, plain step words, kept keys (#2520) * factory: WorkAF r9 engine correctness — an ended run is read after a restart, empty PRs, plain step words, kept keys - An agentfield step's run record now says its end is owed to the step (AgentFieldRun.EndOwed, set at dispatch, cleared when the step reads the end). A restarted round adopts an owed end — its pull request or its own outcome — instead of starting a second run, in Manual or Auto, whatever the step's start time says (r9 job 306: the start had moved past the run's and a second run asked for plan approval again). The lease's owed check reads the same field. A stopped or rejected run is never a later round's end. - An open pull request read on its head as 0 files, with GitHub's own counts agreeing, is an empty change: Merge refuses it, the job reads "Nothing to change", and one the factory's job opened is closed with a comment and a plain note. - Rejected and stopped jobs' files say "rejected" and "stopped", read back as new with that end on them, as #2514 did for failed. - A resumed step chat's brief goes to the model under a whole-prefix lead the transcript display hides, so the person never sees it as their line. - A reader's job shows an agentfield step's label where its note named the reasoner (node.reasoner). - A failed run's headline names a short, plain failing command ("… (go build ./... failed), so no pull request was opened") when it fits. - The AgentField key and internal token, and a pasted GitHub token, are kept in the engine's own profile (0600) as well as handed to the app, so a desk-launched engine keeps them across restarts. * changes: entry for #2520 * changes: entry for #2520 * factory: only a shipped, unstopped job closes its empty pull request; a relaunch reads the kept token * factory: keys stay off disk in app mode — revert the r9 key persistence Owner decision 2026-11-08. In app mode the AgentField key and internal token and a pasted or browser-signed-in GitHub token are held in memory only again; the app hands them over at every engine start. The config, setup and connection writes are reverted, the tests that pinned the old rule are restored, and the manual and change entry say so.
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.
Fixes the engine wording and state findings from WorkAF live e2e rounds 6 and 7.
What changed
swe-planner.build_issueno longer appears.GET /api/v1/executions/<id>/notes). The plain outcome goes intofailure.summary, andstate_presentation.detailprefers the summary. The outcome is worked out from the shape of the words alone (factory.AgentFieldOutcome), never from a pipeline or step name:OVERALL: FAIL.) is dropped, and the reason is cut before any quoted command. SWE-AF7321e7cwrites the summary asOVERALL: FAIL. The project does not build or its tests fail: `go build ./...` exited 1. …, which now reads "The project does not build or its tests fail"."State": "failed". It is written byItem.MarshalJSON.UnmarshalJSONreads it back asnewwith its failure, so memory and every door behave exactly as before.Startedtime, and its chat says "resumed" without a second " started". This also holds for chat-less steps such as AgentField runs.Manual: a new
factory-agentfieldsection, "an AgentField step that did not succeed", plus a probe and a line in the restart section.Not in this PR
go/internal/orch/native_plan.go:138,revision_check.go) inside the plan body. codeaf only shows it, so the fix belongs in SWE-AF.failure.summary/detail.Risk
"failed". An older build that reads a failed job written by this one sees an unknown state, and its Run again says "already running". Its floor still groups the job by its failure.Proof
TestAFailedRunEndsItsStepWithTheRunsOutcomeNoteInPlainWordsTestAnAgentFieldOutcomeIsReadFromItsWordsShapeTestAFailedJobsFileSaysFailedAndReadsBackAsItWasTestARevivedStepWithNoChatKeepsItsStartAndSaysStartedOnce, which is red without the fix.make pr-ready BASE=origin/factory/general-intake.🤖 Generated with Claude Code