Skip to content

Recover a Screens receipt after a proxy weakens its ETag - #78

Closed
raghubetina wants to merge 1 commit into
mainfrom
codex/screen-receipt-plan-validator
Closed

raghubetina wants to merge 1 commit into
mainfrom
codex/screen-receipt-plan-validator

Conversation

@raghubetina

@raghubetina raghubetina commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Draft fallback while the service-only transport change is qualified with the released CLI.

A proxy can weaken or remove the ETag on a successful Screens publication. The CLI then retains the pending request and every retry receives the same stored receipt.

Read the service-issued strong Plan validator from the receipt JSON when available. Check the exact submitted Plan bytes, Project, revision and both response digests before saving it. A conflicting header or invalid validator leaves the journal intact. Services that supply only a strong HTTP header still work.

npm run check passed, including 403 tests and the package smoke. A local command-line replay of the original request with a weak HTTP header reproduced the failure on v0.12.2. The candidate accepted the same revision and saved its strong validator.

Docs: updated docs/commands.md.
Review: Claude Fable 5.2, approve (2 rounds, 1 documentation finding fixed).

An intermediary can weaken the HTTP validator on a receipt for an
already published review. Verify the service-issued Plan validator and
the submitted bytes before recording a replay. A mismatched receipt
still leaves the journal available for recovery.
@raghubetina
raghubetina force-pushed the codex/screen-receipt-plan-validator branch from 77a0ebd to ae3ac97 Compare November 30, 2026 17:18
@raghubetina

Copy link
Copy Markdown
Contributor Author

Superseded by firstdraft/firstdraft#1413. The released CLI 0.12.2 accepted the original pending receipt and cleared its retry journal after the service fix. Production verification

@raghubetina raghubetina closed this Dec 1, 2026
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