Skip to content

Define coordinated cleanup failure cause retention - #35

Merged
alexstandiford merged 11 commits into
release/2.2from
codex/cleanup-outcome-contract-v2
Sep 20, 2026
Merged

alexstandiford merged 11 commits into
release/2.2from
codex/cleanup-outcome-contract-v2

Conversation

@alexstandiford

@alexstandiford alexstandiford commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Agent-authored, founder-directed session.

Purpose

Keep both failures when a coordinated operation fails and its cleanup also fails. Implemented at eef38f3, stacked on Uncached primary and junction schema lookup, PR 34. This exception enables no database coordination by itself.

PHPNomad architecture: Coordinated cleanup failure (Source 9816) defines the contract within Discovery: Siren CRM core (Source 9721).

Contract

CoordinatedOperationCleanupFailedException extends the existing unknown-outcome exception. Its previous cause is the exact cleanup failure. getOperationFailure returns the exact earlier failure. The constructor accepts Exception or Error for each cause.

Existing unknown-outcome and datastore-failure catches remain compatible. This does not grant retry eligibility or add obligations to existing implementations. The outer message is fixed and contains no private cause details. The class has no connection, driver, logging, or datastore-instance dependency.

Verification

The combined production suite passes 147 tests and 421 assertions, without skipped or incomplete cases. The focused exception contract passes four tests and 52 assertions. Focused class-and-test level-nine analysis, syntax, and diff checks pass.

The architecture record retains the original disposable proof. PHPNomad proof: Cleanup exception guard supplement (Source 9838) supplies independent evidence for datastore catch compatibility, non-conflict classification, and cleanup-side instance independence. All contract guards have conforming and deliberate-defect evidence, with clean restoration.

All 14 architecture lenses and all 14 final independent production-review lenses pass. Every finding is closed. The implementation and proof retrospective is in Schema helpers are implemented, and query binding exposed a global connection path (Journal 18598).

Full package level-nine analysis retains 231 inherited findings. Formatting and unchanged README spelling baselines remain open, with no suppression. CI uses PHP 8.2 and Composer-locked PHPUnit 9.6.22. Current-head GitHub test jobs pass.

Remaining proof

The PDO adapter must prove both retained causes and one privacy-safe log when rollback fails after callback, coordination, or commit failure, including logger failure. The WordPress adapter and application path need their own proofs.

Full CI, application validation, UAT, and dependency publication remain open. This draft has no composite score or merge eligibility. No pull request has been merged, released, or deployed.

@alexstandiford
alexstandiford changed the base branch from codex/coordinated-database-contracts-v2 to codex/uncached-primary-schema-v2 September 18, 2026 19:03
@alexstandiford
alexstandiford changed the base branch from codex/uncached-primary-schema-v2 to release/2.2 September 20, 2026 12:15
@alexstandiford
alexstandiford marked this pull request as ready for review September 20, 2026 12:16
@alexstandiford
alexstandiford merged commit ec614e0 into release/2.2 Sep 20, 2026
1 of 3 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 20, 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-20T12:17:13.075538Z eef38f3 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.

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