Skip to content

Consolidate receipt interruption checks - #10

Merged
CompleteDotTech merged 1 commit into
mainfrom
codex/consolidate-receipt-interruption-checks
Dec 3, 2026
Merged

CompleteDotTech merged 1 commit into
mainfrom
codex/consolidate-receipt-interruption-checks

Conversation

@CompleteDotTech

Copy link
Copy Markdown
Contributor

Consolidate the publication interruption check around a failure during consumer-file staging, after the receipt has been published. The retained case verifies both output modes, keeps the original receipt, cleans the owned temporary file, and checks for an extra sync. The incomplete-input case still verifies its receipt against the exact exported bytes.

The staging fixture now interrupts only the second sync. A disposable variant that retries a partially published pair failed with three syncs without force and four with force, where both cases allow two. The change removes nine net test lines.

All 34 tests and CLI help passed under Python 3.12 using synthetic local evidence.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T17:02:02.741760Z 973146e PR opened
ℹ️ 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.

Copilot AI 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.

🟢 Approval recommended

No active review issues block the receipt-publication interruption test consolidation.

No open issues 🎉

What changed in this PR

Consolidates receipt-publication interruption tests without changing production behavior.

Changes:

  • Removes the redundant interruption check while retaining exact exported-byte receipt verification.
  • Interrupts only the second sync, allowing the retained test to detect unexpected publication retries with and without --force.
File Description
test_provenance.py Consolidates interruption coverage and strengthens retry detection.

Review effort: Balanced

@CompleteDotTech
CompleteDotTech merged commit cf2b508 into main Dec 3, 2026
13 checks passed
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.

2 participants