Skip to content

feat(reporting): port policy-bound official finality to 10.x - #1960

Merged
rachitm022 merged 18 commits into
nextfrom
claude/issue-10662-official-finality
Nov 27, 2026
Merged

rachitm022 merged 18 commits into
nextfrom
claude/issue-10662-official-finality

Conversation

@rachitm022

@rachitm022 rachitm022 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Why

ESA's AI-10662 reporting work needs immutable OFFICIAL revisions under a selected finality rule. The existing definition driven finality PR (#1925) targets the SDK's 9.x main, while ESA uses the separate 10.x next line.

What changed

  • Port selected source_final, contractual_cutoff, and stabilized policies into 10.x definition bindings, ledger storage, service admission, and production offering checks.
  • Prove an OFFICIAL publication from complete, verified source evidence and keep one terminal official revision per period. Preserve 10.x snapshot scheduling and exact replay behavior.
  • Persist bounded observation and stabilization evidence in PostgreSQL. Migration 0010 adds append-only reuse history and stabilization checkpoints while retaining the published observation constraint for rolling upgrades.
  • Cover memory and PostgreSQL publication, retry, restart, reconciliation, notification, and schema upgrade paths.

Adopter contract

Core treats the selected policy as a trusted projection of the pinned report definition. Adopters verify the definition's exact bytes against its SHA-256 and copy the policy's ID, basis, and parameters. Core does not fetch the definition URI at admission. ESA's tenant offering and correction publishing work remains in ESA #1345.

Verification

  • make lint: passed locally.
  • make typecheck-all: passed locally.
  • Focused reporting suite with PostgreSQL: 812 passed locally.
  • The full reporting suite was not completed locally because it requires Linux and more disk space than available; hosted CI covers the full suite.

Related: #1925, ESA #1345, AI-10662.

@rachitm022
rachitm022 force-pushed the claude/issue-10662-official-finality branch from 8bf3a76 to d710c97 Compare November 27, 2026 01:31
@rachitm022
rachitm022 merged commit e70d0c1 into next Nov 27, 2026
41 of 43 checks passed
@rachitm022
rachitm022 deleted the claude/issue-10662-official-finality branch November 27, 2026 10:31
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