Repository navigation
fix(project): track Cargo workspace provenance - #799
Merged
yyjeqhc merged 2 commits intoSep 30, 2026
Merged
Conversation
yyjeqhc
approved these changes
Sep 30, 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
project_validateandproject_buildadmission and pre-execution fencingDetails
Project operations already retain a manifest digest and re-plan both at Job admission and again before native execution after a local queue wait.
For a Cargo workspace member, the nearest recipe root is the member package, while Cargo workspace configuration and dependency state may live at the workspace root. The shared project-recipe layer now resolves that relationship and contributes the relevant workspace inputs to the existing provenance digest.
Rust provenance covers:
Cargo.tomlCargo.tomlwhen distinctCargo.lockwhen presentThe native execution cwd remains the selected package/member root, so package-selection behavior is unchanged.
Explicit Cargo
package.workspacereferences are resolved within the registered Project boundary; workspace provenance outside that boundary is rejected.Go project provenance retains its existing
go.mod/go.sumbehavior.Queue-time fencing
The existing same-Job lifecycle is preserved:
If the retained Cargo workspace manifest or lockfile changes while a member-scoped build or validation Job is queued, the pre-execution fence now observes the changed provenance and terminates the Job as
not_startedwith the existing stale-plan result.Source-only changes remain outside this planning fence.
Validation
Focused local validation:
cargo test --locked -p webcodex-workspace --lib— 76 passedcargo test --locked -p webcodex-validation --lib— 109 passedcargo fmt --all -- --checkcargo metadata --locked --no-deps --format-version 1git diff --checkGitHub Actions completed successfully on
08f6e4e8a496e84c8e7de9a27771e88734e0cde9, including Linux workspace/Runner/Server tests, Windows and macOS native/desktop coverage, Docker Server, contract checks, and MCP conformance.Relates to #599.