Skip to content

fix(automation): recognize versioned Codex review receipts #418

Closed as not planned

Description

@lastobelus

Wait for PR times out even after Codex posts an explicit clean result for the requested head. The clean receipt now begins with <!-- codex-review-receipt:v1 --> followed by the ordinary Codex Review: body. The parser requires the body to start directly with Codex Review:, so it drops the receipt and keeps the request pending.

Reproduced with PR #417 at 4cda92305cf948d251039dc7b70ba888394bd3a8: clean receipt 6221125315, successful exact-head CI, zero review threads, and a 30-minute review timeout. Passing the same retained API input to deriveReviewState returns pending; removing only the known receipt prefix in memory returns ready. No production state was changed for this reproduction.

The release automation parser in scripts/lastcode-wait-for-pr.ts should accept the versioned receipt envelope while preserving bot identity, reviewed-head, trigger ordering, and unresolved-finding checks. Add focused regression cases for current-head clean receipts, mismatched heads, and unrelated prefixed comments.

Diagnosed by GPT-6.1 Sol using the Codex harness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions