CoAgent8
    Preparing search index...

    Function alignEnvelopeReviewTurn

    • Replaces the model's REVIEW: <turn> counter in an envelope with the server's turn number.

      Parameters

      • output: string

        Output containing a review envelope.

      • turn: number

        Server turn number.

      Returns string

      Output with REVIEW: <turn> updated to the server's turn number.

      A reviewer model may guess or repeat a stale turn number (e.g. REVIEW: 1 during turn 2). The server owns the conversation turn count (FEEDBACK-061e), so the returned envelope reflects the server's turn counter while keeping the rest of the envelope intact.