Skip to content

Normalize runtime ledger timestamps at write time - #1309

Merged
joeszilagyi merged 1 commit into
mainfrom
codex/runtime-ledger-write-time-normalization
Jun 9, 2026
Merged

Normalize runtime ledger timestamps at write time#1309
joeszilagyi merged 1 commit into
mainfrom
codex/runtime-ledger-write-time-normalization

Conversation

@joeszilagyi

Copy link
Copy Markdown
Owner

Fixes #742.

Summary:

  • Normalize runtime-ledger timestamps when building events.
  • Normalize and validate timestamps again at append time so invalid write-time timestamps are rejected before they hit JSONL.
  • Add regressions covering normalized UTC output and invalid timestamp rejection.

Validation:

  • python3 -m py_compile tools/common/runtime_ledger.py tests/test_scheduler_failure_state_reconciliation.py
  • /tmp/codex-ruff-venv/bin/ruff format --check tools/common/runtime_ledger.py tests/test_scheduler_failure_state_reconciliation.py
  • /tmp/codex-ruff-venv/bin/ruff check tools/common/runtime_ledger.py tests/test_scheduler_failure_state_reconciliation.py
  • python3 -m pytest -q tests/test_scheduler_failure_state_reconciliation.py

@joeszilagyi
joeszilagyi merged commit f36823d into main Jun 9, 2026
6 checks passed
@joeszilagyi
joeszilagyi deleted the codex/runtime-ledger-write-time-normalization branch June 9, 2026 19:49
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.

unspecified: Runtime ledger accepts invalid timestamps at write time

1 participant