Skip to content

Preserve native facts in paper liquidation reports - #624

Merged
Pigbibi merged 1 commit into
mainfrom
codex/paper-snapshot-facts
Oct 13, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
codex/paper-snapshot-facts

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Explicit paper-liquidation rehearsal already reads a native portfolio snapshot, but its legacy positions/equity/buying-power view discarded account facts before returning the typed cycle result. Preserve the existing projector's optional facts from that exact read, using the last existing snapshot after the unchanged empty-position retry. The cycle emits an ordinary dictionary with the original native timestamp; these are pre-liquidation facts, not post-fill balances.

A module-private dictionary carrier is created only at this adapter's native projection boundary. Missing/failed projection and all plain legacy sidecars, even copied or claimed v1 shapes, remain unknown. No raw snapshot is carried; no extra broker read, cache, order/notification/policy change, synthesized balances, selector/publisher guard changes or identity approval. The isolated paper command consumer and ordinary strategy core are unchanged.

Validation: 43 focused cases passed (27 new), full frozen writer base 1,823 passed / 5 existing skips; required CI-equivalent commands passed. Controlled original-source regression replay and five legacy-v1 negative cases fail before repair. Initial RED timing was not explicitly awaited; strict initial test-first ordering is not claimed. Original test prefix and all 264 writer-base unowned files preserved. Independent review has no actionable findings.

Root rebased the exact frozen bytes onto latest main a41fe634426d6bb48f24274a3f6ae9c338b6b244 after separately reviewed #623, preserving patch SHA256 693df410123021aade782b2ef0dae3510a9a48f0a223fd8a1d97249626cbca50 and all 265 new-base unowned files. Combined exact-final-head local checks passed: 1,873 passed / 5 existing skips, frozen sync, Ruff, original CI pin, lock/startup, actionlint with ShellCheck and diff. Final head 3aa110db776a55b8bb140d9e29e5f41681b130ea PR CI 38453255866 succeeded. Normal merge abd6c6cd51afe61b40e2422ef9c1b86da7845226 matches the reviewed tree; merged-main CI 38453481210 succeeded. No production deployment or actual missing-snapshot restoration is claimed. This source bug is not proven to explain the two real missing snapshots; serving revision/account/release approval and production restoration remain unproven. No real orders, broker/cloud operations or notifications were run for this repair.

@Pigbibi
Pigbibi merged commit abd6c6c into main Oct 13, 2026
1 check passed
@Pigbibi
Pigbibi deleted the codex/paper-snapshot-facts branch October 13, 2026 19:16
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