Repository navigation
fix(workflow): preserve failed evidence and harden run transitions - #291
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Merged
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.
Purpose
Saved Workflow runs could not be opened, repeated timeout reconciliation could spin without making progress, and detailed failure evidence was lost before reaching a repair attempt. Stale UI answers could also target a newer input request.
This PR fixes these issues across the engine, persistence, Git and IPC adapters, and UI. The three areas were reviewed separately and then cross-reviewed by different reviewers.
What changed
--runor Tasks result links in a read-only view. Editing, execution, approval, and answering are disabled.New persisted fields are optional and omitted when unset, preserving checksums of existing saved data. This also updates
--demo=saved, the Workflow guide, and the changelog. A large execution enum payload is boxed and equivalent conditionals are simplified to pass the standalone Workflow Clippy check.Verification
cargo test --manifest-path widgets/workflow/Cargo.toml --locked: 126 passed — 78 library tests and 48 native/UI tests; no failures or ignored tests. 27 regression tests added.cargo clippy --manifest-path widgets/workflow/Cargo.toml --locked --all-targets -- -D warnings: passed.scripts/verify.sh --full: locally passed except for one existing Scaffold test affected by the execution environment. Workspace tests: 4,267 passed, 0 failed, 25 pre-existing ignored tests. Workflow and the other widget checks, builds, registration, formatting, workspace Clippy, and desktop-file checks passed. The full verification, including Scaffold, passed in Linux CI; both macOS CI jobs also passed.f19dded937df99e11d2752c0dd235c5f2de1b30d— Linux full verification, macOS core, and macOS widgets.git diff --check: passed.The first local full run encountered a transient lock conflict in the unchanged timeline test
ac4_root_rebind_keeps_runs_another_instance_registered. Its isolated rerun and the final full run passed. The final full run usedRUST_TEST_THREADS=1.The remaining local failure is Scaffold's
gitread::tests::the_root_is_the_nearest_ancestor_with_git(83 passed, 1 failed). All writable temporary directories in this environment are under a repository, violating the test's assumption that one temporary directory has no repository ancestor. The implementation searches the filesystem directly, soGIT_CEILING_DIRECTORIESdoes not change the result. No tests, verification gates, or dependencies were changed to bypass this failure.Rendering checks
Rendered
--demo=savedwith the existing native software renderer at 1280×860 and the minimum 720×600 window size, then inspected both images. The images are at 2× resolution and were losslessly compressed without changing their pixels. They show demo data, not an execution by a live agent.Minimum window size
Not verified
Risks
Definitions with multiple Plan nodes now wait for the last Plan to finish before implementation begins. Failed evidence must still match its saved hash; missing or modified files stop recovery or repair and surface an explanation.
Input-sequence validation checks the pane snapshot fetched immediately before sending. The existing IPC send operation does not accept a server-side expected sequence, so this change does not make the check and send atomic.
Risk class
medium: changes to Workflow execution state, failed evidence, and UI actions. The shared appearance change only simplifies an equivalent conditional.