Repository navigation
fix(pipeline): report progress only after article writes succeed - #87
Merged
Merged
Conversation
Co-Authored-By: Codex <[email protected]>
snowopsdev
marked this pull request as ready for review
September 5, 2026 03:53
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bbafe1d52f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
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.
What Problem This Solves
E2E-002: when a pipeline stage completed its work but its article database update failed, the run still counted that article as advanced. A failed first write could therefore make the content task display success. A failed later write reported an output status that was never saved.
Why This Change Was Made
Record processed articles, final statuses, and successful-stage warnings only after the article update resolves. This preserves the last saved stage when a later update fails and keeps failure accounting intact.
User Impact
Operators see the saved article state and a failed run when no article advanced, allowing them to retry the interrupted work. No schema or provider contract changes are involved.
Evidence
Two regression tests failed against immutable baseline 56c0731: a rejected first write returned article ID 1, and a rejected second write returned drafted instead of researched. Both pass at bbafe1d.
Validation at the fix commit: full pipeline suite 803/803; focused pipeline persistence, scoped journey, concurrency, and corpus suites 64/64; migration-built isolated Postgres CMS webhook, scheduled publishing, and pipeline launch suites 13/13; both workspace typechecks and git diff --check passed. Tests used mock providers and local data only. Combined campaign validation is tracked separately. Residual risk is limited to failures after a database write commits but before its response reaches the caller; this change does not introduce distributed transaction recovery.