Skip to content

fix(workbook): preserve numeric condition precision - #65

Open
rudycelekli wants to merge 2 commits into
debpalash:mainfrom
rudycelekli:validation/workbook-condition-numeric-precision-20261008
Open

rudycelekli wants to merge 2 commits into
debpalash:mainfrom
rudycelekli:validation/workbook-condition-numeric-precision-20261008

Conversation

@rudycelekli

@rudycelekli rudycelekli commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Change

Compare finite workbook condition operands as exact decimals so adjacent large integers and fractional values remain distinct. Preserve existing text comparison and NaN/infinity behavior.

Verification

  • Frozen public evaluate_condition fixture: 26 cases cover positive/negative adjacent integers, fractions, numeric cell values, and ordinary numeric/text controls.
  • Unchanged native CI BEFORE at f1759a2: 14 expected precision assertion failures; 2104 passed, 134 skipped, 3 deselected. Accepted-main baseline: 2092 passed with the same skips/deselection; the 12 control passes are established by that count difference.
  • Unchanged native CI AFTER at cebd09e: all four jobs passed (SQLite, PostgreSQL integrity, frontend lint/tests/build, real browser regressions). SQLite: 2118 passed, 134 skipped, 3 deselected; no failures.
  • 66 additional comparisons checked source behavior against the original for nonfinite values, text, exponent/underscore/leading-zero notation. These were isolated source checks, not additional native CI owners.

AI-assisted implementation and review. Signed commits carry DCO sign-off. No provider or live enrichment calls were added to the tests.

Upstream CI passed all four required jobs at this exact source head: SQLite, PostgreSQL integrity, frontend lint/tests/build, and real browser regressions. The BEFORE/AFTER qualification results above belong to the unchanged ownfork workflows.

Freeze exact public condition evaluation using original positive and negative integer and fractional operands. Preserve ordinary numeric equivalence, exponent notation, leading zeros and string comparison controls. Production and CI are unchanged; no provider requests or credentials are required.

Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
Compare finite numeric condition operands as exact decimals while preserving existing nonfinite numeric and lexical fallback behavior.

Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
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.

1 participant