Repository navigation
Repair ledger reconciliation and authenticated historical receipt replay - #4102
Draft
Clear1nsight wants to merge 3 commits into
Draft
Clear1nsight wants to merge 3 commits into
Clear1nsight wants to merge 3 commits into
Conversation
Preserve exact reviewed bytes from 3088a09 on current canonical main. Keep P112 repair in PR3885 and P104 research separate. No frozen scientific inputs or selected frontier changed. Prepared by Clear1nsight with substantial OpenAI assistance.
Preserve exact reviewed bytes from 3088a09 on current canonical main. Keep P112 repair in PR3885 and P104 research separate. No frozen scientific inputs or selected frontier changed. Prepared by Clear1nsight with substantial OpenAI assistance.
This was referenced Oct 19, 2026
Integrate the exact nine-file adapter patch from PR CrocSwap#4103 at 161ce1b to repair the two registered-package source-drift failures exposed by PR CrocSwap#4102 CI. Retain original intake/ledger repairs byte-for-byte, authenticate frozen receipt pins and evidence, and keep the generic live-input checker strict. Historical-only replay does not validate current ledger/contributor state. Preserve both published extraction commits without rewriting history. No P112 workflow, P104 scientific input or selected-frontier changes. Prepared by Clear1nsight with substantial OpenAI assistance.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and result
The ledger repair changes a declared live input, so affected-package CI selects the PR1 and PR636 historical source/credit receipts. The original wrappers then reject later contributor/ledger bytes before replay:
working source drift: CONTRIBUTORS.mdandworking source drift: docs/research/pr-ledger.json. The original registered-package run remains retained failed evidence. This is separate from the inherited P112 workflow parse problem.Integrate the exact historical-only adapter patch from #4103 into the ledger proposal so the affected receipts authenticate and replay their original inputs. The generic live-input validator remains unchanged and strict.
PASS_HISTORICAL_RECEIPT_ONLYexplicitly reportslive_inputs_validated=false; it does not approve today's ledger, close a PR, or establish scientific acceptance.Current exact head and scope
Current head:
1588e746871c5f1f197dbc034db2bfadbad0b646. Base: upstreamCrocSwap/integer-mult-bounds:mainatbb4bccbf42844d2801487450727c2f63e10d1d0f. This draft now contains 20 files, the union of the original 11 ledger/reconciliation files and the nine receipt-adapter files. It is no longer an independently green 11-file proposal on the current base.The additive merge preserves both published extraction commits as parents: ledger/reconciliation
1f360c63d00289aa5be2300d8c72e7bcf86827feand receipt adapters161ce1b96288349fd67ecda1734d2f96850a2ee9. All nine added adapter files match #4103 byte-for-byte. The ledger and all original ledger-repair files remain byte-for-byte unchanged from the first parent. #4103 remains the focused adapter review; its patch is included here because the ledger change activates these consumers. Neither proposal is upstream-merged.The retained ledger repair authenticates three original intake snapshots by commit/blob/SHA256, preserves first-seen contributor/head metadata, preserves closure projection, admits only explicitly pinned helper/documentation successors, and retains fatal failures with complete diagnostics. Its ledger delta remains exactly 19 missing closure keys becoming explicit null, with all 3,028 rows and other metadata unchanged. No full ledger regeneration was performed.
The receipt patch changes only the PR1/PR636 README/SOURCES/VERIFY wrappers, the explicit adapter, regression suite and guide. Original base-commit/blob/SHA256 pins, verifiers and evidence remain authenticated unchanged. The selected frontier and frozen scientific inputs are unchanged. The 11 P104 scientific files and the separate one-file P112 repair (#3885) are absent.
Local combined validation
Python 3.12.3 on the exact combined commit:
Hosted evidence
All four fresh upstream workflows pass at exact combined head
1588e746871c5f1f197dbc034db2bfadbad0b646:Earlier evidence remains scoped to its own source: the original ledger extraction's three successful fork workflows do not make its failed upstream registered-package run pass. #4103's upstream registered replay passes both real historical receipts at
161ce1b96288349fd67ecda1734d2f96850a2ee9; that is separate-head evidence, not the combined result above. No old run was rerun or relabelled.Boundaries and credit
This is the explicitly assigned CI repair and additive integration of existing patches. Current canonical guidance was read; the delta-only intake refresh fetched canonical main but could not run its queue read because
ghis unavailable. Targeted GitHub reads verified the exact proposal heads. No queue acceptance or scientific review decision is made here.No upstream merge, force-push, research-branch rewrite, source repinning, selected-result update, or broad mathematical replay is included. The inherited P112 issue remains separately tracked by #3885. Keep working research repairs until an effective upstream base exists.
Existing source authors, original repair attribution, licences and Apache-2.0 notices are retained. Consolidation and CI repair by Clear1nsight with substantial OpenAI assistance. Draft pending independent substantive tooling review.