Preserve scheduler verification context in v0.4.1 - #10
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the openclaw-scheduler compile target so post-success verification for shell tasks runs from the task’s declared shell.cwd while relying on the scheduler/runtime-provided execution environment (without persisting env values), adds coverage for the new behavior/limits, and bumps the package version to 0.4.1.
Changes:
- Wrap scheduler
verify_shellwith acd <task cwd> && …prelude for shell tasks (using existing POSIX-safe rendering) and enforce the scheduler’sverify_shellstorage limit. - Add conformance + integration regressions covering quoted CWD paths, runtime environment retention, verifier-length rejection, and handoff v2/v3-compatible field-version assertions.
- Bump version to 0.4.1 and document the behavior in docs + changelog.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| test/scheduler-conformance.test.js | Adds conformance tests for verify CWD binding, runtime env retention, and verify-shell length validation. |
| test/integration-scheduler.test.js | Updates the handoff assertion to be compatible with negotiated handoff v2 and v3. |
| src/compiler/openclaw-scheduler.js | Implements verify-shell CWD wrapping for shell tasks and adds verify_shell to scheduler string-length validation. |
| package.json | Bumps package version to 0.4.1. |
| package-lock.json | Updates lockfile version metadata to 0.4.1. |
| docs/execution-identity.md | Documents scheduler verify behavior (CWD binding + runtime env retention constraints). |
| CHANGELOG.md | Adds 0.4.1 release notes describing scheduler verify changes and added regressions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Validation
npm run lintnpm test(786 passed)npm pack --dry-run