Repository navigation
Conversation
Record LocaleInvariants on the workflow (locale, date_order, keyboard_layout). Before replay, refuse when the current environment disagrees, unless the run has no keystroke typing. Ambiguous worklist numeric dates require an explicit format. Unit tests cover mismatches and bundle round-trip.
abrichr
marked this pull request as ready for review
November 5, 2026 19:15
Member
Author
Independent adversarial review: BLOCKHead: What I ran
Findings
No app-specific code was found. The schema addition (an optional field omitted when unset) is clean, and the comparison logic in To unblock: read date order and layout from the OS APIs on each platform, or at minimum call |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1897
What changed
Workflows may carry
locale_invariants(locale, date ordermdy/dmy/ymd, keyboard layout). Before replay, the runtime refuses when the current environment disagrees. Keyboard-layout mismatches are allowed only when the workflow has no keystroke typing steps. Ambiguous worklist numeric dates (for example03/04/2026) are flagged as needing an explicit format. Unsetlocale_invariantsis omitted from bundle JSON so legacy bundles round-trip.How tested
pytest -q tests/test_locale_invariants.py— 9 passedlocale_invariants.pymade imports fail (not vacuous on base)ruff formaton new filesWhat was not tested
Do not merge until reviewed.