Validate runner workspace patch base identity#1823
Merged
Conversation
This was referenced Jul 16, 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
Validate runner workspace seed identity before host patch application and retain rejected patch evidence when apply-back fails.
What changed
How to test
npm run test:runner-workspace-apply; expect Matching identity applies; mismatched identity and non-applicable patches fail without host mutation and retain evidence descriptors..npm run test:native-agent-task-lifecycle; expect Workflow failure envelopes and uploads retain rejected patch and changed-files evidence for identity mismatch and actual git apply rejection..npm run test:native-agent-task-playground-e2e; expect The native Playground workflow applies a patch successfully with matching Git-backed seed and host identities..npm run test:agent-task-contracts; expect Agent task contracts pass..npm run build; expect All packages build successfully..Compatibility
Additive internal contract change: seed identity is optional in the existing v1 apply request, so existing callers without it retain prior apply behavior. Runner-workspace workflows now fail before mutation on a proven base mismatch and failure uploads gain two bounded reviewer-safe files. No extension paths or public package API are removed or renamed.
Evidence
AI assistance
Source relationships