Skip to content

Explain recursive invoice comparisons with exact tariff witnesses - #5731

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
aliromman:codex/contributor-15-07
Oct 26, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
aliromman:codex/contributor-15-07

Conversation

@aliromman

@aliromman aliromman commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

An inconclusive signed-invoice comparison currently gives hinge values but no worked cost comparison. Add explain_recursive_invoices.py: it emits explicit capped-linear tariffs with exact old/new paid-minus-target costs for each available sign. The existing comparator is unchanged.

Use python3 -B scripts/explain_recursive_invoices.py OLD.json NEW.json. The guide includes a mixed-hinge example whose power difference is (2^t-1)^2; this shows why opposite concave witnesses do not prove a power crossing.

Validation: all 15 invoice/comparator tests pass on Python 3.12; the 5 new tests pass under -O. The new suite independently replays every witness for 625 signed profiles, checks target debits and tests the real CLI under -I -O with SHA256 input binding. git diff --check passes.

The method is classical concave order, credited to the existing comparator, mightyOil’s T16 audit and retained predecessors. This is arithmetic on declared invoices, not circuit validation or a new κ. Fresh main/priorities and live overlap checks found no matching scope. The initial hosted plan failed the two existing current-status navigation checks. Their repair is now in main through PR #5703.

This PR was integrated before the test-discovery correction. The integrated head below is the verified source for this PR. The four CI-registration renames are available in PR #5749; its hosted log records all 69 new contribution tests as passing. The shared plan still has revision-8 task-picker failures, documented in the contribution handoff.

Base: df0137efd35e11b4445734bf612bdd4c7ebc330c. Verified head: 6e1640f84f83dfa68fbd1d8db6b10630708732fd.

Prepared for aliromman with OpenAI Codex assistance. Existing tool and predecessor credits remain in place. No selected-frontier change.

@Mister-Meeseeks
Mister-Meeseeks merged commit 553d26d into CrocSwap:main Oct 26, 2026
1 of 2 checks passed
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.

2 participants