Skip to content

Avoid duplicate canonical encoding of generated planner reports - #1051

Merged
bradhilton merged 1 commit into
mainfrom
hayek/planner-canonical-reuse-20260929
Sep 29, 2026
Merged

bradhilton merged 1 commit into
mainfrom
hayek/planner-canonical-reuse-20260929

Conversation

@bradhilton

@bradhilton bradhilton commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Planner reports were serialized twice on the training path: the bounded encoder produced canonical bytes, then persistence parsed and re-encoded the entire report. Reporter now uses a private parsed-schema/persistence path for bytes returned directly by that same encoder. Public validate_report and persist_report retain full canonical validation for arbitrary bytes.

The generated path still parses once and rejects duplicate or incorrectly ordered decoded keys, including numeric-key coercion and surrogate normalization. It adds no snapshot, API option or reporting flag. OOM/static-size fallbacks, durable publication, final shared-ledger charges and omission accounting retain their existing behavior.

Validation: 124 focused tests pass; 22 adversarial/parity controls pass on the parent too, and the encode-count regression fails on parent (two encodes) and passes here (one). Retained 1.57 MB and 2.51 MB payload comparisons preserve all 18 paired output/accounting outcomes. Three-repeat CPU healthy medians improve from 230.1→130.6ms and 383.0→221.5ms with prebuilt replay primitives; these are local component measurements, not measured remote or GPU gains. Ruff, format and targeted ty pass. Independent native Astra and persistent Cursor Opus5.5 Extra High source reviews are clear at 0ccbcbee; required CI passed: 1,396 Megatron tests, 3,188 unit tests (65 skipped, 2 deselected), and native two-H200 validation. The shortcut relies on the existing encoder configuration and must be re-derived if those encoding semantics change.

@bradhilton
bradhilton deployed to trainer-rank-gpu-validation September 29, 2026 22:56 — with GitHub Actions Active
@bradhilton
bradhilton marked this pull request as ready for review September 29, 2026 23:16
@bradhilton
bradhilton merged commit 09fe46a into main Sep 29, 2026
10 checks passed

This branch was successfully deployed

1 active deployment
trainer-rank-gpu-validation — 0ccbcbee Deployed Sep 29, 2026 by bradhilton via Run on 2x H200 #1005
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