Skip to content

fix(pipeline): report progress only after article writes succeed - #87

Merged
snowopsdev merged 1 commit into
mainfrom
codex/qa-20260905-lane08
Sep 5, 2026
Merged

snowopsdev merged 1 commit into
mainfrom
codex/qa-20260905-lane08

Conversation

@snowopsdev

Copy link
Copy Markdown
Owner

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.

@snowopsdev
snowopsdev marked this pull request as ready for review September 5, 2026 03:53
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-05T03:56:13.974916Z bbafe1d Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread pipeline/src/stages.ts Resolved
@snowopsdev
snowopsdev merged commit f07b44c into main Sep 5, 2026
7 checks passed
@snowopsdev
snowopsdev deleted the codex/qa-20260905-lane08 branch September 5, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant