Skip to content

fix(reporting): preserve source data-through precision - #2006

Open
rachitm022 wants to merge 4 commits into
mainfrom
claude/issue-27017-data-through-precision
Open

rachitm022 wants to merge 4 commits into
mainfrom
claude/issue-27017-data-through-precision

Conversation

@rachitm022

Copy link
Copy Markdown
Collaborator

Why

Reporting sources need to distinguish an exact completeness boundary from a partial lower bound. The SDK currently marks every non-null data_through as exact, so partial-day and pacing reads cannot represent their actual precision.

What

  • accept and validate exact, lower_bound, and unknown source precision while preserving omitted-field behavior
  • persist precision through ledger revisions and expose it in reporting status
  • add trigger-safe PostgreSQL schema migration and conformance coverage for validation, round trips, and wire output

Validation

  • make lint
  • make typecheck-all
  • make validate-generated
  • reporting-focused suite: 382 passed
  • targeted post-format suite: 194 passed
  • full make test was attempted locally; clean completion was blocked by local Docker OOM and an isolated packaging-fixture build flake, so the clean-host CI run is authoritative

Linear: https://linear.app/scope3-projects/issue/AI-27017/python-sdk-preserve-source-declared-reporting-data-through-precision

This branch has not been deployed

No deployments
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