Skip to content

Keep SQLite history projection moving past invalid records - #42369

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9ae616b44513e35a1fa209e54f05f0612abcbd86
Sep 2, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9ae616b44513e35a1fa209e54f05f0612abcbd86

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Keep SQLite history projection moving past invalid records

Why

A malformed or discontinuous rollout record can otherwise block later valid
thread history from being materialized in SQLite.

What changed

  • Skip malformed JSON, unknown records, missing or regressed ordinals, ordinal
    gaps, and invalid timestamps while advancing the projection checkpoint.
  • Keep unknown-record ordinals available for a subsequent valid retry.
  • Record projection outcomes and anomaly kinds with OpenTelemetry counters.

Testing

  • Cover malformed lines, missing, duplicate, and forward-gap ordinals, and valid
    retries after unknown records.

## Why

A malformed or discontinuous rollout record can otherwise block later valid
thread history from being materialized in SQLite.

## What changed

- Skip malformed JSON, unknown records, missing or regressed ordinals, ordinal
  gaps, and invalid timestamps while advancing the projection checkpoint.
- Keep unknown-record ordinals available for a subsequent valid retry.
- Record projection outcomes and anomaly kinds with OpenTelemetry counters.

## Testing

- Cover malformed lines, missing, duplicate, and forward-gap ordinals, and valid
  retries after unknown records.

GitOrigin-RevId: 9ae616b44513e35a1fa209e54f05f0612abcbd86
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/9ae616b44513e35a1fa209e54f05f0612abcbd86 branch from 9a53ad8 to 095ac4f Compare September 2, 2026 21:31
@copyberry
copyberry Bot merged commit 095ac4f into main Sep 2, 2026
26 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/9ae616b44513e35a1fa209e54f05f0612abcbd86 branch September 2, 2026 21:32
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant