Repository navigation
fix(runtime-core): apply runner workspace patches without whitespace rejection - #2640
Merged
Merged
Conversation
chubes4
marked this pull request as ready for review
December 5, 2026 15:21
This was referenced Dec 5, 2026
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.
Summary
Runner workspace apply-back ran
git apply --whitespace=error, so one whitespace issue in agent-written content (for example a new blank line at EOF) threw away all of a run's edits and no PR was opened. The host now applies the sandbox's canonical patch byte-for-byte. Whitespace style is left to the target repository's own lint and verification.What changed
git apply --checkandgit applyuse--whitespace=nowarninstead of--whitespace=error. Patches with trailing spaces or blank lines at EOF now apply.nowarnalso overrides a hostapply.whitespace=fixconfig, so the host file is byte-identical to the sandbox file.validateAppliedWorkspacestill guard integrity, unchanged.tests/runner-workspace-apply.test.tscovers trailing spaces, a trailing tab and a blank line at EOF withapply.whitespace=fixset.scripts/artifact-patch-git-apply-smoke.tsuses the same flags as the host apply.Verification
All gates passed on
c321f0cb1dd2. Basemain: gated onf1871b88cbd8, target nowf1871b88cbd8, re-verified: no.HOMEBOY_LINT_BASE=f1871b88cbd864fad990b9212a170434433f36fe homeboy --placement local review lint wp-codebox --path . --…: passed, 112040 ms; retained gate metadata.npx tsx tests/runner-workspace-apply.test.ts: passed, 587 ms; retained gate evidence.Gate 2 output
Cook run
agent-task-3dffcc19-ae9a-4008-84bf-b3526f823164agent-task-3dffcc19-ae9a-4008-84bf-b3526f823164-attempt-1-39ab3009bb1ba68e2eec2466206bc0eb0dc8a1900e9a33e8bb1ba68e2eec2466206bc0eb0dc8a1900e9a33e8Delivery
Evidence
node --import tsx tests/runner-workspace-apply.test.tspassed with the fix. With only the source change reverted, the new case failed with 'Host git apply failed: ... trailing whitespace'. Plainnpx tsxcould not run in this sandbox because its IPC pipe failed.AI disclosure
Tool: Homeboy Cook. Agent: Homeboy (roadie). Model: roadie · route cook-heavy · served claude-opus-5-5. Cook time: 9m47s.
The AI read the issue, changed the git apply flags, wrote the regression test and checked it against the old and new code, under the direction of the Cook requester. Homeboy reports controller verification separately from this account of the AI's work. A human reviews before merge.
Refs #2636