Repository navigation
Improve conditional T530 κ through two commuting release retimings - #3642
Open
roger-sato wants to merge 4 commits into
Open
roger-sato wants to merge 4 commits into
roger-sato wants to merge 4 commits into
Conversation
roger-sato
marked this pull request as ready for review
October 18, 2026 13:09
This was referenced Oct 18, 2026
Mainzu
added a commit
to Mainzu/integer-mult-bounds
that referenced
this pull request
Oct 18, 2026
The RETIMED644-660 words of CrocSwap#3642 (reused byte for byte by CrocSwap#3653) and the DELAYED words of CrocSwap#3682 keep PR3605's span(429,30) -> FULL entrance residual for helpers 644/660. The recipe key is still 137 and the width-7 recipe passes the separate kernel. The residual-adapter files and all 408 entrance/terminal pairs equal the STAGED ones. Only the emission clocks move, and donors 640/656 merge climbs 1+2 into one climb of 3, whose recipe also passes the kernel. Each regenerated emission matches the producing PR's recorded LOCAL-CHECKS receipt. LOCAL-CHECKS.json is now digested in LF form. bw_emit.py writes it with write_text, so the earlier CRLF digest reproduced only on Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 20, 2026
Mister-Meeseeks
pushed a commit
that referenced
this pull request
Oct 20, 2026
Split the root sensitivity into mass-changing errors (group capacities, bin counts, widths: one rank-48 idle child moves the root by 3.498e-7, more than the gain) and mass-conserving placement errors at fixed groups and widths (exact intervals: at least 98 rank-48 -> 48 x rank-1 relabels, i.e. more than 4,656 units of idle mass, are needed to cancel the gain over PR3148; 3 to drop below 0.00173). Reimplement the remaining verify_aggregate.py legality checks in root.py (types/ranges, duplicates, per-copy group capacity, inventory and profile fields) with two more rejecting controls. Name #3642/#3653 as consumers whose RETIMED644-660 words are not covered, reorder open questions, and note concurrent #3659. Credit Arham Tahir's coupled-carrier audit as the structural model of audit_core.py, label the lifted-Lagrangian check as implied by the frame map, and pin check_residual.py, verify_aggregate.py, audit_local.py and Arham Tahir's verify.py in SOURCES.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Independent scoped audit of the T530 staged-release retiming package at Code-disjoint checks; does not import package What passes (9 of 9):
Not covered: live full-wrapper admission; unconditional theorem; selected-frontier update. This is a finite seal/arithmetic replay, not a formal proof. check_3642.py#!/usr/bin/env python3
"""Independent finite controls for PR3642 (T530 staged release retiming κ).
Recomputes pin / κ-arithmetic / profile seals from committed package files.
Does not import package verify.py; does not re-run full admission.
Package head 6568db75adbb61437190545f6fef1534c70e91e5 via GitHub API.
James Reed (@rcfc-jreed), with substantial AI assistance (Claude, in Cursor).
Apache-2.0.
"""
from __future__ import annotations
import argparse, json, sys
from fractions import Fraction
from pathlib import Path
HEAD = "6568db75adbb61437190545f6fef1534c70e91e5"
BASE = "20ecf2891d80b5acf18d980b2164fb44ea7faa90"
NEW_KAPPA = Fraction(
"17303943918139634151199999999999999999999998999999999999999999999999"
"/10000000000000000000000000000000000000000000000000000000000000000000000"
)
OLD_ENDPOINT = Fraction(
"17300718647057798825399999999999999999999998999999999999999999999999"
"/10000000000000000000000000000000000000000000000000000000000000000000000"
)
ENDPOINT = Fraction("21629929897674542689/12500000000000000000000") # 0.00173039439181396341512
GAIN = NEW_KAPPA - OLD_ENDPOINT
PROFILE = {"1": 11747920, "2": 3453480, "3": 1112042, "4": 486540, "5": 103690, "8": 38160, "48": 202828}
results = []
def check(name, ok, detail=""):
results.append((name, bool(ok), detail))
print(("PASS " if ok else "FAIL ") + name + ((": " + str(detail)) if detail else ""), flush=True)
return bool(ok)
def load(pkg, name):
return json.loads((pkg / name).read_text(encoding="utf-8"))
def run(pkg: Path):
task = load(pkg, "TASK.json")
sources = load(pkg, "SOURCES.json")
verify = load(pkg, "VERIFY.json")
pub = load(pkg, "PUBLIC-VALIDATION.json")
full = load(pkg, "PUBLIC-FULL-REPLAY.json")
claim = load(pkg, "numerics/recorded/outer/CLAIM.json")
outer = load(pkg, "numerics/recorded/outer/RESULT.json")
moment = load(pkg, "numerics/recorded/MOMENT.json")
expected = load(pkg, "numerics/t530/EXPECTED.json")
admission = load(pkg, "full-admission/evidence/ADMISSION-RESULT.json")
release = load(pkg, "full-admission/evidence/RETIMING-COMPLETE-RELEASE.json")
owners = load(pkg, "owner-audit/RESULT.json")
packing = load(pkg, "packing-cap/RETIMED-PACKING-CAP.json")
readme = (pkg / "README.md").read_text(encoding="utf-8")
check("I1 TASK/SOURCES base_commit == 20ecf289…; VERIFY ready",
task["base_commit"] == BASE == sources["base_commit"]
and verify["status"] == "ready")
check("S1 PUBLIC / FULL-REPLAY / outer / moment / admission / release / owners / packing PASS seals",
pub["status"] == "PASS_STAGED_RELEASE_RETIMING_T530_BOUNDED_CHECKS"
and full["status"] == "PASS_PUBLIC_FULL_WRAPPER_END_TO_END"
and outer["status"] == "PASS_RETIMED_MODERN_OUTER_ARITHMETIC"
and moment["status"] == "PASS_TWO_ENGINE_EXACT_MOMENT"
and admission["status"] == "PASS_REPLICA_ORDER_FILL_DERIVATIVE_COMPLETE_RELEASE"
and release["status"] == "PASS_STAGED_RELEASE_RETIMING_T530_COMPLETE_CONDITIONAL_RELEASE"
and owners["status"] == "PASS_INDEPENDENT_LITERAL_OWNER_WINDOWS_FAMILIES_PREFIXES_AND_INVOICE"
and packing["status"] == "PASS_RETIMED_ALL_2551_FIXED_INVENTORY_PATTERNS")
check("K1 κ pins agree across CLAIM/outer/PUBLIC/FULL/admission/release/MOMENT",
Fraction(claim["kappa"]) == NEW_KAPPA
== Fraction(outer["kappa"])
== Fraction(pub["kappa"])
== Fraction(full["kappa"])
== Fraction(admission["kappa"])
== Fraction(release["kappa"])
== Fraction(moment["candidate_modern_kappa"]))
check("K2 fixed-grid form: κ = endpoint − 10^-46 − 10^-70",
NEW_KAPPA == ENDPOINT - Fraction(1, 10 ** 46) - Fraction(1, 10 ** 70)
and Fraction(moment["root_interval"][0]) == ENDPOINT
and moment["root_decimal"] == "0.00173039439181396341512")
check("K3 gain vs T530 predecessor endpoint == NEW−OLD; float matches 3.2252710818353258e-7",
Fraction(expected["candidate_endpoint"]) == OLD_ENDPOINT
and NEW_KAPPA - OLD_ENDPOINT == GAIN
and abs(float(GAIN) - float(moment["gain_vs_predecessor"])) < 1e-30
and abs(float(GAIN) - 3.2252710818353258e-7) < 1e-30)
check("P1 profile seals agree; replicas=530; calls=4770; live=474880",
pub["profile"] == PROFILE == full["profile"] == admission["profile"]
== release["profile"] == owners["profile"] == moment["new_profile"]
and moment["replicas"] == full["replicas"] == owners["replicas"] == 530
and moment["calls"] == full["calls"] == owners["calls"] == 4770
and moment["live"] == 474880)
check("P2 delta_per_call {-2,-2,+2}; profile mass conserved under delta×calls; EXPECTED holds old profile",
moment["delta_per_call"] == {"1": -2, "2": -2, "3": 2}
and expected["profile"] == moment["old_profile"]
and all(
moment["new_profile"][k] - moment["old_profile"][k]
== moment["delta_per_call"].get(k, 0) * moment["calls"]
for k in moment["new_profile"]
))
check("N1 conditional scope: no selected-frontier update; inherited hypotheses retained",
"no selected frontier update" in release.get("source_status", "").lower()
and "conditional" in claim["scope"].lower()
and "inherited_hypotheses" in release)
failed = [name for name, ok, _ in results if not ok]
print(f"\n{len(results) - len(failed)}/{len(results)} PASS", flush=True)
if failed:
print("FAILED:", ", ".join(failed), flush=True)
return 1
return 0
def main():
ap = argparse.ArgumentParser()
ap.add_argument("--pkg", required=True)
ap.add_argument("--expect-head", default=HEAD)
args = ap.parse_args()
check("HEAD pin recorded (API fetch)", args.expect_head == HEAD, args.expect_head)
return run(Path(args.pkg))
if __name__ == "__main__":
sys.exit(main())James Reed (@rcfc-jreed), with substantial AI assistance (Claude, in Cursor). |
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.
Change and mathematical scope
Summary. Two adjacent shared-source ADD pairs in each pinned PR3605 supplier commute exactly. Retiming their releases changes the relevant helper frame paths from
1 → 2 → 4to1 → 4, preserving the operator, helper identities, widths and boundary interfaces. Each invocation replaces2H1 + 2H2with2H3.Applied to PR3626's actual 4,770-call T530 allocation, this yields the conditional endpoint
κ = 0.001730394391813963415120 − 10^-46 − 10^-70, an absolute improvement of 3.2252710818353258e-7 (about 0.0186424%) over that pinned direct predecessor.
The exact commuting/frame argument, complete paid profile, two-engine root enclosure and transfer chain are in
PROOF.md. The full profile is{1:11747920,2:3453480,3:1112042,4:486540,5:103690,8:38160,48:202828}; live/physical stock is 474,880/475,389; global prefix/reserve/payload is 1,479/1,512/2,048 bits.Remaining assumptions: inherited all-size dispatch/compiler and recursive rounding; common-label/mutable-source realization and whole-call hosting; SCALAR/COPY/CLEAR and zero-allocation contracts; uniform coefficient/stock, bootstrap, precision, tape/recovery, and analytic/BIT H1–H5 premises. Finite checks do not discharge these general premises. This draft makes no unconditional theorem, formal-kernel, independent human review, global-best or priority claim. The selected frontier is unchanged.
Task and overlap
20ecf2891d80b5acf18d980b2164fb44ea7faa90.3efbb5de06a49ffeea6684482f2d3fe48cdca3fb.659fd5e7064d9466b668d7188cbb013b333a415a.46c5aaca40117a4ca90a3316771ae52cf9a6801ereaches the old inventory's ceiling. This change improves the local bill underlying that ceiling; combining with its T488 allocation is untested.This is user-directed research, retrospectively classified under
scalar-to-momentwith refined scope. The improvement is in the complete paid profile, not scalar addition count alone. The overlap refresh covered open PRs/discussions and local records; it is not a novelty certificate. At publication, #3633 had advanced to72c268f113368ea0387d188225e3f81ba6d6ef73for an attribution correction; its stated endpoint was unchanged from our comparison pin.Validation
Test plan and results. Reproduction instructions and per-component scope are in
README.md. Bounded checks use Python 3.12 / NumPy 2.5.4:PASS_RELEASE. Two unchanged native chains and the retained parent were authenticated and reused. Full admission took about 20.3 minutes excluding earlier native generation.fb47533a401d1d13719be8b9aab91fe5313931ca62d40dba336eab6a96275aa0.abc12f62e4fe9bfcb2e33c84703253c918668351, in a fresh external work directory without a supplied allocation. All seven wrapper stages and seven nested admission stages exited 0. TerminalPASS_RETIMER_T530_COMPLETE_CONDITIONAL_RELEASE/PASS_RELEASEreproduced the same exact κ and 654-file source manifest. Both changed native providers and all 1,946,160 owner roles were regenerated; two unchanged native chains and the retained parent remained authenticated reuse. All 295 original package files stayed unchanged; no wrapper code fix was needed. See the separate full-replay record. This long replay remains outside bounded CI.-O; those checks validate recorded evidence, not another long scientific run.The lean public package omits regenerated large archives/fill and retains required pinned dependencies, code, proof and evidence. Execution-path metadata is normalized with original/public SHA256 maps. The quick recorded-summary check verifies public integrity and internal references; it does not authenticate omitted archive bytes or rerun native/controller/outer admission. Original scientific inputs and earlier receipts remain unchanged. The public-wrapper run has its own new receipt chain; its raw local source/runtime/native/log bytes were checked before publishing normalized metadata. A later independent run in another environment and all general theorem assumptions remain open.
CI investigation and fix — 2026-10-18
Previous verified head:
044d24f12e74f228dd462c07ae2d7f3ea35e2be9. The fork-hosted Registered research packages run succeeded on Ubuntu 24.04 x86_64 / CPython 3.12.15 / NumPy 2.5.4. It used this exact PR head, the unchanged registered workflow, and base20ecf2891d80b5acf18d980b2164fb44ea7faa90.plan: PASS, 265 helper tests discovered, 254 passed and 11 native-Windows-only tests skipped; the selector chose exactlyresearch/staged-release-retiming-t530.replay: PASS, all three registered commands: bounded local/owner/numerics/packing checks, recorded public-wrapper receipt-chain check, and four semantic rejection controls. TerminalPASS_REGISTERED_RESEARCH_PACKAGE; subsequentgit diff --exit-codealso passed. The package execution step took about 79 seconds; the complete hosted workflow took about 4m 40s.044d24f1: the earlier fork run rejected.github/workflows/p112-common-slice.yml:19becauserunner.tempis unavailable in job-levelenv. The file was byte-identical to the pinned base. Initialization now runs in a step using$RUNNER_TEMPand$GITHUB_ENV. Actionlint 1.7.12 reproduces the old failure and accepts the fix; a path-with-spaces shell check passed. Triggers, permissions, repository guard and scientific replay commands are unchanged. P112's historical scientific replay was not run.At that previous head, upstream CI required maintainer action. The CrocSwap PR workflow is
action_required, awaiting approval, with zero jobs started. The earlier run explicitly reports “awaiting approval from a maintainer”; this is not a test failure or a draft/path-filter issue. The contributing account has no upstream write access and cannot approve it. A maintainer with write access must review the changes and choose Approve workflows to run on this PR, following GitHub's approval procedure. The successful fork run is additional execution evidence; it does not satisfy or replace that upstream approval/check.To reproduce the successful fork run:
At
044d24f1, the research package was byte-for-byte unchanged from80c0f290. That CI run did not repeat the 21-minute full wrapper above and does not discharge the remaining theorem assumptions. The PR's existing ready-for-review state is preserved.Owner negative-control correction and current CI — 2026-10-19
Current head:
6568db75adbb61437190545f6fef1534c70e91e5. No change to κ, the paid profile, native words, frozen source manifests or previous scientific receipts.Sagar Thakrar's independent PR3694 identified that the inherited owner auditor's five rejection lambdas do not call the actual validation gates. We independently reproduced this: replacing all five production predicates with
Truestill lets those old controls report success. The earlier description of those lambdas as effective rejection tests was incorrect. The positive scientific ownership checks remain present.Commit
6568db75preserves the frozen auditors and adds an owned companion. It executes the authenticated positive auditor once, extracts its five actual unconditional validation statements, mutates helper identity, the strict lower window endpoint, same-call family, chronological prefix and invoice inputs, and requires rejection at the corresponding gate. Each negative test must also fail when that gate is disabled. These are five isolated production-gate semantic tests plus five disable-sensitivity tests, not five end-to-end corrupted-journal replays. The old lambdas are no longer counted as negative coverage.git diff --exit-code.action_required, with zero jobs started. The contributing account cannot approve upstream fork workflows; a maintainer's workflow approval is still required. The successful fork run is separate evidence.The complete public wrapper and its seven-stage admission use the separately retained owner audit, not this five-lambda companion. This correction does not alter that execution path, and the earlier 21-minute full scientific replay remains separately dated; no new full replay is claimed. The current bounded correction does not discharge any remaining all-size theorem assumptions. Research toward κ ≥0.002730394391813963415120 remains unachieved and is not included in this PR's result.
Credit
Credit Ross Richardson/PR3605 and PR3630, hexapode/PR3626, the PR3531 interval engine, dcharb78/PR3133, Jeremy Diviney/PR3148, and all retained infrastructure contributors. See
CREDITS.mdand preserved Apache-2.0 notices. The new search, proofs, independent agent cross-checks, integration and package preparation used substantial OpenAI Codex assistance.Open next questions
The smallest follow-up is to bind these exact words into PR3633's T488 allocation and repeat complete owner/controller/prefix/outer admission; no predicted value from that composition is included here. Further word/inventory changes may exceed the narrow fixed-inventory headroom. Independently proving an inherited all-size premise would strengthen the theorem's status. First steps and blockers are listed in the package's Open next questions.
Prepared with OpenAI Codex assistance.